Skip to content

Conversation

@sjcjonker
Copy link
Contributor

Please find some instructions to use the simpleRTK2B as a source for ubxtool and for gpsd/chrony as stratum 1 source. Although I'm not sure whether there is a desire to gather this in the code repo or elsewhere I thought this might be a good way to submit it anyway.

It's separate in a contrib dir. Feel free to reject etc.

@sjcjonker
Copy link
Contributor Author

Added some more to the contrib dir:

  • a nagios check to check for the last checkin of your observer
  • a small README.md in the contrib dir

Again feel free to move to somewhere else, reject or ..

@akhepcat
Copy link
Contributor

akhepcat commented Mar 4, 2020

Followed this tutorial.
@sjcjonker - can you add a note/reminder to use the gpsd 'ubxtool' utility to set the correct tty speed for the ubx port so that it matches the speed of the serial tty? Otherwise the user may see garbage, or nothing.

I'd also recommend setting the speed > 38,400b in order to ensure timely message delivery and less dropped data.

Otherwise, the how-to worked great.

Thanks!

@sjcjonker
Copy link
Contributor Author

sjcjonker commented Mar 5, 2020 via email

@akhepcat
Copy link
Contributor

akhepcat commented Mar 5, 2020

Ah, right; gpsd/ubxtool is currently not distributed with most debian systems; however it will be, starting with ubuntu/focal and debian/bullseye. it's definitely in the source, though.

might just note it as "optional, fine tuning"

Added tweak to change baudrate of the uart as suggested by akhepcat
@sjcjonker
Copy link
Contributor Author

sjcjonker commented Mar 7, 2020 via email

@akhepcat
Copy link
Contributor

akhepcat commented Mar 7, 2020

That's a brilliant add, and matches up well with my experience. That's the kind of little nudge that can make a project turn-up go super-quick,

Thanks for the indulgence!

@kpfleming
Copy link

I've just used this guide to setup my system (waiting for gpsd to select the proper baud rate...). A couple of notes:

  • The cgps tool is in the gpsd-clients package, so that will need to be installed in order to use it for debugging.

  • By default /dev/pps0 is only readable by root; when gpsd is used to read it that is fine, since it starts up as root and opens the device, but chrony does not start as root, so cannot open the device. I added a udev rule to set the permissions on /dev/pps0 to 0644.

@kpfleming
Copy link

Also, the 'baud rate' problem (where gpsd doesn't detect the baud rate properly) can be solved by dropping a file at /etc/systemd/system/gpsd.service.d/override.conf with the following contents:

[Service]
ExecStartPre=/usr/bin/stty -F /dev/ttyAMA0 speed 115200

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants