gpsd_proto module contains types and functions to connect to
gpsd to get GPS coordinates and satellite
gpsd_proto uses a plain TCP socket to connect to
and writes JSON messages. The main motivation to create this crate
was independence from C libraries, like
libgps (provided by
gpsd) to ease cross compiling.
A example demo application is provided in the
directory. Check the repository for up to date sample code.
gpsd_proto has been tested against
gpsd version 3.17 on macOS
with a GPS mice (Adopt SkyTraQ Venus 8) and the iOS app
Feel free to report any other supported GPS by opening a GitHub issue.
gpsd with a real GPS device:
/usr/local/sbin/gpsd -N -D4 /dev/tty.SLAB_USBtoUART
Or start gpsd with a TCP stream to a remote GPS:
/usr/local/sbin/gpsd -N -D2 tcp://<IP>:<PORT>
Test the connection to
telnet localhost 2947 and send the string: