[GH-ISSUE #123] Automatic reconnect #2267

Closed
opened 2026-03-20 21:05:06 +01:00 by sascha_hemi · 1 comment
Owner

Originally created by @Draexl on GitHub (Sep 2, 2023).
Original GitHub issue: https://github.com/OpenEPaperLink/OpenEPaperLink/issues/123

My tags (with JSON template) no longer automatically connect to the AP after it has been unplugged for a long time.

Process:
I unplug the AP. Three/four days later I connect it to electricity.
Unfortunately, the tags no longer connect even after hours. I have to take out the batteries.

What are the specifications for the Autoconnect? What could I set so that the tags connect automatically?

Originally created by @Draexl on GitHub (Sep 2, 2023). Original GitHub issue: https://github.com/OpenEPaperLink/OpenEPaperLink/issues/123 My tags (with JSON template) no longer automatically connect to the AP after it has been unplugged for a long time. Process: I unplug the AP. Three/four days later I connect it to electricity. Unfortunately, the tags no longer connect even after hours. I have to take out the batteries. What are the specifications for the Autoconnect? What could I set so that the tags connect automatically?
sascha_hemi added the documentation label 2026-03-20 21:05:06 +01:00
Author
Owner

@nlimper commented on GitHub (Sep 2, 2023):

To save energy, if tags cannot find an access point, they keep trying for a while, but the time between tries gets bigger.

#define INTERVAL_1_TIME 3600UL                 // Try every hour
#define INTERVAL_1_ATTEMPTS 24                 // for 24 attempts (an entire day)
#define INTERVAL_2_TIME 7200UL                 // Try every 2 hours
#define INTERVAL_2_ATTEMPTS 12                 // for 12 attempts (an additional day)
#define INTERVAL_3_TIME 86400UL                // Finally, try every day

https://github.com/jjwbruijn/OpenEPaperLink/blob/master/zbs243_Tag_FW/powermgt.h#L35

So, in the end it only wakes up once a day to try to find an AP. This is by design, because searching all channels for an active AP is a task that's not very battery-friendly.

<!-- gh-comment-id:1703834776 --> @nlimper commented on GitHub (Sep 2, 2023): To save energy, if tags cannot find an access point, they keep trying for a while, but the time between tries gets bigger. ``` #define INTERVAL_1_TIME 3600UL // Try every hour #define INTERVAL_1_ATTEMPTS 24 // for 24 attempts (an entire day) #define INTERVAL_2_TIME 7200UL // Try every 2 hours #define INTERVAL_2_ATTEMPTS 12 // for 12 attempts (an additional day) #define INTERVAL_3_TIME 86400UL // Finally, try every day ``` https://github.com/jjwbruijn/OpenEPaperLink/blob/master/zbs243_Tag_FW/powermgt.h#L35 So, in the end it only wakes up once a day to try to find an AP. This is by design, because searching all channels for an active AP is a task that's not very battery-friendly.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/OpenEPaperLink#2267