cj/t-188 Water Meter Protocol Analysis 2

Source: Internet
Author: User


This article willtake SC water meter as an example continue to explain the cj/t-188 Water Meter Protocol Switching Valve Protocol parsing process, the following data without special instructions, refers to hexadecimal.

Open valve:
Data sending:Fe fe fe FE, 17 01 55 50 16 (A0)
The description is as follows:
Fe fe fe FE: protocol header (1-4 groups).
68: Frame start character.
10: Instrument Type, this instance refers to the cold water meter, can also be defined as:
69 05 90 05 15: Reverse is 1505900569 (in the form of BCD), indicating the table number.
33 78: Reverse is 7833 (in the form of BCD code), indicating the factory code.
04: Control code, followed by fixed data field length, data ID and serial number.
04: Data field Length (fixed).
A0 17: Data identification (fixed).
01: Serial Number (fixed).
55: Function code, indicating open valve.
: cumulative and, from protocol header 68 to function code 55 Plus and . .
16; Terminator.
Reply data:
Fe fe FE theTen the to - to the - + - toA0 - on xx 7C
, as a one-to-one- ten
The description is as follows:
Fe fe fe fe : protocol header (1-4 groups).
68: Frame start character.
10: Instrument type.
69 05 90 05 15: Reverse is 1505900569 (in the form of BCD), indicating the table number.
33 78: Reverse is 7833(in the form of BCD code), indicating the factory code.
84: Actually for the control code +80, we can simply think that only 84 is correct, not 84 are abnormal, do not parse.
05: Data field length, in decimal 22, indicates that there are 22 valid data behind.
A0 17: Data Identification(fixed).
01: Serial Number (fixed).
             XX: status word, 0000 normal open valve, 0001 normal shutoff valve, 0011 abnormal。
7 C: Cumulative and, from the protocol header 68 to the State word 00 are combined with and . .
16; Terminator.

Shutoff valve:
Data sending:Fe fe fe fe, 17 01 99 94 16 (A0)
The description is as follows:
Fe fe fe FE: protocol header (1-4 groups).
68: Frame start character.
10: Instrument Type, this instance refers to the cold water meter, can also be defined as:
69 05 90 05 15: Reverse is 1505900569 (in the form of BCD), indicating the table number.
33 78: Reverse is 7833 (in the form of BCD code), indicating the factory code.
04: Control code, followed by fixed data field length, data ID and serial number.
04: Data field Length (fixed).
A0 17: Data identification (fixed).
01: Serial Number (fixed).
99: Function code, indicating the shut-off valve.
94: Cumulative and, from the protocol header 68 to the function code 55 combined with and . .
16; Terminator.
Reply data:
Fe fe FE theTen the to - to the - + - toA0 - on 7C
, as a one-to-one- ten
The description is as follows:
Fe fe fe fe : protocol header (1-4 groups).
68: Frame start character.
10: Instrument type.
69 05 90 05 15: Reverse is 1505900569 (in the form of BCD), indicating the table number.
33 78: Reverse is 7833(in the form of BCD code), indicating the factory code.
84: Actually for the control code +80, we can simply think that only 84 is correct, not 84 are abnormal, do not parse.
05: Data field length, in decimal 22, indicates that there are 22 valid data behind.
A0 17: Data Identification(fixed).
01: Serial Number (fixed).
             About: status word, 0000 normal open valve, 0001 normal shutoff valve, 0011 abnormal .
7 D: Cumulative and, from the protocol header 68 to the State Word 01 are combined with and . .
16; Terminator.

original articles, reproduced please indicate the sourcehttp://user.qzone.qq.com/2756567163.  

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

cj/t-188 Water Meter Protocol Analysis 2

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.