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

    Cannot connect Duet Wifi to new Wifi Router

    Scheduled Pinned Locked Moved
    General Discussion
    10
    57
    3.4k
    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.
    • GaRv3undefined
      GaRv3
      last edited by

      Hey there,

      I've got a new wifi router. Now I cannot connect the Duet Wifi to the network.

      I followed this guide with no success: https://duet3d.dozuki.com/Guide/1.)+Getting+Connected+to+your+Duet/7

      Because the SSID is hidden, I included it in the M552 command when connecting, but I also tried with a broadcasted SSID.

      The Duet responds with:

      WiFi reported error: Timed out while trying to connect to GarMir 2,4GHz
      WiFi module is idle
      WiFi reported error: Unknown WiFi state while trying to connect to GarMir 2,4GHz
      WiFi module is idle
      

      The router logs:

      03/17/2020	20:29:36	MAC 2c:3a:e8:00:00:00 authentication with GarMir 2,4GHz; WG-MAC=D4:3F:CB:91:5F:69; IF=wlan0_0	Wi-Fi
      03/17/2020	20:29:36	MAC 2c:3a:e8:00:00:00 associated to GarMir 2,4GHz; WG-MAC=D4:3F:CB:91:5F:69; IF=wlan0_0	Wi-Fi
      03/17/2020	20:29:36	WG-MAC=D4:3F:CB:91:5F:69; STA-MAC=2c:3a:e8:00:00:00; IF=wlan0_0; SSID=GarMir 2,4GHz; ConnectionState=connected; WirelessMode=802.11n; LastTxPhyRate=52Mbps; LastRxPhyRate=6Mbps; MaxSupportedRate:0Mbps; EncryptMode=AES; AuthMode=WpaPsk; RSSI=-33dBm; Channel=2412MHz; Radio=2.4G; Bandwidth=20M; TxFailPkts=0; RetransPkts=0	Wi-Fi
      03/17/2020	20:29:34	REASON-CODE-DESCR=DISASSOC_STA_HAS_LEFT;REASON-CODE=8; WG-MAC=D4:3F:CB:91:5F:69; STA-MAC=2c:3a:e8:00:00:00; IF=wlan0_0; SSID=GarMir 2,4GHz; ConnectionState=other_deassociate; WirelessMode=802.11n; LastTxPhyRate=52Mbps; LastRxPhyRate=6Mbps; MaxSupportedRate:0Mbps; EncryptMode=AES; AuthMode=WpaPsk; RSSI=-33dBm; Channel=2412MHz; Radio=2.4G; Bandwidth=20M; TxFailPkts=0; RetransPkts=8	Wi-Fi
      03/17/2020	20:29:34	REASON-CODE-DESCR=DISASSOC_STA_HAS_LEFT;REASON-CODE=8; WG-MAC=D4:3F:CB:91:5F:69; STA-MAC=2c:3a:e8:00:00:00; IF=wlan0_0; SSID=GarMir 2,4GHz; ConnectionState=clientDisassociated; WirelessMode=802.11n; LastTxPhyRate=52Mbps; LastRxPhyRate=6Mbps; MaxSupportedRate:0Mbps; EncryptMode=AES; AuthMode=WpaPsk; RSSI=-33dBm; Channel=2412MHz; Radio=2.4G; Bandwidth=20M; TxFailPkts=0; RetransPkts=8	Wi-Fi
      03/17/2020	20:29:34	DISASSOC - MAC=2c:3a:e8:00:00:00, Reason=8; WG-MAC=D4:3F:CB:91:5F:69; IF=wlan0_0	Wi-Fi
      

      What can cause these problems? Are there any special chars not allowed in the SSID or password?
      I am not using " or ' but some special chars like , $ %
      Do I need to excape those and if yes: how?

      Best
      GaRv3

      1 Reply Last reply Reply Quote 0
      • PaulHewundefined
        PaulHew
        last edited by

        Your new router, is it a 5Ghz by chance?
        The Duet boards only support 2.4ghz.

        If there is an option to enable a 2.4 SSID, Try that.

        HTH
        Paul

        RailCore II - Duet Mini + 1LC, Voron V0.1 - Duet Mini
        Voron 2.4 disassembled..... Waiting for the RailCore Mini....

        1 Reply Last reply Reply Quote 0
        • GaRv3undefined
          GaRv3
          last edited by

          See the attached logs.
          The wifi I am trying to connect to is 2.4 GHz.

          droftartsundefined 1 Reply Last reply Reply Quote 0
          • PaulHewundefined
            PaulHew
            last edited by

            My bad🤦
            You could try un-hiding the SSID temporarily to see if that helps.
            With the previous router, did it have the same SSID?
            If it did, clear the associations in the Duet and reconnect again, could be an authentication issue.

            P.

            RailCore II - Duet Mini + 1LC, Voron V0.1 - Duet Mini
            Voron 2.4 disassembled..... Waiting for the RailCore Mini....

            GaRv3undefined 1 Reply Last reply Reply Quote 0
            • droftartsundefined
              droftarts administrators @GaRv3
              last edited by

              @GaRv3 what firmware version? Send M115 and post response. There’s a bug in early RRF 3 releases where the SSID password is not stored.

              Ian

              Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

              GaRv3undefined 1 Reply Last reply Reply Quote 0
              • A Former User?
                A Former User
                last edited by

                @GaRv3 said in Cannot connect Duet Wifi to new Wifi Router:

                I am not using " or ' but some special chars like , $ %
                Do I need to excape those and if yes: how?

                afaik only ' is a problem, and ' is the escape key. see the note on
                https://duet3d.dozuki.com/Wiki/Gcode#Section_M587_Add_WiFi_host_network_to_remembered_list_or_list_remembered_networks

                @GaRv3 said in Cannot connect Duet Wifi to new Wifi Router:

                DISASSOC - MAC=2c:3a:e8:00:00:00, Reason=8; WG-MAC=D4:3F:CB:91:5F:69; IF=wlan0_0 Wi-Fi

                reason=8 may suggest the key is stored in the duet and accepted by the access point.
                https://www.cisco.com/assets/sol/sb/WAP371_Emulators/WAP371_Emulator_v1-0-1-5/help/Apx_ReasonCodes2.html

                1 Reply Last reply Reply Quote 0
                • GaRv3undefined
                  GaRv3 @droftarts
                  last edited by

                  @droftarts

                  M115
                  FIRMWARE_NAME: RepRapFirmware for Duet 2 WiFi/Ethernet FIRMWARE_VERSION: 2.03 ELECTRONICS: Duet WiFi 1.02 or later FIRMWARE_DATE: 2019-06-13b2
                  

                  @bearer
                  Yeah I knew ' too. That's why I wrote I don't have it in the SSID or pw.
                  What does "sending STA is leaving or has left Basic Service Set (BSS)" on the page you linked mean? Incompatible protocol versions?

                  A Former User? 1 Reply Last reply Reply Quote 0
                  • GaRv3undefined
                    GaRv3 @PaulHew
                    last edited by

                    @PaulHew
                    See my first post again "but I also tried with a broadcasted SSID" 😁
                    And no, the SSID was not the same and I even tried using another SSID.

                    droftartsundefined 1 Reply Last reply Reply Quote 0
                    • A Former User?
                      A Former User @GaRv3
                      last edited by A Former User

                      @GaRv3 said in Cannot connect Duet Wifi to new Wifi Router:

                      What does "sending STA is leaving or has left Basic Service Set (BSS)" on the page you linked mean?

                      not sure I found anything relevant, but it does suggest client side issue, most topics relate to signal quality and roaming.

                      could be the wifi is confused after the hidden bssid, try clearing all stored networks and adding just the one? try:

                      M552 S-1
                      M552 S0
                      M588 S"*" 
                      M587 S"GarMir" P"key"
                      M552 S1 P"GarMir"
                      

                      Edit: also could you confirm your wifi is set to channel 1 as a fixed channel, not auto? (log said 2412MHz)

                      1 Reply Last reply Reply Quote 0
                      • droftartsundefined
                        droftarts administrators @GaRv3
                        last edited by

                        @GaRv3 said in Cannot connect Duet Wifi to new Wifi Router:

                        FIRMWARE_VERSION: 2.03

                        It would be good to update your firmware to the latest RRF2 version, 2.05.1. Get it from https://github.com/dc42/RepRapFirmware/releases/tag/2.05.1
                        Update instructions, by copying file to SD card on your PC: https://duet3d.dozuki.com/Wiki/Installing_and_Updating_Firmware#Section_Fallback_procedure_Num_1

                        So long as you have named the SSID correctly, it doesn't matter if it's hidden.

                        How is the WiFi encryption set on the router? Duet 2 Wifi only supports WPA and WPA-2 with either AES or TKIP encryption (I think!). Maybe take a screenshot of the WiFi setup page on the router?

                        Ian

                        Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                        A Former User? 1 Reply Last reply Reply Quote 0
                        • A Former User?
                          A Former User @droftarts
                          last edited by

                          @droftarts said in Cannot connect Duet Wifi to new Wifi Router:

                          How is the WiFi encryption set on the router?

                          @GaRv3 said in Cannot connect Duet Wifi to new Wifi Router:

                          03/17/2020 20:29:36 WG-MAC=D4:3F:CB:91:5F:69; STA-MAC=2c:3a:e8:00:00:00; IF=wlan0_0; SSID=GarMir 2,4GHz; ConnectionState=connected; WirelessMode=802.11n; LastTxPhyRate=52Mbps; LastRxPhyRate=6Mbps; MaxSupportedRate:0Mbps; EncryptMode=AES; AuthMode=WpaPsk; RSSI=-33dBm; Channel=2412MHz; Radio=2.4G; Bandwidth=20M; TxFailPkts=0; RetransPkts=0 Wi-Fi

                          also, the log suggest the client is leaving, after successfully having connected, so unlikely to be a encryption issue (unless I'm reading the log incorrectly)

                          1 Reply Last reply Reply Quote 0
                          • GaRv3undefined
                            GaRv3
                            last edited by

                            @bearer
                            Didn't help unfortunately.

                            @droftarts
                            As mentioned by @bearer , this should not be an encryption issue. Router is set to WPA2 and encryption mode is AES.

                            @droftarts said in Cannot connect Duet Wifi to new Wifi Router:

                            It would be good to update your firmware to the latest RRF2 version, 2.05.1.

                            I will try this next.

                            A Former User? 1 Reply Last reply Reply Quote 0
                            • A Former User?
                              A Former User @GaRv3
                              last edited by

                              @GaRv3 said in Cannot connect Duet Wifi to new Wifi Router:

                              Didn't help unfortunately.

                              mkay, still, try to make sure there arent more than one entry if you do make changes, just to rule out that going forward.

                              maybe its time to elaborate a little on the pysical conditions of the network. locations, other APs etc?

                              1 Reply Last reply Reply Quote 0
                              • GaRv3undefined
                                GaRv3
                                last edited by

                                I will go into detail about this if the firmware update does not solve the issue.
                                But I've got a question about the fallback update procedure. There is no "iap4e.bin" in the repo but the guide tells me to copy it over. Should I simply leave the old file in place?

                                A Former User? 1 Reply Last reply Reply Quote 0
                                • Phaedruxundefined
                                  Phaedrux Moderator
                                  last edited by

                                  Check this release for the iap files https://github.com/dc42/RepRapFirmware/releases/tag/2.03

                                  Z-Bot CoreXY Build | Thingiverse Profile

                                  1 Reply Last reply Reply Quote 0
                                  • A Former User?
                                    A Former User @GaRv3
                                    last edited by

                                    @GaRv3 said in Cannot connect Duet Wifi to new Wifi Router:

                                    Should I simply leave the old file in place?

                                    it won't do any harm, and will be needed if you should ever wish to downgrade. however as 2.03 is likely using wifi firmware 1.23 i doubt there is any change relevant to the issue; but won't hurt to be up to date. while you're at it do confirm the wifi firmware is 1.23. (its part of the M122 output.

                                    1 Reply Last reply Reply Quote 0
                                    • GaRv3undefined
                                      GaRv3
                                      last edited by

                                      Ok, so I updated the frimware and Wifi server:

                                      M115
                                      FIRMWARE_NAME: RepRapFirmware for Duet 2 WiFi/Ethernet FIRMWARE_VERSION: 2.05.1 ELECTRONICS: Duet WiFi 1.02 or later FIRMWARE_DATE: 2020-02-09b1
                                      M122
                                      === Diagnostics ===
                                      RepRapFirmware for Duet 2 WiFi/Ethernet version 2.05.1 running on Duet WiFi 1.02 or later
                                      Board ID: 08DGM-95BLL-N6PSS-6J1F0-3S86R-90TVM
                                      Used output buffers: 1 of 24 (1 max)
                                      === RTOS ===
                                      Static ram: 25712
                                      Dynamic ram: 93132 of which 0 recycled
                                      Exception stack ram used: 264
                                      Never used ram: 11964
                                      Tasks: NETWORK(ready,540) HEAT(blocked,1232) MAIN(running,3824) IDLE(ready,160)
                                      Owned mutexes:
                                      === Platform ===
                                      Last reset 00:04:44 ago, cause: software
                                      Last software reset at 2020-01-26 16:51, reason: User, spinning module GCodes, available RAM 11284 bytes (slot 0)
                                      Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0441f000 BFAR 0xe000ed38 SP 0xffffffff Task 0x4e49414d
                                      Error status: 0
                                      Free file entries: 10
                                      SD card 0 detected, interface speed: 20.0MBytes/sec
                                      SD card longest block write time: 0.0ms, max retries 0
                                      MCU temperature: min 24.3, current 27.3, max 27.4
                                      Supply voltage: min 0.0, current 0.0, max 0.0, under voltage events: 0, over voltage events: 0, power good: no
                                      Driver 0: ok, SG min/max not available
                                      Driver 1: ok, SG min/max not available
                                      Driver 2: ok, SG min/max not available
                                      Driver 3: ok, SG min/max not available
                                      Driver 4: ok, SG min/max not available
                                      Date/time: 1970-01-01 00:00:00
                                      Cache data hit count 513307291
                                      Slowest loop: 4.16ms; fastest: 0.05ms
                                      I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0
                                      === Move ===
                                      Hiccups: 0, FreeDm: 160, MinFreeDm: 160, MaxWait: 0ms
                                      Bed compensation in use: none, comp offset 0.000
                                      === DDARing ===
                                      Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0
                                      === Heat ===
                                      Bed heaters = 0 -1 -1 -1, chamberHeaters = -1 -1
                                      === GCodes ===
                                      Segments left: 0
                                      Stack records: 2 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 ready with "M122" 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 ===
                                      Slowest loop: 1173.89ms; fastest: 0.00ms
                                      Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0) Telnet(0)
                                      HTTP sessions: 0 of 8
                                      - WiFi -
                                      Network state is changing mode
                                      WiFi module is trying to connect
                                      Failed messages: pending 0, notready 0, noresp 0
                                      WiFi firmware version 1.23
                                      WiFi MAC address 2c:3a:e8:0b:17:0f
                                      WiFi Vcc 3.32, reset reason Turned on by main processor
                                      WiFi flash size 4194304, free heap 27928
                                      Socket states: 0 0 0 0 0 0 0 0
                                      
                                      

                                      The problem persists.

                                      About the physical conditions:

                                      The printer is right next to the router (ap) with one wall in between. The signal strength should be easily sufficient with the 2.4GHz wifi. I even get full 5GHz signal strength right next to the printer on my phone.
                                      There are many wifi signals around here. It's a pretty crouded place. But I made sure to use the wifi channel that has the fewest SSIDS. Currently it's 2AM and there should be near to no interference.

                                      A Former User? 1 Reply Last reply Reply Quote 0
                                      • A Former User?
                                        A Former User @GaRv3
                                        last edited by A Former User

                                        @GaRv3 said in Cannot connect Duet Wifi to new Wifi Router:

                                        But I made sure to use the wifi channel that has the fewest SSIDS.

                                        is it a fixed channel (not auto?), if auto it could be the Duets wifi module cannot follow across all channels due to differing country regulations, but I have no idea whats set for either product.

                                        re signal strength, see if you can run M122 repeatedly and catch the Duet in a moment where it is connected and shows its signal strength, it will likely have (significantly) lower receive sensitivity than your router (and phone)

                                        1 Reply Last reply Reply Quote 0
                                        • GaRv3undefined
                                          GaRv3
                                          last edited by

                                          It's channel 11 fixed.

                                          M122 always reports

                                          Network state is changing mode
                                          WiFi module is trying to connect
                                          
                                          

                                          Doesn't seem I can get a report in the very short time frame, when a connection is established.

                                          But I am shure, the signal strength is very good. This can't be the issue. I can easily establish a very good wifi connection two rooms further from the router with any device.

                                          A Former User? 1 Reply Last reply Reply Quote 0
                                          • A Former User?
                                            A Former User @GaRv3
                                            last edited by A Former User

                                            @GaRv3 said in Cannot connect Duet Wifi to new Wifi Router:

                                            It's channel 11 fixed.

                                            Channel=2412MHz;

                                            does not compute, but might not be relevant as its usally 12-14 that gives problems.

                                            But I am shure, the signal strength is very good. This can't be the issue.

                                            Don't underestimate the ESP8266 module's ability to not get a signal; after all as it stands the options are defective module or poor singal as far as I can tell.

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