igate not reconnecting to Wi-Fi after wake from sleep #151

Closed
opened 2026-10-05 05:43:00 +02:00 by adam · 20 comments
Owner

My remote iGate running main branch build 20th November, does not reconnect to WiFi after waking from sleep but wakes into Digipeater backup mode.
I had the same problem a couple of weeks ago, I thought the problem may have been that my 4G router had timed out with no connection. However when I visited the site I noticed my phone automaticly connected to the 4G router so no issue there.
I updated to the latest build in the main branch as of 20th November hoping this may fix the issue but the problem still exists.
I have the igate set to reboot every 24 hours, but it reboots different some how after waking, it does not transmit the the Beacon comment with GitHub link that you normally get on a restart. It as though it inst actually restarting.
Also the 30 minute beacon becomes 31 or 32 minutes, see attached image
Thanks
Paul
MW0PDV
IMG_1151

My remote iGate running main branch build 20th November, does not reconnect to WiFi after waking from sleep but wakes into Digipeater backup mode. I had the same problem a couple of weeks ago, I thought the problem may have been that my 4G router had timed out with no connection. However when I visited the site I noticed my phone automaticly connected to the 4G router so no issue there. I updated to the latest build in the main branch as of 20th November hoping this may fix the issue but the problem still exists. I have the igate set to reboot every 24 hours, but it reboots different some how after waking, it does not transmit the the Beacon comment with GitHub link that you normally get on a restart. It as though it inst actually restarting. Also the 30 minute beacon becomes 31 or 32 minutes, see attached image Thanks Paul MW0PDV ![IMG_1151](https://github.com/user-attachments/assets/9b4d097c-3c0e-4e1e-9833-66d3a7e8d33d) <!-- github-sync-id:2723666199 -->
adam closed this issue 2026-10-05 05:43:00 +02:00
Author
Owner

hi, I got confused:

there a lot of things going on here.

how far from Wifi is the igate board?

is it now rebooting at the exact time ? (how big is the error in seconds)?

sending each 30 min , how big is the tx offset?

hi, I got confused: there a lot of things going on here. how far from Wifi is the igate board? is it now rebooting at the exact time ? (how big is the error in seconds)? sending each 30 min , how big is the tx offset? <!-- github-comment-id:2529072114 -->
Author
Owner

Hi Ricardo,
The igate (Heltec v3) is about 2m from the 4G router, this a remote iGate.
I should have mentioned that I have Backup Digipeater enabled.

Due to the very short daylight hours in the UK currently, the board enters sleep not long after sunset and so it isn’t currently reaching 24hours for a timed reboot. The wake time is obviously variable depending on sunlight for solar.
The beacon time is set to 30 minutes but the beacon in Digipeater backup is actually 31 minutes and 1 second or 1,861 seconds.
When it was doing this a couple of weeks ago I visited the remote site and a power cycle of the igate seemed to fix it, until the next time it entered sleep.

hope that helps
Paul.

Hi Ricardo, The igate (Heltec v3) is about 2m from the 4G router, this a remote iGate. I should have mentioned that I have Backup Digipeater enabled. Due to the very short daylight hours in the UK currently, the board enters sleep not long after sunset and so it isn’t currently reaching 24hours for a timed reboot. The wake time is obviously variable depending on sunlight for solar. The beacon time is set to 30 minutes but the beacon in Digipeater backup is actually 31 minutes and 1 second or 1,861 seconds. When it was doing this a couple of weeks ago I visited the remote site and a power cycle of the igate seemed to fix it, until the next time it entered sleep. hope that helps Paul. <!-- github-comment-id:2529150460 -->
Author
Owner

so the backup digimode sends all packets with 31:01 min:sec delay from last packet or just the first one?

so the backup digimode sends all packets with 31:01 min:sec delay from last packet or just the first one? <!-- github-comment-id:2529171859 -->
Author
Owner

so the backup digimode sends all packets with 31:01 min:sec delay from last packet or just the first one?

Once in backup mode every beacon is 31:01

so the backup digimode sends all packets with 31:01 min:sec delay from last packet or just the first one? Once in backup mode every beacon is 31:01 <!-- github-comment-id:2529182924 -->
Author
Owner

so this is working at as a Digi, but when it receives much packets to repeat it adds the self beacon at the list of packets to Tx.

so maybe this delay is a good amount of packets being repeated before the Station GPS beacon Tx ?

so this is working at as a Digi, but when it receives much packets to repeat it adds the self beacon at the list of packets to Tx. so maybe this delay is a good amount of packets being repeated before the Station GPS beacon Tx ? <!-- github-comment-id:2529275372 -->
Author
Owner

It is a very remote igate, the only traffic it normally will see is someone on a nearby SOTA summit. I added the 4G router as it cannot reliably reach my home, or another local igate.
Should the igate reboot when waking from sleep? It’s as though when it wakes from sleep it doesn’t exit backup mode.

It is a very remote igate, the only traffic it normally will see is someone on a nearby SOTA summit. I added the 4G router as it cannot reliably reach my home, or another local igate. Should the igate reboot when waking from sleep? It’s as though when it wakes from sleep it doesn’t exit backup mode. <!-- github-comment-id:2529329733 -->
Author
Owner

when it exit SleepMode is only when voltage is high enough. So maybe the delay added is because it needs to re-connect to the 4G Router?

im trying to see/think how to test a similar process here

when it exit SleepMode is only when voltage is high enough. So maybe the delay added is because it needs to re-connect to the 4G Router? im trying to see/think how to test a similar process here <!-- github-comment-id:2529334370 -->
Author
Owner

Hi Ricardo, just be to clear the main problem is that it will not reconnect to Wi-Fi on waking, an so remains in backup mode.
I mention the beacon time in the hope this will help to diagnose the problem.

Hi Ricardo, just be to clear the main problem is that it will not reconnect to Wi-Fi on waking, an so remains in backup mode. I mention the beacon time in the hope this will help to diagnose the problem. <!-- github-comment-id:2529347998 -->
Author
Owner

now I get the scenario more:

as it cant connect to wifi it will get into backup mode. (the delay is the time it tries to connect to the 4G router and fails)

so the problem is WHY IT FAILS? right?

does it reconnect to Wifi at anytime after entering into digiBackUpMode?

now I get the scenario more: as it cant connect to wifi it will get into backup mode. (the delay is the time it tries to connect to the 4G router and fails) so the problem is WHY IT FAILS? right? does it reconnect to Wifi at anytime after entering into digiBackUpMode? <!-- github-comment-id:2529352523 -->
Author
Owner

Hi Ricardo
No once it’s entered backup mode it does not connect to Wi-Fi

I initially assumed the 4G router had shutdown the first time this happened, but when I visited the remote site my phone immediately connected to the 4G router with good internet.

Hi Ricardo No once it’s entered backup mode it does not connect to Wi-Fi I initially assumed the 4G router had shutdown the first time this happened, but when I visited the remote site my phone immediately connected to the 4G router with good internet. <!-- github-comment-id:2529364892 -->
Author
Owner

so we should check about the Wifi connection there. how many Wifi ssid are on the igate/digi station registered?

is the router for 2.4GHz wifi only?

so we should check about the Wifi connection there. how many Wifi ssid are on the igate/digi station registered? is the router for 2.4GHz wifi only? <!-- github-comment-id:2529387344 -->
Author
Owner

There is just one SSID registered. The router is only 2.4GHz

There is just one SSID registered. The router is only 2.4GHz <!-- github-comment-id:2529409220 -->
Author
Owner

will check for info about this problem as it should work without any issues

will check for info about this problem as it should work without any issues <!-- github-comment-id:2529425269 -->
Author
Owner

Thanks Ricardo
Just to maybe help diagnose the problem. When the igate wakes, there is no beacon txt with your Githhub link and build date, like you see on a restart.

Thanks Ricardo Just to maybe help diagnose the problem. When the igate wakes, there is no beacon txt with your Githhub link and build date, like you see on a restart. <!-- github-comment-id:2529440372 -->
Author
Owner

Hi Ricardo, I have emulated the remote igate setup except using my home LAN and everything works fine.
It is pointing to something to do with waking up the 4G router. It fails to connect to the router on wake from sleep, but will connect on a power cycle of the board. Maybe I can add a delay or increase the Wi-Fi reconnect attempts?

Thanks
Paul

Hi Ricardo, I have emulated the remote igate setup except using my home LAN and everything works fine. It is pointing to something to do with waking up the 4G router. It fails to connect to the router on wake from sleep, but will connect on a power cycle of the board. Maybe I can add a delay or increase the Wi-Fi reconnect attempts? Thanks Paul <!-- github-comment-id:2531281732 -->
Author
Owner

Once I added a delay to start again after boot but this must be flashed from vscode to test

Once I added a delay to start again after boot but this must be flashed from vscode to test <!-- github-comment-id:2531814189 -->
Author
Owner

Hi Ricardo, thanks, I am using OTA updates so will create a new bin file in VS code and give it a try.
It will be few days before I can get to the site to try it.

Thanks
Paul.

Hi Ricardo, thanks, I am using OTA updates so will create a new bin file in VS code and give it a try. It will be few days before I can get to the site to try it. Thanks Paul. <!-- github-comment-id:2532169409 -->
Author
Owner

Hi Ricardo I will close this issue. The issue seems to be the router. Looking at the code I can see the 1:01 delay is 2 attempts at of 30 seconds trying to reconnect Wi-Fi before dropping back to Digi backup. I also realised that it worked when I cycled the power as my phone had already woke the router. Still not sure why my phone wakes the router but esp32 doesn’t. I will try a different router.
Thanks
Paul.

Hi Ricardo I will close this issue. The issue seems to be the router. Looking at the code I can see the 1:01 delay is 2 attempts at of 30 seconds trying to reconnect Wi-Fi before dropping back to Digi backup. I also realised that it worked when I cycled the power as my phone had already woke the router. Still not sure why my phone wakes the router but esp32 doesn’t. I will try a different router. Thanks Paul. <!-- github-comment-id:2535558918 -->
Author
Owner

Closed as previous comment.

Closed as previous comment. <!-- github-comment-id:2535562862 -->
Author
Owner

Hi Ricardo I will close this issue. The issue seems to be the router. Looking at the code I can see the 1:01 delay is 2 attempts at of 30 seconds trying to reconnect Wi-Fi before dropping back to Digi backup. I also realised that it worked when I cycled the power as my phone had already woke the router. Still not sure why my phone wakes the router but esp32 doesn’t. I will try a different router. Thanks Paul.

would love to see a way to validate that esp32 wakes up router too

lets hope we find a way.

> Hi Ricardo I will close this issue. The issue seems to be the router. Looking at the code I can see the 1:01 delay is 2 attempts at of 30 seconds trying to reconnect Wi-Fi before dropping back to Digi backup. I also realised that it worked when I cycled the power as my phone had already woke the router. Still not sure why my phone wakes the router but esp32 doesn’t. I will try a different router. Thanks Paul. would love to see a way to validate that esp32 wakes up router too lets hope we find a way. <!-- github-comment-id:2535568899 -->
adam changed title from igate not reconnecting to Wi-Fi after wake from sleep to igate not reconnecting to Wi-Fi after wake from sleep 2026-10-27 16:34:45 +01:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/LoRa_APRS_iGate#151