How to troubleshoot network connecction issue

My LoRa32 V2.1_1.6 with OMG ver 1.6 stops responding after a while.
I suspect network issues.
How do I troubleshoot? Is there any logging available?
Can I configure it to use static IP, instead of DHCP? How?

Hi @fring

have a look at this section in User_config.h

for using static IP.

What make of router do you have, and are you able to view any router logs of possible reconnection/DHCP lease renewal issues?

The router is an “Asus RT-AC2900”.
The only thing I can see from the router log is:

Jul 21 14:02:57 wlceventd: wlceventd_proc_event(508): eth5: Disassoc D4:D4:DA:82:EC:68, status: 0, reason: Disassociated because sending station is leaving (or has left) BSS (8), rssi:0
Jul 21 14:02:57 wlceventd: wlceventd_proc_event(527): eth5: Auth D4:D4:DA:82:EC:68, status: Successful (0), rssi:0
Jul 21 14:02:57 wlceventd: wlceventd_proc_event(556): eth5: Assoc D4:D4:DA:82:EC:68, status: Successful (0), rssi:0
Jul 21 14:03:01 wlceventd: wlceventd_proc_event(508): eth5: Disassoc D4:D4:DA:82:EC:68, status: 0, reason: Disassociated because sending station is leaving (or has left) BSS (8), rssi:0
Jul 21 14:03:01 wlceventd: wlceventd_proc_event(527): eth5: Auth D4:D4:DA:82:EC:68, status: Successful (0), rssi:0
Jul 21 14:03:01 wlceventd: wlceventd_proc_event(556): eth5: Assoc D4:D4:DA:82:EC:68, status: Successful (0), rssi:0
Jul 21 14:11:20 wlceventd: wlceventd_proc_event(491): eth5: Deauth_ind D4:D4:DA:82:EC:68, status: 0, reason: Deauthenticated because sending station is leaving (or has left) IBSS or ESS (3), rssi:-32
Jul 21 14:11:26 wlceventd: wlceventd_proc_event(527): eth5: Auth D4:D4:DA:82:EC:68, status: Successful (0), rssi:0
Jul 21 14:11:26 wlceventd: wlceventd_proc_event(556): eth5: Assoc D4:D4:DA:82:EC:68, status: Successful (0), rssi:0
Jul 21 14:11:39 wlceventd: wlceventd_proc_event(508): eth5: Disassoc D4:D4:DA:82:EC:68, status: 0, reason: Disassociated due to inactivity (4), rssi:0

No really sure if this is similar to the WiFi disconnection/re-connection problems I have been seeing with my router, but could you test it by building with using the older platform by swapping out

esp32_platform = espressif32@6.1.0

with

esp32_platform = espressif32@3.5.0

in the platformio.ini file, and let us know if it makes any difference?

Or alternatively with the above mentioned static IP assignment.

I also started a test build, which is available at

with SHA: 7f74a6, until it gets overwritten again by the nightly build in a few hours.

Ok, I have deployed with static IP, now.
Let’s wait and see how it works out.

This is still an issue.
The gateway always stops responding after an uptime of 130 000-140 000 seconds.

How is the memory looking on this same time range ?

Uptime:

Memory: