TS-7180 GPS: Difference between revisions

From embeddedTS Manuals
No edit summary
No edit summary
Line 1: Line 1:
The TS-7180 has an optional on-board [http://www.telit.com/gnss/sl869/ Telit SL869] GPS receiver. An SMA female connector is provided for the connection of an antenna.
[[File:TS-7180-GPS-Antenna.png|300px]]
 
The TS-7180 has an optional on-board [http://www.telit.com/gnss/sl869/ 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.


[[File:TS-7180-GPS-Antenna.png|300px]]
The GPS power is controllable through a GPIO.  For example:
<source lang=bash>
gpioset 5 19=1 # turn on GPS
gpioset 5 19=0 # turn off GPS
</source>
By default the GPS module is powered on.


Before it can be used, power to the GPS receiver must be enabled by setting GPIO #19 low, as shown below:
A typical way of interfacing with the GPS is using gpsd.  For example, under Debian:
<source lang=bash>
<source lang=bash>
tshwctl -a 19 -r -w 1
apt install gpsd gpsd-clients -y
</source>
</source>
Then edit /etc/default/gpsd and change these two options:
<pre>
# Devices gpsd should collect to at boot time.
# They need to be read/writeable, either by user gpsd or the group dialout.
DEVICES="/dev/ttyS7"
# Other options you want to pass to gpsd
GPSD_OPTIONS="-b -n"
</pre>


The GPS receiver may then be accessed via the /dev/ttymxc7 uart.
Then restart gpsd:
<source lang=bash>
service gpsd restart
</source>


{{Note|On REV A/B boards the GPS is always enabled.  Boards ordered after March 5th, 2019 will include this modification, but if your unit has Q29 populated and you would like to use GPS, submit an [https://www.embeddedarm.com/support/rma.php RMA].  REV C will include a fix to allow GPS to be powered on/off without modification.}}
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]

Revision as of 09:42, 16 June 2021

TS-7180-GPS-Antenna.png

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/ttyS7"

# 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: