Changes since v1:
- include the changes to refactor time stamp processing
- raw and weighting modes are configurable (disabled by default)

This adds new time stamp processing modes that are suitable with
software time stamping.

The idea is to give smaller weights to samples where the sync and/or
delay messages were delayed significantly in the network and possibly
include a large error. The sample offset is based directly on the
sample delay instead of the long-term filtered delay and the sample
weight is set to the ratio of the sample delay to the long-term
average. E.g. if the measured delay is normally 1 ms and the new
sample has 10ms delay, the sample weight (and the clock adjustment
that will be made) will be 10 times smaller.

Miroslav Lichvar (6):
  Convert and correct time stamps early.
  Refactor time stamp processing.
  tsproc: add raw and weighting modes.
  servo: add support for weighted samples.
  linreg: use sample weight.
  pi: use sample weight.

 clock.c         | 143 ++++++++++++---------------------------
 clock.h         |  24 +++----
 config.c        |  24 +++++++
 config.h        |   1 +
 default.cfg     |   1 +
 ds.h            |   2 +
 gPTP.cfg        |   1 +
 linreg.c        |  49 ++++++++------
 makefile        |   2 +-
 ntpshm.c        |   1 +
 phc2sys.c       |   2 +-
 pi.c            |   5 +-
 port.c          |  82 ++++++++++++-----------
 ptp4l.8         |   8 +++
 ptp4l.c         |   1 +
 servo.c         |   3 +-
 servo.h         |   3 +
 servo_private.h |   2 +-
 tsproc.c        | 202 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 tsproc.h        | 110 ++++++++++++++++++++++++++++++
 20 files changed, 489 insertions(+), 177 deletions(-)
 create mode 100644 tsproc.c
 create mode 100644 tsproc.h

-- 
2.1.0


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to