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

    SBC: Emergency Macro on "Lost connection to Linux"

    Scheduled Pinned Locked Moved
    Firmware wishlist
    2
    6
    164
    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.
    • oliofundefined
      oliof
      last edited by

      As reported yesterday, I had a spurious disconnect of my Raspberry Pi from the printer which caused the machine to stop the printer dead in the water until everything was rebooted. The printer didn't receive any commands successfully after that.

      I think it would be useful to have a disconnect Macro that runs on the "Lost connection to Linux" event that moves the print head to a safe parking position. That way, potential issues with the heater not turning off and machines which have effectors that need to engage a brake to avoid sinking into the part / the bed to fall down, could do a hail-mary move.

      <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

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

        As part of the planned work for v3.4 I'll bring the Linux interface code in RRF in line with the stepper driver code in one of the next releases, I hope that will resolve the spurious disconnect you had, too.

        It is possible that v3.4 will bring support for the SD card in the Duet even when in SBC mode, which would then allow RRF to call a macro file when the connection to the SBC is interrupted. But be aware it will take some more time before this is addressed.

        When the SBC disconnects, RRF already shuts down all the heaters and discards potentially blocking requests.

        Duet software engineer

        oliofundefined 1 Reply Last reply Reply Quote 0
        • oliofundefined
          oliof @chrishamm
          last edited by

          @chrishamm said in SBC: Emergency Macro on "Lost connection to Linux":

          When the SBC disconnects, RRF already shuts down all the heaters and discards potentially blocking requests.

          As you can see in in my recent experience, at least in some cases the Duet board thinks that it can't shutdown heaters on tool boards and prints scary messages.

          It's better to print the message despite successfully shutting down the heater than the other way round, but it still leaves me with worry.

          That said, I am looking forward to 3.4! I will nonetheless look into switching to standalone mode for a couple long running prints ....

          <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

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

            It is indeed quite strange that both CAN and SPI stopped working at the same time. I'll discuss this internally in hope to find a solution soon. Also note that I do not recommend using RRF 3.3-b1 with DSF 3.2. If everything goes well, we'll do a coordinated pre-release for 3.3-b2 tomorrow, though.

            Duet software engineer

            1 Reply Last reply Reply Quote 0
            • oliofundefined
              oliof
              last edited by oliof

              @chrishamm said in SBC: Emergency Macro on "Lost connection to Linux":

              Also note that I do not recommend using RRF 3.3-b1 with DSF 3.2.

              In the future, if possible, this should be pointed out in the beta release notes either here in the forum, and/or on the github page. When I asked about the availabilty of 3.3b1 for SBC via apt, I was told to do the update manually ...

              <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

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

                @oliof In the future we'll do coordinated (pre-)releases again - 3.3-b1 was an outlier, sorry for the confusion there. In general it's best to keep the SBC up-to-date by using apt only, else I cannot guarantee that the combination of DSF and RRF will work as anticipated.

                Duet software engineer

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