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.
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 -
@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.
-
@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.
-
@dc42
Hi,M587 returns,
M587
Remembered networks:
outerlimits IP=0.0.0.0 GW=0.0.0.0 NM=0.0.0.0No 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 -
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 S1I also tried with an M552 S0 before the M587 line.
-
-
@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.
-
-
Thanks, been there. There is no IP setting flag with M522 for Duet WiFi
-
@joel, please note: M587 will not work within config.g. Send it manually instead.
-
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 -
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.
-
@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.
-
M552 does not set the IP address either. It Seems M552 only sets IP for non WiFi versions.
-
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.
-
@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.
-
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
-
@joel, if your PC is running Windows, then try YAT.
-
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 -
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.