Skip to content

Ticket #946: Add Publishing Offset in PubSub

Jérémie Chabod requested to merge 946-publishOffset-jch into master

Closes #946 (closed)

Design:

  • Add a parameter for each message for publishing offset. When the offset is used (even if 0), the PublishPeriod SHALL be a divisor of 1 second, so that window can be meaningful regardless of any time reference towards other devices.
  • Add an offset parameter to SOPC_RealTime_AddDuration (and rename it). if < 0, then the function shall behave as previously. This function shall use the local Clock to determine the position of the "RealTime" clock towards "Time" clock. In all cases, the function shall not wait longer than 2*PublishPeriod.

Note: dynamic test added in zephyr/ptp sample. Not testable under linux for the moment (no PtP test on LINUX)

Edited by Jérémie Chabod

Merge request reports