JeroenvO / homeassistant-cz20-badge

Connect cz2020 badge from badge.team to home-assistant as binary sensor
MIT License
1 stars 0 forks source link

i2c framebuffer #3

Closed JeroenvO closed 3 years ago

JeroenvO commented 3 years ago

when changing a lot of lights simultaneously with mqtt these errors sometimes appears on the serial log:

E (638780) display_i2c: i2c framebuffer write error -1
E (648820) display_i2c: i2c framebuffer write error -1
E (649900) display_i2c: i2c framebuffer write error -1
E (649910) display_i2c: i2c framebuffer write error -1
E (662820) display_i2c: i2c framebuffer write error -1
E (662850) display_i2c: i2c framebuffer write error -1
E (671670) display_i2c: i2c framebuffer write error -1
E (680130) display_i2c: i2c framebuffer write error -1
E (680150) display_i2c: i2c framebuffer write error -1
E (680170) display_i2c: i2c framebuffer write error -1
E (688300) display_i2c: i2c framebuffer write error -1
E (688320) display_i2c: i2c framebuffer write error -1
E (688330) display_i2c: i2c framebuffer write error -1
E (692680) display_i2c: i2c framebuffer write error -1
E (692710) display_i2c: i2c framebuffer write error -1
E (701330) display_i2c: i2c framebuffer write error -1
E (701350) display_i2c: i2c framebuffer write error -1
E (701370) display_i2c: i2c framebuffer write error -1
E (716770) display_i2c: i2c framebuffer write error -1
E (716790) display_i2c: i2c framebuffer write error -1
E (716810) display_i2c: i2c framebuffer write error -1
E (716930) display_i2c: i2c framebuffer write error -1
E (716950) display_i2c: i2c framebuffer write error -1
E (717070) display_i2c: i2c framebuffer write error -1
E (717080) display_i2c: i2c framebuffer write error -1
JeroenvO commented 3 years ago

Might be a (thread-)locking bug in the firmware or a hardware design problem. Everyone gets that error from time to time unfortunately.

The i2c slave implementation on the stm32 is not that great and sometime stalls the i2c bus for too long. Which causes the error