Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.