]>
git.ipfire.org Git - thirdparty/nqptp.git/log
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!
Mike Brady [Sun, 2 May 2021 17:25:42 +0000 (18:25 +0100)]
clang format
Mike Brady [Sun, 2 May 2021 17:19:08 +0000 (18:19 +0100)]
Update README.md
Mike Brady [Sun, 2 May 2021 17:15:54 +0000 (18:15 +0100)]
Update README.md
Mike Brady [Sun, 2 May 2021 17:15:00 +0000 (18:15 +0100)]
Update README.md
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.
Mike Brady [Sat, 1 May 2021 13:27:02 +0000 (14:27 +0100)]
check for mastership whenever a clock entry is garbage collected
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.
Mike Brady [Sun, 25 Apr 2021 18:02:21 +0000 (19:02 +0100)]
add Shared Memory Interface version to the -V output.
Mike Brady [Sun, 25 Apr 2021 17:39:37 +0000 (18:39 +0100)]
Clang Format
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.
Mike Brady [Sat, 24 Apr 2021 08:23:52 +0000 (09:23 +0100)]
Generate a reasonably understandable status message whenever mastership is recalculated.
Mike Brady [Mon, 19 Apr 2021 20:10:31 +0000 (21:10 +0100)]
clang format
Mike Brady [Mon, 19 Apr 2021 20:10:09 +0000 (21:10 +0100)]
Add mickey mouse averaging. Seems to work very well.
Mike Brady [Mon, 19 Apr 2021 07:43:53 +0000 (08:43 +0100)]
Clang
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.
Mike Brady [Sun, 18 Apr 2021 11:12:55 +0000 (12:12 +0100)]
uninitialised variable wanring
Mike Brady [Sun, 18 Apr 2021 11:06:38 +0000 (12:06 +0100)]
clang and clean up some debug messages
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
Mike Brady [Sun, 18 Apr 2021 09:31:30 +0000 (10:31 +0100)]
remove some no-longer-needed features on th kiss principle
Mike Brady [Sat, 17 Apr 2021 15:46:47 +0000 (16:46 +0100)]
move the debug level definition
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.
Mike Brady [Wed, 14 Apr 2021 09:37:09 +0000 (10:37 +0100)]
change a few debug messages. update to latest shm interface.
Mike Brady [Tue, 13 Apr 2021 14:22:33 +0000 (15:22 +0100)]
not using new/update stuff any more -- this migrated into SPS.
Mike Brady [Sun, 11 Apr 2021 07:43:17 +0000 (08:43 +0100)]
quieten a few debug messages
Mike Brady [Sat, 10 Apr 2021 15:30:47 +0000 (16:30 +0100)]
Selecting best clock, but checking doesn't imp,ement the tiebreaker.
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
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
Mike Brady [Thu, 8 Apr 2021 08:22:53 +0000 (09:22 +0100)]
working with timing peer lists, it seems
Mike Brady [Wed, 7 Apr 2021 12:02:57 +0000 (13:02 +0100)]
move follow-up code to a separate function.
Mike Brady [Wed, 7 Apr 2021 11:46:07 +0000 (12:46 +0100)]
switch to using flag bits
Mike Brady [Wed, 7 Apr 2021 09:35:45 +0000 (10:35 +0100)]
receives timing peer lists and sets flags accordingly.
Mike Brady [Mon, 5 Apr 2021 15:19:44 +0000 (16:19 +0100)]
Clang Format
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.
Mike Brady [Mon, 5 Apr 2021 08:38:50 +0000 (09:38 +0100)]
Quieten a noisy debug message
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.
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.
Mike Brady [Sun, 4 Apr 2021 10:44:20 +0000 (11:44 +0100)]
reorganise to make it a bit easier to get around.
Mike Brady [Tue, 30 Mar 2021 09:31:12 +0000 (10:31 +0100)]
turn off debug messages
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
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
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.
Mike Brady [Mon, 29 Mar 2021 20:49:11 +0000 (21:49 +0100)]
Update README.md
No averaging takes place now.
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.
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
Mike Brady [Mon, 29 Mar 2021 14:36:34 +0000 (15:36 +0100)]
Add definition of an announce message. debug_print incoming messages
Mike Brady [Sat, 27 Mar 2021 12:04:23 +0000 (12:04 +0000)]
Update README.md
Mike Brady [Fri, 26 Mar 2021 21:35:12 +0000 (21:35 +0000)]
Update README.md
Mike Brady [Fri, 26 Mar 2021 20:58:17 +0000 (20:58 +0000)]
Update README.md
Mike Brady [Fri, 26 Mar 2021 20:57:00 +0000 (20:57 +0000)]
Update README.md
Mike Brady [Fri, 26 Mar 2021 20:54:58 +0000 (20:54 +0000)]
Update README.md
Mike Brady [Fri, 26 Mar 2021 12:37:39 +0000 (12:37 +0000)]
Update README.md
Mike Brady [Fri, 26 Mar 2021 12:29:34 +0000 (12:29 +0000)]
Update README.md
Mike Brady [Fri, 26 Mar 2021 12:26:37 +0000 (12:26 +0000)]
Update README.md
Mike Brady [Fri, 26 Mar 2021 12:22:08 +0000 (12:22 +0000)]
Update README.md
Mike Brady [Fri, 26 Mar 2021 09:15:29 +0000 (09:15 +0000)]
small modifications
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.
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.
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.
Mike Brady [Wed, 24 Mar 2021 07:59:18 +0000 (07:59 +0000)]
fix a few [unimportant] valgrind warnings.
Mike Brady [Tue, 23 Mar 2021 19:18:09 +0000 (19:18 +0000)]
move to an array of sources. still problems
Mike Brady [Tue, 23 Mar 2021 12:58:08 +0000 (12:58 +0000)]
Reenable garbage collection and set a timeout of one second!
Mike Brady [Tue, 23 Mar 2021 11:20:11 +0000 (11:20 +0000)]
Disable garbage collection.
Mike Brady [Tue, 23 Mar 2021 11:05:22 +0000 (11:05 +0000)]
Make the garbage collection timeout an hour.
Mike Brady [Mon, 22 Mar 2021 21:27:14 +0000 (21:27 +0000)]
revert mode flags on opening the shared memory
Mike Brady [Mon, 22 Mar 2021 20:56:28 +0000 (20:56 +0000)]
define a DEBUG_LEVEL and set it to zero
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.
Mike Brady [Mon, 22 Mar 2021 17:05:41 +0000 (17:05 +0000)]
Update README.md
Mike Brady [Mon, 22 Mar 2021 17:03:57 +0000 (17:03 +0000)]
Update README.md
Mike Brady [Mon, 22 Mar 2021 17:03:08 +0000 (17:03 +0000)]
Update README.md
Mike Brady [Mon, 22 Mar 2021 16:59:30 +0000 (16:59 +0000)]
Update README.md
Mike Brady [Mon, 22 Mar 2021 16:52:04 +0000 (16:52 +0000)]
Update README.md
Mike Brady [Mon, 22 Mar 2021 16:50:55 +0000 (16:50 +0000)]
Update README.md
Mike Brady [Mon, 22 Mar 2021 16:50:32 +0000 (16:50 +0000)]
Update README.md
Mike Brady [Mon, 22 Mar 2021 16:47:21 +0000 (16:47 +0000)]
Update README.md
Mike Brady [Mon, 22 Mar 2021 16:24:34 +0000 (16:24 +0000)]
Tidy some stuff up.
Mike Brady [Mon, 22 Mar 2021 14:42:49 +0000 (14:42 +0000)]
General cleanup, terminate cleanly on SIGINT and SIGTERM.
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.
Mike Brady [Sun, 21 Mar 2021 18:24:44 +0000 (18:24 +0000)]
Update nqptp.service.in
Mike Brady [Sun, 21 Mar 2021 18:21:02 +0000 (18:21 +0000)]
Get the installer working and improve the error messages slightly.
Mike Brady [Sun, 21 Mar 2021 14:53:45 +0000 (14:53 +0000)]
Add an installer. Untested.
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.
Mike Brady [Sun, 21 Mar 2021 10:05:16 +0000 (10:05 +0000)]
Generate local clock id correctly. Untested.
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
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.
Mike Brady [Sat, 20 Mar 2021 09:15:18 +0000 (09:15 +0000)]
Update README.md
Mike Brady [Sat, 20 Mar 2021 09:13:52 +0000 (09:13 +0000)]
Stop using packed structures, increase the limit to 32 clocks.
Mike Brady [Sat, 20 Mar 2021 09:12:00 +0000 (09:12 +0000)]
quieten a few debug messages
Mike Brady [Fri, 19 Mar 2021 09:03:45 +0000 (09:03 +0000)]
Update COPYING
Mike Brady [Fri, 19 Mar 2021 09:01:40 +0000 (09:01 +0000)]
Update nqptp-shm-structures.h
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.
Mike Brady [Thu, 18 Mar 2021 18:24:19 +0000 (18:24 +0000)]
Don't need a C++ header file just yet.
Mike Brady [Thu, 18 Mar 2021 18:23:03 +0000 (18:23 +0000)]
Add new standard interface files
Mike Brady [Wed, 17 Mar 2021 22:39:38 +0000 (22:39 +0000)]
Seems to work pretty well. Needs tidying up!
Mike Brady [Wed, 17 Mar 2021 17:13:21 +0000 (17:13 +0000)]
Initial shm attempt
Mike Brady [Wed, 17 Mar 2021 14:28:42 +0000 (14:28 +0000)]
Seems to work pretty well. No SHM interface yet.
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.
Mike Brady [Tue, 16 Mar 2021 12:55:19 +0000 (12:55 +0000)]
Working with recvmsg and SO_TIMESTAMPNS
Mike Brady [Tue, 16 Mar 2021 08:33:32 +0000 (08:33 +0000)]
Works reasonably well. Two filters -- least square line of best fit and average. Neither is great. Not using recvmsg. Signal sequence checking is crude.
Mike Brady [Mon, 15 Mar 2021 14:06:29 +0000 (14:06 +0000)]
Working niecely with SIOCGSTAMP reception timing.