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

CONSTANT AJAX disconnect errors

Scheduled Pinned Locked Moved
General Discussion
28
307
54.8k
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.
  • undefined
    LeonMF
    last edited by 3 Oct 2017, 21:16

    Jumping in here, I thought I was having problems with my Duet Ethernet after accidentally giving the ethernet cord a hard yank on moving it but I've been having problems since upgrading to 1.19.x with disconnects. It could still be a hardware problem but starving the CPU is just as likely.

    Is it safe to presume that this problem could affect Duet Ethernet, too?

    Current: Railcore II ZLT w/Duet 3 and Hemera hot end.
    Retired: Robo3D R1,BI V2.5 Delta updated to BerryBot magnets, bespoke carriages and Duet Ethernet, M3D Promega;

    1 Reply Last reply Reply Quote 0
    • undefined
      KeeganB
      last edited by 10 Apr 2017, 01:18 4 Oct 2017, 01:15

      AHHHHHHHH!!!! Last night with the new router everything went great! Then, without changing anything on the network today, I just started a print and got the exact same behavior I was having….

      pertinent M122 within minutes of the disconnect:

      === Move ===
      MaxReps: 9, StepErrors: 0, FreeDm: 183, MinFreeDm 120, MaxWait: 344041ms, Underruns: 0, 0
      Scheduled moves: 1069, completed moves: 1054
      Network state is running
      WiFi module is connected to access point
      WiFi firmware version 1.19.2
      WiFi MAC address 5c:cf:7f:ef:51:6f
      WiFi Vcc 3.11, reset reason Turned on by main processor
      WiFi flash size 4194304, free heap 39880
      WiFi IP address 10.0.1.158
      WiFi signal strength -39dBm
      Reconnections 0
      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)


      M552 via pronterface reports still connected
      Pings to the IP address all fail.

      Artemis
      Rostock Max v2
      Orion

      1 Reply Last reply Reply Quote 0
      • undefined
        dc42 administrators
        last edited by 4 Oct 2017, 08:09

        Thanks for that report. Net time it happens, please log on to your router and see whether it still shows the Duet as a connected client, and post the relevant bits of the M122 report again. The M122 says that the Duet is connected to the router, but I want to know whether the router agrees.

        Are you using a static IP address, or DHCP?

        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
        • undefined
          strips
          last edited by 4 Oct 2017, 08:34

          Don't know if this will help you but whenever I can no longer access the web I can not ping the duet. I have been following this thread on and off and got the same (or very similar) issue. I have to verify what the router says.

          Ender 5 Plus, E3D Bigbox Dual

          1 Reply Last reply Reply Quote 0
          • undefined
            dc42 administrators
            last edited by 4 Oct 2017, 11:50

            I have reviewed the wifi server project and found an issue which could explain some of the problems you are seeing. I hope to have an updated DuetWiFiServer by tomorrow. It will be compatible with DuetWiFiFirmware 1.20beta1, so I suggest you upgrade to that (along with DuetWiFiServer 1.20alpha1) to provide a baseline.

            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
            • undefined
              KeeganB
              last edited by 10 Apr 2017, 15:17 4 Oct 2017, 15:16

              That is very exciting David! (the update)

              I just upgraded to a new router and I am still learning the GUI for it. The pings make me believe it was not connected to the router, but when going to the web GUI for the router it still showed the Duet on the connected clients list. I am inclined to not believe that though, and I may have been reading the page wrong. I will test that again next time I get a disconnect.

              EDIT: I will try to get updated the the respective 1.20 beta/alpha firmwares tonight.

              Artemis
              Rostock Max v2
              Orion

              1 Reply Last reply Reply Quote 0
              • undefined
                Jarery
                last edited by 10 May 2017, 04:14 5 Oct 2017, 02:03

                Loaded the new software
                Firmware Version: 1.20beta1 (2017-10-02)
                WiFi Server Version: 1.20alpha1
                Web Interface Version: 1.19.3 (this dint show at first even with reboot)

                Ran well for 2 hours then disconnect, bottom line with reason not on the popup. Just the same AJAX error.
                Unable to reconnect with connect button
                M522 shows still connected to access point
                Router shows disconnected
                Unable to ping

                Reset wifi with paneldue
                M522 S0, pause, M522 S1
                Connect button reconnects.

                M122 after reconnect then shows:
                === Move ===
                MaxReps: 12, StepErrors: 0, FreeDm: 120, MinFreeDm 120, MaxWait: 230003ms, Underruns: 0, 0
                Scheduled moves: 127412, completed moves: 127383

                http is idle in state(s) 0
                telnet is idle in state(s) 0
                file is doing "G1 X-67.592 Y56.469 E0.06335" 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.20alpha1
                WiFi MAC address a0:20:a6:10:55:89
                WiFi Vcc 3.16, reset reason Turned on by main processor
                WiFi flash size 4194304, free heap 38816
                WiFi IP address 192.168.2.32
                WiFi signal strength -46dBm
                Reconnections 0
                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)

                Edit: second disconnection, same print, reconnected after 2nd press of connect without having to cycle wifi module. Router showed it as not connect prior to using connect button.
                After it reconnected, a M122 showed Reconnections 1 (first time I've ever seen reconnections not be 0)

                1 Reply Last reply Reply Quote 0
                • undefined
                  KeeganB
                  last edited by 10 May 2017, 02:36 5 Oct 2017, 02:34

                  @dc42:

                  Thanks for that report. Net time it happens, please log on to your router and see whether it still shows the Duet as a connected client, and post the relevant bits of the M122 report again. The M122 says that the Duet is connected to the router, but I want to know whether the router agrees.

                  Are you using a static IP address, or DHCP?

                  This is a bit odd.

                  Currently I can't load DWC.
                  Pronterface shows connected to my network
                  Router shows connected but access type is "wired"

                  Edit:
                  After running M552 S-1 and then M552 S1, the router now shows the Duet access type as "2.4G", as expected.

                  I will keep an eye on this to see if it always changes to "wired" when the issues happen.

                  Artemis
                  Rostock Max v2
                  Orion

                  1 Reply Last reply Reply Quote 0
                  • undefined
                    MiR
                    last edited by 5 Oct 2017, 18:46

                    I just upgraded to 1.19.2 and I see the same issues as described in callil's comment above.

                    Does it help if I do Airtraces with my Mac? If yes, should I do this with 1.19.2 or should I upgrade to 1.20 beta?

                    The interesting thing I am seeing is that the duett is still associated to the AP but it is not answering to pings.

                    1 Reply Last reply Reply Quote 0
                    • undefined
                      dc42 administrators
                      last edited by 5 Oct 2017, 19:15

                      The next DuetWiFiServer release I do will be designed to work with 1.20beta1, or possibly a later 1.20 beta release.

                      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
                      • undefined
                        MiR
                        last edited by 5 Oct 2017, 19:25

                        I upgraded anyway, it took a little longer until I was unable to use the connection.

                        Fun thing is that I still see packet exchange between AP and duet:

                        RSSI: -40 dBm
                        TXPacketCount
                        176423
                        RXPacketCount
                        20352

                        a little later:

                        TXPacketCount
                        176799
                        RXPacketCount
                        20744

                        I can also still access station stats of the duet:

                        /cfg/system/root # wlctl -i wl0 sta_info 5C:CF:7F:37:8A:E3
                        [VER 4] STA 5C:CF:7F:37:8A:E3:
                        aid:5
                        rateset [ 1 2 5.5 6 9 11 12 18 24 36 48 54 ]
                        idle 1 seconds
                        in network 1857 seconds
                        state: AUTHENTICATED ASSOCIATED AUTHORIZED
                        flags 0x1e13a: WME PS N_CAP AMPDU AMSDU
                        HT caps 0x112c: SGI20 STBC-Rx
                        tx total pkts: 177054
                        tx total bytes: 47635359
                        tx ucast pkts: 23995
                        tx ucast bytes: 3712620
                        tx mcast/bcast pkts: 153059
                        tx mcast/bcast bytes: 43922739
                        tx failures: 1
                        rx data pkts: 21124
                        rx data bytes: 6136443
                        rx ucast pkts: 21112
                        rx ucast bytes: 6134771
                        rx mcast/bcast pkts: 12
                        rx mcast/bcast bytes: 1672
                        rate of last tx pkt: 72222 kbps - 19500 kbps
                        rate of last rx pkt: 6000 kbps
                        rx decrypt succeeds: 17064
                        rx decrypt failures: 88
                        tx data pkts retried: 0
                        per antenna rssi of last rx data frame: -47 -40 -41 0
                        per antenna average rssi of rx data frames: -46 -40 -40 0
                        per antenna noise floor: -94 -97 -96 0
                        tx total pkts sent: 23994
                        tx pkts retries: 2400
                        tx pkts retry exhausted: 1
                        tx FW total pkts sent: 64
                        tx FW pkts retries: 0
                        tx FW pkts retry exhausted: 0
                        rx total pkts retried: 2116

                        Are you able to turn of Powersave on the esp? I see in the stats that PS flag is set, I have seen numerous errors with Powersave on WiFi

                        1 Reply Last reply Reply Quote 0
                        • undefined
                          KeeganB
                          last edited by 10 Jun 2017, 01:57 6 Oct 2017, 00:45

                          And this is tonight's error….

                          This was loading DWC about 1 min after a fresh power up of the printer:
                          Error reason: SyntaxError: JSON Parse error: Unterminated string

                          Then after hitting refresh for the web browser I got a different error that I wasn't able to copy before it disappeared, but I think it ended in "invalid digits."

                          after M552 S-1 and S1, this is the new error:
                          Error reason: SyntaxError: JSON Parse error: Expected '}'

                          EDIT:

                          updated to all the latest firmwares from the edge GitHub, disconnects continue. That was expected, but just as an FYI for those following along.

                          Artemis
                          Rostock Max v2
                          Orion

                          1 Reply Last reply Reply Quote 0
                          • undefined
                            KeeganB
                            last edited by 10 Oct 2017, 17:20

                            Hey David,

                            Just checking in on the new firmware. I continue to have disconnects, but haven't done much or posted any further on them in the past few days.

                            Artemis
                            Rostock Max v2
                            Orion

                            1 Reply Last reply Reply Quote 0
                            • undefined
                              dc42 administrators
                              last edited by 11 Oct 2017, 06:39

                              I recall that some of you report that the WiFi is reliable when the printer is idle, but it disconnects a little while after printing starts, even though you are not using high microstepping. It occurs to me that this could be temperature-related. The WiFi module gets warm in normal use, and when the stepper drivers are generating heat as well it could be getting too hot to function properly. So please try the following:

                              • Monitor the CPU temperature in DWC until the point at which it disconnects. Is there a significant rise in temperature?
                              • Try cooling the Duet with a fan, if you don't already.

                              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
                              • undefined
                                KeeganB
                                last edited by 11 Oct 2017, 13:15

                                David,

                                Where in DWC can I see the board temp?

                                Thanks

                                Artemis
                                Rostock Max v2
                                Orion

                                1 Reply Last reply Reply Quote 0
                                • undefined
                                  Dougal1957
                                  last edited by 11 Oct 2017, 14:10

                                  on any page if you check the Temp area top left you will see an Extras label click it and the MCU temp will appears which you can add to the Line chart if you wish.

                                  1 Reply Last reply Reply Quote 0
                                  • undefined
                                    Jarery
                                    last edited by 10 Nov 2017, 14:19 11 Oct 2017, 14:17

                                    My Board is mounted above my delta, so bed heat has no effect. The board temp is low to mid 30's when no fan is used. (calibrated just yesterday its about 3 degrees below the PT100 temp)
                                    Mine also disconnects while idle.

                                    1 Reply Last reply Reply Quote 0
                                    • undefined
                                      KeeganB
                                      last edited by 11 Oct 2017, 20:09

                                      @Dougal1957:

                                      on any page if you check the Temp area top left you will see an Extras label click it and the MCU temp will appears which you can add to the Line chart if you wish.

                                      perfect, thanks!

                                      32.8C at idle after being powered on for several hours.

                                      Artemis
                                      Rostock Max v2
                                      Orion

                                      1 Reply Last reply Reply Quote 0
                                      • undefined
                                        KeeganB
                                        last edited by 12 Oct 2017, 01:31

                                        Over a couple different hour long prints the MCU temp stayed right around 34 C.

                                        Artemis
                                        Rostock Max v2
                                        Orion

                                        1 Reply Last reply Reply Quote 0
                                        • undefined
                                          dc42 administrators
                                          last edited by 12 Oct 2017, 12:29

                                          Please can those of you who are experiencing disconnect errors and are running DuetWiFiFirmware 1.20beta1 try changing the wifi firmware to version 1.20alpha1+1, which is available here: https://www.dropbox.com/s/u7vpp2wg4rlqs8l/DuetWiFiServer.bin?dl=1. Then let me know if you think it is better or worse.

                                          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
                                          139 out of 307
                                          • First post
                                            139/307
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA