• Tags
  • Documentation
  • Order
  • Register
  • Login
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.
  • undefined
    Joel
    last edited by Joel 14 Apr 2021, 01:16

    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.

    I am also doing this through USB using a console.

    Am I missing another step?

    I initially set this up while on 2.x.x Duet FW, I am now on 3.2.2

    Thanks
    Joel

    undefined undefined 2 Replies Last reply 14 Apr 2021, 06:11 Reply Quote 0
    • undefined
      o_lampe @Joel
      last edited by o_lampe 14 Apr 2021, 06:11

      @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
      • undefined
        dc42 administrators @Joel
        last edited by 14 Apr 2021, 10:44

        @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

        undefined 1 Reply Last reply 14 Apr 2021, 13:31 Reply Quote 0
        • undefined
          Joel @dc42
          last edited by 14 Apr 2021, 13:31

          @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

          undefined 1 Reply Last reply 14 Apr 2021, 15:33 Reply Quote 0
          • undefined
            Joel @Joel
            last edited by 14 Apr 2021, 15:33

            @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.

            undefined undefined 2 Replies Last reply 14 Apr 2021, 15:42 Reply Quote 0
            • undefined
              Stephen6309 @Joel
              last edited by 14 Apr 2021, 15:42

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

              undefined 1 Reply Last reply 14 Apr 2021, 18:11 Reply Quote 0
              • undefined
                dc42 administrators @Joel
                last edited by dc42 14 Apr 2021, 17:59

                @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

                undefined 1 Reply Last reply 14 Apr 2021, 18:10 Reply Quote 0
                • undefined
                  Joel @dc42
                  last edited by 14 Apr 2021, 18:10

                  @dc42

                  WiFi FW version is 1.25

                  And yes, upper case i

                  Thanks
                  Joel

                  1 Reply Last reply Reply Quote 0
                  • undefined
                    Joel @Stephen6309
                    last edited by 14 Apr 2021, 18:11

                    @stephen6309

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

                    undefined 1 Reply Last reply 14 Apr 2021, 18:33 Reply Quote 0
                    • undefined
                      dc42 administrators @Joel
                      last edited by 14 Apr 2021, 18:33

                      @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

                      undefined 1 Reply Last reply 14 Apr 2021, 19:37 Reply Quote 0
                      • undefined
                        Joel @dc42
                        last edited by 14 Apr 2021, 19:37

                        @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

                        undefined 1 Reply Last reply 15 Apr 2021, 01:13 Reply Quote 0
                        • undefined
                          Phaedrux Moderator
                          last edited by 15 Apr 2021, 01:12

                          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

                          undefined 1 Reply Last reply 15 Apr 2021, 12:01 Reply Quote 0
                          • undefined
                            Phaedrux Moderator @Joel
                            last edited by 15 Apr 2021, 01:13

                            @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

                            undefined 1 Reply Last reply 15 Apr 2021, 12:06 Reply Quote 0
                            • undefined
                              Joel @Phaedrux
                              last edited by 15 Apr 2021, 12:01

                              @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
                              • undefined
                                Joel @Phaedrux
                                last edited by 15 Apr 2021, 12:06

                                @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.

                                undefined 1 Reply Last reply 15 Apr 2021, 14:43 Reply Quote 0
                                • undefined
                                  dc42 administrators @Joel
                                  last edited by 15 Apr 2021, 14:43

                                  @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

                                  undefined 1 Reply Last reply 15 Apr 2021, 17:00 Reply Quote 0
                                  • undefined
                                    Joel @dc42
                                    last edited by 15 Apr 2021, 17:00

                                    @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

                                    undefined 1 Reply Last reply 15 Apr 2021, 17:08 Reply Quote 0
                                    • undefined
                                      dc42 administrators @Joel
                                      last edited by 15 Apr 2021, 17:08

                                      @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

                                      undefined 1 Reply Last reply 15 Apr 2021, 17:29 Reply Quote 0
                                      • undefined
                                        Joel @dc42
                                        last edited by 15 Apr 2021, 17:29

                                        @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
                                        • undefined
                                          Phaedrux Moderator
                                          last edited by 15 Apr 2021, 17:55

                                          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

                                          undefined 1 Reply Last reply 15 Apr 2021, 20:51 Reply Quote 0
                                          7 out of 21
                                          • First post
                                            7/21
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA