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

    Tutorial - running Duet Wifi 2 in Access Point Mode ?

    Scheduled Pinned Locked Moved
    General Discussion
    5
    63
    4.6k
    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.
    • SputnikOC3dundefined
      SputnikOC3d @fcwilt
      last edited by

      @fcwilt said in Tutorial - running Duet Wifi 2 in Access Point Mode ?:

      @sputnikoc3d Hi,

      I'm not sure I understand the point you are making.

      All WiFi clients need to specify the SSID and password of the Access Point they want to connect to.

      A device functioning as a "hot spot" is simply an Access Point by another name.

      Or have I overlooked something?

      Frederick

      My point is - ive done all that - but it appears [ as Ive tested looking for the duet on on the OLD network ... that regardless of my network params in config.g - it is looking for the old network vs. the new .... so one must TRY [ as its not working either ] to flush the boards memory of the old networks via the M558

      SputnikOC3dundefined 1 Reply Last reply Reply Quote 0
      • SputnikOC3dundefined
        SputnikOC3d @SputnikOC3d
        last edited by

        @sputnikoc3d said in Tutorial - running Duet Wifi 2 in Access Point Mode ?:

        @fcwilt said in Tutorial - running Duet Wifi 2 in Access Point Mode ?:

        @sputnikoc3d Hi,

        I'm not sure I understand the point you are making.

        All WiFi clients need to specify the SSID and password of the Access Point they want to connect to.

        A device functioning as a "hot spot" is simply an Access Point by another name.

        Or have I overlooked something?

        Frederick

        My point is - ive done all that - but it appears [ as Ive tested looking for the duet on on the OLD network ... that regardless of my network params in config.g - it is looking for the old network vs. the new .... so one must TRY [ as its not working either ] to flush the boards memory of the old networks via the M558

        M588 .... typo above

        1 Reply Last reply Reply Quote 0
        • SputnikOC3dundefined
          SputnikOC3d @fcwilt
          last edited by

          @fcwilt said in Tutorial - running Duet Wifi 2 in Access Point Mode ?:

          @sputnikoc3d Hi,

          I'm not sure I understand the point you are making.

          All WiFi clients need to specify the SSID and password of the Access Point they want to connect to.

          A device functioning as a "hot spot" is simply an Access Point by another name.

          Or have I overlooked something?

          Frederick

          2nd attempts at making this work ...

          ;---------------------------
          ; Network
          ;---------------------------
          M550 PZaribo220 ; Set machine name
          M551 Psomestuff ; Set password
          M552 S1 ; Enable network
          M588 "EC24EA" ;Flush all known networks
          M588 "SM-N920PC3B" ;Flush all known networks
          M588 "SMA iPad" ;Flush all known networks
          ;M587 S"EC24EA" P"NunYa" ; Configure access point. Connect to Cox Wifi at 2.4Ghz
          M587 S"SM-N920PC3B" P"NunYa2" ; Configure access point. Connect to Android Phone Hotspot
          ;M587 S"SMA iPad" P"NunYa3" ; Configure access point. Connect to Apple iPad Phone Hotspot
          M586 P0 S1 ; Enable HTTP
          M586 P1 S0 ; Disable FTP
          M586 P2 S0 ; Disable Telnet

          1 Reply Last reply Reply Quote 0
          • SputnikOC3dundefined
            SputnikOC3d
            last edited by

            Seems there was a typo in a thread on this subject where another person suggested using M588 "*" <---- asteric = SSID ... But ... it needs to be

            M588 S"YourOldSSID" meh ....

            for the benefit of future readers

            M588: Forget WiFi host network
            Parameters:

            S"ccc" Network SSID to remove from the remembered list
            The specified SSID will be removed from the remembered list and the associated password cleared out of EEPROM. If the SSID is given as "*" then all remembered networks will be forgotten.

            M589: Configure access point parameters
            Parameters:

            S"ccc" The SSID that the WiFi interface should use when it is commanded to run as an access point
            P"ccc" The WiFi password
            Inn.nn.nn.nn The IP address to use
            Cnn The WiFi channel to use (optional)
            Note: WPA2 security will be used by default.

            1 Reply Last reply Reply Quote 0
            • SputnikOC3dundefined
              SputnikOC3d
              last edited by

              because I currently have wifi and router issues via my normal provider; Im trying to connect to my Duet via alternative means.

              1. Preferred to use phone as hotspot - NUC is already connected - use Intel NUC to slice and send files to Duet - still use internet.

              2. As fallback method - since #1 above is NOT working - setup Duet in Access Point Mode and connect the Intel NUC to it temporarily to send files and execute print.

              Cant seem to get either option to function as desired atm ...

              I am currently putting my SD Card into a USB stick and editing the config.g file - then restarting the Duet / printer. All my methods so far seem to be flawed not sure wth is going wrong

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

                Sorry, I misunderstood your first post.

                I just tested using M588 "*" to remove all networks and it seems to have worked. How did you send the command? I used the PanelDue console.

                I also tested joining a hotspot on my iphone 6s and it connected.

                This was on firmware 2.02 and wifi server 1.22.6. What versions are you running?

                Z-Bot CoreXY Build | Thingiverse Profile

                1 Reply Last reply Reply Quote 0
                • SputnikOC3dundefined
                  SputnikOC3d
                  last edited by

                  Seems as if the Duet is STILL ignoring my M588 S"SSID" command on reboots and conecting to the nonfunctioning router - it can act as a router - but has no access to Internet and the ISPs DNS - and therefore no functional routing essentially.

                  Im finding the Duet on the OLD network still by using the FindMyDuet android app on my phone and connect the phone to the old network

                  1 Reply Last reply Reply Quote 0
                  • SputnikOC3dundefined
                    SputnikOC3d
                    last edited by

                    I do not have paneldue [ biggest mistake of my entire 3d printer career obviously ] [ that or not choosing wifi over ether net wired connectivity ] - ive tried sending via the config.g in startup boot

                    ;---------------------------
                    ; Network
                    ;---------------------------
                    M550 PZaribo220 ; Set machine name
                    M551 P9662 ; Set password
                    M552 S1 ; Enable network
                    M588 S"EC24EA" ;Flush all known networks
                    M588 S"SM-N920PC3B" ;Flush all known networks
                    M588 S"SMA iPad" ;Flush all known networks
                    ;M587 S"EC24EA" P"" ; Configure access point. Connect to Cox Wifi at 2.4Ghz
                    M587 S"SM-N920PC3B" P"" ; Configure access point. Connect to Android Phone Hotspot
                    ;M587 S"SMA iPad" P"" ; Configure access point. Connect to Apple iPad Phone Hotspot
                    M586 P0 S1 ; Enable HTTP
                    M586 P1 S0 ; Disable FTP
                    M586 P2 S0 ; Disable Telnet

                    For clarifications ...

                    Can I even do this via the config.g [ issue M588 ] ?

                    Additionally - can I use M588 "*" - literally - exact text ? as the doczuki gcode references are M588 S"YourSSIDsHere"

                    1 Reply Last reply Reply Quote 0
                    • SputnikOC3dundefined
                      SputnikOC3d
                      last edited by

                      Ive unplugged the old wifi router that Duet insists on connecting to. Now - the Blue LED that normally illuminates on my Duet for the wifi connection is DARK ... and I cannot find the baord anywhere - it isnt trying to connect to my phone either ... all the other devices in the house are - from 300 feet away too ..

                      1 Reply Last reply Reply Quote 0
                      • SputnikOC3dundefined
                        SputnikOC3d
                        last edited by

                        ;---------------------------
                        ; Network
                        ;---------------------------
                        M550 PZaribo220 ; Set machine name
                        M551 P9662 ; Set password
                        M588 S"*" ;Flush all known networks
                        M552 S1 ; Enable network
                        ;M587 S"EC24EA" P"nunya" ; Configure access point. Connect to Cox Wifi at 2.4Ghz
                        M587 S"SM-N920PC3B" P"nunya2" ; Configure access point. Connect to Android Phone Hotspot
                        ;M587 S"SMA iPad" P"nunya3" ; Configure access point. Connect to Apple iPad Phone Hotspot
                        M586 P0 S1 ; Enable HTTP
                        M586 P1 S0 ; Disable FTP
                        M586 P2 S0 ; Disable Telnet

                        above is the latest iteration of the network section of my config.g .... now the led for the wifi module just flashes once and then does nothing - goes dark . . . its not trying to do anything

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

                          Can you connect via USB so you can send commands via the console and get back responses?

                          What if you break up the commands between boots. So the first power on you have M588 "" in config.g. Wait for it to finish booting, then power down, remove M558 "" from config.g and boot up again.

                          Z-Bot CoreXY Build | Thingiverse Profile

                          SputnikOC3dundefined 1 Reply Last reply Reply Quote 0
                          • SputnikOC3dundefined
                            SputnikOC3d @Phaedrux
                            last edited by

                            @phaedrux said in Tutorial - running Duet Wifi 2 in Access Point Mode ?:

                            So with access point mode the printer doesn't connect to your phones hotspot. Rather the Duet creates a wireless network that your phone then connects to.

                            To configure access point mode you use M589

                            https://duet3d.dozuki.com/Wiki/Gcode#Section_M589_Configure_access_point_parameters

                            M589: Configure access point parameters
                            Parameters:

                            S"ccc" The SSID that the WiFi interface should use when it is commanded to run as an access point
                            P"ccc" The WiFi password
                            Inn.nn.nn.nn The IP address to use
                            Cnn The WiFi channel to use (optional)
                            Note: WPA2 security will be used by default.

                            And use M552 S2 to enable it.

                            Snnn 0 = disable networking, 1 = enable networking as a client, 2 = enable networking as an access point , -1 = disable WiFi module

                            On the Duet 2 WiFi running firmware 1.19 and later, the IP address is set in the M587 command when you configure the access point details.

                            https://duet3d.dozuki.com/Wiki/Gcode#Section_M552_Set_IP_address_enable_disable_network_interface

                            Ok well nothing on the connecting to the phone worked [ andoid galaxy S9 ] ... so now I shall try my hand at the access point mode - not very optomistic ...

                            Q1 - i can select just any IP address off the private networks aka 192.168.1.xxx ?

                            Q2 - Does the M552 S2 gcode in config .g come before or after the M589 et al ... ?

                            • this speaks to my point above prior about 97% documented info - leaving out niggling little details that waste users hours of time sorting ...
                            Phaedruxundefined 1 Reply Last reply Reply Quote 0
                            • SputnikOC3dundefined
                              SputnikOC3d @Phaedrux
                              last edited by

                              @phaedrux said in Tutorial - running Duet Wifi 2 in Access Point Mode ?:

                              Can you connect via USB so you can send commands via the console and get back responses?

                              What if you break up the commands between boots. So the first power on you have M588 "" in config.g. Wait for it to finish booting, then power down, remove M558 "" from config.g and boot up again.

                              Its possible yes ... Id have to download YAT or Pronterface again over 2G wireless - AND - relocate the printer for the lentght of the USB with the small conector on it for the duet board - to reach. Giant PITA ...

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

                                @sputnikoc3d The ip you choose for the Duet to use is irrelevant since it acts as the router in this case and is creating the network, so it has no way to conflict with any other network. And since you'll be joining the network by SSID you don't even need to know what the IP is to connect to it.

                                I had M589 before M552 S2, but I'm not sure if it matters.

                                Z-Bot CoreXY Build | Thingiverse Profile

                                SputnikOC3dundefined 1 Reply Last reply Reply Quote 0
                                • SputnikOC3dundefined
                                  SputnikOC3d @Phaedrux
                                  last edited by SputnikOC3d

                                  @phaedrux said in Tutorial - running Duet Wifi 2 in Access Point Mode ?:

                                  @sputnikoc3d The ip you choose for the Duet to use is irrelevant since it acts as the router in this case and is creating the network, so it has no way to conflict with any other network. And since you'll be joining the network by SSID you don't even need to know what the IP is to connect to it.

                                  I had M589 before M552 S2, but I'm not sure if it matters.

                                  Perfect ... thank you ....

                                  Also in regards to the GCODE Doczuki and some of the commands / syntax as posted - its weird to me that some parameter require " " quotes and other - apparently like I for IP ... Do Not

                                  M589 S"DuetWiFi" P"BlahBlahBlah" I192.168.1.101

                                  or ... ????

                                  M589 S"DuetWiFi" P"BlahBlahBlah" I"192.168.1.101"

                                  the differences leads a novice like myself second guessing - and if this didnt work would have me redoing my config.g to try either or - vs. it being common / same - throughout ... and specified and noted - and where it differs like it does in the docs to be noted and marked as such ....

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

                                    Yes, sending natural language to machines is always a little problematic.

                                    https://duet3d.dozuki.com/Wiki/Gcode#Section_Quoted_strings

                                    Quoted strings
                                    In RepRapFirmware, quoted strings are permitted anywhere a string parameter is expected. This allows file names, WiFi passwords etc. to contain spaces, semicolons and other characters that would otherwise not be permitted. Double-quote characters are used to delimit the string, and any double-quote character within the string must be repeated.

                                    Unfortunately, many gcode sender programs convert all characters to uppercase and don't provide any means to disable this feature. Therefore, within a quoted-string, the single-quote character is used as a flag to force the following character to lowercase. If you want to include a single quote character in the string, use two single quote characters to represent one single quote character.

                                    Example: to add SSID MYROUTER with password ABCxyz;" 123 to the WiFi network list, use command:

                                    M587 S"MYROUTER" P"ABCxyz;"" 123"
                                    or if you can't send lowercase characters:

                                    M587 S"MYROUTER" P"ABC'X'Y'Z;"" 123"

                                    At least in the Gcode wiki the examples do include the quotes where they are needed

                                    S"ccc"

                                    Z-Bot CoreXY Build | Thingiverse Profile

                                    1 Reply Last reply Reply Quote 0
                                    • SputnikOC3dundefined
                                      SputnikOC3d
                                      last edited by

                                      Just tried this ... nothing is clearing out the boards eProm config data - is the only thing I can currently ascertain here ...

                                      This didnt work

                                      ;---------------------------
                                      ; Network
                                      ;---------------------------
                                      M550 PZaribo220 ; Set machine name
                                      M551 P9662 ; Set password
                                      M588 S"*" ; Flush all known networks
                                      M589 S"DuetWiFi" P"9662" I192.168.1.101 ; AccessPointMode
                                      M552 S2 ; Enable network
                                      ;M587 S"EC24EA" P"nunya" ; Configure access point. Connect to Cox Wifi at 2.4Ghz
                                      ;M587 S"SM-N920PC3B" P"nunya2" ; Configure access point. Connect to Android Phone Hotspot
                                      ;M587 S"SMA iPad" P"nunya3" ; Configure access point. Connect to Apple iPad Phone Hotspot
                                      M586 P0 S1 ; Enable HTTP
                                      M586 P1 S0 ; Disable FTP
                                      M586 P2 S0 ; Disable Telnet

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

                                        Alright, try this. I think there may be a problem trying to send M558 "*" from config.g

                                        Create a macro called clearnetworks, then in that macro have M588 "*"

                                        Then at the end of config.g include M98 Pclearnetworks

                                        I'm also starting to wonder if this needs to be sent while the network module is active in normal M552 S1 mode.

                                        Z-Bot CoreXY Build | Thingiverse Profile

                                        SputnikOC3dundefined 1 Reply Last reply Reply Quote 0
                                        • SputnikOC3dundefined
                                          SputnikOC3d
                                          last edited by

                                          would think calling the macro at the beginning of the fonfig.g would be required no - not AFTER Im trying to set all the other networking parameters ?

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

                                            I'm thinking of it as separate operations which need to be completed independently.

                                            Again pure speculation on my part. That's just what I would try next.

                                            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