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

    What is command for turning off wifi?

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    5
    14
    1.7k
    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.
    • dc42undefined
      dc42 administrators
      last edited by dc42

      M552 S-1 resets the WiFi module (it stays reset until you send another M552 command)
      M552 S0 puts the wifi module in idle mode
      M552 S1 tries to connect to one of the known networks (use M587 to set them up)
      M552 S2 runs as an access point (use M589 to set up the AP parameters)

      Are you running DuetWiFiServer version 1.23?

      Duet WiFi hardware designer and firmware engineer
      Please do not ask me for Duet support via PM or email, use the forum
      http://www.escher3d.com, https://miscsolutions.wordpress.com

      1 Reply Last reply Reply Quote 1
      • Arkadiuszundefined
        Arkadiusz
        last edited by

        Thanks, both answers worked for me M552 S-1 it was.

        I'm not sure which is my duetwifiserver version:
        FIRMWARE_NAME: RepRapFirmware for Duet 2 WiFi/Ethernet FIRMWARE_VERSION: 2.02(RTOS) ELECTRONICS: Duet WiFi 1.02 or later FIRMWARE_DATE: 2018-12-24b1<LF>ok<LF>

        1 Reply Last reply Reply Quote 0
        • dc42undefined
          dc42 administrators
          last edited by

          To check the DuetWiFServer version, turn the WiFi module on (idle mode will do), send M122 and look at the WiFi section of the report. If using USB/YAT then change the line terminator in YAT to LF only.

          Duet WiFi hardware designer and firmware engineer
          Please do not ask me for Duet support via PM or email, use the forum
          http://www.escher3d.com, https://miscsolutions.wordpress.com

          Arkadiuszundefined 1 Reply Last reply Reply Quote 0
          • A Former User?
            A Former User
            last edited by A Former User

            Its covered in the wiki
            https://duet3d.dozuki.com/Wiki/Gcode#Section_M552_Set_IP_address_enable_disable_network_interface

            (too late, never mind, post got flagged for spam and when it went through there were more replies..)

            Arkadiuszundefined 1 Reply Last reply Reply Quote 1
            • Arkadiuszundefined
              Arkadiusz @dc42
              last edited by

              @dc42 I tried your method but I'm still not sure what duetwifiserver version I'm running:
              === Diagnostics ===<LF>RepRapFirmware for Duet 2 WiFi/Ethernet version 2.02(RTOS) running on Duet WiFi 1.02 or later<LF>Board ID: 08DGM-917DA-G4MS8-6J9D6-3S46N-9TT7B<LF>Used output buffers: 1 of 20 (4 max)<LF>=== RTOS ===<LF>Static ram: 25524<LF>Dynamic ram: 98424 of which 0 recycled<LF>Exception stack ram used: 320<LF>Never used ram: 6804<LF>Tasks: NETWORK(ready,1260) HEAT(blocked,1232) MAIN(running,3844) IDLE(ready,200)<LF>Owned mutexes:<LF>=== Platform ===<LF>

              I managed to put wifi into idle, but I have to do it every time I start machine otherwise I'm constantly getting annoying message "wifi reported error"

              How can I disable wifi completely ?

              1 Reply Last reply Reply Quote 0
              • Arkadiuszundefined
                Arkadiusz @A Former User
                last edited by

                @bearer

                Section in link you provided is misleading, it says that S0 will disable wifi where it only puts wifi into idle:

                Parameters for Duet 2 Ethernet and 06/085

                Pnnn IP address, 0.0.0.0 means acquire an IP address using DHCP
                Snnn 0 = disable networking, 1 = enable networking
                Rnnn (optional, RepRapFirmware 1.17 and earlier only) HTTP port, default 80

                I don't know what you mean with post being flagged.

                1 Reply Last reply Reply Quote 0
                • A Former User?
                  A Former User
                  last edited by A Former User

                  @arkadiusz said in What is command for turning off wifi?:

                  Section in link you provided is misleading, it says that S0 will disable wifi where it only puts wifi into idle:

                  Not really, if you read the section pertaining to the wifi board you'll see S-1 disables it.

                  I don't know what you mean with post being flagged.

                  Forum initially didn't allow the reply because it thought it was spam, so I tried again later and did't see it had been answered already.

                  1 Reply Last reply Reply Quote 0
                  • Arkadiuszundefined
                    Arkadiusz
                    last edited by

                    You're right, I copied wrong section, I tried S-1 as suggested before but it only works at the beginning after executing command.
                    When duet is rebooted it goes back to idle and keep searching for wifi.

                    Phaedruxundefined 1 Reply Last reply Reply Quote 0
                    • A Former User?
                      A Former User
                      last edited by

                      @arkadiusz said in What is command for turning off wifi?:

                      I managed to put wifi into idle, but I have to do it every time I start machine otherwise I'm constantly getting annoying message "wifi reported error"
                      How can I disable wifi completely ?

                      try adding the disable command to your config.g file? (at least it will run the disable command automatically on boot).

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

                        @arkadiusz said in What is command for turning off wifi?:

                        When duet is rebooted it goes back to idle and keep searching for wifi.

                        You need to edit config.g. There is probably M552 S1 in there already to start wifi at bootup. Either remove it, or change it to M552 S-1

                        Z-Bot CoreXY Build | Thingiverse Profile

                        1 Reply Last reply Reply Quote 1
                        • Arkadiuszundefined
                          Arkadiusz
                          last edited by

                          Thanks for help everyone, I'm still beginner here and I appreciate all help provided.
                          Like bearer and Phaedrux said I had to modify config.g.

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