M587 is not successful
-
I have a Duet2 Wi-Fi. I am trying to establish a new Wi-Fi Connection with M587. I am using serial ports for Mac with USB. M997 has successfully updatet the firmware to 3.4.5.
I followed the process shown on duet3d.com.
After M522 S0 the Wi-Fi Modul starts and M552 answers „Wi-Fi Modul ist idle“
Then M587 S“network“ P“password“ has no effect.
M587 shows no remembered network. -
It sounds like your terminal software hasn't passed the SSID and password correctly.
Are you following this? https://docs.duet3d.com/en/How_to_guides/Getting_connected/Getting_connected_to_your_Duet#h-5-connect-duet-to-network
There are limitations to the characters that can be used in SSID and passwords. See here for those: https://docs.duet3d.com/User_manual/Reference/Gcodes#notes-102
If you're not impacted by those limitations there is another option for adding a SSID. You can create a text file macro with the command and place it on the SD card, and then execute that file from the terminal. That way the terminal software can't mangle the password.
The contents of the file would look something like this
; Add default wifi network ; M291 R"Add default WIFI network? Y/N" P"This will add duetwifi access point." S3 T10 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 M291 R"duetwifi SSID added." P"Check console to verify IP address."
And you would place that file in the macros folder on the SD card as addssid.g and then execute it by sending M98 P"addssid.g"
-
@3DinoPrint said in M587 is not successful:
Then M587 S“network“ P“password“ has no effect.
Are you using the correct double-quote marks when you send the M587 command? The ones in your post are incorrect. It should look like this:
M587 S"network" P"password"
-
@Phaedrux M98 did the job. To be on the save side I directly addressed the macro with M98 P”0:/macros/add my network.g” and it worked. Thank you very much for your help.
-
-