• Tags
  • Documentation
  • Order
  • Register
  • Login
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.
  • undefined
    Arkadiusz
    last edited by 15 Jul 2019, 15:44

    Hi,

    I'm using Cncjs and I constantly get message about failed connection and wifi being idle. How can I turn it off?

    Cheers

    1 Reply Last reply Reply Quote 0
    • undefined
      Arkadiusz
      last edited by 15 Jul 2019, 15:48

      I know that command M552 S0 works for turning on wifi so I tried M552 S1 but it doesn't work.

      1 Reply Last reply Reply Quote 0
      • undefined
        PaulHew
        last edited by 15 Jul 2019, 15:50

        M552 S0 turns off the WiFi for a Duet, is that what you are trying to achieve?
        Or M552 S-1 disables the WiFi module, according to this; https://duet3d.dozuki.com/Wiki/Gcode#Section_M552_Set_IP_address_enable_disable_network_interface

        HTH Paul.

        RailCore II - Duet Mini + 1LC, Voron V0.1 - Duet Mini
        Voron 2.4 disassembled..... Waiting for the RailCore Mini....

        1 Reply Last reply Reply Quote 1
        • undefined
          dc42 administrators
          last edited by dc42 15 Jul 2019, 15:52

          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
          • undefined
            Arkadiusz
            last edited by 15 Jul 2019, 15:56

            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
            • undefined
              dc42 administrators
              last edited by 15 Jul 2019, 15:59

              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

              undefined 1 Reply Last reply 16 Jul 2019, 15:13 Reply Quote 0
              • ?
                A Former User
                last edited by A Former User 15 Jul 2019, 16:09

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

                undefined 1 Reply Last reply 16 Jul 2019, 15:17 Reply Quote 1
                • undefined
                  Arkadiusz @dc42
                  last edited by 16 Jul 2019, 15:13

                  @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
                  • undefined
                    Arkadiusz @A Former User
                    last edited by 16 Jul 2019, 15:17

                    @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
                      last edited by A Former User 16 Jul 2019, 15:21

                      @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
                      • undefined
                        Arkadiusz
                        last edited by 16 Jul 2019, 16:10

                        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.

                        undefined 1 Reply Last reply 16 Jul 2019, 17:35 Reply Quote 0
                        • ?
                          A Former User
                          last edited by 16 Jul 2019, 16:15

                          @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
                          • undefined
                            Phaedrux Moderator @Arkadiusz
                            last edited by 16 Jul 2019, 17:35

                            @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
                            • undefined
                              Arkadiusz
                              last edited by 17 Jul 2019, 14:39

                              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
                              1 out of 14
                              • First post
                                1/14
                                Last post
                              Unless otherwise noted, all forum content is licensed under CC-BY-SA