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

    Easier switching between DSF and Standalone mode?

    Scheduled Pinned Locked Moved
    Firmware developers
    4
    17
    673
    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.
    • gtj0undefined
      gtj0
      last edited by

      Most folks will neither care nor use a feature that allows easier switching but as a frequent tester I sure would. How about a new parameter to M999 maybe P"STANDLONE" that tells RRF to restart in standalone mode regardless of SPI state. Assuming an SD card is present of course.

      Maybe the DSF when given M999 P"STANDALONE" can issue the M999 to RRF then wait for it to come back and give it a "switch to standalone" mode command before exiting with a code that tells systemd to not restart it.

      This would also mean that having an SD card present couldn't be the sole means of determining mode. Maybe if there is an SD card present RRF could read config.g and check for some command at the top that says "check with DSF for startup mode".

      I guess another possibility is a mode where RRF uses DSF only as a virtual filesystem and stays in control all other ways. Maybe this could use the "switch to another config root" feature already in place for having multiple firmware version available.

      Just thinking out loud.

      1 Reply Last reply Reply Quote 1
      • Danalundefined
        Danal
        last edited by Danal

        The Duet starts in standalone if there is an SD card, and it can open /sys/config.g.

        When running in standalone mode, you could switch to Pi with

        M471 S"/sys/config.g" T"/sys/config.g.current"
        M999
        

        Depending on the network configuration in the FAT partition config.g and the Pi network config, you might have to load a different web page. They really can't be the same, the Pi is still up and on the network even when the Duet is standalone.

        I don't know of any way to switch back without taking the card out of the Duet; when running in Pi, the FAT partition on the card in the Duet is not accessible. I tried "0:/sys..." "1:/sys...", etc. Those are various directories on the Pi.

        Delta / Kossel printer fanatic

        gtj0undefined 1 Reply Last reply Reply Quote 0
        • gtj0undefined
          gtj0 @Danal
          last edited by

          @Danal Yeah I'm not worried about ip addresses since I have different static ones assigned to the Duet3 and SBC. It's just getting the Duet into standalone mode without having to keep removing covers and popping the card out. I'd use an sd card extender but we've been warned to not do that. 🙂

          1 Reply Last reply Reply Quote 0
          • Danalundefined
            Danal
            last edited by

            Yeah, I believe it will require a change to get more than halfway there.

            Be nice if "1:/..." was the Duet's SD, when running in Pi.

            Delta / Kossel printer fanatic

            1 Reply Last reply Reply Quote 0
            • gtj0undefined
              gtj0
              last edited by

              Thinking more about this, it's be really nice to have the Duet's DS card available while in DSF mode to maybe cache a print file instead of getting it line by line from DSF when the DSF isn't adding any value.

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

                Too bad the Pi can can't act as a SPI slave; does the jetson suffer the same limitation?

                gtj0undefined 1 Reply Last reply Reply Quote 0
                • gtj0undefined
                  gtj0 @A Former User
                  last edited by

                  @bearer said in Easier switching between DSF and Standalone mode?:

                  Too bad the Pi can can't act as a SPI slave; does the jetson suffer the same limitation?

                  The Jetson SPIs works in slave mode in most circumstances. Unfortunately I became the SPI "expert" for the Jetsons and got a community award from nvidia for it. 🙂

                  A Former User? 1 Reply Last reply Reply Quote 0
                  • Danalundefined
                    Danal @gtj0
                    last edited by

                    @gtj0 said in Easier switching between DSF and Standalone mode?:

                    Thinking more about this, it's be really nice to have the Duet's DS card available while in DSF mode to maybe cache a print file instead of getting it line by line from DSF when the DSF isn't adding any value.

                    Except DSF actually processes quite a few of the gcodes. Non move.

                    Delta / Kossel printer fanatic

                    gtj0undefined 1 Reply Last reply Reply Quote 0
                    • gtj0undefined
                      gtj0 @Danal
                      last edited by

                      @Danal Yeah but it doesn't do anything special with them. At least not at the current time. I always wondered why the DSF just didn't preprocess a print file and ship the file to RRF to print but that's a subject for another decade.

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

                        @gtj0 said in Easier switching between DSF and Standalone mode?:

                        SPIs works in slave mode

                        would have been a neat trick to use the same interface and just switch the SBC to emulate a SD card, but Pi's can't do that unless you get another award?

                        gtj0undefined 1 Reply Last reply Reply Quote 0
                        • gtj0undefined
                          gtj0 @A Former User
                          last edited by

                          @bearer Not a chance 🙂

                          1 Reply Last reply Reply Quote 0
                          • Danalundefined
                            Danal @gtj0
                            last edited by

                            @gtj0 said in Easier switching between DSF and Standalone mode?:

                            @Danal Yeah but it doesn't do anything special with them. At least not at the current time. I always wondered why the DSF just didn't preprocess a print file and ship the file to RRF to print but that's a subject for another decade.

                            M23 HemeraToolPlateToolBoardHoles.gcode
                            M24
                            

                            The duet can't do that, the file would be not found. Preprocess and ship... well, then what about M20 (list), and rename and delete and so forth.

                            So move EVERYTHING back to the Duet. Except, run the web server on the Pi, but not the controlserver (or, probably better phrasing, the control server become a very thin interface.) Right or Wrong, this is not the path that Dave and Chris chose.

                            Delta / Kossel printer fanatic

                            gtj0undefined dc42undefined 2 Replies Last reply Reply Quote 0
                            • dc42undefined
                              dc42 administrators
                              last edited by

                              This feature is already planned for firmware 3.02.

                              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

                              gtj0undefined 1 Reply Last reply Reply Quote 1
                              • gtj0undefined
                                gtj0 @Danal
                                last edited by

                                @Danal said in Easier switching between DSF and Standalone mode?:

                                @gtj0 said in Easier switching between DSF and Standalone mode?:

                                @Danal Yeah but it doesn't do anything special with them. At least not at the current time. I always wondered why the DSF just didn't preprocess a print file and ship the file to RRF to print but that's a subject for another decade.

                                M23 HemeraToolPlateToolBoardHoles.gcode
                                M24
                                

                                The duet can't do that, the file would be not found. Preprocess and ship... well, then what about M20 (list), and rename and delete and so forth.

                                So move EVERYTHING back to the Duet. Except, run the web server on the Pi, but not the controlserver (or, probably better phrasing, the control server become a very thin interface.) Right or Wrong, this is not the path that Dave and Chris chose.

                                I'm not suggesting the current path is Right or Wrong. I was just wondering. There certainly could be benefits to having the DCS send gcode line by line. We're just not at that point yet. Like I said "...that's a subject for another decade." Given that "stay at home" has forced me to have 2 double-decker BLT sandwiches with extra mayo this week, I probably won't live that long. 🙂

                                Danalundefined 1 Reply Last reply Reply Quote 0
                                • gtj0undefined
                                  gtj0 @dc42
                                  last edited by

                                  @dc42 said in Easier switching between DSF and Standalone mode?:

                                  This feature is already planned for firmware 3.02.

                                  Good news! Thanks!

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

                                    @Danal said in Easier switching between DSF and Standalone mode?:

                                    M23 HemeraToolPlateToolBoardHoles.gcode
                                    M24
                                    

                                    The duet can't do that, the file would be not found. Preprocess and ship... well, then what about M20 (list), and rename and delete and so forth.

                                    If that doesn't work already (have you tried it with the latest RRF and DCS?) then I'm sure it would be possible to make it work.

                                    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

                                    1 Reply Last reply Reply Quote 0
                                    • Danalundefined
                                      Danal @gtj0
                                      last edited by

                                      @gtj0 said in Easier switching between DSF and Standalone mode?:

                                      Given that "stay at home" has forced me to have 2 double-decker BLT sandwiches with extra mayo this week, I probably won't live that long.

                                      Dang, man, I need to visit, lockdown or no.

                                      Delta / Kossel printer fanatic

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