-
Notifications
You must be signed in to change notification settings - Fork 11
GPS
GPS functionality is available when combining a 3G/LTE modem with GPS to your UP based system.
Depending on the board you might need additional components to integrate a 3G/LTE Modem.
This document describes testing receiving of GPS data using the Quectel EC25-E/EG25-G 4G/LTE module
- Connect SIM card with mobile internet or use WiFi connection for the DUT
- Insert Quectel E25-E/EG25-G module on the board
GPS data can be obtained using minicom or python script
This test attempts to activate GNSS (Global Navigation Satellite Systems) engine present on the module and read GPS data using minicom
- DUT powered on
- Minicom installed
- Type
sudo minicom -s
- Go to Serial port setup
- Make the following changes to the setting
Serial Device : /dev/ttyUSB2 Hardware Flow Control: No
- Save setup as dfl and then exit
Check connectivity with
AT
Turn on GNSS with
AT+QGPS=1
- Minicom console returns OK after each command
Receive GPS NMEA data
- Type
sudo minicom -s
- Go to Serial port setup and use this settings
Serial device: /dev/tty/USB1 Hardware Flow Control: No
- Save setup as dfl and exit
- Minicom console returns GPS NMEA data
This test attempts to activate GNSS (Global Navigation Satellite Systems) engine present on the module and read GPS data using python script You can download the python script from here.
- DUT powered on
- Run the python script
sudo python3 gpstest.py
- Python script returns GPS NMEA data
- You can decode the GPRMC and GPGGS NMEA sentences from this link
0.1
- Camillus Teteh
- Hat tip to anyone whose code was used
NOTE: This wiki is the main source of documentation for developers working with (or contributing to) the UP products. If this is your first time hearing about UP, we recommend starting with our main UP website, and our UP community page.