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.
A Job is running for DHCP Client Daemon.
A Job is running for DHCP Client Daemon.
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
Chris
ChrisOP2mo ago
No description
BlueDragon424
BlueDragon4242mo ago
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.
Chris
ChrisOP2mo ago
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
TheTik
TheTik2mo ago
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
Chris
ChrisOP2mo ago
well... fritzbox tells me its connected as you can see from this screenshot. however, the ssh connection timed out.
C:\>ssh pi@192.168.178.101
ssh: connect to host 192.168.178.101 port 22: Connection timed out

C:\>
C:\>ssh pi@192.168.178.101
ssh: connect to host 192.168.178.101 port 22: Connection timed out

C:\>
the question is why this happens.
No description
AdrianJ
AdrianJ2mo ago
I'm having a similar problem. The only way to connect is to find the IP address through my router.
Chris
ChrisOP2mo ago
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.
Hergen66
Hergen662mo ago
Can you try ping -t and check if you get lost packets
Chris
ChrisOP2mo ago
How to?
Hergen66
Hergen662mo ago
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).
Chris
ChrisOP2mo ago
Ping-Statistik für 192.168.178.101:
Pakete: Gesendet = 195, Empfangen = 195, Verloren = 0
(0% Verlust),
Ca. Zeitangaben in Millisek.:
Minimum = 1ms, Maximum = 45ms, Mittelwert = 3ms
STRG-C
Ping-Statistik für 192.168.178.101:
Pakete: Gesendet = 195, Empfangen = 195, Verloren = 0
(0% Verlust),
Ca. Zeitangaben in Millisek.:
Minimum = 1ms, Maximum = 45ms, Mittelwert = 3ms
STRG-C
Hergen66
Hergen662mo ago
Please retry ssh with windows firewall disabled.
Chris
ChrisOP2mo ago
now the printer is working but without any response from the ping test:
Ping wird ausgeführt für 192.168.178.101 mit 32 Bytes Daten:
Zeitüberschreitung der Anforderung.
Ping wird ausgeführt für 192.168.178.101 mit 32 Bytes Daten:
Zeitüberschreitung der Anforderung.
TheTik
TheTik2mo ago
by "working" do you mean its printing, or you can connect to the web interface?
Chris
ChrisOP2mo ago
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.
TheTik
TheTik2mo ago
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.
Chris
ChrisOP2mo ago
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.
blacksmithforlife
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
BlueDragon424
BlueDragon4242mo ago
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.
Chris
ChrisOP2mo ago
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.
blacksmithforlife
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
Chris
ChrisOP2mo ago
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…
blacksmithforlife
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
Steef
Steef2mo ago
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.
LucidityCrash
LucidityCrash2mo ago
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.
Chris
ChrisOP2mo ago
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.
Steef
Steef2mo ago
is it a mesh wifi? perhaps the rpi isn't behaving nicely with AP switching
Chris
ChrisOP2mo ago
No, the router is 1m away. Just behind a wall. There is no mesh or Range extender
LucidityCrash
LucidityCrash2mo ago
You've still not said 2.4 or 5ghz ?
Chris
ChrisOP3w ago
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.

Did you find this page helpful?