• Tags
  • Documentation
  • Order
  • Register
  • Login
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
1.9k
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
    DessiVerse @matt3o
    last edited by 26 Apr 2021, 14:19

    @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
    • undefined
      matt3o @DessiVerse
      last edited by 26 Apr 2021, 15:07

      @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.

      undefined undefined 2 Replies Last reply 26 Apr 2021, 15:07 Reply Quote 0
      • undefined
        DessiVerse @matt3o
        last edited by 26 Apr 2021, 15:07

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

        1 Reply Last reply Reply Quote 0
        • undefined
          dc42 administrators @matt3o
          last edited by dc42 26 Apr 2021, 16:09

          @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

          undefined 1 Reply Last reply 26 Apr 2021, 16:50 Reply Quote 1
          • undefined
            DessiVerse @dc42
            last edited by DessiVerse 26 Apr 2021, 16:50

            @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

            undefined 1 Reply Last reply 26 Apr 2021, 17:20 Reply Quote 0
            • undefined
              matt3o @DessiVerse
              last edited by 26 Apr 2021, 17:20

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

              1 Reply Last reply Reply Quote 0
              • undefined
                arhi
                last edited by 27 Apr 2021, 09:32

                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
                • undefined
                  DessiVerse
                  last edited by 28 Apr 2021, 21:02

                  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
                  • undefined
                    DessiVerse
                    last edited by 28 Apr 2021, 21:03

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

                    undefined 1 Reply Last reply 29 Apr 2021, 13:55 Reply Quote 0
                    • undefined
                      dc42 administrators @DessiVerse
                      last edited by 29 Apr 2021, 13:55

                      @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

                      undefined 2 Replies Last reply 29 Apr 2021, 14:41 Reply Quote 0
                      • undefined
                        DessiVerse @dc42
                        last edited by 29 Apr 2021, 14:41

                        @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.

                        undefined 1 Reply Last reply 30 Apr 2021, 05:22 Reply Quote 0
                        • undefined
                          DessiVerse @dc42
                          last edited by 29 Apr 2021, 14:54

                          @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?

                          undefined 1 Reply Last reply 29 Apr 2021, 15:56 Reply Quote 0
                          • undefined
                            stuartofmt @DessiVerse
                            last edited by 29 Apr 2021, 15:56

                            @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.

                            undefined 1 Reply Last reply 29 Apr 2021, 15:59 Reply Quote 0
                            • undefined
                              DessiVerse @stuartofmt
                              last edited by 29 Apr 2021, 15:59

                              @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
                              • undefined
                                Phaedrux Moderator
                                last edited by 29 Apr 2021, 21:22

                                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
                                • undefined
                                  arhi @DessiVerse
                                  last edited by 30 Apr 2021, 05:22

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