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
78 stars 32 forks source link

Payload decoder from a DRAGINO RS485-LN #40

Open HydronikST opened 2 years ago

HydronikST commented 2 years ago

Hi, This device is a converter between ModBusRTU(RS485) and LoRaWAN.

To start with the most basic (the temperature of a single device connected to your busRTU), what would be the whole process to implement its corresponding decoder?

A possible payload would be: (0x01 0x00 0xc0) Where the second and third byte (0x00c0) is a 16-byte signed integer to which the factor 0.1 must be applied for the measured temperature; that is, equivalent to 19.2ºC.

Thank you very much for your help.