Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    WiFi issues after erase

    Scheduled Pinned Locked Moved
    Firmware installation
    3
    10
    773
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • crc1337undefined
      crc1337
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • Phaedruxundefined
        Phaedrux Moderator
        last edited by

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

        Z-Bot CoreXY Build | Thingiverse Profile

        1 Reply Last reply Reply Quote 1
        • dc42undefined
          dc42 administrators
          last edited by dc42

          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.

          Duet WiFi hardware designer and firmware engineer
          Please do not ask me for Duet support via PM or email, use the forum
          http://www.escher3d.com, https://miscsolutions.wordpress.com

          1 Reply Last reply Reply Quote 0
          • crc1337undefined
            crc1337
            last edited by

            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.

            dc42undefined 1 Reply Last reply Reply Quote 0
            • dc42undefined
              dc42 administrators @crc1337
              last edited by

              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) ?

              Duet WiFi hardware designer and firmware engineer
              Please do not ask me for Duet support via PM or email, use the forum
              http://www.escher3d.com, https://miscsolutions.wordpress.com

              crc1337undefined 1 Reply Last reply Reply Quote 0
              • crc1337undefined
                crc1337 @dc42
                last edited by crc1337

                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

                1 Reply Last reply Reply Quote 0
                • dc42undefined
                  dc42 administrators
                  last edited by

                  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.

                  Duet WiFi hardware designer and firmware engineer
                  Please do not ask me for Duet support via PM or email, use the forum
                  http://www.escher3d.com, https://miscsolutions.wordpress.com

                  1 Reply Last reply Reply Quote 0
                  • crc1337undefined
                    crc1337
                    last edited by

                    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.

                    dc42undefined 1 Reply Last reply Reply Quote 0
                    • dc42undefined
                      dc42 administrators @crc1337
                      last edited by

                      @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.

                      Duet WiFi hardware designer and firmware engineer
                      Please do not ask me for Duet support via PM or email, use the forum
                      http://www.escher3d.com, https://miscsolutions.wordpress.com

                      1 Reply Last reply Reply Quote 0
                      • crc1337undefined
                        crc1337
                        last edited by

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

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Unless otherwise noted, all forum content is licensed under CC-BY-SA