GregDMeyer / IT8951

Driver for the IT8951 e-paper controller on Raspberry Pi
MIT License
155 stars 55 forks source link

TimeoutError: Ocassionally when updating screen #56

Open doebi opened 1 year ago

doebi commented 1 year ago

Hi, I am running into this issue when updating the screen:

Traceback (most recent call last):
  File "/home/pi/show.py", line 41, in <module>
    update(sys.argv[1])
  File "/home/pi/show.py", line 11, in update
    display = AutoEPDDisplay(vcom=-1.46, spi_hz=1000000)
  File "/usr/local/lib/python3.9/dist-packages/IT8951/display.py", line 224, in __init__
    epd = EPD(vcom=vcom, bus=bus, device=device, data_hz=spi_hz)
  File "/usr/local/lib/python3.9/dist-packages/IT8951/interface.py", line 33, in __init__
    self.update_system_info()
  File "/usr/local/lib/python3.9/dist-packages/IT8951/interface.py", line 99, in update_system_info
    self.spi.write_cmd(Commands.GET_DEV_INFO)
  File "spi.pyx", line 230, in IT8951.spi.SPI.write_cmd
  File "spi.pyx", line 177, in IT8951.spi.SPI.write
  File "spi.pyx", line 117, in IT8951.spi.SPI.transfer
  File "spi.pyx", line 108, in IT8951.spi.SPI.wait_ready
TimeoutError: Timed out waiting for display to respond

My setup is a Raspi Zero W with the Waveshare HAT and the 7.8" (1842x1404) screen.

My goal is to have a task repeatedly updating the screen with an image retrieved from a server. After a couple of minutes/updates the sccreen gets stuck and I cannot update it anymore. Reboot of the raspi does not help, SPI kernel module reloading does not help. The only thing getting the screen unstuck is depowering, waiting for everything to empty and repower again. Unfortunately, having to unplug is a deal-breaker for me so I am looking for a solution to get the driver unstuck or prevent the issue beforehand.

What I tried already:

Unfortunately none of these helped solve my issue and I am still getting stuck after a coupld of updates. Any help appreaciated. Thanks.

Max-Rider commented 3 months ago

I am currently experiencing the same issue, did you ever resolve this?