Problems uploading files and editing configuration in browser
-
I have been having problems uploading files and making changes to config.g in the browser since I started using my Duet2 WiFi and they seem to be slowly getting worse. I applied the latest DuetWiFiServer firmware, just in case that had anything to do with the problem, but it has not had any effect.
I also tried swapping out the provided 4GB class 10 microSD card with a known working 8GB class 4 card. This had no effect.
I just went back to the original card after making sure that the contacts on the card and in the socket were perfectly clean with some blotting paper and isopropyl alcohol. After the Duet had booted, I checked M122 on the console and then uploaded a 4.7MB g-code file.
The upload seemed to go OK, but looking at M122 directly afterwards shows SD card related errors:
M122
=== Diagnostics ===
RepRapFirmware for Duet 2 WiFi/Ethernet version 2.02(RTOS) running on Duet WiFi 1.02 or later
Board ID: 08DGM-917NK-F2MS4-7JTD0-3S86S-KYTND
Used output buffers: 1 of 20 (15 max)
=== RTOS ===
Static ram: 25524
Dynamic ram: 98596 of which 0 recycled
Exception stack ram used: 328
Never used ram: 6624
Tasks: NETWORK(ready,544) HEAT(blocked,1232) MAIN(running,3788) IDLE(ready,200)
Owned mutexes:
=== Platform ===
Last reset 00:03:39 ago, cause: power up
Last software reset at 2019-01-20 13:41, reason: User, spinning module GCodes, available RAM 6624 bytes (slot 3)
Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0041f000 BFAR 0xe000ed38 SP 0xffffffff Task 0x4e49414d
Error status: 16
Free file entries: 10
SD card 0 detected, interface speed: 20.0MBytes/sec
SD card longest block write time: 392.6ms, max retries 0
MCU temperature: min 28.4, current 30.1, max 30.2
Supply voltage: min 24.1, current 24.2, max 24.3, under voltage events: 0, over voltage events: 0, power good: yes
Driver 0: standstill, SG min/max not available
Driver 1: standstill, SG min/max not available
Driver 2: standstill, SG min/max not available
Driver 3: standstill, SG min/max not available
Driver 4: standstill, SG min/max not available
Date/time: 2019-01-20 21:21:19
Cache data hit count 848934605
Slowest loop: 2.63ms; fastest: 0.08ms
I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0
=== Move ===
Hiccups: 0, StepErrors: 0, LaErrors: 0, FreeDm: 240, MinFreeDm: 240, MaxWait: 0ms, Underruns: 0, 0
Scheduled moves: 0, completed moves: 0
Bed compensation in use: none
Bed probe heights: 0.000 0.000 0.000 0.000 0.000
=== Heat ===
Bed heaters = 0 -1 -1 -1, chamberHeaters = -1 -1
Heater 1 is on, I-accum = 0.0
=== GCodes ===
Segments left: 0
Stack records: 2 allocated, 0 in use
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
serial is idle in state(s) 0
aux is idle in state(s) 0
daemon is idle in state(s) 0
queue is idle in state(s) 0
autopause is idle in state(s) 0
Code queue is empty.
=== Network ===
Slowest loop: 393.90ms; fastest: 0.08ms
Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0) Telnet(0)
HTTP sessions: 1 of 8- WiFi -
Network state is running
WiFi module is connected to access point
Failed messages: pending 0, notready 0, noresp 1
WiFi firmware version 1.22
WiFi MAC address 84:f3:eb:42:a3:23
WiFi Vcc 3.44, reset reason Turned on by main processor
WiFi flash size 4194304, free heap 26944
WiFi IP address 192.168.1.29
WiFi signal strength -60dBm, reconnections 0, sleep mode modem
Socket states: 0 0 0 0 0 0 0 0
I'm at a loss as to what I should try next. Any suggestions?
- WiFi -
-
Have you also updated the DWC to 1.22.6?
-60db signal strength isn't too bad, but it's not great. If you can improve the signal strength by moving the router or printer, even temporarily to test, that may be a cause.
Try formatting your SD cards with https://www.sdcard.org/downloads/formatter_4/ with 32kb or 64kb cluster size.
Also, clear your browser cache, etc. Or try a different browser to see if the same thing happens.
-
All firmware is the latest versions from GitHub.
The fact that both the card supplied with the Duet, and a known good spare both exhibit the same problem would probably excuse the card, but I will give it a try with a brand new, straight out of the packet card, just in case. The Duet is certainly not having any trouble reading from either card as I'm having no problems printing files from them.
The router is no more than 2.5m from the Duet, which has the WiFi antenna sticking up out of a slot in its plastic housing. The devices are in sight of each other, so If -60db is too low then I suspect there might be something wrong with the Duet's WiFi board. I'll try removing the Duet from the case. I don't suspect green PLA to have any strange properties like completely de-tuning the WiFi board's antenna, but you never know with microwaves!