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

M587 SSID contains "-" character

Scheduled Pinned Locked Moved
General Discussion
4
7
576
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
    hurr1k4ne
    last edited by 29 Oct 2019, 11:57

    Hey!
    i struggle setting up an wifi Connection as the SSID name contains an -.
    I am using linux to get the serial connection. When testing without the -, the connection is saved.

    When i send:

    M587 S"mainframe-legacy" P"WIFIpassword"
    

    (there is no SPACE in SSID, only CODE-Tag adds it... Wifi name is mainframe-legacy)

    it returns:

    M587: Bad or missing parameter
    ok

    Can you help me to escape the - please?

    Thanks in advance, hurr1k4ne

    1 Reply Last reply Reply Quote 0
    • undefined
      dc42 administrators
      last edited by dc42 29 Oct 2019, 12:18

      @hurr1k4ne said in M587 SSID contains "-" character:

      M587 S"mainframe-legacy" P"WIFIpassword"

      That command (copied from your post and pasted) works for me, sent from YAT under Windows. Could it be that your Linux terminal program is modifying the command? Which firmware version do you have on the Duet?

      One of the SSIDs that I have used for the last several years also has a "-" character in it.

      Check that your terminal program is not replacing dumb quotes by smart quotes. Although it's usually only word processors that do that.

      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 0
      • undefined
        droftarts administrators
        last edited by 29 Oct 2019, 12:21

        @hurr1k4ne said in M587 SSID contains "-" character:

        M587 S"mainframe-legacy" P"WIFIpassword"

        Hyphens should be an allowed character. I've quickly tested this, using your exact command from above, and it accepts it. Sending M587 to list networks, I get:

        M587
        Remembered networks:
        VM596525-2G IP=0.0.0.0 GW=0.0.0.0 NM=0.0.0.0
        mainframe-legacy IP=0.0.0.0 GW=0.0.0.0 NM=0.0.0.0

        Is it possible you're sending an em or en rule rather than a hyphen? Google responses for 'SSID ESP8266 hyphen' throws up a couple of people having this problem, but nothing obvious.

        If that doesn't help, please post the output from M115 command (firmware version, Duet version). I'm on 2.04RC1:

        M115
        FIRMWARE_NAME: RepRapFirmware for Duet 2 WiFi/Ethernet FIRMWARE_VERSION: 2.04RC1 ELECTRONICS: Duet WiFi 1.0 or 1.01 FIRMWARE_DATE: 2019-07-14b1

        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

        1 Reply Last reply Reply Quote 0
        • undefined
          hurr1k4ne
          last edited by 29 Oct 2019, 13:04

          wow... i tested screen, moserial, putty, picocom and other terminals on linux...
          even YAT on wine.

          everywhere the same problem.

          When using a "native" windows Laptop and YAT i can save the network.

          M587 S"mainframe-legacy" P"WIFIpass"
          ok
          M587
          Remembered networks:
          mainframe-legacy IP=0.0.0.0 GW=0.0.0.0 NM=0.0.0.0

          Thank you!

          1 Reply Last reply Reply Quote 0
          • undefined
            burtoogle
            last edited by 29 Oct 2019, 13:16

            Using xev, I see keysym 0x2d (minus) when I type '-' which is located to the right of the '0' key and I get keysym 0xffad (KP_Subtract) when I use the keypad '-'. Both work the same on the command line, e.g. ls -l can be typed using either of those - keys but maybe terminal programs don't work the same.

            1 Reply Last reply Reply Quote 0
            • undefined
              hurr1k4ne
              last edited by 29 Oct 2019, 13:16

              Uff... Interesting... I think i found the Problem.

              I connected with following Serial parameters:
              115200 baud, 7, even, 1, hardware flow control

              The Connection works and i get readable answers and commands work.
              But not the M587 containing a hypen.

              When connecting with parameters like YAT on windows uses, the command works.
              Used: 9600baud, 8,None, 1, no flow control)

              undefined 1 Reply Last reply 29 Oct 2019, 14:28 Reply Quote 0
              • undefined
                dc42 administrators @hurr1k4ne
                last edited by 29 Oct 2019, 14:28

                @hurr1k4ne said in M587 SSID contains "-" character:

                115200 baud, 7, even, 1, hardware flow control

                Yes, that's the problem. Like most modern programs, RRF recognises Unicode UTF8 encoding. If your terminal is set to 7 bits+parity, characters with the parity bit set will be interpreted in UTF8.

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