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

Problem with escape characters for password for Wi-Fi card.

Scheduled Pinned Locked Moved Solved
Duet Hardware and wiring
6
27
789
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
    gloomyandy @Schickfus
    last edited by 10 Apr 2023, 16:14

    @Schickfus The current WiFi modules can only support 2.4GHz, so if your network is 5GHz only that may be the problem (though most routers support both). Perhaps another option would be to run the printer in access point mode and connect directly to it?

    undefined 1 Reply Last reply 10 Apr 2023, 17:28 Reply Quote 0
    • undefined
      jay_s_uk @Schickfus
      last edited by 10 Apr 2023, 16:17

      @Schickfus also M588 "" isn't valid to forget all networks. It should be M588 S"*"

      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

      undefined 1 Reply Last reply 10 Apr 2023, 17:27 Reply Quote 0
      • undefined
        Schickfus @jay_s_uk
        last edited by 10 Apr 2023, 17:27

        @jay_s_uk

        Ok the stars get filtered out in the chat.

        So I am connected via the serial tool on a Mac to the board.

        So I do

        M587
        Remembered networks: none
        ok

        Then I do

        M552 I1 S0
        ok

        M587 S"SGuest" P"Test"

        Don not get an ok

        M552 I1 S1

        Don't get an answer

        M587
        Remembered networks: none
        ok

        What is wrong?

        undefined undefined 2 Replies Last reply 10 Apr 2023, 17:52 Reply Quote 0
        • undefined
          Schickfus @gloomyandy
          last edited by 10 Apr 2023, 17:28

          @gloomyandy

          Ok thanks. I have gone to a network with just a 2.4 GHz

          undefined 1 Reply Last reply 10 Apr 2023, 18:07 Reply Quote 0
          • undefined
            jay_s_uk @Schickfus
            last edited by jay_s_uk 4 Oct 2023, 17:53 10 Apr 2023, 17:52

            @Schickfus i would suggest you shouldn't be using the I1.
            Just use M552 S0

            Edit: reading further, I should only be used when in SBC mode

            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

            undefined 1 Reply Last reply 10 Apr 2023, 18:45 Reply Quote 0
            • undefined
              T3P3Tony administrators @Schickfus
              last edited by 10 Apr 2023, 18:07

              @Schickfus have you installed the wifi firmware?
              M997 S1

              www.duet3d.com

              undefined 2 Replies Last reply 10 Apr 2023, 18:09 Reply Quote 0
              • undefined
                Phaedrux Moderator
                last edited by 10 Apr 2023, 18:07

                If you're having troubles sending these commands from the terminal program you can put the commands into a macro file and then execute that.

                Z-Bot CoreXY Build | Thingiverse Profile

                undefined 1 Reply Last reply 10 Apr 2023, 18:16 Reply Quote 0
                • undefined
                  Schickfus @T3P3Tony
                  last edited by 10 Apr 2023, 18:09

                  @T3P3Tony

                  Yes according to the two files to be added link.
                  Yes

                  Would it work other wise?

                  1 Reply Last reply Reply Quote 0
                  • undefined
                    Schickfus @T3P3Tony
                    last edited by 10 Apr 2023, 18:14

                    @T3P3Tony said in Problem with escape characters for password for Wi-Fi card.:

                    M997 S1

                    M587.1
                    Error: M587.1: failed to start scan: WiFi module is disabled

                    ok
                    M552 I1 S0
                    ok
                    MWiFi module started

                    Error: Bad command: M
                    ok
                    M587.1
                    ok
                    M587.2
                    Network Scan Results:
                    ssid=fSpace rssi=-47 phymode=n auth=Unknown
                    ssid=ceGuest rssi=3 phymode=b auth=Unknown
                    ok

                    But it is not whole ssid. It is shopped

                    1 Reply Last reply Reply Quote 0
                    • undefined
                      Schickfus @Phaedrux
                      last edited by 10 Apr 2023, 18:16

                      @Phaedrux

                      Yes I did. But this does not work.
                      It won't run the file

                      1 Reply Last reply Reply Quote 0
                      • undefined
                        Phaedrux Moderator
                        last edited by 10 Apr 2023, 18:20

                        What did you have in the file exactly?
                        How did you try to run the file?

                        You need to use M98 P"macroname.g" to execute a macro.

                        Z-Bot CoreXY Build | Thingiverse Profile

                        undefined 1 Reply Last reply 10 Apr 2023, 18:32 Reply Quote 0
                        • undefined
                          Schickfus @Phaedrux
                          last edited by 10 Apr 2023, 18:32

                          @Phaedrux

                          I used

                          M98 P"Gcodes/Wifimacro.g"

                          ; wifimacro.g
                          ; tell the Duet to connect to the wifi
                          ;M118 S"Wifimacro turn off Wifi"
                          M118 S"Wifimacro turn off Wifi"
                          M552 I1 S0 ; Turn off the wifi module
                          M588 "*" ; forget all current SSID networks
                          M587 S"SurfSpaceGuest" P"Test"
                          M552 I1 S1 ; turn the wifi module back on
                          ;M118 S"Wifimacro turn on Wifi"
                          M118 S"Wifimacro turn on Wifi"

                          undefined 1 Reply Last reply 10 Apr 2023, 18:36 Reply Quote 0
                          • undefined
                            Phaedrux Moderator @Schickfus
                            last edited by 10 Apr 2023, 18:36

                            @Schickfus said in Problem with escape characters for password for Wi-Fi card.:

                            M552 I1 S0 ; Turn off the wifi module

                            Remove the I1 from your M552 commands. Are you using an SBC?

                            @Schickfus said in Problem with escape characters for password for Wi-Fi card.:

                            M588 "*" ; forget all current SSID networks

                            You're missing the S in front of the "*". It must be M588 S"*"

                            Z-Bot CoreXY Build | Thingiverse Profile

                            1 Reply Last reply Reply Quote 0
                            • undefined
                              dc42 administrators @jay_s_uk
                              last edited by 10 Apr 2023, 18:45

                              @jay_s_uk said in Problem with escape characters for password for Wi-Fi card.:

                              @Schickfus i would suggest you shouldn't be using the I1.
                              Just use M552 S0

                              Edit: reading further, I should only be used when in SBC mode

                              The I1 is a required parameter to M552 when using the optional WiFi interface on the MB6HC board, so select the wifi interface. The default is I0 which is the Ethernet interface.

                              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 10 Apr 2023, 19:56 Reply Quote 1
                              • undefined
                                dc42 administrators @Schickfus
                                last edited by 10 Apr 2023, 18:47

                                @Schickfus said in Problem with escape characters for password for Wi-Fi card.:

                                So I am connected via the serial tool on a Mac to the board.

                                I recall reading in previous posts that Macs have a habit of substituting "smart quotes" for plain double quotes. Are you sure that hasn't happened?

                                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 2 Replies Last reply 10 Apr 2023, 18:51 Reply Quote 0
                                • undefined
                                  Schickfus @dc42
                                  last edited by 10 Apr 2023, 18:51

                                  @dc42

                                  No I have done some testing.

                                  M587.1

                                  M587.2

                                  And gett ssid string in the beginning chopped offed. Does this mater.

                                  undefined 1 Reply Last reply 10 Apr 2023, 18:54 Reply Quote 0
                                  • undefined
                                    dc42 administrators @Schickfus
                                    last edited by 10 Apr 2023, 18:54

                                    @Schickfus said in Problem with escape characters for password for Wi-Fi card.:

                                    And gett ssid string in the beginning chopped offed. Does this mater.

                                    That's a known issue in RRF 3.5beta2, fixed in the forthcoming beta3. It's only the reported SSID that gets truncated, not the stored SSID.

                                    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 10 Apr 2023, 18:58 Reply Quote 0
                                    • undefined
                                      Schickfus @dc42
                                      last edited by 10 Apr 2023, 18:57

                                      @dc42

                                      Is there a way to know that I have installed the right wifi code?

                                      The files:
                                      DuetWiFiServer_32S3.bin
                                      DuetWiFiServer.bin

                                      undefined 1 Reply Last reply 10 Apr 2023, 19:01 Reply Quote 0
                                      • undefined
                                        Schickfus @dc42
                                        last edited by 10 Apr 2023, 18:58

                                        @dc42

                                        I guess that makes my question obsolet.

                                        1 Reply Last reply Reply Quote 0
                                        • undefined
                                          dc42 administrators @Schickfus
                                          last edited by dc42 4 Oct 2023, 19:03 10 Apr 2023, 19:01

                                          @Schickfus the correct one for the optional wifi module on the MB6HC version 1.02 is DuetWiFiServer_32S3.bin. It should select that one automatically. If in doubt, make sure that the /firmware folder on the SD card contains that one and not the other one, and send M997 S1 to update the wifi module. The latest version is at https://github.com/Duet3D/WiFiSocketServerRTOS/releases/tag/2.1beta3.

                                          However, if the wifi module is responding to requests at all, you almost certainly have the correct firmware installed, although perhaps not the latest version. If you send M552 I1 S0 followed by M122 then the WiFi section of the report should include the WiFi firmware version.

                                          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 10 Apr 2023, 19:19 Reply Quote 0
                                          12 out of 27
                                          • First post
                                            12/27
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA