LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-02-2008, 01:19 PM   #1
sebash00
LQ Newbie
 
Registered: Apr 2008
Posts: 4

Rep: Reputation: 0
NTP server not sync


Good evening,

This is my first post in this forum and as you will see I’m not really experience working with Linux.

My problem is about setting up a NTP server with my own GPS receiver with RH Linux 2.6.9-55EL. I've used ntp package: ntp-4.2.0.a.20040617-6.e14

I’ve set up my receiver for outputting GGA strings at 4800 (tried as well 9600 bps), modified ntp.conf (127.127.0.2) and created link /dev/gps2 (pointing to ttyS0).

I can see that I have a sync problem with my server. I check var/log/messages, ntpdate –u 127.127.0.2 and can see message “no server suitable for sync found”.

What surprise me is that typing ntpq –p I can see my NMEA (2) but with jitter value of 4000 (meaning the sync problem). I can see data coming trough my serial port and when typing ntpq –p I can see GGA data coming in and peer 127.0.0.1--->127.127.20.2 created.

Running ntptrace –n gets 127.0.0.1 reply

I have tried different gps receivers, set them to output RMC and GLL strings @ 4800 and 9600 bps (modifying ntp.cong and dev links) and still same problem.

It could be something simple but I can’t see it. Maybe something related with permissions?

Any suggestion?

Thanks

Seb
 
Old 04-02-2008, 04:04 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Make sure that your NMEA messages i.e. GPRMC are set to transmit once per second or if your receiver can not time sync the message output then this could be your problem. Also make sure if your not using PPS that it is disabled in the configuration file.

I am assuming that your just using NMEA messages which by themselves do not provide accurate time. If you want millisecond accuracy you will need a receiver that has a 1 Pulse Per Second (PPS) output. Consult your GPS manual but I would generalize that most average priced consumer receivers do not have this capability.

Obviously your actual accuracy is limited by the precision of the timecode, the latencies of the serial interface and the operating system.

BTW what is the make/model of your GPS receivers. And welcome to LinuxQuestions.

Last edited by michaelk; 04-02-2008 at 04:18 PM.
 
Old 04-03-2008, 02:24 AM   #3
sebash00
LQ Newbie
 
Registered: Apr 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Michael,

My GPS receiver supports PPS output but I would like to make it work first with NMEA GGA.

What do you mean about disable pps in the configuration file? Which of the configuration files? Sorry because for sure it is an obvious answer...

Thanks
 
Old 04-03-2008, 06:55 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Maybe not. Ok it appears that the PPS is disabled by default. I think the key is knowing the update rate of the messages.
http://www.cis.udel.edu/~mills/ntp/h.../driver20.html
 
Old 04-03-2008, 08:48 AM   #5
sebash00
LQ Newbie
 
Registered: Apr 2008
Posts: 4

Original Poster
Rep: Reputation: 0
I've been working at 4800 & 9600 bps with that kind of NMEA strings (GLL, GGA, RMC) and still same problem.

I am thinking about something basic I forgot during installation of RH.
 
Old 04-03-2008, 09:45 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
What is the make/model of your receiver?
What I mean by update rate is the message string must at transmitted from the receiver at a fixed interval of once per second which is independent of baud rate. I could be on the wrong track and not a ntp guru by any means.
 
Old 04-04-2008, 01:40 AM   #7
sebash00
LQ Newbie
 
Registered: Apr 2008
Posts: 4

Original Poster
Rep: Reputation: 0
I am using a Trimble.

The update rate is set to 1 second for NMEA and TSIP. I can see that data it's been recieved on my ntp server every second.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NTP sync noir911 Linux - Server 1 03-29-2008 06:50 PM
NTP sync up time sidra Linux - Networking 1 09-27-2007 09:07 PM
NTP sync problem. makkays Linux - Networking 4 05-02-2007 04:20 PM
NTP Sync? carlosinfl Linux - Networking 12 04-13-2006 10:33 AM
ntp time sync eyewittness Linux - Networking 2 08-11-2004 09:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration