-
Notifications
You must be signed in to change notification settings - Fork 469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update of graphics.update() seems to get stuck indefinatelly #866
Comments
I tested some more today. Tried twofold
|
I am also having this problem with an Inky 7.3 I have a very small
In the Thonny output I see:
If I disconnect the frame from USB and reconnect it later on, I can never get If I reflash the Micropython with the uf2 download it's fine again, until I disconnect it from USB. |
I also have the same issue, with my inky frame 7.3 on v1.21.0. On battery(3 fresh AA), the first graphics update() works then after sleep_for() the second update() hangs. All good if plugged on USB with Thonny. There is a forum discussion which explain this issue in great details on https://forums.pimoroni.com/t/inky-frame-not-refreshing-screen-on-battery-power-using-inky-frame-sleep-for/23174 |
Good news! Seems i have found and fixed the issue. As we identified some kind of blocking behaviour i had a deeper dive into the code. I modified the busy_wait function to return after a given timeout: main...w3stbam:pimoroni-pico:fixupdate This way, a block will be removed after a timeout of currently 30 seconds and the code continues. I am not really sure why the block has not been removed before, but anyways, this seems to fix thei issue. I have now ~ 20 refreshes on battery with a 100% success rate. If it works for you, give some feedback here then i can make a pull request against the main repo |
Thank you w3stbam. Great work. I have installed the firmware you linked and am currently undergoing tests. I will send you a my report tomorrow, after I have seen it working for a while. |
Great Work w3stbam. Your fix seems to have done the trick. During my first trials I had 2 freeze-ups which might be totally unrelated to this thread. After that my inky-frame has been running flawlessly on battery for 12h straight with an update every 20 minutes and occasional button-usages on my side to give me extra picture updates. |
Sounds great @klausi83 . Regarding the freezes you have experienced, these may be related to the timeout having a too low value. I changed it from 30 to 45 seconds after a comment on the pimoroni forums, where a user said that refreshes may take up to 40 seconds. You can try the version with 45 seconds timeout here, it should be somewhat safer: |
I have written a py-script that should convert inky_frame to a small self contained picture frame. (Inky_frame 7.3). Unfortunately I get an unexplained hang-up.
Code: https://github.com/klausi83/inky_frame
The code seems to run ok, for one or two pictures after first initialization (coming from main.py and selecting Button "C"). The event inky_frame.woken_by_rtc() triggers but almost always, the update of the displayed picture gets stuck on line 124 and 127 (most likely in line 127). A press of the "reset" usually does not help, it gets stuck at the same point.
Getting out of this status is: press reset + (A and E) and start from main.py again.
Is there a way to debug this deeper, or does someone know a solution?
The text was updated successfully, but these errors were encountered: