WiFi issues after erase



  • I'm having trouble with WiFi after the Erase button got pressed accidentally. I have reflashed the main and wifi firmwares (various versions including latest) but it seems the WiFi module just won't come up.

    M552 is removed from my config.g (for testing purposes).

    M552 S0 does not return any response even after several minutes.

    M587 gives "Failed to add SSID to remembered list". M588 also fails to remove/factory reset.

    M122 always seems to report "WiFi module is disabled" no matter what, even in the "Network state is starting" state.

    M997 appears to have no problem flashing, and my firmware files appear to be complete.

    Could I dealing with a bad wifi module? Is there anything else I should try before I start down the path of attempting to replace the module (assuming that is possible)?

    0_1560905552192_M122.txt



  • Do you get an error message if you try to do the wifi server firmware update using version 1.23?


  • administrators

    You may have ended up with incompatible main and WiFi firmware versions. Your main firmware is up to date, but you may be running the old version of DuetWiFiServer that was already on your SD card. That would explain why the WiFi module state is still "Starting" in the M122 report. https://duet3d.dozuki.com/Wiki/Installing_and_Updating_Firmware#Section_How_to_recover_if_the_main_firmware_and_WiFi_firmware_versions_get_out_of_step_on_your_Duet_2_WiFi.



  • I suspected that as well, but I've reflashed the wifi firmware multiple times, following the post you referenced and being sure to copy the right version of DuetWiFiServer.bin into the /sys folder on the SD card.

    I am using the main and wifi firmwares from the 2.03 release on GitHub, I believe I also tried main firmware 2.02 and wifi firmware 1.23 (this is what I was running prior to the erase) but I'll give that a try again later today to be sure.


  • administrators

    When you update the wifi firmware, do the messages reported on PanelDue or to USB indicate success?

    Does the DuetWiFiserver.bin file on the SD card have exactly the right size (277,520 bytes) ?



  • The messages from the firmware update process indicate that the upload was successful, and the file size of DuetWiFi.bin in the sys folder on the SD card is exactly 277,520 bytes.

    SENDING:M997 S1
    Trying to connect at 230400 baud:
    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


  • administrators

    One last thing to try. Comment out whatever M552 command you have in config.g, then start the Duet. Send M552 S0. It should respond "WiFi module is idle". Send M122 to check that it really is idle, not "starting". Then send M588 S"*" to clear out the wifi module remembered SSIDs etc. If that succeeds, try using M587 to add your SSID and password.



  • My M552 command is commented out, and no response to M552 commands. I am looking at ordering an ESP-12F from Digikey and swapping the module. If I have some time this weekend I may try probing the serial pins of the module just out of curiosity to see if anything else is revealed.


  • administrators

    @crc1337 said in WiFi issues after erase:

    My M552 command is commented out, and no response to M552 commands. I am looking at ordering an ESP-12F from Digikey and swapping the module. If I have some time this weekend I may try probing the serial pins of the module just out of curiosity to see if anything else is revealed.

    We now use the ESP-12S module, or the ESP-07S if you want the version with external antenna.



  • I replaced the WiFi module with a new ESP-12S and all is well. Thanks for the help!


Log in to reply