So I'm a little at my wits' end here. I have a device with WiFi capabilities connected to my WiFi router. It is quite literally 5 meters away from the router, and it works fine and fast when it's active, but somehow sometimes completely loses it.
From what I can tell, power management is off, so it doesn't look like it's falling asleep, but that is what it feels like.
I've ran a quick script on it an entire day to check for wlan0's IP periodically every minute to see if it loses connection to the router, but that didn't seem the case, it kept its IP constantly. It just seems to completely drop out after a while.
This is the configuration output:
wlan0 IEEE 802.11 ESSID:"Koets IoT"
Mode:Managed Frequency:2.472 GHz Access Point: 18:A6:F7:5F:85:D9
Bit Rate=43.3 Mb/s Tx-Power=31 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=45/70 Signal level=-72 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
lo no wireless extensions.
It also seems to do well in terms of connectivity:
PING 192.168.1.101 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=128 time=2.36 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=128 time=5.19 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=128 time=5.44 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=128 time=5.43 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=128 time=5.34 ms
64 bytes from 192.168.1.1: icmp_seq=6 ttl=128 time=5.24 ms
64 bytes from 192.168.1.1: icmp_seq=7 ttl=128 time=5.87 ms
64 bytes from 192.168.1.1: icmp_seq=8 ttl=128 time=5.29 ms
Anything I can look or test for? I'd really like it to be stable. I have considered running scripts to restart its networking if it fails to respond, but that would be treating the symptoms and not the larger problem.