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

              @fcwilt

              thank you for your reply. Neither mode - client not access point is working for me. Its stuck in client mode and connecting ONLY to a network that is non functioning [ other than it broadcasting an SSID and taking connections its dns is not functioning ] ... Im trying to get this duet board to operate in either Access Point Mode or ... connect to my phones Hotspot - it refuses to do either

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

                Can you confirm which firmware and wifi server you're running?

                Z-Bot CoreXY Build | Thingiverse Profile

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

                  cant get it loaded to tell you - but 1.21 main firmware - wifi module - nto sure let me look at my latest download files

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

                    Correction - Im on duet FW 2.0 iirc as it has the RTOS functionality and wifi server 1.21 - specifically what rev of wifi Im not exactly sure - the android app tells me 1.21

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

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

                      @fcwilt

                      thank you for your reply. Neither mode - client not access point is working for me. Its stuck in client mode and connecting ONLY to a network that is non functioning [ other than it broadcasting an SSID and taking connections its dns is not functioning ] ... Im trying to get this duet board to operate in either Access Point Mode or ... connect to my phones Hotspot - it refuses to do either

                      In your last example you used M552 S1 before configuring the list of SSIDs. I think you would need to have M552 S1 after the list is correct.

                      Try this:

                      M552 S0
                      M558 S"*"
                      M557 S"desired_ssid" P"ssid_password"
                      M552 S1

                      That has always worked for me when setting a Duet as a WiFi client.

                      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

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

                        @fcwilt

                        ok gret - TY - gunna give this a whirl ... more to follow

                        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 said in Tutorial - running Duet Wifi 2 in Access Point Mode ?:

                          @fcwilt

                          thank you for your reply. Neither mode - client not access point is working for me. Its stuck in client mode and connecting ONLY to a network that is non functioning [ other than it broadcasting an SSID and taking connections its dns is not functioning ] ... Im trying to get this duet board to operate in either Access Point Mode or ... connect to my phones Hotspot - it refuses to do either

                          In your last example you used M552 S1 before configuring the list of SSIDs. I think you would need to have M552 S1 after the list is correct.

                          Try this:

                          M552 S0
                          M558 S"*"
                          M557 S"desired_ssid" P"ssid_password"
                          M552 S1

                          That has always worked for me when setting a Duet as a WiFi client.

                          Frederick

                          tried this variant - still connecting to the old network [ im leaving it on only because it lets me know the wifi module on the board is doing "something" - otherwise the led just flashes and never blinks and then goes dark and stays that way ]

                          ;---------------------------
                          ; Network
                          ;---------------------------
                          M550 PZaribo220 ; Set machine name
                          M551 Pmehs ; Set password
                          M552 S0 ; Disable network
                          G4 1000 ; Pause Machine for 1000 milliseconds
                          M588 S"EC24EA" ; Flush all known networks
                          M588 S"EC24F0" ; Flush all known networks
                          ;M589 S"DuetWiFi" P"whatevr" I192.168.1.101 ; AccessPointMode
                          ;M587 S"EC24EA" P"nope" ; Configure access point. Connect to Cox Wifi at 2.4Ghz
                          M587 S"SM-N920PC3B" P"nope2" ; Configure access point. Connect to Android Phone Hotspot
                          ;M587 S"SMA iPad" P"nope" ; Configure access point. Connect to Apple iPad Phone Hotspot
                          M552 S1 ; Enable network
                          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

                            You may want to try upgrading your firmware and wifi server to the 2.02 release. I think there was a fix for something for the access point mode. Check the release notes.

                            You should be able to put the bin files on the SD card and add the update command to the config.g. but it really would be easier if you could get a console up.

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

                              You may want to try upgrading your firmware and wifi server to the 2.02 release. I think there was a fix for something for the access point mode. Check the release notes.

                              You should be able to put the bin files on the SD card and add the update command to the config.g. but it really would be easier if you could get a console up.

                              That sounds promising. There is no "Panel" option for the foreseeable future. How could I get it to update the firmware if I had the files on the SD Card ?

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

                                https://duet3d.dozuki.com/Wiki/Installing_and_Updating_Firmware#Section_Fallback_procedure_Num_1

                                The procedure described assumes you have console access, but you might be able to include the M997 S0 in config.g to be run at startup. Then there is another command to install the wifi server. You'll also have to update the DWC files in /www.

                                Z-Bot CoreXY Build | Thingiverse Profile

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

                                  Can you actually call macros from the config.g via the standard M98 syntax ?

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

                                    well i gave the macro thing a shot sorta - a little different aspect than we were discussing exactly but ....

                                    I created a -- macro -- file in the sys dir/ as follows - ANDROID_HOTSPOT.g

                                    ; Android Hotspot - macro to set up access to Android Phone Hotspot test Wifi network
                                    M552 S0
                                    G4 P1000
                                    M587 S"SM-N920PC3B" P"buzzzanga" ; Configure access point. Connect to Android Phone Hotspot
                                    M587
                                    M552 S1
                                    M552

                                    then in config.g I have ....

                                    ;---------------------------
                                    ; Network
                                    ;---------------------------
                                    M550 PZaribo220 ; Set machine name
                                    M551 P9662 ; Set password
                                    M552 S0 ; Disable network
                                    G4 1000 ; Pause Machine for 1000 milliseconds
                                    M588 S"EC24EA" ; Flush all known networks
                                    M588 S"EC24F0" ; Flush all known networks
                                    M587 S"SM-N920PC3B" P"buzzinga" ; Configure access point. Connect to Android Phone Hotspot
                                    M552 S1 ; Enable network
                                    M586 P0 S1 ; Enable HTTP
                                    M586 P1 S0 ; Disable FTP
                                    M586 P2 S0 ; Disable Telnet

                                    M98 PANDROID_HOTSPOT.g

                                    knowing that it will just execute the standard config.g and ignore my M588 and M587 gcode - i thought maybe calling some gcode from a macro file might change its stubborn mind ...

                                    This is at the point of being infuriating and dumb - this should NOT be this hard to make these types of changes to a configuration ...

                                    Additionally I KNOW it will end up being somethign rather stupid and easy to fix

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

                                      Should work, yup.

                                      May need to specify the full path for it. Are you putting the macros in the macros folder or into the sys folder?

                                      0:/sys/macro.g or what have you

                                      Z-Bot CoreXY Build | Thingiverse Profile

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

                                        Is the light on the wifi module coming on?

                                        Z-Bot CoreXY Build | Thingiverse Profile

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

                                          @sputnikoc3d

                                          Now that I think about it I've believe I have always executed the gcode I posted using the USB connection just to get the WiFi connection going so I could then create the various configuration files.

                                          I've don't think I have ever actually tried it from within config.g OR as a macro executed via the DWC.

                                          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

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

                                            Should work, yup.

                                            May need to specify the full path for it. Are you putting the macros in the macros folder or into the sys folder?

                                            0:/sys/macro.g or what have you

                                            i put this one in the SYS folder ...

                                            when i go to open and edit the macros in Notepad++ in the /macros folder - they dont appear to have a file extension on them, and I am not savvy about using notepad++ and creating a file with NO .extension on it. and since the default path seems to be /sys for the M98 command - i created a .g macro file on /sys ... i didnt specify the full path in the config.g M98 command either

                                            it didnt work - nothing does

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