GPS Identifier non brand thru GPS gate. How to identify unique units.

NatixZ5 years ago

The issue is.
I get the data I this format:

2020-08-12 15:27:10  INFO: [e8339485: gpsgate < 10.1.0.201] HEX: 2447504747412c3135323531322e3934382c353531392e383831382c4e2c30313430302e363831382c452c312c30312c302c31382e30302c4d2c302c4d2c2c2a36320d0a
2020-08-12 15:27:10  INFO: [e8339485: gpsgate < 10.1.0.201] HEX: 2448454844542c33362e32302c542a32380d0a24505341542c494e544c542c302e30302c302e30302a37310d0a

Translated data:

$GPGGA,152512.948,5519.8818,N,01400.6818,E,1,01,0,18.00,M,0,M,,*62
$HEHDT,36.20,T*28
$PSAT,INTLT,0.00,0.00*71

I need to give the string my server receives a unique identifier. So I can identify which device I’m locating.

Name Example Data Description
Sentence Identifier $GPGGA Global Positioning System Fix Data
Time 170834 17:08:34 Z
Latitude 4124.8963, N 41d 24.8963' N or 41d 24' 54" N
Longitude 08151.6838, W 81d 51.6838' W or 81d 51' 41" W
Fix Quality:

  • 0 = Invalid
  • 1 = GPS fix
  • 2 = DGPS fix 1 Data is from a GPS fix
    Number of Satellites 05 5 Satellites are in view
    Horizontal Dilution of Precision (HDOP) 1.5 Relative accuracy of horizontal position
    Altitude 280.2, M 280.2 meters above mean sea level
    Height of geoid above WGS84 ellipsoid -34.0, M -34.0 meters
    Time since last DGPS update blank No last update
    DGPS reference station id blank No station id
    Checksum *75 Used by the program to check for transmission errors

It seems like I need the part marked with yellow

$GPGGA,152512.948,5519.8818,N,01400.6818,E,1,01,0,18.00,M,0,M,1230,*62

Id is in this string 1230

hhmmss.ss = UTC of position
llll.ll = latitude of position
a = N or S
yyyyy.yy = Longitude of position
a = E or W
x = GPS Quality indicator (0=no fix, 1=GPS fix, 2=Dif. GPS fix)
xx = number of satellites in use
x.x = horizontal dilution of precision
x.x = Antenna altitude above mean-sea-level
M = units of antenna altitude, meters
x.x = Geoidal separation
M = units of geoidal separation, meters
x.x = Age of Differential GPS data (seconds)
xxxx = Differential reference station ID

The GPGAA string is supposed to be like

$GPGGA,hhmmss.ss,llll.ll,a,yyyyy.yy,a,x,xx,x.x,x.x,M,x.x,M,x.x,xxxx*hh

The ident can be 4 digits:

$GPGGA,hhmmss.ss,llll.ll,a,yyyyy.yy,a,x,xx,x.x,x.x,M,x.x,M,x.x,1230*hh

1 = UTC of Position
2 = Latitude
3 = N or S
4 = Longitude
5 = E or W
6 = GPS quality indicator (0=invalid; 1=GPS fix; 2=Diff. GPS fix)
7 = Number of satellites in use [not those in view]
8 = Horizontal dilution of position
9 = Antenna altitude above/below mean sea level (geoid)
10 = Meters (Antenna height unit)
11 = Geoidal separation (Diff. between WGS-84 earth ellipsoid and
mean sea level. -=geoid is below WGS-84 ellipsoid)
12 = Meters (Units of geoidal separation)
13 = Age in seconds since last update from diff. reference station
14 = Diff. reference station ID#
15 = Checksum

Can I user the Differential Reference station ID ass the unique identifier

Anton Tananaev5 years ago

That's not your device id.

NatixZ5 years ago

I know that. But can i use it ass an ID ?

NatixZ5 years ago

Where in the string can i Implement the Unique id ?