Duet WiFi in access point mode
-
How did you send the M589 command to the Duet? After sending it, did you send M589 without parameters to confirm that it had stored the right details, including the lowercase characters in the SSID?
The SSID of my delta is Kossel, the password includes lowercase characters, and I can connect to it.
-
I did test it via macro.
This did not work:
[[language]] ; SetNetwork macro to set up access to dummy test Wifi network M552 S0; G4 S5; M589 S"test123" P"test123" I192.168.178.250; G4 S5; M552 S2;
This works everytime:
[[language]] ; SetNetwork macro to set up access to dummy test Wifi network M552 S0; G4 S5; M589 S"MEINDUET" P"MEINWIFI" I192.168.178.250; G4 S5; M552 S2;
Noticed, that since using RC3, changing from M552 S2 over M552 S0 to M552 S1 doesn't work sometimes.
Using the makro:[[language]] M552 S0; G4 S5; M552 S1;
sometimes results in:
[[language]] WiFi module is idle Failed to change WiFi mode (code -7)
executing the macro or M552 S1 again does work in this case.
-
"test123" is an invalid password, because WPA2 passwords must be at least 8 characters. I'll add a check on the password length when processing M589.
I too have seen the "failed to change mode" message, and I will investigate it.
-
know this is old, but thinking I might be able to do this over the weekend as I'm bringing my printer to ERRF event and would like to be able to run it? kinda confused on the exact actions I need to do as You guy kinda jumped back and forth.. but from what I gathered.. I can ..
Send M589 followed with some info here? but what how format/details? (S "Name of access" P "Password" then an I "IP address" I can just make up?)
Send M552 S2 (will it auto restart or do I need to restart it?)
and then just sign into it with a phone/tablet?how badly and I off?
-
I used it last week. I think a nice option would be an automatic hotspot when no saved network is in range.
-
Do a search of the documentation for access point and check the associated gcode commands in the gcode wiki. That should get you started.
-
@thomllama said in Duet WiFi in access point mode:
know this is old, but thinking I might be able to do this over the weekend as I'm bringing my printer to ERRF event and would like to be able to run it? kinda confused on the exact actions I need to do as You guy kinda jumped back and forth.. but from what I gathered.. I can ..
Send M589 followed with some info here? but what how format/details? (S "Name of access" P "Password" then an I "IP address" I can just make up?)
Send M552 S2 (will it auto restart or do I need to restart it?)
and then just sign into it with a phone/tablet?how badly and I off?
Yes, that should work. Choose a private (i.e. non-routable) IP address in the M589 command, see https://en.wikipedia.org/wiki/Private_network#Private_IPv4_addresses. Make sure you are using recent firmware - AFAIR firmware 1.19 doesn't support AP mode but 1.20 and later do.
-
OK, guessing this should actually be easy, but didn't work..
I can plug in by USB.. access , input 552 S0 (Wifi Module is idle - response). 552 S1 (OK response) or 552 S2 (Wifi Module is idle - response). without issue.. so guessing with it reporting idle is hasn't taken the access point info?
-
Send M589 without parameters to check whether the access point info has been stored.