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

    Unable to attach after network wireless IP change

    Scheduled Pinned Locked Moved
    Using Duet Controllers
    4
    33
    1.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.
    • Vetiundefined
      Veti @crchisholm
      last edited by

      @crchisholm said in Unable to attach after network wireless IP change:

      Yes, I get the following....
      m122

      Please set YAT to <LF> endings:
      Terminal->Settings->Text Settings-> EOL sequence <LF>

      and report again

      crchisholmundefined 1 Reply Last reply Reply Quote 0
      • crchisholmundefined
        crchisholm @Veti
        last edited by

        @Veti said in Unable to attach after network wireless IP change:

        @crchisholm said in Unable to attach after network wireless IP change:

        Yes, I get the following....
        m122

        Please set YAT to <LF> endings:
        Terminal->Settings->Text Settings-> EOL sequence <LF>

        and report again

        I did and here's the result....
        <

        Executing config.g...Error: M587: Failed to add SSID to remembered list
        HTTP is enabled on port 80
        FTP is disabled
        TELNET is disabled
        Error: G29: Must home printer before bed probing
        
        Done!
        RepRapFirmware for Duet 2 WiFi/Ethernet is up and rWiFi reported error: no known networks found
        WiFi module is idle
        WiFi reported error: no known networks found
        WiFi module is idle
        WiFi reported error: no known networks found
        WiFi module is idle
        WiFi reported error: no known networks found
        WiFi module is idle
        WiFi reported error: no known networks found
        WiFi module is idle
        WiFi reported error: no known networks found
        WiFi module is idle
        WiFi reported error: no known networks found
        WiFi module is idle
        WiFi reported error: no known networks found
        WiFi module is idle
        ....list keeps comming without stop.
        

        Might the problem be that tellnet and FTP are disabled? Should both be enabled? Where would I set that.

        1 Reply Last reply Reply Quote 0
        • Vetiundefined
          Veti
          last edited by

          thats not the output of m122

          1 Reply Last reply Reply Quote 0
          • Vetiundefined
            Veti
            last edited by

            @crchisholm said in Unable to attach after network wireless IP change:

            M588 S"*

            did you send that or

            M588 S"*" ?

            1 Reply Last reply Reply Quote 0
            • crchisholmundefined
              crchisholm
              last edited by

              Sorry grabbed the wrong screen shot. Here is the correct one.

              M122

              === Diagnostics ===
              RepRapFirmware for Duet 2 WiFi/Ethernet version 2.02(RTOS) running on Duet WiFi 1.02 or later
              Board ID: 08DGM-917NK-F23T0-6J9FL-3SD6R-KDB0F
              Used output buffers: 1 of 20 (1 max)
              === RTOS ===
              Static ram: 25524
              Dynamic ram: 98616 of which 0 recycled
              Exception stack ram used: 256
              Never used ram: 6676
              Tasks: NETWORK(ready,1240) HEAT(blocked,1232) MAIN(running,3868) IDLE(ready,200)
              Owned mutexes:
              === Platform ===
              Last reset 01:19:57 ago, cause: power up
              Last software reset at 2020-08-02 14:08, reason: User, spinning module GCodes, available RAM 6608 bytes (slot 2)
              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 31.9, current 32.7, max 35.9
              Supply voltage: min 0.3, current 0.5, max 0.6, 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 4294967295
              Slowest loop: 1.08ms; fastest: 0.06ms
              I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0
              === Move ===
              Hiccups: 0, StepErrors: 0, LaErrors: 0, FreeDm: 240, MinFreeDm: 240, MaxWait: 0ms, Underruns: 0, 0
              Scheduled moves: 0, completed moves: 0
              Bed compensation in use: mesh
              Bed probe heights: 0.000 0.000 0.000 0.000 0.000
              === Heat ===
              Bed heaters = 0 -1 -1 -1, chamberHeaters = -1 -1
              === 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 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: 1.27ms; 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 idle
              Failed messages: pending 0, notready 0, noresp 0
              Failed to get WiFi status
              Socket states: 0 0 0 0 0 0 0 0
              ok
              
              1 Reply Last reply Reply Quote 0
              • Phaedruxundefined
                Phaedrux Moderator
                last edited by

                Can you send M997 S1 to try and re-flash the wifi module with the bin file currently on the sd card?

                When sending M588 S"*" remember to include the double quotes around the asterix.

                Z-Bot CoreXY Build | Thingiverse Profile

                crchisholmundefined 1 Reply Last reply Reply Quote 0
                • crchisholmundefined
                  crchisholm @Phaedrux
                  last edited by

                  @Phaedrux said in Unable to attach after network wireless IP change:

                  M997 S1 t

                  Yep.

                  M997 S1
                  WiFi reported error: no known networks found
                  WiFi module is idle
                  Trying to connect at 230400 baud: T0:23.4 /0.0 B:24.0 /0.0
                  T0:23.5 /0.0 B:24.0 /0.0
                  T0:23.5 /0.0 B:24.0 /0.0
                  T0:23.5 /0.0 B:24.0 /0.0
                  T0:23.5 /0.0 B:24.0 /0.0
                  success
                  Erasing 4096 bytes...
                  Erasing 192512 bytes...
                  T0:23.5 /0.0 B:24.0 /0.0
                  T0:23.4 /0.0 B:24.0 /0.0
                  Uploading file...
                  T0:23.5 /0.0 B:24.0 /0.0
                  5% complete
                  10% complete
                  T0:23.4 /0.0 B:23.9 /0.0
                  15% complete
                  T0:23.5 /0.0 B:23.9 /0.0
                  20% complete
                  T0:23.5 /0.0 B:24.0 /0.0
                  25% complete
                  T0:23.5 /0.0 B:24.0 /0.0
                  30% complete
                  35% complete
                  T0:23.4 /0.0 B:23.9 /0.0
                  40% complete
                  T0:23.5 /0.0 B:24.0 /0.0
                  45% complete
                  T0:23.5 /0.0 B:23.9 /0.0
                  50% complete
                  T0:23.4 /0.0 B:24.0 /0.0
                  55% complete
                  T0:23.4 /0.0 B:23.9 /0.0
                  60% complete
                  T0:23.4 /0.0 B:24.0 /0.0
                  65% complete
                  70% complete
                  T0:23.5 /0.0 B:23.9 /0.0
                  75% complete
                  T0:23.5 /0.0 B:24.0 /0.0
                  80% complete
                  T0:23.5 /0.0 B:23.9 /0.0
                  85% complete
                  T0:23.5 /0.0 B:24.0 /0.0
                  90% complete
                  T0:23.5 /0.0 B:24.0 /0.0
                  95% complete
                  Upload successful
                  ok

                  1 Reply Last reply Reply Quote 0
                  • Phaedruxundefined
                    Phaedrux Moderator
                    last edited by

                    Ok.

                    Now send these commands and let us know what it responds with.

                    M552 S0
                    M552 S1
                    M588 S"*"
                    

                    Now to connect it to your wifi network you need to send the M587 command.

                    See here for the steps: https://duet3d.dozuki.com/Guide/1.)+Getting+Connected+to+your+Duet/7#s9

                    Z-Bot CoreXY Build | Thingiverse Profile

                    crchisholmundefined 1 Reply Last reply Reply Quote 0
                    • crchisholmundefined
                      crchisholm @Phaedrux
                      last edited by

                      @Phaedrux said in Unable to attach after network wireless IP change:

                      Ok.

                      Now send these commands and let us know what it responds with.

                      M552 S0
                      M552 S1
                      M588 S"*"
                      

                      Now to connect it to your wifi network you need to send the M587 command.

                      See here for the steps: https://duet3d.dozuki.com/Guide/1.)+Getting+Connected+to+your+Duet/7#s9

                      M552 S0
                      ok
                      WiFi reported error: no known networks found
                      WiFi module is idle

                      M552 S1
                      ok
                      WiFi reported error: no known networks found
                      WiFi module is idle
                      WiFi reported error: no known networks found
                      WiFi module is idle
                      ---

                      M558 S"^"
                      ok
                      WiFi reported error: no known networks found
                      WiFi module is idle
                      WiFi reported error: no known networks found
                      WiFi module is idle
                      WiFi reported error: no known networks found
                      WiFi module is idle
                      WiFi reported error: no known networks found
                      WiFi module is idle
                      WiFi reported error: no known networks found
                      WiFi module is idle
                      WiFi reported error: no known networks found
                      WiFi module is idle
                      WiFi reported error: no known networks found
                      WiFi module is idle
                      WiFi reported error: no known networks found
                      WiFi module is idle
                      WiFi reported error: no known networks found
                      WiFi module is idle
                      ---

                      Sadly, I am beginning to believe the board is dead.

                      Phaedruxundefined 1 Reply Last reply Reply Quote 0
                      • Phaedruxundefined
                        Phaedrux Moderator @crchisholm
                        last edited by Phaedrux

                        @crchisholm said in Unable to attach after network wireless IP change:

                        M558 S"^"

                        Did you really have ^ ? It should be *

                        Sadly, I am beginning to believe the board is dead.

                        There's nothing to indicate this. I think the problem is you just need to add your SSID name and password.

                        Z-Bot CoreXY Build | Thingiverse Profile

                        crchisholmundefined 1 Reply Last reply Reply Quote 0
                        • crchisholmundefined
                          crchisholm @Phaedrux
                          last edited by

                          @Phaedrux Darn. To much going on. Yes. I did enter the ^ instead of the *. I guess my printer isn’t the only one with issues. I am away from my home computer so I will rerun these tomorrow.

                          1 Reply Last reply Reply Quote 0
                          • Phaedruxundefined
                            Phaedrux Moderator
                            last edited by Phaedrux

                            You can create a macro like this and place it in the /macros folder. Add your network name and password. Save it as addwifi

                            M552 S0			; Disable network module
                            G4 S5			; wait 5 seconds
                            M587 S"NETWORKNAME" P"PASSWORD"			; Add duet wifi SSID to remembered networks list
                            G4 S5			; wait 5 seconds
                            M552 S1			; reenable wifi module
                            

                            Then from the USB terminal send M98 P"addwifi"

                            Z-Bot CoreXY Build | Thingiverse Profile

                            crchisholmundefined 1 Reply Last reply Reply Quote 0
                            • crchisholmundefined
                              crchisholm @Phaedrux
                              last edited by

                              @Phaedrux First off, I am not sure how to save this as a macro when I can't even get into the device.

                              I reran the three commands being more careful to avoid typos.....

                              WiFi module is idle
                              M552 S0
                              ok
                              WiFi reported error: no known networks found
                              WiFi module is idle
                              M552 S1
                              ok
                              WiFi reported error: no known networks found
                              WiFi module is idle
                              WiFi reported error: no known networks found
                              WiFi module is idle

                              ... repeats forever ....

                              M558 S"*"
                              ok
                              WiFi reported error: no known networks found
                              WiFi module is idle
                              WiFi reported error: no known networks found
                              WiFi module is idle

                              ... repeats forever ....

                              Phaedruxundefined 1 Reply Last reply Reply Quote 0
                              • Phaedruxundefined
                                Phaedrux Moderator @crchisholm
                                last edited by

                                @crchisholm said in Unable to attach after network wireless IP change:

                                First off, I am not sure how to save this as a macro when I can't even get into the device.

                                You would need to put the SD card in your computer and use a text editor like notepad to create the macro file.

                                Or just download this file

                                addwifi.g

                                Open it in a text editor and add your SSID and password and put it on the SD card.

                                Then from the USB terminal send M98 P"addwifi.g"

                                Z-Bot CoreXY Build | Thingiverse Profile

                                1 Reply Last reply Reply Quote 0
                                • crchisholmundefined
                                  crchisholm
                                  last edited by

                                  Ok, I have done that. I copied the file to the MACROS folder on the SD and confirmed that it was readable and contained the correct info. I used your name "addWifi.g".

                                  So now I am unsure where to go. How can I run that macro if I can't connect to the Duet????

                                  Phaedruxundefined 1 Reply Last reply Reply Quote 0
                                  • Phaedruxundefined
                                    Phaedrux Moderator @crchisholm
                                    last edited by

                                    @crchisholm said in Unable to attach after network wireless IP change:

                                    How can I run that macro if I can't connect to the Duet????

                                    Then from the USB terminal send M98 P"addwifi.g"

                                    Did you also change the macro to use your own SSID and password?

                                    Z-Bot CoreXY Build | Thingiverse Profile

                                    crchisholmundefined 1 Reply Last reply Reply Quote 0
                                    • crchisholmundefined
                                      crchisholm @Phaedrux
                                      last edited by

                                      @Phaedrux said in Unable to attach after network wireless IP change:

                                      M98 P
                                      result...

                                      M98 P
                                      Warning: Macro file not found.
                                      ok

                                      crchisholmundefined 1 Reply Last reply Reply Quote 0
                                      • crchisholmundefined
                                        crchisholm @crchisholm
                                        last edited by

                                        @crchisholm Crap....just saw what I did wrong

                                        M98 P "addWifi.g"
                                        Warning: Macro file "addWifi.g" not found.
                                        ok

                                        but alas, it did not make a difference....

                                        1 Reply Last reply Reply Quote 0
                                        • Phaedruxundefined
                                          Phaedrux Moderator
                                          last edited by

                                          Are you sure that's what it was named and it's saved in the macros folder?

                                          Did it keep the .g extension?

                                          Z-Bot CoreXY Build | Thingiverse Profile

                                          crchisholmundefined 1 Reply Last reply Reply Quote 0
                                          • Phaedruxundefined
                                            Phaedrux Moderator
                                            last edited by

                                            Also there should be no space between the P and the macro name

                                            Z-Bot CoreXY Build | Thingiverse Profile

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