Problem with escape characters for password for Wi-Fi card.
-
Ok thanks. I have gone to a network with just a 2.4 GHz
-
@Schickfus i would suggest you shouldn't be using the I1.
Just useM552 S0
Edit: reading further,
I
should only be used when in SBC mode -
@Schickfus have you installed the wifi firmware?
M997 S1 -
If you're having troubles sending these commands from the terminal program you can put the commands into a macro file and then execute that.
-
-
@T3P3Tony said in Problem with escape characters for password for Wi-Fi card.:
M997 S1
M587.1
Error: M587.1: failed to start scan: WiFi module is disabledok
M552 I1 S0
ok
MWiFi module startedError: Bad command: M
ok
M587.1
ok
M587.2
Network Scan Results:
ssid=fSpace rssi=-47 phymode=n auth=Unknown
ssid=ceGuest rssi=3 phymode=b auth=Unknown
okBut it is not whole ssid. It is shopped
-
Yes I did. But this does not work.
It won't run the file -
What did you have in the file exactly?
How did you try to run the file?You need to use
M98 P"macroname.g"
to execute a macro. -
I used
M98 P"Gcodes/Wifimacro.g"
; wifimacro.g
; tell the Duet to connect to the wifi
;M118 S"Wifimacro turn off Wifi"
M118 S"Wifimacro turn off Wifi"
M552 I1 S0 ; Turn off the wifi module
M588 "*" ; forget all current SSID networks
M587 S"SurfSpaceGuest" P"Test"
M552 I1 S1 ; turn the wifi module back on
;M118 S"Wifimacro turn on Wifi"
M118 S"Wifimacro turn on Wifi" -
@Schickfus said in Problem with escape characters for password for Wi-Fi card.:
M552 I1 S0 ; Turn off the wifi module
Remove the
I1
from your M552 commands. Are you using an SBC?@Schickfus said in Problem with escape characters for password for Wi-Fi card.:
M588 "*" ; forget all current SSID networks
You're missing the S in front of the "*". It must be
M588 S"*"
-
@jay_s_uk said in Problem with escape characters for password for Wi-Fi card.:
@Schickfus i would suggest you shouldn't be using the I1.
Just useM552 S0
Edit: reading further,
I
should only be used when in SBC modeThe I1 is a required parameter to M552 when using the optional WiFi interface on the MB6HC board, so select the wifi interface. The default is I0 which is the Ethernet interface.
-
@Schickfus said in Problem with escape characters for password for Wi-Fi card.:
So I am connected via the serial tool on a Mac to the board.
I recall reading in previous posts that Macs have a habit of substituting "smart quotes" for plain double quotes. Are you sure that hasn't happened?
-
No I have done some testing.
M587.1
M587.2
And gett ssid string in the beginning chopped offed. Does this mater.
-
@Schickfus said in Problem with escape characters for password for Wi-Fi card.:
And gett ssid string in the beginning chopped offed. Does this mater.
That's a known issue in RRF 3.5beta2, fixed in the forthcoming beta3. It's only the reported SSID that gets truncated, not the stored SSID.
-
Is there a way to know that I have installed the right wifi code?
The files:
DuetWiFiServer_32S3.bin
DuetWiFiServer.bin -
I guess that makes my question obsolet.
-
@Schickfus the correct one for the optional wifi module on the MB6HC version 1.02 is DuetWiFiServer_32S3.bin. It should select that one automatically. If in doubt, make sure that the /firmware folder on the SD card contains that one and not the other one, and send M997 S1 to update the wifi module. The latest version is at https://github.com/Duet3D/WiFiSocketServerRTOS/releases/tag/2.1beta3.
However, if the wifi module is responding to requests at all, you almost certainly have the correct firmware installed, although perhaps not the latest version. If you send M552 I1 S0 followed by M122 then the WiFi section of the report should include the WiFi firmware version.
-
It is the right. WiFi firmware version 2.1beta3
-
@Schickfus said in Problem with escape characters for password for Wi-Fi card.:
M587 S"Surf" P"=U2raA44Ae*”
The closing quote at the end of the password in that line is indeed the wrong sort of quote, it's not a straight quote. The command provokes the reply "Error: M587: control character in string". The command is accepted if I replace the closing quote by a straight double quote.
Try sending those commands from the console, but:
- after the M552 I1 S0 command, wait for the "WiFi module started" message
- change M558 "" to M588 S""
- wait at least 10 seconds after the M588 command, it has to erase the flash file system
- make sure that your terminal emulator doesn't change the straight double quotes to smart quotes
If you want to send them from a GCode file instead, you will need to add G4 delay commands after the M552 and the M588.
-
@dc42 said in Problem with escape characters for password for Wi-Fi card.:
@jay_s_uk said in Problem with escape characters for password for Wi-Fi card.:
@Schickfus i would suggest you shouldn't be using the I1.
Just useM552 S0
Edit: reading further,
I
should only be used when in SBC modeThe I1 is a required parameter to M552 when using the optional WiFi interface on the MB6HC board, so select the wifi interface. The default is I0 which is the Ethernet interface.
@droftarts the gcode docs need updating to reflect that then