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

    use M552 to abandon the current connection

    Scheduled Pinned Locked Moved
    General Discussion
    4
    6
    232
    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.
    • giostarkundefined
      giostark
      last edited by

      Hi ALL !!!
      Finally back in business 😀
      Probably after an update is popped out this error:

      Error in start-up file macro line 29: use M552 to abandon the current connection attempt before using this command
      

      My network section was always like this with no errors:

      ; Network
      M550 PDelta-Printer ; Set machine name
      M552 S1
      ;G4 P1000 (old setting to create a delay from activation wifi and check the wifi name saved previously)
      M587 S"*****" P"*****" I*****
      M586 P0 S1 ; Enable HTTP/HTTPs
      M586 P1 S0 ; Disable FTP
      M586 P2 S0 ; Disable Telnet
      

      I tried to enable or disable the G4 P1000 but do not change a thing.
      I would say that the error rise two update ago.config.g
      I had a look here : https://docs.duet3d.com/User_manual/Machine_configuration/Networking
      And seems fine the configuration.
      Any clue ?

      jay_s_ukundefined 1 Reply Last reply Reply Quote 0
      • jay_s_ukundefined
        jay_s_uk @giostark
        last edited by

        @giostark don't use M587 in your config. The SSID and password are stored on the WiFi module so don't need to be resent every time

        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

        giostarkundefined 1 Reply Last reply Reply Quote 1
        • giostarkundefined
          giostark @jay_s_uk
          last edited by giostark

          @jay_s_uk
          Eh...you nailed it 👍 Thanks.
          I don't understand why my brain did not considered this option. Damn.
          Anyway would be useful for other noob to add this line in the guide right under the " Use M587 to add a WiFi..." :

          "If you have already store the connection , disable the line M587 with the wifi data." (or something like that)

          This is the standard setup, with the Duet 3 Mini 5+ WiFi (in standalone mode) or Duet 2 WiFi connecting to your network through a WiFi access point/router. This is covered in the Getting Connected guide. Briefly:
          
              Connect to Duet, via USB and serial terminal, or via console if already connected to network.
              Use M587 to add a WiFi host network to the remembered list of networks.
              To set a static IP address, use the 'I' parameter in your M587 command. If you leave this out, the Duet IP address will be set by the router, using DHCP.
              Use M552 S1 to turn on networking, and connect. You can specify the host network to connect to using the 'P' parameter, so long as the host network has already been stored using M587.
          
          Note: the IP addresses in the following diagram are an example of how a network may be configured. Your network may use different IP addresses and ranges.
          
          droftartsundefined 1 Reply Last reply Reply Quote 0
          • droftartsundefined
            droftarts administrators @giostark
            last edited by

            @giostark Thanks, I've updated this page to make it clearer: https://docs.duet3d.com/en/User_manual/Machine_configuration/Networking#connect-to-wifi-host-network

            It's also stated in the Gcode dictionary https://docs.duet3d.com/User_manual/Reference/Gcodes#m587-add-wifi-host-network-to-remembered-list-or-list-remembered-networks

            Important! Do not use M587 within config.g. As well as being a security hazard, writing the access point parameters to WiFi chip every time you start the Duet may eventually wear out the flash memory. Also, the wifi module does not get enabled until the end of running config.g (see this forum thread for explanation). It is better to use a macro to send M587.

            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

            giostarkundefined 1 Reply Last reply Reply Quote 1
            • giostarkundefined
              giostark @droftarts
              last edited by

              @droftarts
              Thanks Ian !
              I wrote to Phaedrux and asked him to do this . (I wrongly supposed him would ask you that because instead you were faster !)
              This community is very great . I really really like it , so I hope to be helpful in future.
              Cheers !

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

                @giostark It was also my night time!. 😴

                Z-Bot CoreXY Build | Thingiverse Profile

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