GPS

From UpWiki
Jump to: navigation, search

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.

Introduction

This document describes testing receiving of gps data using the Quectel EC25-E/EG25-G 4G/LTE module

Boards

Environment Setup

  • Connect SIM card with mobile internet or use WiFi connection for the DUT
  • Insert Quectel E25-E/EG25-G module on the board

NOTE

GPS data can be obtained using minicom or python script

Section 1: Using Minicom

This test attempts to activate GNSS (Global Navigation Satellite Systems) engine present on the module and read GPS data using minicom

Test Setup

  • 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

Test case 1.0a

Check connectivity with

AT

Turn on GNSS with

AT+QGPS=1

Expected result

  • Minicom console returns OK after each command

Test case 1.1a

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

Expected result

  • Minicom console returns GPS NMEA data

Section 2: Using Python script

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: File:Gpstest.zip

Test Setup

  • DUT powered on

Test case 2.0a

  • Run the python script
sudo python3 gpstest.py

Expected result

  • Python script returns GPS NMEA data
  • You can decode the GPRMC and GPGGS NMEA sentences from this link

Version

0.1

Author

  • Camillus Teteh

Acknowledgments

  • Hat tip to anyone whose code was used