User Guide

IoT into the Wild
34
9.2 Packet Parsing
9.2.1 Packet Initialization
After being powered on or reboot, SenseCAP Sensors will be connected to the network using
the OTAA activation method. Each Sensor Node will send data packets to the server,
including the following data:
Initial packetsno need to learn about these initial packets
One packet with device info including hardware version, software version, battery level,
sensor hardware & software version, sensor EUI, power, and sensor power time counter at
each channel.
Measurement data packets
The only thing we should pay attention to is the sensor measurement data packets.
Packet Structure
The structure of the frame is shown in the image below.
1 byte for channeldefault as 1, means the sensor has been well connected.
2 bytes for frame type, in this case, it will be 0110 and 0210, means temperature value and
humidity value
4 bytes for content, is the sensor value with CRC
The frame content is sent in little-endian byte order.