CN112311862A - Multifunctional interconnection communication protocol system and data state maintenance process thereof - Google Patents

Multifunctional interconnection communication protocol system and data state maintenance process thereof Download PDF

Info

Publication number
CN112311862A
CN112311862A CN202011133102.2A CN202011133102A CN112311862A CN 112311862 A CN112311862 A CN 112311862A CN 202011133102 A CN202011133102 A CN 202011133102A CN 112311862 A CN112311862 A CN 112311862A
Authority
CN
China
Prior art keywords
identification
protocol
data frame
attribute
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011133102.2A
Other languages
Chinese (zh)
Inventor
徐步欧
黄军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Taojun Technology Co ltd
Original Assignee
Hunan Taojun Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hunan Taojun Technology Co ltd filed Critical Hunan Taojun Technology Co ltd
Priority to CN202011133102.2A priority Critical patent/CN112311862A/en
Publication of CN112311862A publication Critical patent/CN112311862A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • H04L67/5651Reducing the amount or size of exchanged application data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q9/00Arrangements in telecontrol or telemetry systems for selectively calling a substation from a main station, in which substation desired apparatus is selected for applying a control signal thereto or for obtaining measured values therefrom
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2209/00Arrangements in telecontrol or telemetry systems
    • H04Q2209/60Arrangements in telecontrol or telemetry systems for transmitting utility meters data, i.e. transmission of data from the reader of the utility meter

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)

Abstract

The invention discloses a multifunctional interconnection communication protocol system, which comprises an identification head of a protocol data frame, a structure head of the protocol data frame, a data field of the protocol data frame, a check bit of the protocol data frame and an identification tail of the protocol data frame. The invention relates to the technical field of intelligent water affairs, and particularly provides a multifunctional interconnection communication protocol system capable of realizing data transmission of various devices of different device manufacturers and a data state maintenance process thereof.

Description

Multifunctional interconnection communication protocol system and data state maintenance process thereof
Technical Field
The invention relates to the technical field of intelligent water affairs, in particular to a multifunctional interconnection communication protocol system and a data state maintenance process thereof.
Background
In recent years, the intelligent water meter industry is developed vigorously, and with the popularization of intelligent meters, especially the application of remote-transmission intelligent meters, powerful technical support is provided for the aspects of improving the meter reading rate of a water department, improving the office automation degree, reducing personnel and increasing efficiency, protecting the rights and interests of owners and the like. Meanwhile, due to the arrival of the big data era, the water department also needs to further improve the informatization degree in the operation process, and provides more detailed data basis and data analysis for energy conservation and loss reduction and scientific decision.
At present, the individuation of communication protocols of various equipment manufacturers in the intelligent city water service industry is too strong, the data format is disordered, and a set of multifunctional interconnection communication protocol which can contain all equipment to realize the data transmission function is lacked in the prior art. Therefore, a multifunctional internet communication protocol system is needed to be provided, which can perform unified specification and unified access on all the bottom layer device data, standardize and scale the data, and enhance the data sharing and service capabilities.
Disclosure of Invention
In order to overcome the technical defects, the invention provides a multifunctional interconnection communication protocol system capable of realizing data transmission of various devices of different device manufacturers and a data state maintenance process thereof.
The technical scheme adopted by the invention is as follows: the invention relates to a multifunctional interconnection communication protocol system, which comprises an identification head of a protocol data frame, a structure head of the protocol data frame, a data field of the protocol data frame, a check bit of the protocol data frame and an identification tail of the protocol data frame;
the identification head of the protocol data frame occupies 1 byte flow, the character of the identification head identification of the protocol data frame represents the beginning of one frame data by 0x 68 in a protocol system, the character of the identification head identification of the protocol data frame is agreed by a sender and a receiver, and other arrays can be used;
the structure head of the protocol data frame comprises frame length, instruction number, message value, equipment type, manufacturer type, equipment identification length and equipment identification; the frame length is the sum of all data except the mark head, the mark tail and the frame length, the coding attribute of the frame length is int, and the frame length occupies the flow of 2 bytes; the instruction number is a value corresponding to the counter control instruction, the coding attribute is int, and the flow of 1 byte is occupied; the message value is a value corresponding to the uplink and the downlink and is necessarily the same, the coding attribute is int, and 1 byte flow is occupied; the device type is a type identifier of the bottom layer device, for example: the fire hydrant is specified to be 01, the water meter is specified to be 02 and the like, the coding attribute is int, and the flow of 1 byte is occupied; the manufacturer type is a type identifier of an equipment manufacturer, the coding attribute is int, and the flow of 1 byte is occupied; the length of the equipment identifier represents the length of the equipment identifier, the unit is byte, the coding attribute is int, and the flow of 1 byte is occupied; the device identification is a code representing the device, the coding rule is agreed by both parties of the protocol, the coding length is determined by the length of the device identification, and the coding attribute is int;
the data field of the protocol data frame includes a key value structure and a number group structure, the key value structure is a definition representing an attribute of the device, and is used for defining the identification, length, encoding rule and description of the attribute, for example: the attribute identification of the water quantity reading in the water meter is defined as 0x01, the length is 4 bytes, the coding attribute is Hex code, the next byte is expressed as decimal place, for example, "0 x01002F 2802" expresses the water quantity reading, wherein [ 002F28 ] changes to 12072 in decimal place, 02 expresses 2 decimal places, the final result is 120.72 unit is ton, the rule of the equipment attribute needed to be used is well defined in advance, the equipment uploads the data according to the definition attribute, and the system analyzes the data according to the protocol; the array structure is a value representing one attribute of equipment transmitted in an array mode, the array structure of one attribute of the equipment is composed of length, analysis character strings (key value attributes), group number and data, the length determines the number of the analysis character strings (key value attributes) formula, the analysis character strings (key value attributes) determine which equipment attribute is uploaded by the array structure, the group number determines the number of groups of the analysis character strings (key value attributes), and the data is a data value of the uploaded attribute;
the check bits of the protocol data frame are calculated by using a Modbus CRC16 algorithm according to all bytes from the identification head to the front of the check bits, the check bits of the protocol data frame occupy 2 bytes of flow, and the calculated check bits are different for different data frames;
the identification tail of the protocol data frame occupies 1 byte flow, the character of the identification tail identification of the protocol data frame represents the end of one frame data by 0x 16 in a protocol system, and the character of the identification head identification of the protocol data frame is agreed by a sender and a receiver and can be other arrays.
The data state maintenance process of the multifunctional interconnected communication protocol system comprises an equipment terminal, an upper computer program end and a data processing end, wherein the equipment terminal reports the state at regular time, the upper computer program end receives the state information, and the data processing end records the state change process.
Furthermore, the timed reporting state of the equipment terminal is set by directly installing a protocol setting through a program or issuing a data instruction setting according to the protocol, and the set timed reporting state of the equipment terminal is that the terminal equipment reports data to the upper computer program end according to the protocol, then the upper computer program end carries out data analysis according to the protocol, and the data analysis is finished and then is transmitted to the data processing end to record the data state change.
The invention with the structure has the following beneficial effects: the novel multifunctional interconnection communication protocol system transmits through the interconnection protocol system, so that the number of bytes of transmission data can be greatly reduced, and the transmission speed is higher; through the setting of the key value structure in the data domain of the protocol data frame, even if the equipment is updated or upgraded, new data needs to be acquired, the protocol does not need to be redefined, and only new data attribute identification is added on the basis of the original protocol.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a block diagram of an overall architecture of a multi-functional interconnect communication protocol system according to the present invention;
FIG. 2 is a block diagram of a structure header of a protocol data frame of the multifunctional interconnection communication protocol system according to the present invention;
FIG. 3 is a block diagram of the structure of the data field of a protocol data frame of the multifunctional interconnection communication protocol system according to the present invention;
fig. 4 is a block diagram of a data state maintenance process of the multifunctional interconnection communication protocol system according to the present invention.
The system comprises a protocol data frame, a protocol data frame identification head, a protocol data frame structure head, a protocol data frame data field, a protocol data frame check bit, a protocol data frame identification tail, a device terminal, a computer bit program terminal, an upper computer bit program terminal and a data processing terminal, wherein the protocol data frame identification head, the protocol data frame structure head, the.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments; all other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "front," "back," "left," "right," "upper" and "lower" used in the following description refer to directions in the drawings, and the terms "inner" and "outer" refer to directions toward and away from, respectively, the geometric center of a particular component.
As shown in fig. 1 to 4, the technical scheme adopted by the invention is as follows: the invention relates to a multifunctional interconnection communication protocol system, which comprises an identification head 1 of a protocol data frame, a structure head 2 of the protocol data frame, a data field 3 of the protocol data frame, a check bit 4 of the protocol data frame and an identification tail 5 of the protocol data frame.
The header 1 of the protocol data frame occupies 1 byte of flow, the character identified by the header 1 of the protocol data frame is 0x 68 in the protocol system to represent the beginning of one frame of data, and the character identified by the header 1 of the protocol data frame is agreed by both the sender and the receiver, or other arrays can be used.
The structure head 2 of the protocol data frame comprises frame length, instruction number, message value, equipment type, manufacturer type, equipment identification length and equipment identification; the frame length is the sum of all data except the mark head, the mark tail and the frame length, the coding attribute of the frame length is int, and the frame length occupies the flow of 2 bytes; the instruction number is used for receiving a value corresponding to the inverse control instruction, the coding attribute is int, and the flow of 1 byte is occupied; the message value is a value corresponding to the uplink and the downlink and is necessarily the same, the coding attribute is int, and 1 byte of flow is occupied; the device type is a type identifier of the underlying device, for example: the fire hydrant is specified to be 01, the water meter is specified to be 02 and the like, the coding attribute is int, and the flow of 1 byte is occupied; the manufacturer type is the type identification of the equipment manufacturer, the coding attribute is int, and the flow of 1 byte is occupied; the length of the equipment identifier represents the length of the equipment identifier, the unit is byte, the coding attribute is int, and the flow of 1 byte is occupied; the device identification is the code representing the device, the coding rule is agreed by both sides of the protocol, the coding length is determined by the device identification length, and the coding attribute is int.
The data field 3 of the protocol data frame comprises a key-value structure and a number-array structure, the key-value structure is a definition representing an attribute of the device, and is used for defining the identification, length, coding rule and description of the attribute, for example: the attribute identification of the water quantity reading in the water meter is defined as 0x01, the length is 4 bytes, the coding attribute is Hex code, the next byte is expressed as decimal place, for example, "0 x01002F 2802" expresses the water quantity reading, wherein [ 002F28 ] changes to 12072 in decimal place, 02 expresses 2 decimal places, the final result is 120.72 unit is ton, the rule of the equipment attribute needed to be used is well defined in advance, the equipment uploads the data according to the definition attribute, and the system analyzes the data according to the protocol; the array structure is a value representing one attribute of equipment transmitted in an array mode, the array structure of one attribute of the equipment consists of length, an analysis character string (key value attribute), group number and data, the length determines the number of the analysis character string (key value attribute) formula, the analysis character string (key value attribute) determines which equipment attribute is uploaded by the array structure, the group number determines how many groups the analysis character string (key value attribute) is, the data is a data value of the uploaded attribute, and the key value structure in a data field 3 of a protocol data frame enables the inclusiveness and expansibility of the protocol to be stronger, for example, two data attributes of pressure and water quantity exist in equipment A of equipment manufacturers A, B and A; the equipment B of the manufacturer B has three data attributes of pressure, water quantity and temperature, when a protocol is customized, the three attributes of pressure, water quantity and temperature are defined in an official mode, the manufacturer A and the manufacturer B transmit data according to the attribute of the equipment per se according to a set of protocol, a data processing end only analyzes the data according to the public definition, the uploaded data is analyzed when the formula exists, and the formula is not skipped to analyze and the data transmission is not influenced.
The check bit 4 of the protocol data frame is calculated by using a Modbus CRC16 algorithm according to all bytes from the identification head to the front of the check bit, the check bit 4 of the protocol data frame occupies the flow of 2 bytes, and the calculated check bits are different for different data frames.
The identification tail 5 of the protocol data frame occupies 1 byte flow, the character identified by the identification tail 5 of the protocol data frame uses 0x 16 in the protocol system to represent the end of one frame data, and the character identified by the identification head 1 of the protocol data frame is agreed by both the sender and the receiver, or can use other arrays.
A data state maintenance process of a multifunctional interconnection communication protocol system comprises an equipment terminal 6, an upper computer position program end 7 and a data processing end 8, wherein the equipment terminal 6 reports the state at regular time, the upper computer position program end 7 receives the state information, and the data processing end 8 records the state change process.
The timed reporting state of the equipment terminal 6 is set by directly installing a protocol setting through a program or issuing a data instruction setting according to the protocol, and the set timed reporting state of the equipment terminal 6 is that the terminal equipment reports data to the upper machine position program terminal 7 according to the protocol, then the upper machine position program terminal 7 performs data analysis according to the protocol, and the data analysis is completed and then is transmitted to the data processing terminal 8 to record the data state change.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, article, or apparatus.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (3)

1. A multifunctional interconnection communication protocol system is characterized in that: the method comprises the steps of identifying a header of a protocol data frame, a structure header of the protocol data frame, a data field of the protocol data frame, a check bit of the protocol data frame and an identification tail of the protocol data frame; the identification head of the protocol data frame occupies 1 byte flow, the character of the identification head identification of the protocol data frame represents the beginning of one frame data by 0x 68 in a protocol system, and the character of the identification head identification of the protocol data frame is agreed by a sender and a receiver; the structure head of the protocol data frame comprises frame length, instruction number, message value, equipment type, manufacturer type, equipment identification length and equipment identification; the frame length is the sum of all data except the mark head, the mark tail and the frame length, the coding attribute of the frame length is int, and the frame length occupies the flow of 2 bytes; the instruction number is a value corresponding to the counter control instruction, the coding attribute is int, and the flow of 1 byte is occupied; the message value is a value corresponding to the uplink and the downlink and is necessarily the same, the coding attribute is int, and 1 byte flow is occupied; the device type is the type identification of the bottom layer device, the coding attribute is int, and the flow of 1 byte is occupied; the manufacturer type is a type identifier of an equipment manufacturer, the coding attribute is int, and the flow of 1 byte is occupied; the length of the equipment identifier represents the length of the equipment identifier, the unit is byte, the coding attribute is int, and the flow of 1 byte is occupied; the device identification is a code representing the device, the coding rule is agreed by both parties of the protocol, the coding length is determined by the length of the device identification, and the coding attribute is int; the data field of the protocol data frame comprises a key value structure and a number group structure, wherein the key value structure represents the definition of one attribute of the equipment and is used for defining the identification, the length, the coding rule and the description of the attribute; the array structure is a value representing one attribute of the equipment transmitted in an array mode, the array structure of the one attribute of the equipment is composed of a length, an analysis character string, a group number and data, the length determines the number of the analysis character string formula, the analysis character string determines which equipment attribute is uploaded by the array structure, the group number determines the number of groups of the analysis character string, and the data is a data value of the uploaded attribute; the check bit of the protocol data frame is calculated by using a Modbus CRC16 algorithm according to all bytes from the identification head to the front of the check bit, and the check bit of the protocol data frame occupies the flow of 2 bytes; the identification tail of the protocol data frame occupies 1 byte of flow, the character of the identification tail identification of the protocol data frame represents the end of one frame of data by 0x 16 in a protocol system, and the character of the identification head identification of the protocol data frame is agreed by a sender and a receiver.
2. The data state maintenance process of the multifunctional interconnected communication protocol system comprises an equipment terminal, an upper computer program end and a data processing end, wherein the equipment terminal reports the state at regular time, the upper computer program end receives the state information, and the data processing end records the state change process.
3. The data state maintenance process of the multifunctional internet communication protocol system according to claim 2, wherein: the timed reporting state of the equipment terminal is directly set by a program or set by a data command issued according to the protocol.
CN202011133102.2A 2020-10-21 2020-10-21 Multifunctional interconnection communication protocol system and data state maintenance process thereof Pending CN112311862A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011133102.2A CN112311862A (en) 2020-10-21 2020-10-21 Multifunctional interconnection communication protocol system and data state maintenance process thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011133102.2A CN112311862A (en) 2020-10-21 2020-10-21 Multifunctional interconnection communication protocol system and data state maintenance process thereof

Publications (1)

Publication Number Publication Date
CN112311862A true CN112311862A (en) 2021-02-02

Family

ID=74326851

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011133102.2A Pending CN112311862A (en) 2020-10-21 2020-10-21 Multifunctional interconnection communication protocol system and data state maintenance process thereof

Country Status (1)

Country Link
CN (1) CN112311862A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113329064A (en) * 2021-05-13 2021-08-31 河南中州智慧水利研究院有限公司 Communication method of Internet of things interaction protocol based on water conservancy data acquisition and control

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6931574B1 (en) * 2001-10-24 2005-08-16 Finisar Corporation Systems and methods for interpreting communications packets
CN102055767A (en) * 2010-12-31 2011-05-11 杭州依赛通信有限公司 Multiattribute transport protocol (MATP) for communication equipment management system
CN106094788A (en) * 2016-06-02 2016-11-09 西安诺瓦电子科技有限公司 Embedded board system for testing stability and method
CN106330397A (en) * 2016-08-25 2017-01-11 北京安控科技股份有限公司 Method and device for implementing data interaction on ZigBee and Modbus RTU protocols
CN106652415A (en) * 2016-12-30 2017-05-10 武汉盛帆智能科技有限公司 Processing method and device of protocol for concentrated reading of multiple meters
CN109257367A (en) * 2018-10-18 2019-01-22 浙江大学台州研究院 A kind of data communication protocol and implementation method for industrial internet-of-things terminal
CN111314304A (en) * 2020-01-17 2020-06-19 西安微电子技术研究所 Multi-type data stream oriented frame identification method, device and readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6931574B1 (en) * 2001-10-24 2005-08-16 Finisar Corporation Systems and methods for interpreting communications packets
CN102055767A (en) * 2010-12-31 2011-05-11 杭州依赛通信有限公司 Multiattribute transport protocol (MATP) for communication equipment management system
CN106094788A (en) * 2016-06-02 2016-11-09 西安诺瓦电子科技有限公司 Embedded board system for testing stability and method
CN106330397A (en) * 2016-08-25 2017-01-11 北京安控科技股份有限公司 Method and device for implementing data interaction on ZigBee and Modbus RTU protocols
CN106652415A (en) * 2016-12-30 2017-05-10 武汉盛帆智能科技有限公司 Processing method and device of protocol for concentrated reading of multiple meters
CN109257367A (en) * 2018-10-18 2019-01-22 浙江大学台州研究院 A kind of data communication protocol and implementation method for industrial internet-of-things terminal
CN111314304A (en) * 2020-01-17 2020-06-19 西安微电子技术研究所 Multi-type data stream oriented frame identification method, device and readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113329064A (en) * 2021-05-13 2021-08-31 河南中州智慧水利研究院有限公司 Communication method of Internet of things interaction protocol based on water conservancy data acquisition and control

Similar Documents

Publication Publication Date Title
CN110933146B (en) Data conversion method and device and server
CN100586109C (en) Communication method and system for universal service data based on self-defined template
CN107992026B (en) Method for analyzing DBC analysis message based on LABVEIW
CN107390650A (en) A kind of data collecting system based on Internet of Things and the data compression method based on the system
CN102802139A (en) Gateway data adapting system and method of Internet of Things
CN103997532A (en) Agriculture internet-of-things edge middleware system
CN111970353A (en) Data processing method and device for heterogeneous equipment in Internet of things of cloud computing platform
CN109150854B (en) Dynamic configurable communication protocol conversion system based on XML file
WO2010081317A1 (en) Service access method and system
CN101651683A (en) Method for generating analysis source code of signaling message
CN112995172B (en) Communication method and communication system for butt joint between Internet of things equipment and Internet of things platform
CN103401930A (en) Web Service-based industrial monitoring method and device
CN112311862A (en) Multifunctional interconnection communication protocol system and data state maintenance process thereof
CN210899215U (en) Internet of things edge acquisition gateway system
CN104698962B (en) PLC man-machine communication's method and system
CN101944768A (en) Power equipment state monitoring method, device and system
CN110633318A (en) Data extraction processing method, device, equipment and storage medium
CN101227327B (en) Method for concentrating network managing system and uploading lower level alarm information
CN103905233B (en) Realize method, system and the access network device of analog sensor plug and play
CN111756688B (en) Method and system for realizing meter protocol and application decoupling
CN109167768A (en) It is a kind of industry Internet of Things in industrial field data remote access and tamper resistant systems
US11310353B2 (en) Data transmission method for creating data structure facilitating data transmission and reception
CN107885691A (en) Serial data transmission method, distributed apparatus and main frame
CN114070759B (en) Transmission method, fluid meter and corresponding computer readable medium
CN108540478A (en) A kind of micro-base station system and implementation method for intelligent grid

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210202