No real progress but I've been diligently testing / trying everything that has been suggested.
I prepared two macros, one with the "force it lowercase" single quotes, and one without.
I also made sure that every line was terminated with a semicolon, and removed any extra whitespace.
WifiAdd.g
; Add default wifi network
M552 S0; ; Disable network module
G4 S5; ; wait 5 seconds
M587 S"'s'l'o't'h'n'e't" P"'d'e'a'l'w'i't'h'i't";
G4 S5; ; wait 5 seconds
M552 S1; ; reenable wifi module
WifiAdd2.g
; Add default wifi network
M552 S0; ; Disable network module
G4 S5; ; wait 5 seconds
M587 S"slothnet" P"dealwithit";
G4 S5; ; wait 5 seconds
M552 S1; ; reenable wifi module
WifiClear.g
; Clear all wifi networks
M552 S0 ; Disable network module
G4 S5 ; wait 5 seconds
M588 S"*" ; Clear all saved wifi networls
M291 R"WIFI networks forgotten." P"You must add a new WIFI network."
Here's the log of me running both of these commands, they both result in the same "failed to connect" over and over again.
M115
FIRMWARE_NAME: RepRapFirmware for Duet 3 Mini 5+ FIRMWARE_VERSION: 3.4.6 ELECTRONICS: Duet 3 Mini5plus WiFi FIRMWARE_DATE: 2023-07-21 14:09:13
ok
M98 P"WifiAdd2.g";
M98 P"WifiAdd2.g";
ok
Error: WiFi module reported: no known networks found
WiFi module is idle
Error: WiFi module reported: no known networks found
WiFi module is idle
Error: WiFi module reported: no known networks found
WiFi module is idle
Error: WiFi module reported: no known networks found
WiFi module is idle
Error: WiFi module reported: Failed while trying to connect to slothnet
WiFi module is idle
Error: WiFi module reported: Failed while trying to connect to slothnet
WiFi module is idle
Error: WiFi module reported: Failed while trying to connect to slothnet
WiFi module is idle
Error: WiFi module reported: Failed while trying to connect to slothnet
WiFi module is idle
M552 S0
ok
M552 S0
ok
Error: WiFi module reported: Failed while trying to connect to slothnet
WiFi module is idle
M552 S0;
ok
M98 P"WifiClear.g";
- WIFI networks forgotten. -
You must add a new WIFI network.
ok
M587;
M587;
Remembered networks: none
ok
M98 P"WifiAdd.g";
ok
Error: WiFi module reported: Failed while trying to connect to slothnet
WiFi module is idle
Error: WiFi module reported: Failed while trying to connect to slothnet
WiFi module is idle
Error: WiFi module reported: Failed while trying to connect to slothnet
WiFi module is idle
Error: WiFi module reported: Failed while trying to connect to slothnet
WiFi module is idle
M552 S0
ok
M552 S0;
ok
Error: WiFi module reported: Failed while trying to connect to slothnet
WiFi module is idle
M115;
FIRMWARE_NAME: RepRapFirmware for Duet 3 Mini 5+ FIRMWARE_VERSION: 3.4.6 ELECTRONICS: Duet 3 Mini5plus WiFi FIRMWARE_DATE: 2023-07-21 14:09:13
ok
M122;
=== Diagnostics ===
RepRapFirmware for Duet 3 Mini 5+ version 3.4.6 (2023-07-21 14:09:13) running on Duet 3 Mini5plus WiFi (standalone mode)
Board ID: S4AX7-H296U-D65J0-40KMU-2X03Z-78MGP
Used output buffers: 1 of 40 (1 max)
=== RTOS ===
Static ram: 103712
Dynamic ram: 109156 of which 156 recycled
Never used RAM 28688, free system stack 144 words
Tasks: NETWORK(ready,7.9%,370) HEAT(notifyWait,0.0%,374) Move(notifyWait,0.0%,363) CanReceiv(notifyWait,0.0%,941) CanSender(notifyWait,0.0%,335) CanClock(delaying,0.0%,342) TMC(notifyWait,0.0%,124) MAIN(running,91.2%,463) IDLE(ready,0.1%,30) AIN(delaying,0.8%,272), total 100.0%
Owned mutexes: USB(MAIN)
=== Platform ===
Last reset 00:04:31 ago, cause: power up
Last software reset time unknown, reason: StuckInSpinLoop, GCodes spinning, available RAM 15772, slot 0
Software reset code 0x0083 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0000080f BFAR 0xe000ed38 SP 0x20003f88 Task NETW Freestk 4294953423 ok
Stack: 00000000 20003038 10000000 e000e000 20019290 0009fad1 0009f1aa 610d0000 0009f193 203b736d ffffffff 00000000 00067fa3 0a736d30 2002c1a4 ffffffff 200117d0 00000009 0009f247 20004030 2002c1a0 200114c8 0009c48f 2002c1a0 0002d9df 2002c1a4 2000420c
Error status: 0x00
MCU revision 3, ADC conversions started 271236, completed 271236, timed out 0, errs 0
Step timer max interval 742
MCU temperature: min 22.8, current 28.0, max 28.0
Supply voltage: min 0.3, current 0.9, max 1.0, under voltage events: 0, over voltage events: 0, power good: no
Heap OK, handles allocated/used 0/0, heap memory allocated/used/recyclable 0/0/0, gc cycles 0
Events: 0 queued, 0 completed
Driver 0: ok, SG min n/a, read errors 0, write errors 0, ifcnt 0, reads 0, writes 0, timeouts 0, DMA errors 0, CC errors 0
Driver 1: ok, SG min n/a, read errors 0, write errors 0, ifcnt 0, reads 0, writes 0, timeouts 0, DMA errors 0, CC errors 0
Driver 2: ok, SG min n/a, read errors 0, write errors 0, ifcnt 0, reads 0, writes 0, timeouts 0, DMA errors 0, CC errors 0
Driver 3: ok, SG min n/a, read errors 0, write errors 0, ifcnt 0, reads 0, writes 0, timeouts 0, DMA errors 0, CC errors 0
Driver 4: ok, SG min n/a, read errors 0, write errors 0, ifcnt 0, reads 0, writes 0, timeouts 0, DMA errors 0, CC errors 0
Driver 5: ok, SG min n/a, read errors 0, write errors 0, ifcnt 0, reads 0, writes 0, timeouts 0, DMA errors 0, CC errors 0
Driver 6: ok, SG min n/a, read errors 0, write errors 0, ifcnt 0, reads 0, writes 0, timeouts 0, DMA errors 0, CC errors 0
Date/time: 1970-01-01 00:00:00
Cache data hit count 572132509
Slowest loop: 3.49ms; fastest: 0.12ms
=== Storage ===
Free file entries: 10
SD card 0 detected, interface speed: 22.5MBytes/sec
SD card longest read time 5.4ms, write time 0.0ms, max retries 0
=== Move ===
DMs created 83, segments created 0, maxWait 0ms, bed compensation in use: none, comp offset 0.000
=== MainDDARing ===
Scheduled moves 0, completed 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
=== AuxDDARing ===
Scheduled moves 0, completed 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
=== Heat ===
Bed heaters -1 -1 -1 -1, chamber heaters -1 -1 -1 -1, ordering errs 0
=== GCodes ===
Segments left: 0
Movement lock held by null
HTTP is idle in state(s) 0
Telnet is idle in state(s) 0
File is idle in state(s) 0
USB is ready with "M122" in state(s) 0
Aux is idle in state(s) 0
Trigger is idle in state(s) 0
Queue is idle in state(s) 0
LCD is idle in state(s) 0
SBC is idle in state(s) 0
Daemon is idle in state(s) 0
Aux2 is idle in state(s) 0
Autopause is idle in state(s) 0
Code queue is empty
=== CAN ===
Messages queued 1356, received 0, lost 0, boc 0
Longest wait 0ms for reply type 0, peak Tx sync delay 0, free buffers 18 (min 18), ts 1356/0/0
Tx timeouts 0,0,1355,0,0,0 last cancelled message type 30 dest 127
=== Network ===
Slowest loop: 1.30ms; fastest: 0.00ms
Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0)
HTTP sessions: 0 of 8
= WiFi =
Interface state: active
Module is idle
Failed messages: pending 0, notready 0, noresp 0
WiFi firmware version 1.26
WiFi MAC address f0:08:d1:03:d4:d7
WiFi Vcc 3.40, reset reason Power up
WiFi flash size 2097152, free heap 30216
Clock register 00002002
Socket states: 0 0 0 0 0 0 0 0
ok
After this I was determined to try to find SOMETHING to report on to try to figure out next steps. I used M929 to turn on event logging and it was... not useful. It just repeated the "can't connect" error but didn't explain why.
I had the idea then of turning on the Wifi with M522 S1
and waiting for it to be active, maybe then the output of M122
Will show something else?
Full M122
output below but wifi info shows reset reason Exception:
= WiFi =
Interface state: changingMode
Module is trying to connect
Failed messages: pending 0, notready 0, noresp 0
WiFi firmware version 1.26
WiFi MAC address f0:08:d1:03:d4:d7
WiFi Vcc 3.40, reset reason Exception
WiFi flash size 2097152, free heap 29824
Clock register 00002002
Socket states: 0 0 0 0 0 0 0 0
ok
MError: WiFi module reported: Failed while trying to connect to slothnet`
Does the exception indicate something is wrong with the wifi? Or is that just the natural state of "failed to connect to network"? Is there some way to update the wifi firmware? What else can I do at this point?
Error: WiFi module reported: Failed while trying to connect to slothnet
WiFi module is idle
M122;
=== Diagnostics ===
RepRapFirmware for Duet 3 Mini 5+ version 3.4.6 (2023-07-21 14:09:13) running on Duet 3 Mini5plus WiFi (standalone mode)
Board ID: S4AX7-H296U-D65J0-40KMU-2X03Z-78MGP
Used output buffers: 1 of 40 (17 max)
=== RTOS ===
Static ram: 103712
Dynamic ram: 109156 of which 156 recycled
Never used RAM 28688, free system stack 144 words
Tasks: NETWORK(ready,8.7%,361) HEAT(notifyWait,0.0%,374) Move(notifyWait,0.0%,363) CanReceiv(notifyWait,0.0%,941) CanSender(notifyWait,0.0%,335) CanClock(delaying,0.0%,342) TMC(notifyWait,0.0%,124) MAIN(running,90.5%,383) IDLE(ready,0.0%,30) AIN(delaying,0.8%,272), total 100.0%
Owned mutexes: USB(MAIN)
=== Platform ===
Last reset 00:06:41 ago, cause: power up
Last software reset time unknown, reason: StuckInSpinLoop, GCodes spinning, available RAM 15772, slot 0
Software reset code 0x0083 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0000080f BFAR 0xe000ed38 SP 0x20003f88 Task NETW Freestk 4294953423 ok
Stack: 00000000 20003038 10000000 e000e000 20019290 0009fad1 0009f1aa 610d0000 0009f193 203b736d ffffffff 00000000 00067fa3 0a736d30 2002c1a4 ffffffff 200117d0 00000009 0009f247 20004030 2002c1a0 200114c8 0009c48f 2002c1a0 0002d9df 2002c1a4 2000420c
Error status: 0x00
MCU revision 3, ADC conversions started 401510, completed 401508, timed out 0, errs 0
Step timer max interval 743
MCU temperature: min 27.8, current 28.2, max 28.4
Supply voltage: min 0.9, current 0.9, max 1.0, under voltage events: 0, over voltage events: 0, power good: no
Heap OK, handles allocated/used 0/0, heap memory allocated/used/recyclable 0/0/0, gc cycles 0
Events: 0 queued, 0 completed
Driver 0: ok, SG min n/a, read errors 0, write errors 0, ifcnt 0, reads 0, writes 0, timeouts 0, DMA errors 0, CC errors 0
Driver 1: ok, SG min n/a, read errors 0, write errors 0, ifcnt 0, reads 0, writes 0, timeouts 0, DMA errors 0, CC errors 0
Driver 2: ok, SG min n/a, read errors 0, write errors 0, ifcnt 0, reads 0, writes 0, timeouts 0, DMA errors 0, CC errors 0
Driver 3: ok, SG min n/a, read errors 0, write errors 0, ifcnt 0, reads 0, writes 0, timeouts 0, DMA errors 0, CC errors 0
Driver 4: ok, SG min n/a, read errors 0, write errors 0, ifcnt 0, reads 0, writes 0, timeouts 0, DMA errors 0, CC errors 0
Driver 5: ok, SG min n/a, read errors 0, write errors 0, ifcnt 0, reads 0, writes 0, timeouts 0, DMA errors 0, CC errors 0
Driver 6: ok, SG min n/a, read errors 0, write errors 0, ifcnt 0, reads 0, writes 0, timeouts 0, DMA errors 0, CC errors 0
Date/time: 1970-01-01 00:00:00
Cache data hit count 849290131
Slowest loop: 3.15ms; fastest: 0.12ms
=== Storage ===
Free file entries: 10
SD card 0 detected, interface speed: 22.5MBytes/sec
SD card longest read time 2.0ms, write time 0.0ms, max retries 0
=== Move ===
DMs created 83, segments created 0, maxWait 0ms, bed compensation in use: none, comp offset 0.000
=== MainDDARing ===
Scheduled moves 0, completed 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
=== AuxDDARing ===
Scheduled moves 0, completed 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
=== Heat ===
Bed heaters -1 -1 -1 -1, chamber heaters -1 -1 -1 -1, ordering errs 0
=== GCodes ===
Segments left: 0
Movement lock held by null
HTTP is idle in state(s) 0
Telnet is idle in state(s) 0
File is idle in state(s) 0
USB is ready with "M122" in state(s) 0
Aux is idle in state(s) 0
Trigger is idle in state(s) 0
Queue is idle in state(s) 0
LCD is idle in state(s) 0
SBC is idle in state(s) 0
Daemon is idle in state(s) 0
Aux2 is idle in state(s) 0
Autopause is idle in state(s) 0
Code queue is empty
=== CAN ===
Messages queued 159, received 0, lost 0, boc 0
Longest wait 0ms for reply type 0, peak Tx sync delay 0, free buffers 18 (min 18), ts 159/0/0
Tx timeouts 0,0,159,0,0,0 last cancelled message type 30 dest 127
=== Network ===
Slowest loop: 2.00ms; fastest: 0.00ms
Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0)
HTTP sessions: 0 of 8
= WiFi =
Interface state: changingMode
Module is trying to connect
Failed messages: pending 0, notready 0, noresp 0
WiFi firmware version 1.26
WiFi MAC address f0:08:d1:03:d4:d7
WiFi Vcc 3.40, reset reason Exception
WiFi flash size 2097152, free heap 29824
Clock register 00002002
Socket states: 0 0 0 0 0 0 0 0
ok
MError: WiFi module reported: Failed while trying to connect to slothnet
WiFi module is idle
5M552 S0