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

    HELP! Can't log in to both machinesWIFI passwords!?

    Scheduled Pinned Locked Moved Solved
    General Discussion
    8
    58
    3.3k
    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
      last edited by Phaedrux

      So I seem to recall from your past threads that you use the Duet in Access Point mode where the Duet creates the network and your laptop connects to the Duet SSID. This is likely what it's asking for as a password.

      Can you share your config files with us here?

      If you can't recall what the password was for the the SSID, you can simply create a new one.

      Take a deep breath. Panic never helps. I'm confident we can get you back up and running.

      Here is the information for getting access point mode working:

      https://docs.duet3d.com/User_manual/Reference/Gcodes#m589-configure-access-point-parameters

      Do you have an M589 command in your config.g? That's where the password is set.

      The M551 password is something else and you don't need or want to set one there right now. So if your config still has that, remove it.

      Z-Bot CoreXY Build | Thingiverse Profile

      FuseDeepundefined 2 Replies Last reply Reply Quote 1
      • FuseDeepundefined
        FuseDeep @fcwilt
        last edited by

        @fcwilt Nope, never ever have had.

        Always worked fine til my laptop wifi borked.

        1 Reply Last reply Reply Quote 0
        • FuseDeepundefined
          FuseDeep @Phaedrux
          last edited by

          @phaedrux

          I tried another different laptop and it also wanted network security key for both machines this morning, no idea if this is usual as I don't think I have tried to connect before with another.

          I may have had a key (?) or not, either way, need to refresh both duet boards, ascertain key and get them running asap.

          Have done the big print I needed but wanted to do a load of info sheet holders today on the point6...

          Point6 M2 desktop 3dprinter config file

          //

          ; Configuration file for Duet WiFi (firmware version 3.3)
          ; executed by the firmware on start-up
          ;
          ; generated by RepRapFirmware Configuration Tool v3.3.10 on Wed Apr 20 2022 11:07:59 GMT+0100 (British Summer Time)

          ; General preferences
          G90 ; send absolute coordinates...
          M83 ; ...but relative extruder moves
          M550 P"DUET 0.6mm HB / Son.im" ; set printer name

          ; Network
          M552 S1 ; enable network
          M586 P0 S1 ; enable HTTP
          M586 P1 S0 ; disable FTP
          M586 P2 S0 ; disable Telnet

          ; Drives
          M569 P0 S0 ; physical drive 0 goes forwards
          M569 P1 S1 ; physical drive 1 goes forwards
          M569 P2 S0 ; physical drive 2 goes forwards
          M569 P3 S1 ; physical drive 3 goes forwards
          M584 X0 Y1 Z2 E3 ; set drive mapping
          M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation
          M92 X88.89 Y88.89 Z400.00 E420.00 ; set steps per mm
          M566 X900.00 Y900.00 Z60.00 E120.00 ; set maximum instantaneous speed changes (mm/min)
          M203 X6000.00 Y6000.00 Z180.00 E1200.00 ; set maximum speeds (mm/min)
          M201 X500.00 Y500.00 Z20.00 E250.00 ; set accelerations (mm/s^2)
          M906 X800 Y800 Z800 E800 I30 ; set motor currents (mA) and motor idle factor in per cent
          M84 S30 ; Set idle timeout

          ; Axis Limits
          M208 X0 Y0 Z0 S1 ; set axis minima
          M208 X200 Y250 Z185 S0 ; set axis maxima

          ; Endstops
          M574 X1 S1 P"xstop" ; configure switch-type (e.g. microswitch) endstop for low end on X via pin xstop
          M574 Y1 S1 P"ystop" ; configure switch-type (e.g. microswitch) endstop for low end on Y via pin ystop
          M574 Z1 S1 P"zstop" ; configure switch-type (e.g. microswitch) endstop for low end on Z via pin zstop

          ; Z-Probe
          M558 P0 H5 F120 T6000 ; disable Z probe but set dive height, probe speed and travel speed
          M557 X15:200 Y15:195 S20 ; define mesh grid

          ; Heaters
          M308 S0 P"bedtemp" Y"thermistor" T100000 B4138 ; configure sensor 0 as thermistor on pin bedtemp
          M950 H0 C"bedheat" T0 ; create bed heater output on bedheat and map it to sensor 0
          M307 H0 R0.227 K0.317:0.000 D10.46 E1.35 S1.00 B0
          ; enable bang-bang mode for the bed heater and set PWM limit
          M140 H0 ; map heated bed to heater 0
          M143 H0 S120 ; set temperature limit for heater 0 to 120C
          M308 S1 P"e0temp" Y"thermistor" T100000 B4138 ; configure sensor 1 as thermistor on pin e0temp
          M950 H1 C"e0heat" T1 ; create nozzle heater output on e0heat and map it to sensor 1
          M307 H1 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit
          M143 H1 S280 ; set temperature limit for heater 1 to 280C

          ; Fans
          M950 F0 C"fan0" Q500 ; create fan 0 on pin fan0 and set its frequency
          M106 P0 S0 H-1 ; set fan 0 value. Thermostatic control is turned on
          M950 F1 C"fan1" Q500 ; create fan 1 on pin fan1 and set its frequency
          M106 P1 S1 H1 T40 ; set fan 1 value. Thermostatic control is turned off

          ; Tools
          M563 P0 D0 H1 F0 ; define tool 0 // M563 P0 D0 H1 F0 added T0
          G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets
          G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0C

          ; Custom settings are not defined
          M552 S2
          T0

          1 Reply Last reply Reply Quote 0
          • FuseDeepundefined
            FuseDeep @Phaedrux
            last edited by

            @phaedrux

            Config file for 2m tall 3dprinter.

            Basically need to sort new key and get it running

            //

            ; Configuration file for Duet WiFi (firmware version 2.03)
            ; executed by the firmware on start-up
            ;
            ; generated by RepRapFirmware Configuration Tool v2.1.4 on Mon Dec 30 2019 12:38:09 GMT+0000 (Greenwich Mean Time)

            ; General preferences
            G90 ; send absolute coordinates...
            M83 ; ...but relative extruder moves
            M550 P"FuseDeep" ; set printer name

            ; Network
            M552 S1 ; enable network
            M586 P0 S1 ; enable HTTP
            M586 P1 S0 ; disable FTP
            M586 P2 S0 ; disable Telnet

            ; Drives
            M569 P0 S0 ; physical drive 0 goes backwards
            M569 P1 S0 ; physical drive 1 goes backwards
            M569 P2 S0 ; physical drive 2 goes backwards
            M569 P3 S1 ; physical drive 3 goes forwards
            M569 P4 S1 ; physical drive 4 goes forwards
            M584 X0 Y1:4 Z2 E3 ; set drive mapping
            M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation
            M92 X53.33 Y53.33 Z4266.67 E406.47 ; set steps per mm
            M566 X900.00 Y900.00 Z12.00 E120.00 ; set maximum instantaneous speed changes (mm/min)
            M203 X6000.00 Y6000.00 Z180.00 E5000.00 ; set maximum speeds (mm/min) RG was 2700
            M201 X500.00 Y500.00 Z2.00 E500.00 ; set accelerations (mm/s^2) RG was 250
            M906 X1350 Y1600 Z1600 E1350 I30 ; set motor currents (mA) and motor idle factor in per cent
            M84 S30 ; Set idle timeout

            ; Axis Limits
            M208 X0 Y0 Z0 S1 ; set axis minima
            M208 X620 Y550 Z1440 S0 ; set axis maxima

            ; Endstops
            M574 X1 Y1 Z1 S1 ; set active high endstops

            ; Z-Probe
            M558 P0 H5 F120 T3000 ; disable Z probe but set dive height, probe speed and travel speed
            M557 X15:215 Y15:195 S20 ; define mesh grid

            ; Heaters
            M140 H-1 ; disable heated bed
            M305 P1 T100000 B4725 C7.060000e-8 R4700 ; set thermistor + ADC parameters for heater 1
            M143 H1 S280 ; set temperature limit for heater 1 to 280C

            ; Fans
            M106 P0 S0 I0 F500 H1 T45 ; set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned on

            ; Tools
            M563 P0 S"TITAN Extruder" D0 H1 F0 ; define tool 0
            G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets
            G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0C

            ; Custom settings
            M552 S2

            ; Miscellaneous
            M501 ; load saved parameters from non-volatile memory

            droftartsundefined 1 Reply Last reply Reply Quote 0
            • oliofundefined
              oliof
              last edited by

              The Configuration for the Wifi is not stored in config.g but in the wifi chip.

              You will need to do the following:

              a) connect to the printer via serial console
              b) Set a new password for the access point mode using M589
              c) save the new password somewhere safe for reference
              d) enable the access point mode using M552 S2
              e) use the password set using M589 when your computer prompts you for a network security key

              Let us know how this works out.

              <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

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

                @fusedeep you are running M552 S2 on both machines at the end of config.g. This puts both machines in ‘accesss point’ mode, so the laptop connects directly to the WiFi of each machine. At some point you will have set this up with M589. In that command you specify the SSID (the name of the network) and a password. It is this password that your laptop appears to have forgotten. If you didn’t write the password down, you need to connect via USB, and send M589 with SSID and password to set up the Duet access point. You can also do this by writing the commands into a macro called runonce.g, which will run and then delete itself at startup (so make a copy in case it doesn’t work). See https://docs.duet3d.com/en/User_manual/Machine_configuration/Networking#configuring-duet-in-wifi-access-point-mode

                The commands in a macro would be:

                M552 S0 ; sets WiFi to idle
                G4 S5 ; wait 5 seconds for WiFi to turn off
                 M589 S"DuetSSID" P"password" I192.168.0.1
                G4 S5 ; wait again
                M552 S2 ; enable access point
                

                Ian

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

                FuseDeepundefined 3 Replies Last reply Reply Quote 1
                • FuseDeepundefined
                  FuseDeep @droftarts
                  last edited by

                  @droftarts

                  Hi, thanks for the information.

                  Can i do this directly in the sd card edit?

                  Yat is borked and putty playing up (I am not an IT expert either, consoles freak me out when they don't work).

                  Rich

                  droftartsundefined 1 Reply Last reply Reply Quote 0
                  • FuseDeepundefined
                    FuseDeep @droftarts
                    last edited by

                    @droftarts

                    I have 2 duet running. Should the ssid label for each be different, Yes, only use ad hoc.

                    Rich

                    1 Reply Last reply Reply Quote 0
                    • FuseDeepundefined
                      FuseDeep @oliof
                      last edited by

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • FuseDeepundefined
                        FuseDeep @droftarts
                        last edited by

                        @droftarts

                        My gut feeling is this has nothing to do with M589 etc.

                        It never had one and my android phone won't connect with the M589 password either.

                        It's something else imo.

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

                          @fusedeep said in HELP! Can't log in to both machinesWIFI passwords!?:

                          Can i do this directly in the sd card edit?

                          Yes. Create a text file with the Gcode commands I listed earlier. Save it on your local machine as "runonce.g". Copy it to the SD card from one of the printers, in the "sys" folder. Return SD card to machine, turn on machine, give it a minute, then try and connect.

                          Do one at a time, giving them different SSID names and IP addresses (I think, from memory, you gave them both the same IP address before; this could be where it's got confused). The password can be the same for both, though.

                          FYI: File runonce.g is supported from RRF3.1.0 and later. If this file is present at startup, it is run after running config.g and activating the network, and then deleted. So I hope you're not on RRF 2.x!

                          Ian

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

                          FuseDeepundefined 2 Replies Last reply Reply Quote 0
                          • FuseDeepundefined
                            FuseDeep @droftarts
                            last edited by

                            @droftarts

                            But, I have put the M859 code line directly and nothing will connect using that pasword.

                            What is the difference using a one time widget?

                            droftartsundefined 1 Reply Last reply Reply Quote 0
                            • FuseDeepundefined
                              FuseDeep @droftarts
                              last edited by

                              This post is deleted!
                              1 Reply Last reply Reply Quote 0
                              • droftartsundefined
                                droftarts administrators @FuseDeep
                                last edited by droftarts

                                @fusedeep You need to turn off the Access Point (with M552 S0), change the SSID/password (with M587), then turn it back on again. The macro does this for you.

                                If you're able to do this with a serial terminal (putty/YAT), you don't need to use a macro.

                                Save the file as a .txt file, then edit the name and replace '.txt' with '.g'.

                                Ian

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

                                FuseDeepundefined 2 Replies Last reply Reply Quote 0
                                • FuseDeepundefined
                                  FuseDeep @droftarts
                                  last edited by FuseDeep

                                  @droftarts

                                  I have added;

                                  M589 S"DuetSSID" P"password" I192.168.0.1

                                  To my point 6 (with my password) and it won't accept the password.

                                  Nor will my phone.

                                  Or my other laptop.

                                  They keep asking for NETWORK SECURITY KEYS, I don't think this is anything to do with gcode passwords and a fundamental password deep in duet that is either borked or I forgot.

                                  It's a real problem people.

                                  I was nervous about going wifi, and this is exactly why...

                                  infiniteloopundefined 1 Reply Last reply Reply Quote 0
                                  • FuseDeepundefined
                                    FuseDeep @droftarts
                                    last edited by

                                    This post is deleted!
                                    1 Reply Last reply Reply Quote 0
                                    • infiniteloopundefined
                                      infiniteloop @FuseDeep
                                      last edited by

                                      @fusedeep said in HELP! Can't log in to both machinesWIFI passwords!?:

                                      I have added;
                                      M589 S"DuetSSID" P"password" I192.168.0.1
                                      To my point 6 (with my password) and it won't accept the password.

                                      Please post the text files you moved to your Duets as "runonce.g"

                                      fundamental password deep in duet

                                      There is none.

                                      FuseDeepundefined 1 Reply Last reply Reply Quote 0
                                      • FuseDeepundefined
                                        FuseDeep @infiniteloop
                                        last edited by

                                        @infiniteloop

                                        M552 S0 ; sets WiFi to idle
                                        G4 S5 ; wait 5 seconds for WiFi to turn off
                                        M589 S"DuetSSID" P"Point6" I192.168.0.1
                                        G4 S5 ; wait again
                                        M552 S2 ; enable access point

                                        I dropped this into macros folder as a g file extension

                                        It does not work.

                                        infiniteloopundefined 1 Reply Last reply Reply Quote 0
                                        • infiniteloopundefined
                                          infiniteloop @FuseDeep
                                          last edited by infiniteloop

                                          @fusedeep said in HELP! Can't log in to both machinesWIFI passwords!?:

                                          I dropped this into macros folder as a g file extension

                                          put it into your /sys/ folder and try again.

                                          Edit: To verify that the macro "runounce.g" was executed, take a second look at the /sys/ directory: the file must have vanished.

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

                                            All fixed now! The WiFi passwords had been lost due to a laptop borking and being rebuilt, so the Duets needed resetting with M589 (there's no way to recover the WiFi password). However, one undocumented 'feature' - WiFi passwords need to be at least 8 characters long. So the runonce.g wasn't working. Once @FuseDeep connected via YAT (which wasn't working on the original laptop, had to use another laptop), he could see the error message, and set a correct SSID and password.

                                            I'll update the M589 documentation to reflect this.

                                            Ian

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

                                            FuseDeepundefined 2 Replies Last reply Reply Quote 4
                                            • First post
                                              Last post
                                            Unless otherwise noted, all forum content is licensed under CC-BY-SA