Richard Cochran
2014-12-18 13:09:15 UTC
Here my fifth go at the "JBOD" Boundary Clock. In order to avoid a
frequency hiccup when changing the slave port, we need somehow to
reset the servo. After looking at adding a bunch more servo code to
allow changing the frequency offset and limits on the fly, I realized
it would be much easier to completely restart the servo instead. The
result is much less intrusive to the existing code base.
Comments? Questions?
Thanks,
Richard
* ChangeLog
** V5
- Added a one line fix to make V4 really work.
** V4
- Simplify the implementation by letting a new slave port call into
the clock to reset the PHC device
** V3
- Close all open PHC file descriptors on exit
- Less verbose JBOD BC start up messages
- Synchronize the group of devices, even if none is a slave
Richard Cochran (5):
config: add a option to enable a poor man's boundary clock.
clock: Introduce a function to switch the PTP Hardware Clock.
port: allow running a boundary clock with multiple clock devices.
phc2sys: automatic mode: synchronize all non-slave ports.
phc2sys: default to the first clock in automatic mode.
clock.c | 37 +++++++++++++++++++++++++++++++++++++
clock.h | 8 ++++++++
config.c | 13 +++++++++++++
config.h | 1 +
default.cfg | 1 +
ds.h | 1 +
fault.c | 1 +
fault.h | 1 +
gPTP.cfg | 1 +
phc2sys.c | 52 +++++++++++++++++++++++++++++++++++++++++++---------
port.c | 28 ++++++++++++++++++++++++----
ptp4l.8 | 12 +++++++++++-
ptp4l.c | 1 +
13 files changed, 143 insertions(+), 14 deletions(-)
frequency hiccup when changing the slave port, we need somehow to
reset the servo. After looking at adding a bunch more servo code to
allow changing the frequency offset and limits on the fly, I realized
it would be much easier to completely restart the servo instead. The
result is much less intrusive to the existing code base.
Comments? Questions?
Thanks,
Richard
* ChangeLog
** V5
- Added a one line fix to make V4 really work.
** V4
- Simplify the implementation by letting a new slave port call into
the clock to reset the PHC device
** V3
- Close all open PHC file descriptors on exit
- Less verbose JBOD BC start up messages
- Synchronize the group of devices, even if none is a slave
Richard Cochran (5):
config: add a option to enable a poor man's boundary clock.
clock: Introduce a function to switch the PTP Hardware Clock.
port: allow running a boundary clock with multiple clock devices.
phc2sys: automatic mode: synchronize all non-slave ports.
phc2sys: default to the first clock in automatic mode.
clock.c | 37 +++++++++++++++++++++++++++++++++++++
clock.h | 8 ++++++++
config.c | 13 +++++++++++++
config.h | 1 +
default.cfg | 1 +
ds.h | 1 +
fault.c | 1 +
fault.h | 1 +
gPTP.cfg | 1 +
phc2sys.c | 52 +++++++++++++++++++++++++++++++++++++++++++---------
port.c | 28 ++++++++++++++++++++++++----
ptp4l.8 | 12 +++++++++++-
ptp4l.c | 1 +
13 files changed, 143 insertions(+), 14 deletions(-)
--
1.7.10.4
1.7.10.4