WiFi Drops
Closed this issue · 3 comments
msolters commented
The wlan0
interface seems to lose its inet addr
(ipv4) after several hours. Further, it seems that wpa_supplicant
dies.
This may or may not be due to wpa_supplicant
being launched as a child of stdbuf
.
We must either fix wpa_supplicant
or respawn it.
msolters commented
- Run
wpa_supplicant
as a-B
background process inside a self-restartingsystemd
service wrapper so that it will never permanently die. - We can use
-f logfile.txt
argument to redirectwpa_supplicant
logging to an external file, and then - Use https://github.com/lucagrulla/node-tail to analyze this file's output.
msolters commented
The wpa-tail
branch definitely works as a drop-in for the previous solution, and it also offers us the capability to listen for more lines -- such as CTRL-EVENT-DISCONNECT
to trigger a "disconnected" state (change LED colour etc)
msolters commented
The last couple sections of this article have some ideas regarding general keep-alive traffic (but not withstanding fatal death of the wpa_supplicant
daemon)