mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 00:04:28 +01:00
[GH-ISSUE #85] Displays getting stuck on "Waiting for data" after associating #588
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Ennar1991 on GitHub (Jul 17, 2023).
Original GitHub issue: https://github.com/OpenEPaperLink/OpenEPaperLink/issues/85
Describe the bug
The displays seem to get stuck af the "Waiting for data" screen after associating with an access point and failing to receive the initial data (AP lost, restarted, temporarily out of range, overpowered by other 2.4 GHz transmissions). Placing the display right next to the access point does not help once it got stuck. Only a reboot by manually powering it off and on again resolves the issue. This is hard or annoying to do in signs used in installations or built into other components.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The display will realize that no data could be received and will try to check in later (5-10 min)
Screenshots

Two displays were rebooted manually after moving the card away from the AP, while three others were allowed to reconnect on their own. The displays were left next to the AP over night (12 hours).
@jjwbruijn commented on GitHub (Jul 17, 2023):
Hey! First of all: thank you for your badge-holder-design!
I understand this problem happened with 2/5 tags?
So a bit of background on what happens:
This behaviour has been pretty well tested; it's been pretty solid as far as I can tell. If you're interested, take a look at powermgt.c and powermgt.h, where you can find how that works. Even if there is a bug somewhere that could leave it in some sort of unplanned loop, the watchdog should reset the tag.
So what happens with your tags? I don't know, but I can hazard a guess!
I think you're batteries may be on their last legs; with the AP gone, the 14 attempts the tag does to get data from the AP (that fail) may be a little too much and it may sag the voltage enough to 'hang' the SoC. This, in turn, might cause the battery to drain even further...
Bottomline: I don't know! This is fairly well-tested; I'll take another look at the code, maybe I can somehow reproduce the issue.
@Ennar1991 commented on GitHub (Jul 17, 2023):
Batteries might be a bit low, they're used tags. Thank you for the quick response. I might donate the badge design to this repo if I find out how to.
@slimline33 commented on GitHub (Jul 20, 2023):
I had the same problem. The latest firmware must be installed on the AP with the appropriate firmware. This must be renamed to AP_force_flash.bin. Upload this to the littleFS partition and reboot. After that it worked for me.
@kopierschnitte commented on GitHub (Jul 24, 2023):
@slimline33 Could you explain a little bit more? I'm also getting these kind of problems after using the AP for around 2 days (started directly with FW1.6).
@slimline33 commented on GitHub (Jul 24, 2023):
The access point display (SoluM tag) must be on the same firmware level as the tags. This is independent of the Access Point firmware (for the esp32).
To do this, you take the firmware based on your display from the access point -> SoluM Segmented (OpenEPaper AP Mini) then of course needs the Segmented firmware. The NanoAP then needs the display firmware from the 1.54" SoluM display.
You can download the appropriate AP display firmware here: https://github.com/jjwbruijn/OpenEPaperLink/tree/master/binaries
Then rename the file "AP_force_flash.bin" and load it into the first directory (http://192.168.X.X/edit). The display firmware is then updated from the access point with a reboot!
I have only been familiar with SoluM displays and openepaperlink.de for 3 weeks.
I hope this is correct :D maybe @jjwbruijn can confirm this
@atc1441 commented on GitHub (Jul 24, 2023):
100% Correct
@kopierschnitte commented on GitHub (Jul 24, 2023):
Great explanation. Thx!
But how can I determine the FW level of the tags because I still cannot reach existing or bind new tags.
@slimline33 commented on GitHub (Jul 24, 2023):
That is secondary for now. First, the latest firmware must be installed on the AP display! Downward compatible is the newer firmware in any case.
Once you can then connect, you can update the displays via the AP.
@nlimper commented on GitHub (Jul 27, 2023):
Most important in this, is that the AP has at least firmware version 0017 (that is the latest, at the moment). You can check this firmware version either by looking at Serial at startup of the AP, or in the web interface, button 'AP config', in the table under 'active access points', column 'AP ver'.