
Zhengzhou Winsen Electronics Technology Co., Ltd
www.winsen-sensor.com
Tel: 86-371-67169097/67169670 Fax: 86-371-60932988 Email:
Switch command to the question & answer mode, the command line format is as follows:
Table 5
Switch command to the initiative upload mode, the command line format is as follows:
Table 6
Question & answer mode, the Question command line format is as follows:
Table 7
Question & answer mode, the Question command line format is as follows:
Table 8
Gas concentration value = (Byte4*256+Byte6) x 0.1
3. Check sum and calculation
**********************************************************************
* Function Name: unsigned ucharFucCheckSum(uchar *i,ucharln)
* Functional description: Sum check
【
Not (Byte1+Byte2+…Byte7) +1
】
**********************************************************************/
unsigned char FucCheckSum(unsigned char *i,unsigned char ln)
Byte 0
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Byte6
Byte 7
Byte 8
Start Byte
Reserve
Switch
command
Q&A mode
Reserve
Reserve
Reserve
Reserve
Check sum
0xFF
0x01
0x78
0x41
0x00
0x00
0x00
0x00
0x46
Byte 0
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Byte6
Byte 7
Byte 8
Start Byte
Reserve
Switch
command
Initiative
upload
Reserve
Reserve
Reserve
Reserve
Check sum
0xFF
0x01
0x78
0x40
0x00
0x00
0x00
0x00
0x47
Byte 0
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Byte6
Byte 7
Byte 8
Start Byte
Reserve
Command
Reserve
Reserve
Reserve
Reserve
Reserve
Check sum
0xFF
0x01
0x86
0x00
0x00
0x00
0x00
0x00
0x79
Byte 0
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Byte6
Byte 7
Byte 8
Start Byte
Command
Concentration
(High Byte)
Concentration
(Low Byte)
Reserve
Reserve
Concentration
(High Byte)
Concentration
(Low Byte)
Check sum
0xFF
0x86
0x00
0x20
0x00
0x00
0x00
0x20
0x30