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

Newb initial Maestro network setup via terminal

Scheduled Pinned Locked Moved
Duet Hardware and wiring
4
9
237
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
    splicer
    last edited by 18 Jul 2020, 18:49

    I am the proud owner of a new Duet 2 Maestro and am excited to get started. Unfortunately, I'm having trouble getting the "getting started" started.

    I connect to the board well enough over USB using SerialTools on a Mac, and I get the following message:

    RepRapFirmware for Duet 2 Maestro is up and running.

    But instead of seeing "OK" when I issue an M command I see nothing at all until I try to type another command. After the first keystroke I receive a series of "Bad command" messages which look like the board is feeding its own output back to itself rather than displaying them to me:

    M115
    Bad command: d command: re/releases/
    ok
    Bad command: ok
    ok
    Bad command: mmand: 552s://github.com/dc42/RepRvad command: ok
    ok
    Bad command: ok
    ok
    Bad command: and: qttps://github.com/dc42/RepRapFirmware/rad command: 1ad command: A
    ok
    Bad command: ok
    ok
    Bad command: epRapFirmware/r
    ok
    Bad command: d command: rmware/releases/
    ok
    Bad command: ok
    ok
    Bad command: 
    ok
    Bad command: ok
    ok
    Bad command: vad command: ok
    ok
    Bad command: ok
    ok
    Bad command: mmand: ok
    ok
    Bad command: ok
    ok

    It looks as though I've botched something fundamental but I've been trying different settings in the terminal and have been unsuccessful in getting it to respond as described in the Getting Connected guide.

    The next thing that I will try is setting up a dummy local network to connect to DWC without first reconfiguring any settings. But that seems like Doing It Wrong because it's not what the instructions say. When getting something started for the first time I like to try it the way I'm supposed to. I can try non-standard stuff later.

    Any suggestions appreciated!

    ? 1 Reply Last reply 18 Jul 2020, 19:04 Reply Quote 0
    • ?
      A Former User @splicer
      last edited by 18 Jul 2020, 19:04

      @splicer said in Newb initial Maestro network setup via terminal:

      It looks as though I've botched something fundamental but I've been trying different settings in the terminal and have been unsuccessful in getting it to respond as described in the Getting Connected guide.

      I think that might be the result of lines that are not comments in your config.g file?

      Try sending a few blank lines to clear out any buffered stuff and then send M552 S1 to enable networking?

      1 Reply Last reply Reply Quote 0
      • undefined
        splicer
        last edited by 18 Jul 2020, 19:38

        Thank you!

        If there are uncommented junk lines in my config.g file then I ought to pull the card, open it on another computer, and edit it? I would have done that except the config.g file on the card says explicitly not to edit or use it.

        If I hit enter five times to send five blank lines I get a string of "bad command" messages as above. Typing "M552" and then a space similarly sends me a string of "bad command" messages without giving me a chance to hit enter and send it. It looks to me as though any five keystrokes sent results in string of "bad command" messages. I can get the whole string in if I paste it rather than type it as instructed here: https://duet3d.dozuki.com/Guide/1.)+Getting+Connected+to+your+Duet/7

        … but there again, after pasting, it takes four keystrokes (be they Enter or Space or what have you) to get the string of "bad command" messages.

        Although they do have different messages. Example:

        M552 Bad command: mand: 552s://github.com/dc42/ReM
        ok
        Bad command: d command: d command: ok
        ok
        Bad command: ok
        ok
        Bad command: ok
        ok
        Bad command: c42/RepRapFirmware/releases/
        ok
        Bad command: ok5
        ok
        Bad command: d command: 1
        ok
        Bad command: ok
        ok
        Bad command: s/
        ok
        Bad command: ok
        ok
        Bad command: ok 552: Bad IP address
        ok
        Bad command: ok
        ok
        Bad command: ok
        ok
        Bad command: eases/
        ok
        Bad command: ok
        ok
        Bad command: 5
        ok
        Bad command: d command: re/releases/
        ok
        Bad command: ok
        ok
        Bad command: mmand: 552s://github.com/dc42/RepR2
        ok
        Bad command: d command: ok
        ok
        Bad command: ok
        ok
        Bad command: and: qttps://github.com/dc42/RepRapFirmware/r
        ok
        Bad command: d command: 1ad command: A
        ok
        Bad command: ok
        ok

        The result of M552 S0 pasted (plus hitting enter four times) follows:

        M552 S0
        Bad command: epRapFirmware/r
        ok
        Bad command: d command: rmware/releases/
        ok
        Bad command: ok
        ok
        Bad command: 
        ok
        Bad command: ok
        ok
        Bad command: d command: ok
        ok
        Bad command: ok
        ok
        Bad command: mmand: ok
        ok
        Bad command: ok
        ok
        Bad command: r Duet 2 Maestro FIRMWARE_VERSIO
        ok
        Bad command: d command: ok
        ok
        Bad command: ok
        ok
        Bad command: releases/
        ok
        Bad command: ok
        ok
        Bad command: mand: 552s://github.com/dc42/Re
        ok
        Bad command: d command: d command: ok
        ok
        Bad command: ok
        ok
        Bad command: ok
        ok
        Bad command: c42/RepRapFirmware/releases/
        ok
        Bad command: ok
        ok
        Bad command: d command: 1
        ok
        Bad command: ok
        ok
        Bad command: s/
        ok
        Bad command: ok
        ok
        Bad command: ok 552: Bad IP address
        ok
        Bad command: ok
        ok
        Bad command: ok
        ok
        Bad command: eases/
        ok
        Bad command: ok
        ok
        ? undefined 2 Replies Last reply 18 Jul 2020, 19:58 Reply Quote 0
        • ?
          A Former User
          last edited by 18 Jul 2020, 19:42

          I can't say for sure where the extra stuff comes from, but it'll be the config.g on the SD card or from the serial port somehow.

          I guess the easy test is to remove the SD card and try the usb serial terminal then.

          @splicer said in Newb initial Maestro network setup via terminal:

          … but there again, after pasting, it takes four keystrokes (be they Enter or Space or what have you) to get the string of "bad command" messages.

          you'll need to send new lines (enter) until you no longer get a bad command to ensure whichever buffer contains the bad commands is cleared.

          1 Reply Last reply Reply Quote 0
          • ?
            A Former User @splicer
            last edited by 18 Jul 2020, 19:58

            @splicer said in Newb initial Maestro network setup via terminal:

            the config.g file on the card says explicitly not to edit or use it.

            looks a bit like https://github.com/T3P3/Duet/blob/master/Duet2/SD Card Contents/sys/config.g ?

            the link at the bottom is a good starting point to make a suitable config

            ; M117 Use https://configurator.reprapfirmware.org/ to set up your printer config

            1 Reply Last reply Reply Quote 0
            • undefined
              droftarts administrators @splicer
              last edited by 18 Jul 2020, 20:36

              @splicer have you tried using the method in the documentation, ie using the Mac terminal? ie

              Mac OSX Users: Open Applications > Utilities > Terminal .
              Run ls /dev/tty.* Copy the result that has USB in the name. For example; /dev/tty.usbmodem1411
              Run screen /dev/tty.usbmodem1411 115200. Replace "usbmodem1411" with the result you received. You should see a blank screen. Hit enter and you should see OK returned. You are connected successfully.

              I’ve never had much success with Mac serial terminal software, but it may just be the settings. Old versions of Pronterface do work, but depends on which version of MacOS you’re on as to whether it will run.

              See if you get the same response using the documented method.

              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

              undefined 1 Reply Last reply 18 Jul 2020, 20:50 Reply Quote 0
              • undefined
                splicer
                last edited by 18 Jul 2020, 20:43

                I may have discovered the problem. I found another computer to plug in to the card with, and it responds to commands just as described everywhere. So my guess is I have a bad FTDI driver on the other machine. It would explain the gobbledygook.

                I'm proceeding with cautious optimism. I also discovered I have one bad network port on my hub. Better to discover this now than get further into the process and wonder why everything still isn't working!

                Edited the config.g with network config and I'm now in through the DWC!

                I have a lot to learn here, but that's easier to do when everything looks like the docs say they should!

                1 Reply Last reply Reply Quote 0
                • undefined
                  splicer @droftarts
                  last edited by 18 Jul 2020, 20:50

                  @droftarts said in Newb initial Maestro network setup via terminal:

                  See if you get the same response using the documented method.

                  Thanks, I should have mentioned that first. I did use screen first and had the described behavior. I switched to SerialTools in an attempt to try to get to the bottom of it.

                  I'll look at that computer and see what I did to mess it up. As I said just a moment ago, I may have a bad (or at least incompatible) FTDI driver on that machine left over from programming Sumobots. In the meantime, I have web access so serial access is less important.

                  Thank you so much!

                  1 Reply Last reply Reply Quote 0
                  • undefined
                    Phaedrux Moderator
                    last edited by 18 Jul 2020, 22:02

                    PronterFace on the Mac works as a suitable terminal app for the Duet. Though it hasn't been updated in a long time and I don't think it will work with Catalina.

                    Z-Bot CoreXY Build | Thingiverse Profile

                    1 Reply Last reply Reply Quote 0
                    4 out of 9
                    • First post
                      4/9
                      Last post
                    Unless otherwise noted, all forum content is licensed under CC-BY-SA