Use of M905?
-
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
-
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.
-
@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.
-
@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.