]> git.ipfire.org Git - thirdparty/nqptp.git/log
thirdparty/nqptp.git
4 years agoUse _any_ follow_up message and accept only those that give a greater clock time...
Mike Brady [Tue, 4 May 2021 08:39:22 +0000 (09:39 +0100)] 
Use _any_ follow_up message and accept only those that give a greater clock time or one that has slowed by up to 1000 ppm or so

4 years agoClang Format
Mike Brady [Mon, 3 May 2021 14:54:29 +0000 (15:54 +0100)] 
Clang Format

4 years agoAllow the clock's time to get suddenly older by any margin, but not to get suddenly...
Mike Brady [Mon, 3 May 2021 14:23:40 +0000 (15:23 +0100)] 
Allow the clock's time to get suddenly older by any margin, but not to get suddenly younger by more than 1000 ppm. This is because the clock time could suddenly increment by the sync interval when a sync is sent. The closer the local time is to when that sync increment occurs, the greater the time difference between local time and clock time. Thus by maximising that time difference, the delay is minimised between when the sync is sent and the true local time at that instant. However, the Delay_Resp message (or the Follow_Up message) must be matched with the Sync message using sequence numbers.

4 years agoMerge branch 'main' of github.com:mikebrady/nqptp into main
Mike Brady [Sun, 2 May 2021 17:25:55 +0000 (18:25 +0100)] 
Merge branch 'main' of github.com:mikebrady/nqptp into main

Forgot doc updates!

4 years agoclang format
Mike Brady [Sun, 2 May 2021 17:25:42 +0000 (18:25 +0100)] 
clang format

4 years agoUpdate README.md
Mike Brady [Sun, 2 May 2021 17:19:08 +0000 (18:19 +0100)] 
Update README.md

4 years agoUpdate README.md
Mike Brady [Sun, 2 May 2021 17:15:54 +0000 (18:15 +0100)] 
Update README.md

4 years agoUpdate README.md
Mike Brady [Sun, 2 May 2021 17:15:00 +0000 (18:15 +0100)] 
Update README.md

4 years agoInclude the IP or the master in the shm -- the user might wish to check that it's...
Mike Brady [Sun, 2 May 2021 13:40:39 +0000 (14:40 +0100)] 
Include the IP or the master in the shm -- the user might wish to check that it's in the timing peer list.

4 years agocheck for mastership whenever a clock entry is garbage collected
Mike Brady [Sat, 1 May 2021 13:27:02 +0000 (14:27 +0100)] 
check for mastership whenever a clock entry is garbage collected

4 years agoBe a bit more careful about updating the mastership when an existing clock becomes...
Mike Brady [Sat, 1 May 2021 09:58:29 +0000 (10:58 +0100)] 
Be a bit more careful about updating the mastership when an existing clock becomes active. It was ocassionally missing when a clock became master.

4 years agoadd Shared Memory Interface version to the -V output.
Mike Brady [Sun, 25 Apr 2021 18:02:21 +0000 (19:02 +0100)] 
add Shared Memory Interface version to the -V output.

4 years agoClang Format
Mike Brady [Sun, 25 Apr 2021 17:39:37 +0000 (18:39 +0100)] 
Clang Format

4 years agoAdd command line arguments -h -v -vv -vvv and -V. Bump version number.
Mike Brady [Sun, 25 Apr 2021 17:37:35 +0000 (18:37 +0100)] 
Add command line arguments -h -v -vv -vvv and -V. Bump version number.

4 years agoGenerate a reasonably understandable status message whenever mastership is recalculated.
Mike Brady [Sat, 24 Apr 2021 08:23:52 +0000 (09:23 +0100)] 
Generate a reasonably understandable status message whenever mastership is recalculated.

4 years agoclang format
Mike Brady [Mon, 19 Apr 2021 20:10:31 +0000 (21:10 +0100)] 
clang format

4 years agoAdd mickey mouse averaging. Seems to work very well.
Mike Brady [Mon, 19 Apr 2021 20:10:09 +0000 (21:10 +0100)] 
Add mickey mouse averaging. Seems to work very well.

4 years agoClang
Mike Brady [Mon, 19 Apr 2021 07:43:53 +0000 (08:43 +0100)] 
Clang

4 years agoUse the Delay Response to check if a Sync has been delayed and remove samples where...
Mike Brady [Mon, 19 Apr 2021 07:43:08 +0000 (08:43 +0100)] 
Use the Delay Response to check if a Sync has been delayed and remove samples where the Delay Resp response is not within 20 ms of the Sync. Stop clamping and guessing where the Sync should have been. Temporarily (?) turn on averaging over the last minute. More meomory and more CPU. Maybe mickey-mouse averaging would actually be better.

4 years agouninitialised variable wanring
Mike Brady [Sun, 18 Apr 2021 11:12:55 +0000 (12:12 +0100)] 
uninitialised variable wanring

4 years agoclang and clean up some debug messages
Mike Brady [Sun, 18 Apr 2021 11:06:38 +0000 (12:06 +0100)] 
clang and clean up some debug messages

4 years agoremove all the public clock information except for the master clock. amalgamate each...
Mike Brady [Sun, 18 Apr 2021 10:43:14 +0000 (11:43 +0100)] 
remove all the public clock information except for the master clock. amalgamate each clock's public and private information

4 years agoremove some no-longer-needed features on th kiss principle
Mike Brady [Sun, 18 Apr 2021 09:31:30 +0000 (10:31 +0100)] 
remove some no-longer-needed features on th kiss principle

4 years agomove the debug level definition
Mike Brady [Sat, 17 Apr 2021 15:46:47 +0000 (16:46 +0100)] 
move the debug level definition

4 years agoforce all timing peer list changes to be resets and not updates. never incorporate...
Mike Brady [Fri, 16 Apr 2021 09:23:04 +0000 (10:23 +0100)] 
force all timing peer list changes to be resets and not updates. never incorporate any adjustments to get to a putative master clock. needs a cleanup.

4 years agochange a few debug messages. update to latest shm interface.
Mike Brady [Wed, 14 Apr 2021 09:37:09 +0000 (10:37 +0100)] 
change a few debug messages. update to latest shm interface.

4 years agonot using new/update stuff any more -- this migrated into SPS.
Mike Brady [Tue, 13 Apr 2021 14:22:33 +0000 (15:22 +0100)] 
not using new/update stuff any more -- this migrated into SPS.

4 years agoquieten a few debug messages
Mike Brady [Sun, 11 Apr 2021 07:43:17 +0000 (08:43 +0100)] 
quieten a few debug messages

4 years agoSelecting best clock, but checking doesn't imp,ement the tiebreaker.
Mike Brady [Sat, 10 Apr 2021 15:30:47 +0000 (16:30 +0100)] 
Selecting best clock, but checking doesn't imp,ement the tiebreaker.

4 years agotry to add compensation for short timing disturbances, clamp the slew rate
Mike Brady [Fri, 9 Apr 2021 19:24:30 +0000 (20:24 +0100)] 
try to add compensation for short timing disturbances, clamp the slew rate

4 years agoMove the Sync hander into the message-handlers, add a function to generate a self...
Mike Brady [Thu, 8 Apr 2021 16:33:19 +0000 (17:33 +0100)] 
Move the Sync hander into the message-handlers, add a function to generate a self clock id

4 years agoworking with timing peer lists, it seems
Mike Brady [Thu, 8 Apr 2021 08:22:53 +0000 (09:22 +0100)] 
working with timing peer lists, it seems

4 years agomove follow-up code to a separate function.
Mike Brady [Wed, 7 Apr 2021 12:02:57 +0000 (13:02 +0100)] 
move follow-up code to a separate function.

4 years agoswitch to using flag bits
Mike Brady [Wed, 7 Apr 2021 11:46:07 +0000 (12:46 +0100)] 
switch to using flag bits

4 years agoreceives timing peer lists and sets flags accordingly.
Mike Brady [Wed, 7 Apr 2021 09:35:45 +0000 (10:35 +0100)] 
receives timing peer lists and sets flags accordingly.

4 years agoClang Format
Mike Brady [Mon, 5 Apr 2021 15:19:44 +0000 (16:19 +0100)] 
Clang Format

4 years agoAdd code to tag clock IPs that belong to the clock itself.
Mike Brady [Mon, 5 Apr 2021 15:17:53 +0000 (16:17 +0100)] 
Add code to tag clock IPs that belong to the clock itself.

4 years agoQuieten a noisy debug message
Mike Brady [Mon, 5 Apr 2021 08:38:50 +0000 (09:38 +0100)] 
Quieten a noisy debug message

4 years agoTry to "Qualify" Announce messages coming in from clock masters. Decode them on debug...
Mike Brady [Sun, 4 Apr 2021 17:56:29 +0000 (18:56 +0100)] 
Try to "Qualify" Announce messages coming in from clock masters. Decode them on debug level 1.

4 years agoMove the port opening stuff to the utilities file and turn it inot a function.
Mike Brady [Sun, 4 Apr 2021 14:33:54 +0000 (15:33 +0100)] 
Move the port opening stuff to the utilities file and turn it inot a function.

4 years agoreorganise to make it a bit easier to get around.
Mike Brady [Sun, 4 Apr 2021 10:44:20 +0000 (11:44 +0100)] 
reorganise to make it a bit easier to get around.

4 years agoturn off debug messages
Mike Brady [Tue, 30 Mar 2021 09:31:12 +0000 (10:31 +0100)] 
turn off debug messages

4 years agodefine and use FIELD_SIZE macro (also found in kernel.h) and use it in place of hard_...
Mike Brady [Tue, 30 Mar 2021 09:26:39 +0000 (10:26 +0100)] 
define and use FIELD_SIZE macro (also found in kernel.h) and use it in place of hard_wired string buffer length

4 years agoMerge branch 'main' of github.com:mikebrady/nqptp into main
Mike Brady [Tue, 30 Mar 2021 09:16:28 +0000 (10:16 +0100)] 
Merge branch 'main' of github.com:mikebrady/nqptp into main
Forgot online documentation update

4 years agoDrastic simplification -- no more averaging, use the same index for shared and privat...
Mike Brady [Tue, 30 Mar 2021 09:16:09 +0000 (10:16 +0100)] 
Drastic simplification -- no more averaging, use the same index for shared and private clock arrays, don't send a Delay_Req, just use the Follow_Up preciseOriginTime.

4 years agoUpdate README.md
Mike Brady [Mon, 29 Mar 2021 20:49:11 +0000 (21:49 +0100)] 
Update README.md

No averaging takes place now.

4 years agoDon't try to print a UDP message it the length is -1, duh.
Mike Brady [Mon, 29 Mar 2021 20:22:15 +0000 (21:22 +0100)] 
Don't try to print a UDP message it the length is -1, duh.

4 years agofix a bug causing nqptp to ignore most response messages, makeing it take longer...
Mike Brady [Mon, 29 Mar 2021 15:37:19 +0000 (16:37 +0100)] 
fix a bug causing nqptp to ignore most response messages, makeing it take longer to find a clock

4 years agoAdd definition of an announce message. debug_print incoming messages
Mike Brady [Mon, 29 Mar 2021 14:36:34 +0000 (15:36 +0100)] 
Add definition of an announce message. debug_print incoming messages

4 years agoUpdate README.md
Mike Brady [Sat, 27 Mar 2021 12:04:23 +0000 (12:04 +0000)] 
Update README.md

4 years agoUpdate README.md
Mike Brady [Fri, 26 Mar 2021 21:35:12 +0000 (21:35 +0000)] 
Update README.md

4 years agoUpdate README.md
Mike Brady [Fri, 26 Mar 2021 20:58:17 +0000 (20:58 +0000)] 
Update README.md

4 years agoUpdate README.md
Mike Brady [Fri, 26 Mar 2021 20:57:00 +0000 (20:57 +0000)] 
Update README.md

4 years agoUpdate README.md
Mike Brady [Fri, 26 Mar 2021 20:54:58 +0000 (20:54 +0000)] 
Update README.md

4 years agoUpdate README.md
Mike Brady [Fri, 26 Mar 2021 12:37:39 +0000 (12:37 +0000)] 
Update README.md

4 years agoUpdate README.md
Mike Brady [Fri, 26 Mar 2021 12:29:34 +0000 (12:29 +0000)] 
Update README.md

4 years agoUpdate README.md
Mike Brady [Fri, 26 Mar 2021 12:26:37 +0000 (12:26 +0000)] 
Update README.md

4 years agoUpdate README.md
Mike Brady [Fri, 26 Mar 2021 12:22:08 +0000 (12:22 +0000)] 
Update README.md

4 years agosmall modifications
Mike Brady [Fri, 26 Mar 2021 09:15:29 +0000 (09:15 +0000)] 
small modifications

4 years agoNot using Delay_Resp information in general. Checking if t4 and t1 are the same,...
Mike Brady [Thu, 25 Mar 2021 13:49:53 +0000 (13:49 +0000)] 
Not using Delay_Resp information in general. Checking if t4 and t1 are the same, that's all.

4 years agoUses epoll, still occasional error 11s, should treat Follow_Up and Delay_Resp as...
Mike Brady [Wed, 24 Mar 2021 17:22:47 +0000 (17:22 +0000)] 
Uses epoll, still occasional error 11s, should treat Follow_Up and Delay_Resp as nearly the same.

4 years agoWorking, but recvmsg returns error 11 on occasion. Try epoll instead of select.
Mike Brady [Wed, 24 Mar 2021 14:02:30 +0000 (14:02 +0000)] 
Working, but recvmsg returns error 11 on occasion. Try epoll instead of select.

4 years agofix a few [unimportant] valgrind warnings.
Mike Brady [Wed, 24 Mar 2021 07:59:18 +0000 (07:59 +0000)] 
fix a few [unimportant] valgrind warnings.

4 years agomove to an array of sources. still problems
Mike Brady [Tue, 23 Mar 2021 19:18:09 +0000 (19:18 +0000)] 
move to an array of sources. still problems

4 years agoReenable garbage collection and set a timeout of one second!
Mike Brady [Tue, 23 Mar 2021 12:58:08 +0000 (12:58 +0000)] 
Reenable garbage collection and set a timeout of one second!

4 years agoDisable garbage collection.
Mike Brady [Tue, 23 Mar 2021 11:20:11 +0000 (11:20 +0000)] 
Disable garbage collection.

4 years agoMake the garbage collection timeout an hour.
Mike Brady [Tue, 23 Mar 2021 11:05:22 +0000 (11:05 +0000)] 
Make the garbage collection timeout an hour.

4 years agorevert mode flags on opening the shared memory
Mike Brady [Mon, 22 Mar 2021 21:27:14 +0000 (21:27 +0000)] 
revert mode flags on opening the shared memory

4 years agodefine a DEBUG_LEVEL and set it to zero
Mike Brady [Mon, 22 Mar 2021 20:56:28 +0000 (20:56 +0000)] 
define a DEBUG_LEVEL and set it to zero

4 years agoOnly create a record when the first Sync is seen. Remove obselete records after about...
Mike Brady [Mon, 22 Mar 2021 20:47:29 +0000 (20:47 +0000)] 
Only create a record when the first Sync is seen. Remove obselete records after about 15 seconds. Tidy up a little.

4 years agoUpdate README.md
Mike Brady [Mon, 22 Mar 2021 17:05:41 +0000 (17:05 +0000)] 
Update README.md

4 years agoUpdate README.md
Mike Brady [Mon, 22 Mar 2021 17:03:57 +0000 (17:03 +0000)] 
Update README.md

4 years agoUpdate README.md
Mike Brady [Mon, 22 Mar 2021 17:03:08 +0000 (17:03 +0000)] 
Update README.md

4 years agoUpdate README.md
Mike Brady [Mon, 22 Mar 2021 16:59:30 +0000 (16:59 +0000)] 
Update README.md

4 years agoUpdate README.md
Mike Brady [Mon, 22 Mar 2021 16:52:04 +0000 (16:52 +0000)] 
Update README.md

4 years agoUpdate README.md
Mike Brady [Mon, 22 Mar 2021 16:50:55 +0000 (16:50 +0000)] 
Update README.md

4 years agoUpdate README.md
Mike Brady [Mon, 22 Mar 2021 16:50:32 +0000 (16:50 +0000)] 
Update README.md

4 years agoUpdate README.md
Mike Brady [Mon, 22 Mar 2021 16:47:21 +0000 (16:47 +0000)] 
Update README.md

4 years agoTidy some stuff up.
Mike Brady [Mon, 22 Mar 2021 16:24:34 +0000 (16:24 +0000)] 
Tidy some stuff up.

4 years agoGeneral cleanup, terminate cleanly on SIGINT and SIGTERM.
Mike Brady [Mon, 22 Mar 2021 14:42:49 +0000 (14:42 +0000)] 
General cleanup, terminate cleanly on SIGINT and SIGTERM.

4 years agoStart using gthe debug messages like Shairport Sync. Start cleaning up on exit.
Mike Brady [Mon, 22 Mar 2021 13:09:57 +0000 (13:09 +0000)] 
Start using gthe debug messages like Shairport Sync. Start cleaning up on exit.

4 years agoUpdate nqptp.service.in
Mike Brady [Sun, 21 Mar 2021 18:24:44 +0000 (18:24 +0000)] 
Update nqptp.service.in

4 years agoGet the installer working and improve the error messages slightly.
Mike Brady [Sun, 21 Mar 2021 18:21:02 +0000 (18:21 +0000)] 
Get the installer working and improve the error messages slightly.

4 years agoAdd an installer. Untested.
Mike Brady [Sun, 21 Mar 2021 14:53:45 +0000 (14:53 +0000)] 
Add an installer. Untested.

4 years agoPrint the distant clock id and its local time as well as other diagnostics.
Mike Brady [Sun, 21 Mar 2021 12:27:40 +0000 (12:27 +0000)] 
Print the distant clock id and its local time as well as other diagnostics.

4 years agoGenerate local clock id correctly. Untested.
Mike Brady [Sun, 21 Mar 2021 10:05:16 +0000 (10:05 +0000)] 
Generate local clock id correctly. Untested.

4 years agoInclude Clock ID in records and public record. garbage collection written but not...
Mike Brady [Sun, 21 Mar 2021 09:46:34 +0000 (09:46 +0000)] 
Include Clock ID in records and public record. garbage collection written but not tested. Generation of clock id needs overhaul

4 years agoAdd code to index each sample so that, e.g. the first few can be discarded. Add...
Mike Brady [Sat, 20 Mar 2021 16:52:32 +0000 (16:52 +0000)] 
Add code to index each sample so that, e.g. the first few can be discarded.  Add code for a nine-point Savitzky–Golay filter, but it doesn't seem useful, so commented out.

4 years agoUpdate README.md
Mike Brady [Sat, 20 Mar 2021 09:15:18 +0000 (09:15 +0000)] 
Update README.md

4 years agoStop using packed structures, increase the limit to 32 clocks.
Mike Brady [Sat, 20 Mar 2021 09:13:52 +0000 (09:13 +0000)] 
Stop using packed structures, increase the limit to 32 clocks.

4 years agoquieten a few debug messages
Mike Brady [Sat, 20 Mar 2021 09:12:00 +0000 (09:12 +0000)] 
quieten a few debug messages

4 years agoUpdate COPYING
Mike Brady [Fri, 19 Mar 2021 09:03:45 +0000 (09:03 +0000)] 
Update COPYING

4 years agoUpdate nqptp-shm-structures.h
Mike Brady [Fri, 19 Mar 2021 09:01:40 +0000 (09:01 +0000)] 
Update nqptp-shm-structures.h

4 years agoFix a bug resetting the samples buffer. Calculate differences each time and store...
Mike Brady [Fri, 19 Mar 2021 08:29:45 +0000 (08:29 +0000)] 
Fix a bug resetting the samples buffer. Calculate differences each time and store them.

4 years agoDon't need a C++ header file just yet.
Mike Brady [Thu, 18 Mar 2021 18:24:19 +0000 (18:24 +0000)] 
Don't need a C++ header file just yet.

4 years agoAdd new standard interface files
Mike Brady [Thu, 18 Mar 2021 18:23:03 +0000 (18:23 +0000)] 
Add new standard interface files

4 years agoSeems to work pretty well. Needs tidying up!
Mike Brady [Wed, 17 Mar 2021 22:39:38 +0000 (22:39 +0000)] 
Seems to work pretty well. Needs tidying up!

4 years agoInitial shm attempt
Mike Brady [Wed, 17 Mar 2021 17:13:21 +0000 (17:13 +0000)] 
Initial shm attempt

4 years agoSeems to work pretty well. No SHM interface yet.
Mike Brady [Wed, 17 Mar 2021 14:28:42 +0000 (14:28 +0000)] 
Seems to work pretty well. No SHM interface yet.

4 years agoTransition to using SO_TIMESTAMPING and revcmsg and sendmsg. Noticed that the discont...
Mike Brady [Tue, 16 Mar 2021 22:17:42 +0000 (22:17 +0000)] 
Transition to using SO_TIMESTAMPING and revcmsg and sendmsg. Noticed that the discontinuities when not playing seem real.