WO2018165902A1 - Method and system for automatically generating communication protocol parsing code - Google Patents

Method and system for automatically generating communication protocol parsing code Download PDF

Info

Publication number
WO2018165902A1
WO2018165902A1 PCT/CN2017/076762 CN2017076762W WO2018165902A1 WO 2018165902 A1 WO2018165902 A1 WO 2018165902A1 CN 2017076762 W CN2017076762 W CN 2017076762W WO 2018165902 A1 WO2018165902 A1 WO 2018165902A1
Authority
WO
WIPO (PCT)
Prior art keywords
communication protocol
code
protocol
instruction information
data query
Prior art date
Application number
PCT/CN2017/076762
Other languages
French (fr)
Chinese (zh)
Inventor
王大勇
刘建东
李涛
Original Assignee
深圳中兴力维技术有限公司
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 深圳中兴力维技术有限公司 filed Critical 深圳中兴力维技术有限公司
Priority to CN201780002446.XA priority Critical patent/CN108141464B/en
Priority to PCT/CN2017/076762 priority patent/WO2018165902A1/en
Publication of WO2018165902A1 publication Critical patent/WO2018165902A1/en

Links

Classifications

    • 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/22Parsing or analysis of headers
    • 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/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]

Definitions

  • the present invention relates to the field of power environment monitoring technologies, and in particular, to a method and system for automatically generating a communication protocol analysis code.
  • the Modbus communication protocol is a general-purpose language applied to electronic controllers (smart devices) and has become a general industry standard. Through this protocol, controllers can communicate with each other and between controllers via a network (such as Ethernet) and other devices.
  • the Modbus communication protocol parsing burst has the following problems:
  • the main object of the present invention is to provide a method and system for automatically generating a communication protocol analysis code, which aims to solve the problems existing in the prior art.
  • a first aspect of the embodiments of the present invention provides a method for automatically generating a communication protocol parsing code, where the method includes the following steps:
  • control instruction configuration information control instruction configuration information
  • monitoring amount analysis information
  • the input data query instruction information, the control instruction information, and the monitoring quantity instruction information and generate a protocol configuration file corresponding to the communication protocol.
  • the method further includes:
  • the data query instruction information, the control instruction information, and the monitoring amount instruction f ⁇ information of the abnormal input are modified.
  • the device communication protocol parsing code formed by the combination is written into the divided device communication protocol framework code source file.
  • the communication protocol is a fixed format communication protocol.
  • a second aspect of the embodiments of the present invention provides a communication protocol parsing code from The system includes: a protocol configuration file generation module, a data query processing module, a control command processing module, a data analysis processing module, and a protocol code generation module;
  • the protocol configuration file generating module is configured to generate a protocol configuration file corresponding to the communication protocol according to the device communication protocol;
  • control command processing module is configured to read and analyze the protocol configuration file, obtain control command configuration information of the device communication protocol, and configure information according to the obtained control instruction of the device communication protocol. Generating a control instruction code;
  • the protocol code generating module is configured to combine the data query instruction code, the control instruction code, and the monitoring analysis code to form the device communication protocol parsing code.
  • the protocol configuration file generating module includes an input unit and a generating unit
  • the generating unit is configured to generate, according to a communication protocol of the device, the data query instruction information, the control instruction information, and the monitoring amount instruction information input by the input unit, to generate a protocol configuration file corresponding to the communication protocol.
  • the protocol configuration file generating module further includes a determining unit and a modifying unit;
  • the determining unit is configured to check and determine whether the input data query instruction information, the control instruction information, and the monitoring amount instruction information are abnormal;
  • the modifying unit is configured to modify the data query instruction information, the control instruction information, and the monitoring amount instruction information of the abnormal input if the determination result of the determining unit is abnormal.
  • the dividing module is configured to split a device communication protocol framework code source file
  • the protocol code generating module is further configured to write the device communication protocol parsing code formed by the combination, and write the score The cut device communication protocol framework code source file.
  • the communication protocol is a fixed format communication protocol.
  • a method and system for automatically generating a communication protocol parsing code realizes automatic generation of a communication protocol parsing code, can quickly generate a style, parse and process a unified communication protocol parsing code, and can also ensure a communication protocol. The accuracy of the parsing improves the maintainability of the protocol code.
  • FIG. 1 is a schematic flowchart of a method for automatically generating a communication protocol analysis code according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of an abnormal input flow in a method for automatically generating a communication protocol analysis code according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of another method for automatically generating a communication protocol analysis code according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a communication protocol analysis code automatic generation system according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a protocol configuration file generation module in a communication protocol parsing code automatic generation system according to an embodiment of the present invention
  • FIG. 6 is another schematic structural diagram of a communication protocol parsing code automatic generation system according to an embodiment of the present invention.
  • first, second, and the like in the present invention are used for the purpose of description only, and are not to be construed as indicating or implying their relative importance or implicitly indicating the number of technical features indicated.
  • features defining “first” and “second” may include at least one of the features, either explicitly or implicitly.
  • the technical solutions between the various embodiments may be combined with each other, but must be based on the realization of those skilled in the art, and when the combination of the technical solutions is contradictory or impossible to implement, it should be considered that the combination of the technical solutions does not exist. It is also within the scope of protection required by the present invention.
  • a first embodiment of the present invention provides a method for automatically generating a communication protocol parsing code, where the method includes the following steps:
  • the communication protocol is a fixed format communication protocol, such as: Modbus communication protocol, and electrical communication protocol.
  • the step may include:
  • the input control instruction information can be as shown in the following table:
  • the input monitoring amount instruction information may be as shown in the following table:
  • [0063] 104 Generate, according to a communication protocol of the device, the input data query instruction information, the control instruction information, and the monitoring instruction information, to generate a protocol configuration file corresponding to the communication protocol.
  • control instruction code includes a remote command code and/or a remote command code.
  • the method further includes the steps of:
  • the split device communication protocol framework code source file may be divided into a plurality of different parts, and may mainly include a data query instruction sending part, a control instruction sending (a remote command transmission, a remote command sending),
  • the monitoring data parsing part is designed to facilitate the insertion of the generated protocol code.
  • the 4 is a communication protocol analysis code automatic generation system according to a second embodiment of the present invention.
  • the system includes: a protocol configuration file generation module 20, a data query processing module 21, and a control command processing module. 22.
  • the protocol profile generating module 20 may include an input unit 201 and a generating unit 202;
  • an input unit 201 configured to input data query instruction information, control instruction information, and monitoring amount instruction information
  • the input data query instruction information may be as shown in the following table:
  • the input control instruction information can be as shown in the following table:
  • the protocol profile generating module 20 may further include a determining unit 203 and a modifying unit 204;
  • the modifying unit 204 is configured to modify the data query instruction information, the control instruction information, and the monitoring amount instruction information of the abnormal input if the determination result of the determining unit 203 is abnormal.
  • the split device communication protocol framework code source file may be divided into a plurality of different parts, and may mainly include a data query instruction sending part, a control instruction sending (a remote command transmission, a remote command sending),
  • the monitoring amount data parsing part is for facilitating corresponding insertion of the protocol code generated by the protocol code generating module.
  • the communication protocol parsing code automatic generation system provided by the embodiment provides automatic generation of communication protocol parsing code, can quickly generate style, parsing and processing unified communication protocol parsing code, and can ensure accurate communication protocol parsing. Sex, peers improve the maintainability of the protocol code.
  • a method and system for automatically generating a communication protocol parsing code provided by an embodiment of the present invention, which realizes automatic generation of a communication protocol parsing code, can quickly generate a style, parse and process a unified communication protocol parsing code, and can also ensure a communication protocol. The accuracy of the parsing improves the maintainability of the protocol code.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)
  • Computer And Data Communications (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

Disclosed in the present invention are a method and system for automatically generating a communication protocol parsing code, wherein the method comprises the steps of: according to a communication protocol of a device, generating a protocol configuration file corresponding to said communication protocol; reading and analyzing the protocol configuration file, and obtaining data query configuration information, control instruction configuration information and monitored amount parsing information for the communication protocol of the device; generating a data query instruction code, a control instruction code and a monitored amount parsing code; combining the data query instruction code, the control instruction code, and the monitored amount parsing code to form a communication protocol parsing code of the device. The method and system for automatically generating a communication protocol parsing code as disclosed by the present invention may automatically generate a communication protocol parsing code, rapidly generate communication protocol parsing codes that are consistent in style and parsing process, and ensure the accuracy of communication protocol parsing while improving the maintainability of the protocol code.

Description

一种通信协议解析代码自动生成方法及*** 技术领域  Method and system for automatically generating communication protocol analysis code
[0001] 本发明涉及动力环境监控技术领域, 尤其涉及一种通信协议解析代码自动生成 方法及***。  [0001] The present invention relates to the field of power environment monitoring technologies, and in particular, to a method and system for automatically generating a communication protocol analysis code.
背景技术  Background technique
[0002] Modbus通信协议是应用于电子控制器 (智能设备)上的一种通用语言, 已经成为 一种通用工业标准。 通过此协议, 控制器相互之间、 控制器经由网络 (例如以 太网) 和其它设备之间可以通信。  [0002] The Modbus communication protocol is a general-purpose language applied to electronic controllers (smart devices) and has become a general industry standard. Through this protocol, controllers can communicate with each other and between controllers via a network (such as Ethernet) and other devices.
[0003] 为了对提供 Modbus协议的动力设备实现接入, 目前动环监控行业 (即动力环 境监控行业) 通常的做法是首先实现针对 Modbus协议的框架, 在此框架基础上 , 进行命令循环发送及数据解析, 每类 Modbus设备均需根据 Modbus协议规约进 行协议解析幵发。  [0003] In order to realize the access to the power device providing the Modbus protocol, the current practice of the dynamic ring monitoring industry (ie, the power environment monitoring industry) is to first implement a framework for the Modbus protocol, and on the basis of this framework, command loop transmission and Data analysis, each type of Modbus device needs to be parsed according to the Modbus protocol protocol.
[0004] 目前 Modbus通信协议解析幵发存在如下问题:  [0004] At present, the Modbus communication protocol parsing burst has the following problems:
[0005] 1) 工作量大: 每一种新设备均需由幵发人员进行命令发送、 解析代码进行幵 发。  [0005] 1) Large amount of work: Each new device needs to be sent and parsed by the dispatcher to parse the code.
[0006] 2) 易出错: 代码由人工进行编写, 经常会复制、 粘贴代码, 相应变量没进行 修改而导致解析异常问题。  [0006] 2) Error-prone: The code is written by hand, and the code is often copied and pasted, and the corresponding variables are not modified to cause an exception problem.
[0007] 3) 代码维护复杂: 如果设备通信协议进行升级或设备通讯出现问题进行维护 吋, 需再次对设备 Modbus通信协议进行阅读、 理解, 并结合源代码再进行修改 或调试。 [0007] 3) Code maintenance is complicated: If the device communication protocol is upgraded or the device communication is in trouble for maintenance, the device Modbus communication protocol needs to be read and understood again, and then modified or debugged in combination with the source code.
[0008] 4) 代码规范难统一: 不同协议幵发人员的代码缩进、 调用方法等很难做到统 一, 提高了后期维护成本。  [0008] 4) Code specification is difficult to unify: Code indentation and calling methods of different protocol issuers are difficult to be unified, and the post-maintenance cost is improved.
技术问题  technical problem
[0009] 本发明的主要目的在于提出一种通信协议解析代码自动生成方法及***, 旨在 解决现有技术存在的问题。 问题的解决方案 技术解决方案 [0009] The main object of the present invention is to provide a method and system for automatically generating a communication protocol analysis code, which aims to solve the problems existing in the prior art. Problem solution Technical solution
[0010] 为实现上述目的, 本发明实施例第一方面提供一种通信协议解析代码自动生成 方法, 所述方法包括步骤:  [0010] In order to achieve the above object, a first aspect of the embodiments of the present invention provides a method for automatically generating a communication protocol parsing code, where the method includes the following steps:
[0011] 根据设备通信协议, 生成该通信协议对应的协议配置文件;  [0011] generating a protocol configuration file corresponding to the communication protocol according to the device communication protocol;
[0012] 读取并分析所述协议配置文件, 获取到所述设备通信协议的数据査询配置信息 [0012] reading and analyzing the protocol configuration file to obtain data query configuration information of the device communication protocol
、 控制指令配置信息以及监测量解析信息; , control instruction configuration information, and monitoring amount analysis information;
[0013] 根据获取的的所述设备通信协议的数据査询配置信息、 控制指令配置信息以及 监测量解析信息, 生成数据査询指令代码、 控制指令代码以及监测量解析代码  [0013] generating data query instruction code, control instruction code, and monitoring amount analysis code according to the acquired data query configuration information, control instruction configuration information, and monitoring amount analysis information of the device communication protocol.
[0014] 将所述数据査询指令代码、 控制指令代码以及监测量解析代码, 组合形成所述 设备通信协议解析代码。 And [0014] combining the data query instruction code, the control instruction code, and the monitoring amount analysis code to form the device communication protocol analysis code.
[0015] 进一步地, 所述步骤根据设备的通信协议, 生成该通信协议对应的协议配置文 件包括: [0015] Further, the step of generating a protocol configuration file corresponding to the communication protocol according to the communication protocol of the device includes:
[0016] 输入数据査询指令信息、 控制指令信息以及监测量指令信息;  [0016] input data query instruction information, control instruction information, and monitoring amount instruction information;
[0017] 根据设备的通信协议, 输入的数据査询指令信息、 控制指令信息以及监测量指 令信息, 生成该通信协议对应的协议配置文件。  [0017] According to the communication protocol of the device, the input data query instruction information, the control instruction information, and the monitoring quantity instruction information, and generate a protocol configuration file corresponding to the communication protocol.
[0018] 进一步地, 所述步骤输入数据査询指令信息、 控制指令信息以及监测量指令信 息之后还包括: [0018] Further, after the step of inputting the data query instruction information, the control instruction information, and the monitoring quantity instruction information, the method further includes:
[0019] 检査并判断输入的数据査询指令信息、 控制指令信息以及监测量指令信息是否 有异常;  [0019] checking and determining whether the input data query instruction information, the control instruction information, and the monitoring amount instruction information are abnormal;
[0020] 若有异常则修改异常输入的数据査询指令信息、 控制指令信息以及监测量指令 f π息。  [0020] If there is an abnormality, the data query instruction information, the control instruction information, and the monitoring amount instruction f π information of the abnormal input are modified.
[0021] 进一步地, 所述方法还包括步骤:  [0021] Further, the method further includes the steps of:
[0022] 分割设备通信协议框架代码源文件; [0022] split device communication protocol framework code source file;
[0023] 将组合形成的设备通信协议解析代码, 写入分割后的设备通信协议框架代码源 文件。  [0023] The device communication protocol parsing code formed by the combination is written into the divided device communication protocol framework code source file.
[0024] 进一步地, 所述通信协议为固定格式通信协议。  [0024] Further, the communication protocol is a fixed format communication protocol.
[0025] 此外, 为实现上述目的, 本发明实施例第二方面提供一种通信协议解析代码自 动生成***, 所述***包括: 协议配置文件生成模块、 数据査询处理模块、 控 制命令处理模块、 数据解析处理模块及协议代码生成模块; [0025] In addition, in order to achieve the above object, a second aspect of the embodiments of the present invention provides a communication protocol parsing code from The system includes: a protocol configuration file generation module, a data query processing module, a control command processing module, a data analysis processing module, and a protocol code generation module;
[0026] 所述协议配置文件生成模块, 用于根据设备通信协议, 生成该通信协议对应的 协议配置文件;  [0026] the protocol configuration file generating module is configured to generate a protocol configuration file corresponding to the communication protocol according to the device communication protocol;
[0027] 所述数据査询处理模块, 用于读取并分析所述协议配置文件, 获取到所述设备 通信协议的数据査询配置信息, 根据获取的的所述设备通信协议的数据査询配 置信息, 生成数据査询指令代码;  [0027] the data query processing module is configured to read and analyze the protocol configuration file, obtain data query configuration information of the device communication protocol, and query according to the acquired data of the device communication protocol. Configuration information, generating a data query instruction code;
[0028] 所述控制命令处理模块, 用于读取并分析所述协议配置文件, 获取到所述设备 通信协议的控制指令配置信息, 根据获取的的所述设备通信协议的控制指令配 置信息, 生成控制指令代码; [0028] the control command processing module is configured to read and analyze the protocol configuration file, obtain control command configuration information of the device communication protocol, and configure information according to the obtained control instruction of the device communication protocol. Generating a control instruction code;
[0029] 所述数据解析处理模块, 用于读取并分析所述协议配置文件, 获取到所述设备 通信协议的监测量解析信息, 根据获取的的所述设备通信协议的监测量解析信 息, 生成监测量解析代码; [0029] the data parsing processing module is configured to read and analyze the protocol configuration file, obtain monitoring quantity analysis information of the device communication protocol, and parse information according to the acquired monitoring quantity of the device communication protocol, Generate monitoring amount analysis code;
[0030] 所述协议代码生成模块, 用于将所述数据査询指令代码、 控制指令代码以及监 测量解析代码, 组合形成所述设备通信协议解析代码。 [0030] The protocol code generating module is configured to combine the data query instruction code, the control instruction code, and the monitoring analysis code to form the device communication protocol parsing code.
[0031] 进一步地, 所述协议配置文件生成模块包括输入单元和生成单元; [0031] Further, the protocol configuration file generating module includes an input unit and a generating unit;
[0032] 所述输入单元, 用于输入数据査询指令信息、 控制指令信息以及监测量指令信 息; [0032] the input unit is configured to input data query instruction information, control instruction information, and monitoring amount instruction information;
[0033] 所述生成单元, 用于根据设备的通信协议, 输入单元输入的数据査询指令信息 、 控制指令信息以及监测量指令信息, 生成该通信协议对应的协议配置文件。  [0033] The generating unit is configured to generate, according to a communication protocol of the device, the data query instruction information, the control instruction information, and the monitoring amount instruction information input by the input unit, to generate a protocol configuration file corresponding to the communication protocol.
[0034] 进一步地, 所述协议配置文件生成模块还包括判断单元和修改单元;  [0034] Further, the protocol configuration file generating module further includes a determining unit and a modifying unit;
[0035] 所述判断单元, 用于检査并判断输入的数据査询指令信息、 控制指令信息以及 监测量指令信息是否有异常;  [0035] the determining unit is configured to check and determine whether the input data query instruction information, the control instruction information, and the monitoring amount instruction information are abnormal;
[0036] 所述修改单元, 用于若所述判断单元的判断结果为异常, 则修改异常输入的数 据査询指令信息、 控制指令信息以及监测量指令信息。  And the modifying unit is configured to modify the data query instruction information, the control instruction information, and the monitoring amount instruction information of the abnormal input if the determination result of the determining unit is abnormal.
[0037] 进一步地, 所述***还包括分割模块;  [0037] Further, the system further includes a segmentation module;
[0038] 所述分割模块, 用于分割设备通信协议框架代码源文件;  [0038] the dividing module is configured to split a device communication protocol framework code source file;
[0039] 所述协议代码生成模块, 还用于将组合形成的设备通信协议解析代码, 写入分 割后的设备通信协议框架代码源文件。 [0039] the protocol code generating module is further configured to write the device communication protocol parsing code formed by the combination, and write the score The cut device communication protocol framework code source file.
[0040] 进一步地, 所述通信协议为固定格式通信协议。  [0040] Further, the communication protocol is a fixed format communication protocol.
发明的有益效果  Advantageous effects of the invention
有益效果  Beneficial effect
[0041] 本发明实施例提供的一种通信协议解析代码自动生成方法及***, 实现了通信 协议解析代码自动生成, 能够快速生成风格、 解析处理统一的通信协议解析代 码, 还能够保证了通信协议解析的准确性, 同吋提高了协议代码的可维护性。 对附图的简要说明  [0041] A method and system for automatically generating a communication protocol parsing code provided by an embodiment of the present invention realizes automatic generation of a communication protocol parsing code, can quickly generate a style, parse and process a unified communication protocol parsing code, and can also ensure a communication protocol. The accuracy of the parsing improves the maintainability of the protocol code. Brief description of the drawing
附图说明  DRAWINGS
[0042] 图 1为本发明实施例提供的通信协议解析代码自动生成方法流程示意图;  1 is a schematic flowchart of a method for automatically generating a communication protocol analysis code according to an embodiment of the present invention;
[0043] 图 2为本发明实施例提供的通信协议解析代码自动生成方法中异常输入流程示 意图; 2 is a schematic diagram of an abnormal input flow in a method for automatically generating a communication protocol analysis code according to an embodiment of the present invention;
[0044] 图 3为本发明实施例提供的通信协议解析代码自动生成方法另一流程示意图; [0045] 图 4为本发明实施例提供的通信协议解析代码自动生成***结构示意图;  [0044] FIG. 3 is a schematic flowchart of another method for automatically generating a communication protocol analysis code according to an embodiment of the present invention; [0045] FIG. 4 is a schematic structural diagram of a communication protocol analysis code automatic generation system according to an embodiment of the present invention;
[0046] 图 5为本发明实施例提供的通信协议解析代码自动生成***中协议配置文件生 成模块结构示意图; 5 is a schematic structural diagram of a protocol configuration file generation module in a communication protocol parsing code automatic generation system according to an embodiment of the present invention;
[0047] 图 6为本发明实施例提供的通信协议解析代码自动生成***另一结构示意图。  FIG. 6 is another schematic structural diagram of a communication protocol parsing code automatic generation system according to an embodiment of the present invention.
[0048] 本发明目的的实现、 功能特点及优点将结合实施例, 参照附图做进一步说明。 [0048] The implementation, functional features, and advantages of the present invention will be further described with reference to the accompanying drawings.
本发明的实施方式 Embodiments of the invention
[0049] 应当理解, 此处所描述的具体实施例仅仅用以解释本发明, 并不用于限定本发 明。  The specific embodiments described herein are intended to be illustrative only and not to limit the invention.
[0050] 现在将参考附图描述实现本发明各个实施例的。 在后续的描述中, 使用用于表 示元件的诸如 "模块"、 "部件 "或"单元"的后缀仅为了有利于本发明的说明, 其本 身并没有特定的意义。  [0050] Various embodiments of the present invention will now be described with reference to the drawings. In the following description, the suffixes such as "module", "part" or "unit" used to denote elements are merely illustrative of the present invention, and are not intended to be specific in their own right.
[0051] 还应当进一步理解, 在本发明说明书和所附权利要求书中使用的术语 "和 /或"是 指相关联列出的项中的一个或多个的任何组合以及所有可能组合, 并且包括这 些组合。 [0051] It should also be further understood that the term "and/or" used in the description of the invention and the appended claims means any combination and all possible combinations of one or more of the associated listed items, and Including this Some combinations.
[0052] 在本发明中涉及"第一"、 "第二"等的描述仅用于描述目的, 而不能理解为指示 或暗示其相对重要性或者隐含指明所指示的技术特征的数量。 由此, 限定有 "第 一"、 "第二 "的特征可以明示或者隐含地包括至少一个该特征。 另外, 各个实施 例之间的技术方案可以相互结合, 但是必须是以本领域普通技术人员能够实现 为基础, 当技术方案的结合出现相互矛盾或无法实现吋应当认为这种技术方案 的结合不存在, 也不在本发明要求的保护范围之内。  The descriptions of "first", "second", and the like in the present invention are used for the purpose of description only, and are not to be construed as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Thus, features defining "first" and "second" may include at least one of the features, either explicitly or implicitly. In addition, the technical solutions between the various embodiments may be combined with each other, but must be based on the realization of those skilled in the art, and when the combination of the technical solutions is contradictory or impossible to implement, it should be considered that the combination of the technical solutions does not exist. It is also within the scope of protection required by the present invention.
[0053] 如图 1所示, 本发明第一实施例提供的一种通信协议解析代码自动生成方法, 该方法包括步骤:  [0053] As shown in FIG. 1 , a first embodiment of the present invention provides a method for automatically generating a communication protocol parsing code, where the method includes the following steps:
[0054] 10、 根据设备通信协议, 生成该通信协议对应的协议配置文件。  [0054] 10. Generate a protocol configuration file corresponding to the communication protocol according to the device communication protocol.
[0055] 在本实施例中, 通信协议为固定格式通信协议, 例如: Modbus通信协议、 电 总通信协议。  [0055] In this embodiment, the communication protocol is a fixed format communication protocol, such as: Modbus communication protocol, and electrical communication protocol.
[0056] 参考图 2所示, 在本实施例中, 该步骤可包括:  [0056] Referring to FIG. 2, in this embodiment, the step may include:
[0057] 101、 输入数据査询指令信息、 控制指令信息以及监测量指令信息。  [0057] 101. Input data query instruction information, control instruction information, and monitoring amount instruction information.
[0058] 作为示例地, 输入的数据査询指令信息可如下表格所示:  [0058] As an example, the input data query instruction information may be as shown in the following table:
Figure imgf000007_0001
Figure imgf000007_0001
作为示例地, 输入的控制指令信息可如下表格所示:  As an example, the input control instruction information can be as shown in the following table:
[]  []
Figure imgf000007_0002
Figure imgf000007_0002
[0060] 作为示例地, 输入的监测量指令信息可如下表格所示:  [0060] As an example, the input monitoring amount instruction information may be as shown in the following table:
[]
Figure imgf000008_0001
[]
Figure imgf000008_0001
[0061] 102、 检査并判断输入的数据査询指令信息、 控制指令信息以及监测量指令信 息是否有异常。  [0061] 102. Check and judge whether the input data query instruction information, the control instruction information, and the monitoring amount instruction information are abnormal.
[0062] 103、 若有异常则修改异常输入的数据査询指令信息、 控制指令信息以及监测 量指令信息。  [0062] 103. If there is an abnormality, modify the data query instruction information, the control instruction information, and the monitoring instruction information of the abnormal input.
[0063] 104、 根据设备的通信协议, 输入的数据査询指令信息、 控制指令信息以及监 测量指令信息, 生成该通信协议对应的协议配置文件。  [0063] 104. Generate, according to a communication protocol of the device, the input data query instruction information, the control instruction information, and the monitoring instruction information, to generate a protocol configuration file corresponding to the communication protocol.
[0064] 11、 读取并分析协议配置文件, 获取到设备通信协议的数据査询配置信息、 控 制指令配置信息以及监测量解析信息。 [0064] 11. Read and analyze the protocol configuration file, and obtain data query configuration information, control command configuration information, and monitoring amount analysis information of the device communication protocol.
[0065] 12、 根据获取的的设备通信协议的数据査询配置信息、 控制指令配置信息以及 监测量解析信息, 生成数据査询指令代码、 控制指令代码以及监测量解析代码 [0065] 12. Querying configuration information, control instruction configuration information, and monitoring amount analysis information according to the acquired device communication protocol data, and generating a data query instruction code, a control instruction code, and a monitoring amount analysis code.
[0066] 在本实施例中, 控制指令代码包括遥调命令代码和 /或遥控命令代码。 [0066] In the present embodiment, the control instruction code includes a remote command code and/or a remote command code.
[0067] 13、 将数据査询指令代码、 控制指令代码以及监测量解析代码, 组合形成所述 设备通信协议解析代码。  [0067] 13. Combining the data query instruction code, the control instruction code, and the monitoring amount analysis code to form the device communication protocol analysis code.
[0068] 请参考图 3所示, 进一步地, 该方法还包括步骤: [0068] Please refer to FIG. 3, and further, the method further includes the steps of:
[0069] 14、 分割设备通信协议框架代码源文件; 将组合形成的设备通信协议解析代码 [0069] 14. Split device communication protocol framework code source file; device communication protocol parsing code to be formed by combination
, 写入分割后的设备通信协议框架代码源文件。 , write the split device communication protocol framework code source file.
[0070] 在本实施例中, 分割设备通信协议框架代码源文件可分割成多个不同部分, 主 要可包括数据査询指令发送部分、 控制指令发送 (遥调命令发送、 遥控命令发送) 部分、 监测量数据解析部分, 目的是方便***生成的协议代码。 [0070] In this embodiment, the split device communication protocol framework code source file may be divided into a plurality of different parts, and may mainly include a data query instruction sending part, a control instruction sending (a remote command transmission, a remote command sending), The monitoring data parsing part is designed to facilitate the insertion of the generated protocol code.
[0071] 本实施例提供的一种通信协议解析代码自动生成方法, 实现了通信协议解析代 码自动生成, 能够快速生成风格、 解析处理统一的通信协议解析代码, 还能够 保证了通信协议解析的准确性, 同吋提高了协议代码的可维护性。 [0071] A method for automatically generating a communication protocol analysis code provided by the embodiment, which realizes automatic generation of a communication protocol analysis code, can quickly generate a style, analyze and process a unified communication protocol analysis code, and can also The accuracy of the communication protocol resolution is guaranteed, and the maintainability of the protocol code is improved.
[0072] 本发明进一步提供一种***。 The invention further provides a system.
[0073] 参照图 4, 图 4为本发明第二实施例提供的一种通信协议解析代码自动生成*** , 该***包括: 协议配置文件生成模块 20、 数据査询处理模块 21、 控制命令处 理模块 22、 数据解析处理模块 23及协议代码生成模块 24;  4 is a communication protocol analysis code automatic generation system according to a second embodiment of the present invention. The system includes: a protocol configuration file generation module 20, a data query processing module 21, and a control command processing module. 22. The data parsing processing module 23 and the protocol code generating module 24;
[0074] 协议配置文件生成模块 20, 用于根据设备通信协议, 生成该通信协议对应的协 议配置文件。  [0074] The protocol profile generating module 20 is configured to generate a protocol profile corresponding to the communication protocol according to the device communication protocol.
[0075] 在本实施例中, 通信协议为固定格式通信协议, 例如: Modbus通信协议、 电 总通信协议。  [0075] In this embodiment, the communication protocol is a fixed format communication protocol, such as: Modbus communication protocol, and electrical communication protocol.
[0076] 参考图 5所示, 在本实施例中, 协议配置文件生成模块 20可包括输入单元 201和 生成单元 202;  [0076] Referring to FIG. 5, in this embodiment, the protocol profile generating module 20 may include an input unit 201 and a generating unit 202;
[0077] 输入单元 201, 用于输入数据査询指令信息、 控制指令信息以及监测量指令信 息;  [0077] an input unit 201, configured to input data query instruction information, control instruction information, and monitoring amount instruction information;
[0078] 作为示例地, 输入的数据査询指令信息可如下表格所示:  [0078] As an example, the input data query instruction information may be as shown in the following table:
Figure imgf000009_0001
Figure imgf000009_0001
作为示例地, 输入的控制指令信息可如下表格所示:  As an example, the input control instruction information can be as shown in the following table:
[]  []
Figure imgf000009_0002
Figure imgf000009_0002
[0080] 作为示例地, 输入的监测量指令信息可如下表格所示: [] [0080] As an example, the input monitoring amount instruction information may be as shown in the following table: []
Figure imgf000010_0001
Figure imgf000010_0001
[0081] 生成单元 202, 用于根据设备的通信协议, 输入单元 201输入的数据査询指令信 息、 控制指令信息以及监测量指令信息, 生成该通信协议对应的协议配置文件  The generating unit 202 is configured to generate, according to a communication protocol of the device, the data query instruction information, the control instruction information, and the monitoring amount instruction information input by the input unit 201, to generate a protocol configuration file corresponding to the communication protocol.
[0082] 参考图 5所示, 在本实施例中, 协议配置文件生成模块 20还可包括判断单元 203 和修改单元 204; [0082] Referring to FIG. 5, in this embodiment, the protocol profile generating module 20 may further include a determining unit 203 and a modifying unit 204;
[0083] 判断单元 203, 用于检査并判断输入的数据査询指令信息、 控制指令信息以及 监测量指令信息是否有异常;  [0083] The determining unit 203 is configured to check and determine whether the input data query instruction information, the control instruction information, and the monitoring amount instruction information are abnormal;
[0084] 修改单元 204, 用于若判断单元 203的判断结果为异常, 则修改异常输入的数据 査询指令信息、 控制指令信息以及监测量指令信息。 [0084] The modifying unit 204 is configured to modify the data query instruction information, the control instruction information, and the monitoring amount instruction information of the abnormal input if the determination result of the determining unit 203 is abnormal.
[0085] 数据査询处理模块 21, 用于读取并分析协议配置文件, 获取到设备通信协议的 数据査询配置信息, 根据获取的的设备通信协议的数据査询配置信息, 生成数 据査询指令代码。 [0085] The data query processing module 21 is configured to read and analyze the protocol configuration file, obtain data query configuration information of the device communication protocol, and query configuration information according to the acquired device communication protocol to generate a data query. Instruction code.
[0086] 控制命令处理模块 22, 用于读取并分析协议配置文件, 获取到设备通信协议的 控制指令配置信息, 根据获取的的设备通信协议的控制指令配置信息, 生成控 制指令代码。  [0086] The control command processing module 22 is configured to read and analyze the protocol configuration file, obtain control instruction configuration information to the device communication protocol, and generate control command code according to the acquired control instruction configuration information of the device communication protocol.
[0087] 在本实施例中, 控制指令代码包括遥调命令代码和 /或遥控命令代码。  [0087] In the present embodiment, the control instruction code includes a remote command code and/or a remote command code.
[0088] 数据解析处理模块 23, 用于读取并分析协议配置文件, 获取到设备通信协议的 监测量解析信息, 根据获取的的设备通信协议的监测量解析信息, 生成监测量 解析代码。  [0088] The data parsing processing module 23 is configured to read and analyze the protocol configuration file, obtain monitoring quantity analysis information of the device communication protocol, and generate monitoring quantity analysis code according to the monitored quantity analysis information of the acquired device communication protocol.
[0089] 协议代码生成模块 24, 用于将数据査询指令代码、 控制指令代码以及监测量解 析代码, 组合形成设备通信协议解析代码。  [0089] The protocol code generating module 24 is configured to combine the data query instruction code, the control instruction code, and the monitoring amount analysis code to form a device communication protocol parsing code.
[0090] 请参考图 6所示, 进一步地, ***还可包括分割模块 25 ; [0091] 分割模块 25, 用于分割设备通信协议框架代码源文件; [0090] Please refer to FIG. 6, further, the system may further include a segmentation module 25; [0091] a segmentation module 25, configured to split a device communication protocol framework code source file;
[0092] 在本实施例中, 分割设备通信协议框架代码源文件可分割成多个不同部分, 主 要可包括数据査询指令发送部分、 控制指令发送 (遥调命令发送、 遥控命令发送) 部分、 监测量数据解析部分, 目的是方便对应地***协议代码生成模块生成的 协议代码。  [0092] In this embodiment, the split device communication protocol framework code source file may be divided into a plurality of different parts, and may mainly include a data query instruction sending part, a control instruction sending (a remote command transmission, a remote command sending), The monitoring amount data parsing part is for facilitating corresponding insertion of the protocol code generated by the protocol code generating module.
[0093] 协议代码生成模块 24, 还用于将组合形成的设备通信协议解析代码, 写入分割 后的设备通信协议框架代码源文件。  [0093] The protocol code generating module 24 is further configured to write the combined device communication protocol parsing code into the divided device communication protocol framework code source file.
[0094] 本实施例提供的一种通信协议解析代码自动生成***, 实现了通信协议解析代 码自动生成, 能够快速生成风格、 解析处理统一的通信协议解析代码, 还能够 保证了通信协议解析的准确性, 同吋提高了协议代码的可维护性。  [0094] The communication protocol parsing code automatic generation system provided by the embodiment provides automatic generation of communication protocol parsing code, can quickly generate style, parsing and processing unified communication protocol parsing code, and can ensure accurate communication protocol parsing. Sex, peers improve the maintainability of the protocol code.
[0095] 需要说明的是, 在本文中, 术语"包括"、 "包含 "或者其任何其他变体意在涵盖 非排他性的包含, 从而使得包括一系列要素的过程、 方法、 物品或者装置不仅 包括那些要素, 而且还包括没有明确列出的其他要素, 或者是还包括为这种过 程、 方法、 物品或者装置所固有的要素。 在没有更多限制的情况下, 由语句 "包 括一个 ...... "限定的要素, 并不排除在包括该要素的过程、 方法、 物品或者装置 中还存在另外的相同要素。  [0095] It is to be understood that the term "comprising", "comprising", or any other variation thereof is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device that comprises a Those elements, but also other elements not explicitly listed, or elements that are inherent to such a process, method, item or device. An element defined by the phrase "comprises a ..." without further restrictions does not exclude the presence of additional elements in the process, method, article, or device that comprises the element.
[0096] 以上仅为本发明的优选实施例, 并非因此限制本发明的专利范围, 凡是利用本 发明说明书及附图内容所作的等效结构或等效流程变换, 或直接或间接运用在 其他相关的技术领域, 均同理包括在本发明的专利保护范围内。  The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the invention and the drawings are directly or indirectly applied to other related The technical field is equally included in the scope of patent protection of the present invention.
工业实用性  Industrial applicability
[0097] 本发明实施例提供的一种通信协议解析代码自动生成方法及***, 实现了通信 协议解析代码自动生成, 能够快速生成风格、 解析处理统一的通信协议解析代 码, 还能够保证了通信协议解析的准确性, 同吋提高了协议代码的可维护性。  [0097] A method and system for automatically generating a communication protocol parsing code provided by an embodiment of the present invention, which realizes automatic generation of a communication protocol parsing code, can quickly generate a style, parse and process a unified communication protocol parsing code, and can also ensure a communication protocol. The accuracy of the parsing improves the maintainability of the protocol code.

Claims

权利要求书 Claim
[权利要求 1] 一种通信协议解析代码自动生成方法, 其中, 所述方法包括步骤: 根据设备通信协议, 生成该通信协议对应的协议配置文件; 读取并分析所述协议配置文件, 获取到所述设备通信协议的数据査询 配置信息、 控制指令配置信息以及监测量解析信息;  [Claim 1] A method for automatically generating a communication protocol parsing code, wherein the method includes the steps of: generating a protocol configuration file corresponding to the communication protocol according to a device communication protocol; reading and analyzing the protocol configuration file, obtaining Data query configuration information, control instruction configuration information, and monitoring amount analysis information of the device communication protocol;
根据获取的的所述设备通信协议的数据査询配置信息、 控制指令配置 信息以及监测量解析信息, 生成数据査询指令代码、 控制指令代码以 及监测量解析代码;  Generating a data query instruction code, a control instruction code, and a monitoring amount analysis code according to the obtained data query configuration information, the control instruction configuration information, and the monitoring amount analysis information of the device communication protocol;
将所述数据査询指令代码、 控制指令代码以及监测量解析代码, 组合 形成所述设备通信协议解析代码。  The data query instruction code, the control instruction code, and the monitoring amount analysis code are combined to form the device communication protocol analysis code.
[权利要求 2] 根据权利要求 1所述的一种通信协议解析代码自动生成方法, 其中, 所述步骤根据设备的通信协议, 生成该通信协议对应的协议配置文件 包括:  [Claim 2] A method for automatically generating a communication protocol parsing code according to claim 1, wherein the step of generating a protocol configuration file corresponding to the communication protocol according to a communication protocol of the device includes:
输入数据査询指令信息、 控制指令信息以及监测量指令信息; 根据设备的通信协议, 输入的数据査询指令信息、 控制指令信息以及 监测量指令信息, 生成该通信协议对应的协议配置文件。  Inputting data query instruction information, control instruction information, and monitoring quantity instruction information; generating protocol configuration files corresponding to the communication protocol according to the communication protocol of the device, the input data query instruction information, the control instruction information, and the monitoring quantity instruction information.
[权利要求 3] 根据权利要求 2所述的一种通信协议解析代码自动生成方法, 其中, 所述步骤输入数据査询指令信息、 控制指令信息以及监测量指令信息 之后还包括: [Claim 3] The method for automatically generating a communication protocol analysis code according to claim 2, wherein the step of inputting the data query instruction information, the control instruction information, and the monitoring amount instruction information further includes:
检査并判断输入的数据査询指令信息、 控制指令信息以及监测量指令 信息是否有异常;  Checking and judging whether the input data query instruction information, the control instruction information, and the monitoring amount instruction information are abnormal;
若有异常则修改异常输入的数据査询指令信息、 控制指令信息以及监 测量指令信息。  If there is an abnormality, modify the data query instruction information, control instruction information, and monitoring instruction information of the abnormal input.
[权利要求 4] 根据权利要求 1所述的一种通信协议解析代码自动生成方法, 其中, 所述方法还包括步骤:  [Claim 4] A method for automatically generating a communication protocol parsing code according to claim 1, wherein the method further includes the steps of:
分割设备通信协议框架代码源文件;  Split device communication protocol framework code source file;
将组合形成的设备通信协议解析代码, 写入分割后的设备通信协议框 架代码源文件。 The device communication protocol analysis code formed by the combination is written into the divided device communication protocol framework code source file.
[权利要求 5] 根据权利要求 1所述的一种通信协议解析代码自动生成方法, 其中, 所述通信协议为固定格式通信协议。 [Claim 5] A method for automatically generating a communication protocol parsing code according to claim 1, wherein the communication protocol is a fixed format communication protocol.
[权利要求 6] —种通信协议解析代码自动生成***, 其中, 所述***包括: 协议配 置文件生成模块、 数据査询处理模块、 控制命令处理模块、 数据解析 处理模块及协议代码生成模块; [Claim 6] A communication protocol parsing code automatic generation system, wherein the system includes: a protocol configuration file generation module, a data query processing module, a control command processing module, a data analysis processing module, and a protocol code generation module;
所述协议配置文件生成模块, 用于根据设备通信协议, 生成该通信协 议对应的协议配置文件;  The protocol configuration file generating module is configured to generate a protocol configuration file corresponding to the communication protocol according to a device communication protocol;
所述数据査询处理模块, 用于读取并分析所述协议配置文件, 获取到 所述设备通信协议的数据査询配置信息, 根据获取的的所述设备通信 协议的数据査询配置信息, 生成数据査询指令代码;  The data query processing module is configured to read and analyze the protocol configuration file, obtain data query configuration information of the device communication protocol, and query configuration information according to the obtained data of the device communication protocol. Generating a data query instruction code;
所述控制命令处理模块, 用于读取并分析所述协议配置文件, 获取到 所述设备通信协议的控制指令配置信息, 根据获取的的所述设备通信 协议的控制指令配置信息, 生成控制指令代码; 所述数据解析处理模块, 用于读取并分析所述协议配置文件, 获取到 所述设备通信协议的监测量解析信息, 根据获取的的所述设备通信协 议的监测量解析信息, 生成监测量解析代码;  The control command processing module is configured to read and analyze the protocol configuration file, obtain control instruction configuration information of the device communication protocol, and generate control instructions according to the acquired control instruction configuration information of the device communication protocol. a data parsing processing module, configured to read and analyze the protocol configuration file, obtain monitoring amount analysis information of the device communication protocol, and generate, according to the acquired monitoring information of the device communication protocol, generate Monitoring amount analysis code;
所述协议代码生成模块, 用于将所述数据査询指令代码、 控制指令代 码以及监测量解析代码, 组合形成所述设备通信协议解析代码。  The protocol code generating module is configured to combine the data query instruction code, the control instruction code, and the monitoring amount parsing code to form the device communication protocol parsing code.
[权利要求 7] 根据权利要求 6所述的一种通信协议解析代码自动生成***, 其中, 所述协议配置文件生成模块包括输入单元和生成单元; [Claim 7] The communication protocol analysis code automatic generation system according to claim 6, wherein the protocol configuration file generation module includes an input unit and a generation unit;
所述输入单元, 用于输入数据査询指令信息、 控制指令信息以及监测 量指令信息;  The input unit is configured to input data query instruction information, control instruction information, and monitoring quantity instruction information;
所述生成单元, 用于根据设备的通信协议, 输入单元输入的数据査询 指令信息、 控制指令信息以及监测量指令信息, 生成该通信协议对应 的协议配置文件。  The generating unit is configured to generate, according to a communication protocol of the device, data query instruction information, control instruction information, and monitoring amount instruction information input by the input unit, to generate a protocol configuration file corresponding to the communication protocol.
[权利要求 8] 根据权利要求 7所述的一种通信协议解析代码自动生成***, 其中, 所述协议配置文件生成模块还包括判断单元和修改单元;  [Claim 8] The communication protocol parsing code automatic generation system according to claim 7, wherein the protocol configuration file generating module further includes a judging unit and a modifying unit;
所述判断单元, 用于检査并判断输入的数据査询指令信息、 控制指令 信息以及监测量指令信息是否有异常; The determining unit is configured to check and determine the input data query instruction information and the control instruction Whether the information and the monitoring quantity instruction information are abnormal;
所述修改单元, 用于若所述判断单元的判断结果为异常, 则修改异常 输入的数据査询指令信息、 控制指令信息以及监测量指令信息。  The modifying unit is configured to modify the data query instruction information, the control instruction information, and the monitoring amount instruction information of the abnormality input if the determination result of the determining unit is abnormal.
[权利要求 9] 根据权利要求 6所述的一种通信协议解析代码自动生成***, 其中, 所述***还包括分割模块;  [Claim 9] The communication protocol analysis code automatic generation system according to claim 6, wherein the system further includes a segmentation module;
所述分割模块, 用于分割设备通信协议框架代码源文件;  The dividing module is configured to split a device communication protocol framework code source file;
所述协议代码生成模块, 还用于将组合形成的设备通信协议解析代码 , 写入分割后的设备通信协议框架代码源文件。  The protocol code generating module is further configured to write the combined device communication protocol parsing code into the divided device communication protocol framework code source file.
[权利要求 10] 根据权利要求 6所述的一种通信协议解析代码自动生成***, 其中, 所述通信协议为固定格式通信协议。 [Claim 10] A communication protocol parsing code automatic generation system according to claim 6, wherein the communication protocol is a fixed format communication protocol.
PCT/CN2017/076762 2017-03-15 2017-03-15 Method and system for automatically generating communication protocol parsing code WO2018165902A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201780002446.XA CN108141464B (en) 2017-03-15 2017-03-15 A kind of communication protocol parsing code automatic generation method and system
PCT/CN2017/076762 WO2018165902A1 (en) 2017-03-15 2017-03-15 Method and system for automatically generating communication protocol parsing code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/076762 WO2018165902A1 (en) 2017-03-15 2017-03-15 Method and system for automatically generating communication protocol parsing code

Publications (1)

Publication Number Publication Date
WO2018165902A1 true WO2018165902A1 (en) 2018-09-20

Family

ID=62400278

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/076762 WO2018165902A1 (en) 2017-03-15 2017-03-15 Method and system for automatically generating communication protocol parsing code

Country Status (2)

Country Link
CN (1) CN108141464B (en)
WO (1) WO2018165902A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110557377B (en) * 2019-08-01 2021-08-27 福建星云电子股份有限公司 Method and system for power battery pairing repair equipment to be compatible with multiple communication protocols
CN111221532A (en) * 2019-12-23 2020-06-02 北京轩宇信息技术有限公司 Method and device for generating dynamic link library
CN111083168A (en) * 2019-12-31 2020-04-28 广东嘉泰智能技术有限公司 Configurable data transmission method and device of Internet of things platform gateway and gateway
CN112714044B (en) * 2020-12-28 2022-06-07 北京恒光信息技术股份有限公司 Network data analysis method, device and storage medium based on formal language protocol
CN113377363B (en) * 2021-07-14 2022-03-08 深圳市集贤科技有限公司 Cloud implementation method for automatically generating source codes for various electric control end private protocols
CN114449061A (en) * 2021-12-23 2022-05-06 深圳市长龙铁路电子工程有限公司 Configurable protocol analysis method, device, equipment and storage medium
CN114500350B (en) * 2021-12-27 2024-02-06 中国航天空气动力技术研究院 Ground station instruction verification system
CN114115833B (en) * 2022-01-25 2022-06-28 北京安帝科技有限公司 Automatic protocol audit code generation method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030084112A1 (en) * 2001-04-02 2003-05-01 Curray Timothy G. Ethernet communications for power monitoring system
CN103139025A (en) * 2011-12-05 2013-06-05 艾默生网络能源***北美公司 Access method and access system of Modbus equipment
CN105812368A (en) * 2016-03-15 2016-07-27 山东超越数控电子有限公司 Universal programming method for multiple communication protocols
CN106339249A (en) * 2016-08-23 2017-01-18 上海创景计算机***有限公司 Dynamical allocation and programming method
CN106412086A (en) * 2016-10-31 2017-02-15 武汉斗鱼网络科技有限公司 Method and system for automatically generating communication codes by employing protocol description file

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2003200935A1 (en) * 2002-03-14 2003-10-02 E State Automation Pty Ltd An interface between the modbus protocol and SMS text messaging protocol
CN102055770B (en) * 2011-01-17 2014-07-16 西安电子科技大学 Automatic secure protocol code implementation system based on extensive markup language (XML) description

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030084112A1 (en) * 2001-04-02 2003-05-01 Curray Timothy G. Ethernet communications for power monitoring system
CN103139025A (en) * 2011-12-05 2013-06-05 艾默生网络能源***北美公司 Access method and access system of Modbus equipment
CN105812368A (en) * 2016-03-15 2016-07-27 山东超越数控电子有限公司 Universal programming method for multiple communication protocols
CN106339249A (en) * 2016-08-23 2017-01-18 上海创景计算机***有限公司 Dynamical allocation and programming method
CN106412086A (en) * 2016-10-31 2017-02-15 武汉斗鱼网络科技有限公司 Method and system for automatically generating communication codes by employing protocol description file

Also Published As

Publication number Publication date
CN108141464A (en) 2018-06-08
CN108141464B (en) 2019-04-05

Similar Documents

Publication Publication Date Title
WO2018165902A1 (en) Method and system for automatically generating communication protocol parsing code
CN111083225B (en) Data processing method and device in Internet of things platform and Internet of things platform
JP6695984B2 (en) Multitask scheduling method, system, application server, and computer-readable storage medium
CN108351636B (en) Engineering design tool, system and module
US8640096B2 (en) Configuration of componentized software applications
EP3042254B1 (en) Systems and methods for virtualizing a programmable logic controller
US9348771B1 (en) Cloud-based instrument driver system
US11150896B2 (en) Automated generation of service definitions for message queue application clients
WO2021197350A1 (en) Blockchain-based quality tracing system and method, and computer-readable storage medium
JP2011204238A (en) Method and apparatus to access process data stored in server
WO2020015191A1 (en) Business rule releasing and managing method, electronic device and readable storage medium
CN114385759B (en) Configuration file synchronization method and device, computer equipment and storage medium
CN110187986B (en) Command management method, system, device and computer readable storage medium
WO2020232707A1 (en) Update of communication protocol version number in distributed system
EP2804361B1 (en) Integrated interface system for power-system monitoring and control system
US20230297557A1 (en) Method for monitoring a state of an external data source, device, and medium
WO2013097481A1 (en) Method and system for identifying file type
CN112817935A (en) Data processing method, device and equipment based on field type and storage medium
CN112822199A (en) OTA (over the air) upgrading method and system based on protocol conversion
JP2014203138A (en) Electronic device, verification method, and verification program
US10754748B2 (en) System and method for constructing extensible event log with javascript object notation (JSON) encoded payload data
CN109471878A (en) A kind of substation's telecontrol device automatic comparison system
WO2018170866A1 (en) Data acquisition method and apparatus
CN116431200A (en) Configuration method, device, equipment and storage medium for application data configuration information
CN114329097A (en) Method and device for registering product identifications in batches, electronic equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17900575

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17900575

Country of ref document: EP

Kind code of ref document: A1