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

    Duet 2 Ethernet and SBC

    Scheduled Pinned Locked Moved
    Beta Firmware
    29
    302
    33.2k
    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.
    • smoki3undefined
      smoki3 @A Former User
      last edited by

      @bearer said in Duet 2 Ethernet and SBC:

      @wilriker said in Duet 2 Ethernet and SBC:

      Basically everything worked for me except flashing new firmware so it must be something in your config that I do not have that might help to narrow down the problem further.

      Ditto. I notice hes using a Duex5 - are you? I'm not.

      Maybe it also make a difference if you have just 4 Motor drivers active. I actually have all 10 drivers active

      A Former User? 1 Reply Last reply Reply Quote 0
      • A Former User?
        A Former User @smoki3
        last edited by

        @smoki3 said in Duet 2 Ethernet and SBC:

        Maybe it also make a difference if you have just 4 Motor drivers active. I actually have all 10 drivers active

        if you upload a sliced file we could test if it is the config or physical presence that makes a difference (if either). running just your config doesn't seen to be a problem with or without Vin, but my simulation doesn't use multiple tools.

        smoki3undefined 1 Reply Last reply Reply Quote 0
        • smoki3undefined
          smoki3 @A Former User
          last edited by smoki3

          @bearer said in Duet 2 Ethernet and SBC:

          @smoki3 said in Duet 2 Ethernet and SBC:

          Maybe it also make a difference if you have just 4 Motor drivers active. I actually have all 10 drivers active

          if you upload a sliced file we could test if it is the config or physical presence that makes a difference (if either). running just your config doesn't seen to be a problem with or without Vin, but my simulation doesn't use multiple tools.

          Without the duex5 you should get a lot of errors that the motor drivers are not connected. My test file also was just one tool head.

          1 Reply Last reply Reply Quote 0
          • wilrikerundefined
            wilriker @A Former User
            last edited by

            @bearer said in Duet 2 Ethernet and SBC:

            Ditto. I notice hes using a Duex5 - are you? I'm not.

            No, I'm not but since the reason so far is that it's caused by interrupts clashing somehow having to handle more interrupts when DueX5 is connected will probably even worsen the situation.

            @smoki3 said in Duet 2 Ethernet and SBC:

            Maybe it also make a difference if you have just 4 Motor drivers active. I actually have all 10 drivers active

            No, it's not even having the drivers active but in a powered state, i.e. input voltage is > ~10V . Whenever this state is detected it will enable an interrupt to receive data from the drivers. On my setup without DueX5 and without stallGuard I can solve the issue of flashing by just disabling the corresponding interrupt handler in the preparation steps for flashing. But of course this cannot be done in regular printer use.

            Manuel
            Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
            with probably always latest firmware/DWC (incl. betas or self-compiled)
            My Tool Collection

            JoergS5undefined 1 Reply Last reply Reply Quote 0
            • JoergS5undefined
              JoergS5 @wilriker
              last edited by

              @wilriker said in Duet 2 Ethernet and SBC:

              disabling the corresponding interrupt handler

              I always wanted to know but did not find the answer yet, but you may know: is the interrupt request lost then or is it queued?

              wilrikerundefined 1 Reply Last reply Reply Quote 0
              • wilrikerundefined
                wilriker @JoergS5
                last edited by

                @JoergS5 TBH I am not 100% certain but my understanding is that if the IRQ handler is disabled there is no one interested in this event and then it's discarded. Also since interrupts are high priority "look at me NOW!" events I don't think it would even make sense to queue them.

                Manuel
                Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
                with probably always latest firmware/DWC (incl. betas or self-compiled)
                My Tool Collection

                JoergS5undefined 1 Reply Last reply Reply Quote 0
                • JoergS5undefined
                  JoergS5 @wilriker
                  last edited by

                  @wilriker thank you! I feared it. I am currently reading books about Cortex MCUs, but this question is not answered yet.

                  wilrikerundefined 1 Reply Last reply Reply Quote 0
                  • wilrikerundefined
                    wilriker @JoergS5
                    last edited by

                    @JoergS5 I would assume that this behavior is not limited to microcontrollers but due to the NOW!-nature of interrupts it doesn't make sense on any platform to store them - I imagine this similar to dropping broken/not-fetched-in-time frames in video playback since it would not make sense to insert them at a later point in the stream.

                    Manuel
                    Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
                    with probably always latest firmware/DWC (incl. betas or self-compiled)
                    My Tool Collection

                    JoergS5undefined 1 Reply Last reply Reply Quote 0
                    • JoergS5undefined
                      JoergS5 @wilriker
                      last edited by

                      @wilriker the Cortex interrupts can nest, ie a higher priority can interrupt an interrupt, the original one proceeding after. I ask because in RRF is a place with interrupt disabled with the comment to hold execution time as short as possible. Makes sense then.

                      wilrikerundefined 1 Reply Last reply Reply Quote 0
                      • wilrikerundefined
                        wilriker @JoergS5
                        last edited by

                        @JoergS5 Oh, you mean when there actually are handlers for different interrupts. I thought you were talking about what happens when the interrupt handler is disabled. Misunderstanding. 🤦

                        That's actually a field of learning for me still, too.

                        But more relevant to this topic again: it's not simply interrupts clashing but interrupts also using DMA. So there are multiple priorities to juggle.

                        Manuel
                        Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
                        with probably always latest firmware/DWC (incl. betas or self-compiled)
                        My Tool Collection

                        JoergS5undefined 1 Reply Last reply Reply Quote 0
                        • JoergS5undefined
                          JoergS5 @wilriker
                          last edited by

                          @wilriker no, you understood me correctly, I meant it the way you answered.
                          I was talking about nested interrupts (NVIC) only because they are in a sense a queuing mechanism, because if a higher interrupt comes, the interrupt which is running is saved and later proceeded.

                          1 Reply Last reply Reply Quote 0
                          • smoki3undefined
                            smoki3
                            last edited by

                            I give up!
                            I can not get any stable connection between my raspberry and the duet.

                            I tried different cables, removed all high current wires in the near of the raspberry. Connected every GND Pin directly to my Power Supply.

                            A Former User? 1 Reply Last reply Reply Quote 0
                            • A Former User?
                              A Former User @smoki3
                              last edited by

                              @smoki3 said in Duet 2 Ethernet and SBC:

                              I tried

                              did you try without the duex? i realize you probably need the duex, but if nothing else it could help narrow down what to focus on

                              smoki3undefined 1 Reply Last reply Reply Quote 0
                              • smoki3undefined
                                smoki3 @A Former User
                                last edited by

                                @bearer said in Duet 2 Ethernet and SBC:

                                @smoki3 said in Duet 2 Ethernet and SBC:

                                I tried

                                did you try without the duex? i realize you probably need the duex, but if nothing else it could help narrow down what to focus on

                                Not as easy. Then I have to wire my complete printer again

                                1 Reply Last reply Reply Quote 0
                                • A Former User?
                                  A Former User
                                  last edited by

                                  If I could load and simulate with your config shouldn't you be able to just disconnect the 50 pin ribbon and power and run a simulation as well?

                                  smoki3undefined 1 Reply Last reply Reply Quote 0
                                  • smoki3undefined
                                    smoki3 @A Former User
                                    last edited by smoki3

                                    @bearer then I already get a lot of errors while booting, because the drivers are missing

                                    wilrikerundefined 1 Reply Last reply Reply Quote 0
                                    • wilrikerundefined
                                      wilriker @smoki3
                                      last edited by

                                      @smoki3 Don't worry about your wiring. It most likely is a firmware issue. Unfortunately I did not have any time since the last time I wrote here to look into that.

                                      Manuel
                                      Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
                                      with probably always latest firmware/DWC (incl. betas or self-compiled)
                                      My Tool Collection

                                      Baenwortundefined 1 Reply Last reply Reply Quote 0
                                      • Baenwortundefined
                                        Baenwort @wilriker
                                        last edited by

                                        So when this works for the Ethernet model would it be possible to run spaghetti detective?

                                        Also, for the D2E, would this offloading to the SBC enable smoother segments on Delta's using mesh compensation?

                                        A Former User? 1 Reply Last reply Reply Quote 0
                                        • A Former User?
                                          A Former User @Baenwort
                                          last edited by

                                          @Baenwort said in Duet 2 Ethernet and SBC:

                                          possible to run spaghetti detective?

                                          Presumably you'd need to pause the Duet either by triggering on a input pin or sending g-code to pause - as such how the SBC is connected doesn't really matter much except you can use echo M25 | sudo CodeConsole rather than say curl ..blah blah.. or echo M25 > /dev/ttyAMC0 which might require a little setup and flushing of the usb serial first?


                                          As for smoother I can't say I'm authority on it, but unless the bottleneck was reading g-code from the SD card moving to a SBC isn't going to improve the handling as the realtime motion planning from the g-code is still done on the Duet.

                                          Baenwortundefined 1 Reply Last reply Reply Quote 0
                                          • Baenwortundefined
                                            Baenwort @A Former User
                                            last edited by

                                            @bearer the spaghetti detective bit was because with a SBC to act as the plugin host it would be potentially easier to port the octoprint plugin.

                                            The comment about smoothness is because I was told once that because of the complexity of the Delta math that on Duet 2 if you enabled mesh bed compensation that it no longer calculated every point to move but fell back on arcs and segments like ordinary RAMPS. But if a SBC offloads some work from the duet I wondered if more could be calculated with the now freed up resources.

                                            It presumes that the DWC takes up some amount of resources to run on the Duet processor.

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