Hi all,
You need to solder a plug to the device, found here:
https://www.lammertbies.nl/comm/info/gps-time
Once and for all, as good guide how to configure the software for use with the 18x Garmin 1Hz or 5Hz RS-232 receiver.
1: Install the module ‘pps_ldisc’ in Debian/Ubuntu under /etc/modules-load.d/xxxxxx.conf I assume you know how to do that.
Check if the module is loaded after reboot.
If it’s working, you should see under /dev pps0 pps1 pps2 or whatever.
Now check with ‘ppsfind --help’ where it’s connected too. Typical when com1 is used it should be /ttyS0 and shows something like this:
pps0: name=ptp0 path=
pps1: name=ptp1 path=
pps2: name=serial0 path=/dev/ttyS0
So you can see it’s there, now run this and you should get timestamping from pps:
(beware, PPS can take upto 5 minutes after the GPS is started!!)
ppswatch /dev/pps2
trying PPS source "/dev/pps2"
found PPS source "/dev/pps2"
timestamp: 1710171283, sequence: 724, offset: 299981447
timestamp: 1710171283, sequence: 724, offset: 299981447
timestamp: 1710171284, sequence: 725, offset: -499998101
timestamp: 1710171284, sequence: 725, offset: -499998101
Ok now you know the GPS is working as it’s pulsating.
2: Now you need to know the speed of the GPS, it used to be 4800baud by default, but it seems they have changed this with the latest firmware.
There is no good way to find the speed, trust me I tried all.
To my knowledge today it’s 18x 9600baud and the 5Hz version 19200
So set this in your /etc/default/gpsd
DEVICES="/dev/ttyS0 /dev/pps2"
# Other options you want to pass to gpsd
GPSD_OPTIONS="-n -b -s 19200"
# Automatically hot add/remove USB GPS devices via gpsdctl
USBAUTO="false"
Restart GPSD and run CGPS or GPSMON, they should give you time and PPS info and you should see sat-info lines scrolling. If it doesn’t change the speed and restart GPSD until it does.
3: We need to configure Chrony to access the device. That is pretty simple:
18x 1Hz - I prefer SHM and PPS adjust offset to your own needs all the rest should be ok, the offset can be seen after 10 minutes with ‘chronyc sourcestats’ :
refclock SHM 0 refid GPS poll 4 precision 1e-3 offset 0.071 delay 0.2
refclock PPS /dev/pps2 lock GPS refid PPS poll 2 precision 1e-7 prefer
18x 5Hz:
refclock SHM 0 refid GPS precision 1e-3 poll 4 offset 0.122 delay 0.2
refclock PPS /dev/pps2 lock GPS refid PPS poll 1 precision 1e-9 rate 5 width 0.1 maxlockage 32 prefer
That is it folks!!! Happy time-sharing
The problem is most people don’t specify the baudrate-speed and often the GPS isn’t detected because of that.
At best you start with 18x at 9600bd and 18x-5Hz at 19200bd, good chance it works out of the box.
If all of this doesn’t work, check if the firmware is at the latest version, 4.50 is the latest at the time of writing.
Bas.
Ps. feel free to comment if you like.