Constant 'connection interrupted'
-
Rolling back firmware would allow us to isolate it to either hardware or firmware issue.
Testing in AP mode would help remove the router from the equation.
Getting some wireshark data might help show if it's environmental.
-
@Phaedrux I'll see if I can roll it back. I can at least put it in AP mode. I'll get on it when I get home from work.
-
@Phaedrux said in Constant 'connection interrupted':
Rolling back firmware would allow us to isolate it to either hardware or firmware issue.
I am on 3.1.1 and the issue exists there.
-
@jens55 He was on 2.x before the update to 3.1.1. But also at the same time switched from AP mode to client mode. So wondering if it's related to the firmware or if the problem would have existed in 2.x if he had been in client mode then.
We shall see.
-
On my setup If I power up the printer, go to Console and leave it alone I do not get any drops.
However, when I go to Jobs, System I will start to get drops - these areas communicate with the sdcard. I have reformatted, FAT32, 3 SD card, 4, 16 & 32Gb and have the same issue on all 3.I'll also take a look at Wireshark
(I have ordered a replacement wi-fi module JIC) -
@Phaedrux I wasn't able to do any testing last night, but I have installed Wireshark on my laptop that I use to talk to the Duet. I assume that I will need to close all browser tabs except the DWC, and probably disable the VPN, and then start capturing data from the Duet. Is that going to provide the data you need to see? I don't know what the data from Wireshark means- I'll study the documentation a bit today.
-
I'm not really a wireshark guru. I've only used it a handful of times quite a while ago. I used a tutorial to sort of figure it out.
https://www.howtogeek.com/104278/how-to-use-wireshark-to-capture-filter-and-inspect-packets/
@bearer has a better grip on it I'm sure though.
-
it'd probably be best to change as little as possible but use the capture filter instead to cut down on the noise.
type in the filter and double click the adapter of choice to start logging.
you don't have to worry about other tabs being captured, unless they send traffic to the Duet if you use the capture filter as shown.
-
@bearer OK, thanks. I'll try it tonight and post the result.
-
OK, I grabbed some stuff via wireshark. There's a connection drop near the start of the file and another near the end.
-
At about 16 seconds and again at 148 can see the browser reconnecting and the uptime counter the duet not resetting and the duet going radio silent a few seconds earlier.
there are some duplicate and resent frames, will have to spend some time later seeing if thats what trips up the duet but looks like the issue is on the duet's wifi end at a glance
edit: btw are you able to have a usb serial terminal connected while this is happening? could be enabling debugging for either wifi or http outputs something relevant.
-
This is typical when the connection drops
when things are OK
-
seems like high packet loss.
-
Pretty much, as once the Duet drops off the web interface keeps trying to reconnect
-
Maybe the Duet is running out of connections as a result of a lossy link and reconnects? But the pattern is similar in OPs capture (just a fraction of mangled packets).
Debugging the wifi or just improving the signal quality is the lowest hanging fruit as i see it.
-
One of my tests when I had these issues was to put an access point right next to the Duet - didn't make a difference. Signal levels also seemed good (around -60dbm). At the same time I was having connection issues, a pi zero W with a camera that watches my printer did not have any connection issues.
Of course this was only my situation at the time (and I did not run wireshark) and so might be completely unrelated. -
@jens55 You had -60 dbm with AP next to the duet? Would be on the low side then.
-
There is such a thing as too close when it comes to radio stuff.
But given its not a common issue I'm more inclined to think its triggered by environment or setup. The more info we can gather the easier it would be for devs to pinpoint and fix
-
Sorry, to clarify, the (around) -60 dbm was the normal setup and not with the access point right next to the printer.
-
@bearer Only thing having issues is my Duet, everything else Wi-Fi related is fine. I have a wireless camera on the printer using the same SSID and it's OK. Definitely the Duet, likely the wifi module as Phaedrux suggested.
Nothing changed on the network environment and life was hunky dory until firmware and Duet web interface upgrade. If i get chance over the weekend I will look to go back to an earlier setup