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

    CONSTANT AJAX disconnect errors

    Scheduled Pinned Locked Moved
    General Discussion
    28
    307
    54.6k
    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.
    • saironundefined
      sairon
      last edited by

      I experienced the same issue on a new Duet Wifi I received this week. I recalled that I had similar problems with some devices in the past with WMM mode enabled on the router. And indeed, disabling it fixed the issue. I have a router running OpenWrt based distribution, which allows to enable/disable WMM on per-SSID basis. I'm not sure about other routers, such as those ASUS devices mentioned here, but I think it should be at least possible to toggle WMM globally to try if it solves the problem.

      1 Reply Last reply Reply Quote 0
      • fmaundefined
        fma
        last edited by

        As I use an OpenWRT-based router, I'll give this a try! Thanks.

        Frédéric

        1 Reply Last reply Reply Quote 0
        • JohnOCFIIundefined
          JohnOCFII
          last edited by

          @sairon:

          I'm not sure about other routers, such as those ASUS devices mentioned here, but I think it should be at least possible to toggle WMM globally to try if it solves the problem.

          Interesting.

          One of my routers is an Asus RT-AC68P. The other is an older RT-N66R. The DuetWifi was attached to the RT-N66R. Both are running Asuswrt-Merlin 380.68_4

          I notice on the Wireless section - Professional tab there is an item labeled: "Enable WMM APSD" The choices are "Enable" and "Disable" I'm not sure if they mean enabled and disabled but both routers are in the default setting, which shows "Enable."

          Seeing that this setting has something to do with power saving mode and QoS, who knows - this could be related. I do not see a setting specific to just WMM.

          https://routerguide.net/wmm-apsd-on-or-off/

          John

          1 Reply Last reply Reply Quote 0
          • saironundefined
            sairon
            last edited by

            @JohnOCFII:

            Seeing that this setting has something to do with power saving mode and QoS, who knows - this could be related. I do not see a setting specific to just WMM.

            Yep, "disabling WMM" practically means "disabling WMM APSD". Even the page you've linked mentions that it can be linked to connection dropouts: "There are reported cases of mobile devices dropping connections when the WMM APSD options are turned on."

            As I said, it seems that disabling it resolved the issue for me, so it's worth a try if anyone faces the problem. Probably the worst thing that can happen is that they'll have worse battery performance on their mobile devices for the time of the test.

            1 Reply Last reply Reply Quote 0
            • MiRundefined
              MiR
              last edited by

              This article:

              http://bbs.espressif.com/viewtopic.php?t=133

              mentions a parameter for esp8266 to disable powersave on the chip itself, at least when in client-mode.

              „You can use wifi_set_sleep_type to set sleep type for power saving and set NONE_SLEEP_T to disable power saving.“

              @David: Could this be worth a try?

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

                I looked at this before and I think it defaults to no power saving, but I'll check.

                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
                • MiRundefined
                  MiR
                  last edited by

                  At least when I checked with sta_info about a week ago the module was reporting powersave capability to the AP

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

                    turned off WMM APSD
                    So far 2 hours into a print. Not a definitive answer yet, but so far id say looks promising…
                    As I wrote this I went back and saw pink screen "ajax error" timeout, but was able to immediately reconnect with connect button.

                    Will continue testing

                    Edit: disconnected 5 min later, now can't reconnect....back to square one..

                    1 Reply Last reply Reply Quote 0
                    • fmaundefined
                      fma
                      last edited by

                      I also turned off WMM. So far, no disconnect…

                      Frédéric

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

                        Im running a Tenda AC18 and it doesn't look like I have any WMM options, that I can find.

                        Artemis
                        Rostock Max v2
                        Orion

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

                          I have the WMM turned off, and I continue to have the issues.
                          It does sound like the right path of investigation though.

                          1 Reply Last reply Reply Quote 0
                          • fmaundefined
                            fma
                            last edited by

                            In fact, me too 😞

                            Frédéric

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

                              Oddly, my Duet no longer shows up under my list of connected clients in my router admin control.

                              Ideas?

                              Artemis
                              Rostock Max v2
                              Orion

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

                                did you recently update your router firmware?

                                www.duet3d.com

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

                                  @T3P3Tony:

                                  did you recently update your router firmware?

                                  No.

                                  But I did just updated to the Wifi Server 1.20alpha1+1 and it is showing in my list of clients again.

                                  odd.

                                  Artemis
                                  Rostock Max v2
                                  Orion

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

                                    and…. disconnects

                                    Wifi Server 1.20alpha1+1

                                    Artemis
                                    Rostock Max v2
                                    Orion

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

                                      [c]8:56:21 PM Disconnected.
                                      8:53:51 PM Connection established!
                                      8:51:30 PM Disconnected.
                                      8:51:08 PM WiFi module stopped
                                      8:51:08 PM Connection established!
                                      8:44:11 PM Disconnected.
                                      8:43:10 PM M0 H1
                                      Printing paused[/c]

                                      y'all, I'm losing my mind over here.

                                      Artemis
                                      Rostock Max v2
                                      Orion

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

                                        Did the "wifi module stopped" message happen because you sent a M552 command to stop it, or spontaneously?

                                        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:

                                          Did the "wifi module stopped" message happen because you sent a M552 command to stop it, or spontaneously?

                                          Probably b/c I sent the command to stop/start it, but honestly the disconnects were so bad and so frequent last night, I can't remember.

                                          To even use the printer last night I was running M552 S-1/S1 pretty much any time I needed to access DWC because even if it had only be a couple of minutes it would have already disconnected.

                                          If you have an exact set of steps you'd like me to walk through, I'm happy to try ANYTHING.

                                          Also, even during the times that it is connected, it is not showing up as a connected client in my routers admin utility.

                                          Artemis
                                          Rostock Max v2
                                          Orion

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

                                            If it is connected but not showing up in your router's admin page, that is a problem with your router. You may need to refresh your router's admin page.

                                            I'll be releasing a new firmware version soon that displays the wifi module sleep mode, along with a patched wifi module that doesn't sleep at all.

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