CJ/T-188 water meter protocol analysis, cjt-188 Water Meter Analysis

Source: Internet
Author: User

CJ/T-188 water meter protocol analysis, cjt-188 Water Meter Analysis
CJ/T-188 water meter protocol analysis in this paper to illustrate the analysis process of CJ/T-188 water meter protocol, the following data without special instructions, refer to hexadecimal.
 
Data transmission:
FE 68 10 44 33 22 11 00 33 78 01 03 1F 90 00 80 16
Description:
FE: protocol header (group 1-4 ).
68: frame start character.
10: meter type. This instance is a cold water meter and can also be defined:
10: Cold Water Meter
11: domestic hot water meter
12: Direct Drinking Water Meter
13: Water Meter
20: Heat table (heat)
21: Heat table (cold amount)
30: Gas Meter
40: Power Meter
44 33 22 11 00: the descending order is 0011223344 (in BCD format), indicating the table number.
33 78: the descending order is 7833 (in BCD format), indicating the manufacturer code.
01: the control code is used to read the table data, followed by a fixed data domain length, data identifier, and serial number.
03: data domain length (fixed ).
1F 90: Data identifier (fixed ).
00: serial number (fixed ).
80: Sum, 68 + 10 + 44 + 33 + 22 + 11 + 00 + 33 + 78 + 01 + 03 + 1F + 90 + 00 = 80.
16; Terminator.

Reply data:
FE 68 10 44 33 22 11 00 33 78 81 16 1F 90 00 77 66 55 2C 00 77 66 55 2C 31 01 22 11 05 15 20 21 84 08 16
Description:
FE: protocol header (group 1-4 ).
68: frame start character.
10: instrument type.
44 33 22 11 00: the descending order is 0011223344 (in BCD format), indicating the table number.
33 78: the descending order is 7833 (in BCD format), indicating the manufacturer code.
81: the actual control code is + 80. We can simply think that only 81 is correct. If not 81 is abnormal, no Parsing is performed.
16: the length of the data field, in decimal format 22, indicating that there are 22 valid data in the end.
1F 90: Data identifier (fixed ).
00: serial number (fixed ).
00 77 66 55: the reverse order is 556677.00 (in BCD format), indicating the cumulative usage.
2C: cubic meter. For other units, see Appendix 1.
00 77 66 55: the reverse order is 556677.00 (in BCD format), indicating the usage this month. 2C: cubic meter. For other units, see Appendix 1. 31 01 22 11 05 15 22:01:31-05-11, indicating the real-time.
21 84: Status, two bytes, 1st bytes defined as follows, 2nd bytes customized by the manufacturer. 68: Sum, 68 + 10 + 44 + 33 + 22 + 11 + 00 + 33 + 78 + 81 + 16 + 1F + 90 + 00 + 77 + 66 + 55 + 2C + 00 + 77 + 66 + 55 2C + 31 + 01 + 22 + 11 + 05 + 15 + 20 + 21 + 84 = 08. 16; Terminator.
 
Attachment: Organization Code

For original articles, see http://user.qzone.qq.com/2756567163.

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

Related Article

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.