Dragino LGT92 wrong longitude decoding
See original GitHub issueSummary
Dragino LGT92 wrong longitude decoding
What is already there? What do you see now?
Currently longitude payload is decoded as 0 if the MSB (most significant bit of the longitude packed bites) is 0 as well.
{
"ALARM_status": "FALSE",
"BatV": 3.713,
"FW": 164,
"LON": "ON",
"MD": "Disable",
"Pitch": 4.68,
"Roll": 0.11,
"altitude": 389.4,
"hdop": 0.28,
"latitude": 42.404444,
"longitude": 0
}
What is missing? What do you want to see?
Longitude should be correctly decoded as for example the decoder here does: https://www.dragino.com/downloads/downloads/LGT_92/Decoder/LGT92-v1.6.4_decoder_TTN.txt
How do you propose to implement this?
…
Can you do this yourself and submit a Pull Request?
Could do a PR or review it but would strongly suggest the manufacturer @dragino does it.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Dragino LGT-92 - LoRaWAN GPS Tracker - The Things Network
TTN returns the following error: Error(“Internal error: Decoder threw ... var longitude=value/1000000;//gps longitude,units: ° var ...
Read more >Dragino LGT92 and TTN - IoT Devices - Ubidots Community
function Decoder(bytes, port) { // Decode an uplink message from a buffer // (array) of bytes to an object of fields. var latitude;//gps ......
Read more >LGT-92 LoRaWAN GPS Tracker User Manual - Dragino
5, see which one has a reasonable decode. 2. Use the USB to TTL to access LGT92 and reset the device. The output...
Read more >LGT-92 LoRaWAN GPS Tracker User Manual - Dragino
1.1 What is LGT-92 LoRa GPS Tracker . ... latitude and longitude and the related field will be both filled with 0x0FFFFF.
Read more >1.6.8 Image Version: v1.6.5 - Dragino
LGT-92 LoRaWAN GPS Tracker User Manual ... Fix wrong links. 2021-Aug-25 ... 7.1 Problem in getting GPS longitude and latitude?
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@Jaime-Trinidad: Yeah, that’s true. Just didn’t occured with my device. Thanks for your help.
I make changes on latitude and longitude decoder, also verify now if msb of this parameters are 0 we still get values. #249