LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-27-2021, 08:15 AM   #1
MTCAT
Member
 
Registered: Jan 2021
Posts: 32

Rep: Reputation: Disabled
PPS Troubles


Hi everyone,

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.

Thanks,

David
 
Old 03-28-2021, 02:52 AM   #2
Gad
Member
 
Registered: May 2013
Distribution: FreeBSD
Posts: 566

Rep: Reputation: 114Reputation: 114
What is the make and model of the GPS receiver?
 
Old 03-28-2021, 11:33 AM   #3
MTCAT
Member
 
Registered: Jan 2021
Posts: 32

Original Poster
Rep: Reputation: Disabled
Hi Gad, it's a U-Blox EVK-M8T
 
Old 03-28-2021, 08:47 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Time is complicated...

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.

https://gpsd.gitlab.io/gpsd/gpsd-tim...#_introduction
 
Old 03-29-2021, 12:04 PM   #5
MTCAT
Member
 
Registered: Jan 2021
Posts: 32

Original Poster
Rep: Reputation: Disabled
Hi michaelk,

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.

Thanks for the help.

David
 
Old 04-01-2021, 07:49 AM   #6
MTCAT
Member
 
Registered: Jan 2021
Posts: 32

Original Poster
Rep: Reputation: Disabled
Hi michaelk,

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.

Thanks for the help,

David
 
Old 04-01-2021, 08:03 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
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.

Last edited by michaelk; 04-01-2021 at 08:06 AM.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PPS TOOLS with PPS via DCD RS232 with a sure GPS BOARD - PPSTEST problem ofrappier Linux - Software 0 01-09-2013 10:44 AM
URGENT- NTP not using PPS murgi Linux - Software 1 10-21-2007 06:53 AM
URGENT -NTP not using PPS murgi Linux - Server 1 10-21-2007 05:09 AM
Microsecond Precision From Garmin 18 LVC GPS unit with PPS Signal And NTP AwesomeMachine LinuxAnswers Discussion 1 08-16-2007 07:32 AM
OpenOffice Impress and PPS the_kid Linux - Software 0 04-26-2007 12:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:01 AM.

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