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

Duet 3HC Expansion looses Connection

Scheduled Pinned Locked Moved Unsolved
Duet Hardware and wiring
10
145
6.3k
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
    developeralgo222 @dc42
    last edited by developeralgo222 19 Jan 2024, 16:01

    @dc42 said in Duet 3HC Expansion looses Connection:

    @developeralgo222 said in Duet 3HC Expansion looses Connection:

    Noticing an interesting issue, when i moved the test setup 6XD plus 4x 3HC to the PNP Machine with only Power and CAN Bus Cables connected as before , it doesn't sync at all . The only thing that i changed is the length of the cable from 6XD to 3HC1( from 0.5 ft (shielded ) to 10 ft(shielded) .

    Almost certainly the 10ft cable is faulty. Have you checked that it doesn't have crossed connections between the two ends?

    @developeralgo222 said in Duet 3HC Expansion looses Connection:

    After the test setup , moved everything to PnP Machine. As indicated above i tested each individual expansion 3HC board( 4 boards in total ) with nothing connected to them only power.
    6XD --> Board 1 (with CAN Jumpers) CAN_IN / CAN_OUT -- Sync
    6XD --> Board 2 (with CAN Jumpers) CAN_IN / CAN_OUT -- No Sync
    6XD --> Board 3 (with CAN Jumpers) CAN_IN / CAN_OUT -- No Sync
    6XD --> Board 4 (with CAN Jumpers) CAN_IN / CAN_OUT -- No Sync

    Did you use the same cable between the 6XD and the 3HC in all cases?

    Used same cables except 6XD to 3HC1 where i used a longer cable 10ft

    1 Reply Last reply Reply Quote 0
    • undefined
      infiniteloop @developeralgo222
      last edited by 19 Jan 2024, 16:07

      @developeralgo222

      Termination on each board in the CAN Bus chain works ?

      What @dc42 says. To test, throw-in some cheapo telephone lines (RJ11) and terminate CAN properly.

      undefined 1 Reply Last reply 19 Jan 2024, 16:12 Reply Quote 0
      • undefined
        developeralgo222 @infiniteloop
        last edited by developeralgo222 19 Jan 2024, 16:12

        @infiniteloop said in Duet 3HC Expansion looses Connection:

        @developeralgo222

        Termination on each board in the CAN Bus chain works ?

        What @dc42 says. To test, throw-in some cheapo telephone lines (RJ11) and terminate CAN properly.

        i will try another cable , probably a phone cable or another ADSL 2+ high speed cable to replace the 10 ft cable from 6XD to 3HC1 and see if that makes a difference .

        undefined 1 Reply Last reply 19 Jan 2024, 16:23 Reply Quote 0
        • undefined
          infiniteloop @developeralgo222
          last edited by 19 Jan 2024, 16:23

          @developeralgo222 said in Duet 3HC Expansion looses Connection:

          i will try another cable

          Great 😊

          undefined 1 Reply Last reply 19 Jan 2024, 19:36 Reply Quote 0
          • undefined
            developeralgo222 @infiniteloop
            last edited by developeralgo222 19 Jan 2024, 19:36

            @infiniteloop said in Duet 3HC Expansion looses Connection:

            @developeralgo222 said in Duet 3HC Expansion looses Connection:

            i will try another cable

            Great 😊

            Made 2 different straight cables which are shielded and 1 std phone cable (Normally crossed, so i cut one end and crimped it to straight cable ).

            Cable 1 - Made from CAT 6 Cable (using only 2 pairs for CAN Bus --technically on 2 wires are used) and RJ11 at the ends
            Cable 2 - Made from CAT 8 Cable (using only 2 pairs for CAN Bus --technically on 2 wires are used) and RJ11 at the ends
            Cable 3 - Made from Std Phone Cable (using only 2 pairs for CAN Bus --technically on 2 wires are used) and RJ11 at the ends

            All of them behaved the same when testing each of the 4 x 3HC boards with nothing connected to them only power.

            6XD --> Board 1 (with CAN Jumpers) CAN_IN / CAN_OUT -- Sync

            6XD --> Board 2 (with CAN Jumpers) CAN_IN / CAN_OUT -- No Sync

            6XD --> Board 3 (with CAN Jumpers) CAN_IN / CAN_OUT -- No Sync

            6XD --> Board 4 (with CAN Jumpers) CAN_IN / CAN_OUT -- No Sync

            Not sure why CAN Bus would be this unreliable. For sure i checked the cables , tested them using a different cable tester ( Sperry ) this time to rule out anything. i don't think its the cables after this round of tests

            IMG_1056.jpg IMG_1058.jpg

            undefined undefined undefined 3 Replies Last reply 19 Jan 2024, 19:59 Reply Quote 0
            • undefined
              droftarts administrators @developeralgo222
              last edited by 19 Jan 2024, 19:59

              @developeralgo222 something to do with the mounting? You have them stacked, using what looks like electrically conductive standoffs. I don’t know if that connects the grounds of the boards at a point that causes problems, rather than at the PSUs. You could try powering all four boards (or all boards) from one PSU, see if that makes a difference.

              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 19 Jan 2024, 20:45 Reply Quote 0
              • undefined
                developeralgo222 @droftarts
                last edited by developeralgo222 19 Jan 2024, 20:45

                @droftarts said in Duet 3HC Expansion looses Connection:

                @developeralgo222 something to do with the mounting? You have them stacked, using what looks like electrically conductive standoffs. I don’t know if that connects the grounds of the boards at a point that causes problems, rather than at the PSUs. You could try powering all four boards (or all boards) from one PSU, see if that makes a difference.

                Ian

                Hmmm!!! i don't think so unless the boards themselves have Power rail circuit layer (copper) touching the mounting holes . That would be really really bad. When i did the Test setup they were separated (Not mounted) although still on Brass standoffs. Your thought might be something to investigate , i will check that and try Nylon standoffs

                1 Reply Last reply Reply Quote 0
                • undefined
                  infiniteloop @developeralgo222
                  last edited by 19 Jan 2024, 21:45

                  @developeralgo222 said in Duet 3HC Expansion looses Connection:

                  Not sure why CAN Bus would be this unreliable.

                  It's not about CAN - I've built several applications for constructing machinery from the ground up, connecting controllers via CAN, and these connections are rock-solid. This said, I am now convinced that we can rule out your CAN wiring as cause of the problem. Which leads me to believe we might face an effect which I described as "interesting" early on: some interference between GND and Earth.

                  In your test setup, the boards were strictly isolated from Earth (which was just connected to the two PSUs). Earth is received from the electrical outlets and internally connected with the metal cases of the PSUs. In addition, the metal parts of you PnP machine should be "earthed" as well. The one million dollar question now is: have GND and Earth any potential contact? Or are they maybe decisively synced somewhere?

                  The latter case is something I've done myself, but is not without pitfalls, so I'd like to ask @droftarts for a second opinion. At least, he's on the same trail …

                  undefined 1 Reply Last reply 22 Jan 2024, 12:52 Reply Quote 0
                  • undefined
                    developeralgo222 @infiniteloop
                    last edited by 22 Jan 2024, 12:52

                    @infiniteloop said in Duet 3HC Expansion looses Connection:

                    @developeralgo222 said in Duet 3HC Expansion looses Connection:
                    The one million dollar question now is: have GND and Earth any potential contact? Or are they maybe decisively synced somewhere?

                    The latter case is something I've done myself, but is not without pitfalls, so I'd like to ask @droftarts for a second opinion. At least, he's on the same trail …

                    Today, I have isolated all the PSUs and all are “Earthed” ( AC Ground ) . They don’t touch the aluminum metal table at all anywhere. I will also “Earth” (AC ground ) the aluminum metal table today.

                    Is there anything I might be forgetting on this GND solution. I am trying to avoid creating GND loops

                    undefined 1 Reply Last reply 22 Jan 2024, 14:55 Reply Quote 0
                    • undefined
                      infiniteloop @developeralgo222
                      last edited by 22 Jan 2024, 14:55

                      @developeralgo222

                      Is there anything I might be forgetting on this GND solution. I am trying to avoid creating GND loops

                      That’s complex. As a general rule, imagine a star topology, I.e. for each and every voltage, there should be a single point (or rail) from where to further route the power lines.

                      For your dual PSUs, you already have this central point: V+ (1 rail with 3 connectors on each PSU) is now interconnected as discussed above in this thread.

                      Now, if you connect GND (of the DC-output) to Earth, do it at a single point as well. Think of it as a common rail where all GND lines meet - kind of a ”local Earth”. Don’t take GND or V– from distant parts of the frame. Aside from the common rail, consider them as not being the same.

                      Voltage lines may be split or chained on their run, but may then never refer to another source of the same voltage again (that’s a loop). You often run into this trap with shielded lines: the shield carries GND (or, in some cases, V–), but if you supply GND from both ends, you might involuntarily establish a ground loop. The golden rule here is to always feed GND from the origin - leave it unconnected at the destination end.

                      The fact that most devices in your machine are controlled via V– complicates things. All switched V– lines from the DUETs may never have contact with the ”local Earth”, GND or any other V–.

                      Grounding the PnP machine is another topic: not all metal parts are always in touch with each other, there are potential isolators such as coatings, belts or lubricants in the way, some parts are clearly isolated by design (printed joints etc). Short cable bridges help in some cases, but for moving parts, you might need to route a dedicated GND line through your cable chain.

                      Considering USB ground loops, I recommend this article from the documentation: USB ground loops

                      undefined 1 Reply Last reply 26 Jan 2024, 03:04 Reply Quote 0
                      • undefined
                        dc42 administrators @developeralgo222
                        last edited by dc42 22 Jan 2024, 16:22

                        @developeralgo222 have you confirmed that the wires are not crossed between the ends of the 10ft cable? Your cable tester might not detect that. See https://docs.duet3d.com/en/User_manual/Machine_configuration/CAN_connection#example-of-a-good-cable and the photo after that.

                        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 22 Jan 2024, 19:11 Reply Quote 0
                        • undefined
                          developeralgo222 @dc42
                          last edited by developeralgo222 22 Jan 2024, 19:11

                          @dc42 said in Duet 3HC Expansion looses Connection:

                          @developeralgo222 have you confirmed that the wires are not crossed between the ends of the 10ft cable? Your cable tester might not detect that. See https://docs.duet3d.com/en/User_manual/Machine_configuration/CAN_connection#example-of-a-good-cable and the photo after that.

                          Yes i double checked that . i was suspecting that it might be the case but no. Cable tester that i use checks for all kinds of errors on cable from crossed , shorts , reversed, miswires, continuity, shield , etcs i have used various Fluke professional Cable testers for over 20 years and they have never failed, so i am confident when after all testing it says the cable is good, then its good.

                          They are Straight through cable (Left to right ) and on both ends

                          • Blue, Blue-white, Orange, Orange-white

                          Technically , in this case , Blue-White and Orange wires are used by CAN Bus connection in Duet Boards

                          IMG_1065.jpg

                          undefined 1 Reply Last reply 22 Jan 2024, 20:26 Reply Quote 0
                          • undefined
                            droftarts administrators @developeralgo222
                            last edited by 22 Jan 2024, 20:26

                            @developeralgo222 i don’t know if this matters that much for a short cable, but wires of the same colour, ie blue and white-with-blue-stripe, make up the twisted pair. These should be wired to the centre two pins that Duet use for CAN. The other pair goes on the pins outside these. You’re using one wire from each twisted pair.

                            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 22 Jan 2024, 20:55 Reply Quote 0
                            • undefined
                              developeralgo222 @droftarts
                              last edited by developeralgo222 22 Jan 2024, 20:55

                              @droftarts said in Duet 3HC Expansion looses Connection:

                              @developeralgo222 i don’t know if this matters that much for a short cable, but wires of the same colour, ie blue and white-with-blue-stripe, make up the twisted pair. These should be wired to the centre two pins that Duet use for CAN. The other pair goes on the pins outside these. You’re using one wire from each twisted pair.

                              Ian

                              Let me try it . i have tried almost everything Grounding, and everything in between that has been suggested but to no avail. Sometimes its usually the smallest thing that creates a nightmare.

                              undefined 1 Reply Last reply 23 Jan 2024, 20:23 Reply Quote 0
                              • undefined
                                developeralgo222 @developeralgo222
                                last edited by 23 Jan 2024, 20:23

                                @developeralgo222 said in Duet 3HC Expansion looses Connection:

                                @droftarts said in Duet 3HC Expansion looses Connection:

                                @developeralgo222 i don’t know if this matters that much for a short cable, but wires of the same colour, ie blue and white-with-blue-stripe, make up the twisted pair. These should be wired to the centre two pins that Duet use for CAN. The other pair goes on the pins outside these. You’re using one wire from each twisted pair.

                                Ian

                                Let me try it . i have tried almost everything Grounding, and everything in between that has been suggested but to no avail. Sometimes its usually the smallest thing that creates a nightmare.

                                Didn't make a difference at all .

                                I have tried every kind of Cable connection as per the requirement but there is no reliable sync of CAN connection. I don't believe i am the only one who is building a PnP or a 3D printer that is encountering this issue. i have worked with various kinds of connections and boards but have never encountered such an issue with CAN Bus.

                                Can't Sync 3HC boards no matter the cable. Have used the documentation to double check everything. Remake the cables and test them. Not sure if it might actually be a Duet 3 3HC Hardware issue that is causing this ?

                                undefined 1 Reply Last reply 23 Jan 2024, 20:44 Reply Quote 0
                                • undefined
                                  developeralgo222 @developeralgo222
                                  last edited by developeralgo222 23 Jan 2024, 20:44

                                  @developeralgo222 said in Duet 3HC Expansion looses Connection:

                                  Twisted pair cables terminated in RJ11 connectors are sold in some countries as "High Speed ADSL cables". One supplier of such cables is Kenable. Note, ADSL and telephone cables made with flat wire often cross the connections, making them unsuitable

                                  The price of kenable cables in US is so expensive while in UK they are extremely cheap. Can anyone point me to a link on Amazon or ebay for cable that works with Duet 3HC or 6XD CAN Bus without me cutting and remaking it, and is affordable

                                  undefined 1 Reply Last reply 23 Jan 2024, 22:14 Reply Quote 0
                                  • undefined
                                    droftarts administrators @developeralgo222
                                    last edited by 23 Jan 2024, 22:14

                                    @developeralgo222 I'm sorry you're having so many problems with this. It really shouldn't be this difficult, and it has us foxed as well! Maybe the best option is to return to the last known working configuration, which was as a bench setup.

                                    For cables in the USA on Amazon, these look like the correct ones: https://www.amazon.com/Kenable-Speed-Broadband-Modem-Cable/dp/B011SS7LYU

                                    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 23 Jan 2024, 22:56 Reply Quote 0
                                    • undefined
                                      developeralgo222 @droftarts
                                      last edited by developeralgo222 23 Jan 2024, 22:56

                                      @droftarts said in Duet 3HC Expansion looses Connection:

                                      @developeralgo222 I'm sorry you're having so many problems with this. It really shouldn't be this difficult, and it has us foxed as well! Maybe the best option is to return to the last known working configuration, which was as a bench setup.

                                      For cables in the USA on Amazon, these look like the correct ones: https://www.amazon.com/Kenable-Speed-Broadband-Modem-Cable/dp/B011SS7LYU

                                      Ian

                                      I agree this should not be this difficult. I have checked and double checked a lot of things but i can't get the CAN Sync to work. I decided to close my eyes, curse as much as i can and then ordered those cables let's hope that those help. Will get them in a week.

                                      undefined 1 Reply Last reply 25 Jan 2024, 20:32 Reply Quote 0
                                      • undefined
                                        developeralgo222 @developeralgo222
                                        last edited by developeralgo222 25 Jan 2024, 20:32

                                        @developeralgo222 said in Duet 3HC Expansion looses Connection:

                                        @droftarts said in Duet 3HC Expansion looses Connection:

                                        @developeralgo222 I'm sorry you're having so many problems with this. It really shouldn't be this difficult, and it has us foxed as well! Maybe the best option is to return to the last known working configuration, which was as a bench setup.

                                        For cables in the USA on Amazon, these look like the correct ones: https://www.amazon.com/Kenable-Speed-Broadband-Modem-Cable/dp/B011SS7LYU

                                        Ian

                                        I agree this should not be this difficult. I have checked and double checked a lot of things but i can't get the CAN Sync to work. I decided to close my eyes, curse as much as i can and then ordered those cables let's hope that those help. Will get them in a week.

                                        @dc42, @droftarts , What is the expected terminating resistors values at the end of the CAN Bus for Duet boards? Ideally , Each resistor should ideally be 120 ohm, for a 60 ohm difference between CANH and CANL. When i measure the resistance with Multimeter on the terminated 3HC Board i get a difference of 70.4 Ohms and for Unterminated CAN_H & CAN_L i get 126.6 Ohms ? are this the expected values ?

                                        Was doing some research and to continue troubleshooting, came across some explanation
                                        General CAN Bus wiring and troubleshooting concepts document

                                        Other CAN Bus terminating resistor values can be used and calculated based on specific baudrates and bus lengths - but, as you increase the baudrate, the pickier it gets about correct termination, whereas on lower baudrates you can get away with missing terminating resistors, by chance

                                        Looking at the Duet Board / Schematic - i see Shield_GND terminal on the main board 6XD which i assume is for Ethernet Grounding.

                                        Where is the CAN Grounding on Duet Boards ? since The CAN_GND of the CAN network should be connected to the functional earth potential (FE) at only one point i.e either on Main Board ( 6XD ) or on the Last 3HC on the Chain . Looking at the Kicad PCB design for 6XD , i see CAN_SHD_GND is that the same as CAN_GND in Duet 6XD design ?

                                        1 Reply Last reply Reply Quote 0
                                        • undefined
                                          developeralgo222 @infiniteloop
                                          last edited by 26 Jan 2024, 03:04

                                          @infiniteloop said in Duet 3HC Expansion looses Connection:

                                          @developeralgo222

                                          Is there anything I might be forgetting on this GND solution. I am trying to avoid creating GND loops

                                          That’s complex. As a general rule, imagine a star topology, I.e. for each and every voltage, there should be a single point (or rail) from where to further route the power lines.

                                          For your dual PSUs, you already have this central point: V+ (1 rail with 3 connectors on each PSU) is now interconnected as discussed above in this thread.

                                          Now, if you connect GND (of the DC-output) to Earth, do it at a single point as well. Think of it as a common rail where all GND lines meet - kind of a ”local Earth”. Don’t take GND or V– from distant parts of the frame. Aside from the common rail, consider them as not being the same.

                                          Voltage lines may be split or chained on their run, but may then never refer to another source of the same voltage again (that’s a loop). You often run into this trap with shielded lines: the shield carries GND (or, in some cases, V–), but if you supply GND from both ends, you might involuntarily establish a ground loop. The golden rule here is to always feed GND from the origin - leave it unconnected at the destination end.

                                          The fact that most devices in your machine are controlled via V– complicates things. All switched V– lines from the DUETs may never have contact with the ”local Earth”, GND or any other V–.

                                          Grounding the PnP machine is another topic: not all metal parts are always in touch with each other, there are potential isolators such as coatings, belts or lubricants in the way, some parts are clearly isolated by design (printed joints etc). Short cable bridges help in some cases, but for moving parts, you might need to route a dedicated GND line through your cable chain.

                                          Considering USB ground loops, I recommend this article from the documentation: USB ground loops

                                          @infiniteloop , @dc42 , @droftarts

                                          Can you give detail on this ? Currently i have the 2 PSUs connected like this

                                          PSUs_Negative_Output_Connection_With_DC_to_AC_GND_1.png

                                          Do i need to connect anything differently here ?

                                          undefined 1 Reply Last reply 26 Jan 2024, 13:35 Reply Quote 0
                                          61 out of 145
                                          • First post
                                            61/145
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA