Printer is loosing connection to network
Dear all,
i do have a little issue with my printer. Somehow it is loosing the connection to the network. I am using a Klipperscreen and everything looks normal. I just realise it if I would like to controll the printer over the webinterface. It seems like that moonraker is crashing or so.
My router tells me that the printer is connected, but using the IP adress gives me a connection timeout. Does anyone has an idea why the network service of the printer is crashing? after switching the printer off and on again, its working as it should.
the only thing i noticed is that by trying to restart the printer over the klipper screen, a job is running so the printer refuses to reboot.
the time the job is running is increasing constantly. until it stops at 5 min or so. (picture attached). After the job is running out of time, the printer is rebooting and runs normal and is also accessable over the web interface. can someone give me a hint how to solve it?
30 Replies

Are you running it over wi-fi? If so how close are you to your router. The wifi with these is pretty bad since it's in a metal box. I was constantly losing connection until I installed an external antenna. Others go wired.
Well… the router is approximately 30cm away. Only one wall between. However, the router says that the printer is connected. It seems like moonraker crashed. I just can’t get any connection to the printer even it is logged in the network. It’s not accessible over the web interface
are you able to ssh in? That would let you know if it is truly still on the network and the web server crashed, or it actually isn't online
well... fritzbox tells me its connected as you can see from this screenshot. however, the ssh connection timed out.
the question is why this happens.

I'm having a similar problem. The only way to connect is to find the IP address through my router.
i gave my printer a fixed IP adress. so its always the same. the problem is something within the system. either hardware side or software. I have no idea at the moment. thats why I opened a new support thread.
If it helps you, give your printer a fixed IP and you will be fine hopefully.
Can you try ping -t and check if you get lost packets
How to?
From windows cmd (same ass ssh). ping -t 192.l168.178.101 Let it run for a cuple of minutes, then cancel with Ctrl-C. After cancel you will get a ping-statistik (Gesendet , Empfangen, Verloren).
Please retry ssh with windows firewall disabled.
now the printer is working but without any response from the ping test:
by "working" do you mean its printing, or you can connect to the web interface?
I can do everything over the klipper screen. Load material, print stuff. but what i cant do is controlling the printer over the web interface.
it seems like something crashes from time to time. if there is no access over the web interface, then there is also no ping possible. if there is access over the web interface, then the ping is normal.
That makes sense. It doesn't need network access to continue printing, but obviously to upload new files or start new prints remotely it'll need to get on. I'd search this channel for other solutions, the easiest to try first is to use 5GHz. The raspi seems to have a more solid connection using that.
I do have 2 other Voron printers and creality K2plus as well as 2 qidi printers. Non of them is loosing the connection. The question is now: why does the ratrig printer is having connection issues? I don’t think that the hardware is the reason. Is there any possibility to get the network manager in RatOS to work? It’s the only Klipper printer where the network manager doesn’t work through the Klipper screen.
is it possible yes, but it will be a lot of work. The fastest way to get it supported is to submit a pull request with the needed changes
Do you happen to have a USB wifi dongle floating around to just try? As you said it's a good chance it's not the problem but would be good to positively rule out.
Though there are some configuration changes you have to make to it work through a dongle.
Ok, can you tell me how to?
Well…. I used the pi on the Voron and the pi from the Voron inside the ratrig. Same thing happened. So it’s most likely not hardware related.
Learn how about custompios and rewrite any of the modules in https://github.com/Rat-OS/RatOS/tree/v2.1.x/src/modules that need changes due to networking changing to networkmanager
Every single module must be changed so that the network manager is working? I am not a programmer and I do not have any idea about it. But that seems to be much work…
possibly? I am not sure which exact ones would need editing, that is part of the work you are requesting. It seems like a lot of work, because it is a lot of work
Do you by chance have a fan running over the RPi closely to the board? This completely ruined WiFi stabillity for me on my RPi 4. When I removed the small 5v noctua fan I had running over the RPi, WiFi connection issues went away.
I see you have a screen attached do you have a poor quality hdmi cable ? ... seems like hdmi and 2.4ghz wifi don't work well together on a rpi 4 when the cable is long/poor quality ... so like was already mentioned ensure you are using 5ghz, or try changing/removing the hdmi cable temporarily and see if the connection issue resolves itself.
No, only the big one over the mainboard.
Well…. Since a week there is no issue. The printer was printing and on idle and is still connected to the WiFi. I can’t figure out when and why this breakdown happens. It’s not frequently crashing. It’s just random from time to time that it is loosing the connection.
is it a mesh wifi? perhaps the rpi isn't behaving nicely with AP switching
No, the router is 1m away. Just behind a wall. There is no mesh or Range extender
You've still not said 2.4 or 5ghz ?
It seems to be 5ghz. But since I opened this topic, it never happened again. And before opening the topic, it happened every other day.
Now it happened again. I had the web interface open and now it lost connection again. maybe the wifi module is crashing or the system which operates the wifi module. since my last post the connection was stabel and now out of nothing it happened again.