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.
    • 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
                  • SputnikOC3dundefined
                    SputnikOC3d @Phaedrux
                    last edited by

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

                    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.

                    No S parameter needed for this right - just M588 "*" ....

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

                      Sorry about that. I neglected to include the S in my post above. Syntax would be M558 S"*"

                      Z-Bot CoreXY Build | Thingiverse Profile

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

                        If you know the exact name of the wifi network that needs to be removed, try using the full name.

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

                          If you know the exact name of the wifi network that needs to be removed, try using the full name.

                          Ive already tried that 10x

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

                            😓

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

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

                            If you know the exact name of the wifi network that needs to be removed, try using the full name.

                            Ive already tried that 10x

                            Z-Bot CoreXY Build | Thingiverse Profile

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

                              No Joy - it doesnt load as a visible Wifi Access point that any of my devices can see ... WiFi LED is dead .... just a milliecond flash then dark on boot/reboots.

                              It only want that damn eprom embedded wifi router .... friggen annoying

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

                                set it back to the router with no current net access .... and it reboots and connects to it just fine - it doesnt work ... but it connects to it ....

                                So the netowrking connectivity to the non functioning network - is embedded on the board and I cant flush it out via the M588 "ANYTHING" command ... other options besides M588 ?

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

                                  I dunno... even with other networks remembered it should still be possible to add a new network and connect to it. Do you have another phone to test with?

                                  Z-Bot CoreXY Build | Thingiverse Profile

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

                                    well thanks for trying ....

                                    hoping some one else stumbles into this thread with a solution I guess

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

                                      trying to post but stupid akismet is spam blocking me from posting in my own thread ....

                                      Ridiculous ...

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

                                        Ive now tried this as well - M552 S0 and then restarting it ... Nothing seems to flush this things infernal memory.

                                        M552 S0 ; Disable network
                                        G4 1000 ; Pause Machine for 1000 milliseconds
                                        M552 S1 ; Enable network
                                        M588 S"EC24EA" ; Flush all known networks
                                        M588 S"EC24F0" ; Flush all known networks
                                        M588 S"*" ; Flush all known networks
                                        M587 S"SM-N920PC3B" P"Ninya1" ; Configure access point. Connect to Android Phone Hotspot
                                        ;M587 S"EC24EA" P"Ninya" ; Configure access point. Connect to Cox Wifi at 2.4Ghz
                                        ;M589 S"DuetWiFi" P"9662" I192.168.1.101 ; Access Point Mode
                                        ;M587 S"SMA iPad" P"Ninya2" ; Configure access point. Connect to Apple iPad Phone Hotspot

                                        it still keeps connecting to SSID EC24EA if it is broadcasting/powered on and when it isnt - it just fails and does nothing

                                        1 Reply Last reply Reply Quote 0
                                        • fcwiltundefined
                                          fcwilt
                                          last edited by

                                          Hi,

                                          I'm confused.

                                          To connect the Duet to a "hotspot" you need to use "client" mode (M552 S1).

                                          In this mode you use M587 and M588 to maintain the list of access point SSIDs you wish to connect to.

                                          To allow a client device to connect directly to your Duet you need to use "access point" mode (M552 S2).

                                          In this mode you use M589 to configure the Duet as an access point".

                                          Which are you trying to do?

                                          Frederick

                                          Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                                          Phaedruxundefined SputnikOC3dundefined 2 Replies Last reply Reply Quote 0
                                          • Phaedruxundefined
                                            Phaedrux Moderator @fcwilt
                                            last edited by

                                            @fcwilt he's been trying both.

                                            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