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

Command to move/rename files

Scheduled Pinned Locked Moved
Firmware wishlist
8
29
2.7k
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
    3dmntbighker @wilriker
    last edited by 31 Jan 2019, 00:55

    @wilriker said in Command to move/rename files:

    Currently there are only two ways to move or rename a file: use DWC (which is using an HTTP call underneath) or remove the SD card from the Duet and do it on a computer.

    I propose an M-Code command to do the same. Looking at https://reprap.org/wiki/G-code there is nothing unused in the M20..M39 range but at least RRF is not using M31 so far.

    This ties into my suggestion that files with "._" and ".DS_Store" should at the very least be hidden. For that matter any file that starts with a period should really be ignored. Anyone who frequently mounts the SD card in Windows or Mac will likely find these droppings all over the place. I'd be just as happy if the Duet deleted all of these files when the SD card is mounted, but I realize that's not likely to happen. I'm mostly referring these files appearing in the 12864 file list.

    Scratch built CoreXY with Maestro
    Heavily modified Ender 3 with Maestro
    MPCNC work in progress with Duet WiFi

    undefined 1 Reply Last reply 31 Jan 2019, 10:29 Reply Quote 0
    • undefined
      wilriker
      last edited by 31 Jan 2019, 10:12

      I reserved M470 for creating a directory and M471 for moving/renaming files/directories. PR with implementation somewhen later today.

      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

      1 Reply Last reply Reply Quote 1
      • undefined
        dc42 administrators @3dmntbighker
        last edited by 31 Jan 2019, 10:29

        @3dmntbighker said in Command to move/rename files:

        This ties into my suggestion that files with "._" and ".DS_Store" should at the very least be hidden. For that matter any file that starts with a period should really be ignored. Anyone who frequently mounts the SD card in Windows or Mac will likely find these droppings all over the place. I'd be just as happy if the Duet deleted all of these files when the SD card is mounted, but I realize that's not likely to happen. I'm mostly referring these files appearing in the 12864 file list.

        I am confused. RRF doesn't return files whose name begin with '.' to DWC. I have just tested this by uploading a menu file starting with '.' to a Maestro. It didn't appear in the file list after uploading it, even after pressing Refresh.

        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 31 Jan 2019, 20:25 Reply Quote 0
        • undefined
          wilriker
          last edited by 31 Jan 2019, 10:53

          And here's the Pull Request.

          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

          1 Reply Last reply Reply Quote 0
          • undefined
            3dmntbighker @dc42
            last edited by 31 Jan 2019, 20:25

            @dc42 said in Command to move/rename files:

            @3dmntbighker said in Command to move/rename files:

            This ties into my suggestion that files with "._" and ".DS_Store" should at the very least be hidden. For that matter any file that starts with a period should really be ignored. Anyone who frequently mounts the SD card in Windows or Mac will likely find these droppings all over the place. I'd be just as happy if the Duet deleted all of these files when the SD card is mounted, but I realize that's not likely to happen. I'm mostly referring these files appearing in the 12864 file list.

            I am confused. RRF doesn't return files whose name begin with '.' to DWC. I have just tested this by uploading a menu file starting with '.' to a Maestro. It didn't appear in the file list after uploading it, even after pressing Refresh.

            I was referring to what I see in the 12864 directory list. Not the web console. When you go to print from the 12864 menus there are a bunch of these files littered everywhere that Windows must have left at some point. But I use a Mac.

            Scratch built CoreXY with Maestro
            Heavily modified Ender 3 with Maestro
            MPCNC work in progress with Duet WiFi

            undefined 1 Reply Last reply 31 Jan 2019, 20:31 Reply Quote 0
            • undefined
              wilriker @3dmntbighker
              last edited by 31 Jan 2019, 20:31

              @3dmntbighker said in Command to move/rename files:

              a bunch of these files littered everywhere that Windows must have left at some point. But I use a Mac.

              Just nitpicking: .DS_Store files are created by MacOS. 😉

              Solution: use Linux. It won't add any unwanted files to your SD card. 😂

              (Couldn't resist 😉 )

              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

              undefined 1 Reply Last reply 31 Jan 2019, 20:34 Reply Quote 2
              • undefined
                3dmntbighker @wilriker
                last edited by 31 Jan 2019, 20:34

                @wilriker said in Command to move/rename files:

                @3dmntbighker said in Command to move/rename files:

                a bunch of these files littered everywhere that Windows must have left at some point. But I use a Mac.

                Just nitpicking: .DS_Store files are created by MacOS. 😉

                Solution: use Linux. It won't add any unwanted files to your SD card. 😂

                (Couldn't resist 😉 )

                Hehe, I manage Linux systems for a living. But I use a Mac to get actual work done.

                Scratch built CoreXY with Maestro
                Heavily modified Ender 3 with Maestro
                MPCNC work in progress with Duet WiFi

                undefined 1 Reply Last reply 1 Feb 2019, 09:38 Reply Quote 0
                • undefined
                  wilriker @3dmntbighker
                  last edited by 1 Feb 2019, 09:38

                  @3dmntbighker Fair enough. I use Linux everywhere and wouldn't want it any other way. One of my professors once said to me it all boils down to what system fits best to your way of thinking and expectations. 🙂

                  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

                  undefined 1 Reply Last reply 1 Feb 2019, 10:25 Reply Quote 0
                  • undefined
                    deckingman @wilriker
                    last edited by 1 Feb 2019, 10:25

                    @wilriker said in Command to move/rename files:

                    @3dmntbighker Fair enough. I use Linux everywhere and wouldn't want it any other way. One of my professors once said to me it all boils down to what system fits best to your way of thinking and expectations. 🙂

                    For me, that would mean a slide rule and log tables ☺

                    Ian
                    https://somei3deas.wordpress.com/
                    https://www.youtube.com/@deckingman

                    undefined 1 Reply Last reply 1 Feb 2019, 10:34 Reply Quote 0
                    • undefined
                      wilriker @deckingman
                      last edited by 1 Feb 2019, 10:34

                      @deckingman said in Command to move/rename files:

                      For me, that would mean a slide rule and log tables ☺

                      I guess that would restrict our future communication to traditional mail then. 😂

                      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

                      undefined 1 Reply Last reply 1 Feb 2019, 10:37 Reply Quote 0
                      • undefined
                        deckingman @wilriker
                        last edited by 1 Feb 2019, 10:37

                        @wilriker said in Command to move/rename files:

                        @deckingman said in Command to move/rename files:

                        For me, that would mean a slide rule and log tables ☺

                        I guess that would restrict our future communication to traditional mail then. 😂

                        Yes. Hand written with a quill, and sent by carrier pigeon.

                        Ian
                        https://somei3deas.wordpress.com/
                        https://www.youtube.com/@deckingman

                        undefined undefined 2 Replies Last reply 1 Feb 2019, 10:39 Reply Quote 0
                        • undefined
                          wilriker @deckingman
                          last edited by 1 Feb 2019, 10:39

                          @deckingman said in Command to move/rename files:

                          Yes. Hand written with a quill, and sent by carrier pigeon.

                          Don't forget about the sealing wax - we have to make sure it arrives properly unopened!

                          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

                          undefined 1 Reply Last reply 1 Feb 2019, 18:59 Reply Quote 0
                          • undefined
                            3dmntbighker @wilriker
                            last edited by 1 Feb 2019, 18:59

                            @wilriker said in Command to move/rename files:

                            @deckingman said in Command to move/rename files:

                            Yes. Hand written with a quill, and sent by carrier pigeon.

                            Don't forget about the sealing wax - we have to make sure it arrives properly unopened!

                            Signed with a w.a.x. cert? 😉

                            Scratch built CoreXY with Maestro
                            Heavily modified Ender 3 with Maestro
                            MPCNC work in progress with Duet WiFi

                            1 Reply Last reply Reply Quote 0
                            • undefined
                              dc42 administrators @deckingman
                              last edited by 1 Feb 2019, 19:11

                              @deckingman said in Command to move/rename files:

                              @wilriker said in Command to move/rename files:

                              @deckingman said in Command to move/rename files:

                              For me, that would mean a slide rule and log tables ☺

                              I guess that would restrict our future communication to traditional mail then. 😂

                              Yes. Hand written with a quill, and sent by carrier pigeon.

                              Two tin cans and a very long piece of string is faster 🙂

                              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 1 Feb 2019, 20:40 Reply Quote 0
                              • undefined
                                wilriker @dc42
                                last edited by 1 Feb 2019, 20:40

                                @dc42 said in Command to move/rename files:

                                Two tin cans and a very long piece of string is faster 🙂

                                Now, you spawned the question in my head about how fast the information travels along the string... 🤦 Is it speed of sound? Or is whatever speed it really is actually the speed of sound? 😖

                                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

                                undefined 1 Reply Last reply 2 Feb 2019, 20:53 Reply Quote 0
                                • undefined
                                  gtj0 @wilriker
                                  last edited by 2 Feb 2019, 20:53

                                  @wilriker said in Command to move/rename files:

                                  @dc42 said in Command to move/rename files:

                                  Two tin cans and a very long piece of string is faster 🙂

                                  Now, you spawned the question in my head about how fast the information travels along the string... 🤦 Is it speed of sound? Or is whatever speed it really is actually the speed of sound? 😖

                                  It's the speed of string of course.

                                  1 Reply Last reply Reply Quote 0
                                  • undefined
                                    Danal
                                    last edited by Danal 2 Feb 2019, 21:20 2 Feb 2019, 21:17

                                    NVP (Nominal Velocity of Propagation) for various substances (where C = Speed of Light in a Vacuum)

                                    Electrical signal,
                                    open wire "ladder": 95-99% C
                                    Electrical signal, coax: 90 to 93% C
                                    Electrical signal, Cat3: 58.5% C
                                    Electrical signal, Cat6: 65% C
                                    Electrical signal, Cat7: 74 to 79% C
                                    Optical signal, fiber: 67% C

                                    Sound waves on String: HIGHLY dependent on string composition and tension. Given by:

                                    0_1549141687244_5c27a790-81c0-4f97-b1e4-5204cdbcf0e0-image.png

                                    Where Ft is the tension and U is the mass per unit length of string. (SI units)

                                    Example: High E string on a Guitar has a density of 3.09 x 10−4 kg/m, and a tension of about 56.40 N when properly tuned. The above forumula yields about 427.23 m/s.

                                    .

                                    Therefore, we can conclude: Use really thin string, and hold it very very tightly, so that the plucked string between the cans sounds like a guitar High E, then NVP:

                                    String, thin and tight 0.0001424 % C
                                    

                                    Delta / Kossel printer fanatic

                                    undefined 1 Reply Last reply 4 Feb 2019, 09:31 Reply Quote 1
                                    • undefined
                                      wilriker @Danal
                                      last edited by 4 Feb 2019, 09:31

                                      @danal I knew someone would come up with the answer to this question. Great! 👍 😂

                                      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

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