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.
    • Phaedruxundefined
      Phaedrux Moderator
      last edited by

      So it seems like an SD card issue?

      Z-Bot CoreXY Build | Thingiverse Profile

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

        @Phaedrux Sadly no, even when the printer is idle I get drop outs. I have a Wi-Fi extender 12" away from the Duet, and it's connected to it. Still get drop outs. Connection stats for the Duet to the Wi-Fi extender are -21dbm 53Mbps.

        So.... looks like your initial prognosis was correct 😖 Wi-Fi module is fubar'd and on it's way out and needs to be replaced 😞

        I will try another, 3rd, SD card to triple check

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

          Just to clarify because I may have missed it in some edits, but were you able to get access point mode working? And were the drops still happening?

          If that was the case, then yes, it's likely the module is failing given that your signal strength is good, no other devices in the area are having issues, and it happens even with the router removed from the equation. We've tried reflashing the wifi server and new SD card.

          Replacing the wifi module isn't the most difficult process but it's not for beginners either.

          Here's an example of it being done with an external antenna version, but it's basically the same.

          https://forum.duet3d.com/topic/2825/converting-the-duet-wifi-to-use-an-external-antenna

          Z-Bot CoreXY Build | Thingiverse Profile

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

            @Foden Same issue with 3 different sd cards, all error checked and formatted FAT32

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

              @Phaedrux Yes, was able to get the AP mode working and connected to it, same network drop problem. Will take a look at the link - thanks again

              I think this is an indication of an issue "WiFi Vcc 3.45, reset reason Unknown" as it doesn't match the expected output

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

                I left the Wi-Fi extender, for now, blasting into the ear of the DuetWiFi, as I don't see it hurting anything - other than the folks across the street 😁
                In desperation, as I don't really want to have to replace the Wi-Fi module - but will if required, I spent the morning redoing everything from scratch, just in case - no change. UNTIL I changed the "Number of maximum AJAX retries" from 3 to 4. No drops in the last 4 hours, for the first 1 1/2hrs I was re-leveling the bed - I mean why not - to see if raising the MCU temp was an issue - seems it was not.

                Usual KOD statement, but looks like the issue, possibly symptom only, was AJAX retry # brought about with a recent upgrade to Duet Wi-Fi 3.1.1. Which I had completely overlooked as a possible culprit. I had upgraded it but then not used the HEVO for awhile as I was using my MakerSelect IIIP.

                Will see if I get any more connection drop outs now I have tempted fate again

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

                  Last post on this, I know everyone will be pleased

                  So, indeed it was the KOD - 30 mins ago back to constant drops again. Best get out the hairdryer, solder and BBQ tongs then......

                  Can you turn the DuetWifi into a DuetEthernet?

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

                    @Foden said in Constant 'connection interrupted':

                    Can you turn the DuetWifi into a DuetEthernet?

                    Yes I believe so. Instead of soldering on a replacement module you could install the socket for the ethernet module.

                    https://www.duet3d.com/DuetAddons/DuetEthernet_Module

                    Z-Bot CoreXY Build | Thingiverse Profile

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

                      Hmm, OK that's an option then, except for the hole I'd have to put in my case 😞 Oh well

                      Thanks again Phaedrux

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

                        I don't want to steal this thread but I'm suddenly having similar problems. I just updated firmware from version 2.something to 3.1.1. At the same time switched from AP mode to client mode. With old firmware and AP mode, it never had a problem. Now I get disconnects about once every minute, almost as if something that's supposed to be doing something every minute to keep the connection alive isn't working. Here's a short portion of the console output:

                        11/15/2020, 6:45:57 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 6:46:11 AM: Connection established
                        11/15/2020, 6:47:18 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 6:47:25 AM: Connection established
                        11/15/2020, 6:48:31 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 6:48:34 AM: Connection established
                        11/15/2020, 6:49:43 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 6:49:46 AM: Connection established
                        11/15/2020, 6:50:55 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 6:50:58 AM: Connection established
                        11/15/2020, 6:52:07 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 6:52:10 AM: Connection established
                        11/15/2020, 6:53:19 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 6:53:22 AM: Connection established
                        11/15/2020, 6:54:31 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 6:54:34 AM: Connection established
                        11/15/2020, 6:55:43 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 6:55:46 AM: Connection established
                        11/15/2020, 6:56:55 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 6:56:58 AM: Connection established
                        11/15/2020, 6:58:07 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 6:58:10 AM: Connection established
                        11/15/2020, 6:59:19 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 6:59:22 AM: Connection established
                        11/15/2020, 7:00:31 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 7:00:34 AM: Connection established
                        11/15/2020, 7:01:43 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 7:01:46 AM: Connection established
                        11/15/2020, 7:02:55 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 7:02:58 AM: Connection established
                        11/15/2020, 7:04:07 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 7:04:10 AM: Connection established
                        11/15/2020, 7:05:19 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 7:05:22 AM: Connection established
                        11/15/2020, 7:06:31 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 7:06:34 AM: Connection established
                        11/15/2020, 7:07:43 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 7:07:46 AM: Connection established
                        11/15/2020, 7:08:55 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 7:08:58 AM: Connection established
                        11/15/2020, 7:10:07 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 7:10:10 AM: Connection established
                        11/15/2020, 7:11:19 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 7:11:22 AM: Connection established
                        11/15/2020, 7:12:31 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 7:12:34 AM: Connection established
                        11/15/2020, 7:13:43 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 7:13:46 AM: Connection established
                        11/15/2020, 7:14:55 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 7:14:58 AM: Connection established
                        11/15/2020, 7:16:07 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 7:16:10 AM: Connection established
                        11/15/2020, 7:17:19 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 7:17:22 AM: Connection established
                        11/15/2020, 7:18:31 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 7:18:34 AM: Connection established
                        11/15/2020, 7:19:43 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 7:19:46 AM: Connection established
                        11/15/2020, 7:20:55 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 7:20:58 AM: Connection established
                        11/15/2020, 7:22:07 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 7:22:10 AM: Connection established
                        11/15/2020, 7:23:19 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 7:23:22 AM: Connection established
                        11/15/2020, 7:24:31 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 7:24:34 AM: Connection established
                        11/15/2020, 7:25:43 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 7:25:46 AM: Connection established
                        11/15/2020, 7:26:55 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 7:26:58 AM: Connection established
                        11/15/2020, 7:28:07 AM: Connection interrupted, attempting to reconnect...: HTTP request timed out
                        11/15/2020, 7:28:10 AM: Connection established

                        I have a Duet wifi with external antenna so there's no LED on the wifi module.

                        M122 gives this:

                        11/15/2020, 9:06:33 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 (19 max)
                        === RTOS ===
                        Static ram: 27980
                        Dynamic ram: 92564 of which 932 recycled
                        Exception stack ram used: 552
                        Never used ram: 9044
                        Tasks: NETWORK(ready,388) HEAT(blocked,1456) MAIN(running,2120) IDLE(ready,80)
                        Owned mutexes: WiFi(NETWORK)
                        === Platform ===
                        Last reset 07:09:20 ago, cause: software
                        Last software reset at 2020-11-15 13:57, reason: User, spinning module GCodes, available RAM 9044 bytes (slot 3)
                        Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0441f000 BFAR 0xe000ed38 SP 0xffffffff Task MAIN
                        Error status: 0
                        MCU temperature: min 36.9, current 37.5, max 39.5
                        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-15 21:06:30
                        Cache data hit count 4294967295
                        Slowest loop: 208.16ms; fastest: 0.13ms
                        I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0
                        === Storage ===
                        Free file entries: 10
                        SD card 0 detected, interface speed: 20.0MBytes/sec
                        SD card longest read time 2.3ms, write time 0.0ms, max retries 0
                        === Move ===
                        Hiccups: 0(0), FreeDm: 169, MinFreeDm: 127, MaxWait: 442190ms
                        Bed compensation in use: none, comp offset 0.000
                        === MainDDARing ===
                        Scheduled moves: 3341, completed moves: 3341, StepErrors: 0, LaErrors: 0, Underruns: 0, 0 CDDA state: -1
                        === 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: 0
                        Movement lock held by null
                        HTTP is idle in state(s) 0
                        Telnet is idle in state(s) 0
                        File is idle 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: 201.58ms; fastest: 0.09ms
                        Responder states: HTTP(2) 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 connected to access point
                          Failed messages: pending 0, notready 0, noresp 1
                          WiFi firmware version 1.23
                          WiFi MAC address ec:fa:bc:01:df:36
                          WiFi Vcc 3.35, reset reason Unknown
                          WiFi flash size 4194304, free heap 18256
                          WiFi IP address 192.168.0.254
                          WiFi signal strength -58dBm, reconnections 0, sleep mode modem
                          Socket states: 0 0 0 0 0 0 0 0

                        https://drmrehorst.blogspot.com/

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

                          @mrehorstdmd said in Constant 'connection interrupted':

                          WiFi Vcc 3.35, reset reason Unknown
                          Interesting, I see you also get the 'WiFi Vcc 3.35, reset reason Unknown' issue

                          I hadn't used the AP mode until I ran the test I mentioned above, had zero issue with the Duet for years until now

                          Have you checked that the AJAX retires is set to at least 3?

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

                            @Foden Thanks, but where would I check/set that?

                            https://drmrehorst.blogspot.com/

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

                              From the main page go to Settings and it's on that page - I think - just booting mine up to check

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

                                Nope, I was wrong, see attached pic Picture1.png

                                Machine-specific / then its under communication

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

                                  @mrehorstdmd First I would try reflashing the wifi module.

                                  https://github.com/Duet3D/RepRapFirmware/releases/download/3.0/DuetWiFiServer.bin

                                  Place that bin file in the sys folder of the SD card and then send M997 S1 over USB terminal or paneldue console. Should get a progress report of the flashing process.

                                  Having these macros can make wifi trouble shooting a bit easier too.

                                  https://github.com/Duet3D/RRF-machine-config-files/blob/master/DBotCoreXY/x0r-wifi-RRF3/macros/Diagnostics/WIFI-Add SSID

                                  https://github.com/Duet3D/RRF-machine-config-files/blob/master/DBotCoreXY/x0r-wifi-RRF3/macros/Diagnostics/WIFI-Forget Networks

                                  https://github.com/Duet3D/RRF-machine-config-files/blob/master/DBotCoreXY/x0r-wifi-RRF3/macros/Diagnostics/WIFI-Reset Module

                                  https://github.com/Duet3D/RRF-machine-config-files/blob/master/DBotCoreXY/x0r-wifi-RRF3/macros/Diagnostics/WIFI-AP-MODE

                                  Are you trying to use AP mode or client mode now?

                                  Z-Bot CoreXY Build | Thingiverse Profile

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

                                    Also double-check your sd card does not have issues (check it on PC, laptop, Mac etc)

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

                                      Thanks all. I'll get a look at it again tonight and report my findings.

                                      https://drmrehorst.blogspot.com/

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

                                        I'm running (or trying to) in client mode. I put the DuetWiFiServer.bin file on the SD card and ran M997 S1 via Yat and USB and it tells me that the file is not found.

                                        Now M122 says the wifi module is disabled. I try M552 S1 and it says Wifi module is stopped.

                                        The card seems to be OK- it works fine in windows and seems to work OK in the Duet board, except for it reporting that it can't find the DuetWiFiServer.bin file.

                                        I rebooted the board with M999 then ran M552 and it says wifi module is being started.
                                        M552 S-1 says wifi module is stopped
                                        M552 S1 says "ok"
                                        M552 says wifi module is being started- it never seems to finish, and there's no wifi connection happening.

                                        https://drmrehorst.blogspot.com/

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

                                          @mrehorstdmd That's odd. The bin file is for sure in the /sys folder? Maybe redownload it and give it another shot.

                                          If you send M997 S0:1 it should try to do both.

                                          When going from 2.x to 3.1.1 you went through 3.0 along the way?

                                          Z-Bot CoreXY Build | Thingiverse Profile

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

                                            @Phaedrux yes, I installed 3.0 first then 3.1.1.

                                            https://drmrehorst.blogspot.com/

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