question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dragino LGT92 wrong longitude decoding

See original GitHub issue

Summary

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:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Flo3561commented, Jul 6, 2021

@Jaime-Trinidad: Yeah, that’s true. Just didn’t occured with my device. Thanks for your help.

0reactions
Jaime-Trinidadcommented, Jul 7, 2021

I make changes on latitude and longitude decoder, also verify now if msb of this parameters are 0 we still get values. #249

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found