![Advantech WISE-1510 User Manual Download Page 66](http://html1.mh-extra.com/html/advantech/wise-1510/wise-1510_user-manual_2856915066.webp)
WISE-1510 User Manual
56
C.1
Sensor Data Format
In the sample application, node_get_sensor_data() encodes sensor data according
to the following format:
,where
Length: Total TLV length
MsgType: Fixed as 0xc
Multiple TLVs are one or more Tag-Length-Values: tag matches with gateway’s set-
ting, length is sensor data length, and value is sensor data. All octets are in hexadec-
imal.
For example, LoRa Payload Field setting on WISE-3610 is as below:
If temperature is 25.55 Celsius degree, translate decimal 2555 to hexadecimal 9FB.
Similarly, if humidity is 60.55%, translate from decimal 6055 to hexadecimal 17A7.
The encoded data will be
0x9 | 0xc | 0x1 | 0x3 | 0x1 | 0x9 | 0xFB | 0x2 | 0x2 | 0x17 | 0xA7
, where
0x9: the Total TLV length, included two TLVs
0xc: the fixed MsgType
0x1 | 0x3 | 0x1 | 0x9 | 0xFB: the first TLV with tag id (0x1), value length (0x3), and
positive (0x1) value (0x9FB)
0x2 | 0x2 | 0x17 | 0xA7: the second TLV with tag id (0x2), value length (0x2), and
unsigned value (0x17A7)
Be reminded temperature “Sign” setting is On, 1 extra byte is required to indicate (0
means negative, and 1 means positive) , but humidity "Sign" setting on gateway is
Off, so no extra 1 byte is required.
Users are free to define their own payload field format, but only sensor data encoded
according to the above format can be decoded successfully, and displayed on LoRa
Dashboard on WISE-3610.
Summary of Contents for WISE-1510
Page 1: ...User Manual WISE 1510 M2 COM LoRa IoT Node...
Page 8: ...WISE 1510 User Manual viii...
Page 14: ...WISE 1510 User Manual 4...
Page 26: ...WISE 1510 User Manual 16...
Page 27: ...Chapter 3 3 How to choose your solution on WISELink...
Page 32: ...WISE 1510 User Manual 22...
Page 33: ...Chapter 4 4 Development Environment Setup...
Page 42: ...WISE 1510 User Manual 32...
Page 43: ...Chapter 5 5 Binding Process between WISE 1510 and WISE 3610...
Page 61: ...Appendix A A Application Interface Description WISELink Application...
Page 63: ...Appendix B B Application Sample Code Flow...
Page 64: ...WISE 1510 User Manual 54 B 1 Application Sample Code Flow...
Page 65: ...Appendix C C Sensor Data Format...
Page 67: ...57 WISE 1510 User Manual Appendix C Sensor Data Format...