WiFi disconnects after a few hours
Hi all. I have a fully stock V-Core 4 IDEX 500. I have no problems setting up prints etc, but my printer is not very local to me and it's handy to check print completion etc via mainsail. Trouble is after a few hours the Pi seems to disconnect from the WiFi. Printer still running fine, if I put an ethernet cable in then I can access mainsail that way, but it disappears off the WiFi network and that requires me being there in person. Any thoughts how I can go about troubleshooting this? Many thanks!
Solution:Jump to solution
You can install mainsail sonar and enable it. It is just a βkeep aliveβ for wifi connections
15 Replies
Same problem here πββοΈ Haven't tried the ethernet cable yet because I don't have a socket nearby. I changed from 5 GHz to 2.4 GHz WiFi and that seemed to help for a day or two, but then the problem occured again. Maybe a little bit less frequent though.
Glad I'm not the only one at least! Can't quite fathom it/don't know how I would even start trying to log it to see if there's a common reason for it to fall over
I also have no idea where to look at. Was so happy when it disappeared for 1-2 days when I switched WiFi from 5 to 2.4 GHz but then it came back π
My WiFi connection just died again, and I tried the ethernet port, it still works, so seems to be the same problem as on your machine
I've been trying to figure out if it always happens after a set amount of time, but I don't have time to sit next to a printer pinging it all day π
π me neither. I also don't know what log files to look at, I guess as it seems to be a pi related problem, there can't be anything in the mainsail/klipper log files that are accessible via RatOS
Solution
You can install mainsail sonar and enable it. It is just a βkeep aliveβ for wifi connections
GitHub
sonar/README.md at main Β· mainsail-crew/sonar
Sonar is a small Keepalive daemon for MainsailOS. Contribute to mainsail-crew/sonar development by creating an account on GitHub.
On sonar.conf just change enable: false to true
Thanks! I'll give that a go tomorrow!
You welcome
I installed sonar yesterday and left the Pi running over night, so far it seems to solve the problem. Thank you very much! π
I got some system packages updated yesterday via the RatOS update manager and after that, the WiFi disconnection problem started over again. I now uninstalled and reinstalled sonar in hope that it solves the problem again. Anything to consider regarding sonar when installing system updates?
So the Pi ran without problems over night after reinstalling sonar, now the WiFi died again while I was working on some config files (nothing WiFi related and didn't restart the Firmware yet, just some custom macro stuff). I basically edited one file, saved it without restarting, checked something else in the dashboard, then switched to my browser to look up a command and 10 sec later when I wanted to open up the config file again the connection was gone.
ethernet still works though
I've had an ssh connection open to a printer in another room on wifi for the past 30 days, it's been running for 77. Hasn't dropped once:

ie, if you're having wifi problems, it's likely power or access point / router related.
I also checked the settings of my access point/router, but couldn't find anything strange in there. Other devices don't have that problem. I now use a separate wifi client that is then connected to the Pi via ethernet, so I can restart the client without shutting down the Pi when the connection fails again, seems to work good so far, so disconnections.