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

    For a noob updating firmware on a Duet 3 is very confusing

    Scheduled Pinned Locked Moved
    General Discussion
    6
    26
    1.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.
    • Danalundefined
      Danal
      last edited by

      I also added some info about Duet Web Control V2 (DWC2). For the moment, I added it in parens after the main text. This is a bit of a hack, but it will do until somebody edits that page for more clarity.

      Delta / Kossel printer fanatic

      1 Reply Last reply Reply Quote 0
      • luckyflyerundefined
        luckyflyer
        last edited by luckyflyer

        Thanks, I'll try that, I now have another (self inflicted I believe) problem with my raspberry. When I run sudo apt-get update I get E: "deb" is not known on line 2 in source list /etc/apt/sources.list.d/due-bash E: : command is not found . The update command always worked before. I was trying to upload 3.01 rc4

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

          • Re-run the procedure to set yourself to the unstable channel.
          wget -q https://pkg.duet3d.com/duet3d.gpg
          wget -q https://pkg.duet3d.com/duet3d-unstable.list
          sudo mv duet3d.gpg /etc/apt/trusted.gpg.d/
          sudo mv duet3d-unstable.list /etc/apt/sources.list.d/duet3d-unstable.list
          sudo chown root:root /etc/apt/trusted.gpg.d/duet3d.gpg
          sudo chown root:root /etc/apt/sources.list.d/duet3d-unstable.list
          
          • If that doesn't fix it, take a look in that /etc/apt/trusted.gpg.d and /etc/apt/sources.list.d directories and see if there is stuff that got messed up.

          • And the ultimate fallback is:

          https://duet3d.dozuki.com/Wiki/Getting_Started_With_Duet_3#Section_DuetPi

          Get the image listed there and etch a new SD.

          • For what is worth, these are the (somewhat obscure) notes of everything I do to a D3 pi when I re-image it. It says it is a ".g" file, treat it as a text file in your favorite editor. Most of the lines that DO NOT start with a "#" can be copy/pasted to the Pi to get things done fast.

          You may NOT want some of the later steps... Like there is almost no reason to set up to build (i.e. compile) the DuetSoftwareFramework. I'd skip that.

          Anyway, the beginning of that file is a good guide, with lots of copy paste stuff.

          01 Steps.g

          Delta / Kossel printer fanatic

          Wallyundefined 1 Reply Last reply Reply Quote 0
          • luckyflyerundefined
            luckyflyer
            last edited by luckyflyer

            Thanks, those 6 steps seems to have fixed it. going to stop for tonight while I'm ahead. Thanks again.

            1 Reply Last reply Reply Quote 1
            • luckyflyerundefined
              luckyflyer
              last edited by

              Thanks for 01 Steps.g. I implemented everything including line 69 but the install does not complete. I will try again. I will be using a camera to monitor prints does this operate off of the Duet usb port or some other way?
              For some reason DWC 2.0.7 does not stick. I update to 2.0.7 but if I close out of DWC and then reopen it's back to 2.0.4

              Danalundefined 2 Replies Last reply Reply Quote 0
              • Danalundefined
                Danal @luckyflyer
                last edited by

                @luckyflyer said in For a noob updating firmware on a Duet 3 is very confusing:

                Thanks for 01 Steps.g. I implemented everything including line 69 but the install does not complete. I will try again. I will be using a camera to monitor prints does this operate off of the Duet usb port or some other way?
                For some reason DWC 2.0.7 does not stick. I update to 2.0.7 but if I close out of DWC and then reopen it's back to 2.0.4

                OpenCV is only needed if the camera is going to be accessed from scripts for multi tool alingment and similar. If the camera is "just a camera", there are a ton of little utilities for RPi that work. I haven't really researched any of them.

                Delta / Kossel printer fanatic

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

                  @luckyflyer said in For a noob updating firmware on a Duet 3 is very confusing:

                  For some reason DWC 2.0.7 does not stick. I update to 2.0.7 but if I close out of DWC and then reopen it's back to 2.0.4

                  That sounds like a browser cache thing, maybe??

                  If you SSH into the Pi itself, you can look around in /opt/dsf/ and be sure there is only one directory called dwc2 containing all the web stuff. Also, the 'ls' command shown below should produce an extremely similar result, in particular the symlink on the last line should be there, the 'www -> ../dwc2'

                  There is no easy way (that I know) to tell the DWC release of the the files sitting in /opt/dsf/dwc2.

                  pi@duet3:~/PythonDSF $ ls -al /opt/dsf/sd
                  total 24
                  drwxr-xr-x 6 pi pi 4096 Nov  5 12:16 .
                  drwxr-xr-x 6 pi pi 4096 Nov  5 12:16 ..
                  drwxr-xr-x 2 pi pi 4096 Sep 23 11:20 filaments
                  drwxr-xr-x 2 pi pi 4096 Mar 13 16:50 gcodes
                  drwxr-xr-x 2 pi pi 4096 Mar 16 21:30 macros
                  drwxr-xr-x 2 pi pi 4096 Mar 17 22:10 sys
                  lrwxrwxrwx 1 pi pi    7 Oct 22 06:00 www -> ../dwc2
                  

                  Delta / Kossel printer fanatic

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

                    I did find a partial answer to "What release of DWC is on the Pi virtual SD card?". It only works if you know the release number...

                    pi@duet3:~/PythonDSF $ cat /opt/dsf/dwc2/js/app.*.js | grep -o -P '.{0,17}.2\.0\.7.{0,6}'
                    JSON.parse('{"a":"2.0.7"}')},
                    

                    If that release is not found, the second line will not be there.

                    Delta / Kossel printer fanatic

                    1 Reply Last reply Reply Quote 0
                    • luckyflyerundefined
                      luckyflyer
                      last edited by

                      Thanks again Danal

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

                        This is probably not a great way to search, it could very easily break if the internals of the web page change... but for now, this will show the version number without needing to know it in advance.

                        cat /opt/dsf/dwc2/js/app.*.js | grep -o -P '.{0,0}.e\.exports=JSON\.parse.{0,18}'
                        

                        Output for 2.0.7 will be:
                        {e.exports=JSON.parse('{"a":"2.0.7"}')}

                        Delta / Kossel printer fanatic

                        1 Reply Last reply Reply Quote 0
                        • luckyflyerundefined
                          luckyflyer
                          last edited by luckyflyer

                          So I decided to start over and reflash the pi sd card since I couldn't get opencv to install correctly. I followed the steps guide up to line 62. However DWC 2.0.7 is still not sticking, it's back to 2.0.4 with relaunch of DWC. I install using the 2.0.7 DuetWebControl-SBC.zip from the system page in DWC.

                          With 2.0.7 installed and displaying as 2.0.7 in DWC I run,
                          pi@duet3:~/PythonDSF $ cat /opt/dsf/dwc2/js/app..js | grep -o -P '.{0,0}.e.exports=JSON.parse.{0,18}'
                          I get,
                          -bash: pi@duet3:~/PythonDSF: No such file or directory
                          When I run,
                          pi@duet3:~/PythonDSF $ cat /opt/dsf/dwc2/js/app.
                          .js | grep -o -P '.{0,17}.2.0.7.{0,6}'
                          I get,
                          -bash: pi@duet3:~/PythonDSF: No such file or directory.
                          Any thoughts on this? Also how do I copy from terminal to get the black outline?

                          droftartsundefined A Former User? 2 Replies Last reply Reply Quote 0
                          • droftartsundefined
                            droftarts administrators @luckyflyer
                            last edited by

                            @luckyflyer said in For a noob updating firmware on a Duet 3 is very confusing:

                            Also how do I copy from terminal to get the black outline?

                            I can help with that! Use the ‘code’ format from the text formatting bar above the message you’re typing. Looks like </>

                            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
                            • A Former User?
                              A Former User @luckyflyer
                              last edited by

                              @luckyflyer said in For a noob updating firmware on a Duet 3 is very confusing:

                              /app..js

                              missing an astersik in between the two periods there

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

                                First, I apologize. I just copy pasted a terminal session, which made it not very apparent what to copy... I've edited it to make it more clear.

                                Second, the problem you are seeing is from my lack of clarity... you copied part of the command prompt. Try the edited version above.

                                Third, to get the boxes around code you copy/paste int this forum, just like @droftarts said, you can use the "</>" icon above (when you are posting, it will appear above). OR, you can type three back-tick-quotes "`" both before and after the code. Like this

                                ```
                                Example code a=5
                                More lines
                                ```

                                Will display like this:

                                Example code a=5
                                More lines
                                

                                Delta / Kossel printer fanatic

                                1 Reply Last reply Reply Quote 0
                                • luckyflyerundefined
                                  luckyflyer
                                  last edited by luckyflyer

                                  Ok, ran the above line and got what you did only twice, ran it twice just to be sure.

                                  {e.exports=JSON.parse('{"a":"2.0.7"}')}
                                  {e.exports=JSON.parse('{"a":"2.0.7"}')}
                                  

                                  It was all red like yours, so I don't understand why 2.0.7 is reverting back to 2.0.4 and should I even really care that it's not sticking. I suspect that I should because there may come a time when it will be necessary to update dwc to take advantage of additional features and or bug fixes.
                                  And everyone thanks for helping me out, I'll get it, it may take awhile. 🖖

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

                                    @luckyflyer said in For a noob updating firmware on a Duet 3 is very confusing:

                                    so I don't understand why 2.0.7 is reverting back to 2.0.4 and should I even really care that it's not sticking

                                    Yeah, this needs to be tracked down. If there is 2.0.7 on the (virtual) SD, then the 2.0.4 is coming from somewhere else. Browser cache, etc.

                                    First debugging suggestion: When you see the 2.0.4, try opening the printer in a completely different browser. Edge, or Safari, or something.

                                    Delta / Kossel printer fanatic

                                    1 Reply Last reply Reply Quote 0
                                    • Wallyundefined
                                      Wally @Danal
                                      last edited by

                                      @Danal said in For a noob updating firmware on a Duet 3 is very confusing:

                                      sudo chown root:root /etc/apt/sources.list.d/duet3d-unstable.list

                                      Thank you for posting this "how to". Try as I might, I wasn't able to locate the exact details to install the unstable lists. Following steps 1 thru 6, then "sudo apt-get update" followed by "sudo apt-get upgrade" gets you the latest RC candidate.

                                      I would also mention, users may want to backup their functional install from the system area in the Web control, select all & right click "download as ZIP" prior to doing this in case you want to revert back.

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

                                        Given a system that already have the stable list those 6 steps could be simplified to echo "deb https://pkg.duet3d.com/ unstable armv7" | sudo tee /etc/apt/sources.list.d/duet3d-unstable.list

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

                                          @bearer is correct. That is the only 'add' needed.

                                          And, I realize that there is LOTS of documentation and knowing which piece to use is a challenge when starting from ground zero. The other way to get on the unstable feed is to execute these commands. Copy/Paste exactly as shown.

                                          wget -q https://pkg.duet3d.com/duet3d.gpg
                                          wget -q https://pkg.duet3d.com/duet3d-unstable.list
                                          sudo mv duet3d.gpg /etc/apt/trusted.gpg.d/
                                          sudo mv duet3d-unstable.list /etc/apt/sources.list.d/duet3d-unstable.list
                                          sudo chown root:root /etc/apt/trusted.gpg.d/duet3d.gpg
                                          sudo chown root:root /etc/apt/sources.list.d/duet3d-unstable.list

                                          Delta / Kossel printer fanatic

                                          1 Reply Last reply Reply Quote 0
                                          • luckyflyerundefined
                                            luckyflyer
                                            last edited by

                                            I happy to report that 2.0.7 is now reliably displaying at every power up, initially it was not, I did nothing to cause it to do so but glad anyway. I have now put Duet 3 and all associated paraphernalia back into their respective boxes since I have no printer to attach them to. My Sec-kit was ordered 3 months ago and has now been delayed some more, don't know when I'll get it. I set Duet 3 up on the workbench to familiarize myself with it and (for the most part) have had fun getting it configured. I'm certainly not up to full speed on the Duet but a lot better than when I started, I have noticed a willingness to help others on this forum which for a guy like me makes the difference between success and failure.

                                            I'm starting to research the Jubilee, looks like a great printer and more versatile but for more than 2x the cost of the sec-kit. Also if I did decide on the Jubilee I wonder would all of the parts be available now that we are in the age of Corona. Interesting times for sure.

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