Data Sheet

www.dragino.com
LGT-92 LoRa GPS Tracker User Manual 10 / 29
2.3 Uplink Payload
2.3.1 Payload Analyze
The uplink payload includes totally 12 bytes. Uplink packets use FPORT=2 and every 5 minutes
send one uplink by default.
Size(bytes)
3
3
2
2
2
Value
Latitude
Longitude
BAT
X
Y
Example:
Latitude: 06765f ⇒ 42.3519
Longitude: F2960a ⇒ -87.9094
BAT: Ex1: 0x0B45 ⇒ 3850mV
X: 04D2 = +1234 ⇒ +1.234G
Y: FB2E = -1234
⇒
-1.234G
2.3.2 Add Payload format in TTN
In TTN, use can add a custom payload so it shows friendly.
In the page Applications --> Payload Formats --> Custom --> decoder
Add below code:
//The function is :
function Decoder(bytes, port) {
// Decode an uplink message from a buffer
// (array) of bytes to an object of fields.
var value=bytes[0]<<16 | bytes[1]<<8 | bytes[2];
var latitude=value/10000;//gps latitude










