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

    Wifi module keeps disconnecting

    Scheduled Pinned Locked Moved
    General Discussion
    9
    70
    10.5k
    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.
    • kirk001undefined
      kirk001
      last edited by

      Signal strength ranges from -40-50dBm, but -50dBM is the worst it gets. The board is sitting at the bottom of my Hypercube--I don't know if that is what's making the signal strength worse at 6ft.
      Disconnections occur when idle. I haven't been able to print. I can't stay connected more than 10 seconds. I've tried channels 1,6, and 11. I'm using a Netgear Nighthawk and I had 4 other devices on the 2.4G working fine. I removed the other 4 devices in case they might interfere with the Duet.
      AJAX retries are at 5.
      And have no password at the moment (it was really tedious to have to enter a password 5 times in one minute because it kept disconnecting every 10 seconds.)

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

        @kirk001 said in Wifi module keeps disconnecting:

        Disconnections occur when idle. I haven't been able to print. I can't stay connected more than 10 seconds.

        That's worse than I've ever heard happen before. Please can you connect a PC running e.g. YAT or Pronterface to the Duet, and send M111 S1 P13 (if using YAT, set the end-of-line sequence to "LF only"). This will enable WiFi debugging. When DWC connects, you will see a few lines of debug. When you get a disconnection, there may be some more debug messages - please post them here.

        And have no password at the moment (it was really tedious to have to enter a password 5 times in one minute because it kept disconnecting every 10 seconds.)

        The latest DWC (1.21.1) remembers the password when it reconnects.

        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
        • kirk001undefined
          kirk001
          last edited by

          Something odd just happened. I logged into my Duet from 2 different computers. On one, I connected directly to the IP address, and on the other, I connected to my "duet.local" address. The one connected directly to the IP address has stayed connected for over an hour now while the "duet.local" connection has disconnected 20+ times. I haven't tried printing yet. but this is the longest I've been able to stay connected.

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

            @kirk001 said in Wifi module keeps disconnecting:

            Something odd just happened. I logged into my Duet from 2 different computers. On one, I connected directly to the IP address, and on the other, I connected to my "duet.local" address. The one connected directly to the IP address has stayed connected for over an hour now while the "duet.local" connection has disconnected 20+ times. I haven't tried printing yet. but this is the longest I've been able to stay connected.

            Interesting! Were you previously always using "duet.local" to connect?

            If you are able to capture a Wireshark trace showing the network traffic on the PC at the time it disconnects, that may also help us diagnose the problem.

            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
            • kirk001undefined
              kirk001
              last edited by

              Yes "Duet" was the name I put in the config.g file and "Duet.local" was the address I've been using.

              I'm downloading Wireshark now.

              1 Reply Last reply Reply Quote 0
              • kirk001undefined
                kirk001
                last edited by

                I was able to do a Wireshark capture (I hope I did it correctly.) I saved it to a file (1.7Mb). Should I upload it here or e-mail it to you?

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

                  @kirk001 said in Wifi module keeps disconnecting:

                  I was able to do a Wireshark capture (I hope I did it correctly.) I saved it to a file (1.7Mb). Should I upload it here or e-mail it to you?

                  Please post it on Dropbox or another file sharing site, and post the link here, if you are happy that it doesn't contain confidential information.

                  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
                  • kirk001undefined
                    kirk001
                    last edited by

                    https://www.dropbox.com/s/rgbvi0l4k5xb25u/Duet Stream.pcapng?dl=0

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

                      Thanks, that's on my list to look at soon.

                      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 @kirk001
                        last edited by

                        @kirk001 said in Wifi module keeps disconnecting:

                        https://www.dropbox.com/s/rgbvi0l4k5xb25u/Duet Stream.pcapng?dl=0

                        I tried to download that file but it looks like you deleted it. Do you still have it?

                        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
                        • Knaudlerundefined
                          Knaudler
                          last edited by

                          Hello

                          I have Wifi Problem since 1.20

                          if wifi AP reboots, DuetWifi never reconnect
                          all Clients reconnects fine - Duet nope
                          need to Power off (or go via USB and restart network)

                          I using Unifi wifi AP Mesh - works great
                          when need to update, reprovisioning, scan frequencies something likes this,
                          wifi disconnects short time
                          checked settings - all fine

                          no Problem with other clients (10-20)
                          DuetWifi no reconnect after wifi disconnect/signal lost

                          reset wifi, delete wifis ...no

                          checkt with 1.20, 1.21 nope

                          no I'm using wifiServer 1.19.2 - that works fine !

                          with unifi I can push wifi reconnect for spezial client or can block clients
                          so I can test reconnection of DuetWifi

                          now I'm using this kombination:

                          Firmware Name: RepRapFirmware for Duet 2 WiFi/Ethernet
                          Firmware Electronics: Duet WiFi 1.02 or later
                          Firmware Version: 2.0(RTOS) (2018-06-05b3)
                          WiFi Server Version: 1.19.2 <-------
                          Web Interface Version: 1.21.1

                          no wifi Problems any more
                          stable and faster
                          and the AP shows the hostname of duetwifi again

                          connection Data from AP:
                          99% (-52 dBm) 72.2 Mbps 54 Mbps

                          good, stable upload speed (100MB gcode)
                          Uploading File(s), 46% Complete (762.1 KiB/s)

                          m122:

                          === Network ===
                          Slowest loop: 222.84ms; fastest: 0.01ms
                          Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0) Telnet(0)
                          HTTP sessions: 1 of 8

                          • WiFi -
                            Network state is running
                            WiFi module is connected to access point
                            Failed messages: pending 3, notready 0, noresp 0
                            WiFi firmware version 1.19.2
                            WiFi MAC address 60:01:94:31:48:f2
                            WiFi Vcc 3.08, reset reason Turned on by main processor
                            WiFi flash size 4194304, free heap 38968
                            WiFi IP address 192.168.2.220
                            WiFi signal strength -50dBm, reconnections 0, sleep mode unknown
                            Socket states: 0 0 0 0 0 0 0 0

                          so with WifiServer 1.19.2 wifi disconnects eg. reconnect Problems are gone

                          Greetings from HH
                          Ingo (Knaudler)

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

                            @Knaudler, thanks for your feedback. My best guess is that the change in the ESP8266 SDK to fix the KRACK WPA2 vulnerability was incompatible with your router. I heard a rumour that this fix was incompatible with some routers.

                            There is an even newer version of the SDK available now, so I will update DuetWiFiServer to use it in the next few days, then you can test whether it works for you.

                            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
                            • Knaudlerundefined
                              Knaudler
                              last edited by

                              thanks
                              maybe I can double check with Fritzbox 7490 (Labor)
                              if this can help
                              FritzBox is most use Router in germany

                              1 Reply Last reply Reply Quote 0
                              • Knaudlerundefined
                                Knaudler
                                last edited by

                                same with Fritzbox 7490 (last beta - only 20mhz, no pmf)
                                after wlan off ... 30sek wlan on
                                no reconnect of wifiServer 1.21
                                with 1.19.2 ok

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