On 10.11.2021 01:11, Richard Cochran wrote:

ChangeLog:
v3 First public release
v2 never published
v1 never published

The Power Profiles need two TLVs:

1. IEEE_C37_238 TLV

   - New configuration option to enable the TLV.

   - New configuration options for grandmasterID and default
     totalTimeInaccuracy.

   - New custom management message for changing totalTimeInaccuracy at
     run time. This message allows switching the TLV from the 2017
     format into the 2011 format by specifying grandmasterTimeInaccuracy
     and networkTimeInaccuracy.

2. ALTERNATE_TIME_OFFSET_INDICATOR TLV

   - New custom management message for enabling the TLV and setting
     the TLV values.

   - New helper program that computes the values from the local time
     and the Linux time zone data base and then sends the values to
     ptp4l. This method assumes that the local Linux system time and
     the PHC clock are synchronized.

Comments and feedback are much appreciated!

Thanks,
Richard


Richard Cochran (10):
  tlv: Encode and decode power profile TLVs.
  Introduce the power profile.
  Add a custom management message for power profile settings.
  tlv: Encode and decode alternate time offset indicator TLVs.
  Prepare clock based storage of up to four time zones.
  Add the ALTERNATE_TIME_OFFSET_PROPERTIES management message.
  Add the ALTERNATE_TIME_OFFSET_NAME management message.
  Implement the ALTERNATE_TIME_OFFSET_ENABLE management message.
  pmc: Convert internal helper function into global method.
  Introduce a time zone helper program.

 clock.c         | 184 +++++++++++++++++++++--
 clock.h         |   8 +
 config.c        |  15 +-
 makefile        |   7 +-
 pmc.c           |  45 ++++++
 pmc_common.c    | 135 ++++++++++++++++-
 pmc_common.h    |   2 +
 port.c          |  76 +++++++++-
 port_private.h  |   3 +
 power_profile.h |  31 ++++
 tlv.c           | 146 +++++++++++++++++++
 tlv.h           |  64 ++++++++
 tz.h            |  26 ++++
 tztool.c        | 377 ++++++++++++++++++++++++++++++++++++++++++++++++
 util.h          |   7 +
 15 files changed, 1107 insertions(+), 19 deletions(-)
 create mode 100644 power_profile.h
 create mode 100644 tz.h
 create mode 100644 tztool.c



Hi,

IEEE C37.238-2017 says that domainNumber value can be 254. Is it possible to 
expand maximum value of this parameter?

_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel
  • [L... Richard Cochran
  • [L... Richard Cochran
    • ... Richard Cochran
  • [L... Richard Cochran
    • ... Geva, Erez
      • ... Richard Cochran
  • [L... Richard Cochran
  • [L... Richard Cochran
  • [L... Richard Cochran
  • [L... Richard Cochran
  • Re... Носиков Владимир Алексеевич via Linuxptp-devel
  • Re... Носиков Владимир Алексеевич via Linuxptp-devel
    • ... Richard Cochran

Reply via email to