WiFi Unreliable
-
Reading the
M122
result signal strength is good at-39dBm
so I'm not sure why I'm getting the problems I am. I was having upload speeds as slow as 3.5 KIB/s after posting the result.
-
@dessiverse your signal strength looks not bad (mine is worse and have no problem ). If your WLAN connection is slow again can you post again the result of M122. Perhaps is an Update to RRF 3.3 B3 a solution
-
@siam how would I go about updating?
-
@dessiverse Here is the documentation https://duet3d.dozuki.com/Wiki/Installing_and_Updating_Firmware
The latest firmware you find here: https://forum.duet3d.com/topic/22878/software-package-3-3beta3-released
-
@siam I updated the firmware and confirmed the update.
Console is still getting spammed with the below messages:Recv: WiFi reported error: network scan failed Recv: WiFi module is idle Recv: WiFi reported error: network scan failed Recv: WiFi module is idle Recv: WiFi reported error: network scan failed Recv: WiFi module is idle Recv: WiFi reported error: network scan failed Recv: WiFi module is idle Recv: WiFi reported error: network scan failed
Here is the result of
M122
Send: M122 Recv: === Diagnostics === Recv: RepRapFirmware for Duet 3 Mini 5+ version 3.3beta3 (2021-04-22 13:48:16) running on Duet 3 Mini5plus WiFi (standalone mode) Recv: Board ID: 7HDQX-V296U-D65J0-40KM8-MK03Z-R91J2 Recv: Used output buffers: 1 of 40 (1 max) Recv: === RTOS === Recv: Static ram: 101772 Recv: Dynamic ram: 106336 of which 12 recycled Recv: Never used RAM 35584, free system stack 160 words Recv: Tasks: NETWORK(ready,8.0%,346) HEAT(delaying,0.0%,318) Move(notifyWait,0.1%,188) CanReceiv(notifyWait,0.0%,943) CanSender(notifyWait,0.0%,371) CanClock(notifyWait,0.0%,341) TMC(notifyWait,0.7%,115) MAIN(running,90.1%,426) IDLE(ready,0.3%,19) AIN(delaying,0.8%,273), total 100.0% Recv: Owned mutexes: USB(MAIN) Recv: === Platform === Recv: Last reset 00:01:10 ago, cause: software Recv: Last software reset at 2021-04-28 12:14, reason: HardFault bfarValid precise, GCodes spinning, available RAM 35584, slot 2 Recv: Software reset code 0x0063 HFSR 0x40000000 CFSR 0x00008200 ICSR 0x00000803 BFAR 0x00000044 SP 0x200036a8 Task MAIN Freestk 771 ok Recv: Stack: 00000000 2000374c 00000571 00000000 00000000 0007be25 000836d8 610f0200 2001d580 00000000 00000000 00088e39 00000000 00000000 00000000 ffffffff 369dc3a0 2001d580 20002a40 2001d37c 20003730 200037d8 200037d6 00088f33 00000001 200202e8 200180d8 Recv: Error status: 0x00 Recv: Aux0 errors 0,0,0 Recv: Aux1 errors 0,0,0 Recv: MCU revision 3, ADC conversions started 70672, completed 70672, timed out 0, errs 0 Recv: Step timer max interval 745 Recv: MCU temperature: min 29.2, current 30.6, max 30.6 Recv: Supply voltage: min 23.9, current 23.9, max 24.0, under voltage events: 0, over voltage events: 0, power good: yes Recv: Heap OK, handles allocated/used 0/0, heap memory allocated/used/recyclable 0/0/0, gc cycles 0 Recv: Driver 0: position 0, standstill, SG min/max 0/0, read errors 0, write errors 1, ifcnt 20, reads 3696, writes 9, timeouts 0, DMA errors 0 Recv: Driver 1: position 0, standstill, SG min/max 0/0, read errors 0, write errors 1, ifcnt 20, reads 3696, writes 9, timeouts 0, DMA errors 0 Recv: Driver 2: position 0, standstill, SG min/max 0/0, read errors 0, write errors 1, ifcnt 19, reads 3696, writes 9, timeouts 0, DMA errors 0 Recv: Driver 3: position 0, standstill, SG min/max 0/0, read errors 0, write errors 1, ifcnt 19, reads 3696, writes 9, timeouts 0, DMA errors 0 Recv: Driver 4: position 0, standstill, SG min/max 0/0, read errors 0, write errors 1, ifcnt 19, reads 3696, writes 9, timeouts 0, DMA errors 0 Recv: Driver 5: position 0, assumed not present Recv: Driver 6: position 0, assumed not present Recv: Date/time: 1970-01-01 00:00:00 Recv: Cache data hit count 146022799 Recv: Slowest loop: 25.74ms; fastest: 0.12ms Recv: === Storage === Recv: Free file entries: 10 Recv: SD card 0 detected, interface speed: 22.5MBytes/sec Recv: SD card longest read time 3.2ms, write time 0.0ms, max retries 0 Recv: === Move === Recv: DMs created 83, maxWait 0ms, bed compensation in use: none, comp offset 0.000 Recv: === MainDDARing === Recv: Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1 Recv: === AuxDDARing === Recv: Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1 Recv: === Heat === Recv: Bed heaters = 0 -1, chamberHeaters = -1 -1 Recv: Heater 1 is on, I-accum = 0.0 Recv: === GCodes === Recv: Segments left: 0 Recv: Movement lock held by null Recv: HTTP is idle in state(s) 0 Recv: Telnet is idle in state(s) 0 Recv: File is idle in state(s) 0 Recv: USB is ready with "M122" in state(s) 0 Recv: Aux is idle in state(s) 0 Recv: Trigger is idle in state(s) 0 Recv: Queue is idle in state(s) 0 Recv: LCD is idle in state(s) 0 Recv: SBC is idle in state(s) 0 Recv: Daemon is idle in state(s) 0 Recv: Aux2 is idle in state(s) 0 Recv: Autopause is idle in state(s) 0 Recv: Code queue is empty. Recv: === CAN === Recv: Messages queued 635, send timeouts 633, received 0, lost 0, longest wait 0ms for reply type 0, peak Tx sync delay 0, free buffers 17 (min 17) Recv: Last cancelled message type 4514 dest 127 Recv: === Network === Recv: Slowest loop: 199.80ms; fastest: 0.00ms Recv: Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions Recv: HTTP sessions: 0 of 8 Recv: - WiFi - Recv: Network state is disabled Recv: WiFi module is disabled Recv: Failed messages: pending 0, notready 0, noresp 2 Recv: Socket states: 0 0 0 0 0 0 0 0
I started running the typical commands to try to get it to reconnect and got an error
Send: M552 S-1 Recv: ok Send: M552 Recv: WiFi module is disabled Recv: ok Send: M105 Recv: ok T:19.8 /0.0 T0:19.8 /0.0 B:22.5 /0.0 Send: M552 S0 Recv: ok Recv: WiFi module started Send: M552 S1 Recv: ok Send: M105 Recv: ok T:19.8 /0.0 T0:19.8 /0.0 B:22.5 /0.0 Recv: WiFi reported error: Unexpected WiFi state 'idle' while trying to connect to
After spamming the "network scan failed" messages I got ran
M552
to see the status and gotRecv: WiFi module is connected to access point , IP address 255.255.255.255
-
@dessiverse have you updated the DuetWiFiServer.bin ?
-
@siam I’ve been trying to but it keeps saying the file doesn’t exist even though it’s in the sys directory.
-
-
@dessiverse it needs to be in a folder called firmware with 3.3 rather than in the sys folder
-
@jay_s_uk just got it installed. Doesn't appear to be improved though.
-
Here's an updated
M122
Send: M122 Recv: === Diagnostics === Recv: RepRapFirmware for Duet 3 Mini 5+ version 3.3beta3 (2021-04-22 13:48:16) running on Duet 3 Mini5plus WiFi (standalone mode) Recv: Board ID: 7HDQX-V296U-D65J0-40KM8-MK03Z-R91J2 Recv: Used output buffers: 1 of 40 (11 max) Recv: === RTOS === Recv: Static ram: 101772 Recv: Dynamic ram: 106336 of which 12 recycled Recv: Never used RAM 35584, free system stack 157 words Recv: Tasks: NETWORK(ready,19.8%,150) HEAT(delaying,0.0%,318) Move(notifyWait,0.1%,188) CanReceiv(notifyWait,0.0%,943) CanSender(notifyWait,0.0%,371) CanClock(notifyWait,0.0%,341) TMC(notifyWait,0.7%,115) MAIN(running,78.2%,426) IDLE(ready,0.4%,19) AIN(delaying,0.8%,273), total 100.0% Recv: Owned mutexes: USB(MAIN) Recv: === Platform === Recv: Last reset 00:02:18 ago, cause: power up Recv: Last software reset at 2021-04-28 12:14, reason: HardFault bfarValid precise, GCodes spinning, available RAM 35584, slot 2 Recv: Software reset code 0x0063 HFSR 0x40000000 CFSR 0x00008200 ICSR 0x00000803 BFAR 0x00000044 SP 0x200036a8 Task MAIN Freestk 771 ok Recv: Stack: 00000000 2000374c 00000571 00000000 00000000 0007be25 000836d8 610f0200 2001d580 00000000 00000000 00088e39 00000000 00000000 00000000 ffffffff 369dc3a0 2001d580 20002a40 2001d37c 20003730 200037d8 200037d6 00088f33 00000001 200202e8 200180d8 Recv: Error status: 0x00 Recv: Aux0 errors 0,0,0 Recv: Aux1 errors 0,0,0 Recv: MCU revision 3, ADC conversions started 138334, completed 138334, timed out 0, errs 0 Recv: Step timer max interval 1490 Recv: MCU temperature: min 23.8, current 29.7, max 29.7 Recv: Supply voltage: min 23.9, current 24.0, max 24.0, under voltage events: 0, over voltage events: 0, power good: yes Recv: Heap OK, handles allocated/used 0/0, heap memory allocated/used/recyclable 0/0/0, gc cycles 0 Recv: Driver 0: position 0, standstill, SG min/max 0/0, read errors 0, write errors 0, ifcnt 10, reads 7247, writes 10, timeouts 0, DMA errors 0 Recv: Driver 1: position 0, standstill, SG min/max 0/0, read errors 0, write errors 0, ifcnt 10, reads 7247, writes 10, timeouts 0, DMA errors 0 Recv: Driver 2: position 0, standstill, SG min/max 0/0, read errors 0, write errors 0, ifcnt 9, reads 7247, writes 9, timeouts 0, DMA errors 0 Recv: Driver 3: position 0, standstill, SG min/max 0/0, read errors 0, write errors 0, ifcnt 9, reads 7247, writes 9, timeouts 0, DMA errors 0 Recv: Driver 4: position 0, standstill, SG min/max 0/0, read errors 0, write errors 0, ifcnt 9, reads 7248, writes 9, timeouts 0, DMA errors 0 Recv: Driver 5: position 0, assumed not present Recv: Driver 6: position 0, assumed not present Recv: Date/time: 2021-04-28 13:32:52 Recv: Cache data hit count 320404896 Recv: Slowest loop: 1051.41ms; fastest: 0.12ms Recv: === Storage === Recv: Free file entries: 9 Recv: SD card 0 detected, interface speed: 22.5MBytes/sec Recv: SD card longest read time 3.9ms, write time 0.0ms, max retries 0 Recv: === Move === Recv: DMs created 83, maxWait 0ms, bed compensation in use: none, comp offset 0.000 Recv: === MainDDARing === Recv: Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1 Recv: === AuxDDARing === Recv: Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1 Recv: === Heat === Recv: Bed heaters = 0 -1, chamberHeaters = -1 -1 Recv: === GCodes === Recv: Segments left: 0 Recv: Movement lock held by null Recv: HTTP is idle in state(s) 0 Recv: Telnet is idle in state(s) 0 Recv: File is idle in state(s) 0 Recv: USB is ready with "M122" in state(s) 0 Recv: Aux is idle in state(s) 0 Recv: Trigger is idle in state(s) 0 Recv: Queue is idle in state(s) 0 Recv: LCD is idle in state(s) 0 Recv: SBC is idle in state(s) 0 Recv: Daemon is idle in state(s) 0 Recv: Aux2 is idle in state(s) 0 Recv: Autopause is idle in state(s) 0 Recv: Code queue is empty. Recv: === CAN === Recv: Messages queued 1244, send timeouts 1241, received 0, lost 0, longest wait 0ms for reply type 0, peak Tx sync delay 0, free buffers 17 (min 16) Recv: Last cancelled message type 4514 dest 127 Recv: === Network === Recv: Slowest loop: 1993.74ms; fastest: 0.00ms Recv: Responder states: HTTP(0) HTTP(2) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions Recv: HTTP sessions: 1 of 8 Recv: - WiFi - Recv: Network state is active Recv: WiFi module is connected to access point Recv: Failed messages: pending 0, notready 0, noresp 0 Recv: WiFi firmware version 1.26 Recv: WiFi MAC address f0:08:d1:02:ec:f2 Recv: WiFi Vcc 3.33, reset reason Power up Recv: WiFi flash size 2097152, free heap 14336 Recv: WiFi IP address 10.0.0.201 Recv: WiFi signal strength -37dBm, mode 802.11n, reconnections 0, sleep mode modem Recv: Clock register 00002002 Recv: Socket states: 0 2 0 0 0 0 0 0 Recv: ok
-
@dessiverse this looks good so far now the Wi-Fi has a software version and now test if this problem persists
-
@SIam, I'm trying to upload a gcode to test the speed and it seems like it keeps slowing down. So the same issue I was having previously. I'd like to note I don't have this issue in SBC mode.
EDIT: It now slowed down to 1.8 KIB/s. Here is the current
M122
:Send: M122 Recv: === Diagnostics === Recv: RepRapFirmware for Duet 3 Mini 5+ version 3.3beta3 (2021-04-22 13:48:16) running on Duet 3 Mini5plus WiFi (standalone mode) Recv: Board ID: 7HDQX-V296U-D65J0-40KM8-MK03Z-R91J2 Recv: Used output buffers: 2 of 40 (17 max) Recv: === RTOS === Recv: Static ram: 101772 Recv: Dynamic ram: 106336 of which 12 recycled Recv: Never used RAM 35584, free system stack 146 words Recv: Tasks: NETWORK(ready,15.8%,150) HEAT(delaying,0.0%,318) Move(notifyWait,0.1%,188) CanReceiv(notifyWait,0.0%,943) CanSender(notifyWait,0.0%,371) CanClock(delaying,0.0%,341) TMC(notifyWait,0.7%,115) MAIN(running,82.6%,372) IDLE(ready,0.0%,19) AIN(delaying,0.8%,273), total 100.0% Recv: Owned mutexes: WiFi(NETWORK) USB(MAIN) Recv: === Platform === Recv: Last reset 00:08:20 ago, cause: power up Recv: Last software reset at 2021-04-28 12:14, reason: HardFault bfarValid precise, GCodes spinning, available RAM 35584, slot 2 Recv: Software reset code 0x0063 HFSR 0x40000000 CFSR 0x00008200 ICSR 0x00000803 BFAR 0x00000044 SP 0x200036a8 Task MAIN Freestk 771 ok Recv: Stack: 00000000 2000374c 00000571 00000000 00000000 0007be25 000836d8 610f0200 2001d580 00000000 00000000 00088e39 00000000 00000000 00000000 ffffffff 369dc3a0 2001d580 20002a40 2001d37c 20003730 200037d8 200037d6 00088f33 00000001 200202e8 200180d8 Recv: Error status: 0x00 Recv: Aux0 errors 0,0,0 Recv: Aux1 errors 0,0,0 Recv: MCU revision 3, ADC conversions started 501054, completed 501052, timed out 0, errs 0 Recv: Step timer max interval 1489 Recv: MCU temperature: min 29.7, current 32.8, max 32.8 Recv: Supply voltage: min 23.9, current 24.0, max 24.0, under voltage events: 0, over voltage events: 0, power good: yes Recv: Heap OK, handles allocated/used 0/0, heap memory allocated/used/recyclable 0/0/0, gc cycles 0 Recv: Driver 0: position 0, standstill, SG min/max 0/0, read errors 0, write errors 0, ifcnt 10, reads 19090, writes 0, timeouts 0, DMA errors 0 Recv: Driver 1: position 0, standstill, SG min/max 0/0, read errors 0, write errors 0, ifcnt 10, reads 19090, writes 0, timeouts 0, DMA errors 0 Recv: Driver 2: position 0, standstill, SG min/max 0/0, read errors 0, write errors 0, ifcnt 9, reads 19091, writes 0, timeouts 0, DMA errors 0 Recv: Driver 3: position 0, standstill, SG min/max 0/0, read errors 0, write errors 0, ifcnt 9, reads 19090, writes 0, timeouts 0, DMA errors 0 Recv: Driver 4: position 0, standstill, SG min/max 0/0, read errors 0, write errors 0, ifcnt 9, reads 19090, writes 0, timeouts 0, DMA errors 0 Recv: Driver 5: position 0, assumed not present Recv: Driver 6: position 0, assumed not present Recv: Date/time: 2021-04-28 13:38:55 Recv: Cache data hit count 1012800891 Recv: Slowest loop: 12.17ms; fastest: 0.12ms Recv: === Storage === Recv: Free file entries: 9 Recv: SD card 0 detected, interface speed: 22.5MBytes/sec Recv: SD card longest read time 4.2ms, write time 3.9ms, max retries 0 Recv: === Move === Recv: DMs created 83, maxWait 0ms, bed compensation in use: none, comp offset 0.000 Recv: === MainDDARing === Recv: Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1 Recv: === AuxDDARing === Recv: Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1 Recv: === Heat === Recv: Bed heaters = 0 -1, chamberHeaters = -1 -1 Recv: === GCodes === Recv: Segments left: 0 Recv: Movement lock held by null Recv: HTTP is idle in state(s) 0 Recv: Telnet is idle in state(s) 0 Recv: File is idle in state(s) 0 Recv: USB is ready with "M122" in state(s) 0 Recv: Aux is idle in state(s) 0 Recv: Trigger is idle in state(s) 0 Recv: Queue is idle in state(s) 0 Recv: LCD is idle in state(s) 0 Recv: SBC is idle in state(s) 0 Recv: Daemon is idle in state(s) 0 Recv: Aux2 is idle in state(s) 0 Recv: Autopause is idle in state(s) 0 Recv: Code queue is empty. Recv: === CAN === Recv: Messages queued 3265, send timeouts 3265, received 0, lost 0, longest wait 0ms for reply type 0, peak Tx sync delay 0, free buffers 17 (min 17) Recv: Last cancelled message type 30 dest 127 Recv: === Network === Recv: Slowest loop: 200.02ms; fastest: 0.06ms Recv: Responder states: HTTP(3) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions Recv: HTTP sessions: 1 of 8 Recv: - WiFi - Recv: Network state is active Recv: WiFi module is connected to access point Recv: Failed messages: pending 0, notready 0, noresp 1 Recv: WiFi firmware version 1.26 Recv: WiFi MAC address f0:08:d1:02:ec:f2 Recv: WiFi Vcc 3.33, reset reason Power up Recv: WiFi flash size 2097152, free heap 20640 Recv: WiFi IP address 10.0.0.201 Recv: WiFi signal strength -36dBm, mode 802.11n, reconnections 0, sleep mode modem Recv: Clock register 00002002 Recv: Socket states: 0 2 0 0 0 0 0 0 Recv: ok Send: M105 Recv: ok T:20.1 /0.0 T0:20.1 /0.0 B:22.5 /0.0
-
@dessiverse what sd card are you using? Brand and model?
-
@jay_s_uk san disk edge, 8gb
-
@jay_s_uk I just tried using my SanDisk Extreme Pro to see if it was an issue with that and it doesn't seem to be the case. I use that micro sd with my high fps camera so read and writes are never an issue.
-
@dessiverse the 8gb one appears to only be a class 4. A class 10 may be better. I suggest trying another as card if you have one.
-
@dessiverse what speeds were you seeing with the extreme?
-
@jay_s_uk
same as before, and dropping since i took that screenshot. it's now down to 6 KIB/s. -
@dessiverse can you grab an M122 output while its uploading with the slower speed?