aws-samples / aws-iot-core-lorawan

Quickly get started with AWS IoT Core for LoRaWAN with sample solutions (binary decoding, device and gateway monitoring, downlink, dashboarding, provisioning automation)
MIT No Attribution
79 stars 33 forks source link

LSN50 decoder breaks when temperature is negative #32

Closed thomasphorton closed 2 years ago

thomasphorton commented 2 years ago

I wrote the decoder, so this is my fault :)

The LSN50 temperature sensor decoder has an overflow when the temperature is negative, and reports temperatures of 6550+ degrees celcius.

Working on a fix, and also checking other decoders to see if they have similar issues.

thomasphorton commented 2 years ago

i've found some logic in the LLMS01 decoder that i'm going to test out here: https://www.dragino.com/downloads/downloads/LoRa_End_Node/LLMS01/Decoder/LLMS01_Datacake_Decode_V1.0.0.js