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:
You can install mainsail sonar and enable it. It is just a β€œkeep alive” for wifi connections
Jump to solution
15 Replies
danielk
danielkβ€’2mo ago
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.
Thane_Blackwood
Thane_BlackwoodOPβ€’2mo ago
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
danielk
danielkβ€’2mo ago
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
Thane_Blackwood
Thane_BlackwoodOPβ€’2mo ago
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 πŸ˜…
danielk
danielkβ€’2mo ago
πŸ˜„ 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
MDFPereira
MDFPereiraβ€’2mo ago
You can install mainsail sonar and enable it. It is just a β€œkeep alive” for wifi connections
MDFPereira
MDFPereiraβ€’2mo ago
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.
MDFPereira
MDFPereiraβ€’2mo ago
On sonar.conf just change enable: false to true
Thane_Blackwood
Thane_BlackwoodOPβ€’2mo ago
Thanks! I'll give that a go tomorrow!
MDFPereira
MDFPereiraβ€’2mo ago
You welcome
danielk
danielkβ€’5w ago
I installed sonar yesterday and left the Pi running over night, so far it seems to solve the problem. Thank you very much! πŸ‘
danielk
danielkβ€’4w ago
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
miklschmidt
miklschmidtβ€’4w ago
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:
No description
miklschmidt
miklschmidtβ€’4w ago
ie, if you're having wifi problems, it's likely power or access point / router related.
danielk
danielkβ€’4w ago
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.

Did you find this page helpful?