TS-7180 GPS: Difference between revisions
From embeddedTS Manuals
No edit summary |
No edit summary |
||
Line 31: | Line 31: | ||
This allows clients from command line, or from most programming languages to interface with the GPS through gpsd: | This allows clients from command line, or from most programming languages to interface with the GPS through gpsd: | ||
* [https://gpsd.gitlab.io/gpsd/client-howto.html gpsd writing clients] | * [https://gpsd.gitlab.io/gpsd/client-howto.html gpsd writing clients] | ||
For testing run "gpsmon" to see lock, coordinates, and time information. |
Revision as of 15:39, 23 June 2021
The TS-7180 has an optional on-board Telit SL869 GPS receiver. An SMA female connector is provided for the connection of an antenna. This is accessible at /dev/ttyS7 where the GPS provides NMEA strings.
The GPS power is controllable through a GPIO. For example:
gpioset 5 19=1 # turn on GPS
gpioset 5 19=0 # turn off GPS
By default the GPS module is powered on.
A typical way of interfacing with the GPS is using gpsd. For example, under Debian:
apt install gpsd gpsd-clients -y
Then edit /etc/default/gpsd and change these two options:
# Devices gpsd should collect to at boot time. # They need to be read/writeable, either by user gpsd or the group dialout. DEVICES="/dev/ttymxc7" # Other options you want to pass to gpsd GPSD_OPTIONS="-b -n"
Then restart gpsd:
service gpsd restart
This allows clients from command line, or from most programming languages to interface with the GPS through gpsd:
For testing run "gpsmon" to see lock, coordinates, and time information.