Duet 2 Wifi Unstable/Slow Wifi Connection
-
Hello,
From a few weeks ago I started to have connection issue on a duet 2 wifi. The machine I'm using is a custom-build tool-changer with duet 2 wifi motherboard. All prints appears to be very normal as long as they are uploaded.
What I observed:
- The first time I noticed the issue is during one printing the web interface started to disconnect and reconnect every ~30 seconds. And shortly after, Orca slicer (which tends to refresh pretty frequently) device page started to show a blank white page.
- From that point, I'm experiencing unstable and slow connection to the web interface. Usually I need to reset the board every time I lost connection to the web interface and will be able to reconnect after the reset for once or twice. But the connection (time for the web interface to show up) and file upload speed are slow. Usually it takes about 20-30 seconds to load the DWC and file uploads is around 10-100 kb/s.
What I've tried but didn't work:
- Updated firmware for duet 2 wifi, duet wifi server and duet web control. Currently it's at 3.5.3-rc.1, 2.1.0, 3.5.3-rc.1 respectively.
- Tried connecting from different browser. Orca slicer's build in browser is the worst as it will refresh the page every time I switch to "prepare" and "preview" tabs. Also tried Chrome and Firefox on windows, Safari on Mac and iPad. All have similar results.
- Tried a different router and reset the current router. I'm using a TP-link AC1750 router and tried both original firmware and Openwrt. Also tried using an Asus router or switching channels (currently at channel 11). All have similar results.
- Tried the suggestion "manually replace the /www folder with the contents of the DWC 2.0.7 zip file" from https://forum.duet3d.com/topic/14784/blank-page-after-update-of-duet-web-control.
- I'm using an always on 5V power supply and the ATX-power switch to control a 24V power supply. 5V only and 5V+24V shows similar results.
Here's M112 return:
M122 === Diagnostics === RepRapFirmware for Duet 2 WiFi/Ethernet version 3.5.3-rc.1 (2024-08-27 16:09:54) running on Duet WiFi 1.02 or later Board ID: 0JD0M-9K662-MG5T4-6JTDG-3S06P-1BNGY Used output buffers: 2 of 26 (16 max) === RTOS === Static ram: 23384 Dynamic ram: 75396 of which 0 recycled Never used RAM 10524, free system stack 106 words Tasks: NETWORK(1,ready,17.3%,181) ACCEL(6,nWait 5,0.0%,345) HEAT(3,nWait 5,0.1%,307) Move(4,nWait 5,2.4%,258) MAIN(1,running,80.2%,699) IDLE(0,ready,0.0%,29), total 100.0% Owned mutexes: === Platform === Last reset 02:57:50 ago, cause: reset button or watchdog Last software reset at 2024-11-22 17:56, reason: User, Gcodes spinning, available RAM 14240, slot 2 Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0041f000 BFAR 0xe000ed38 SP 0x00000000 Task MAIN Freestk 0 n/a Error status: 0x00 MCU temperature: min 27.8, current 36.3, max 38.5 Supply voltage: min 0.5, current 24.3, max 25.0, under voltage events: 0, over voltage events: 0, power good: yes Heap OK, handles allocated/used 99/0, heap memory allocated/used/recyclable 2048/96/96, gc cycles 0 Events: 0 queued, 0 completed Driver 0: standstill, SG min 0 Driver 1: standstill, SG min 0 Driver 2: standstill, SG min n/a Driver 3: standstill, SG min 0 Driver 4: standstill, SG min 0 Driver 5: Driver 6: Driver 7: Driver 8: Driver 9: Driver 10: Driver 11: Date/time: 2024-12-21 20:14:23 Cache data hit count 4294967295 Slowest loop: 238.25ms; fastest: 0.12ms I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0 === Storage === Free file entries: 10 SD card 0 detected, interface speed: 20.0MBytes/sec SD card longest read time 10.0ms, write time 50.3ms, max retries 0 === Move === DMs created 83, segments created 55, maxWait 556897ms, bed compensation in use: mesh, height map offset 0.000, max steps late 0, min interval 0, bad calcs 0, ebfmin 0.00, ebfmax 1.00 no step interrupt scheduled Moves shaped first try 13755, on retry 573, too short 6531, wrong shape 47412, maybepossible 1873 === DDARing 0 === Scheduled moves 3088, completed 3088, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 17], CDDA state -1 === Heat === Bed heaters 0 -1 -1 -1, chamber heaters -1 -1 -1 -1, ordering errs 0 Heater 0 is on, I-accum = 0.0 === GCodes === Movement locks 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 idle 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 Daemon is idle in state(s) 0 Autopause is idle in state(s) 0 Q0 segments left 0 Code queue 0 is empty === Network === Slowest loop: 183.53ms; fastest: 0.00ms Responder states: HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0) HTTP sessions: 1 of 8 === WiFi === Interface state: active Module is connected to access point Failed messages: pending 0, notrdy 0, noresp 0 Firmware version 2.1.0 MAC address 48:3f:da:4f:6a:e9 Module reset reason: Power up, Vcc 3.42, flash size 4194304, free heap 34644 WiFi IP address 192.168.3.18 Signal strength -41dBm, channel 11, mode 802.11n, reconnections 0 Clock register 00002002 Socket states: 0 0 0 0 0 0 0 0
Here's M122 P104 return:
M122 P104 Testing SD card write speed... SD write speed for 10.0MByte file was 3.35MBytes/sec Testing SD card read speed... SD read speed for 10.0MByte file was 1.41MBytes/sec
Any feedback is welcomed, thanks!
-
@h4nty update to 3.5.4. There's a new WiFi firmware which should fix what you're seeing
-
@jay_s_uk Thanks! I’ll try that as soon as I get back to my printer. May I ask if there’s a release note for this issue? I’ve checked the recent notes but failed to find any.
-
@h4nty there's not a change log for the WiFi firmware as far as I know but it was this commit https://github.com/Duet3D/WiFiSocketServerRTOS/commit/00e9246350fdc9919afc4a69fbbacefbcf0f2ecd
-
@h4nty do you have a PanelDue on your machine? If so, is the WiFi connection more stable when you leave the PanelDue on its Setup page?