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.
    • matt3oundefined
      matt3o @DessiVerse
      last edited by

      @dessiverse check this https://duet3d.dozuki.com/Wiki/USB_ground_loops

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

        @matt3o is this a USB cable issue then? I wanna be able to use a webcam with the printer and octoprint for remote management. The WiFi is also really unreliable on my duet but Iโ€™ll make a separate post about that eventually.

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

          @matt3o I feel like I had this issue with my Ender 3 originally and needed a new cable for it

          1 Reply Last reply Reply Quote 0
          • matt3oundefined
            matt3o @DessiVerse
            last edited by

            @dessiverse I don't have experience with octoprint, but it's sometimes suggested to cut the +5 from the usb cable. I don't know if that is suggested for the duet. They talk about ground loops and as far as I understand that would be a different problem.

            Apparently the wiki suggests to get an USB insulator.

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

              @matt3o hm, okay. I can give that a go! Thanks ๐Ÿ™‚

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

                @matt3o said in USB Connection Unreliable when Printing:

                @dessiverse I don't have experience with octoprint, but it's sometimes suggested to cut the +5 from the usb cable. I don't know if that is suggested for the duet. They talk about ground loops and as far as I understand that would be a different problem.

                USB ground loops can disrupt the comms. If you are running Octoprint on a PC then they can be hard to avoid while maintaining safety, except by using a USB isolator. As an absolute minimum, power the PC and the 3D printer and nothing else from the same mains distribution block. If you are running Octoprint on a Pi then they can be avoided, by using a typical RPi PSU (without a ground connection) to power the Pi.

                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 1 Reply Last reply Reply Quote 1
                • DessiVerseundefined
                  DessiVerse @dc42
                  last edited by DessiVerse

                  @dc42 I am using the correct power supply though. I think itโ€™s a USB issue, I had this sort of thing on the ender 3 a while ago

                  EDIT: Correct Power Supply for the Pi I mean

                  matt3oundefined 1 Reply Last reply Reply Quote 0
                  • matt3oundefined
                    matt3o @DessiVerse
                    last edited by

                    @dessiverse try with a different cable then and maybe add ferrite beads

                    1 Reply Last reply Reply Quote 0
                    • 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