]> git.ipfire.org Git - thirdparty/nqptp.git/commit
Add version string to initial debug message
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Tue, 13 Dec 2022 09:07:02 +0000 (09:07 +0000)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Tue, 13 Dec 2022 09:07:02 +0000 (09:07 +0000)
commitfb9928f71aa94365b8d3dd4e95f8a20773be2f75
treec0b78c04aaee65d7810954d1a3fb50f213924059
parent3cd2b3e3cac90ef239a358574c5add73dbc15525
Add version string to initial debug message
Work out when the clock can be relied upon not to go to sleep, i.e. is "active". This is when SPS is playing (B) or paused (P) and for brief periods after the clock is selected (T) and after play ends (E).
SPS signals Play/Pause/End/Timer Select/Timer Release with B/P/E/T messages -- B for "Begin". "T <ip>" means select the clock at that address. "T" means release the clock.
Reset clock smoothing when the clock goes "active" but not at any other time.
Clamp reductions in the offset calculated as a uint64_t remote-time-now_ns - local-time-now_ns -- and which it is assumed are due to delays in the network when the clock is "active" -- to 2.5 mS.
Turn off clock updates when the clock is not "active" -- i.e. when SPS is not paying or paused.
Remove some redundant features and code.
nqptp-clock-sources.c
nqptp-clock-sources.h
nqptp-message-handlers.c
nqptp-ptp-definitions.h
nqptp-utilities.c
nqptp.c