Transclusion: IOT-GATE-iMX8: GPS
Revision as of 08:06, 14 September 2020 by imported>Uri.mashiach (Created page with "Optional GPS interface is implemented with the cellular modem module.</br> The [https://manpages.debian.org/jessie/gpsd-clients/cgps.1.en.html cgps] client can be used to disp...")
Optional GPS interface is implemented with the cellular modem module.
The cgps client can be used to display the GPS information.
The cgps client utility depends on the gpsd daemon (starts automatically).
- Connect to the modem configuration port with Minicom:
root@iot-gate-imx8:~# minicom -D /dev/ttyUSB3
- Enable the GPS with the following commands:
AT+CGPS=1,1
- Verify that the OK respond is generated.
- Exit minicom (CTL-a, x).
- Start the cgps client to display GPS information.
The synchronization process might take a few minutes.
root@iot-gate-imx8:~# cgps ┌───────────────────────────────────────────┐┌─────────────────────────────────┐ │ Time: 2020-05-04T14:13:30.000Z ││PRN: Elev: Azim: SNR: Used: │ │ Latitude: 32.65985123 N ││ 71 29 123 22 Y │ │ Longitude: 35.10027205 E ││ 85 27 047 22 Y │ │ Altitude: 102.700 m ││ │ │ Speed: 0.00 kph ││ │ │ Heading: 128.7 deg (true) ││ │ │ Climb: 6.00 m/min ││ │ │ Status: 3D FIX (53 secs) ││ │ │ Longitude Err: n/a ││ │ │ Latitude Err: n/a ││ │ │ Altitude Err: +/- 18 m ││ │ │ Course Err: n/a ││ │ │ Speed Err: n/a ││ │ │ Time offset: -3.682 ││ │ │ Grid Square: KM72np ││ │ └───────────────────────────────────────────┘└─────────────────────────────────┘