Solved Duet 2 Wifi - Unable to turn on WiFi or upgrade WifiServer
-
Hello
I have a new Duet 2 Wifi (external antenna edition), which I’ve been having issues getting the wifi to work. I’ve been trying for the past few weeks troubleshooting it via similar problems on this forum to no avail.
It arrived with Firmware version 2.0 with Wifi version ‘1.02 or newer’. I am able to connect to it via USB (mac SerialTools), M115 gave me the firmware versions above. The issue I have been having is that whenever I type M552 it comes back as ’ WiFi module is being started’. It keeps saying this, with successive M552 commands and it never starts or goes idle. Even when I type M552 S0 it still says ’ WiFi module is being started’. I am able to disable it with the M552 S-1 command. The only 2 results I have seen are : “Wi-fi is disabled” and “WiFi module is being started”.
I tried re-installing the Wifi version with the M997 S1 command but I get this error:
Trying to connect at 230400 baud: failed
Trying to connect at 115200 baud: failed
Trying to connect at 74880 baud: failed
Trying to connect at 9600 baud: failed
Error: Installation failed due to comm write errorThis thread: https://forum.duet3d.com/topic/8541/duet-wifi-always-starting-and-will-not-connect-to-wifi/10
Recommended I update the firmware. I went up to firmware 3.0 first via USB using the M997 S0 command. I can successfully upgrade it to firmware 3.0. However when I try upgrading the Wi-fi server using the DuetWifiserver.bin from firmware 3.0 github files I still get the same error M997 S1 : Trying to connect at 230400 baud: failed
Trying to connect at 115200 baud: failed
Trying to connect at 74880 baud: failed
Trying to connect at 9600 baud: failed
Error: Installation failed due to comm write errorI was able to upgrade to firmware version 3.1.1, 3.2, 3.4.1. Each and every time I try to upgrade its successive Wifiserver, I get the same error. I even downgraded successively back down to firmware 2.0, with the same result. I then downgraded to version 1.25 and tried ‘upgrading’ the Wifiserver of that edition, with the same error.
My current firmware version is 1.25 with Wifi version ‘1.02 or newer’. For the past 3 weeks I haven’t been able to get the Wifi module to turn on and I have never been able to access its web interface, thus everything is via USB. I have unplugged all cables from the board except power. I have even tried this with the VIN power on connected to USB all with the same issue. I have tried this solution to no avail: https://forum.duet3d.com/topic/15372/failed-to-update-duetwifiserver
I have tried getting the wifi module to turn on without the SD card. I changed the config file so the module starts with the Wifi module disabled. Then manually enabling it via USB. Still with the same error: ’ WiFi module is being started’.
I’m not sure if there is a wi-fi light on this board (external antenna) however I haven’t seen one near it turn on.
I have a few Duet 2 Wifi (with internal antennas). One of the boxes I opened had version 2.0 and the wifi worked flawlessly on that version, I was even able to upgrade it to 3.4.1, which is what I am currently using now.
From reading many forum posts it seems like the board cannot connect to my Wifi module and may need replaced.I brought this new Duet 2 Wifi (external antenna edition), from Filastruder 31st July, the 30 day exchange window closes tomorrow. I asked for a refund, however they have asked me to post here first to find a solution.
Thank you!
-
Can you send the following commands via USB terminal and post the responses here?
M588 S"*"
M552
M552 S-1
M552 S0
M552 S1
M997 S1I think I know what the responses will be based on what you've already said, but worth a try.
-
@phaedrux
Wow it worked! Thank you so much! I must have missed the M588 S"*" option. Really appreciate your help!M588 S"*"
m552
WiFi module is disabled
ok
m552 s-1
ok
m552 s0
ok
WiFi module started
m552 s1
ok
m99WiFi reported error: no known networks found
WiFi module is idle
WiFi reported error: no known networks found
WiFi module is idle
m997 s1
mTrying to connect at 230400 baud: 997 s1
success
Erasing 4096 bytes…
Erasing 212992 bytes…
Uploading file…
5% complete
10% complete
15% complete
20% complete
25% complete
30% complete
35% complete
40% complete
45% complete
50% complete
55% complete
60% complete
65% complete
70% complete
75% complete
80% complete
85% complete
90% complete
95% complete
Upload successful -
-