CN112511416A - Rule-based data communication protocol conversion system, decoding method and encoding method - Google Patents

Rule-based data communication protocol conversion system, decoding method and encoding method Download PDF

Info

Publication number
CN112511416A
CN112511416A CN202011324532.2A CN202011324532A CN112511416A CN 112511416 A CN112511416 A CN 112511416A CN 202011324532 A CN202011324532 A CN 202011324532A CN 112511416 A CN112511416 A CN 112511416A
Authority
CN
China
Prior art keywords
protocol
rule
message
data
protocol conversion
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
CN202011324532.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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN202011324532.2A priority Critical patent/CN112511416A/en
Publication of CN112511416A publication Critical patent/CN112511416A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/03Protocol definition or specification 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)
  • Communication Control (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention relates to the technical field of communication protocols of the Internet of things, in particular to a rule-based data communication protocol conversion system, a decoding and encoding method, which realizes online upgrade and update of protocols, improves the adaptability and the real-time property of protocol conversion, greatly expands the protocol adaptation range and is not limited to realize conversion between specific protocols only aiming at a specific protocol range. The technical scheme includes that the intelligent gateway comprises a protocol conversion engine and a communication access module, and the protocol conversion engine is respectively connected with the communication access module and the message rule pushing server; the message rule pushing server is used for providing a protocol conversion rule configuration file for the protocol conversion engine, and the protocol conversion engine is used for downloading and updating the protocol conversion rule configuration file from the message rule pushing server to generate a corresponding protocol converter and converting an access device protocol through the protocol converter. The invention is suitable for data communication based on rule.

Description

Rule-based data communication protocol conversion system, decoding method and encoding method
Technical Field
The invention relates to the technical field of communication protocols of the Internet of things, in particular to a data communication protocol conversion system based on a rule form and a decoding and encoding method.
Background
The rapid development of the internet of things technology and the diversification of the equipment access mode, particularly the development of the narrow-band communication technology, are evolved from pure Wifi access to a mode that the narrow-band gateway needs to be passed through and then the internet is connected. How to adopt an efficient way, establish as many device access points as possible with as good compatibility, becomes the focus of efforts for the parties.
The popularization of the internet of things technology generally faces a very short technical pattern. Decentralization is the main trend in the current development of IT technology. Under the diversity access pattern, formats of different kinds and different protocol specifications are diversified. In consideration of cost, the performance of a general gateway is weak, and a traditional access mode of an internet of things gateway adopts a mode of directly performing directional docking aiming at a protocol, which requires that the gateway must complete protocol support for a device when issuing, so that the device must perform docking by a specific gateway.
With the continuous development of the edge computing technology framework, the performance of the gateway is gradually enhanced, the protocol processing capability is stronger, and the processing modes are diversified. In a patent with a patent number CN201811357089.1 entitled "an edge computing gateway based on a rule engine", a rule is used at an edge for the first time, and can be upgraded by means of a cloud platform, so that the edge computing gateway has a certain rule data processing capability, the protocol conversion is realized by using an edge computing module, the rule engine is used for reading real-time data of a multidimensional data source as input of a model algorithm, dynamic protocol adaptation is not performed, and the rule itself does not explicitly indicate whether the gateway has a continuous upgrading capability. In a patent with a patent number of cn200710067086.x entitled "a method for implementing a 103 protocol to convert to a universal gateway design of IEC61850 standard", a special tool based on XML Spy is used to implement conversion between specific protocols for a specific protocol range, but the use of XML is too complicated, the conversion is performed for a specific IEC61850 protocol family, the application range is not wide, and a more brief automatic upgrading mode supported by a cloud platform is not mentioned for the protocol upgrading method. In patent No. CN200710031116.1 entitled "a method for designing a universal gateway based on object model and protocol configuration", an automatically generated upgrade program is used instead of a rule type, and the object gateway needs a dedicated gateway, which limits the use of the gateway for large-scale universal gateways. In order to enhance the cross-platform universality, the wide compatibility of the protocol and the flexibility of the sustainable upgrading of the protocol of the gateway accessed by the equipment, some edge system manufacturers, such as Baidu and Ali, try to adopt development languages such as JavaScript or Lua and the like as carriers in the field of universal access gateway products, and enable the gateway to have the equipment access support capability of upgrading after release in a remote push mode.
But has problems that: the adaptability of protocol conversion is not strong, the protocol adaptation range is not wide, the conversion between specific protocols can be realized only aiming at the specific protocol range, the real-time performance of protocol conversion is not strong, a corresponding updating mechanism is lacked, and the development and test period of a new protocol is longer.
Disclosure of Invention
The invention aims to provide a rule-based data communication protocol conversion system, a decoding and encoding method, which realize online upgrade and update of protocols, improve the adaptability and the real-time property of protocol conversion, greatly expand the protocol adaptation range and are not limited to realize conversion between specific protocols only aiming at a specific protocol range.
The invention adopts the following technical scheme to realize the purpose, and the data communication protocol conversion system based on the rule comprises: message rule push server and intelligent gateway, intelligent gateway includes: the protocol conversion engine is respectively connected with the communication access module and the message rule pushing server;
the message rule pushing server is used for providing a protocol conversion rule configuration file for a protocol conversion engine and providing a checking and intelligent updating mechanism of the protocol conversion rule configuration file, wherein the configuration file comprises updating information of a protocol conversion rule, supported protocol types, field forming positions of protocols under each type, data types, storage length and conversion meaning protocols of the protocols;
the protocol conversion engine is used for downloading an updated protocol conversion rule configuration file from the message rule pushing server, analyzing the protocol conversion rule configuration file and generating a corresponding protocol converter, wherein the protocol converter comprises an encoder and a decoder, and the protocol converter is used for encoding and decoding and converting byte stream protocol data of intelligent equipment accessed to the gateway through the encoder and the decoder;
the communication access module is used for accessing external intelligent equipment into the gateway and reading byte stream protocol data of the intelligent equipment.
Further, the protocol conversion engine comprises a rule type file analysis engine and a protocol message converter;
the rule type file analysis engine is used for analyzing the rule configuration file acquired from the message rule pushing server according to the system rule to generate a protocol message converter;
the protocol message converter is used for constructing a protocol conversion rule structure and a calculation method and defining the structures of coding and decoding data processing and calculation logics and rules of each message.
Further, in order to manage the accessed different protocol networks, the gateway further comprises a network channel manager, the network channel manager is connected with the protocol conversion engine, and the network channel manager is used for managing the protocol networks of the access gateway.
Further, in order to improve the efficiency of message processing, the gateway further comprises a message forwarding bus, and the message forwarding bus is connected with the network channel manager.
Further, in order to improve application processing of the message, the gateway further comprises a message application module, and the message application module is connected with the message forwarding bus.
The decoding method of the data communication protocol based on the rule formula is applied to the data communication protocol conversion system based on the rule formula, and comprises the following steps:
step 101, a protocol conversion engine downloads an updated protocol conversion rule configuration file from a message rule pushing server, and analyzes the configuration file to generate a corresponding protocol converter, wherein the protocol converter comprises a decoder;
step 102, a protocol conversion engine monitors and reads byte stream protocol data of an intelligent device IO port of an access gateway;
103, checking the read byte stream protocol data, and cutting the protocol data in a sub-packet mode after the check is passed;
step 104, extracting message type marks of the cut protocol data, and configuring a corresponding decoder for the extracted protocol data according to the specified characteristic field;
and 105, identifying the extracted protocol data according to the configured decoder, discarding the protocol data which is not identified if the identification is failed, and decoding the protocol data which is successfully identified if the identification is successful.
Further, in step 102, the specific method for monitoring byte stream protocol data from an IO port of an intelligent device includes: according to system configuration, the message conversion service matches different protocol byte stream converters for different intelligent device IO interfaces; the protocol conversion engine then begins to listen for byte stream protocol data from the intelligent device IO port.
Further, in step 105, the specific implementation method for decoding the successfully identified protocol data includes: searching a decoder corresponding to the successfully identified protocol data, traversing the successfully identified protocol data according to fields to execute the decoder, and recursively searching the sub-decoders of the successfully identified protocol data until the decoding of the protocol data is completed; and to complement data fields not contained in the decoder, but which must be present in the target message structure.
The encoding method of the data communication protocol based on the rule formula is applied to the data communication protocol conversion system based on the rule formula, and comprises the following steps:
step 201, a protocol conversion engine downloads an updated protocol conversion rule configuration file from a message rule push server, and analyzes the configuration file to generate a corresponding protocol converter, wherein the protocol converter comprises an encoder;
step 202, a protocol conversion engine monitors byte stream protocol data from an IO port of intelligent equipment;
step 203, checking the read byte stream protocol data, and cutting the protocol data in a sub-packet mode after the check is passed;
step 204, extracting message type marks of the cut protocol data, and configuring a corresponding encoder for the extracted protocol data according to the specified characteristic field;
step 205, traversing the extracted protocol data according to the fields according to the configuration of the corresponding encoder, encoding each field value, generating a corresponding byte message structure, and performing recursion on the fields to be encoded having the substructures until all the field attributes are encoded.
Further, the encoding method of the rule-based data communication protocol further includes:
step 206, complementing fields which are not included in the message encoder but are required to be included in the target message structure;
and step 207, assembling the coded field buffers in sequence to form final coded byte data.
The message rule pushing server provides a protocol conversion rule configuration file for a protocol conversion engine, and provides a checking and intelligent updating mechanism for the protocol conversion rule configuration file, so that online upgrading and updating of a protocol are realized; the provided configuration file comprises the updating information of the protocol conversion rule, the supported protocol type, the field forming position of the protocol under each type, the data type, the storage length and the conversion meaning protocol thereof, the protocol conversion engine downloads and updates the protocol conversion rule configuration file before the protocol is converted each time, then analyzes the configuration file and generates the protocol converter, and the protocol converter is used for realizing the protocol conversion, so the adaptability and the real-time property of the protocol conversion are improved, the protocol adaptation range is greatly expanded, and the conversion between specific protocols can be realized only aiming at the specific protocol range.
Drawings
Fig. 1 is a block diagram of a system architecture of a rule-based data communication protocol conversion system according to the present invention.
Fig. 2 is a schematic block diagram of an application architecture of the rule-based data communication protocol conversion system of the present invention.
Fig. 3 is a schematic block diagram of an application system deployment of the rule-based data communication protocol conversion system according to the present invention.
Detailed Description
The invention relates to a rule-based data communication protocol conversion system, which comprises: message rule push server and intelligent gateway, intelligent gateway includes: the protocol conversion engine is respectively connected with the communication access module and the message rule pushing server;
the message rule pushing server is used for providing a protocol conversion rule configuration file for the protocol conversion engine and providing a checking and intelligent updating mechanism of the protocol conversion rule configuration file, wherein the configuration file comprises updating information of the protocol conversion rule, supported protocol types, field forming positions of protocols under each type, data types, storage lengths and conversion meaning protocols thereof;
the intelligent updating mechanism is used for updating a protocol conversion definition rule file, a local protocol conversion engine is started and then regularly requests a message conversion rule pushing server for rule file updating information, the updating information comprises rule names, a rule file name list and corresponding request addresses, a rule type file server sends the rule file updating information to the protocol conversion engine, and the protocol conversion engine updates the corresponding rule file through the request addresses;
the format of the rule configuration file comprises but is not limited to any descriptive language such as XML/JSON/YAML and the like which can describe a recursive hierarchy;
the rule configuration file adopts a recursion description structure, forms mapping from a universal complex structure to a hierarchical data structure for byte stream data messages with any structure, and enables data to be subjected to structure-independent data access on the messages by a universal message processing back-end program;
the protocol conversion engine is used for downloading and updating a protocol conversion rule configuration file from the message rule pushing server, analyzing the protocol conversion rule configuration file and generating a corresponding protocol converter, wherein the protocol converter comprises an encoder and a decoder, and the protocol converter is used for encoding and decoding and converting byte stream protocol data of intelligent equipment accessed to the gateway through the encoder and the decoder;
the protocol conversion engine is an independent software module irrelevant to a specific data gateway basic system and a communication access mode, and provides a message data conversion intermediate storage structure, a message conversion management scheduling mechanism, a protocol conversion configuration management mechanism and a conversion execution mechanism for protocol conversion;
the data conversion intermediate storage structure is a data structure which is required to be generated in the conversion process and is used for storing the intermediate calculation process;
the message conversion management scheduling mechanism is used for driving the slave communication access module to read in data according to a certain sequence, triggering a message conversion process, and detecting and discarding error or failure data;
the protocol conversion configuration management mechanism is used for scanning and loading a protocol conversion definition rule file for setting a storage position, generating a protocol message converter and carrying out updating and reloading processing on the rule file;
the conversion execution mechanism is a set of a series of conversion calculation processes for specifically calculating a target message data structure from legitimate original message data;
the communication access module is used for accessing external intelligent equipment into the gateway and reading byte stream protocol data of the intelligent equipment; the communication access module also performs message subpackage and verification processing on the message original data of the application data protocol and writes the message original data into an unprocessed message queue; or reading out the coded message from the queue and writing the coded message into an IO interface of the equipment;
the protocol conversion engine also comprises a rule type file analysis engine and a protocol message converter;
the rule type file analysis engine is used for analyzing the rule type file acquired from the message rule pushing server according to a system rule to generate a protocol message converter;
the protocol message converter is used for constructing a protocol conversion rule structure and a calculation method, and defining the structures of coding and decoding data processing and calculation logics and rules of each message.
In order to manage the accessed different protocol networks, the gateway further comprises a network channel manager, the network channel manager is connected with the protocol conversion engine, and the network channel manager is used for managing the protocol networks of the access gateway.
In order to improve the efficiency of message processing, the gateway further comprises a message forwarding bus, and the message forwarding bus is connected with the network channel manager.
In order to improve the application processing of the message, the gateway further comprises a message application module, and the message application module is connected with the message forwarding bus.
The decoding method of the data communication protocol based on the rule formula is applied to the data communication protocol conversion system based on the rule formula, and comprises the following steps:
step 101, a protocol conversion engine downloads an updated protocol conversion rule configuration file from a message rule pushing server, and analyzes the configuration file to generate a corresponding protocol converter, wherein the protocol converter comprises a decoder;
step 102, a protocol conversion engine monitors and reads byte stream protocol data of an intelligent device IO port of an access gateway;
103, checking the read byte stream protocol data, and cutting the protocol data in a sub-packet mode after the check is passed;
step 104, extracting message type marks of the cut protocol data, and configuring a corresponding decoder for the extracted protocol data according to the specified characteristic field;
and 105, identifying the extracted protocol data according to the configured decoder, discarding the protocol data which is not identified if the identification is failed, and decoding the protocol data which is successfully identified if the identification is successful.
In step 102, the specific method for monitoring byte stream protocol data from an IO port of an intelligent device includes: according to system configuration, the message conversion service matches different protocol byte stream converters for different intelligent device IO interfaces; the protocol conversion engine then begins to listen for byte stream protocol data from the intelligent device IO port.
In step 105, the specific implementation method for decoding the successfully identified protocol data includes: searching a decoder corresponding to the successfully identified protocol data, traversing the successfully identified protocol data according to fields to execute the decoder, and recursively searching the sub-decoders of the successfully identified protocol data until the decoding of the protocol data is completed; and to complement data fields not contained in the decoder, but which must be present in the target message structure.
The encoding method of the data communication protocol based on the rule formula is applied to the data communication protocol conversion system based on the rule formula, and comprises the following steps:
step 201, a protocol conversion engine downloads an updated protocol conversion rule configuration file from a message rule pushing server, and analyzes the configuration file to generate a corresponding protocol converter, wherein the protocol converter comprises a decoder and an encoder;
step 202, a protocol conversion engine monitors byte stream protocol data from an IO port of intelligent equipment;
step 203, checking the read byte stream protocol data, and cutting the protocol data in a sub-packet mode after the check is passed;
step 204, extracting message type marks of the cut protocol data, and configuring a corresponding encoder for the extracted protocol data according to the specified characteristic field;
step 205, traversing the extracted protocol data according to the fields according to the configuration of the corresponding encoder, encoding each field value, generating a corresponding byte message structure, and performing recursion on the fields to be encoded having the substructures until all the field attributes are encoded.
The encoding method of the rule-based data communication protocol further includes:
step 206, complementing fields which are not included in the message encoder but are required to be included in the target message structure;
and step 207, assembling the coded field buffers in sequence to form final coded byte data.
The system structure block diagram of the rule-based data communication protocol conversion system of the present invention, as shown in fig. 1, includes a message rule push server and an intelligent gateway, where the intelligent gateway includes: the protocol conversion engine is respectively connected with the communication access module, the message rule pushing server and the network channel manager, the message forwarding bus is connected with the network channel manager, and the message application module is connected with the message forwarding bus; the protocol conversion engine is used for downloading and updating a protocol conversion rule configuration file from the message rule pushing server, analyzing the protocol conversion rule configuration file and generating a corresponding protocol converter, and the protocol converter comprises a decoder and an encoder.
The application architecture of the data communication protocol conversion system based on the rule type is shown in a schematic block diagram, as shown in fig. 2, an intelligent gateway comprises cloud docking, distribution scheduling and protocol conversion, the distribution scheduling is respectively connected with the cloud docking and the protocol conversion, intelligent equipment is connected to the intelligent gateway, is sent to the cloud docking through the distribution scheduling after the protocol conversion, is connected with equipment management cloud through the cloud docking, the equipment management cloud manages the intelligent equipment, the equipment management cloud can also transmit data information of the intelligent equipment to an internet of things service cloud, and the internet of things service cloud can record the data information and perform comprehensive service management on the intelligent equipment.
According to the application system deployment schematic block diagram of the rule-based data communication protocol conversion system, as shown in fig. 3, an intelligent device is accessed into an application system through an intelligent gateway, the protocol of the accessed intelligent device is converted through an intelligent gateway protocol message rule, the protocol message rule is maintained and updated by a protocol upgrading service and is issued to the intelligent gateway to update the protocol message rule, the protocol upgrading service is connected with a device management cloud, the protocol message rule is updated through the device management cloud, the device management cloud is connected with an internet of things service cloud, and managed device data information is uploaded to the internet of things service cloud.
Compared with a message conversion adaptation mode developed by using a traditional plug-in or script language, the invention pays more attention to the characteristic that the protocol message structure is similar, adopts a relatively fixed rule mode, unifies the flow of message conversion, stabilizes most of protocol conversion codes, provides adaptation of a variable part of message conversion as little as possible, has better stability and conversion efficiency, can quickly adapt fragmented application data protocols, and realizes separation of development and popularization of gateway products and protocol support upgrading through online upgrading of rule files, so that large-scale realization of standardized interconnection gateways becomes possible, and the invention has excellent industrial economic value.
In conclusion, the invention realizes the online upgrade and update of the protocol, improves the adaptability and the real-time property of protocol conversion, greatly expands the protocol adaptation range and is not limited to realize the conversion between specific protocols only aiming at the specific protocol range.

Claims (10)

1. A rule-based data communication protocol conversion system, comprising: message rule push server and intelligent gateway, intelligent gateway includes: the protocol conversion engine is respectively connected with the communication access module and the message rule pushing server;
the message rule pushing server is used for providing a protocol conversion rule configuration file for a protocol conversion engine and providing a checking and intelligent updating mechanism of the protocol conversion rule configuration file, wherein the configuration file comprises updating information of a protocol conversion rule, supported protocol types, field forming positions of protocols under each type, data types, storage length and conversion meaning protocols of the protocols;
the protocol conversion engine is used for downloading an updated protocol conversion rule configuration file from the message rule pushing server, analyzing the protocol conversion rule configuration file and generating a corresponding protocol converter, wherein the protocol converter comprises an encoder and a decoder, and the protocol converter is used for encoding and decoding and converting byte stream protocol data of intelligent equipment accessed to the gateway through the encoder and the decoder;
the communication access module is used for accessing external intelligent equipment into the gateway and reading byte stream protocol data of the intelligent equipment.
2. The system of claim 1, wherein the protocol conversion engine comprises a rule based file parsing engine and a protocol message converter;
the rule type file analysis engine is used for analyzing the rule configuration file acquired from the message rule pushing server according to the system rule to generate a protocol message converter;
the protocol message converter is used for constructing a protocol conversion rule structure and a calculation method and defining the structures of coding and decoding data processing and calculation logics and rules of each message.
3. The system according to claim 1 or 2, wherein the gateway further comprises a network path manager, the network path manager is connected to the protocol conversion engine, and the network path manager is configured to manage the protocol network of the access gateway.
4. The system of claim 3, wherein the gateway further comprises a message forwarding bus, the message forwarding bus being connected to the network path manager.
5. The system of claim 4, wherein the gateway further comprises a message application module, the message application module being coupled to the message forwarding bus.
6. The decoding method of rule-based data communication protocol applied to the rule-based data communication protocol conversion system according to any one of claims 1 to 5, comprising:
step 101, a protocol conversion engine downloads an updated protocol conversion rule configuration file from a message rule pushing server, and analyzes the configuration file to generate a corresponding protocol converter, wherein the protocol converter comprises a decoder;
step 102, a protocol conversion engine monitors and reads byte stream protocol data of an intelligent device IO port of an access gateway;
103, checking the read byte stream protocol data, and cutting the protocol data in a sub-packet mode after the check is passed;
step 104, extracting message type marks of the cut protocol data, and configuring a corresponding decoder for the extracted protocol data according to the specified characteristic field;
and 105, identifying the extracted protocol data according to the configured decoder, discarding the protocol data which is not identified if the identification is failed, and decoding the protocol data which is successfully identified if the identification is successful.
7. The decoding method of the rule-based data communication protocol according to claim 6, wherein in step 102, the specific method for monitoring byte stream protocol data from the IO port of the smart device includes: according to system configuration, the message conversion service matches different protocol byte stream converters for different intelligent device IO interfaces; the protocol conversion engine then begins to listen for byte stream protocol data from the intelligent device IO port.
8. The method of claim 6, wherein the step 105 of decoding the successfully identified protocol data comprises: searching a decoder corresponding to the successfully identified protocol data, traversing the successfully identified protocol data according to fields to execute the decoder, and recursively searching the sub-decoders of the successfully identified protocol data until the decoding of the protocol data is completed; and to complement data fields not contained in the decoder, but which must be present in the target message structure.
9. The coding method of the rule-based data communication protocol is applied to the rule-based data communication protocol conversion system according to any one of claims 1 to 5, and comprises the following steps:
step 201, a protocol conversion engine downloads an updated protocol conversion rule configuration file from a message rule push server, and analyzes the configuration file to generate a corresponding protocol converter, wherein the protocol converter comprises an encoder;
step 202, a protocol conversion engine monitors byte stream protocol data from an IO port of intelligent equipment;
step 203, checking the read byte stream protocol data, and cutting the protocol data in a sub-packet mode after the check is passed;
step 204, extracting message type marks of the cut protocol data, and configuring a corresponding encoder for the extracted protocol data according to the specified characteristic field;
step 205, traversing the extracted protocol data according to the fields according to the configuration of the corresponding encoder, encoding each field value, generating a corresponding byte message structure, and performing recursion on the fields to be encoded having the substructures until all the field attributes are encoded.
10. The method of claim 9, further comprising:
step 206, complementing fields which are not included in the message encoder but are required to be included in the target message structure;
and step 207, assembling the coded field buffers in sequence to form final coded byte data.
CN202011324532.2A 2020-11-23 2020-11-23 Rule-based data communication protocol conversion system, decoding method and encoding method Pending CN112511416A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011324532.2A CN112511416A (en) 2020-11-23 2020-11-23 Rule-based data communication protocol conversion system, decoding method and encoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011324532.2A CN112511416A (en) 2020-11-23 2020-11-23 Rule-based data communication protocol conversion system, decoding method and encoding method

Publications (1)

Publication Number Publication Date
CN112511416A true CN112511416A (en) 2021-03-16

Family

ID=74959237

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011324532.2A Pending CN112511416A (en) 2020-11-23 2020-11-23 Rule-based data communication protocol conversion system, decoding method and encoding method

Country Status (1)

Country Link
CN (1) CN112511416A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113110206A (en) * 2021-04-28 2021-07-13 南京奥拓电子科技有限公司 Internet of things control system and equipment control method for bank outlets
CN113259233A (en) * 2021-07-02 2021-08-13 奥特酷智能科技(南京)有限公司 DDS-based automation gateway of heterogeneous communication protocol
CN113381997A (en) * 2021-06-08 2021-09-10 四川精创国芯科技有限公司 Internet of things universal protocol conversion platform
CN113381999A (en) * 2021-06-08 2021-09-10 杭州昊美科技有限公司 Communication method and device and electronic equipment
CN113422765A (en) * 2021-06-18 2021-09-21 杭州深渡科技有限公司 Data transmission method and device of Internet of things equipment and Internet of things equipment
CN113422719A (en) * 2021-06-22 2021-09-21 北京博创联动科技有限公司 Configuration system and configuration method of protocol conversion gateway and protocol conversion gateway
CN113556359A (en) * 2021-08-04 2021-10-26 京东方科技集团股份有限公司 Communication protocol conversion method, device, system and gateway device
CN113726762A (en) * 2021-08-27 2021-11-30 四川长虹网络科技有限责任公司 Internet of things equipment protocol analysis method based on configuration file
CN114006928A (en) * 2021-11-04 2022-02-01 深圳市骏嘉科技发展有限公司 Internet of things data processing method based on multi-protocol real-time communication
CN114244706A (en) * 2021-11-30 2022-03-25 慧之安信息技术股份有限公司 Edge device access method and system based on rule type protocol conversion engine
CN114363121A (en) * 2021-12-29 2022-04-15 厦门点触科技股份有限公司 Gateway framework supporting custom protocol and implementation method
CN114500601A (en) * 2022-02-09 2022-05-13 南京戎光软件科技有限公司 Internet of things system based on management engine
CN116318876A (en) * 2023-02-16 2023-06-23 江苏特视智能科技有限公司 Special security gateway system for information board information release and operation method thereof
WO2023139426A1 (en) * 2022-01-19 2023-07-27 The Gsi Group Llc Hardware agnostic systems for converting source signals of agricultural equipment to structured signals for communication over computer networks
CN117176830A (en) * 2023-11-03 2023-12-05 三未信安科技股份有限公司 Adaptive conversion method of extensible multi-format protocol password application data

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546442A (en) * 2012-03-09 2012-07-04 北京神州数码思特奇信息技术股份有限公司 Communication protocol conversion technology
CN103888443A (en) * 2014-02-20 2014-06-25 北京优联实科信息科技有限公司 Multiprotocol parsing method and multiprotocol parsing system
CN105141601A (en) * 2015-08-17 2015-12-09 北京佰才邦技术有限公司 Method and device for configuring Internet-of-Things protocol conversion function
US20180139309A1 (en) * 2016-11-15 2018-05-17 Xaptum, Inc. Transforming machine data in a communication system
CN109194620A (en) * 2018-08-06 2019-01-11 深圳市艾特智能科技有限公司 Multichannel communication method, intelligent gateway and readable storage medium storing program for executing
CN110430219A (en) * 2019-08-24 2019-11-08 深圳旦倍科技有限公司 Method and system of the various protocols internet of things equipment from adaptation
CN111131403A (en) * 2019-12-06 2020-05-08 深圳猛犸电动科技有限公司 Message coding and decoding method and device for Internet of things equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546442A (en) * 2012-03-09 2012-07-04 北京神州数码思特奇信息技术股份有限公司 Communication protocol conversion technology
CN103888443A (en) * 2014-02-20 2014-06-25 北京优联实科信息科技有限公司 Multiprotocol parsing method and multiprotocol parsing system
CN105141601A (en) * 2015-08-17 2015-12-09 北京佰才邦技术有限公司 Method and device for configuring Internet-of-Things protocol conversion function
US20180139309A1 (en) * 2016-11-15 2018-05-17 Xaptum, Inc. Transforming machine data in a communication system
CN109194620A (en) * 2018-08-06 2019-01-11 深圳市艾特智能科技有限公司 Multichannel communication method, intelligent gateway and readable storage medium storing program for executing
CN110430219A (en) * 2019-08-24 2019-11-08 深圳旦倍科技有限公司 Method and system of the various protocols internet of things equipment from adaptation
CN111131403A (en) * 2019-12-06 2020-05-08 深圳猛犸电动科技有限公司 Message coding and decoding method and device for Internet of things equipment

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113110206A (en) * 2021-04-28 2021-07-13 南京奥拓电子科技有限公司 Internet of things control system and equipment control method for bank outlets
CN113381997A (en) * 2021-06-08 2021-09-10 四川精创国芯科技有限公司 Internet of things universal protocol conversion platform
CN113381999A (en) * 2021-06-08 2021-09-10 杭州昊美科技有限公司 Communication method and device and electronic equipment
CN113422765A (en) * 2021-06-18 2021-09-21 杭州深渡科技有限公司 Data transmission method and device of Internet of things equipment and Internet of things equipment
CN113422765B (en) * 2021-06-18 2023-04-07 杭州深渡科技有限公司 Data transmission method and device of Internet of things equipment and Internet of things equipment
CN113422719A (en) * 2021-06-22 2021-09-21 北京博创联动科技有限公司 Configuration system and configuration method of protocol conversion gateway and protocol conversion gateway
CN113422719B (en) * 2021-06-22 2022-08-23 北京博创联动科技有限公司 Configuration system and configuration method of protocol conversion gateway and protocol conversion gateway
CN113259233A (en) * 2021-07-02 2021-08-13 奥特酷智能科技(南京)有限公司 DDS-based automation gateway of heterogeneous communication protocol
CN113556359A (en) * 2021-08-04 2021-10-26 京东方科技集团股份有限公司 Communication protocol conversion method, device, system and gateway device
EP4340333A4 (en) * 2021-08-04 2024-05-01 Boe Technology Group Co Ltd Communication protocol conversion method, and device, system, and gateway device
CN113726762A (en) * 2021-08-27 2021-11-30 四川长虹网络科技有限责任公司 Internet of things equipment protocol analysis method based on configuration file
CN114006928A (en) * 2021-11-04 2022-02-01 深圳市骏嘉科技发展有限公司 Internet of things data processing method based on multi-protocol real-time communication
CN114006928B (en) * 2021-11-04 2024-04-19 深圳市骏嘉科技发展有限公司 Internet of things data processing method based on multi-protocol real-time communication
CN114244706A (en) * 2021-11-30 2022-03-25 慧之安信息技术股份有限公司 Edge device access method and system based on rule type protocol conversion engine
CN114244706B (en) * 2021-11-30 2022-07-29 慧之安信息技术股份有限公司 Edge device access method and system based on rule type protocol conversion engine
CN114363121A (en) * 2021-12-29 2022-04-15 厦门点触科技股份有限公司 Gateway framework supporting custom protocol and implementation method
WO2023139426A1 (en) * 2022-01-19 2023-07-27 The Gsi Group Llc Hardware agnostic systems for converting source signals of agricultural equipment to structured signals for communication over computer networks
CN114500601B (en) * 2022-02-09 2024-03-26 南京戎光软件科技有限公司 Internet of things system based on management engine
CN114500601A (en) * 2022-02-09 2022-05-13 南京戎光软件科技有限公司 Internet of things system based on management engine
CN116318876B (en) * 2023-02-16 2023-09-12 江苏特视智能科技有限公司 Special security gateway system for information board information release
CN116318876A (en) * 2023-02-16 2023-06-23 江苏特视智能科技有限公司 Special security gateway system for information board information release and operation method thereof
CN117176830A (en) * 2023-11-03 2023-12-05 三未信安科技股份有限公司 Adaptive conversion method of extensible multi-format protocol password application data
CN117176830B (en) * 2023-11-03 2024-01-26 三未信安科技股份有限公司 Adaptive conversion method of extensible multi-format protocol password application data

Similar Documents

Publication Publication Date Title
CN112511416A (en) Rule-based data communication protocol conversion system, decoding method and encoding method
CN108769109B (en) Unified processing method and system for data of Internet of things heterogeneous equipment
CN110933146B (en) Data conversion method and device and server
CN109768970B (en) Configurable universal protocol generation method
CN111585344B (en) Substation intelligent checking method and device based on total station IED simulation
CN112068808B (en) General processing system for multi-bus data conversion of avionics system
CN107193917A (en) Whole station CONFIG.SYS lossless data update method based on IID
CN111427940B (en) Self-adaptive database conversion method and device
CN110769002A (en) LabVIEW-based message analysis method, system, electronic device and medium
CN110912782A (en) Data acquisition method, device and storage medium
CN113726762A (en) Internet of things equipment protocol analysis method based on configuration file
CN115665020A (en) Communication analysis method, device, equipment and storage medium
CN106599058B (en) RCD file model verification method and device
CN114095535B (en) Method for automatically mapping time sequence variable of physical equipment into digital model
CN111245633B (en) Configuration file of micro-grid main equipment and operation method thereof
WO2007076676A1 (en) A method for automatically producing pdu coding-decoding code based on asn.1 definition
CN114095243A (en) Data filtering method based on configuration
CN113434175A (en) Data processing method, device, storage medium and equipment
CN110839022A (en) Vehicle-mounted control software communication protocol analysis method based on xml language
CN108763127B (en) Method for realizing Modbus adapter capable of realizing interconversion of source data and target data
CN108595166B (en) Method and system for realizing application execution engine of distributed Internet of things
CN112230929A (en) Data analysis method and device of CIM (common information model) and storage medium
CN108196853A (en) For disposing the method for Android system SDK, storage medium, equipment and system
CN113342373B (en) Implementation method and system for Prometheus universal collector
CN114385947B (en) Webpage publishing method, system, device and medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210316