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

    CAN bus anomalies with 6HC and 3HC

    Scheduled Pinned Locked Moved Solved
    Duet Hardware and wiring
    6
    52
    2.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.
    • chrishammundefined
      chrishamm administrators @adammhaile
      last edited by

      @adammhaile The CPU usage looks OK but I agree the SD test is pretty disappointing. I've been using these SanDisk Extreme 64GB A2 cards and overwrote all of them countless times for DuetPi tests and they're still perfectly fine.

      I'm still happy with the Samsung SSDs I have but I cannot say much about the quality of their microSD cards.

      Duet software engineer

      adammhaileundefined 1 Reply Last reply Reply Quote 0
      • adammhaileundefined
        adammhaile @chrishamm
        last edited by

        @chrishamm said in CAN bus anomalies with 6HC and 3HC:

        The CPU usage looks OK but I agree the SD test is pretty disappointing.

        I still am confused by those results - If I run a perf test from the Pi command line (using agnostic) I'm getting 45MB/s writes and 60+ reads.

        @chrishamm said in CAN bus anomalies with 6HC and 3HC:

        I've been using these SanDisk Extreme 64GB A2 cards

        Ha! I ordered 2 of those this morning 🙂

        Do you think I would be safe simply cloning my existing SD to thew new one or should I start from scratch?

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

          I would back up the configs and start with a fresh DuetPi image, at least for testing. If you have more customizations you wish to preserve cloning the card should be an option.

          Z-Bot CoreXY Build | Thingiverse Profile

          adammhaileundefined 1 Reply Last reply Reply Quote 0
          • adammhaileundefined
            adammhaile @Phaedrux
            last edited by

            @phaedrux said in CAN bus anomalies with 6HC and 3HC:

            I would back up the configs and start with a fresh DuetPi image, at least for testing. If you have more customizations you wish to preserve cloning the card should be an option.

            Ok, will do that for now then.

            1 Reply Last reply Reply Quote 0
            • adammhaileundefined
              adammhaile
              last edited by

              @phaedrux @chrishamm @dc42
              I've got to remove these boards and send them back to Filastruder - anything else you want me to try before I do that?

              T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
              • T3P3Tonyundefined
                T3P3Tony administrators @adammhaile
                last edited by

                @adammhaile when so the new SD cards arrive? Would it be too disruptive to ask you to test with one of those.

                I realise that you have been plugging away at this issue for a while so if you can't wait then I understand.

                www.duet3d.com

                adammhaileundefined 1 Reply Last reply Reply Quote 0
                • adammhaileundefined
                  adammhaile @T3P3Tony
                  last edited by adammhaile

                  @t3p3tony said in CAN bus anomalies with 6HC and 3HC:

                  when so the new SD cards arrive? Would it be too disruptive to ask you to test with one of those.

                  No problem - they arrive today. I can likely give it a shot tonight.

                  adammhaileundefined 1 Reply Last reply Reply Quote 1
                  • adammhaileundefined
                    adammhaile @adammhaile
                    last edited by adammhaile

                    @chrishamm @T3P3Tony I don't think I trust the M122 P104 SD card test.... I'm using the new recommended SD card I've I've tested on my desktop at over 140MB/s but when running the diagnostic speed test I get the same exact results as before.
                    Honestly the fact that it's the exact same speed every time makes me feel like it's a bottleneck elsewhere - likely in the diagnostics code.
                    Especially given that I'm consistently able to upload gcode files at ~15MB/s no problem.
                    Though.... maybe this is part of the problem... The 15MB/s upload is through DWC which would be direct to the Pi.
                    But the diagnostics SD write test is running from the 6HC control board itself - so maybe that bottleneck is the SPI bus and that's causing my problems?

                    Is there anywhere I could purchase a new 6HC ribbon cable? Wondering if I should replace that too - though can't find anything that I'm sure is correct.

                    It's late now but I will run some print tests in the morning to see if I can cause any other fails, before I pack up the boards to ship back to Filastruder.

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

                      You could measure the continuity and resistance on the ribbon cable, that would tell us if it's acceptable or not.

                      Z-Bot CoreXY Build | Thingiverse Profile

                      1 Reply Last reply Reply Quote 0
                      • chrishammundefined
                        chrishamm administrators @adammhaile
                        last edited by

                        @adammhaile is this with the new SanDisk card?

                        Duet software engineer

                        adammhaileundefined 1 Reply Last reply Reply Quote 0
                        • adammhaileundefined
                          adammhaile @chrishamm
                          last edited by

                          @chrishamm said in CAN bus anomalies with 6HC and 3HC:

                          is this with the new SanDisk card?

                          Yes. Same card recommended above.

                          chrishammundefined 1 Reply Last reply Reply Quote 0
                          • chrishammundefined
                            chrishamm administrators @adammhaile
                            last edited by

                            @adammhaile Please check if the disconnects persist with the new card. If they do, I'll be happy to share a new firmware build that tells us whether the timeout is caused by the SBC or by Reprapfirmware. We've got another trace but I cannot comment on that one yet.

                            Duet software engineer

                            adammhaileundefined 1 Reply Last reply Reply Quote 0
                            • adammhaileundefined
                              adammhaile @chrishamm
                              last edited by adammhaile

                              @chrishamm said in CAN bus anomalies with 6HC and 3HC:

                              Please check if the disconnects persist with the new card. If they do, I'll be happy to share a new firmware build that tells us whether the timeout is caused by the SBC or by Reprapfirmware. We've got another trace but I cannot comment on that one yet.

                              Sure - been running prints off this SD all morning. So far so good - but it was pretty random before so we'll see.
                              And by timeouts do you mean the SPI connection reset?

                              I'll keep putting this through it's paces either through tomorrow morning or until it fails again - then I'll remove and packup to send back.

                              adammhaileundefined 1 Reply Last reply Reply Quote 0
                              • adammhaileundefined
                                adammhaile @adammhaile
                                last edited by

                                Alright @chrishamm @Phaedrux @dc42 - had it printing since early this morning and now (8pm) it locked up while not printing... couldn't even run any commands to get diagnostics. I could talk to the Pi, but no comms with the controllers until I power cycled.
                                I'm going to get these boards taken out of the machine now to

                                T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
                                • T3P3Tonyundefined
                                  T3P3Tony administrators @adammhaile
                                  last edited by

                                  @adammhaile thanks for confirming that. I hope the replacement sorts the issue.

                                  www.duet3d.com

                                  adammhaileundefined 1 Reply Last reply Reply Quote 0
                                  • adammhaileundefined
                                    adammhaile @T3P3Tony
                                    last edited by adammhaile

                                    @t3p3tony @chrishamm @Phaedrux
                                    <sigh> Got the replacements, installed them, and all seemed to be going fine... but was just running a print and it stopped again mid-print. I unfortunately wasn't even able to view the duetcontrolserver log. I could try to run journalctl but it just never returned - and this was from the Pi terminal directly. I couldn't ssh into it.
                                    I was able get this though, which is the streaming output of the CodeLogger -t executed -q

                                    0794bf43-04c7-4492-8cc9-27754bf19830-image.png

                                    So, I'll admit - probably not something with the actual Duet boards - though I'm completely stumped as to what it could be.
                                    Guess maybe I'll try swapping the Pi again - the fact that even SSH locks up is suspect to me. Implies that it's not the Duet failing... I guess?

                                    I'm running mjpg-streamer and that gcode scroll on the display above from the SBC Pi - we've previously checked that the CPU usage is still low... but could it maybe still be one of those causing it? I've got other Duet 3 SBC machines that have a camera running off the same Pi without issue.

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

                                      Start eliminating extras until you find the smoking gun.

                                      Z-Bot CoreXY Build | Thingiverse Profile

                                      adammhaileundefined 1 Reply Last reply Reply Quote 0
                                      • adammhaileundefined
                                        adammhaile @Phaedrux
                                        last edited by

                                        @phaedrux said in CAN bus anomalies with 6HC and 3HC:

                                        Start eliminating extras until you find the smoking gun.

                                        Yup - working on it. Re-running the same ~12 hour print every day, changing one thing each time.

                                        1 Reply Last reply Reply Quote 0
                                        • chrishammundefined
                                          chrishamm administrators @adammhaile
                                          last edited by chrishamm

                                          @adammhaile Those M905 codes are usually a symptom of excessive load on the Pi - DCS sends them whenever a scheduled delay takes +5s longer than expected (the current acceptable maximum for a 4s delay is already set to 9s, so plenty of time) or when the datetime has been changed (hence the corresponding messages in the duetcontrolserver journal).

                                          So it would be interesting to see what actually prevents DCS from getting computing power and/or IO access to linked libs. Just to exclude IO from/to the microSD card, you could temporarily copy the entire DSF directory to /tmp and run DCS from there (that is from the Pi's memory):

                                          cp -r /opt/dsf/bin /tmp/dsf
                                          sudo systemctl stop duetcontrolserver
                                          /tmp/dsf/DuetControlServer
                                          

                                          Just be aware that you'll have to keep the terminal where you run this open, else a potential print would be aborted. If the same disconnects persists, it must be related to the CPU, memory, or kernel. It would be interesting to see what happens then.

                                          Duet software engineer

                                          adammhaileundefined 1 Reply Last reply Reply Quote 0
                                          • adammhaileundefined
                                            adammhaile @chrishamm
                                            last edited by

                                            @chrishamm Interesting - will keep that in mind.
                                            Strangely the SD card speed test is exactly the same with the new Duet boards, new Pi, and new faster SD card (the one recommended above). So I'd say that test is a red herring. I'm currently seeing 150+ MB/s reads on this card from the Pi.

                                            Will test with DCS in RAM if my current batch of tests fail to rule anything out.

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