Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tools:time [2022/08/22 13:38] – [PTP] darron | tools:time [2024/07/10 12:12] (current) – [Resources] darron | ||
---|---|---|---|
Line 151: | Line 151: | ||
</ | </ | ||
+ | NB ntpq and ntptime are part of [[tools: | ||
+ | |||
+ | |||
===PPS=== | ===PPS=== | ||
Line 227: | Line 230: | ||
__systemd__ | __systemd__ | ||
- | systemd hijacks the GPSD socket so you will need to try a few things | + | systemd hijacks the GPSD socket |
to resolve this. | to resolve this. | ||
Line 448: | Line 451: | ||
< | < | ||
apt install ntp ntpdate | apt install ntp ntpdate | ||
+ | </ | ||
+ | |||
+ | < | ||
/ | / | ||
update-rc.d ntp disable | update-rc.d ntp disable | ||
</ | </ | ||
- | ==Config== | + | __Bookworm__ |
+ | |||
+ | < | ||
+ | / | ||
+ | update-rc.d ntpsec disable | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | systemctl stop ntpd | ||
+ | systemctl disable ntpd | ||
+ | systemctl mask ntpd | ||
+ | </ | ||
+ | |||
+ | ==Master config== | ||
< | < | ||
Line 478: | Line 497: | ||
#restrict 192.168.0.0 mask 255.255.255.0 notrust | #restrict 192.168.0.0 mask 255.255.255.0 notrust | ||
- | #broadcast 192.168.0.255 | + | broadcast 192.168.0.255 |
- | #disable auth | + | disable auth |
- | # | + | |
# https:// | # https:// | ||
Line 506: | Line 524: | ||
server 127.127.28.2 | server 127.127.28.2 | ||
fudge 127.127.28.2 flag1 1 refid PTP | fudge 127.127.28.2 flag1 1 refid PTP | ||
+ | </ | ||
+ | |||
+ | ==Slave config== | ||
+ | |||
+ | < | ||
+ | leapfile / | ||
+ | |||
+ | statsdir / | ||
+ | statistics loopstats peerstats clockstats rawstats | ||
+ | filegen loopstats | ||
+ | filegen peerstats | ||
+ | filegen clockstats file clockstats type day enable | ||
+ | filegen rawstats | ||
+ | |||
+ | #server ntp.example.com | ||
+ | broadcastclient | ||
+ | disable auth | ||
</ | </ | ||
Line 550: | Line 585: | ||
option is to find other sample devices to test and prefer. | option is to find other sample devices to test and prefer. | ||
+ | The first character of each peer line above is called the ntp tally code. | ||
+ | < | ||
+ | Code Message | ||
+ | 0 | ||
+ | 1 | ||
+ | 2 | ||
+ | 3 | ||
+ | 4 | ||
+ | 5 | ||
+ | 6 | ||
+ | 7 | ||
+ | </ | ||
+ | |||
+ | ==Debug== | ||
+ | |||
+ | < | ||
+ | apt install tcpdump && rehash | ||
+ | tcpdump -ni wlan0 port 123 and udp | ||
+ | </ | ||
===PTP=== | ===PTP=== | ||
Line 648: | Line 702: | ||
< | < | ||
apt install linuxptp | apt install linuxptp | ||
+ | systemctl stop timemaster | ||
+ | systemctl disable timemaster | ||
+ | systemctl mask timemaster | ||
</ | </ | ||
- | Necessary hardware is not available for further testing at this time. | + | More later... |
===Resources=== | ===Resources=== | ||
- | [[https:// | + | {{downloads:QUECTEL:L80-brochure.pdf|L80 GPS overview}} |
- | [[https:// | + | {{downloads:QUECTEL:L80-hardware.pdf|L80 GPS hardware}} |
- | [[https:// | + | {{downloads:QUECTEL:L80-protocol.pdf|L80 GPS protocol}} |
[[https:// | [[https:// | ||
+ | |||
+ | [[http:// |