
Example 2: Return GPS time, in seconds, since 2010
This example uses ALERT2 IND API to get the AL205E GPS current time, in seconds, since 2010.
(p. 16) provides the display parameters and
(p. 16) provides the AL205E
response.
Table 4-3: Display parameter – return GPS time, since 2010, valid flag
Prefix
Length
API command
(type)
Length
Value
ASCII/
Decimal
ALERT2
3
Display
parameter
(124)
1
Return GPS time
valid flag (127)
Encoded
Hex
41 4C 45 52 54 32
03
7C
01
7E
Table 4-4: Display parameter – return GPS time, since 2010, valid flag
Prefix
Length
API command
(type)
Length
Value
ASCII/
Decimal
ALERT2
3
Return GPS time,
in seconds,
since 2010 (126)
4
03 (GPS clock,
not synced)
Encoded
Hex
41 4C 45 52 54 32
03
7E
04
13 AA CE 18
1
1
13 AA CE 18
in HEX is 329960983 seconds since 2010. The date the GPS is reporting is 06/15/2020 23:49:44.
Example 3, Sending ALERT2 self-reporting data
This example sends an ALERT2 message using a general sensor report (GSR) for three sensors.
(p. 17) provides the message components. The reported values, when decoded, are
Sensor ID 9 with a value of 0, Sensor ID 20 with a value of 13.780, and Sensor ID 12 with a value of
86.431. Data commands are not acknowledged and reported as successful or not.
AL205E ALERT2 Encoder
16