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.
    • 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
                        • crchisholmundefined
                          crchisholm @Phaedrux
                          last edited by crchisholm

                          @Phaedrux
                          There are no spaces
                          I did a copy/past of your suggestion above and copied it into a file named addWifi.g. My system seems to want to capitalize the “W” so I went with that through out.
                          I copied that file to the sd macros folder.
                          I opened the file on the Sd and double check that everything is correct.
                          I reinserted the sd into the duet.
                          I powered the duet up and sent M98 “addWifi.g”
                          ...could not find the file.

                          I also reformatted an Sd card, copied the addWifi.g to the macros folder, opened it in notepad++ and checked everything again. I tried that SD card and got the same result.

                          When do I decide the problem is on the board itself. I have seen absolutly no indication that the WiFi module even works. If the board has gone bad, then I’m out ofluck. Like so many others, the pandemic has left me in the position of not being able to replace it. (Not whining ...I’m well aware there are lots of folks in the same mess)

                          1 Reply Last reply Reply Quote 0
                          • jay_s_ukundefined
                            jay_s_uk
                            last edited by

                            he means you had typed a space between P and "addWifi.g"
                            you should be sending
                            M98 P"/macros/addWifi.g"

                            Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

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

                              @jay_s_uk ahhhh! Didn’t see that. Will try again.

                              YAT 2.png

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

                                What exactly is in addwifi.g?

                                Try M98 P"0:/macros/addwifi.g" just to specify the entire path.

                                Again, I don't think there is anything wrong with the board. So far it is behaving as expected to the commands it's been given. It just needs the wifi network added. Once we can get the macro to execute to send the M587 command we should be in business.

                                Z-Bot CoreXY Build | Thingiverse Profile

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

                                  Wow! Woke up this morning and fired up the printer expeecting to continue the saga. Looked over and what did I see..... A shinny blue light peaking back at me.

                                  Don't know how, but some of the changes I made last hight (per you'all's suggestions) seemed to have kicked in. Not sure whey it did it wouldn't work last night but did this morning, but i think I'll leave that horses mouth shut.

                                  Thank you all. I'm quite sure that this is because of your help.

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

                                    Glad to hear.

                                    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