[go: up one dir, main page]

CN113329064B - Communication method of Internet of things interaction protocol based on water conservancy data acquisition and control - Google Patents

Communication method of Internet of things interaction protocol based on water conservancy data acquisition and control Download PDF

Info

Publication number
CN113329064B
CN113329064B CN202110524264.7A CN202110524264A CN113329064B CN 113329064 B CN113329064 B CN 113329064B CN 202110524264 A CN202110524264 A CN 202110524264A CN 113329064 B CN113329064 B CN 113329064B
Authority
CN
China
Prior art keywords
data
byte
equipment
behavior class
water conservancy
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.)
Active
Application number
CN202110524264.7A
Other languages
Chinese (zh)
Other versions
CN113329064A (en
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.)
Henan Zhongzhou Intelligent Water Conservancy Research Institute Co ltd
Original Assignee
Henan Zhongzhou Intelligent Water Conservancy Research Institute 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 Henan Zhongzhou Intelligent Water Conservancy Research Institute Co ltd filed Critical Henan Zhongzhou Intelligent Water Conservancy Research Institute Co ltd
Priority to CN202110524264.7A priority Critical patent/CN113329064B/en
Publication of CN113329064A publication Critical patent/CN113329064A/en
Application granted granted Critical
Publication of CN113329064B publication Critical patent/CN113329064B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/35Utilities, e.g. electricity, gas or water
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/10Detection; Monitoring
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/50Safety; Security of things, users, data or systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0807Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Medical Informatics (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention relates to a communication method of an Internet of things interaction protocol based on water conservancy data acquisition and control, wherein the interaction protocol is simple and clear, the structure is clear and is oriented to behaviors, directional operation is easy to realize, dynamic encryption is realized, and the program is simple to realize. The protocol can be applied to any water conservancy data acquisition and control equipment, has loose and free data format and strong expansibility, and has strong practicability for high concurrent micro-service, intelligent digitization of water conservancy sensing equipment, water conservancy big data processing and the like. The method is used for the interactive communication of long connection and short connection between equipment, equipment and a master station and between the equipment and a user in the working scene of a water conservancy data acquisition and remote control sensor; the behavior data of the equipment can be decomposed, analyzed and processed according to the behavior-oriented characteristics by mainly utilizing efficient acquisition and efficient communication of the specified data.

Description

Communication method of Internet of things interaction protocol based on water conservancy data acquisition and control
Technical Field
The invention relates to the technical field of water conservancy and hydrology data acquisition and control, in particular to a communication method of an Internet of things interaction protocol based on water conservancy data acquisition and control.
Background
The acquisition of water conservancy and hydrological data is to record daily conditions of various aspects of water conservancy facilities such as rivers, lakes, reservoir areas and the like, describe the change of each water conservancy facility in one year according to a database formed by long-term accumulation of water conservancy and hydrological data and is used for guiding the following water conservancy work. Therefore, the acquisition work of the hydrological data is very important.
Along with the development of communication technology and the improvement of the automation degree of measuring equipment, the collection of the existing water conservancy hydrological data is basically changed into the collection of automatic equipment on duty, then the hydrological data is transmitted to a main station through a network for storage and later development and utilization, the water conservancy hydrological data collection equipment becomes a part of the whole network, some collection equipment also has the function of remote control, the collection equipment itself becomes a simple computer terminal, water conservancy workers at all levels can directly access the main station or the collection equipment through a handheld user terminal or access the main station or the collection equipment through special software, and the mutual access and control process needs to be ensured by providing a special method.
Disclosure of Invention
In order to solve the problems, the invention provides a communication method of an internet of things interaction protocol based on water conservancy data acquisition and control.
The technical scheme of the invention is as follows: a communication method of an Internet of things interaction protocol based on water conservancy data acquisition and control is characterized in that the Internet of things comprises a terminal acquisition device, a main station, a user side device and a communication network, wherein the terminal acquisition device, the main station, the user side device and the three are located on site and are networked through the communication network, the terminal acquisition device is provided with a sensor for acquiring various hydrological data, the terminal acquisition device and the main station, the user side device and the main station, and the terminal acquisition device and the user side device are in interactive communication through a special interaction protocol, and the interaction protocol has the following structure:
AE(BE)
[ overall length (2) ] [ behavior class (2) ] [ framing number (2) ] [ checksum (8) ]
DE
[ ID Length (1) ] [ device ID per se ] [ ID Length (1) ] [ destination device ID ]
DE
Subclass identification (1) [ data main body length (2) ] [ data validity check (8) ]
CD
[ subclass identification (1) ] [ device interaction information length (2) ] [ device interaction information ] [ block code (48) ]
BC
[ subclass identification (1) ] [ dialog length (2) ] [ dialog content ] [ dialog SessionID (8) ] [ TOKEN check field (8) ]
EA(EB)
The above structure of the interaction protocol defines:
the identification of the head frame of the uplink message is AE, the identification of the downlink is BE, the identification of the tail frame of the uplink message is EA, and the downlink is EB; the interactive driving party and the interactive passive party can be directly and obviously distinguished;
the identification domain is separated from the main body by DE characters, and the purpose is to directly check the message legality or directly take ID domain information according to a fixed length;
the interactive frame tail of the data class is CD, the interactive class of the equipment is BC, and the positioned class information and data are directly obtained by cutting;
subclass identification defines the transaction classification of the content, and EE identifies no content;
the data verification domain is a dynamic token of the equipment, and the block code is a previous equipment of the equipment chain and the token chain of the equipment and is used for verifying the trust information; the session SessionID is the binding ID of the session content class;
the checksum is the sum of all bytes and is used for checking the message entity.
In the interaction protocol
Predefined behavior-oriented type definitions:
(1) behavior class first byte 03 + behavior class second byte AF: long connection registration
(2) Behavior class first byte 01 + behavior class second byte AF: short connection mark
(3) Behavior class first byte 02 + behavior class second byte EF: long connection heartbeat/short connection signal broadcast main station
(4) Behavior class first byte 05 + behavior class second byte 01: active reporting of data
(5) Behavior class first byte 05 + behavior class second byte 03: data recall test return
(6) Behavior class first byte 05 + behavior class second byte 05: transparent data transmission
(7) Behavior class first byte 06 + behavior class second byte AF: active reporting of event and fault
(8) Behavior class first byte 06 + behavior class second byte BF: event, failure recall return
(9) Behavior class first byte EF + behavior class second byte EF: forwarding or transparent transmission interactive dialogue;
other types of custom extensions;
the predefined behavior types are specifically:
(1) 03AF long connection registration
The server stores the correspondence between the connection of the equipment and the head ID, generates a TOKEN of a check domain according to the fixed parameters and replies the TOKEN to the equipment;
(2) 01AF short connection identification
The device is used for initiating the server or the collector by the equipment end or the sensor equipment, the server definitely recognizes the connection as short connection after receiving the short connection, the communication mode of the device is a short connection mode, and responds to a confirmation frame after logging all the head information to close the connection;
(3) 02EF long connection heartbeat/short connection signal broadcast main station
The device side is used for synchronously notifying the existence of the master station, so that the master station side can know that the device exists and is in a working state; the effective duration is self-defined according to the equipment condition;
(4) 0501 data active reporting
The device is used for the synchronous or asynchronous active reporting of the collected data of the equipment, and the reporting interval of the real-time or non-real-time data is self-defined;
(5) 0503 data recall return
The device side is used for calling the data initiated by the server side, and the device side processes the command and then returns the corresponding data; self-defining the overtime duration;
(6) 0505 data transparent transmission
The method is used for all end-to-end message transparent forwarding and gateway positioning forwarding;
(7) 06AF event and fault active reporting
The method is used for reporting the event and fault data initiated by the server actively, and if 06EE is the identifier, all the events are normal;
(8) 06BF event, failure recall return
The device side is used for responding to the data of the server side event and the fault recall test; if 06EE, all is normal;
(9) EFEF forwarding or transparent transmission interactive session
The method is used for end-to-end interactive transparent transmission between the interactive gateway pair equipment and the user.
The identity authentication in the message interaction in the method is confirmed by the head identification information of long connection login or short connection, the login information and the identity identification information are fixed by MD5 and a time label, the identity information and the connection are stored by a server in a key value pair mode, and the state parameter of the first connection in the effective duration is stored by the short connection.
The data domain and information domain encryption of the message in the method uses an encryption machine of a main station server, the parameter value added or subtracted to or from each byte or every two bytes is generated at dynamic time intervals, and the weight of the last time is kept when the dynamic change of each time is carried out.
The method comprises the following steps of:
after the message is acquired, the TOKEN is analyzed, and the identity legitimacy of the TOKEN must be confirmed by the server side and the equipment side; and obtaining the weight value for decryption through the main station encryption machine after confirming that the TOKEN is legal.
The message in the communication engineering in the method comprises the following four data formats: JSON, XML, TXT, BYTE
JSON is used primarily for the encapsulation of data classes,
XML format for encapsulation of instructions and configurations
The TXT format, used primarily in natural language in interaction,
the BYTE is used for transmitting files and streaming data, and the files generated by the sensor or the concentrator are split in real time, packaged and sent to each end; and is also the main transmission format for remote upgrade.
The beneficial technical effects of the invention are as follows:
the communication method of the Internet of things interaction protocol based on water conservancy data acquisition and control has the advantages of simple and clear interaction protocol, clear structure and behavior-oriented behavior, easiness in directional operation, dynamic encryption and simplicity in program realization. The protocol can be applied to any water conservancy data acquisition and control equipment, has loose and free data format and strong expansibility, and has strong practicability on high-image-quality concurrent micro-service, intelligent digitization of water conservancy sensing equipment, water conservancy big data processing and the like.
The protocol is used for the interactive communication of long connection and short connection between equipment, equipment and a master station and between the equipment and a user in the working scene of the water conservancy data acquisition and remote control sensor; the behavior data of the equipment can be decomposed, analyzed and processed according to the behavior-oriented characteristics by mainly utilizing efficient acquisition and efficient communication of the specified data. The protocol is characterized by easy segmentation and analysis and is suitable for interaction scenes of various intelligent interconnection devices. The classification use is flexible and easy to position, data and information can be directly cut and obtained aiming at different transaction nodes, and meanwhile, the uniform format of the interaction protocol of each end under the whole interaction scene is facilitated.
1. Simple structure and easy data acquisition
2. The structure can be oriented and the disassembly is simple
3. The method is simple in analysis and capable of directly issuing instructions for equipment behaviors
4. Transparent transmission mode is simple and easy to operate
5. Can be directly used for IM interaction between devices or IM interaction between users and devices
6. And the dynamic encryption mode has stronger data protection.
Drawings
FIG. 1 is an Internet of things architecture diagram of the water conservancy data acquisition and control of the present invention;
FIG. 2 is a schematic diagram of a specific application example of the method of the present invention;
Detailed Description
In the first embodiment, referring to fig. 1-2 of the specification, in fig. 1, the internet of things includes a terminal acquisition device, a master station, and a user end device which are located on site, and are networked through a communication network, the terminal acquisition device has a sensor for acquiring various hydrological data, in fig. 2, the terminal acquisition device and the master station, the user end device and the master station, and the terminal acquisition device and the user end device perform interactive communication through a dedicated interactive protocol, and the interactive protocol has a structure as follows:
AE(BE)
[ overall length (2) ] [ behavior class (2) ] [ framing number (2) ] [ checksum (8) ]
DE
[ ID Length (1) ] [ device ID per se ] [ ID Length (1) ] [ destination device ID ]
DE
[ subclass identification (1) ] [ data body length (2) ] [ data validity check (8) ]
CD
[ subclass identification (1) ] [ device interaction information length (2) ] [ device interaction information ] [ block code (48) ]
BC
[ subclass identification (1) ] [ dialog length (2) ] [ dialog content ] [ dialog SessionID (8) ] [ TOKEN check field (8) ]
EA(EB)
The above structure of the interaction protocol defines:
the head frame of the uplink message is marked as AE, the downlink is BE, the tail frame of the uplink message is marked as EA, and the downlink is EB; the interactive driving party and the interactive passive party can be directly and obviously distinguished;
the identification domain is separated from the main body by DE characters, so that the legality of the message can be directly checked according to a fixed length or the ID domain information can be directly taken;
the interactive frame tail of the data class is CD, the interactive class of the equipment is BC, and the positioned class information and data can be directly obtained by cutting;
subclass identification defines the transaction classification of the content, and EE identifies no content;
the data verification domain is a dynamic token of the equipment, and the block code is a previous equipment of the equipment chain and the token chain of the equipment and is used for verifying the trust information; the conversation SessionID is the binding ID of the conversation content class;
the checksum is the sum of all bytes and is used for checking the message entity.
In the interaction protocol
Predefined behavior-oriented type definitions:
(1) behavior class first byte 03 + behavior class second byte AF: long connection registration
(2) Behavior class first byte 01 + behavior class second byte AF: short connection mark
(3) Behavior class first byte 02 + behavior class second byte EF: long connection heartbeat/short connection signal broadcast main station
(4) Behavior class first byte 05 + behavior class second byte 01: active reporting of data
(5) Behavior class first byte 05 + behavior class second byte 03: data recall test return
(6) Behavior class first byte 05 + behavior class second byte 05: data transparent transmission
(7) Behavior class first byte 06 + behavior class second byte AF: active reporting of events and faults
(8) Behavior class first byte 06 + behavior class second byte BF: event, failure recall return
(9) Behavior class first byte EF + behavior class second byte EF: forwarding or transparent transmission interactive dialogue;
other types can be self-defined to expand;
the predefined behavior types are specifically:
(1) 03AF long connection registration
The TOKEN is used for initiating a server or a collector (fog operation cluster) by an equipment end or sensor equipment, storing the correspondence between the connection of the equipment and the head ID by the server, generating a check domain according to the fixed parameters and replying the check domain to the equipment end;
(2) 01AF short connection identification
The device is used for initiating a server or a collector (fog operation cluster) by an equipment end or sensor equipment, the server definitely identifies the connection as short connection after receiving the short connection, the communication mode of the device is a short connection mode, and the device responds to a confirmation frame after logging all head information and closes the connection;
(3) 02EF long-connection heartbeat/short-connection signal broadcast main station
The device side is used for synchronously notifying the existence of the master station, so that the master station side can know that the device exists and is in a working state; the effective duration can be customized according to the equipment condition;
(4) 0501 data active reporting
The device is used for the synchronous or asynchronous active reporting of the collected data of the equipment, and the reporting interval of the real-time or non-real-time data can be customized;
(5) 0503 data recall return
The equipment side is used for calling and testing data initiated by the server side, and the equipment side processes the command and then returns corresponding data; the timeout duration can be customized;
(6) 0505 data transparent transmission
The method is used for all end-to-end message transparent forwarding and gateway positioning forwarding;
(7) 06AF event and fault active reporting
The method is used for reporting the event and fault data actively initiated by the server, and if 06EE is the identifier, all the events are normal;
(8) 06BF event, failure recall return
The device side is used for responding to the data of the server side event and the fault recall test; if 06EE, all are normal;
(9) EFEF forwarding or transparent transmission interactive dialogue
The interactive transparent transmission device is used for end-to-end interactive transparent transmission between the interactive gateway and the equipment and between the users; the gateway should not have other parsing or processing operations than asynchronous thread message log saving in this state.
The identity authentication in the message interaction in the method is confirmed by the head identification information of long connection login or short connection, the login information and the identity identification information are fixed by MD5 and a time label, the identity information and the connection are stored by a server in a key value pair mode, and the state parameter of the first connection in the effective duration is stored by the short connection.
The data domain and information domain encryption of the message in the method uses an encryption machine of a main station server side, parameter values which are added or subtracted for each byte or every two bytes are generated at intervals of dynamic duration, and the last weight is kept at the same time when the dynamic change is carried out each time, so that the situation that the message cannot be decrypted due to the fact that the message is obtained in the case of the encryption and the like is avoided.
The method comprises the following steps of:
after the message is acquired, the TOKEN is analyzed, and the identity legitimacy of the TOKEN must be confirmed by the server side and the equipment side; and obtaining the weight value for decryption through the main station encryption machine after confirming that the TOKEN is legal.
The message in the communication engineering in the method comprises the following four data formats: JSON, XML, TXT, BYTE
JSON is mainly used for encapsulation of data classes, such as:
{ "water level": 100, "flow rate": 10, "rainfall": 99.99}
The XML format is used for encapsulation of instructions and configurations, such as:
<cmd>
<time>20210101000101</time>
<command>make_sleep</command>
< desc > sensor dormancy </desc >
<objectID>CGQ000001</objectID>
</cmd>
The TXT format is relatively free, and is mainly used for natural language in interaction, etc., such as:
#0908A44433# # Master # # SESSION _ ID:0101# Water conservancy No. please give I the current data. #;
#1108A44411# Water conservancy # SESSION _ ID # 0101# Master, happy afternoon! The current water level is XXXXXXX, the flow is XXXXXXX, and no rainfall # exists in the current 5 kilometers surrounding area
The BYTE is used for transmitting files and streaming data, and can split and package the files generated by the sensor or the concentrator in real time and send the files to each end; and is also the main transmission format for remote upgrade.
Wherein the extension of the type definition of the behavior class needs to be customized according to different application scenarios.
Several commonly used scenarios are:
the water level data of the designated river area is actively reported synchronously,
The flow data of the designated river area is actively reported synchronously,
Specifying an on-hook event for a river sensor monitoring device,
Appointing a river sensor dormancy command,
Appointing river water level, flow and rainfall data,
Data processing of water level, flow and rainfall of specified river area,
The default values of the generic response frame are:
FFFF Normal EEEE Exception
The following is a protocol property identification application description:
data communication between the intelligent Internet of things equipment and the central gateway, namely directly acquiring a data domain and a data theme (subclass identification) according to the fixed-length and behavior identification;
the intelligent Internet of things equipment forms a fog operation cluster, and data or interactive information can be directly acquired according to the end point ID and the class identification;
the intelligent Internet of things equipment AI performs anthropomorphic interaction, namely conversation contents are directly sent according to the behavior type identification, the subclass identification and the destination equipment;
in three special scenes, a subclass identification field of data can be defined so as to control the analysis and the behavior direction of the message.
And performing application analysis and calculation according to the definition, or directly acquiring a useful data part in the message.

Claims (6)

1. A communication method of an Internet of things interaction protocol based on water conservancy data acquisition and control is characterized in that the Internet of things comprises a terminal acquisition device, a main station, a user terminal device and a communication network, wherein the terminal acquisition device, the main station, the user terminal device and the user terminal device are located on the site and are networked through the communication network, the terminal acquisition device is provided with a sensor for acquiring various hydrological data, the terminal acquisition device and the main station, the user terminal device and the main station, and the terminal acquisition device and the user terminal device are in interactive communication through a special interaction protocol, and the interaction protocol has the following structure:
AE(BE)
[ overall length (2) ] [ behavior class (2) ] [ framing number (2) ] [ checksum (8) ]
DE
[ ID Length (1) ] [ device ID per se ] [ ID Length (1) ] [ destination device ID ]
DE
[ subclass identification (1) ] [ data body length (2) ] [ data validity check (8) ]
CD
[ subclass identification (1) ] [ device interaction information length (2) ] [ device interaction information ] [ block code (48) ]
BC
[ subclass identification (1) ] [ dialog length (2) ] [ dialog content ] [ dialog SessionID (8) ] [ TOKEN check field (8) ]
EA(EB)
The above structure of the interaction protocol defines:
the head frame of the uplink message is marked as AE, the downlink is BE, the tail frame of the uplink message is marked as EA, and the downlink is EB; the interactive driving party and the interactive passive party can be directly and obviously distinguished;
the identification domain is separated from the main body by DE characters, and the purpose is to directly check the message legality or directly take ID domain information according to a fixed length;
the interactive frame tail of the data class is CD, the interactive class of the equipment is BC, and the positioned class information and data are directly obtained by cutting;
the subclass mark defines the transaction classification of the content, and the EE mark has no content;
the data verification domain is a dynamic token of the equipment, and the block code is a previous equipment of the equipment chain and the token chain of the equipment and is used for verifying the trust information; the session SessionID is the binding ID of the session content class;
the checksum is the sum of all bytes and is used for checking the message entity.
2. The communication method of the internet of things interaction protocol based on water conservancy data acquisition and control as claimed in claim 1, wherein: in the interaction protocol
Predefined behavior-oriented type definitions:
(1) behavior class first byte 03 + behavior class second byte AF: long connection registration
(2) Behavior class first byte 01 + behavior class second byte AF: short connection mark
(3) Behavior class first byte 02 + behavior class second byte EF: long connection heartbeat/short connection signal broadcasting master station
(4) Behavior class first byte 05 + behavior class second byte 01: active reporting of data
(5) Behavior class first byte 05 + behavior class second byte 03: data recall test return
(6) Behavior class first byte 05 + behavior class second byte 05: transparent data transmission
(7) Behavior class first byte 06 + behavior class second byte AF: active reporting of events and faults
(8) Behavior class first byte 06 + behavior class second byte BF: event, failure recall return
(9) Behavior class first byte EF + behavior class second byte EF: forwarding or transparent transmission interactive dialogue;
other types of custom extensions;
the predefined behavior types are specifically:
(1) 03AF long connection registration
The server stores the correspondence between the connection of the equipment and the head ID, generates a TOKEN of a check domain according to the fixed parameters and replies the TOKEN to the equipment;
(2) 01AF short connection identification
The device or the sensor initiates the server or the collector, the server definitely recognizes the connection as short connection after receiving the short connection, the communication mode of the device is a short connection mode, and responses a confirmation frame after logging all the head information, and closes the connection;
(3) 02EF long-connection heartbeat/short-connection signal broadcast main station
The device side is used for synchronously notifying the existence of the master station, so that the master station side can know that the device exists and is in a working state; the effective time length is self-defined according to the equipment condition;
(4) 0501 data active reporting
The device is used for the synchronous or asynchronous active reporting of the collected data of the equipment, and the reporting interval of the real-time or non-real-time data is self-defined;
(5) 0503 data recall return
The device side is used for calling the data initiated by the server side, and the device side processes the command and then returns the corresponding data; self-defining the overtime duration;
(6) 0505 data transparent transmission
The method is used for all end-to-end message transparent forwarding and gateway positioning forwarding;
(7) 06AF event and fault active reporting
The method is used for reporting the event and fault data actively initiated by the server, and if 06EE is the identifier, all the events are normal;
(8) 06BF event, failure recall return
The device side is used for responding to the data of the server side event and the fault recall test; if 06EE, all is normal;
(9) EFEF forwarding or transparent transmission interactive session
The method is used for end-to-end interactive transparent transmission between the interactive gateway pair equipment and the user.
3. The water conservancy data acquisition and control-based communication method of the internet of things interaction protocol as claimed in claim 2, wherein: the identity authentication in the message interaction in the method is confirmed by the head identification information of long connection login or short connection, the login information and the identity identification information are fixed by MD5 and a time label, the identity information and the connection are stored by a server in a key value pair mode, and the state parameter of the first connection in the effective duration is stored by the short connection.
4. The communication method of the Internet of things interaction protocol based on water conservancy data acquisition and control as claimed in claim 3, wherein: the data domain and information domain encryption of the message in the method uses an encryption machine of a main station server, the parameter value added or subtracted to or from each byte or every two bytes is generated at dynamic time intervals, and the weight of the last time is kept when the dynamic change of each time is carried out.
5. The water conservancy data acquisition and control-based communication method of the Internet of things interaction protocol as claimed in claim 4, wherein: the method comprises the following steps of:
after the message is acquired, the TOKEN is analyzed, and the identity legitimacy of the TOKEN must be confirmed by the server side and the equipment side; and obtaining the weight value for decryption through the main station encryption machine after confirming that the TOKEN is legal.
6. The communication method of the Internet of things interaction protocol based on water conservancy data acquisition and control as claimed in claim 5, wherein: the message in the communication engineering in the method comprises the following four data formats: JSON, XML, TXT, BYTE
JSON is used primarily for the encapsulation of data classes,
XML format for encapsulation of instructions and configurations
The TXT format, used primarily in natural language in interaction,
the BYTE is used for transmitting files and streaming data, and the files generated by the sensor or the concentrator are split in real time, packaged and sent to each end; and is also the main transmission format for remote upgrade.
CN202110524264.7A 2021-05-13 2021-05-13 Communication method of Internet of things interaction protocol based on water conservancy data acquisition and control Active CN113329064B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110524264.7A CN113329064B (en) 2021-05-13 2021-05-13 Communication method of Internet of things interaction protocol based on water conservancy data acquisition and control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110524264.7A CN113329064B (en) 2021-05-13 2021-05-13 Communication method of Internet of things interaction protocol based on water conservancy data acquisition and control

Publications (2)

Publication Number Publication Date
CN113329064A CN113329064A (en) 2021-08-31
CN113329064B true CN113329064B (en) 2022-11-25

Family

ID=77415556

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110524264.7A Active CN113329064B (en) 2021-05-13 2021-05-13 Communication method of Internet of things interaction protocol based on water conservancy data acquisition and control

Country Status (1)

Country Link
CN (1) CN113329064B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115909687A (en) * 2022-12-07 2023-04-04 上海创能国瑞新能源科技股份有限公司 A portable dual-carbon intelligent sensing detection device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101692675A (en) * 2009-10-20 2010-04-07 中国电子科技集团公司第二十八研究所 Multichannel intelligent data communication processing system
CN103200253A (en) * 2013-03-27 2013-07-10 江苏航天智联信息科技发展有限公司 Water conservation Internet of things oriented multiple heterogeneous network communication protocol building method
CN104460635A (en) * 2014-12-24 2015-03-25 四川谊田集群科技有限公司 Integrated information platform system based on intelligent hydraulic power plant
CN105763426A (en) * 2016-04-12 2016-07-13 北京理工大学 Multiprotocol instant messaging system-based Internet of Things business processing system
CN106254392A (en) * 2016-09-28 2016-12-21 天津轻工职业技术学院 Communication means based on the exTLV Message Protocol that dynamically can customize
CN109040144A (en) * 2018-10-19 2018-12-18 京信通信系统(中国)有限公司 Things-internet gateway data processing method, device, storage medium and gateway

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150052253A1 (en) * 2014-09-22 2015-02-19 Weaved, Inc. Multi-server fractional subdomain dns protocol
CN102714814A (en) * 2012-03-06 2012-10-03 华为终端有限公司 Data transmission method and system, electrical gateway and master station
CN105721490A (en) * 2015-07-01 2016-06-29 北京东润环能科技股份有限公司 Intelligent collection terminal, master station system and data processing method
CN106131085B (en) * 2016-08-31 2019-09-17 江苏蓝创智能科技股份有限公司 The communication means of remote intelligent control system
CN107800554B (en) * 2016-09-05 2021-04-09 华为数字技术(苏州)有限公司 Data collection method, device and system
CN107547574B (en) * 2017-10-31 2020-08-25 哈尔滨工业大学 A communication system and method based on general protocol
US10939430B2 (en) * 2017-10-31 2021-03-02 Cth Lending Company, Llc Communication protocol overlay
CN108234614B (en) * 2017-12-25 2020-02-18 华南理工大学 An interaction method based on custom protocol and Netty framework
CN109510759B (en) * 2018-10-22 2021-08-06 智强通达科技(北京)有限公司 System and method for realizing rapid universal multi-protocol gateway
CN109495492B (en) * 2018-12-05 2021-03-23 四川奥地建筑设计有限公司 Communication system for intelligent water business industry
CN111464322B (en) * 2019-01-18 2023-05-26 阿里巴巴集团控股有限公司 Communication method, device and equipment of Internet of things platform and equipment and storage medium
CN110581847A (en) * 2019-08-26 2019-12-17 杭州城市大数据运营有限公司 Input foreknowledge system
CN110719296B (en) * 2019-10-25 2022-11-22 福建网能科技开发有限责任公司 A method for automatically parsing message data in a terminal communication protocol
CN111698306B (en) * 2020-06-04 2021-08-06 中国科学院地理科学与资源研究所 A method for collecting and processing hydrological real-time stream data based on the Internet of Things
CN111935322B (en) * 2020-10-12 2021-03-23 之江实验室 Industrial internet control system and method based on PowerLink industrial protocol
CN112311862A (en) * 2020-10-21 2021-02-02 湖南涛峻科技有限公司 Multifunctional interconnection communication protocol system and data state maintenance process thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101692675A (en) * 2009-10-20 2010-04-07 中国电子科技集团公司第二十八研究所 Multichannel intelligent data communication processing system
CN103200253A (en) * 2013-03-27 2013-07-10 江苏航天智联信息科技发展有限公司 Water conservation Internet of things oriented multiple heterogeneous network communication protocol building method
CN104460635A (en) * 2014-12-24 2015-03-25 四川谊田集群科技有限公司 Integrated information platform system based on intelligent hydraulic power plant
CN105763426A (en) * 2016-04-12 2016-07-13 北京理工大学 Multiprotocol instant messaging system-based Internet of Things business processing system
CN106254392A (en) * 2016-09-28 2016-12-21 天津轻工职业技术学院 Communication means based on the exTLV Message Protocol that dynamically can customize
CN109040144A (en) * 2018-10-19 2018-12-18 京信通信系统(中国)有限公司 Things-internet gateway data processing method, device, storage medium and gateway

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
面向即插即用的物联网传感设备数据采集系统;李贡湘等;《中国海洋大学学报(自然科学版)》;20130515(第05期);全文 *

Also Published As

Publication number Publication date
CN113329064A (en) 2021-08-31

Similar Documents

Publication Publication Date Title
CN109510759A (en) A kind of Universal-purpose quick multi-protocol gateway realization system and method
CN108322356A (en) A kind of industrial network gateway compatibility test method based on MQTT
CN106131205B (en) Big data information processing system and method for Internet of Things
CN112822276A (en) Substation control layer communication method and system for transformer substation, electronic equipment and storage medium
CN111294235B (en) Data processing method, device, gateway and readable storage medium
CN113691408B (en) Power data communication network simulation method, device and computer equipment
CN113329064B (en) Communication method of Internet of things interaction protocol based on water conservancy data acquisition and control
CN114025015A (en) Message transmission method and device
CN108206864B (en) Vehicle information synchronization real-time query system and information synchronization method based on WeChat
CN110572315A (en) A method and device for information interaction, a robot, and a storage medium
CN103310022B (en) A kind of protection definite value online tracing system and method
PT1422872E (en) Modular method and device for the tracing of a multimedia message through a telecommunications network
CN112511365A (en) Performance measurement method, device, equipment and storage medium
CN104144438B (en) A kind of method and system of centralized configuration and management nodes
CN116074399B (en) Data acquisition and control system and method based on visual configuration flexible access
WO2025000733A1 (en) Ethernet transmission-based data encapsulation method, probe, acquisition method, and system
CN116150228A (en) Industrial time sequence data processing method, device, terminal and storage medium
CN111193611A (en) Client side fault monitoring method using MAS machine
CN111182487B (en) Data sending method, data receiving method and device
CN116033035B (en) High-precision space-time label generation and embedding method for network data packet
CN101222736B (en) Method for acquiring assigned single plate interactive message code stream inside of base station
CN119254775B (en) A dual-channel data asynchronous communication method, system and storage medium across power safety zones
CN116248778B (en) Data fusion transmission method and system in multi-protocol environment
Zhou et al. Design of geomagnetic data platform system for the internet of vehicle
Ozansoy et al. Modelling of a network data delivery service middleware for substation communication systems using OPNET

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
GR01 Patent grant
GR01 Patent grant