12 063
правки
(Новая страница: «Edit /etc/ntp.conf») |
(Новая страница: «stratum=0, refid=GPSP, flags=1 Then configure NTP as we need to and so on.») |
||
(не показано 5 промежуточных версий этого же участника) | |||
Строка 35: | Строка 35: | ||
fudge 127.127.20.0 flag1 1 flag2 0 time2 1.0 refid GPSP | fudge 127.127.20.0 flag1 1 flag2 0 time2 1.0 refid GPSP | ||
time2 1.0 | time2 1.0 is a time offset from GPS TK GPS PPP and asynchronous PPP and if there is no offset of the NTP tranchet driver 20 – selected experimentally by the method below (but I think that all firebord 5 will be 1.0 (for PI2 I got 0.7)) https://support.ntp.org/bin/view/Support/ConfiguringNMEARefclocks | ||
if you want a good estimation for fudge time2 (perhaps because PPS is not an option for you) you could use the following procedure: | if you want a good estimation for fudge time2 (perhaps because PPS is not an option for you) you could use the following procedure: | ||
Строка 46: | Строка 46: | ||
Reboot and see what our aliases are | |||
root@wirenboard:~# ls /dev/gps* | root@wirenboard:~# ls /dev/gps* | ||
/dev/gps0 /dev/gpspps0 | /dev/gps0 /dev/gpspps0 | ||
Next, wait for 10 minutes and ntpq -nc peer -c as -c rl | |||
The letter o at 127.127.20.0 means that the last sync with PPP (http://citrin.ru/net:ntpq) | |||
root@wirenboard:~# ntpq -nc peer -c as -c rl | root@wirenboard:~# ntpq -nc peer -c as -c rl | ||
Строка 102: | Строка 103: | ||
clk_jitter=0.008, clk_wander=0.000 | clk_jitter=0.008, clk_wander=0.000 | ||
This is to view mistakes and that gives GPS | |||
root@wirenboard:~# ntpq -c clockvar | root@wirenboard:~# ntpq -c clockvar | ||
Строка 117: | Строка 118: | ||
Then configure NTP as we need to and so on. |
правки