Skip to content

gps

This module can be used to obtain GPS coordinates from any receiver which exposes a serial interface.

Start acquiring from the GPS hardware.

Stop acquiring from the GPS hardware.

Show the last coordinates returned by the GPS hardware.

Manually set GPS location.

ParameterDefaultDescription
gps.baudrate19200Baud rate of the GPS serial device.
gps.device/dev/ttyUSB0Serial device of the GPS hardware.

Turn on GPS, wait for 5 seconds and then show the current coordinates:

Terminal window
gps on; sleep 5; gps.show