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

    Auto Resume after Pause

    Scheduled Pinned Locked Moved
    Duet Web Control
    5
    21
    651
    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.
    • techworldundefined
      techworld @jay_s_uk
      last edited by techworld

      @jay_s_uk no not using.

      We are using the machine for last 4 months. We tried to install 'Tool Alignment Vision' plugin from community. It didnt get install properly. Then we reinstalled the original Duet Pi image back to RPI.

      This has happened 3 days back only. From that onwards it is behaving like this.

      We reinstalled everything properly.

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

        @techworld I don't see what could cause an automatic resume of the print except for maybe an extra trigger that is configured somewhere else. You can run this command on the SBC and check what G-code source makes the print resume: /opt/dsf/bin/CodeLogger -t pre

        Duet software engineer

        techworldundefined 1 Reply Last reply Reply Quote 0
        • techworldundefined
          techworld @chrishamm
          last edited by

          @chrishamm @jay_s_uk When I run the command /opt/dsf/bin/CodeLogger -t pre
          we found that after pause, it is immediately triggering M24.
          Then it runs resume.g and resuming the print.

          I checked all the sys files. Nowhere I am finding this M24.

          M24.png

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

            @techworld M24 comes from a web source. Did you make any changes to the UI?

            Duet software engineer

            techworldundefined 1 Reply Last reply Reply Quote 0
            • techworldundefined
              techworld @chrishamm
              last edited by

              @chrishamm As mentioned earlier, we tried to install Tool Alignment Vision' plugin from community. It didnt get install properly. Then we reinstalled the original Duet Pi image back to RPI.

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

                @techworld The only occurrence of M24 in DWC is in the Pause/Resume button. Something must click it again after pausing to make it send that code. I have no explanation why that happens on your setup, perhaps you have a glitchy input device. The underlying code hasn't been changed for ages and I am not aware of anyone else experiencing the same problem.

                Does it still happen when you close the web UI while the machine is pausing? You could also check out the duetwebserver journal logs to see from what IP the M24 came.

                Duet software engineer

                techworldundefined 1 Reply Last reply Reply Quote 0
                • techworldundefined
                  techworld @chrishamm
                  last edited by

                  Recently installed DuetLapse3 plugin, the plugin is working fine we are able to get the time lapse video.

                  We have tried this

                  • Stopped the DuetLapse3 plugin and tested pause function
                  • here pause is working fine, I'm able to pause the print and its not resuming automatically.
                    But when I run DuetLapse3 plugin the print is automatically resuming after giving pause. When pause the print is getting paused, after few seconds again it's resuming.
                    We've tried different settings in DuetLapse3.config file but still the problem is occurring.
                  droftartsundefined stuartofmtundefined 2 Replies Last reply Reply Quote 0
                  • droftartsundefined
                    droftarts administrators @techworld
                    last edited by

                    @techworld As this seems to be being triggered by DuetLapse3 plugin, it may need @stuartofmt (DuetLapse3 developer) to have a look.

                    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
                    • stuartofmtundefined
                      stuartofmt @techworld
                      last edited by

                      @techworld said in Auto Resume after Pause:

                      Recently installed DuetLapse3 plugin, the plugin is working fine we are able to get the time lapse video.

                      We have tried this

                      • Stopped the DuetLapse3 plugin and tested pause function
                      • here pause is working fine, I'm able to pause the print and its not resuming automatically.
                        But when I run DuetLapse3 plugin the print is automatically resuming after giving pause. When pause the print is getting paused, after few seconds again it's resuming.
                        We've tried different settings in DuetLapse3.config file but still the problem is occurring.

                      Can you please post your DuetLapse3.config file. There are options in DuetLapse3 that (deliberately) detect a pause and cause DuetLapse3 to capture an image and then resume. I suspect that is what is happening here.

                      techworldundefined 1 Reply Last reply Reply Quote 0
                      • techworldundefined
                        techworld @stuartofmt
                        last edited by

                        @stuartofmt Please find the config file data:

                        -duet 192.168.29.90
                        -port 8082
                        -basedir /opt/dsf/sd/DuetLapse3
                        -camera1 stream
                        -weburl1 http://DP500:8081/0/stream
                        -seconds 20
                        -detect pause
                        -verbose
                        -keepfiles
                        -restart

                        stuartofmtundefined 1 Reply Last reply Reply Quote 0
                        • stuartofmtundefined
                          stuartofmt @techworld
                          last edited by

                          @techworld

                          Looks like DuetLapse3 is working as it should. The -detect pause is telling DuetLapse3 that if the print job is paused, capture an image, then unpause. The pause can come from DWC or be embedded in gcode. That option is based on the printer state.

                          If you remove -detect pause your current config will capture an image every 20 seconds

                          If, otherwise DuetLapse3 is working as you like, I'd also consider removing -verbose

                          Full descriptions of the options are on the github site. Also documented are gcode commands that you can include in your gcode (typically using slicer pre and post print) to turn DuetLapse on / of on a per print basis. So the whole process can be automated.

                          techworldundefined 1 Reply Last reply Reply Quote 0
                          • techworldundefined
                            techworld @stuartofmt
                            last edited by

                            @stuartofmt We have changed the DuetLapse3.config as recommended, still auto resume is occurring.

                            stuartofmtundefined 2 Replies Last reply Reply Quote 0
                            • stuartofmtundefined
                              stuartofmt @techworld
                              last edited by

                              @techworld said in Auto Resume after Pause:

                              @stuartofmt We have changed the DuetLapse3.config as recommended, still auto resume is occurring.

                              Let me take a look. I re-arranged some code in that area as part of the "tidy-up' for the plugin and may have introduced a bug.

                              I will get to it quickly.

                              1 Reply Last reply Reply Quote 0
                              • stuartofmtundefined
                                stuartofmt @techworld
                                last edited by

                                DuetLapse3-5.2.x.zip.txt @techworld said in Auto Resume after Pause:

                                @stuartofmt We have changed the DuetLapse3.config as recommended, still auto resume is occurring.

                                I looks like it was a pretty obvious "one-liner" (silly on my part). I do not have time to test it for a couple of days. If you would like to try:
                                Here is a new Zip file for the plugin - you'll need to remove .txt from the filename:
                                DuetLapse3-5.2.x.zip.txt

                                techworldundefined 1 Reply Last reply Reply Quote 1
                                • techworldundefined
                                  techworld @stuartofmt
                                  last edited by techworld

                                  Hi @stuartofmt I'm trying to install the plugin, got this error while installing.

                                  27dd76e7-fd02-40e9-b06c-a1c4a6b789eb-image.png
                                  Couldn't install Plugin

                                  techworld

                                  stuartofmtundefined 1 Reply Last reply Reply Quote 0
                                  • stuartofmtundefined
                                    stuartofmt @techworld
                                    last edited by

                                    @techworld

                                    I cannot reproduce the issue on my machine. Here's what I suggest:

                                    1. Use DWC --> plugins --> external. If DuetLapse3 plugin is there: stop the plugin, refresh the browser and uninstall the plugin.
                                    2. Remove traces of DuetLapse from prior installs etc. with sudo rm -f /opt/dsf/dwc/js/DuetLapse3.*
                                    3. Remove the -restart from your DuetLapse3.conf file. Its possible that DuetLapse 3 is still running in the background even though the plugin is stopped. I have not checked that behavior. In any case, when running as a plugin, -restart may not have any utility.
                                    4. Reboot the pi
                                    5. Install the plugin.

                                    As an aside - when I downloaded the plugin from the post above I ended up (windows 11) with a file called 1682005550329-duetlapse3-5.2.x.zip.zip versus .txt at the end. In any case (out of curiosity) - I tried installing with the .zip.zip file and by removiing the last .zip ... BOTH worked !

                                    1 Reply Last reply Reply Quote 0
                                    • stuartofmtundefined
                                      stuartofmt
                                      last edited by

                                      @techworld

                                      Any update? I was able to test at my end and it seems to work fine. But I want to make sure its working OK for you before I assume success.

                                      techworldundefined 1 Reply Last reply Reply Quote 0
                                      • techworldundefined
                                        techworld @stuartofmt
                                        last edited by

                                        @stuartofmt I am not sure what has happened.

                                        Automatically the plugin got installed. Now it is working fine.

                                        We have the 'DuetPi Management Plugin' installed. Is it the one which made the installation?

                                        Another question:

                                        1. Can we make the auto pause at every layer change and take a pic? (The famous one with Octoprint)

                                        Thanks for the support

                                        stuartofmtundefined 1 Reply Last reply Reply Quote 0
                                        • stuartofmtundefined
                                          stuartofmt @techworld
                                          last edited by

                                          @techworld Glad you got it working.

                                          The answer is "yes" you can auto-pause on layer change (using - pause yes and -detect layer). I encourage you to read the documentation as there are additional things to consider (see -rest and also the use of -seconds with -detect). Note that depending on your printer the resultant model may not be "great" - cooling between layers etc.

                                          Lets close this discussion (about DuetLapse3) in this thread and continue future ones in the DuetLapse specific thread.

                                          Do you have a link to "the famous one with Octoprint"? I'm curious 🙂

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