Site Tools


This is an old revision of the document!


GPS Feature

The GPS Signal can be obtained and used via different ways:

  • Webinterface
  • GPS over IP
  • cli status interface
  • inside of SDK Skripts

Webinterface

The Webinterface already give you access to the GPS Data. This can be suitable to have a quick look on the current status of a vehicle.

Status Page

Via Status→GNSS you will see this Overview

Interface Page

Via Interfaces→GNSS you will see this Map

GPS over IP

We use version 3.9 of gpsd as a GPS via IP Daemon

We support the following modes:

  • on request (clients must send R after connect to get NMEA frames)
  • in raw mode (clients are served directly with NMEA frames after connection)
  • in super raw mode (clients are served directly with NMEA frames after connection)
  • in JSON mode (the new JSON interface is provided to clients after connection)
// get JOSN
?WATCH={'enable':true,'json':true}
// get NMEA
?WATCH={'enable':true,'json':false}
?WATCH={'enable':true,'nmea':true}

For more information on the new JSON interface see http://www.catb.org/gpsd/client-howto.html

Clients

Linux clients are cgps, gpsmon and gpspipe. You can install them via apt-get install gpsd-clients

To see the NMEA Data you can also use any telnet emulator of your choice: putty, hyperterminal etc.

cli status interface

Via the Command Line Interface you can aquire also the gps parameters:

USER
cli status gnss === GNSS MODULE INFORMATION === GNSS1 module type: me909 GNSS1 module info: Manufacturer: Huawei Technologies Co., Ltd.

                               Model: ME909u-521
                               Revision: 11.235.07.00.00
                               IMEI: 860461024127634
                               +GCAP: +CGSM

GNNS1 system: GPS GNSS1 signal: present GNNS1 last fix: 2016-05-08 03:39:55 GNSS1 latitude: 50.134290 GNSS1 longitude: 8.572818 GNSS1 altitude: 146.80 GNSS1 horizontal speed: 0.000 GNSS1 vertical speed: 0.000 GNSS1 hdop: 6.20 GNSS1 vdop: 1.00 GNSS1 pdop: 6.30 GNSS1 satellites inview: 12 GNSS1 satellites used: 3

To have it in the right format for using inside of scripts (bash, python etc.) you can use the parameter “-s”

cli status -s gnss GNSS1_MODULE_TYPE=“me909” GNSS1_MODULE_INFO=“Manufacturer: Huawei Technologies Co., Ltd. Model: ME909u-521 Revision: 11.235.07.00.00 IMEI: 860461024127634 +GCAP: +CGSM” GNNS1_SYSTEM=“GPS” GNSS1_SIGNAL=“present” GNNS1_LAST_FIX=“2016-05-08 03:40:43” GNSS1_LATITUDE=“50.134291” GNSS1_LONGITUDE=“8.572819” GNSS1_ALTITUDE=“146.80” GNSS1_HORIZONTAL_SPEED=“0.000” GNSS1_VERTICAL_SPEED=“0.000” GNSS1_HDOP=“500.00” GNSS1_VDOP=“500.00” GNSS1_PDOP=“500.00” GNSS1_SATELLITES_INVIEW=“12” GNSS1_SATELLITES_USED=“3”

SDK Scripts