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

    how not to turn off Duet?

    Scheduled Pinned Locked Moved
    General Discussion
    6
    12
    706
    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.
    • r123undefined
      r123
      last edited by

      Was in the middle of a bed levelling series of operations when realised it wasn't going to work. (The bed was sufficiently skewed that the probe wasn't touching at one point.) Not knowing how to stop the process just hit the "emergency stop" which then realised hadn't entirely worked: the LED lighting (connected to duet) was still on. So then turned off the machine.

      On restart no DWC. Turns out the SD had been corrupted and needed to be formatted. The board was fine (though wifi had to be restarted via terminal). Did I do anything wrong (the emergency stop mid process) or was I just unlucky? Any comments?

      1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators
        last edited by

        I think you were just unlucky. An SD card may become corrupted if you turn off the power while data is being written to it.

        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

        zaptaundefined 1 Reply Last reply Reply Quote 0
        • zaptaundefined
          zapta @dc42
          last edited by zapta

          @dc42, It seems from the description that the printer was idle when the power was turned off (per the prior emergency stop). Is it possible that the emergency stop corrupted the SD card?

          (I use the emergency stop very often, sometimes even during pre-print bed leveling, since the Pause doesn't work).

          dc42undefined 1 Reply Last reply Reply Quote 0
          • dc42undefined
            dc42 administrators @zapta
            last edited by dc42

            @zapta said in how not to turn off Duet?:

            @dc42, It seems from the description that the printer was idle when the power was turned off (per the prior emergency stop). Is it possible that the emergency stop corrupted the SD card?

            Yes I think it is if the bed probing had just finished and the height map file was being written, because there are two tasks that can initiate an emergency stop, and those same two tasks can write to the SD card. I will log this as a probable bug.

            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

            zaptaundefined 1 Reply Last reply Reply Quote 0
            • zaptaundefined
              zapta @dc42
              last edited by

              @dc42, thanks.

              1 Reply Last reply Reply Quote 0
              • r123undefined
                r123
                last edited by

                There are hardware solutions for keeping microcontrollers going just long enough to finish critical tasks (a capacitor, or something) at powerdown.

                My takeaway from this:

                1. going to maintain a duplicate carbon copy SD card

                2. going to get a slightly less no-name micro sd adapter (discovered today that mine somehow produces interference that prevents laptop connecting to wifi, which created an hour of panicked debugging because needed internet for instructions!)

                engikeneerundefined 1 Reply Last reply Reply Quote 0
                • engikeneerundefined
                  engikeneer @r123
                  last edited by

                  @r123 it's for this reason I use a separate 5v supply for the Duet and make use of the PS_ON capability. I can hit the estop (physical button or in DWC) and it will kill the 24V to motors, heaters etc, but the Duet still has 5v to run on. Also means you can get some idea what it was doing if you did have to hit the Estop. 10/10 would recommend ๐Ÿ‘Œ

                  E3D TC with D3Mini and Toolboards.
                  Home-built CoreXY, Duet Wifi, Chimera direct drive, 2x BMG, 300x300x300 build volume
                  i3 clone with a bunch of mods

                  r123undefined chiefmonkeyundefined 2 Replies Last reply Reply Quote 1
                  • r123undefined
                    r123 @engikeneer
                    last edited by

                    @engikeneer that's definitely very interesting.

                    Someone just drew to my attention there's a neat way of backing up Duet with a script using the Reprap File Management utility. A secret too well kept.

                    https://railcore.org/software/backup.html

                    Never figured out why there isn't a one-click-download-a-backup button in DWC.

                    droftartsundefined 1 Reply Last reply Reply Quote 0
                    • droftartsundefined
                      droftarts administrators @r123
                      last edited by

                      @r123 said in how not to turn off Duet?:

                      Never figured out why there isn't a one-click-download-a-backup button in DWC.

                      Thatโ€™s a good idea! @chrishamm ?

                      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

                      1 Reply Last reply Reply Quote 0
                      • chiefmonkeyundefined
                        chiefmonkey @engikeneer
                        last edited by

                        @engikeneer using the PS_ON configuration sounds like a more "typical" e-stop style setup. Quick question, how are you supplying the separate 5V for the board?

                        The only documentation I can find on this is supplying 5V to the board thru the SBC, is this how you are running or are you using some other means of input?

                        engikeneerundefined 1 Reply Last reply Reply Quote 0
                        • engikeneerundefined
                          engikeneer @chiefmonkey
                          last edited by

                          @chiefmonkey no I have my own small 5v PSU for my Duet WiFi (no SBC). You feed it in to the pin next to the PS_ON pin ๐Ÿ™‚

                          E3D TC with D3Mini and Toolboards.
                          Home-built CoreXY, Duet Wifi, Chimera direct drive, 2x BMG, 300x300x300 build volume
                          i3 clone with a bunch of mods

                          chiefmonkeyundefined 1 Reply Last reply Reply Quote 0
                          • chiefmonkeyundefined
                            chiefmonkey @engikeneer
                            last edited by

                            @engikeneer Thanks for that, I'm running the 6HC so trying to figure out how to setup the jumpers to run 5V External while also feeding the SBC.

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