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

    Duet 3d WiFi set IP address

    Scheduled Pinned Locked Moved Solved
    Using Duet Controllers
    5
    21
    1.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.
    • o_lampeundefined
      o_lampe @Joel
      last edited by o_lampe

      @joel
      My way of assigning a fixed address to any WiFi device is, set DHCP (*) mode in the device and let the router find an unused address.
      When WiFi is connected, open the routers setup page and tell it to use this address permanently for this device.

      *) set DHCP:

      Use M587 to add a WiFi host network to the remembered list of networks.
      To set a static IP address, use the 'I' parameter in your M587 command. If you leave this out, the Duet IP address will be set by the router, using DHCP.
      Use M552 S1 to turn on networking, and connect. You can specify the host network to connect to using the 'P' parameter, so long as the host network has already been stored using M587.
      
      1 Reply Last reply Reply Quote 1
      • dc42undefined
        dc42 administrators @Joel
        last edited by

        @joel said in Duet 3d WiFi set IP address:

        Hi,

        I have always had a fixed IP Address in my Duet WiFi. I recently changed up my networking and need to re setup the duet. I cleared the old setting out with M588 S"*" which worked fine. I try to re setup the Duet WiFi with a new IP address and access point. I can set the SSID and password just fine but the IP address I try to assign will not stick. I am using the M587 Inn.nn.nn.nn Jnn.nn.nn.nn Knn.nn.nn.nn parameters to do this. I did set the module to idle first with M552 S0.

        What does M587 with no parameters return? It should list the known access points along with the IP addresses that you configured for them.

        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

        Joelundefined 1 Reply Last reply Reply Quote 0
        • Joelundefined
          Joel @dc42
          last edited by

          @dc42
          Hi,

          M587 returns,
          M587
          Remembered networks:
          outerlimits IP=0.0.0.0 GW=0.0.0.0 NM=0.0.0.0

          No matter what I try to set the IP to, it will not stick. I tried setting all parameters I, J, K, none stick. The only thing that does is the SSID and password.

          It does pick up an IP through DHCP, but that's mot what I want.

          If I try M587 Ixxx.xxx.xxx.xxx after being connected it ignors it, the command just returns the same info as above. And as mentioned, I also tried this with wifi idle over USB.

          @o_lampe
          unfortunately they way I'm set up, I cannot reserve a DHCP address and that still does not fit with the networking model I have .

          I really need to be able to set the static IP in the Duet.

          Thanks
          Joel

          Joelundefined 1 Reply Last reply Reply Quote 0
          • Joelundefined
            Joel @Joel
            last edited by

            @dc42

            I did another try where I tried to set the Wifi settings within config.g ( remove pertinent lines after one run ). Still did not work.

            In config.g I added (xxx.xxx.xxx.xxx are replaced with my actual values )

            M587 S"SSIDname" P"mypassword" Ixxx.xxx.xxx.xxx Jxxx.xxx.xxx.xxx Kxxx.xxx.xxx.xxx
            M552 S1

            I also tried with an M552 S0 before the M587 line.

            Stephen6309undefined dc42undefined 2 Replies Last reply Reply Quote 0
            • Stephen6309undefined
              Stephen6309 @Joel
              last edited by

              @joel https://duet3d.dozuki.com/Wiki/Gcode#Section_M552_Set_IP_address_enable_disable_network_interface

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

                @joel said in Duet 3d WiFi set IP address:

                M587 S"SSIDname" P"mypassword" Ixxx.xxx.xxx.xxx Jxxx.xxx.xxx.xxx Kxxx.xxx.xxx.xxx

                That is the correct command. The letter before the IP address is uppercase 'i' (lowercase i will also work), not lowercase 'L'.

                Which WiFi firmware version is installed? Run M122 and look in the WiFi section of the report to 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

                Joelundefined 1 Reply Last reply Reply Quote 0
                • Joelundefined
                  Joel @dc42
                  last edited by

                  @dc42

                  WiFi FW version is 1.25

                  And yes, upper case i

                  Thanks
                  Joel

                  1 Reply Last reply Reply Quote 0
                  • Joelundefined
                    Joel @Stephen6309
                    last edited by

                    @stephen6309

                    Thanks, been there. There is no IP setting flag with M522 for Duet WiFi

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

                      @joel, please note: M587 will not work within config.g. Send it manually instead.

                      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

                      Joelundefined 1 Reply Last reply Reply Quote 0
                      • Joelundefined
                        Joel @dc42
                        last edited by

                        @dc42

                        I did do it separately, it does not work.

                        As far as from within config.g, does it really not work, or is it you don't want to leave it there because 1) it's a security issue and 2) it's not good to write the flash over and over every time you restart.

                        Thanks
                        Joel

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

                          Can you try adding M552 S1 P192.168.1.14 to your config.g? With your chosen IP of course.

                          The SSID and password will be saved to the module.

                          Z-Bot CoreXY Build | Thingiverse Profile

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

                            @joel said in Duet 3d WiFi set IP address:

                            As far as from within config.g, does it really not work, or is it you don't want to leave it there because 1) it's a security issue and 2) it's not good to write the flash over and over every time you restart.

                            It really doesn't work because of those reasons.

                            Z-Bot CoreXY Build | Thingiverse Profile

                            Joelundefined 1 Reply Last reply Reply Quote 0
                            • Joelundefined
                              Joel @Phaedrux
                              last edited by

                              @phaedrux

                              M552 does not set the IP address either. It Seems M552 only sets IP for non WiFi versions.

                              1 Reply Last reply Reply Quote 0
                              • Joelundefined
                                Joel @Phaedrux
                                last edited by

                                @phaedrux

                                Then it really does work, it's not a good idea, but that's a different answer.

                                I recall when I first set it up, I put it in config.g then deleted those lines after the first power up. I think the configuration tool now makes a runonce.g file that deletes itself after the first run.

                                So not working and not being a good idea are two different things.

                                But in the end, this still does not work any way I try it.

                                Can someone actually verify that it does work for them?

                                M587 with no parameters always return the SSID and everything is is all zeros.

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

                                  @joel said in Duet 3d WiFi set IP address:

                                  M587 with no parameters always return the SSID and everything is is all zeros.

                                  In that case, the M587 command that you sent hasn't worked. Please try the following:

                                  • Send M552 S0 to put the wifi module in idle mode
                                  • Send M588 P"*" to delete all SSIDs
                                  • Send M587 without parameters, to verify that the list is clear
                                  • Send your M587 command including SSID, password and IP address
                                  • Send M587 without parameters again

                                  If that doesn't work, cut and paste the transcript and post it here, with the password changed.

                                  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

                                  Joelundefined 1 Reply Last reply Reply Quote 0
                                  • Joelundefined
                                    Joel @dc42
                                    last edited by

                                    @dc42

                                    Hi,

                                    That was one of the first things I did. I will do it again and capture the output.

                                    I will have to find a way to capture a clean transcript. Because I will be killing the WiFi, I need to do this over USB, I was doing it through Simplify3D which has messy output. Stay tuned

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

                                      @joel, if your PC is running Windows, then try YAT.

                                      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

                                      Joelundefined 1 Reply Last reply Reply Quote 0
                                      • Joelundefined
                                        Joel @dc42
                                        last edited by

                                        @dc42

                                        I used Putty and now it seems to work. Through panel due and the console on Simplify3D those steps did not work. Trying the full M587 line though the web gui did not work. Using putty it worked. Maybe there's an indication of something here.

                                        Now I am set

                                        Thanks for putting up with the fuss.
                                        Joel

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

                                          Paneldue has a max line length, so that's to be expected. Not sure how simplify3d handles usb comms, could be a limit there as well.

                                          I would think it should work through the DWC console though.

                                          Another option would have been creating a macro file with the full command and then using the paneldue to execute the macro.

                                          Z-Bot CoreXY Build | Thingiverse Profile

                                          Joelundefined 1 Reply Last reply Reply Quote 0
                                          • Joelundefined
                                            Joel @Phaedrux
                                            last edited by

                                            @phaedrux

                                            I did do the macro thing, I don't recall if I did all the steps as described by DC42 ( missing step would have been the M588 S"*".

                                            Using DWC I did everything except the M588 S"*", I should have tried it but was thinking I would get disconnected.

                                            In panel due, yes, I had to break it up because of line length.

                                            Hopefully if this ever comes up for me again, I remember what I learned here.

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