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

    Can't print with daemon.g with 1sec loop

    Scheduled Pinned Locked Moved Solved
    General Discussion
    2
    8
    233
    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.
    • zaptaundefined
      zapta
      last edited by zapta

      When I add a daemon.g with a 1 sec infinite loop (as recommended for 1sec events), I can't print anymore.

      while true
        G4 P1000   ; Wait 1sec
        echo {"Loop " ^ iterations}
      

      I do see the console messages every sec, upload from Prusa Slicer goes normal, the printer enters the Printing state, but nothing happens and the bed heater does start heating as it should. If I remove daemon.g, everything works well.

      Any suggestions?

      2a2c4058-1f16-4b96-b1d6-b1a7dbac019a-image.png

      I am using this version

      c6a3dc9c-9468-4a3d-aa3d-6ebfa76894b0-image.png

      EDIT: The system config and macros, and a sample gcode file I try to print, are here https://github.com/zapta/temp_public/tree/main/bug_report_files

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

        One more observation, when I upload the file and the printer enter Printing mode, I see in the console messages as if a new daemon.g loop started in parallel to the existing one.

        fe020731-c219-49e2-841b-c87842e211e2-image.png

        1 Reply Last reply Reply Quote 0
        • zaptaundefined zapta marked this topic as a question
        • Phaedruxundefined
          Phaedrux Moderator
          last edited by

          Does it behave the same with G4 S1 instead of P1000?

          Does it behave the same with 3.5 RC1? Or RC2?

          Z-Bot CoreXY Build | Thingiverse Profile

          zaptaundefined 2 Replies Last reply Reply Quote 0
          • zaptaundefined
            zapta @Phaedrux
            last edited by

            @Phaedrux, same with the daemon.g below. I will try the RC and will report here.

            while true
              G4 S1 ; Wait 1sec
              echo {"Loop " ^ iterations}
            
            1 Reply Last reply Reply Quote 0
            • zaptaundefined
              zapta @Phaedrux
              last edited by

              @Phaedrux, to upgrade to 3.5.0 RC1 (this is the latest I find on github), do I just need to upload Duet3Firmware_Mini5plus.uf2 via the web interface?

              1 Reply Last reply Reply Quote -1
              • Phaedruxundefined
                Phaedrux Moderator
                last edited by

                Yes, and you'll also have to update DWC.

                Z-Bot CoreXY Build | Thingiverse Profile

                zaptaundefined 2 Replies Last reply Reply Quote 0
                • zaptaundefined
                  zapta @Phaedrux
                  last edited by

                  What file is it and how do I install it?

                  (I am using a standalone Duet Mini, no Raspberry Pi)

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

                    @Phaedrux, found the problem. 100% my fault. My Prusa slicer startup code injects the snippet below to the files I send to the printer. That's a result of lazy programming. Thanks for your help.

                    ...
                    ; This forces an immediate update of the neopixels color
                    M98 P"/sys/daemon.g"
                    ...
                    
                    1 Reply Last reply Reply Quote 1
                    • zaptaundefined zapta has marked this topic as solved
                    • First post
                      Last post
                    Unless otherwise noted, all forum content is licensed under CC-BY-SA