Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
Installed chrony today (TinyCore 3.8_4, 2.6.33.3), it synchronizes to the "pool" servers but doesn't make use of my attached GPS receiver. The GPS receiver is "ttyACM0", the PPS output goes into "ttyS0".
I also tried gpsd with ntpd and there again, ntpd couldn't see the PPS.
I start chrony with; sudo /usr/local/etc/init.d/chrony start
And then start gpsd with; gpsd -D 5 -N -n /dev/ttyACM0
I've tried two different chrony.conf files and neither one works, see attached.
In both cases, the only PPS related output I can see from gpsd is;
gpsd: PROG PPS Create Thread gpsd_ppsmonitor
gpsd: PROG PPS can not connect chrony socket: /tmp/chrony.ttyACM0.sock
Can anyone tell me what I'm doing wrong here ? (I'm sure it's many things).
I just really hope I don't have to build a new kernel with CONFIG_PPS enabled, in 2.6.33.3, it's not selected by default.
If your PC has a hardware serial port i.e ttyS0 why not switch the receiver to send data using its UART versus USB?
Have you checked the PPS signal using ppscheck to see if the receiver output is good? ppscheck should be included with the gpsd utilities.
ppscheck /dev/ttyS0
gpsd automatically creates the pps0 device that is associated with the serial port on the command line but I am not sure how to switch it to another port or if it is possible.
You might need to rebuild the kernel with PPS support.
Thanks, I slowly clued in to trying that as well, I'm going to try sending the NMEA **and** PPS out the serial port of the EVK-M8T, input to ttyS0 on my PC, and hope that gpsd will pick up everything that way. Not really knowing what I'm doing, I've been trying to replicate what another fellow setup for me sometime ago and he used the USB ports on the receiver and PC for NMEA (ttyACM0) only and the serial ports on the receiver/GPS for PPS.
However, as you suggest, I think I can get both the NMEA and PPS over the serial port, I just need to make up the cable and will try that shortly.
I got the U-Blox setup to output NMEA and PPS over the serial port, made up a new RS232 "straight-thru" cable, cut up the USB cable so the USB port only powers the U-Blox, used the SHM definition in chrony.conf, pointed gpsd at /dev/ttyS0, and voila, chrony is happy ! !, using both the NMEA and PPS info on the serial port !
Last night, chrony was able to sync the time on the Vortex DX3 to generally better than 1 us !, usually between 500 and 800 ns !!
So now I just have to figure out how to get this all going on boot-up, and also tweak some parameters, right now the "offset" for the NMEA time is too small, I think chrony won't use any time source more than 200 ms "off" or something..
But, first thing will be to getting chrony and gpsd fired up on boot-up, and then can do the tweaking after, I'm just very relieved it doesn't look like I will need to rebuild the kernel or anything, thank goodness.
Excellent, I would be interested in see if there was a difference between chrony and ntpd. I could not find any good information except for the Pi on using a separate PPS input.
I am interested since I built a similar setup with a Garmin 18x GPS receiver many years ago but the computer that I used died and so it is not being used at the moment.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.