Set Date & Time #301
Replies: 2 comments 1 reply
-
|
Hi @amarinelli-1994 Sorry for the late response.
I don't know where you are seeing this. Can you point me to that doc? I am not familiar with any OSDP way of setting the time other than the deprecated TDSET command. But since you mentioned you are on an ESP32, can't you just use NTP to sync your wall clock? Also, using text command to set date and time is a hack. Is your PD implementing that feature? If you are implementing that feature, then the RTC not being updated is bug in your implementation? |
Beta Was this translation helpful? Give feedback.
-
|
at a meeting last week in Austin the timestamp was put back into the specification, I will share the text as soon as final but yes follow 8601, it did exist in an earlier version. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a device based on ESP32 with internal RTC as PD.
I want to set Date & Time with my CP.
The CMD_TDSET | 0x6D | Time and Date Set is deprecated and not implemented.
The OSDP documentation suggests to use TEXT command to set date & time with the format “GeneralizedTime” as defined in ISO 8601
Unfortunatelly, when I update the RTC, the new time is far from the last timestamp saved by PD and this generate an offline behavious of the PD.
There is a better method to update the RTC pd time?
Thanks,
Andrea
Beta Was this translation helpful? Give feedback.
All reactions