SD Card failure
-
@duncan-rtfm
The Wifi was working flawlessly till the SD card died. Do I just copy the files onto the card? Nothing else? How does the board know that boot files are there? Does the SD card need any special partitions or boot files? How does it even know to read what's on the card when it fires up? -
@duncan-rtfm The SD card doesn't need anything fancy. It's just an SD card. The only thing that needs to be there are the folders and the config files. The main system files that the duet uses are located in the /sys folder. Config.g is read at startup and all the gcode commands within it are executed to configure your printer.
-
OK, it sounds then like my WiFi card has somehow given up the ghost again. What commands can I issue from YAT to verify it is OK and healthy?
-
You can manually reset the wifi module if you have console access via USB, or a PanelDue. Send M552 S0, to disable networking, followed by M552 S1 to enable networking. When you do so, you should see the blue led on the wifi module blink a few times and then go solid when it has a connection. If the light is off, and stays off, that would mean there is a problem. In that case, send M122 to get a diagnostic report. The wifi part is towards the end, and may provide some insight.
-
OK, Here's what happens...
M552 S0
ok
M552 S1
Turn off the current WiFi mode before selecting a new one
ok
M122- WiFi -
Network state is starting
WiFi module is disabled
Failed messages: pending 0, notready 1, noresp 0
Socket states: 0 0 0 0 0 0 0 0
ok
- WiFi -
-
Do you happen to know what main and wifi firmware versions you are running?
-
M122
=== Diagnostics ===
RepRapFirmware for Duet 2 WiFi/Ethernet version 2.02(RTOS) running on Duet WiFi 1.02 or later
Board ID: 08DGM-917DA-G4MS8-6JKD6-3SN6N-9TVB9
Used output buffers: 1 of 20 (10 max)And then a bit lower down:
SD card 0 detected, interface speed: 20.0MBytes/sec
SD card longest block write time: 0.0ms, max retries 0 -
The SD card is fine. Works on my laptop...
-
This doesn't make sense...
M552 S0
ok
M552 S1
Turn off the current WiFi mode before selecting a new one
ok
M552
WiFi module is being started
ok
M115
FIRMWARE_NAME: RepRapFirmware for Duet 2 WiFi/Ethernet FIRMWARE_VERSION: 2.02(RTOS) ELECTRONICS: Duet WiFi 1.02 or later FIRMWARE_DATE: 2018-12-24b1
ok -
What does it respond when you send just M552?
-
M552
WiFi module is being started
ok -
So the wifi works with one card but not the other?
-
I have already had this board replaced because the WiFi module was dead. Now the SD card reader seems to have packed up, and the WiFi board is dead again. I think it is time to put this board in the bin, laugh of the money I paid for it and go bacvk to the original board the Ender3 came with. I'm spending hours and hours just trying to get the board to work. I want to be printing...
-
@phaedrux The wifi was working perfectly until the SD card died. Perhaps there is some magic on the original SD card which is missing on my replacement card. I unzipped the contents of the correct zip file directly onto the SD card, and verified that all the correct files were there.
But it's as though the card reader doesn't even see the SD card.
And the M122 command results in:
SD card 0 detected, interface speed: 20.0MBytes/secI have no idea if this means that "no SD card detected" or "SD card #0 detected" But no LED light up on the wifi module whren I power up.
-
I wonder if there has been a short that could have damaged the SD card and the wifi module.
@dc42 will have better insight.
Hopefully it's something that can be resolved.
-
I remembered that I still had the SD card that came with the Ender3, so I put that in - it came up with a bunch of errors (as one might expect), so the SD card reader seems to be working. M122 still says"
- WiFi -
Network state is starting
WiFi module is disabled
Which seems to point to the wifi module being faulty (again). Sigh...
- WiFi -
-
Try re-installing the wifi firmware, by putting the DuetWiFiServer.bin file in folder /sys in the SD card (it must be called exactly DuetWiFiserver.bin, so strip off any version number in the filename), then put the SD card in the Duet, start the Duet, and send M997 S1 from PanelDue or USB.
-
@dc42 said in SD Card failure:
M997 S1
Hi. I downloaded a fresh copy from GitHub, saved it into the /sys folder of the SD card after renaming the old one DuetWiFiserver-old.bin. Popped the SD card into the board, connected the USB cable, fired up YAT, made connection and then sent M997 S1 Here are the resultsM997 S1
M997: File DuetWiFiServer.bin not found
ok -
So I'm off to buy a new SD card, and start the process clean.
-
Hi. New card, everything newly loaded.
M997 S1
Trying to connect at 230400 baud: T:34.9 /0.0 T0:34.9 /0.0 T1:33.0 /0.0 B:32.9 /0.0
T:35.0 /0.0 T0:35.0 /0.0 T1:33.0 /0.0 B:32.9 /0.0
Untill...
Error: Installation failed due to comm write errorAt least the error message is different this time. That's a hopeful sign. Right?