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

    USB Connection Unreliable when Printing

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    usb port octoprint octopi duet 3 mini
    6
    19
    2.0k
    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.
    • arhiundefined
      arhi
      last edited by

      ADUM3160 usb isolators are awesome for solving issues with ground loops

      https://www.aliexpress.com/item/4000125240219.html
      https://www.aliexpress.com/item/1005001877763774.html
      https://www.ebay.com/itm/283836100887

      it's cheap and solves the problem by completely isolating USB. I use it on all equipment that has contact with high voltage (12V is high voltage as 12V on the USB data line will kill the USB port on the PC and probably a whole motherboard too depending on the day you are having)

      1 Reply Last reply Reply Quote 0
      • DessiVerseundefined
        DessiVerse
        last edited by

        Tried a new USB cable that I knew worked before, and having the same issue. I'll have to order the USB isolator and see how that goes.

        1 Reply Last reply Reply Quote 0
        • DessiVerseundefined
          DessiVerse
          last edited by

          This problem is also happening specifically when G29 is running, not at any other point.

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

            @dessiverse said in USB Connection Unreliable when Printing:

            This problem is also happening specifically when G29 is running, not at any other point.

            What exactly is the problem? It's normal with GCode that each command is completed before execution of the next one from the same input channel starts. So if you send G29 from USB, then you can't get responses to further commands sent over USB until the G29 command completes.

            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

            DessiVerseundefined 2 Replies Last reply Reply Quote 0
            • DessiVerseundefined
              DessiVerse @dc42
              last edited by

              @dc42 The problem is that when trying to print via OctoPrint there's an error being thrown Too many consecutive timeouts, printer still connected and alive? So I can't use OctoPrint with the Duet board. It seems like this problem is happening specifically when G29 is running.

              arhiundefined 1 Reply Last reply Reply Quote 0
              • DessiVerseundefined
                DessiVerse @dc42
                last edited by

                @dc42 I think I realized the problem. G29 doesn't give a response until the probing is completely finished, causing the issue. Is there a way to have it update as it's going?

                stuartofmtundefined 1 Reply Last reply Reply Quote 0
                • stuartofmtundefined
                  stuartofmt @DessiVerse
                  last edited by

                  @dessiverse
                  This may be a red herring but ... for what its worth ...

                  A year ago I was using Octoprint with std (8 bit) Creality controller and often got those errors - during actual prints, nothing to do with G29. Printing from SD did not exhibit the errors. UNfortunately - at that time - Octoprint did not have a very reliable download to SD card capability either.

                  This is what caused me to go get a Duet2 Wifi and use DWC. I'm very glad I did. Zero communication issues of any kind.

                  Things may have changed with Octoprint over the last year but maybe not. I do not want to steer you away from investigating other causes (like ground loop) but it's possible this is an Octoprint issue.

                  DessiVerseundefined 1 Reply Last reply Reply Quote 0
                  • DessiVerseundefined
                    DessiVerse @stuartofmt
                    last edited by

                    @stuartofmt It's definitely not a ground loop issue. The problem is Octoprint is waiting for a response when running G29, and it's not getting one because the duet doesn't send anything until it's done. No other commands can be run during that time either so it has no way of know it's still connected.

                    1 Reply Last reply Reply Quote 0
                    • Phaedruxundefined
                      Phaedrux Moderator
                      last edited by

                      It's been a while since I've used octoprint, but doesn't it have a timeout setting you can turn off so that it ignores timed out commands?

                      Z-Bot CoreXY Build | Thingiverse Profile

                      1 Reply Last reply Reply Quote 0
                      • arhiundefined
                        arhi @DessiVerse
                        last edited by

                        @dessiverse said in USB Connection Unreliable when Printing:

                        @dc42 The problem is that when trying to print via OctoPrint there's an error being thrown Too many consecutive timeouts, printer still connected and alive? So I can't use OctoPrint with the Duet board. It seems like this problem is happening specifically when G29 is running.

                        There is config in octoprint to tell it about "long running commands" that will solve this problem for you.

                        1 Reply Last reply Reply Quote 1
                        • First post
                          Last post
                        Unless otherwise noted, all forum content is licensed under CC-BY-SA