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

    Duet WiFi in access point mode

    Scheduled Pinned Locked Moved
    Firmware installation
    7
    29
    8.5k
    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.
    • dc42undefined
      dc42 administrators
      last edited by

      What happens if you remove the M552 S0 and M589 commands from config.g? The M589 parameters are saved on the WiFi module so no need to keep resetting them.

      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
      • Skimmyundefined
        Skimmy
        last edited by

        ok, changed config.g to:

        [[language]]
        ; network
        M586 P0 S1                      ; Enable HTTP
        M552 S2                         ; Enable network
        M586 P1 S0                      ; Disable FTP
        M586 P2 S0                      ; Disable Telnet
        
        

        Restarted (from the prompt in the webinterface after changing the config). Then:

        [[language]]
        SENT: M552
        READ: WiFi module is idle
        
        

        If I put M552 S1, the Duet connects to my homenetwork, if I put M552 S2, the duet starts the accesspoint (wifi module is providing accesspoint…).
        But it does not start it on its own after bootup.

        my blog: https://www.well-engineered.net

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

          I don't know if it will help, but please try putting the M586 parameters before the M552. Or omit them, because the default is to enable HTTP only anyway.

          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
          • Skimmyundefined
            Skimmy
            last edited by

            I did remove all M586 commands, but everything is still the same.

            Is there a way to call a macro automatically after boot up? This way I could force to load a macro with M552 S2 in it after the boot up…

            my blog: https://www.well-engineered.net

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

              Even though I haven't yet been able to reproduce this, I've added it to the list of issues to investigate before the 1.21 firmware release.

              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
              • Skimmyundefined
                Skimmy
                last edited by

                @dc42:

                Even though I haven't yet been able to reproduce this, I've added it to the list of issues to investigate before the 1.21 firmware release.

                ok, thank you.

                my blog: https://www.well-engineered.net

                1 Reply Last reply Reply Quote 0
                • KSorensenundefined
                  KSorensen
                  last edited by

                  ^^^ This is the exact same problem I have been having. No matter how I change the config.g, The access point will not start automatically after Boot up. I have to manually enter M552 S2 through the console to turn it on. Once on, though, it has been flawless.

                  1 Reply Last reply Reply Quote 0
                  • Skimmyundefined
                    Skimmy
                    last edited by

                    Ok, i fiddled around this evening and found out, that the accesspoint works EVERY TIME, when using:

                    8 caps letters for SSID and 8 caps letters for the password. Example:

                    [[language]]
                    M589 S"MEINDUET" P"MEINWIFI" I192.168.178.250;
                    
                    

                    As soon as the SSID contains lowcase-letters or numbers, it doesn't work anymore. Same for the password. And using less or more digits than 8 doesn't work too.

                    my blog: https://www.well-engineered.net

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

                      Have you tried firmware 1.21RC3 yet? I made a change that should improve it, see the release notes.

                      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
                      • Skimmyundefined
                        Skimmy
                        last edited by

                        @dc42:

                        Have you tried firmware 1.21RC3 yet? I made a change that should improve it, see the release notes.

                        I updated to RC3 on firmware and webserver, and RC4 on the interface, and a quick test with:

                        [[language]]
                        M589 S"test123" P"test123" I192.168.178.250;
                        
                        

                        didn't work. Back to all capital letters and 8 per parameter and it is functional again.

                        my blog: https://www.well-engineered.net

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

                          How did you send the M589 command to the Duet? After sending it, did you send M589 without parameters to confirm that it had stored the right details, including the lowercase characters in the SSID?

                          The SSID of my delta is Kossel, the password includes lowercase characters, and I can connect to it.

                          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
                          • Skimmyundefined
                            Skimmy
                            last edited by

                            I did test it via macro.

                            This did not work:

                            [[language]]
                            ; SetNetwork macro to set up access to dummy test Wifi network
                            M552 S0;
                            G4 S5;
                            M589 S"test123" P"test123" I192.168.178.250;
                            G4 S5;
                            M552 S2;
                            
                            

                            This works everytime:

                            [[language]]
                            ; SetNetwork macro to set up access to dummy test Wifi network
                            M552 S0;
                            G4 S5;
                            M589 S"MEINDUET" P"MEINWIFI" I192.168.178.250;
                            G4 S5;
                            M552 S2;
                            
                            

                            Noticed, that since using RC3, changing from M552 S2 over M552 S0 to M552 S1 doesn't work sometimes.
                            Using the makro:

                            [[language]]
                            M552 S0;
                            G4 S5;
                            M552 S1;
                            
                            

                            sometimes results in:

                            [[language]]
                            WiFi module  is idle Failed to change WiFi mode (code -7)
                            
                            

                            executing the macro or M552 S1 again does work in this case.

                            my blog: https://www.well-engineered.net

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

                              "test123" is an invalid password, because WPA2 passwords must be at least 8 characters. I'll add a check on the password length when processing M589.

                              I too have seen the "failed to change mode" message, and I will investigate it.

                              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
                              • Thomllamaundefined
                                Thomllama
                                last edited by Thomllama

                                know this is old, but thinking I might be able to do this over the weekend as I'm bringing my printer to ERRF event and would like to be able to run it? kinda confused on the exact actions I need to do as You guy kinda jumped back and forth.. but from what I gathered.. I can ..
                                Send M589 followed with some info here? but what how format/details? (S "Name of access" P "Password" then an I "IP address" I can just make up?)
                                Send M552 S2 (will it auto restart or do I need to restart it?)
                                and then just sign into it with a phone/tablet?

                                how badly and I off?

                                dc42undefined 1 Reply Last reply Reply Quote 0
                                • dragonnundefined
                                  dragonn
                                  last edited by

                                  I used it last week. I think a nice option would be an automatic hotspot when no saved network is in range.

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

                                    Do a search of the documentation for access point and check the associated gcode commands in the gcode wiki. That should get you started.

                                    Z-Bot CoreXY Build | Thingiverse Profile

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

                                      @thomllama said in Duet WiFi in access point mode:

                                      know this is old, but thinking I might be able to do this over the weekend as I'm bringing my printer to ERRF event and would like to be able to run it? kinda confused on the exact actions I need to do as You guy kinda jumped back and forth.. but from what I gathered.. I can ..
                                      Send M589 followed with some info here? but what how format/details? (S "Name of access" P "Password" then an I "IP address" I can just make up?)
                                      Send M552 S2 (will it auto restart or do I need to restart it?)
                                      and then just sign into it with a phone/tablet?

                                      how badly and I off?

                                      Yes, that should work. Choose a private (i.e. non-routable) IP address in the M589 command, see https://en.wikipedia.org/wiki/Private_network#Private_IPv4_addresses. Make sure you are using recent firmware - AFAIR firmware 1.19 doesn't support AP mode but 1.20 and later do.

                                      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
                                      • Thomllamaundefined
                                        Thomllama
                                        last edited by

                                        OK, guessing this should actually be easy, but didn't work.. 😕

                                        I can plug in by USB.. access , input 552 S0 (Wifi Module is idle - response). 552 S1 (OK response) or 552 S2 (Wifi Module is idle - response). without issue.. so guessing with it reporting idle is hasn't taken the access point info?

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

                                          Send M589 without parameters to check whether the access point info has been stored.

                                          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 1
                                          • First post
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA