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
    833
    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.
    • Schickfusundefined
      Schickfus @dc42
      last edited by

      @dc42

      No I have done some testing.

      M587.1

      M587.2

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

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

        @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

        Schickfusundefined 1 Reply Last reply Reply Quote 0
        • Schickfusundefined
          Schickfus @dc42
          last edited by

          @dc42

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

          The files:
          DuetWiFiServer_32S3.bin
          DuetWiFiServer.bin

          dc42undefined 1 Reply Last reply Reply Quote 0
          • Schickfusundefined
            Schickfus @dc42
            last edited by

            @dc42

            I guess that makes my question obsolet.

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

              @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

              Schickfusundefined 1 Reply Last reply Reply Quote 0
              • Schickfusundefined
                Schickfus @dc42
                last edited by

                @dc42

                It is the right. WiFi firmware version 2.1beta3

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

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

                  M587 S"Surf" P"=U2raA44Ae*”

                  The closing quote at the end of the password in that line is indeed the wrong sort of quote, it's not a straight quote. The command provokes the reply "Error: M587: control character in string". The command is accepted if I replace the closing quote by a straight double quote.

                  Try sending those commands from the console, but:

                  • after the M552 I1 S0 command, wait for the "WiFi module started" message
                  • change M558 "" to M588 S""
                  • wait at least 10 seconds after the M588 command, it has to erase the flash file system
                  • make sure that your terminal emulator doesn't change the straight double quotes to smart quotes

                  If you want to send them from a GCode file instead, you will need to add G4 delay commands after the M552 and the M588.

                  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

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

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

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

                    @droftarts the gcode docs need updating to reflect that then

                    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

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

                      @jay_s_uk I've updated it.

                      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
                      • Schickfusundefined
                        Schickfus @dc42
                        last edited by

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

                        Try sending those commands from the console, but:

                        after the M552 I1 S0 command, wait for the "WiFi module started" message
                        change M558 "" to M588 S""
                        wait at least 10 seconds after the M588 command, it has to erase the flash file system
                        make sure that your terminal emulator doesn't change the straight double quotes to smart quotes

                        If you want to send them from a GCode file instead, you will need to add G4 delay commands after the M552 and the M588.

                        Thanks!

                        I got it to work. Just switched to a PC and dropped using serial tool on Mac and it all started to work.

                        Thanks for the G4. This will improve the code.

                        1 Reply Last reply Reply Quote 0
                        • dc42undefined dc42 marked this topic as a question
                        • dc42undefined dc42 has marked this topic as solved
                        • First post
                          Last post
                        Unless otherwise noted, all forum content is licensed under CC-BY-SA