Common sensor Protocol 5:cj/t-188 Water Meter Protocol analysis 2__cjt-188
Source: Internet
Author: User
This paper will take SC water meter as an example to continue to explain the cj/t-188 Water Meter Protocol of the switching valve protocol analysis process, the following data without special description, all refer to hexadecimal.
Open valve:
Data transmission: FE fe fe fe-A0 17 01 55 50 16
The description is as follows:
Fe fe FE: Protocol head (1-4 groups).
68: The frame start character.
10: Instrument Type, this example refers to the water meter, also can be defined as:
69 05 90 05 15: Reverse is 1505900569 (in BCD form), representing the table number.
33 78: Reverse to 7833 (in BCD form), indicating the manufacturer's code.
04: Control code, followed by the fixed data field length, data identification and serial number.
04: Data field Length (fixed).
A0 17: Data identification (fixed).
01: Serial Number (fixed).
55: Function code, indicating open valve.
50: Cumulative and, from the agreement head 68 to the function code 55 tired plus and.
16; end character.
Reply data:
Fe fe fe fe-A-A0 for 16 (7C)
00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16-17
The description is as follows:
Fe fe FE: Protocol head (1-4 groups).
68: The frame start character.
10: Instrument type.
69 05 90 05 15: Reverse is 1505900569 (in BCD form), representing the table number.
33 78: Reverse to 7833 (in BCD form), indicating the manufacturer's code.
84: The actual control code +80, we can simply think that only 84 correct, not 84 are exceptions, do not parse.
05: Data field length, decimal 22, indicating that there are 22 valid data after.
A0 17: Data identification (fixed).
01: Serial Number (fixed).
00 00: State Word, 0000 normal open valve, 0001 normal shutoff valve, 0011 abnormal.
7 C: Cumulative and, from the agreement head 68 to the state word 00 tired plus and.
16; end character.
Off valve:
Data transmission: FE fe fe fe-A0 17 01 99 94 16
The description is as follows:
Fe fe FE: Protocol head (1-4 groups).
68: The frame start character.
10: Instrument Type, this example refers to the water meter, also can be defined as:
69 05 90 05 15: Reverse is 1505900569 (in BCD form), representing the table number.
33 78: Reverse to 7833 (in BCD form), indicating the manufacturer's code.
04: Control code, followed by the fixed data field length, data identification and serial number.
04: Data field Length (fixed).
A0 17: Data identification (fixed).
01: Serial Number (fixed).
99: Function code, indicating that the valve is closed.
94: Cumulative and, from the agreement head 68 to the function code 55 tired plus and.
16; end character.
Reply data:
Fe fe fe fe-A-A0 (7C 16).
00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16-17
The description is as follows:
Fe fe FE: Protocol head (1-4 groups).
68: The frame start character.
10: Instrument type.
69 05 90 05 15: Reverse is 1505900569 (in BCD form), representing the table number.
33 78: Reverse to 7833 (in BCD form), indicating the manufacturer's code.
84: The actual control code +80, we can simply think that only 84 correct, not 84 are exceptions, do not parse.
05: Data field length, decimal 22, indicating that there are 22 valid data after.
A0 17: Data identification (fixed).
01: Serial Number (fixed).
00 01: State Word, 0000 normal open valve, 0001 normal shutoff valve, 0011 abnormal.
7 D: Cumulative and, from the agreement head 68 to the State Word 01 tired plus and.
16; end character.
Original articles, reproduced please indicate the source http://user.qzone.qq.com/2756567163.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.