Uplink Data
The device reports basic information of sensor whenever joining the network and the number of people periodically. For decoder examples please find files on https://github.com/Milesight-IoT/SensorDecoders.
Basic Information
The device will report a basic information packet whenever joining the network.
| Item | Channel | Type | Description |
|---|---|---|---|
| Protocol Version | ff | 01 | 01=>V1 |
| Device SN | ff | 08 | 12 digits |
| Hardware Version | ff | 09 | 01 04 => V1.4 |
| Software Version | ff | 1f | 1f 07 00 4b => V31.7.0.75 |
- Example:
-
ff0101 ff086600b0940976 ff090100 ff1f1f07004b Channel Type Value ff 01 Protocol version: 01 (V1) ff 08 Device SN: 66 00 b0 94 09 76 ff 09 Hardware version: 0100 (V1.0) ff 1f Software version: 1f 07 00 4b (V31.7.0.75)
Periodic Report
The device supports to report below types of periodic report packets.
| Item | Channel | Type | Byte | Description |
|---|---|---|---|---|
| Region People Counter | 04 | c9 | 4 | Byte 1: current total number of people Byte 2: the number of mapped regions Byte 3-4: every bit indicates occupancy status of per mapped region, 0=vacant, 1=occupied |
| Max People Counter | 06 | cd | 1 | Maximum number of people in detection area during the reporting interval of region people counting. This value only report on periodic uplinks. |
| Per Region People Counter | 07 | d5 | 8 | region 1 (1B) + region 2 (1B)+... region 8 (1B) |
| 08 | d5 | 8 | region 9 (1B) + region 10 (1B)+... region 16 (1B) | |
| Dwell Time Detection | 0e | e4 | 5 | Byte 1: 00=all regions Byte 2-3: Average Dwell Time Byte 4-5: Maximum Dwell Time |
| Periodic Line Cross Counter | 05 | cc | 4 | Byte 1-2: Periodic In Byte 3-4: Periodic Out |
| Accumulated Line Cross Counter | 0d | cc | 4 | Byte 1-2: Accumulated In Byte 3-4: Accumulated Out |
| People Flow Analysis | 09 | da | 8 | Byte 1-2: number of people from A to A Byte 3-4: number of people from A to B Byte 5-6: number of people from A to C Byte 7-8: number of people from A to D |
| 0a | da | 8 | Byte 1-2: number of people from B to A Byte 3-4: number of people from B to B Byte 5-6: number of people from B to C Byte 7-8: number of people from B to D |
|
| 0b | da | 8 |
Byte 1-2: number of people from C to A Byte 3-4: number of people from C to B Byte 5-6: number of people from C to C Byte 7-8: number of people from C to D |
|
| 0c | da | 8 | Byte 1-2: number of people from D to A Byte 3-4: number of people from D to B Byte 5-6: number of people from D to C Byte 7-8: number of people from D to D |
|
| Timestamp | 0f | 85 | 4 | Unix Timestamp, unit: s |
Example:
- Region people counter periodic report when reporting type is Occupancy.
04c9030800a1 06cd05 Channel Type Value 04 c9 03 => There are 3 people totally currently 08 => there are 8 mapped regions
00 a1=>1010 0001: Region 1, 6 and 8 are occupied, others are vacant
06 cd 05 => during the reporting interval, the maximum number of people is 5 - Region people counter periodic report when reporting type is Region People Counting.
07d50001000000000003 06cd05 0ee40004000b00 Channel Type Value 07 d5 Byte 2: 01 => there are 1 person in region 2 currently Byte 8: 03 => there are 3 people in region 8 currently
06 cd 05 => during the reporting interval, the maximum number of people is 5 0e e4 00: region all 0400 => 0004 = 4s: Average Dwell Time of region 1 to region 8
0b00 => 000b = 11s: Maximum Dwell Time of region 1 to region 8
- Line cross counter periodic report with timestamp.
0f85e8ba1466 05cc02000100 0dcc10000100 Channel Type Value 0f 85 e8ba1466 => 6614bae8=1712634600s 05 cc Periodic In: 02 00 => 00 02 = 2 Periodic Out: 01 00 => 00 01 =1
0d cc Accumulated In: 10 00 => 00 10 = 16 Accumulated Out: 01 00 => 00 01 =1
- People flow analysis periodic report.
09da0001000000000000 0ada0000000000000000 0bda0000000000000000 0cda0000000000000000 Channel Type Value 09 da A to A: 00 01=>01 00=256 A to B: 00 00=0
A to C: 00 00=0
A to D: 00 00=0
0a da B to A: 00 00=0 B to B: 00 00=0
B to C: 00 00=0
B to D: 00 00=0
0b da C to A: 00 00=0 C to B: 00 00=0
C to C: 00 00=0
C to D: 00 00=0
0c da D to A: 00 00=0 D to B: 00 00=0
D to C: 00 00=0
D to D: 00 00=0
Trigger Report
The device supports to report when people triggers.
| Item | Channel | Type | Byte | Value |
|---|---|---|---|---|
| Trigger Line Cross Counter | 10 | f7 | 4 | Byte 1-2: Trigger In Byte 3-4: Trigger Out |
- Example:
-
10f7 0100 0300 Channel Type Value 10 f7 Trigger In: 0100 => 0001=1 Trigger Out: 0300=>0003=3
Historical Data
The device will report retransmission data or stored data as below example.
| Item | Channel | Type | Byte | Value |
|---|---|---|---|---|
| Historical Data | 20 | ce | N | Byte 1-4: Data unix timestamp, unit: s Byte 5: Data Type
Byte 6-N: Historical Data |
- Example:
-
20ce 0d755b63 03 07 Channel Type Value 20 ce Time Stamp: 0d 75 5b 63 => 63 5b 75 0d=1666938125s Max People Counter: 03
Historical Data: 07=>7