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

    Can't get printer to connect to wifi

    Scheduled Pinned Locked Moved
    General Discussion
    4
    10
    590
    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.
    • Jasonpgrundefined
      Jasonpgr
      last edited by

      I had this printer running wonderfully for the last year, but I just got a new router with a slightly different network id and now I can't get the board to learn the new wifi info. I followed the set up instructions. Using my mac I connected using SerialTools via the usb, I was able to get m115 to work, but for some reason I had to send the same command about 4-5 times before I got any response from the board. This is what it returned.

      FIRMWARE_NAME: RepRapFirmware for Duet 2 WiFi/Ethernet FIRMWARE_VERSION: 1.21 ELECTRONICS: Duet WiFi 1.02 or later FIRMWARE_DATE: 2018-03-21

      I tried M587 S"Jasons Home" P"3382Rockwood" in order to set my network info, but no matter how many times I send the command, I see no return info or anything at all. I have tried it with the wifi module both disabled and abled. I tried a M587 to view my network list and see if it saved my new info anyway and I got this message.

      Error: M587: Failed to retrieve network list

      Any ideas as to what to try next? I have no idea why I've always struggled so much with getting the wifi working properly. I have the double straight quote thing enabled in my keyboard settings and all that. Just can't sort out what's going on here.

      droftartsundefined 1 Reply Last reply Reply Quote 0
      • droftartsundefined
        droftarts administrators @Jasonpgr
        last edited by

        @Jasonpgr said in Can't get printer to connect to wifi:

        FIRMWARE_VERSION: 1.21

        That's pretty old firmware you are running, and I expect you are running an old WiFi server version, too. There have been bug-fixes and improvements, too. Worth updating (without having to change your config.g and other files, which you will if you update to RRF 3.x) to 2.05.1 (https://github.com/Duet3D/RepRapFirmware/releases/tag/2.05.1), which includes a newer version of the DuetWiFiServer v1.23; you're most probably on DuetWiFiServer v1.21.

        Is your new router creating only a 5G WiFi network? Duet 2 WiFi only works with 2.4G. Sometimes you need to set the router to broadcast both, or to broadcast a separate 2.4G network.

        When adding WiFi networks and there is no stored network, it's best to connect via USB, turn the WiFi off, then on in idle mode, then add the WiFi SSID. eg:

        M552 S-1
        M552 S0
        M587 S"Jasons Home" P"3382Rockwood"
        

        PS I get that using Serial tools on Mac. I think, if you press delete at any point in the line, the Gcode doesn't seem to send correctly, so you have to type it correctly first time, or the command isn't recognised.

        Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

        1 Reply Last reply Reply Quote 0
        • Jasonpgrundefined
          Jasonpgr
          last edited by

          I'll try the firmware update I think. I did try the turn wifi off, then idle then add the wifi. The part where it can't find the library of saved networks at all is my biggest concern. But a firmware update should create all new libraries and directories if I'm not mistaken.

          1 Reply Last reply Reply Quote 0
          • Jasonpgrundefined
            Jasonpgr
            last edited by

            That reminds me though, what about all the printer settings and firmware and all that? It was kind of a huge pain to get all the motors, heaters, probe, bed, start and stop commands all that jazz, working properly. If there is some way to salvage those settings that would be super super cool.

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

              All the configuration of the printer is contained in the .g files in the sys folder on the SD card. All of that will stay the same between firmware updates.

              Going from 1.21 to 2.0 to 2.05.1 won't require much if any changes to the config files. Maybe a change to homing files. The big changes requiring a whole new config comes when upgrading to RRF3.

              In your case I would suggest making a backup of the contents of your SD card on your computer first.

              The first update to 2.0 will allow you to use the modern simple method of uploading the entire release zip file to update the firmware making future updates a lot easier.

              Updating from 1.21 to 2.0 will require placing the bin file and some IAP files and sending M997 S0 to initiate the flash.

              First batch of files to put on the SD card in the /sys folder:
              https://github.com/Duet3D/RepRapFirmware/releases/download/2.0/iap.bin
              https://github.com/Duet3D/RepRapFirmware/releases/download/2.0/iap4e.bin
              https://github.com/Duet3D/RepRapFirmware/releases/download/2.0/iap4s.bin
              https://github.com/Duet3D/RepRapFirmware/releases/download/2.0/Duet2CombinedFirmware.bin
              https://github.com/Duet3D/RepRapFirmware/releases/download/2.0/DuetWiFiServer.bin

              Then extract this zip file into the /www folder
              https://github.com/Duet3D/RepRapFirmware/releases/download/2.0/DuetWebControl-1.21.1.zip

              Then connect via USB and send M997 S0:1 and it should update the firmware to 2.0 and wifi server to 1.21. Send M115 to verify the firmware version. Send M122 and look at the end to verify the wifi server version.

              Now hopefully you can send the commands to clear all saved wifi networks and re-add your new SSID.

              Check the notes here to see if your new SSID and password might be affected by your terminal program sending capital letters. Use YAT for your usb terminal software if on windows to avoid any issues.
              https://duet3d.dozuki.com/Wiki/Gcode?revisionid=HEAD#Section_M587_Add_WiFi_host_network_to_remembered_list_or_list_remembered_networks

              Then if you are able to gain access to DWC again, you can complete the firmware update to 2.05.1 like so.

              Then upload this zip file as is to the system tab in DWC. Don't extract it first.

              https://github.com/Duet3D/RepRapFirmware/releases/download/2.05.1/Duet2Firmware-2.05.1.zip

              That should get you up to date in RRF2. Use M115 to verify again. Check your DWC version. It should be 2.0.7 (I think)

              When connecting to DWC make sure you're just using the bare IP address so that the new interface is loaded.

              Send M122 and check the wifi server version at the end. Should be 1.23.

              Going further to RRF3 would require uploading the 3.0 zip file, and then 3.2.2 zip file, and would require generating a new config file from the config tool.

              https://github.com/Duet3D/RepRapFirmware/releases/download/3.0/Duet2and3Firmware-3.0.zip
              https://github.com/Duet3D/RepRapFirmware/releases/download/3.2.2/Duet2and3Firmware-3.2.2.zip

              https://configtool.reprapfirmware.org/Start

              Change log for RRF2: https://github.com/Duet3D/RepRapFirmware/wiki/Changelog-RRF-1.x-&-2.x#version-20--duet-2-series--and-1211--other-hardware-

              Z-Bot CoreXY Build | Thingiverse Profile

              1 Reply Last reply Reply Quote 0
              • mrehorstdmdundefined
                mrehorstdmd
                last edited by

                @Jasonpgr

                From the M587 definition in the wiki:

                "The use of special characters in the SSID cannot be guaranteed to work. In general it's best to avoid most special characters. Spaces, periods, dashes, underscores, and other punctuation is likely ok, but special characters on the number keys likely are not safe. (@#$%^&*). If you are having troubles adding your SSID, try a simplified version with only letters and numbers."

                Try taking the space character out of the network SSID and try again (that means you have to rename it at your router).

                https://drmrehorst.blogspot.com/

                1 Reply Last reply Reply Quote 0
                • Jasonpgrundefined
                  Jasonpgr
                  last edited by

                  So I finally got around to trying these suggestion and I got the firmware up to 2.0 but replacing those files and it seems to look okay. When I connected via serialtools to try to get the wifi going I get the following start up message.

                  Executing config.g…Error: M587: Failed to add SSID to remembered list
                  HTTP is enabled on port 80
                  FTP is disabled
                  TELNET is disabled
                  Microstepping - X:16(on), Y:16(on), Z:16(on), E:16(on):16(on):16:16:16:16:16:16:16

                  Done!
                  RepRapFirmware for

                  The error at the top seems like the main issue I'm having. I finally just changed the network name at the router and I was able to get the board to connect to wifi. At least it says it is in Serial Tools.

                  M552 S1

                  WiFi module is connected to access point Jason-home, IP address 192.168.0.18

                  The problem now, is that I type that IP address in to the bar and it wont load the DWC.

                  I sent M122 and this is the message I received about the wifi server.
                  === Diagnostics ===
                  RepRapFirmware for Duet 2 WiFi/Ethernet version 2.0(RTOS) running on Duet WiFi 1.02 or later
                  Board ID: 08DGM-95BLL-N65TJ-6J9F4-3SD6R-1JXHM
                  Used output buffers: 1 of 20 (1 max)

                  • WiFi -
                    Network state is running
                    WiFi module is connected to access point
                    Failed messages: pending 0, notready 0, noresp 0
                    WiFi firmware version 1.21
                    WiFi MAC address 2c:3a:e8:0b:37:e5
                    WiFi Vcc 3.38, reset reason Turned on by main processor
                    WiFi flash size 4194304, free heap 15992
                    WiFi IP address 192.168.0.18
                    WiFi signal strength -61dBm, reconnections 0, sleep mode modem
                    Socket states: 0 0 0 0 0 0 0 0
                    === Expansion ===

                  Any idea what I can try next?

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

                    @jasonpgr You cannot use M587 inside of config.g anymore. It only needs to be sent once to save the SSID to the wifi module.

                    @jasonpgr said in Can't get printer to connect to wifi:

                    The problem now, is that I type that IP address in to the bar and it wont load the DWC.

                    Well at least it looks like you're connected to the SSID, so that's a good start.

                    I think you may need to double check your DWC files in the /www folder on the SD card.

                    https://github.com/Duet3D/RepRapFirmware/releases/download/2.0/DuetWebControl-1.21.1.zip

                    The contents of that zip file should replace the contents of the /www folder.

                    What error message are you getting in the browser when trying to connect?

                    What URL are you trying to connect to?

                    You may need to clear your browser cache.

                    Z-Bot CoreXY Build | Thingiverse Profile

                    1 Reply Last reply Reply Quote 0
                    • Jasonpgrundefined
                      Jasonpgr
                      last edited by

                      Nailed it. I guess I managed to type the IP address in wrong about 200 times last night because it seems to be working perfectly now. Now to try a print and see if any of my settings got screwed up or shifted somehow.

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

                        That's good. Don't stop at 2.0 though. Upgrade to at least 2.05.1 as described above. Then if everything is working you can consider updating to RRF3.

                        Z-Bot CoreXY Build | Thingiverse Profile

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