Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Constant 'connection interrupted'

    Scheduled Pinned Locked Moved
    General Discussion
    9
    92
    4.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • mrehorstdmdundefined
      mrehorstdmd
      last edited by

      @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.

      https://drmrehorst.blogspot.com/

      1 Reply Last reply Reply Quote 0
      • Phaedruxundefined
        Phaedrux Moderator
        last edited by

        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.

        Z-Bot CoreXY Build | Thingiverse Profile

        1 Reply Last reply Reply Quote 0
        • A Former User?
          A Former User
          last edited by

          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.
          78239660-f4ac-47f7-aa55-1b4434475a2a-image.png

          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.

          mrehorstdmdundefined 1 Reply Last reply Reply Quote 1
          • mrehorstdmdundefined
            mrehorstdmd @A Former User
            last edited by

            @bearer OK, thanks. I'll try it tonight and post the result.

            https://drmrehorst.blogspot.com/

            1 Reply Last reply Reply Quote 0
            • mrehorstdmdundefined
              mrehorstdmd
              last edited by

              OK, I grabbed some stuff via wireshark. There's a connection drop near the start of the file and another near the end.

              wireshark capture

              https://drmrehorst.blogspot.com/

              1 Reply Last reply Reply Quote 0
              • A Former User?
                A Former User
                last edited by A Former User

                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.

                1 Reply Last reply Reply Quote 1
                • Fodenundefined
                  Foden
                  last edited by Foden

                  This is typical when the connection drops
                  Picture3.png

                  when things are OK
                  Picture4.png

                  1 Reply Last reply Reply Quote 0
                  • Vetiundefined
                    Veti
                    last edited by

                    seems like high packet loss.

                    1 Reply Last reply Reply Quote 0
                    • Fodenundefined
                      Foden
                      last edited by

                      Pretty much, as once the Duet drops off the web interface keeps trying to reconnect

                      1 Reply Last reply Reply Quote 0
                      • A Former User?
                        A Former User
                        last edited by

                        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.

                        Fodenundefined 1 Reply Last reply Reply Quote 0
                        • jens55undefined
                          jens55
                          last edited by

                          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.

                          BoAundefined 1 Reply Last reply Reply Quote 0
                          • BoAundefined
                            BoA @jens55
                            last edited by

                            @jens55 You had -60 dbm with AP next to the duet? Would be on the low side then.

                            1 Reply Last reply Reply Quote 0
                            • A Former User?
                              A Former User
                              last edited by

                              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

                              1 Reply Last reply Reply Quote 0
                              • jens55undefined
                                jens55
                                last edited by

                                Sorry, to clarify, the (around) -60 dbm was the normal setup and not with the access point right next to the printer.

                                1 Reply Last reply Reply Quote 0
                                • Fodenundefined
                                  Foden @A Former User
                                  last edited by Foden

                                  @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

                                  1 Reply Last reply Reply Quote 0
                                  • mrehorstdmdundefined
                                    mrehorstdmd
                                    last edited by

                                    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.

                                    https://drmrehorst.blogspot.com/

                                    A Former User? Phaedruxundefined 2 Replies Last reply Reply Quote 0
                                    • Phaedruxundefined
                                      Phaedrux Moderator
                                      last edited by Phaedrux

                                      @mrehorstdmd
                                      Do you have any anti virus software on your PC?

                                      https://forum.duet3d.com/topic/18054/virus-warning-message/2?_=1606098311359

                                      Z-Bot CoreXY Build | Thingiverse Profile

                                      1 Reply Last reply Reply Quote 0
                                      • A Former User?
                                        A Former User @mrehorstdmd
                                        last edited by

                                        @mrehorstdmd what is the 192.168.0.154 host? it certainly seems like its got some sort of malware looking for exploits

                                        1 Reply Last reply Reply Quote 0
                                        • mrehorstdmdundefined
                                          mrehorstdmd
                                          last edited by

                                          192.168.0.154 is the laptop that is connected to the Duet. Windows defender and Malwarebytes didn't find anything.

                                          https://drmrehorst.blogspot.com/

                                          Phaedruxundefined 1 Reply Last reply Reply Quote 0
                                          • Phaedruxundefined
                                            Phaedrux Moderator @mrehorstdmd
                                            last edited by

                                            @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.

                                            Z-Bot CoreXY Build | Thingiverse Profile

                                            mrehorstdmdundefined 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Unless otherwise noted, all forum content is licensed under CC-BY-SA