This is an old revision of the document!
The GPS Signal can be obtained and used via different ways:
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.
Via Status→GNSS you will see this Overview
Via Interfaces→GNSS you will see this Map
We use version 3.9 of gpsd as a GPS via IP Daemon
We support the following modes:
// 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
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.
Via the Command Line Interface you can aquire also the gps parameters:
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”