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

    CONSTANT AJAX disconnect errors

    Scheduled Pinned Locked Moved
    General Discussion
    28
    307
    54.9k
    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.
    • patelundefined
      patel
      last edited by

      @dc42:

      I've put a temporary build (1.20beta6) of DuetWiFiServer.bin at https://www.dropbox.com/s/u7vpp2wg4rlqs8l/DuetWiFiServer.bin?dl=1. This version uses the latest SDK from Expressiv and includes a fix for the WPA2 KRACK vulnerability. It may or may not help with reliability of the WiFi connection. I've heard that the KRACK vulnerability fix may be incompatible with some routers.

      I am doing further work on DuetWiFiServer to make additional diagnostics available.

      1:52:39 PM
      Can't rename file or directory 0:/sys/DuetWiFiServer(1).bin to /sys/DuetWiFiServer.bin

      File gg_PLA_OPTIMAL.gcode selected for printing
      FIRMWARE_NAME: RepRapFirmware for Duet WiFi FIRMWARE_VERSION: 1.19.2 ELECTRONICS: Duet WiFi 1.0 FIRMWARE_DATE: 2017-09-01
      1:52:39 PM
      M32 gg_PLA_OPTIMAL.gcode
      Can't rename file or directory 0:/sys/DuetWiFiServer(1).bin to /sys/DuetWiFiServer.bin

      File gg_PLA_OPTIMAL.gcode selected for printing
      FIRMWARE_NAME: RepRapFirmware for Duet WiFi FIRMWARE_VERSION: 1.19.2 ELECTRONICS: Duet WiFi 1.0 FIRMWARE_DATE: 2017-09-01
      1:51:31 PM
      M997 S1
      Can't rename file or directory 0:/sys/DuetWiFiServer(1).bin to /sys/DuetWiFiServer.bin
      WiFi Server Version: 1.20beta6 done i getting error for rename

      1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators
        last edited by

        Try removing the (1) from the filename before you upload it. If that doesn't work, I suggest you go into the System Editor in DWC, rename or delete the existing DuetWiFiServer.bin, then upload again.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        1 Reply Last reply Reply Quote 0
        • patelundefined
          patel
          last edited by

          @dc42:

          Try removing the (1) from the filename before you upload it. If that doesn't work, I suggest you go into the System Editor in DWC, rename or delete the existing DuetWiFiServer.bin, then upload again.

          Thanks for replay I did and work let see i connect my laptop to duet wifi any error commigm after update.
          M122
          === Diagnostics ===
          Used output buffers: 3 of 32 (17 max)
          === Platform ===
          RepRapFirmware for Duet WiFi version 1.19.2 running on Duet WiFi 1.0
          Board ID: 08DDM-9FAM2-LW4SD-6J9D6-3SN6L-12ZHY
          Static ram used: 21176
          Dynamic ram used: 96072
          Recycled dynamic ram: 1536
          Stack ram used: 1304 current, 9096 maximum
          Never used ram: 3192
          Last reset 01:48:41 ago, cause: software
          Last software reset reason: User, spinning module GCodes, available RAM 7408 bytes (slot 4)
          Software reset code 0x0003, HFSR 0x00000000, CFSR 0x00000000, ICSR 0x00400000, BFAR 0xe000ed38, SP 0xffffffff
          Error status: 8
          Free file entries: 10
          SD card 0 detected, interface speed: 20.0MBytes/sec
          SD card longest block write time: 0.0ms
          MCU temperature: min 32.4, current 32.7, max 33.4
          Supply voltage: min 12.0, current 12.1, max 12.2, under voltage events: 0, over voltage events: 0
          Driver 0: stalled standstill
          Driver 1: stalled standstill
          Driver 2: stalled standstill
          Driver 3: stalled standstill
          Driver 4: standstill
          Date/time: 2017-11-07 14:10:11
          Slowest main loop (seconds): 0.077148; fastest: 0.000000
          === Move ===
          MaxReps: 0, StepErrors: 0, FreeDm: 240, MinFreeDm 240, MaxWait: 0ms, Underruns: 0, 0
          Scheduled moves: 15, completed moves: 15
          Bed compensation in use: none
          Bed probe heights: 0.000 0.000 0.000 0.000 0.000
          === Heat ===
          Bed heater = 0, chamber heater = -1
          Heater 0 is on, I-accum = 0.0
          Heater 1 is on, I-accum = 0.0
          === GCodes ===
          Segments left: 0
          Stack records: 1 allocated, 0 in use
          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
          serial is idle in state(s) 0
          aux is idle in state(s) 0
          daemon is idle in state(s) 0
          queue is idle in state(s) 0
          autopause is idle in state(s) 0
          Code queue is empty.
          Network state is running
          WiFi module is connected to access point
          WiFi firmware version 1.20beta6
          WiFi MAC address 2c:3a:e8:0a:f1:18
          WiFi Vcc 3.36, reset reason Turned on by main processor
          WiFi flash size 4194304, free heap 33368
          WiFi IP address 192.168.0.144
          WiFi signal strength -42dBm
          Reconnections 0
          HTTP sessions: 2 of 8
          Socket states: 2 0 0 0 0 0 0 0
          Responder states: HTTP(1) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0)

          1 Reply Last reply Reply Quote 0
          • patelundefined
            patel
            last edited by

            @patel:

            @dc42:

            Try removing the (1) from the filename before you upload it. If that doesn't work, I suggest you go into the System Editor in DWC, rename or delete the existing DuetWiFiServer.bin, then upload again.

            Thanks for replay I did and work let see i connect my laptop to duet wifi any error commigm after update.
            M122
            === Diagnostics ===
            Used output buffers: 3 of 32 (17 max)
            === Platform ===
            RepRapFirmware for Duet WiFi version 1.19.2 running on Duet WiFi 1.0
            Board ID: 08DDM-9FAM2-LW4SD-6J9D6-3SN6L-12ZHY
            Static ram used: 21176
            Dynamic ram used: 96072
            Recycled dynamic ram: 1536
            Stack ram used: 1304 current, 9096 maximum
            Never used ram: 3192
            Last reset 01:48:41 ago, cause: software
            Last software reset reason: User, spinning module GCodes, available RAM 7408 bytes (slot 4)
            Software reset code 0x0003, HFSR 0x00000000, CFSR 0x00000000, ICSR 0x00400000, BFAR 0xe000ed38, SP 0xffffffff
            Error status: 8
            Free file entries: 10
            SD card 0 detected, interface speed: 20.0MBytes/sec
            SD card longest block write time: 0.0ms
            MCU temperature: min 32.4, current 32.7, max 33.4
            Supply voltage: min 12.0, current 12.1, max 12.2, under voltage events: 0, over voltage events: 0
            Driver 0: stalled standstill
            Driver 1: stalled standstill
            Driver 2: stalled standstill
            Driver 3: stalled standstill
            Driver 4: standstill
            Date/time: 2017-11-07 14:10:11
            Slowest main loop (seconds): 0.077148; fastest: 0.000000
            === Move ===
            MaxReps: 0, StepErrors: 0, FreeDm: 240, MinFreeDm 240, MaxWait: 0ms, Underruns: 0, 0
            Scheduled moves: 15, completed moves: 15
            Bed compensation in use: none
            Bed probe heights: 0.000 0.000 0.000 0.000 0.000
            === Heat ===
            Bed heater = 0, chamber heater = -1
            Heater 0 is on, I-accum = 0.0
            Heater 1 is on, I-accum = 0.0
            === GCodes ===
            Segments left: 0
            Stack records: 1 allocated, 0 in use
            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
            serial is idle in state(s) 0
            aux is idle in state(s) 0
            daemon is idle in state(s) 0
            queue is idle in state(s) 0
            autopause is idle in state(s) 0
            Code queue is empty.
            Network state is running
            WiFi module is connected to access point
            WiFi firmware version 1.20beta6
            WiFi MAC address 2c:3a:e8:0a:f1:18
            WiFi Vcc 3.36, reset reason Turned on by main processor
            WiFi flash size 4194304, free heap 33368
            WiFi IP address 192.168.0.144
            WiFi signal strength -42dBm
            Reconnections 0
            HTTP sessions: 2 of 8
            Socket states: 2 0 0 0 0 0 0 0
            Responder states: HTTP(1) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0)

            2:21:28 PM
            Disconnected. AJAX error
            2:23:29 PM
            === Diagnostics ===
            Used output buffers: 3 of 32 (17 max)
            === Platform ===
            RepRapFirmware for Duet WiFi version 1.19.2 running on Duet WiFi 1.0
            Board ID: 08DDM-9FAM2-LW4SD-6J9D6-3SN6L-12ZHY
            Static ram used: 21176
            Dynamic ram used: 96072
            Recycled dynamic ram: 1536
            Stack ram used: 1304 current, 9096 maximum
            Never used ram: 3192
            Last reset 01:48:41 ago, cause: software
            Last software reset reason: User, spinning module GCodes, available RAM 7408 bytes (slot 4)
            Software reset code 0x0003, HFSR 0x00000000, CFSR 0x00000000, ICSR 0x00400000, BFAR 0xe000ed38, SP 0xffffffff
            Error status: 8
            Free file entries: 10
            SD card 0 detected, interface speed: 20.0MBytes/sec
            SD card longest block write time: 0.0ms
            MCU temperature: min 32.4, current 32.7, max 33.4
            Supply voltage: min 12.0, current 12.1, max 12.2, under voltage events: 0, over voltage events: 0
            Driver 0: stalled standstill
            Driver 1: stalled standstill
            Driver 2: stalled standstill
            Driver 3: stalled standstill
            Driver 4: standstill
            Date/time: 2017-11-07 14:10:11
            Slowest main loop (seconds): 0.077148; fastest: 0.000000
            === Move ===
            MaxReps: 0, StepErrors: 0, FreeDm: 240, MinFreeDm 240, MaxWait: 0ms, Underruns: 0, 0
            Scheduled moves: 15, completed moves: 15
            Bed compensation in use: none
            Bed probe heights: 0.000 0.000 0.000 0.000 0.000
            === Heat ===
            Bed heater = 0, chamber heater = -1
            Heater 0 is on, I-accum = 0.0
            Heater 1 is on, I-accum = 0.0
            === GCodes ===
            Segments left: 0
            Stack records: 1 allocated, 0 in use
            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
            serial is idle in state(s) 0
            aux is idle in state(s) 0
            daemon is idle in state(s) 0
            queue is idle in state(s) 0
            autopause is idle in state(s) 0
            Code queue is empty.
            Network state is running
            WiFi module is connected to access point
            WiFi firmware version 1.20beta6
            WiFi MAC address 2c:3a:e8:0a:f1:18
            WiFi Vcc 3.36, reset reason Turned on by main processor
            WiFi flash size 4194304, free heap 33368
            WiFi IP address 192.168.0.114
            WiFi signal strength -42dBm
            Reconnections 0
            HTTP sessions: 2 of 8
            Socket states: 2 0 0 0 0 0 0 0
            Responder states: HTTP(1) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0)

            1 Reply Last reply Reply Quote 0
            • dc42undefined
              dc42 administrators
              last edited by

              Were you able to reconnect by pressing the Connect button in DWC, or not?

              Duet WiFi hardware designer and firmware engineer
              Please do not ask me for Duet support via PM or email, use the forum
              http://www.escher3d.com, https://miscsolutions.wordpress.com

              1 Reply Last reply Reply Quote 0
              • patelundefined
                patel
                last edited by

                @dc42:

                Were you able to reconnect by pressing the Connect button in DWC, or not?

                I try both way refresh F5 and connect button
                Run time 20min to 30min max and get Ajax error

                1 Reply Last reply Reply Quote 0
                • dc42undefined
                  dc42 administrators
                  last edited by

                  Patel, a few more questions:

                  1. Have you worked through https://duet3d.com/wiki/WiFi_disconnections_and_AJAX_timeout_errors ?

                  2. In the AJAX error message box, is the Error Reason always given as "timeout"?

                  3. After a disconnection occurs, are you able to ping the Duet?

                  Duet WiFi hardware designer and firmware engineer
                  Please do not ask me for Duet support via PM or email, use the forum
                  http://www.escher3d.com, https://miscsolutions.wordpress.com

                  1 Reply Last reply Reply Quote 0
                  • dc42undefined
                    dc42 administrators
                    last edited by

                    KeeganB, I recall that you are getting disconnections more frequently when your printer is printing than at other times. Please can you try simulating some prints (this is a right-click option in DWC1.19.3) and see if connections are lost more frequently during simulations than when the printer is idle.

                    Patel, if you too have found that the connection is much less reliable when printing, please try this too.

                    Duet WiFi hardware designer and firmware engineer
                    Please do not ask me for Duet support via PM or email, use the forum
                    http://www.escher3d.com, https://miscsolutions.wordpress.com

                    1 Reply Last reply Reply Quote 0
                    • KeeganBundefined
                      KeeganB
                      last edited by

                      @dc42:

                      KeeganB, I recall that you are getting disconnections more frequently when your printer is printing than at other times. Please can you try simulating some prints (this is a right-click option in DWC1.19.3) and see if connections are lost more frequently during simulations than when the printer is idle.

                      Patel, if you too have found that the connection is much less reliable when printing, please try this too.

                      Hey David,

                      I can test that. I need to email you, Roland, and Tony with some of my findings over the past few days. Ill try to type that up today.

                      Thanks

                      Artemis
                      Rostock Max v2
                      Orion

                      1 Reply Last reply Reply Quote 0
                      • patelundefined
                        patel
                        last edited by

                        @dc42:

                        Patel, a few more questions:

                        1. Have you worked through https://duet3d.com/wiki/WiFi_disconnections_and_AJAX_timeout_errors ?

                        2. In the AJAX error message box, is the Error Reason always given as "timeout"?

                        3. After a disconnection occurs, are you able to ping the Duet?

                        Error timeout. And I follow your wiki page also.
                        After error some time connect right way and some time I need press reset button get back

                        I am tried to do this thing can you accept return.

                        1 Reply Last reply Reply Quote 0
                        • dc42undefined
                          dc42 administrators
                          last edited by

                          I've noticed a difference between the M122 reports from KeeganB and patel when the wifi connection has been lost and DWC won't reconnect. KeeganB's report from some time ago had this:

                          HTTP sessions: 1 of 8
                          Socket states: 0 0 0 0 0 0 0 0
                          Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0)

                          Patel's more recent reports have this:

                          HTTP sessions: 2 of 8
                          Socket states: 2 0 0 0 0 0 0 0
                          Responder states: HTTP(1) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0)

                          Patel's reports are intriguing, because HTTP state 1 should time out after 2 seconds if no data is received.

                          Patel, were M122 reports obtained by sending M122 from the USB port when DWC has disconnected? Or did you reconnect DWC and send M122 from DWC?

                          Also, did you have just one device (e.g. PC) connected to the Duet; or did you have a second device (e.g. smartphone, tablet or another PC) connected too, or a second browser tab?

                          Duet WiFi hardware designer and firmware engineer
                          Please do not ask me for Duet support via PM or email, use the forum
                          http://www.escher3d.com, https://miscsolutions.wordpress.com

                          1 Reply Last reply Reply Quote 0
                          • dc42undefined
                            dc42 administrators
                            last edited by

                            1. I have put a build of DuetWiFiServer with sleep disabled (version 1.20beta7-nosleep) at https://www.dropbox.com/s/59s7vfkrf50fe0v/DuetWiFiServer-1.20beta7-nosleep.bin?dl=0. Please try it. The previous build (1.20beta6) is at https://www.dropbox.com/s/djs0p4beitjs60t/DuetWiFiServer-1.20beta6.bin?dl=0.

                            2. Patel, what make and model of wifi router are you connecting the Duet to?

                            Duet WiFi hardware designer and firmware engineer
                            Please do not ask me for Duet support via PM or email, use the forum
                            http://www.escher3d.com, https://miscsolutions.wordpress.com

                            1 Reply Last reply Reply Quote 0
                            • KeeganBundefined
                              KeeganB
                              last edited by

                              @dc42:

                              1. I have put a build of DuetWiFiServer with sleep disabled (version 1.20beta7-nosleep) at https://www.dropbox.com/s/59s7vfkrf50fe0v/DuetWiFiServer-1.20beta7-nosleep.bin?dl=0. Please try it. The previous build (1.20beta6) is at https://www.dropbox.com/s/djs0p4beitjs60t/DuetWiFiServer-1.20beta6.bin?dl=0.

                              2. Patel, what make and model of wifi router are you connecting the Duet to?

                              David, I will try the beta7 build tonight.

                              Email sent.

                              Thanks

                              Artemis
                              Rostock Max v2
                              Orion

                              1 Reply Last reply Reply Quote 0
                              • cbusilloundefined
                                cbusillo
                                last edited by

                                DC. It happens on my Ethernet Duet at idle and while printing. Tried different browsers and computers. Also WiFi and Ethernet connections. I saw you were concentrating on the WiFi server, so I wanted to let you know that might be the wrong direction! Love everything else about the board. Keep up the good work.

                                Oh you might want to put a warning out that Chinese Duets are out.

                                1 Reply Last reply Reply Quote 0
                                • Dougal1957undefined
                                  Dougal1957
                                  last edited by

                                  David

                                  Just tried to install B7-nosleep and sorry to say it failed (FW Loads fine) when trying to diagnose this I sent the usual M552 S0 but got no response back send M552 S1 and get an error saying to stop the wifi before starting it and M552 reposrts WiFi starting (Reloaded the Server fw 3 times with the same results including copying direct to the SD Card and renaming etc).

                                  so decided to try B6 which worked and loaded the Wifi almost instantly.

                                  Hope this helps (Not that I was suffering the Disconnects anyway)

                                  Doug

                                  1 Reply Last reply Reply Quote 0
                                  • abeckerundefined
                                    abecker
                                    last edited by

                                    Any tips on what I should try. I have noticed I will get the Ajax Disconnect error at random times in a print. Sometimes it is when it is probing with the G32 command, and other times it can be actually printing. Mine will completely disconnect from the network and can't ping it or anything. I will have to wait for the print to finish and then turn it off and back on and it connects back immediately. The printer is in the same room as the router.

                                    1 Reply Last reply Reply Quote 0
                                    • Jareryundefined
                                      Jarery
                                      last edited by

                                      Loaded on my system. Got a message saying can't rename the file but then it went ahead and updated.
                                      Wont be able to print to later but I can make it run through some large simulation files remotely.

                                      1 Reply Last reply Reply Quote 0
                                      • Jareryundefined
                                        Jarery
                                        last edited by

                                        JavaScript Error

                                        A JavaScript error has occurred so the web interface has closed the connection to your board. It is recommended to reload the web interface now. If this happens again, please contact the author and share this error message:

                                        Script Error: See Browser Console for Detail

                                        –------------------------------------
                                        Received the above when i resized the browser window, reconnected when the "connect" button is pressed.
                                        Then when i ran M122 and tried to copy the wifi section it disconnected with same error

                                        M122:Network state is running
                                        WiFi module is connected to access point
                                        Failed messages: pending 0, notready 0, noresp 0
                                        WiFi firmware version 1.20beta7-nosle
                                        WiFi MAC address a0:20:a6:10:55:89
                                        WiFi Vcc 3.45, reset reason Turned on by main processor
                                        WiFi flash size 4194304, free heap 28552
                                        WiFi IP address 192.168.2.34
                                        WiFi signal strength -45dBm, reconnections 0, sleep mode none
                                        HTTP sessions: 1 of 8
                                        Socket states: 2 0 0 0 0 0 0 0
                                        Responder states: HTTP(1) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0)

                                        1 Reply Last reply Reply Quote 0
                                        • number40fanundefined
                                          number40fan
                                          last edited by

                                          @cbusillo:

                                          Oh you might want to put a warning out that Chinese Duets are out.

                                          Where?

                                          1 Reply Last reply Reply Quote 0
                                          • T3P3Tonyundefined
                                            T3P3Tony administrators
                                            last edited by

                                            No. One. Mention. The. Clones.

                                            J/k pm where you have seen them 🙂

                                            www.duet3d.com

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