Can't Add network to duet 2 wifi network list
-
Hiya all. I recently bought a duet 2 wifi but I can't get the wifi module to work. Prior to installing I plugged the motherboard into my Mac and use serial tools to access it. I ran the M552 S-1 command to stop halt the wifi module then used M552 S0 to restart. After this I used the M587 command with the proper password format and SSID format. After checking if it was added to M587 it replied with 'No Networks Found'. I was running RRP 2.03 and updated to 3. but made no difference. I attached images below. Someone please help e with this I can't find out what I am doing wrong.
MY M122 command output:
=== Diagnostics ===
RepRapFirmware for Duet 2 WiFi/Ethernet version 3.0 running on Duet WiFi 1.02 or later
Board ID: 08DJM-9178L-L4MSN-6J9DJ-3S86K-KB02N
Used output buffers: 1 of 24 (2 max)
=== RTOS ===
Static ram: 30516
Dynamic ram: 91228 of which 548 recycled
Exception stack ram used: 256
Never used ram: 8524
Tasks: NETWORK(ready,1256) HEAT(suspended,1476) MAIN(running,3764) IDLE(ready,156)
Owned mutexes:
=== Platform ===
Last reset 00:02:24 ago, cause: power up
Last software reset time unknown, reason: Watchdog timeout, spinning module Platform, available RAM 10672 bytes (slot 1)
Software reset code 0x00a0 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0043380f BFAR 0xe000ed38 SP 0x20004954 Task 0x4e49414d
Stack: 0044ccc7 0044a256 6100f000 00000000 00000000 00000000 00000000 3331bb4c 40000000 3f317200 b5ddea0e 388ab296 bb360a72 3a5b842b 00000000 00000000 3f800000 00000000 00000000 80000010 20003244 20009194 0044ccc7
Error status: 0
Free file entries: 10
SD card 0 detected, interface speed: 20.0MBytes/sec
SD card longest block write time: 0.0ms, max retries 0
MCU temperature: min 17.4, current 22.7, max 23.1
Supply voltage: min 0.7, current 1.6, max 1.7, under voltage events: 0, over voltage events: 0, power good: no
Driver 0: ok, SG min/max not available
Driver 1: ok, SG min/max not available
Driver 2: ok, SG min/max not available
Driver 3: ok, SG min/max not available
Driver 4: ok, SG min/max not available
Date/time: 1970-01-01 00:00:00
Cache data hit count 204974788
Slowest loop: 6.89ms; fastest: 0.07ms
I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0
=== Move ===
Hiccups: 0(0), FreeDm: 169, MinFreeDm: 169, MaxWait: 0ms
Bed compensation in use: none, comp offset 0.000
=== MainDDARing ===
Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0
=== AuxDDARing ===
Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0
=== Heat ===
Bed heaters = 0 -1 -1 -1, chamberHeaters = -1 -1 -1 -1
=== GCodes ===
Segments left: 0
StackRunning command to add network:
M552 S-1
Error: Bad command: MM552 S-1
ok
M552 S-1
WiFi module stopped
ok
M552 S0
ok
WiFi module started
M552
WiFi module is idle
ok
M587 S”XY1789" P”Jake78"
M587
No remembered networks
ok -
@Markcus what software are you using to send the commands?
-
@jay_s_uk thank you for the reply. I am on my Mac and using serial tools.
-
@Markcus i'm not sure whether serial tools converts things to uppercase or not.
best follow this to add your network
In firmware 1.19.2 and later, within any quoted string you can use a single-quote character to indicate that the following character should be changed to lowercase. For example, M587 S"ABC" P"P'A'S'SW'O'R'D" would specify that the password is "PassWord". Use two single quote characters to represent one actual single quote character in the password or in the SSID. For example, if your SSID is "Pete's network" then enter "Pete''s network".
-
@jay_s_uk Thakyou so much for the response. I tried that and it would not work. I then tried to use my terminal command line to make it work and it worked. I added the network and connected to web control. Thankyou to everyone for reading and jay for giving me the idea of which software I was using. For anybody in the future don't use serial tools just do the command line. May not look as pretty but it works really well. Cheers guys and happy coding
-
-
-
M587 S”XY1789" P”Jake78"
It looks like in your command you used curly quotes. Make sure you're using straight quotes in all commands, ie
"
rather than curly quotes, ie”
. Also, you didn't get an 'ok' after the command, so it didn't go through.SerialTools works, but is a bit finicky about input; you have to get the command right, without pressing delete or cursor keys. I think it sends each character to the Duet as you type them (raw mode), rather than when you press return. If you navigate away from SerialTools to another application, and then back, in the middle of writing the command, the command won't work. You should get an 'ok' when a command goes through correctly. It's also the only terminal program available on the app store that I've found.
If you're okay with downloading software not on the Apple app store, I've been using CoolTerm from https://freeware.the-meiers.org/. Coolterm works well, though I usually have it set to Options > Terminal > 'Line mode', which sends your command line when you press return rather than character by character, and turn on local echo so it shows the command you have sent.
Ian