How to get NTP to take the time from my GPS device
I am currently attempting to use a USB GPS device to set the time on a Ubuntu 12.04 LTS machine which is not connected to the internet.
If I run gpsmon or xgps it shows me the time, although it’s only seeing one or two satellites at any one time.
If I run ntpq it shows me .GPS. And .PPS. But neither are selected and delay, offset and jitter are 0.
My ntp.conf contains:
driftfile /bar/lib/ntp/ntp.drift
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery
restrict 127.0.0.1
restrict ::1
server 127.127.28.0 minpoll 4 prefer
fudge 127.127.27.0 refid GPS time1 0.535
server 127.127.28.1 minpoll 4
fudge 127.127.28.1 refid PPS
ubuntu ntp gps ntpd
add a comment |
I am currently attempting to use a USB GPS device to set the time on a Ubuntu 12.04 LTS machine which is not connected to the internet.
If I run gpsmon or xgps it shows me the time, although it’s only seeing one or two satellites at any one time.
If I run ntpq it shows me .GPS. And .PPS. But neither are selected and delay, offset and jitter are 0.
My ntp.conf contains:
driftfile /bar/lib/ntp/ntp.drift
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery
restrict 127.0.0.1
restrict ::1
server 127.127.28.0 minpoll 4 prefer
fudge 127.127.27.0 refid GPS time1 0.535
server 127.127.28.1 minpoll 4
fudge 127.127.28.1 refid PPS
ubuntu ntp gps ntpd
What GPS RX are you using? USB normally doesn't play well withntp
. Unless it specifically says it won't supportPPS
(That's a serial line usually) can you also show us the output fromntpq -pcrv
– user3788685
Feb 7 at 20:36
add a comment |
I am currently attempting to use a USB GPS device to set the time on a Ubuntu 12.04 LTS machine which is not connected to the internet.
If I run gpsmon or xgps it shows me the time, although it’s only seeing one or two satellites at any one time.
If I run ntpq it shows me .GPS. And .PPS. But neither are selected and delay, offset and jitter are 0.
My ntp.conf contains:
driftfile /bar/lib/ntp/ntp.drift
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery
restrict 127.0.0.1
restrict ::1
server 127.127.28.0 minpoll 4 prefer
fudge 127.127.27.0 refid GPS time1 0.535
server 127.127.28.1 minpoll 4
fudge 127.127.28.1 refid PPS
ubuntu ntp gps ntpd
I am currently attempting to use a USB GPS device to set the time on a Ubuntu 12.04 LTS machine which is not connected to the internet.
If I run gpsmon or xgps it shows me the time, although it’s only seeing one or two satellites at any one time.
If I run ntpq it shows me .GPS. And .PPS. But neither are selected and delay, offset and jitter are 0.
My ntp.conf contains:
driftfile /bar/lib/ntp/ntp.drift
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery
restrict 127.0.0.1
restrict ::1
server 127.127.28.0 minpoll 4 prefer
fudge 127.127.27.0 refid GPS time1 0.535
server 127.127.28.1 minpoll 4
fudge 127.127.28.1 refid PPS
ubuntu ntp gps ntpd
ubuntu ntp gps ntpd
asked Jan 29 at 12:30
jaz9090jaz9090
1012
1012
What GPS RX are you using? USB normally doesn't play well withntp
. Unless it specifically says it won't supportPPS
(That's a serial line usually) can you also show us the output fromntpq -pcrv
– user3788685
Feb 7 at 20:36
add a comment |
What GPS RX are you using? USB normally doesn't play well withntp
. Unless it specifically says it won't supportPPS
(That's a serial line usually) can you also show us the output fromntpq -pcrv
– user3788685
Feb 7 at 20:36
What GPS RX are you using? USB normally doesn't play well with
ntp
. Unless it specifically says it won't support PPS
(That's a serial line usually) can you also show us the output from ntpq -pcrv
– user3788685
Feb 7 at 20:36
What GPS RX are you using? USB normally doesn't play well with
ntp
. Unless it specifically says it won't support PPS
(That's a serial line usually) can you also show us the output from ntpq -pcrv
– user3788685
Feb 7 at 20:36
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1399632%2fhow-to-get-ntp-to-take-the-time-from-my-gps-device%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1399632%2fhow-to-get-ntp-to-take-the-time-from-my-gps-device%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What GPS RX are you using? USB normally doesn't play well with
ntp
. Unless it specifically says it won't supportPPS
(That's a serial line usually) can you also show us the output fromntpq -pcrv
– user3788685
Feb 7 at 20:36