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

Problem with 1.18 to 1.19 Update

Scheduled Pinned Locked Moved
Firmware installation
4
14
2.6k
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
    nebulus7
    last edited by 20 Nov 2017, 23:18

    Hello!

    I'm in the midst of setting up a new Duet Wifi board. It arrived with 1.18 firmware, which I was able to get up and running quickly with no issues. I've tried to update it to 1.19 following the 1.18>1.19 update guide on the wiki with no success.

    It appears to be updating the software fine but can't connect to the network with the macro command (or manual command line codes). Specifically it gives me a "Bad Parameter in M587" error. I've copied the macro file directly from the supplied version with just my SSID and PW changed, and also manually created one to ensure it's clean with no luck. I'm running OSX on a macbook. Below is the command line output in Pronterface when I run the update and macro.

    When I try connecting to the wifi network with a M552 S1 it says the password is wrong, which is definitely is not. I'm using the same password which worked fine with 1.18, and I've confirmed in the router software that it's correct. Also below is a copy of the macro script I've been using, with the password replaced with stars. The password does not contain any special characters, only lower-case letters and numbers.

    I'm not sure what else I can try now so any help would be much appreciated…

    Cheers,
    Ben

    [[language]]
    Connecting...
    Printer is now online.
    >>> M997 S0:1
    SENDING:M997 S0:1
    Trying to connect at 460800 baud:
    success
    Erasing 244400 bytes...
    Uploading file...
    5% complete
    10% complete
    15% complete
    20% complete
    25% complete
    30% complete
    35% complete
    40% complete
    45% complete
    50% complete
    55% complete
    60% complete
    65% complete
    70% complete
    75% complete
    80% complete
    85% complete
    90% complete
    95% complete
    Upload successful
    [ERROR] Can't read from printer (disconnected?) (OS Error 6): Device not configured
    [ERROR] Can't write to printer (disconnected?) (SerialException): write failed: [Errno 6] Device not configured
    Disconnected.
    Connecting...
    Printer is now online.
    >>> M98 P/macros/SETNETWORK
    SENDING:M98 P/MACROS/SETNETWORK
    WiFi module started
    Bad parameter in M587 command
    Remembered networks:
    NETGEAR89WiFi module is changing mode
    WiFi reported error: Wrong password while trying to connect to NETGEAR89
    Wifi module is idle
    [[language]]
    M552 S0
    G4 P1000
    M587 S”NETGEAR89” P”******”
    1 Reply Last reply Reply Quote 0
    • undefined
      peirof
      last edited by 20 Nov 2017, 23:24

      Not sure, but think M552 S0, disable network… Try M552 S1

      1 Reply Last reply Reply Quote 0
      • undefined
        KeeganB
        last edited by 21 Nov 2017, 00:37

        Is your SSID really all caps?
        The SSID is case sensitive.
        The pass is case sensitive too, so if yours is all lowercase you need to make sure you are using the correct syntax when sending.

        Artemis
        Rostock Max v2
        Orion

        1 Reply Last reply Reply Quote 0
        • undefined
          nebulus7
          last edited by 21 Nov 2017, 01:05

          Yep SSID is definitely all caps and the password is correct. There was no issues using the same credentials to get the Wi-Fi working on 1.18.

          I'm pretty the problem is related to the "bad parameter" error, since the M587 command doesn't check the credential validity anyway (or so I believe…).

          Also the S1 command gets the module to attempt to connect to the network, so I'm pretty sure the credentials need to be entered under S0.

          1 Reply Last reply Reply Quote 0
          • undefined
            KeeganB
            last edited by 21 Nov 2017, 01:20

            Yes, you are correct. You need to run M587 AFTER issuing a M552 S0.

            Is that second snippet of code in you config.g file? If it is, just comment it out for now.

            using Pronterface(or w/e) try this:

            M558 S""
            M552 S0
            M587 S"NETGEAR89" P"
            ******"
            M552 S1

            That will remove any current config, put the module idle, send the new configs, and finally initialize and hopefully connect the wifi!

            Sorry if you know all this, just going on what i have in front of me for info from your post.

            Artemis
            Rostock Max v2
            Orion

            1 Reply Last reply Reply Quote 0
            • undefined
              peirof
              last edited by 21 Nov 2017, 01:49

              Wrong password while trying to connect to NETGEAR89
              Wifi module is idle

              Uppercase? Log say wrong password

              1 Reply Last reply Reply Quote 0
              • undefined
                nebulus7
                last edited by 21 Nov 2017, 02:20

                @KeeganB:

                Yes, you are correct. You need to run M587 AFTER issuing a M552 S0.

                Is that second snippet of code in you config.g file? If it is, just comment it out for now.

                using Pronterface(or w/e) try this:

                M558 S""
                M552 S0
                M587 S"NETGEAR89" P"
                ******"
                M552 S1

                That will remove any current config, put the module idle, send the new configs, and finally initialize and hopefully connect the wifi!

                Sorry if you know all this, just going on what i have in front of me for info from your post.

                All good. The second code snippet is the macro I'm running to set the network credentials, copied from the instructions in the wiki. The enable WiFi line in the config.g file is commented out.

                Unfortunately I've tried those (and several permutations) commands to set the credentials and turn on the Wi-Fi module with no success.

                1 Reply Last reply Reply Quote 0
                • undefined
                  KeeganB
                  last edited by 21 Nov 2017, 02:30

                  and you are 1,000,000,000,000% sure you have the case sensitivity correct in your M587 command? This is where I failed several times my first attempts.

                  Artemis
                  Rostock Max v2
                  Orion

                  1 Reply Last reply Reply Quote 0
                  • undefined
                    nebulus7
                    last edited by 21 Nov 2017, 03:32

                    @KeeganB:

                    and you are 1,000,000,000,000% sure you have the case sensitivity correct in your M587 command? This is where I failed several times my first attempts.

                    Yep definitely. I'm pretty sure it doesn't check if the credentials are correct when you run the M587 command anyway, so I don't think an incorrect password or SSID would cause the "bad parameter" error…

                    1 Reply Last reply Reply Quote 0
                    • undefined
                      KeeganB
                      last edited by 21 Nov 2017, 03:37

                      True. hmmmm

                      Copy your M587 line here. Redact the password, but if you could someone keep it so we can see which should be caps/lower that may help.

                      Artemis
                      Rostock Max v2
                      Orion

                      1 Reply Last reply Reply Quote 0
                      • undefined
                        nebulus7
                        last edited by 21 Nov 2017, 05:34

                        @KeeganB:

                        True. hmmmm

                        Copy your M587 line here. Redact the password, but if you could someone keep it so we can see which should be caps/lower that may help.

                        The last code snippet in my first post is the exact macro I've been using, just with the password replaced by stars. The password is definitely correct, so unless there's a syntax error in the M587 command somewhere it's probably a firmware issue I think.

                        1 Reply Last reply Reply Quote 0
                        • undefined
                          dc42 administrators
                          last edited by 21 Nov 2017, 10:11

                          Pronterface forces all characters in the commands you send to upper case, including the characters in your password. It may also fail to send special characters in your password, which main explain the "Bad parameter" errors.. Therefore, do not use Pronterface to send the M587 command. Use a terminal emulator (e.g. YAT if your PC runs Windows) instead.

                          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
                            nebulus7
                            last edited by 21 Nov 2017, 11:00

                            Woohoo I think I'm back up and running!

                            Setting the credentials through the terminal interface seemed to work. I'm confused as to why running the macro didn't work then, I would've thought the macro would bypass the convert-to-uppercase problem?

                            Thanks for the help all 🙂

                            1 Reply Last reply Reply Quote 0
                            • undefined
                              dc42 administrators
                              last edited by 21 Nov 2017, 11:24

                              Yes, running the macro should have worked if you had the correct commands in it i.e. M552 S0 to enable the WiFi module, G4 … to give it time to start up, then the M587 command.

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