• Tags
  • Documentation
  • Order
  • Register
  • Login
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.
  • undefined
    oliof
    last edited by 17 Jun 2022, 09:43

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

    undefined 1 Reply Last reply 17 Jun 2022, 10:46 Reply Quote 0
    • undefined
      droftarts administrators @FuseDeep
      last edited by 17 Jun 2022, 09:49

      @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

      undefined 3 Replies Last reply 17 Jun 2022, 10:36 Reply Quote 1
      • undefined
        FuseDeep @droftarts
        last edited by 17 Jun 2022, 10:36

        @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

        undefined 1 Reply Last reply 17 Jun 2022, 11:03 Reply Quote 0
        • undefined
          FuseDeep @droftarts
          last edited by 17 Jun 2022, 10:37

          @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
          • undefined
            FuseDeep @oliof
            last edited by 17 Jun 2022, 10:46

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • undefined
              FuseDeep @droftarts
              last edited by 17 Jun 2022, 10:57

              @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
              • undefined
                droftarts administrators @FuseDeep
                last edited by droftarts 17 Jun 2022, 11:03

                @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

                undefined 2 Replies Last reply 17 Jun 2022, 11:11 Reply Quote 0
                • undefined
                  FuseDeep @droftarts
                  last edited by 17 Jun 2022, 11:11

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

                  undefined 1 Reply Last reply 17 Jun 2022, 11:21 Reply Quote 0
                  • undefined
                    FuseDeep @droftarts
                    last edited by 17 Jun 2022, 11:14

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • undefined
                      droftarts administrators @FuseDeep
                      last edited by droftarts 17 Jun 2022, 11:21

                      @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

                      undefined 2 Replies Last reply 17 Jun 2022, 11:32 Reply Quote 0
                      • undefined
                        FuseDeep @droftarts
                        last edited by FuseDeep 17 Jun 2022, 11:32

                        @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...

                        undefined 1 Reply Last reply 17 Jun 2022, 11:52 Reply Quote 0
                        • undefined
                          FuseDeep @droftarts
                          last edited by 17 Jun 2022, 11:39

                          This post is deleted!
                          1 Reply Last reply Reply Quote 0
                          • undefined
                            infiniteloop @FuseDeep
                            last edited by 17 Jun 2022, 11:52

                            @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.

                            undefined 1 Reply Last reply 17 Jun 2022, 11:54 Reply Quote 0
                            • undefined
                              FuseDeep @infiniteloop
                              last edited by 17 Jun 2022, 11:54

                              @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.

                              undefined 1 Reply Last reply 17 Jun 2022, 12:03 Reply Quote 0
                              • undefined
                                infiniteloop @FuseDeep
                                last edited by infiniteloop 17 Jun 2022, 12:03

                                @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
                                • undefined
                                  droftarts administrators
                                  last edited by 17 Jun 2022, 13:16

                                  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

                                  undefined 2 Replies Last reply 17 Jun 2022, 13:34 Reply Quote 4
                                  • undefined
                                    FuseDeep @droftarts
                                    last edited by 17 Jun 2022, 13:34

                                    @droftarts

                                    Yes, exactly as Ian said.

                                    Thank you so much everyone above for your constructive suggestions and comments.

                                    I have now stopped sobbing into my keyboard!

                                    And written the password clearly on each machine.

                                    🙂

                                    1 Reply Last reply Reply Quote 1
                                    • undefined
                                      FuseDeep @droftarts
                                      last edited by 17 Jun 2022, 13:37

                                      @droftarts

                                      PS.

                                      In modern windows you have to enable view file extension in folder settings too!

                                      In the old days you could simply edit, but they are trying to tidy up, apparently...

                                      Really, that’s it. Microsoft may think it makes for less confusion, but the reverse is true.

                                      //

                                      It’s pretty clear by now that Microsoft is unlikely to see the light and display file extensions by default in any version of Windows. That doesn’t matter because you can take charge of the situation yourself and turn extension display on:

                                      Open any folder window.
                                      Press Alt+T+O (that’s the letter O, not a zero) to open the Folder Options dialog box.
                                      Click the View tab.
                                      Remove the tick (checkmark) beside ‘Hide extensions for known file types’ and click OK.

                                      //

                                      https://geekgirls.com/2010/08/renaming-file-extensions/

                                      1 Reply Last reply Reply Quote 0
                                      • undefined
                                        droftarts administrators
                                        last edited by droftarts 17 Jun 2022, 13:40

                                        Oh, and the first USB cable he used seemed not to carry data! I 'encouraged' him to try another cable, which fortunately worked.

                                        Edit: If you are asked for a 'network security key', this is the password that protects your WiFi network. If you have a Wi-Fi router (or Duet in Access Point mode) in your home, you'll need a code to connect your device to it. That WiFi password is your network security key.

                                        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

                                        undefined 1 Reply Last reply 17 Jun 2022, 13:49 Reply Quote 1
                                        • undefined
                                          infiniteloop @droftarts
                                          last edited by 17 Jun 2022, 13:49

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

                                          If you are asked for a 'network security key', this is the password that protects your WiFi network. If you have a Wi-Fi router in your home, you'll need a code to connect your device to it. That WiFi password is your network security key.

                                          That's what I thought. But I got the impression @FuseDeep has no router installed.

                                          BTW: great job! There should be a way to vote tarts 😊

                                          undefined 1 Reply Last reply 17 Jun 2022, 13:52 Reply Quote 1
                                          47 out of 58
                                          • First post
                                            47/58
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA