(1) Data format:
1.
wired RS485 Communication mode: Baud rate 9600, 8 Data bits, 1 A starting position, A stop position, No checksum common 10 One bit.
(Two) , Communication protocol
1, Infrared sensing sends control commands
DATA0: 0X01
ID
DATA1: 0X06
Command code
DATA2: 0x00 Register address high
DATA3: 0x02 Low register address
DATA4: 0X00
Sensing high data of someone
DATA5: 0X01
Sensing low data of someone (01 Someone; 00 unmanned)
DATA6: CRCL
DATA7: CRCH
Verification algorithm: MODBUS/CRC-16 x16+x15+x2+1
remarks: Data transmission adopts active transmission, The number of transmissions is 3 If there is 100MS The internal host will return the data generated by the sensor to the sensor, The sensor will stop sending data .
2 Infrared reception ID set up
DATA0: B4 Frame header
DATA1: C4 Frame header
DATA2: Number of data 05
DATA3: Set infrared ID High
DATA4: Set infrared ID Low
DATA5: Set infrared ID High
DATA6: Set infrared ID Low
DATA7: 0X55
3 Upload illuminance information package
DATA0: 0X01
ID
DATA1: 0X06
Command code
DATA2: 0x00 Register address high
DATA3: 0x03 Low register address
DATA4: 0X00
Illuminance data (HBH)
DATA5: 0X01
Illuminance data (HBL)
DATA6: 0X00
Illuminance data (BH)
DATA7: 0X01
Illuminance data (BL)
DATA8: CRCL
DATA9: CRCH
Verification algorithm: MODBUS/CRC-16 x16+x15+x2+1
1, Illumination calculation method HEX Follow the four bytes accordingly (HBH,HBL,BH,BL) Combine them in sequence to form one 32 The number of digits in the light sensing test at this time
Degree value, For example HEX (00002222) =8738 lux;The maximum value is 65535 LUX.
2, Illuminance interval 1 Upload once per minute, 3 The change within seconds is greater than 10LUX Upload immediately 3 Secondly, Each time interval 100MS If in 100MS
The internal host will return the data generated by the sensor to the sensor, and the light sensor will stop sending data.
4 Light sensing reception ID Set data format
DATA0: B4 Frame header
DATA1: C4 Frame header
DATA2: Number of data 05
DATA3: Set infrared ID High
DATA4: Set infrared ID Low
DATA5: Set infrared ID High
DATA6: Set infrared ID Low
DATA7: 0X55
5 Upload data of radar+infrared dual sensor sensing information
DATA0: 0X01
ID
DATA1: 0X06
Command code
DATA2: 0x00 Register address high
DATA3: 0x04 Low register address
DATA4: 0X00
Infrared sensing has low human data (0xaa Someone; 0x55 unmanned)
DATA5: 0X01
Radar sensing has low human data (0xaa Someone; 0x55 unmanned)
DATA6: CRCL
DATA7: CRCH
Verification algorithm: MODBUS/CRC-16 x16+x15+x2+1
6 Radar+infrared dual sensing ID Set information
DATA0: B4 Frame header
DATA1: C4 Frame header
DATA2: Number of data 05
DATA3: Set infrared ID High
DATA4: Set infrared ID Low
DATA5: Set infrared ID High
DATA6: Set infrared ID low
DATA7: 0X55
Leave a Reply