Constant 'connection interrupted'
-
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
-
I couldn't roll back to the old firmware, but I put my machine in AP mode and found that it does not drop the connection like it does in client mode. It does do something weird every hour- I get messages about a possible virus attack on the console. Here's the console text including results of M122:
11/22/2020, 6:13:42 PM: Connected to 192.168.0.254 11/22/2020, 6:14:07 PM: M32 "0:/gcodes/11-22-20-001.gcode": File 0:/gcodes/11-22-20-001.gcode selected for printing 11/22/2020, 6:14:42 PM: Connection interrupted, attempting to reconnect...: Network error 11/22/2020, 6:15:18 PM: Connection established 11/22/2020, 6:21:26 PM: : Finished printing file 0:/gcodes/11-22-20-001.gcode, print time was 0h 7m 11/22/2020, 6:35:53 PM: : Warning: IP 192.168.0.154 requested file 'rootr1/ME4wTDBKMEgwR...' from HTTP server, possibly a virus attack Warning: IP 192.168.0.154 requested file 'rootr3/ME8wTTBLMEkwR...' from HTTP server, possibly a virus attack Warning: IP 192.168.0.154 requested file 'gsextendcodesignsha2...' from HTTP server, possibly a virus attack Warning: IP 192.168.0.154 requested file 'gstimestampingsha2g2...' from HTTP server, possibly a virus attack 11/22/2020, 7:36:13 PM: : Warning: IP 192.168.0.154 requested file 'rootr1/ME4wTDBKMEgwR...' from HTTP server, possibly a virus attack Warning: IP 192.168.0.154 requested file 'rootr3/ME8wTTBLMEkwR...' from HTTP server, possibly a virus attack Warning: IP 192.168.0.154 requested file 'gsextendcodesignsha2...' from HTTP server, possibly a virus attack Warning: IP 192.168.0.154 requested file 'gstimestampingsha2g2...' from HTTP server, possibly a virus attack 11/22/2020, 7:58:32 PM: M32 "0:/gcodes/11-19-20-002.gcode": File 0:/gcodes/11-19-20-002.gcode selected for printing 11/22/2020, 8:12:02 PM: M25: Resume state saved 11/22/2020, 8:12:07 PM: : Printing paused at X600.0 Y990.0 Z0.0 11/22/2020, 8:13:13 PM: M0 H1: Cancelled printing file 0:/gcodes/11-19-20-002.gcode, print time was 0h 13m 11/22/2020, 8:13:28 PM: m84 11/22/2020, 8:21:47 PM: M32 "0:/gcodes/test03.gcode": File 0:/gcodes/test03.gcode selected for printing 11/22/2020, 8:25:24 PM: M122: === Diagnostics === RepRapFirmware for Duet 2 WiFi/Ethernet version 3.1.1 running on Duet WiFi 1.02 or later Board ID: 08DGM-917DA-G4MSJ-6JTF2-3SD6J-KTNHA Used output buffers: 3 of 24 (13 max) === RTOS === Static ram: 27980 Dynamic ram: 92564 of which 932 recycled Exception stack ram used: 544 Never used ram: 9052 Tasks: NETWORK(ready,412) HEAT(blocked,1456) MAIN(running,1732) IDLE(ready,80) Owned mutexes: WiFi(NETWORK) === Platform === Last reset 02:14:41 ago, cause: software Last software reset time unknown, reason: User, spinning module GCodes, available RAM 9292 bytes (slot 3) Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0041f000 BFAR 0xe000ed38 SP 0xffffffff Task MAIN Error status: 0 MCU temperature: min 33.5, current 39.4, max 39.6 Supply voltage: min 24.1, current 24.3, max 24.6, under voltage events: 0, over voltage events: 0, power good: yes Driver 0: standstill, SG min/max not available Driver 1: standstill, SG min/max not available Driver 2: standstill, SG min/max not available Driver 3: standstill, SG min/max not available Driver 4: standstill, SG min/max not available Date/time: 2020-11-22 20:25:23 Cache data hit count 4294967295 Slowest loop: 266.72ms; fastest: 0.13ms I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0 === Storage === Free file entries: 9 SD card 0 detected, interface speed: 20.0MBytes/sec SD card longest read time 2.7ms, write time 104.3ms, max retries 0 === Move === Hiccups: 2101(0), FreeDm: 167, MinFreeDm: 159, MaxWait: 5826231ms Bed compensation in use: none, comp offset 0.000 === MainDDARing === Scheduled moves: 233, completed moves: 224, StepErrors: 0, LaErrors: 0, Underruns: 0, 0 CDDA state: 3 === AuxDDARing === Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0 CDDA state: -1 === Heat === Bed heaters = -1 -1 -1 -1, chamberHeaters = -1 -1 -1 -1 === GCodes === Segments left: 1 Movement lock held by null HTTP is idle in state(s) 0 Telnet is idle in state(s) 0 File is doing "G01 X2.673 Y859.133" in state(s) 0 USB is idle in state(s) 0 Aux is idle in state(s) 0 Trigger is idle in state(s) 0 Queue is idle in state(s) 0 Daemon is idle in state(s) 0 Autopause is idle in state(s) 0 Code queue is empty. === Network === Slowest loop: 209.83ms; fastest: 0.00ms Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions HTTP sessions: 1 of 8 - WiFi - Network state is active WiFi module is providing access point Failed messages: pending 0, notready 81, noresp 1 WiFi firmware version 1.23 WiFi MAC address ee:fa:bc:01:df:36 WiFi Vcc 3.35, reset reason Exception WiFi flash size 4194304, free heap 24728 WiFi IP address 192.168.0.254 Connected clients 1 Socket states: 0 0 0 0 0 0 0 0 11/22/2020, 8:36:33 PM: : Warning: IP 192.168.0.154 requested file 'rootr1/ME4wTDBKMEgwR...' from HTTP server, possibly a virus attack Warning: IP 192.168.0.154 requested file 'rootr3/ME8wTTBLMEkwR...' from HTTP server, possibly a virus attack Warning: IP 192.168.0.154 requested file 'gsextendcodesignsha2...' from HTTP server, possibly a virus attack Warning: IP 192.168.0.154 requested file 'gstimestampingsha2g2...' from HTTP server, possibly a virus attack
I was also running wireshark and grabbed all the traffic for about 5 minutes. I stopped capture shortly after the last "virus attack" messages were generated.
-
@mrehorstdmd
Do you have any anti virus software on your PC?https://forum.duet3d.com/topic/18054/virus-warning-message/2?_=1606098311359
-
@mrehorstdmd what is the 192.168.0.154 host? it certainly seems like its got some sort of malware looking for exploits
-
192.168.0.154 is the laptop that is connected to the Duet. Windows defender and Malwarebytes didn't find anything.
-
@mrehorstdmd well in some cases it's the av software that's sending some packets that are making it puke. Not sure if that's the case here though. Try disabling malwarebytes.
-
didn't see packets like that in the first wireshark capture where it did go wonky. (not sure if non-unicast traffic would be captured though)
netstat -o -m | find "192.68.0.254:80"
should list he PID for the process behind the request andtasklist /FI "PID eq 1234"
should find the executable name (replacing 1234 with the actual process id from netstat)downside is you have to run the commands when the its being sent so tricky to do on once in a while stuff without getting more creative.
-
@Phaedrux said in Constant 'connection interrupted':
@mrehorstdmd well in some cases it's the av software that's sending some packets that are making it puke. Not sure if that's the case here though. Try disabling malwarebytes.
Malwarebytes wasn't running when those messages were generated. Windows might have been doing it...
-
@mrehorstdmd said in Constant 'connection interrupted':
I couldn't roll back to the old firmware
Probably missing the IAP files from RRF2. Try grabbing iap4e and iap4s from the 2.03 release and putting them in sys. Then try uploading the full 2.05.1 release zip.
I put my machine in AP mode and found that it does not drop the connection like it does in client mode.
Well at least that means the module is probably OK.
Malwarebytes wasn't running when those messages were generated. Windows might have been doing it...
Maybe. That would seem aggressive for Windows Defender.
-
@Phaedrux said in Constant 'connection interrupted':
Probably missing the IAP files from RRF2. Try grabbing iap4e and iap4s from the 2.03 release and putting them in sys. Then try uploading the full 2.05.1 release zip.
if hes running 3.1.1 then he would need the IAP files from 3.1.1 to downgrade to 2.05.1 if thats the issue.
-
Replacement Wi-Fi module has arrived, will look to get it installed in the next couple of weeks (hopefully without frying the Duet)
Took 2 weeks to arrive from Germany, roughly $6CDN
-
@Foden said in Constant 'connection interrupted':
Able to sign into in on my laptop, but still get drops
I noticed in the diagnostics that i do NOT see what I should, I see
WiFi Vcc 3.45, reset reason Unknown
rather than
WiFi Vcc 3.42, reset reason Turned on by main processor
"reason unknown" is normal for DuetWiFiServer 1.23. You should see "turned on by main processor" if running 1.24.
Did you try changing WiFi channel on your router?