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

    Use of M905?

    Scheduled Pinned Locked Moved
    General Discussion
    2
    4
    678
    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.
    • wilrikerundefined
      wilriker
      last edited by wilriker

      Yesterday I discovered this code but I have no clue for what purpose I would set the date and time on the controller. Where would this be used?

      If there is any meaningful usage I think about having a small time-sync-script on one of my Raspberry Pis that regularly would send updates to the Duet Wifi because I also realized that this info is lost as soon as the Duet is reset (which was not a big surprise).

      Reference: https://duet3d.dozuki.com/Wiki/Gcode?revisionid=HEAD#Section_M905_Set_local_date_and_time

      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
      • dc42undefined
        dc42 administrators
        last edited by

        The main use of the Duet knowing the date and time is when writing log file entries. The Duet date and time is set automatically when Duet Web Control connects to it.

        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

        wilrikerundefined 1 Reply Last reply Reply Quote 0
        • wilrikerundefined
          wilriker @dc42
          last edited by

          @dc42 said in Use of M905?:

          The Duet date and time is set automatically when Duet Web Control connects to it.

          Hm, something must have been strange yesterday because after a reset and reconnect in DWC sending M905 gave me unknown time response - maybe I was just too quick. Checked again now and now date and time has been set correctly.

          Thanks for clarification and also relieving me of creating my own solution to set date and time. 😉

          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
          • wilrikerundefined
            wilriker
            last edited by

            @dc42 Now I know what happened when M905 gave me "Clock has not been set":

            I updated config.g through the web interface. The UI asked me whether I want to restart to make the new settings effective. I chose to do so. Then DWC reconnected somehow in the background automatically (or never got disconnected in the first place because restart is so quck?). Now as long as I do not disconnect/reconnect the time will not be set anew.

            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
            • First post
              Last post
            Unless otherwise noted, all forum content is licensed under CC-BY-SA