OpcUa Server on a embedded device with no time source

33 views
Skip to first unread message

Marco Reichert

unread,
Mar 30, 2023, 11:22:31 AM3/30/23
to open62541
Hello,

I am running open62541 successfully on an embedded device without battery for the internal RTC.
This device will most likely be used in the future in networks without internet access and also without NTP server.

The only time information it has is the number of milliseconds since its system start.

Is it acceptable to provide timestamps like UA_DATETIME_UNIX_EPOCH + [milliseconds since power on] or is it possible to sync the server time with the client once one is connected?

With kind regards
Marco

Translated with www.DeepL.com/Translator (free version)


Julius Pfrommer

unread,
Apr 5, 2023, 8:28:53 AM4/5/23
to open62541
Have a look here for clock synchronization in OPC UA: https://reference.opcfoundation.org/v104/Core/docs/Part6/6.3/
The standard wants you to only send UTC timestamps.
If no clock source is available, to me, send what you have and document it to handle the fallout in the application layer.

Regards
Julius
Reply all
Reply to author
Forward
0 new messages