[Linuxptp-devel] [PATCH RFC v3 00/10] Profile support for IEEE C37.238-2011 and IEEE C37.238-2017
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
|
From: Richard C. <ric...@gm...> - 2021-11-09 20:12:10
|
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
--
2.20.1
|