[go: up one dir, main page]

CN112202745B - Streaming protocol development method, device, equipment and storage medium - Google Patents

Streaming protocol development method, device, equipment and storage medium Download PDF

Info

Publication number
CN112202745B
CN112202745B CN202011012409.7A CN202011012409A CN112202745B CN 112202745 B CN112202745 B CN 112202745B CN 202011012409 A CN202011012409 A CN 202011012409A CN 112202745 B CN112202745 B CN 112202745B
Authority
CN
China
Prior art keywords
protocol
message
development
program
protocol message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011012409.7A
Other languages
Chinese (zh)
Other versions
CN112202745A (en
Inventor
张星
徐高峰
路旭
李飞
毛新
刘兆昆
王李哲
耿飞
陈浩男
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Liwei Zhilian Technology Co.,Ltd.
Shenzhen ZNV Technology Co Ltd
Original Assignee
Shenzhen ZNV Technology Co Ltd
Nanjing ZNV Software 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 Shenzhen ZNV Technology Co Ltd, Nanjing ZNV Software Co Ltd filed Critical Shenzhen ZNV Technology Co Ltd
Priority to CN202011012409.7A priority Critical patent/CN112202745B/en
Publication of CN112202745A publication Critical patent/CN112202745A/en
Application granted granted Critical
Publication of CN112202745B publication Critical patent/CN112202745B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • 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]

Landscapes

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

Abstract

The invention discloses a streaming protocol development method, a device, equipment and a storage medium, wherein a protocol message is visually assembled according to definition data to generate a protocol program; debugging and testing the simulation data based on the protocol program to generate a debugging and testing result; and when the debugging and testing result passes the verification, determining to complete the streaming protocol development. According to the method, the protocol messages are visually assembled to generate the protocol program, manual protocol program coding is avoided, the error rate of manual development is reduced, the simulation data are debugged through the protocol program, the streaming protocol development is confirmed to be completed when the debugging result passes verification, the protocol program is verified through the addition of an intelligent debugging step, and the testing passing rate of the butt joint of the equipment of the Internet of things is effectively improved.

Description

流式协议开发方法、装置、设备及存储介质Streaming protocol development method, device, equipment and storage medium

技术领域technical field

本发明涉及物联网技术领域,尤其涉及一种流式协议开发方法、装置、设备及存储介质。The present invention relates to the technical field of the Internet of Things, in particular to a streaming protocol development method, device, equipment and storage medium.

背景技术Background technique

随着物联网技术快速发展,数据不断汇聚融合,各种物联网设备终端的对接需求持续增长,设备之间对接的效率成了影响产品发布和交付的重要一环,如何保障设备快速与第三方设备或平台完成对接,如何提升二次开发效率,降低研发维护成本,是嵌入式研发亟待解决的一个重要问题。With the rapid development of the Internet of Things technology and the continuous convergence and integration of data, the demand for docking of various IoT device terminals continues to grow. The efficiency of docking between devices has become an important part of product release and delivery. How to ensure the rapid integration of devices with third-party devices Or the docking of the platform is completed, how to improve the efficiency of secondary development and reduce the cost of R&D maintenance is an important problem to be solved in embedded R&D.

目前的设备对接大多都是定制开发,针对不同厂家的不同型号设备,首先研究协议说明书,其次沟通协议中的问题,再次进行编码联调,最后解决问题,直到测试通过,这样的开发过程不但冗余,而且出错几率和纠错代价过高,比如开发过程制作协议调试手册时,如果协议文本中的信号量特别多,有的点位表协议将近有上千个多信号量需要采集,这对于制作协议调试手册是一个非常繁琐的工作,而且是人工检查,错误排查效率也非常低。还有对于MODBUS协议,协议规定每次读取的寄存器地址不能超过100个,但是协议文本中的寄存器数量可能有上千个,这样的话,命令报文组装就需要至少20条至50条,重复工作过多,亦导致开发过程冗余,进而导致开发对接耗时较长,使得物联网设备对接的测试通过率较低。Most of the current equipment docking is customized development. For different types of equipment from different manufacturers, first study the protocol specification, then communicate the problems in the protocol, and then conduct coding joint debugging, and finally solve the problem until the test is passed. Such a development process is not only tedious. In addition, the probability of error and the cost of error correction are too high. For example, when making a protocol debugging manual during the development process, if there are too many semaphores in the protocol text, some point table protocols have nearly thousands of semaphores to collect. Making a protocol debugging manual is a very cumbersome job, and it is manually checked, and the efficiency of error checking is also very low. Also for the MODBUS protocol, the protocol stipulates that the number of register addresses read each time cannot exceed 100, but the number of registers in the protocol text may be thousands. In this case, at least 20 to 50 command messages are required to assemble, repeat Too much work also leads to redundancy in the development process, which in turn leads to a long time-consuming development and docking, making the test pass rate of IoT device docking low.

发明内容Contents of the invention

本发明的主要目的在于提供一种流式协议开发方法、装置、设备及存储介质,旨在解决当前物联网设备对接的测试通过率较低的技术问题。The main purpose of the present invention is to provide a streaming protocol development method, device, equipment and storage medium, aiming at solving the technical problem of the current low test passing rate of IoT device docking.

为实现上述目的,本发明实施例提供一种流式协议开发方法,所述流式协议开发方法包括:In order to achieve the above purpose, an embodiment of the present invention provides a method for developing a streaming protocol, the method for developing a streaming protocol includes:

根据定义数据对协议报文进行可视化组装,生成协议程序;Visually assemble the protocol message according to the defined data to generate the protocol program;

基于所述协议程序对模拟数据进行调测,生成调测结果;Commissioning the simulated data based on the protocol program to generate commissioning results;

当所述调测结果通过验证时,确定完成流式协议开发。When the commissioning result passes the verification, it is determined that the development of the streaming protocol is completed.

优选地,所述根据定义数据对协议报文进行可视化组装,生成协议程序的步骤包括:Preferably, the step of visually assembling the protocol message according to the defined data, and generating the protocol program includes:

获取定义数据,并获取通信协议选择指令对应的协议报文;Obtain the definition data, and obtain the protocol message corresponding to the communication protocol selection instruction;

根据所述定义数据对所述协议报文进行可视化组装,得到目标协议报文;Visually assembling the protocol message according to the definition data to obtain a target protocol message;

根据所述目标协议报文,生成协议程序。Generate a protocol program according to the target protocol message.

优选地,所述根据所述定义数据对所述协议报文进行可视化组装,得到目标协议报文的步骤包括:Preferably, the step of visually assembling the protocol message according to the definition data to obtain the target protocol message includes:

提取所述定义数据中的字典表定义数据与参数定义数据,并获取所述协议报文的报文信息,其中报文信息包括发送报文、接收报文、报文包头和报文内容;extracting dictionary table definition data and parameter definition data in the definition data, and obtaining message information of the protocol message, wherein the message information includes sending message, receiving message, message header and message content;

将所述字典表定义数据与参数定义数据作为输入数据分别可视化组装至所述报文信息的发送报文、接收报文、报文包头和报文内容,得到第一协议报文、第二协议报文、第三协议报文与第四协议报文;Using the dictionary table definition data and parameter definition data as input data to visually assemble the sending message, receiving message, message header and message content of the message information respectively, to obtain the first protocol message and the second protocol message A message, a third protocol message and a fourth protocol message;

将所述第一协议报文、所述第二协议报文、所述第三协议报文与所述第四协议报文整合得到目标协议报文。Integrating the first protocol packet, the second protocol packet, the third protocol packet, and the fourth protocol packet to obtain a target protocol packet.

优选地,所述根据所述目标协议报文,生成协议程序的步骤包括:Preferably, the step of generating a protocol program according to the target protocol message includes:

对所述目标协议报文中的所述第一协议报文、所述第二协议报文、所述第三协议报文与所述第四协议报文进行排序,得到排序协议报文;Sorting the first protocol message, the second protocol message, the third protocol message, and the fourth protocol message in the target protocol message to obtain a sorted protocol message;

获取所述排序协议报文对应的原型报文源码,检测所述原型报文源码是否存在错误;Obtain the source code of the prototype message corresponding to the sorting protocol message, and detect whether there is an error in the source code of the prototype message;

若所述原型报文源码不存在错误,则基于所述原型报文源码,生成协议程序。If there is no error in the source code of the prototype message, a protocol program is generated based on the source code of the prototype message.

优选地,所述基于所述原型报文源码,生成协议程序的步骤包括:Preferably, the step of generating a protocol program based on the source code of the prototype message includes:

对语言选择指令进行解析,得到目标代码语言;Analyze the language selection instruction to obtain the target code language;

根据所述目标代码语言对所述原型报文源码进行语言转换,得到目标代码;performing language conversion on the source code of the prototype message according to the target code language to obtain the target code;

根据预设代码编译器对所述目标代码进行编译,生成协议程序。The target code is compiled according to a preset code compiler to generate a protocol program.

优选地,所述当所述调测结果通过验证时,确定完成流式协议开发的步骤包括:Preferably, when the commissioning result is verified, the step of determining that the development of the streaming protocol is completed includes:

将所述调测结果与标准结果进行对比,确定所述调测结果是否通过验证;Comparing the commissioning result with the standard result to determine whether the commissioning result has passed the verification;

若所述调测结果与所述标准结果相同,则判定所述调测结果通过验证,确定完成流式协议开发。If the commissioning result is the same as the standard result, it is determined that the commissioning result has passed the verification, and it is determined that the development of the streaming protocol is completed.

优选地,所述根据定义数据对协议报文进行可视化组装,生成协议程序的步骤之前,还包括:Preferably, before the step of visually assembling the protocol message according to the defined data and generating the protocol program, it also includes:

获取标准过程和业务过程,分别对所述标准过程与业务过程进行拆分,得到包含协议报文的多个协议模组,以根据定义数据对协议报文进行可视化组装,生成协议程序。The standard process and the business process are obtained, and the standard process and the business process are respectively split to obtain a plurality of protocol modules including the protocol message, so as to visually assemble the protocol message according to the definition data, and generate a protocol program.

为实现上述目的,本发明还提供一种流式协议开发装置,所述流式协议开发装置包括:To achieve the above object, the present invention also provides a streaming protocol development device, the streaming protocol development device includes:

组装模块,用于根据定义数据对协议报文进行可视化组装,生成协议程序;The assembly module is used to visually assemble the protocol message according to the defined data, and generate the protocol program;

调测模块,用于基于所述协议程序对模拟数据进行调测,生成调测结果;A commissioning module, configured to commission the simulated data based on the protocol program, and generate a commissioning result;

确定模块,用于当所述调测结果通过验证时,确定完成流式协议开发。The determining module is configured to determine that the development of the streaming protocol is completed when the commissioning result passes the verification.

进一步地,为实现上述目的,本发明还提供一种流式协议开发设备,所述流式协议开发设备包括存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的流式协议开发程序,所述流式协议开发程序被所述处理器执行时实现上述的流式协议开发方法的步骤。Further, in order to achieve the above object, the present invention also provides a streaming protocol development device, which includes a memory, a processor, and a stream stored in the memory and operable on the processor. A streaming protocol development program, when the streaming protocol development program is executed by the processor, implements the above-mentioned steps of the streaming protocol development method.

进一步地,为实现上述目的,本发明还提供一种存储介质,所述存储介质上存储有流式协议开发程序,所述流式协议开发程序被处理器执行时实现上述的流式协议开发方法的步骤。Further, in order to achieve the above object, the present invention also provides a storage medium, on which a streaming protocol development program is stored, and when the streaming protocol development program is executed by a processor, the above streaming protocol development method is realized A step of.

本发明实施例提供一种流式协议开发方法、装置、设备及存储介质,根据定义数据对协议报文进行可视化组装,生成协议程序;基于所述协议程序对模拟数据进行调测,生成调测结果;当所述调测结果通过验证时,确定完成流式协议开发。本发明通过对协议报文进行可视化组装并生成协议程序,避免人工进行协议程序编码,减少人工开发的出错率,并通过协议程序对模拟数据进行调测,在调测结果通过验证时确定流式协议开发完成,通过增加智能调试步骤对协议程序进行验证,有效提升物联网设备对接的测试通过率。Embodiments of the present invention provide a streaming protocol development method, device, device, and storage medium, which visually assemble protocol messages according to defined data to generate a protocol program; perform commissioning on simulated data based on the protocol program to generate commissioning Result; when the commissioning result passes the verification, it is determined that the development of the streaming protocol is completed. The present invention visually assembles the protocol message and generates the protocol program, avoids manual coding of the protocol program, reduces the error rate of manual development, and tests the simulated data through the protocol program, and determines the flow mode when the test result is verified. After the development of the protocol is completed, the protocol program is verified by adding intelligent debugging steps, which effectively improves the test pass rate of IoT device docking.

附图说明Description of drawings

图1为本发明流式协议开发方法实施例方案涉及的硬件运行环境的结构示意图;Fig. 1 is a schematic structural diagram of the hardware operating environment involved in the implementation scheme of the streaming protocol development method of the present invention;

图2为本发明流式协议开发方法第一实施例的流程示意图;FIG. 2 is a schematic flowchart of the first embodiment of the method for developing a streaming protocol according to the present invention;

图3为本发明流式协议开发方法第一部分的流程示意图;3 is a schematic flow diagram of the first part of the streaming protocol development method of the present invention;

图4为本发明流式协议开发方法第二实施例的流程示意图;FIG. 4 is a schematic flowchart of a second embodiment of the method for developing a streaming protocol of the present invention;

图5为本发明流式协议开发方法第二部分的流程示意图;5 is a schematic flow diagram of the second part of the streaming protocol development method of the present invention;

图6为本发明流式协议开发装置较佳实施例的功能模块示意图。Fig. 6 is a schematic diagram of functional modules of a preferred embodiment of the streaming protocol development device of the present invention.

本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose of the present invention, functional characteristics and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings.

具体实施方式Detailed ways

应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

本发明实施例提供一种流式协议开发方法、装置、设备及存储介质,根据定义数据对协议报文进行可视化组装,生成协议程序;基于所述协议程序对模拟数据进行调测,生成调测结果;当所述调测结果通过验证时,确定完成流式协议开发。本发明通过对协议报文进行可视化组装并生成协议程序,避免人工进行协议程序编码,减少人工开发的出错率,并通过协议程序对模拟数据进行调测,在调测结果通过验证时确定流式协议开发完成,通过增加智能调试步骤对协议程序进行验证,有效提升物联网设备对接的测试通过率。Embodiments of the present invention provide a streaming protocol development method, device, device, and storage medium, which visually assemble protocol messages according to defined data to generate a protocol program; perform commissioning on simulated data based on the protocol program to generate commissioning Result; when the commissioning result passes the verification, it is determined that the development of the streaming protocol is completed. The present invention visually assembles the protocol message and generates the protocol program, avoids manual coding of the protocol program, reduces the error rate of manual development, and tests the simulated data through the protocol program, and determines the flow mode when the test result is verified. After the development of the protocol is completed, the protocol program is verified by adding intelligent debugging steps, which effectively improves the test pass rate of IoT device docking.

如图1所示,图1是本发明实施例方案涉及的硬件运行环境的流式协议开发设备结构示意图。As shown in FIG. 1 , FIG. 1 is a schematic structural diagram of a streaming protocol development device in a hardware operating environment involved in the solution of an embodiment of the present invention.

在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本发明的说明,其本身没有特定的意义。因此,“模块”、“部件”或“单元”可以混合地使用。In the following description, use of suffixes such as 'module', 'part' or 'unit' for denoting elements is only for facilitating description of the present invention and has no specific meaning by itself. Therefore, 'module', 'part' or 'unit' may be used in combination.

本发明实施例流式协议开发设备可以是PC,也可以是平板电脑、便携计算机等可移动式终端设备。The streaming protocol development device in the embodiment of the present invention may be a PC, or a mobile terminal device such as a tablet computer or a portable computer.

如图1所示,该流式协议开发设备可以包括:处理器1001,例如CPU,网络接口1004,用户接口1003,存储器1005,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 1 , the streaming protocol development device may include: a processor 1001 , such as a CPU, a network interface 1004 , a user interface 1003 , a memory 1005 , and a communication bus 1002 . Wherein, the communication bus 1002 is used to realize connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. Optionally, the network interface 1004 may include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001 .

本领域技术人员可以理解,图1中示出的流式协议开发设备结构并不构成对流式协议开发设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure of the streaming protocol development device shown in Figure 1 does not constitute a limitation on the streaming protocol development device, and may include more or less components than shown in the figure, or combine certain components, or Different component arrangements.

如图1所示,作为一种存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及流式协议开发程序。As shown in FIG. 1 , memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a streaming protocol development program.

在图1所示的设备中,网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;用户接口1003主要用于连接客户端(用户端),与客户端进行数据通信;而处理器1001可以用于调用存储器1005中存储的流式协议开发程序,并执行以下操作:In the device shown in Figure 1, the network interface 1004 is mainly used to connect to the background server and perform data communication with the background server; the user interface 1003 is mainly used to connect to the client (client) and perform data communication with the client; and the processor 1001 can be used to call the streaming protocol development program stored in memory 1005, and perform the following operations:

根据定义数据对协议报文进行可视化组装,生成协议程序;Visually assemble the protocol message according to the defined data to generate the protocol program;

基于所述协议程序对模拟数据进行调测,生成调测结果;Commissioning the simulated data based on the protocol program to generate commissioning results;

当所述调测结果通过验证时,确定完成流式协议开发。When the commissioning result passes the verification, it is determined that the development of the streaming protocol is completed.

进一步地,所述根据定义数据对协议报文进行可视化组装,生成协议程序的步骤包括:Further, the step of visually assembling the protocol message according to the defined data, and generating the protocol program includes:

获取定义数据,并获取通信协议选择指令对应的协议报文;Obtain the definition data, and obtain the protocol message corresponding to the communication protocol selection instruction;

根据所述定义数据对所述协议报文进行可视化组装,得到目标协议报文;Visually assembling the protocol message according to the definition data to obtain a target protocol message;

根据所述目标协议报文,生成协议程序。Generate a protocol program according to the target protocol message.

进一步地,所述根据所述定义数据对所述协议报文进行可视化组装,得到目标协议报文的步骤包括:Further, the step of visually assembling the protocol message according to the definition data to obtain the target protocol message includes:

提取所述定义数据中的字典表定义数据与参数定义数据,并获取所述协议报文的报文信息,其中报文信息包括发送报文、接收报文、报文包头和报文内容;extracting dictionary table definition data and parameter definition data in the definition data, and obtaining message information of the protocol message, wherein the message information includes sending message, receiving message, message header and message content;

将所述字典表定义数据与参数定义数据作为输入数据分别可视化组装至所述报文信息的发送报文、接收报文、报文包头和报文内容,得到第一协议报文、第二协议报文、第三协议报文与第四协议报文;Using the dictionary table definition data and parameter definition data as input data to visually assemble the sending message, receiving message, message header and message content of the message information respectively, to obtain the first protocol message and the second protocol message A message, a third protocol message and a fourth protocol message;

将所述第一协议报文、所述第二协议报文、所述第三协议报文与所述第四协议报文整合得到目标协议报文。Integrating the first protocol packet, the second protocol packet, the third protocol packet, and the fourth protocol packet to obtain a target protocol packet.

进一步地,所述根据所述目标协议报文,生成协议程序的步骤包括:Further, the step of generating a protocol program according to the target protocol message includes:

对所述目标协议报文中的所述第一协议报文、所述第二协议报文、所述第三协议报文与所述第四协议报文进行排序,得到排序协议报文;Sorting the first protocol message, the second protocol message, the third protocol message, and the fourth protocol message in the target protocol message to obtain a sorted protocol message;

获取所述排序协议报文对应的原型报文源码,检测所述原型报文源码是否存在错误;Obtain the source code of the prototype message corresponding to the sorting protocol message, and detect whether there is an error in the source code of the prototype message;

若所述原型报文源码不存在错误,则基于所述原型报文源码,生成协议程序。If there is no error in the source code of the prototype message, a protocol program is generated based on the source code of the prototype message.

进一步地,所述基于所述原型报文源码,生成协议程序的步骤包括:Further, the step of generating a protocol program based on the source code of the prototype message includes:

对语言选择指令进行解析,得到目标代码语言;Analyze the language selection instruction to obtain the target code language;

根据所述目标代码语言对所述原型报文源码进行语言转换,得到目标代码;performing language conversion on the source code of the prototype message according to the target code language to obtain the target code;

根据预设代码编译器对所述目标代码进行编译,生成协议程序。The target code is compiled according to a preset code compiler to generate a protocol program.

进一步地,所述当所述调测结果通过验证时,确定完成流式协议开发的步骤包括:Further, when the commissioning result is verified, the step of determining that the development of the streaming protocol is completed includes:

将所述调测结果与标准结果进行对比,确定所述调测结果是否通过验证;Comparing the commissioning result with the standard result to determine whether the commissioning result has passed the verification;

若所述调测结果与所述标准结果相同,则判定所述调测结果通过验证,确定完成流式协议开发。If the commissioning result is the same as the standard result, it is determined that the commissioning result has passed the verification, and it is determined that the development of the streaming protocol is completed.

进一步地,所述根据定义数据对协议报文进行可视化组装,生成协议程序的步骤之前,还包括:Further, before the step of visually assembling the protocol message according to the defined data and generating the protocol program, it also includes:

获取标准过程和业务过程,分别对所述标准过程与业务过程进行拆分,得到包含协议报文的多个协议模组,以根据定义数据对协议报文进行可视化组装,生成协议程序。The standard process and the business process are obtained, and the standard process and the business process are respectively split to obtain a plurality of protocol modules including the protocol message, so as to visually assemble the protocol message according to the definition data, and generate a protocol program.

为了更好的理解上述技术方案,下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。In order to better understand the above-mentioned technical solutions, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

为了更好的理解上述技术方案,下面将结合说明书附图以及具体的实施方式对上述技术方案进行详细的说明。In order to better understand the above-mentioned technical solution, the above-mentioned technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.

参照图2,本发明第一实施例提供一种流式协议开发方法的流程示意图。该实施例中,所述流式协议开发方法包括以下步骤:Referring to FIG. 2 , the first embodiment of the present invention provides a schematic flowchart of a method for developing a streaming protocol. In this embodiment, the method for developing a streaming protocol includes the following steps:

步骤S10,根据定义数据对协议报文进行可视化组装,生成协议程序;Step S10, visually assemble the protocol message according to the defined data, and generate a protocol program;

可以理解地,目前的设备对接大多都是定制开发,针对不同厂家的不同型号设备,首先研究协议说明书,其次沟通协议中的问题,再次进行编码联调,最后解决问题,直到测试通过,这样的开发过程不但冗余,而且出错几率和纠错代价过高,比如开发过程制作协议调试手册时,如果协议文本中的信号量特别多,有的点位表协议将近有上千个多信号量需要采集,这对于制作协议调试手册是一个非常繁琐的工作,而且是人工检查,错误排查效率也非常低。还有对于Modbus协议,协议规定每次读取的寄存器地址不能超过100个;但是协议文本中的寄存器数量可能有上千个,这样的话,命令报文组装就需要至少20至50条,重复工作过多,亦导致开发过程冗余,其中Modbus是一种串行通信协议,是Modicon公司(现在的施耐德电气Schneider Electric)于1979年为使用可编程逻辑控制器通信而发表。Modbus已经成为工业领域通信协议的业界标准(De facto),并且现在是工业电子设备之间常用的连接方式。It is understandable that most of the current equipment docking is custom-made development. For different types of equipment from different manufacturers, first study the protocol specification, then communicate the problems in the protocol, and then conduct coding joint debugging, and finally solve the problem until the test passes. The development process is not only redundant, but also the probability of error and the cost of error correction are too high. For example, when making a protocol debugging manual during the development process, if there are too many semaphores in the protocol text, some point table protocols require nearly thousands of semaphores. Collection, which is a very cumbersome task for making a protocol debugging manual, and it is manually checked, and the efficiency of error checking is also very low. Also for the Modbus protocol, the protocol stipulates that the number of register addresses read each time cannot exceed 100; however, the number of registers in the protocol text may be thousands. In this case, at least 20 to 50 command messages are required to assemble, repeating the work Too much also leads to redundancy in the development process. Among them, Modbus is a serial communication protocol, which was published by Modicon (now Schneider Electric) in 1979 for communication with programmable logic controllers. Modbus has become the industry standard (De facto) for communication protocols in the industrial field, and is now a common connection method between industrial electronic devices.

本实施例中流式协议开发方法应用于物联网设备对接系统(以下简称系统),系统可以应用于智能手机、平板电脑、PC邓物联网设备中,系统执行流式协议开发方法时可以分为两大部分,第一部分是协议模组开发,第二部分是真实协议开发,其中第一部分协议模组开发作为第二部分真实协议的基础,为第二部分的真实协议开发提供支持,第二部分的真实协议开发为本申请流式协议开发方法的核心步骤。系统通过执行流式协议开发方法,增加协议开发的可复用性,减少开发过程发冗余与人工开发的出错率,并增加智能调试步骤,提升物联网设备对接现场测试的通过率。In this embodiment, the streaming protocol development method is applied to the Internet of Things device docking system (hereinafter referred to as the system). The system can be applied to smart phones, tablet computers, PCs and other Internet of Things devices. For the most part, the first part is protocol module development, and the second part is real protocol development. The first part of the protocol module development serves as the basis for the second part of the real protocol, providing support for the second part of the real protocol development. Real protocol development is the core step of the streaming protocol development method of this application. By implementing the streaming protocol development method, the system increases the reusability of protocol development, reduces the error rate of redundant development and manual development in the development process, and adds intelligent debugging steps to improve the pass rate of on-site testing of IoT devices.

进一步地,系统在执行流式协议开发方法的真实协议开发部分时,从外界或内部存储器中获取定义数据,并根据用户发送的通信协议选择指令获取对应的协议报文。进一步地,系统根据获取的定义数据对协议报文进行可视化组装,在可视化组装完成后得到目标协议报文,其中可视化(Visualization)是利用计算机图形学和图像处理技术,将数据转换成图形或图像在屏幕上显示出来,再进行交互处理的理论、方法和技术。进一步地,系统对目标协议报文中的多个协议报文进行排序,并在确定排序后的排序协议报文对应的原型报文源码无误后,根据原型报文源码生成协议程序。Further, when the system executes the real protocol development part of the streaming protocol development method, it obtains the definition data from the external or internal memory, and obtains the corresponding protocol message according to the communication protocol selection instruction sent by the user. Furthermore, the system visually assembles the protocol message according to the obtained definition data, and obtains the target protocol message after the visual assembly is completed, wherein visualization (Visualization) is to use computer graphics and image processing technology to convert data into graphics or images Displayed on the screen, and then the theory, method and technology of interactive processing. Further, the system sorts the multiple protocol messages in the target protocol messages, and generates the protocol program according to the source code of the prototype messages after determining that the source codes of the prototype messages corresponding to the sorted protocol messages are correct.

进一步地,在步骤S10之前,系统需要执行流式协议开发方法的第一部分协议模组开发,所述根据定义数据对协议报文进行可视化组装,生成协议程序的步骤之前包括步骤S1:Further, before step S10, the system needs to execute the first part of the protocol module development of the streaming protocol development method. The step of visually assembling the protocol message according to the definition data and generating the protocol program includes step S1:

步骤S1,获取标准过程和业务过程,分别对所述标准过程与业务过程进行拆分,得到包含协议报文的多个协议模组,以根据定义数据对协议报文进行可视化组装,生成协议程序。Step S1, obtain the standard process and the business process, respectively split the standard process and the business process, and obtain multiple protocol modules containing the protocol message, so as to visually assemble the protocol message according to the defined data, and generate the protocol program .

进一步地,参照图3,系统开始执行本发明方法中的第一部分,获取标准过程和业务过程,分别对标准过程和业务过程进行拆分,得到包含协议报文的多个协议模组,具体地,将标准过程拆分为网络通信和串行通信,进一步将网络通信拆分为TCP(TransmissionControl Protocol,传输控制协议)、UDP(User Datagram Protocol,用户数据报协议)、http(HyperText Transfer Protocol,超文本传输协议)、mqtt(Message QueuingTelemetry Transport,消息队列遥测传输协议)等通信协议,将串行通信拆分为RS232、RS485、can总线、mobus协议、电总协议;对业务过程进行拆分,得到发送报文和接收报文,进一步对发送报文进行拆分,得到包头定义、报文内容定义、报文顺序定义,对接收报文进行拆分,得到包头定义、校验定义、内容解析、数据处理。在完成对标准过程和业务过程的拆分后,得到包含协议报文的多个协议模组,以便于系统根据获取的定义数据,对用户从多个协议模组包含的多个协议报文中选择的协议报文进行可视化组装,生成协议程序。进一步地,系统还需要进行协议模块开发、业务模块开发、数据流模块开发、智能纠错模块开发、智能调测模块开发、编译模块开发、文档模块开发以及可视化模块开发,在完成多个模块开发后,结束第一部分的开发流程,通过进行前述多个模块的开发,对系统执行本发明流式协议开发方法第二部分真实协议开发的步骤提供硬件支持。Further, referring to Fig. 3, the system starts to execute the first part in the method of the present invention, obtains the standard process and the business process, splits the standard process and the business process respectively, and obtains a plurality of protocol modules including protocol messages, specifically , split the standard process into network communication and serial communication, and further split the network communication into TCP (Transmission Control Protocol, Transmission Control Protocol), UDP (User Datagram Protocol, User Datagram Protocol), http (HyperText Transfer Protocol, HyperText Text Transfer Protocol), mqtt (Message QueuingTelemetry Transport, Message Queue Telemetry Transport Protocol) and other communication protocols, split the serial communication into RS232, RS485, can bus, mobus protocol, and electrical master protocol; split the business process to get Send and receive messages, and further split the sent messages to obtain the header definition, message content definition, and message sequence definition, and split the received message to obtain the header definition, verification definition, content analysis, data processing. After splitting the standard process and business process, multiple protocol modules containing protocol messages are obtained, so that the system can, according to the obtained definition data, select the user from multiple protocol messages contained in multiple protocol modules The selected protocol message is visually assembled to generate a protocol program. Furthermore, the system also needs to develop protocol modules, business modules, data flow modules, intelligent error correction modules, intelligent commissioning modules, compilation modules, document modules, and visualization modules. After completing the development of multiple modules Afterwards, the first part of the development process is completed, and through the development of the aforementioned multiple modules, hardware support is provided for the system to execute the second part of the real protocol development step of the streaming protocol development method of the present invention.

步骤S20,基于所述协议程序对模拟数据进行调测,生成调测结果;Step S20, commissioning the simulated data based on the protocol program, and generating commissioning results;

进一步地,在生成协议程序之后,系统获取用户预先存储在系统存储器中或者用户通过外接设备例如键盘输入的模拟数据,将模拟数据输入至协议程序并适应性插入协议程序中与模拟数据对应的区域,在完成模拟数据的插入后,启动协议程序进行模拟,经过模拟得到调测结果。例如:系统获取用户通过键盘输入的电压模拟数据,将电压模拟数据插入协议程序中用于进行电压测试的区域,并启动协议程序进行模拟,在协议程序执行完模拟过程后,得到包含电压测试数值的调测结果。Further, after generating the protocol program, the system obtains the simulated data stored in the system memory by the user in advance or input by the user through an external device such as a keyboard, inputs the simulated data into the protocol program and adaptively inserts it into the area corresponding to the simulated data in the protocol program , after completing the insertion of the simulation data, start the protocol program for simulation, and obtain the commissioning results after simulation. For example: the system obtains the voltage simulation data input by the user through the keyboard, inserts the voltage simulation data into the area used for voltage testing in the protocol program, and starts the protocol program for simulation. After the protocol program completes the simulation process, it obtains the voltage test value The commissioning results.

步骤S30,当所述调测结果通过验证时,确定完成流式协议开发。Step S30, when the commissioning result passes the verification, it is determined that the development of the streaming protocol is completed.

进一步地,为了确定是否完成流式协议开发,系统对调试结果进行验证,当调试结果通过验证时,确定完成流式协议开发。相反地,若调试结果没有通过验证,系统调测结果进行错误分析,并输出告警提示,以供开发人员修改确认。Further, in order to determine whether the development of the streaming protocol is completed, the system verifies the debugging result, and when the debugging result passes the verification, it is determined that the development of the streaming protocol is completed. On the contrary, if the debugging result fails to pass the verification, the system debugging result will be analyzed for errors, and an alarm prompt will be output for developers to modify and confirm.

本发明实施例提供一种流式协议开发方法、装置、设备及存储介质,根据定义数据对协议报文进行可视化组装,生成协议程序;基于所述协议程序对模拟数据进行调测,生成调测结果;当所述调测结果通过验证时,确定完成流式协议开发。本发明通过对协议报文进行可视化组装并生成协议程序,避免人工进行协议程序编码,减少人工开发的出错率,并通过协议程序对模拟数据进行调测,在调测结果通过验证时确定流式协议开发完成,通过增加智能调试步骤对协议程序进行验证,有效提升物联网设备对接的测试通过率。Embodiments of the present invention provide a streaming protocol development method, device, device, and storage medium, which visually assemble protocol messages according to defined data to generate a protocol program; perform commissioning on simulated data based on the protocol program to generate commissioning Result; when the commissioning result passes the verification, it is determined that the development of the streaming protocol is completed. The present invention visually assembles the protocol message and generates the protocol program, avoids manual coding of the protocol program, reduces the error rate of manual development, and tests the simulated data through the protocol program, and determines the flow mode when the test result is verified. After the development of the protocol is completed, the protocol program is verified by adding intelligent debugging steps, which effectively improves the test pass rate of IoT device docking.

进一步地,参照图4,基于本发明流式协议开发方法的第一实施例,提出本发明流式协议开发方法的第二实施例,在第二实施例中,所述根据定义数据对协议报文进行可视化组装,生成协议程序的步骤包括:Further, referring to FIG. 4 , based on the first embodiment of the method for developing a streaming protocol of the present invention, a second embodiment of the method for developing a streaming protocol of the present invention is proposed. Visually assemble the text, and the steps to generate the protocol program include:

步骤S11,获取定义数据,并获取通信协议选择指令对应的协议报文;Step S11, obtaining the definition data, and obtaining the protocol message corresponding to the communication protocol selection instruction;

步骤S12,根据所述定义数据对所述协议报文进行可视化组装,得到目标协议报文;Step S12, visually assembling the protocol message according to the definition data to obtain a target protocol message;

步骤S13,根据所述目标协议报文,生成协议程序。Step S13, generating a protocol program according to the target protocol message.

进一步地,系统可以通过文件导入、从内部预设的存储器读取以及通过外界设备接收等方式获取定义数据,其中定义数据至少包含字典表定义数据与参数定义数据。在获取定义数据后,系统可以通过显示屏幕输出选择列表来提示用户选择通信协议,其中选择列表中包含CAN(Controller Area Network,控制器局域网总线)协议、Modbus协议、电总协议(艾默生通讯电源485协议)、自定义串行协议等,CAN协议是一种用于实时应用的串行通讯协议总线,它可以使用双绞线来传输信号,是世界上应用最广泛的现场总线之一。CAN协议用于汽车中各种不同元件之间的通信,以此取代昂贵而笨重的配电线束,且CAN协议的健壮性使其用途延伸到其他自动化和工业应用,自定义串行协议为用户定义的一种协议;在用户完成通信协议选择并发送通信协议选择指令后,系统对通信协议选择指令进行解析,具体地,对通信协议选择指令中包含的协议信息进行识别,在多个协议模组中查找与通信协议指令中协议信息匹配的协议模组,并将协议模组中的协议报文确定为通信协议选择指令对应的协议报文。在得到定义数据和协议报文后,系统按照获取的定义数据通过可视化组装的方式组装至协议报文中,在完成所有定义数据的组装后,得到目标协议报文。进一步地,系统将可视化组装得到的目标协议报文进行排序,获取排序生成的排序协议报文对应的原型报文源码,并在确定原型报文源码无误时,将原型报文源码生成为协议程序。Furthermore, the system can obtain definition data by importing files, reading from internal preset memory, receiving from external devices, etc., wherein the definition data includes at least dictionary table definition data and parameter definition data. After obtaining the defined data, the system can prompt the user to select the communication protocol by displaying the screen output selection list, where the selection list includes CAN (Controller Area Network, controller area network bus) protocol, Modbus protocol, electrical master protocol (Emerson communication power supply 485 Protocol), custom serial protocol, etc. CAN protocol is a serial communication protocol bus for real-time applications, which can use twisted pair wires to transmit signals, and is one of the most widely used field buses in the world. The CAN protocol is used for communication between various components in the car, thereby replacing expensive and cumbersome distribution harnesses, and the robustness of the CAN protocol extends its use to other automation and industrial applications, custom serial protocols for users A defined protocol; after the user completes the communication protocol selection and sends the communication protocol selection instruction, the system parses the communication protocol selection instruction, specifically, identifies the protocol information contained in the communication protocol selection instruction, Find the protocol module matching the protocol information in the communication protocol instruction in the group, and determine the protocol message in the protocol module as the protocol message corresponding to the communication protocol selection instruction. After obtaining the definition data and the protocol message, the system assembles the obtained definition data into the protocol message through visual assembly, and after completing the assembly of all the definition data, the target protocol message is obtained. Further, the system sorts the target protocol messages obtained by visual assembly, obtains the source code of the prototype messages corresponding to the sorted protocol messages generated by sorting, and generates the source code of the prototype messages as a protocol program when it is determined that the source code of the prototype messages is correct .

本实施例根据定义数据对协议报文进行可视化组装,生成协议程序,由于对协议报文进行可视化组装后的目标协议报文中包含有对应的源码,可减少人工编码开发带来的出错率,提高协议开发的可复用性,有利于提升物联网设备对接的测试通过率。In this embodiment, the protocol message is visually assembled according to the definition data to generate a protocol program. Since the target protocol message after the visual assembly of the protocol message contains the corresponding source code, the error rate caused by manual coding development can be reduced. Improving the reusability of protocol development is conducive to improving the test pass rate of IoT device docking.

进一步地,基于本发明流式协议开发方法的第二实施例,提出本发明流式协议开发方法的第三实施例,在第三实施例中,所述根据所述定义数据对所述协议报文进行可视化组装,得到目标协议报文的步骤包括:Further, based on the second embodiment of the stream protocol development method of the present invention, a third embodiment of the stream protocol development method of the present invention is proposed. In the third embodiment, the protocol report is generated according to the definition data Visually assemble the text, and the steps to obtain the target protocol message include:

步骤S121,提取所述定义数据中的字典表定义数据与参数定义数据,并获取所述协议报文的报文信息,其中报文信息包括发送报文、接收报文、报文包头和报文内容;Step S121, extracting the dictionary table definition data and parameter definition data in the definition data, and obtaining the message information of the protocol message, wherein the message information includes sending message, receiving message, message packet header and message content;

步骤S122,将所述字典表定义数据与参数定义数据作为输入数据分别可视化组装至所述报文信息的发送报文、接收报文、报文包头和报文内容,得到第一协议报文、第二协议报文、第三协议报文与第四协议报文;Step S122, using the dictionary table definition data and parameter definition data as input data to visually assemble the sending message, receiving message, message header and message content respectively into the message information, to obtain the first protocol message, the second protocol message, the third protocol message and the fourth protocol message;

步骤S123,将所述第一协议报文、所述第二协议报文、所述第三协议报文与所述第四协议报文整合得到目标协议报文。Step S123, integrating the first protocol message, the second protocol message, the third protocol message and the fourth protocol message to obtain a target protocol message.

进一步地,系统对定义数据进行解析,从定义数据中提取除字典表定义数据以及参数定义数据,其中字典表定义数据用于进行数据查询,参数定义数据可以包含参数值、参数名等数据,同时,系统对协议报文进行解析,识别协议报文中的发送报文,接收报文,报文包头以及报文内容等报文信息。在提取字典表定义数据、参数定义数据以及报文信息之后,系统将字典表定义数据和参数定义数据中与发送报文对应的数据可视化组装至发送报文中,得到第一协议报文;将得到将字典表定义数据和参数定义数据中与接收报文对应的数据可视化组装至接收报文中,得到第二协议报文;将字典表定义数据和参数定义数据中与报文包头对应的数据可视化组装至报文包头中,得到第三协议报文;以及将字典表定义数据和参数定义数据中与报文内容对应的数据可视化组装至报文内容中,得到第四协议报文。进一步地,系统对第一协议报文、第二协议报文、第三协议报文与第四协议报文进行整合,具体地,可以将第一协议报文、第二协议报文、第三协议报文与第四协议报文放置在同一文件中,将多个协议报文整合为一个目标协议报文。Further, the system analyzes the definition data, and extracts the dictionary table definition data and parameter definition data from the definition data, wherein the dictionary table definition data is used for data query, and the parameter definition data can include parameter values, parameter names and other data, and at the same time , the system analyzes the protocol message, and identifies the message information such as sending message, receiving message, message header and message content in the protocol message. After extracting the dictionary table definition data, parameter definition data and message information, the system visually assembles the data corresponding to the sent message in the dictionary table definition data and parameter definition data into the sent message to obtain the first protocol message; The data corresponding to the received message in the dictionary table definition data and the parameter definition data is visually assembled into the received message to obtain the second protocol message; the data corresponding to the packet header in the dictionary table definition data and the parameter definition data is obtained Visually assembling into the packet header to obtain the third protocol message; and visually assembling the data corresponding to the message content in the dictionary table definition data and parameter definition data into the message content to obtain the fourth protocol message. Further, the system integrates the first protocol message, the second protocol message, the third protocol message and the fourth protocol message, specifically, the first protocol message, the second protocol message, the third The protocol message and the fourth protocol message are placed in the same file, and multiple protocol messages are integrated into one target protocol message.

本实施例根据定义数据对协议报文进行可视化组装,得到目标协议报文,增加协议开发的可复用性,并且减少人工开发的出错率,使得目标协议报文对应的源码更加准确。This embodiment visually assembles the protocol message according to the definition data to obtain the target protocol message, increases the reusability of protocol development, reduces the error rate of manual development, and makes the source code corresponding to the target protocol message more accurate.

进一步地,基于本发明流式协议开发方法的第二实施例或第三实施例,提出本发明流式协议开发方法的第四实施例,在第四实施例中,所述根据所述目标协议报文,生成协议程序的步骤包括:Further, based on the second embodiment or the third embodiment of the method for developing a streaming protocol of the present invention, a fourth embodiment of the method for developing a streaming protocol of the present invention is proposed. In the fourth embodiment, the target protocol according to message, the steps of generating the protocol program include:

步骤S131,对所述目标协议报文中的所述第一协议报文、所述第二协议报文、所述第三协议报文与所述第四协议报文进行排序,得到排序协议报文;Step S131, sorting the first protocol message, the second protocol message, the third protocol message and the fourth protocol message in the target protocol message to obtain the sorted protocol message arts;

步骤S132,获取所述排序协议报文对应的原型报文源码,检测所述原型报文源码是否存在错误;Step S132, obtaining the source code of the prototype message corresponding to the sorting protocol message, and detecting whether there is an error in the source code of the prototype message;

步骤S133,若所述原型报文源码不存在错误,则基于所述原型报文源码,生成协议程序。Step S133, if there is no error in the source code of the prototype message, generate a protocol program based on the source code of the prototype message.

进一步地,系统在将第一协议报文、第二协议报文、第三协议报文与第四协议报文整合成目标协议报文后,为了使得调测结果更加快速与准确,系统需要对多个协议报文进行排序,具体地,系统将第一协议报文、第二协议报文、第三协议报文与第四协议报文按照用户设定的顺序进行排序,例如按照第一协议报文,第二协议报文,第四协议报文、第三协议报文的顺序进行排序,得到排序协议报文。进一步地,为了确保生成的协议程序可以顺利地执行,系统获取排序协议报文对应的原型报文源码,对原型报文源码中的代码进行逐行检测,确定原型报文源码是否存在代码错误的情况。进一步地,若经检测确定原型报文源码中所有的代码行均不存在错误,说明根据原型报文源码生成的协议程序不会存在因代码错误而无法启动的情况,系统先将原型报文源码转换为目标代码,调用预设代码编译器将目标代码编译成协议程序。Furthermore, after the system integrates the first protocol message, the second protocol message, the third protocol message, and the fourth protocol message into the target protocol message, in order to make the commissioning results faster and more accurate, the system needs to Multiple protocol messages are sorted. Specifically, the system sorts the first protocol message, the second protocol message, the third protocol message, and the fourth protocol message according to the order set by the user, for example, according to the first protocol message The sequence of the message, the second protocol message, the fourth protocol message and the third protocol message is sorted to obtain the sorted protocol message. Further, in order to ensure that the generated protocol program can be executed smoothly, the system obtains the source code of the prototype message corresponding to the sorted protocol message, checks the code in the source code of the prototype message line by line, and determines whether there is a code error in the source code of the prototype message Condition. Furthermore, if it is determined through testing that all code lines in the source code of the prototype message have no errors, it means that the protocol program generated based on the source code of the prototype message will not be unable to start due to code errors. The system first converts the source code of the prototype message Convert to object code, call preset code compiler to compile object code into protocol program.

进一步地,所述基于所述原型报文源码,生成协议程序的步骤包括:Further, the step of generating a protocol program based on the source code of the prototype message includes:

步骤S1331,对语言选择指令进行解析,得到目标代码语言;Step S1331, analyzing the language selection instruction to obtain the target code language;

步骤S1332,根据所述目标代码语言对所述原型报文源码进行语言转换,得到目标代码;Step S1332, performing language conversion on the source code of the prototype message according to the language of the target code to obtain the target code;

步骤S1333,根据预设代码编译器对所述目标代码进行编译,生成协议程序。Step S1333, compiling the target code according to a preset code compiler to generate a protocol program.

进一步地,在确定原型报文源码中不存在错误后,系统可以通过显示屏幕向用户输出选择语言的提示信息,提示用户选择生成协议程序的语言。当用户根据提示信息选择语言后,系统对用户选择语言发送的语言选择指令进行解析,识别语言选择指令对应的语言,并将该语言确定为目标代码语言。进一步地,系统根据原型报文源码与目标代码语言之间的格式转换关系,对原型报文源码进行语言格式转换,将原型报文源码转换为目标代码语言的目标代码。进一步地,系统调用预先开发的编译模块,通过编译模块中的预设代码编译器对目标代码进行编译,生成协议程序,其中预设代码编译器用于对代码进行编译,生成相应的应用程序,本实施例中不对预设代码编译器的类型进行限定,凡是可以将代码生成应用程序的代码编译器都在本发明范围内。可以理解地,除了将目标代码生成协议程序外,系统还可以将目标代码生成以SDK(Software Development Kit)形式存在的软件开发工具包,用户可通过调用软件开发工具包对模拟数据进行调测,生成调测结果。Further, after it is determined that there is no error in the source code of the prototype message, the system can output prompt information for selecting a language to the user through the display screen, prompting the user to select the language for generating the protocol program. After the user selects a language according to the prompt information, the system parses the language selection instruction sent by the user to select the language, identifies the language corresponding to the language selection instruction, and determines the language as the target code language. Further, the system performs language format conversion on the source code of the prototype message according to the format conversion relationship between the source code of the prototype message and the language of the target code, and converts the source code of the prototype message into the target code of the target code language. Furthermore, the system calls the pre-developed compiling module, and compiles the target code through the preset code compiler in the compiling module to generate the protocol program, wherein the preset code compiler is used to compile the code and generate the corresponding application program. The type of the preset code compiler is not limited in the embodiment, and any code compiler that can generate code for an application program falls within the scope of the present invention. Understandably, in addition to generating the target code into the protocol program, the system can also generate the target code into a software development kit in the form of SDK (Software Development Kit). Users can call the software development kit to debug the simulated data. Generate commissioning results.

本实施例对目标协议报文进行排序,并在确定排序得到的排序协议报文对应的原型报文源码无误时,通过预设代码编译器将对原型报文源码进行语言转换后生成的目标代码编译成协议程序,以保证协议程序可执行且调测得到的调测结果准确度高。This embodiment sorts the target protocol message, and when it is determined that the source code of the prototype message corresponding to the sorted protocol message obtained by sorting is correct, the target code generated after language conversion is performed on the source code of the prototype message by a preset code compiler Compile it into a protocol program to ensure that the protocol program is executable and the commissioning results obtained during commissioning are highly accurate.

进一步地,基于本发明流式协议开发方法的第一实施例,提出本发明流式协议开发方法的第五实施例,在第五实施例中,所述当所述调测结果通过验证时,确定完成流式协议开发的步骤包括:Further, based on the first embodiment of the method for developing a streaming protocol of the present invention, a fifth embodiment of the method for developing a streaming protocol of the present invention is proposed. In the fifth embodiment, when the commissioning result passes the verification, The steps to determine completion of streaming protocol development include:

步骤S31,将所述调测结果与标准结果进行对比,确定所述调测结果是否通过验证;Step S31, comparing the commissioning result with a standard result to determine whether the commissioning result has passed the verification;

步骤S32,若所述调测结果与所述标准结果相同,则判定所述调测结果通过验证,确定完成流式协议开发。Step S32, if the commissioning result is the same as the standard result, it is determined that the commissioning result has passed the verification, and it is determined that the development of the streaming protocol is completed.

进一步地,在通过编译生成的协议程序对模拟数据进行调测,生成调测结果后,为确定调测结果的准确度,系统获取对模拟数据进行调测的标准结果,将生成的调测结果与获取的标准结果进行对比,通过对比调测结果是否与标准结果相同,来确定调测结果是否通过验证。进一步地,若在经过对比后,确定调测结果与标准结果相同,说明编译生成的协议程序进行调测的准确度较高,系统判定调测结果通过验证,并确定完成流式协议开发。相反地,若在经过对比后,确定调测结果与标准结果不相同或者偏差大于一定的阈值,说明编译生成的协议程序进行调测的准确度较低,系统判定调测结果未通过验证,则对调测结果进行错误分析,将导致调测结果未通过验证的不正确报文进行标识,并将标识后的报文生成告警提示信息,以通过告警提示信息提示开发人员进行修改与确认。Furthermore, after commissioning the simulated data by compiling the generated protocol program and generating the commissioning results, in order to determine the accuracy of the commissioning results, the system obtains the standard results of the commissioning of the simulated data, and the generated commissioning results Compare with the obtained standard result, and determine whether the commissioning result passes the verification by comparing whether the commissioning result is the same as the standard result. Furthermore, if after comparison, it is determined that the commissioning result is the same as the standard result, it means that the compiled protocol program is more accurate for commissioning, and the system judges that the commissioning result has passed the verification, and determines that the streaming protocol development has been completed. On the contrary, if after comparison, it is determined that the commissioning result is not the same as the standard result or the deviation is greater than a certain threshold, it means that the compiled protocol program has low commissioning accuracy, and the system judges that the commissioning result has not passed the verification, then Error analysis of the commissioning results will mark the incorrect packets that fail the verification of the commissioning results, and generate alarm prompt information for the marked packets, so as to prompt developers to modify and confirm through the alarm prompt information.

本实施例通过对调测结果进行验证,并在调测结果与标准结果相同时,判定调测结果通过验证,确定完成流式协议开发,以确保通过编译生成的协议程序进行调测得到的调测结果具有较高的准确度,提升物联网设备对接的测试通过率。In this embodiment, by verifying the commissioning results, and when the commissioning results are the same as the standard results, it is determined that the commissioning results have passed the verification, and the development of the stream protocol is determined to be completed, so as to ensure that the commissioning obtained by compiling the generated protocol program is carried out. The result has high accuracy and improves the test passing rate of IoT device docking.

可以理解地,参照图5,系统执行本发明流式协议开发方法第二部分的步骤包括:系统开始执行第二部分的过程,首先通过文件导入或通过键盘等外接设备新增字典表定义以及新增参数定义名称,并将相应的参数进行录入,完成定义数据的获取。进一步地,系统提示用户可视化选择协议,其中协议至少包含有CAN协议、Modbus协议、电总协议、自定义串行协议等,在用户选择后确定通信协议选择指令对应的协议报文,通过获取的定义数据对协议报文进行可视化组装,并对可视化组装后的报文进行排序,生成包含原型报文源码的协议原型。进一步地,系统提示用户选择语言,以根据用户选择的语言将原型报文源码生成代码,在将原型报文源码生成代码以及接口文件后,通过编译模块对代码以及接口文件进行一键编译,生成协议程序。进一步地,系统通过协议程序对模拟数据进行智能调测,得到调测结果,若调测结果未通过验证,则需要对调测结果进行错误分析,以供开发人员进行修改与确认,在完成修改与确认后结束本发明流式协议开发。Understandably, referring to FIG. 5 , the system executes the second part of the streaming protocol development method of the present invention. The steps include: the system starts to execute the second part of the process, and first imports a file or adds a dictionary definition and a new dictionary table definition through an external device such as a keyboard. Add the parameter definition name, and enter the corresponding parameters to complete the acquisition of defined data. Further, the system prompts the user to visually select the protocol, wherein the protocol at least includes CAN protocol, Modbus protocol, electrical master protocol, custom serial protocol, etc. After the user selects, the protocol message corresponding to the communication protocol selection instruction is determined, and through the acquired Define the data to visually assemble the protocol messages, sort the visually assembled messages, and generate a protocol prototype including the source code of the prototype message. Furthermore, the system prompts the user to select a language to generate code from the source code of the prototype message according to the language selected by the user. After generating the code and interface files from the source code of the prototype message, the code and interface files are compiled with one click through the compiling module to generate protocol procedure. Furthermore, the system performs intelligent commissioning on the simulated data through the protocol program to obtain the commissioning result. If the commissioning result fails to pass the verification, it needs to analyze the error of the commissioning result for the developer to modify and confirm. After completing the modification and After confirmation, the development of the streaming protocol of the present invention is ended.

进一步地,本发明还提供一种流式协议开发装置。Further, the present invention also provides a streaming protocol development device.

参照图6,图6为本发明流式协议开发装置第一实施例的功能模块示意图。Referring to FIG. 6 , FIG. 6 is a schematic diagram of functional modules of the first embodiment of the device for developing a streaming protocol according to the present invention.

所述流式协议开发装置包括:The streaming protocol development device includes:

组装模块10,用于根据定义数据对协议报文进行可视化组装,生成协议程序;The assembly module 10 is used to visually assemble the protocol message according to the definition data, and generate the protocol program;

调测模块20,用于基于所述协议程序对模拟数据进行调测,生成调测结果;A commissioning module 20, configured to commission the simulated data based on the protocol program, and generate a commissioning result;

确定模块30,用于当所述调测结果通过验证时,确定完成流式协议开发。The determination module 30 is configured to determine that the development of the streaming protocol is completed when the commissioning result passes the verification.

进一步地,所述组装模块10包括:Further, the assembly module 10 includes:

获取单元,用于获取定义数据,并获取通信协议选择指令对应的协议报文;An acquisition unit, configured to acquire definition data, and acquire a protocol message corresponding to a communication protocol selection instruction;

第一组装单元,用于根据所述定义数据对所述协议报文进行可视化组装,得到目标协议报文;The first assembling unit is configured to visually assemble the protocol message according to the definition data to obtain a target protocol message;

第一生成单元,用于根据所述目标协议报文,生成协议程序。The first generating unit is configured to generate a protocol program according to the target protocol message.

进一步地,所述组装模块10还包括:Further, the assembly module 10 also includes:

提取单元,用于提取所述定义数据中的字典表定义数据与参数定义数据,并获取所述协议报文的报文信息,其中报文信息包括发送报文、接收报文、报文包头和报文内容;An extracting unit, configured to extract dictionary table definition data and parameter definition data in the definition data, and obtain message information of the protocol message, wherein the message information includes sending messages, receiving messages, message headers and message content;

第二组装单元,用于将所述字典表定义数据与参数定义数据作为输入数据分别可视化组装至所述报文信息的发送报文、接收报文、报文包头和报文内容,得到第一协议报文、第二协议报文、第三协议报文与第四协议报文;The second assembling unit is configured to use the dictionary table definition data and parameter definition data as input data to respectively visually assemble the sending message, receiving message, message header and message content of the message information, to obtain the first A protocol message, a second protocol message, a third protocol message and a fourth protocol message;

整合单元,用于将所述第一协议报文、所述第二协议报文、所述第三协议报文与所述第四协议报文整合得到目标协议报文。An integrating unit, configured to integrate the first protocol message, the second protocol message, the third protocol message, and the fourth protocol message to obtain a target protocol message.

进一步地,所述组装模块10还包括:Further, the assembly module 10 also includes:

排序单元,用于对所述目标协议报文中的所述第一协议报文、所述第二协议报文、所述第三协议报文与所述第四协议报文进行排序,得到排序协议报文;A sorting unit, configured to sort the first protocol message, the second protocol message, the third protocol message, and the fourth protocol message in the target protocol message to obtain the sorting protocol message;

检测单元,用于获取所述排序协议报文对应的原型报文源码,检测所述原型报文源码是否存在错误;A detection unit, configured to obtain the source code of the prototype message corresponding to the sorting protocol message, and detect whether there is an error in the source code of the prototype message;

第二生成单元,用于若所述原型报文源码不存在错误,则基于所述原型报文源码,生成协议程序。The second generating unit is configured to generate a protocol program based on the source code of the prototype message if there is no error in the source code of the prototype message.

进一步地,所述组装模块10还包括:Further, the assembly module 10 also includes:

解析单元,用于对语言选择指令进行解析,得到目标代码语言;A parsing unit, configured to parse the language selection instruction to obtain the target code language;

转换单元,用于根据所述目标代码语言对所述原型报文源码进行语言转换,得到目标代码;a conversion unit, configured to perform language conversion on the source code of the prototype message according to the target code language to obtain the target code;

编译单元,用于根据预设代码编译器对所述目标代码进行编译,生成协议程序。The compiling unit is configured to compile the target code according to a preset code compiler to generate a protocol program.

进一步地,所述组装模块10还包括:Further, the assembly module 10 also includes:

拆分单元,用于获取标准过程和业务过程,分别对所述标准过程与业务过程进行拆分,得到包含协议报文的多个协议模组,以根据定义数据对协议报文进行可视化组装,生成协议程序。The splitting unit is used to obtain the standard process and the business process, split the standard process and the business process respectively, and obtain multiple protocol modules including the protocol message, so as to visually assemble the protocol message according to the defined data, Generate protocol program.

进一步地,所述确定模块30包括:Further, the determining module 30 includes:

对比单元,用于将所述调测结果与标准结果进行对比,确定所述调测结果是否通过验证;a comparison unit, configured to compare the commissioning result with a standard result, and determine whether the commissioning result has passed the verification;

判定单元,用于若所述调测结果与所述标准结果相同,则判定所述调测结果通过验证,确定完成流式协议开发。The judging unit is configured to judge that the commissioning result has passed the verification if the commissioning result is the same as the standard result, and determine that the development of the streaming protocol is completed.

此外,本发明还提供一种存储介质,所述存储介质优选为计算机可读存储介质,其上存储有流式协议开发程序,所述流式协议开发程序被处理器执行时实现上述流式协议开发方法各实施例的步骤。In addition, the present invention also provides a storage medium, which is preferably a computer-readable storage medium, on which a stream protocol development program is stored, and when the stream protocol development program is executed by a processor, the above stream protocol is implemented. Steps for developing various embodiments of the method.

在本发明流式协议开发装置和计算机可读介质的实施例中,包含了上述流式协议开发方法各实施例的全部技术特征,说明和解释内容与上述流式协议开发方法各实施例基本相同,在此不做赘述。In the embodiments of the stream protocol development device and the computer-readable medium of the present invention, all the technical features of the above embodiments of the stream protocol development method are included, and the description and explanation are basically the same as those of the above stream protocol development method embodiments. , which will not be described here.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.

上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present invention are for description only, and do not represent the advantages and disadvantages of the embodiments.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是固定终端,如物联网智能设备,包括智能空调、智能电灯、智能电源、智能路由器等智能家居;也可以是移动终端,包括智能手机、可穿戴的联网AR/VR装置、智能音箱、自动驾驶汽车等诸多联网设备)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD-ROM), including several instructions to enable a terminal device (which can be a fixed terminal, such as IoT smart devices, including smart air conditioners, smart lights, smart power supplies, smart routers, etc. Mobile phones, wearable networked AR/VR devices, smart speakers, self-driving cars and many other networked devices) execute the methods described in various embodiments of the present invention.

以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process conversion made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technical fields , are all included in the scope of patent protection of the present invention in the same way.

Claims (7)

1.一种流式协议开发方法,其特征在于,所述流式协议开发方法包括:1. A streaming protocol development method, characterized in that, the streaming protocol development method comprises: 获取定义数据,并获取通信协议选择指令对应的协议报文;Obtain the definition data, and obtain the protocol message corresponding to the communication protocol selection instruction; 提取所述定义数据中的字典表定义数据与参数定义数据,并获取所述协议报文的报文信息,其中报文信息包括发送报文、接收报文、报文包头和报文内容;extracting dictionary table definition data and parameter definition data in the definition data, and obtaining message information of the protocol message, wherein the message information includes sending message, receiving message, message header and message content; 将所述字典表定义数据与参数定义数据作为输入数据分别可视化组装至所述报文信息的发送报文、接收报文、报文包头和报文内容,得到第一协议报文、第二协议报文、第三协议报文与第四协议报文;Using the dictionary table definition data and parameter definition data as input data to visually assemble the sending message, receiving message, message header and message content of the message information respectively, to obtain the first protocol message and the second protocol message A message, a third protocol message and a fourth protocol message; 将所述第一协议报文、所述第二协议报文、所述第三协议报文与所述第四协议报文整合得到目标协议报文;Integrating the first protocol message, the second protocol message, the third protocol message, and the fourth protocol message to obtain a target protocol message; 根据所述目标协议报文,生成协议程序;Generate a protocol program according to the target protocol message; 基于所述协议程序对模拟数据进行调测,生成调测结果;Commissioning the simulated data based on the protocol program to generate commissioning results; 当所述调测结果通过验证时,确定完成流式协议开发;When the commissioning result is verified, it is determined that the development of the streaming protocol is completed; 所述根据所述目标协议报文,生成协议程序包括:According to the target protocol message, generating a protocol program includes: 对所述目标协议报文中的所述第一协议报文、所述第二协议报文、所述第三协议报文与所述第四协议报文进行排序,得到排序协议报文;Sorting the first protocol message, the second protocol message, the third protocol message, and the fourth protocol message in the target protocol message to obtain a sorted protocol message; 获取所述排序协议报文对应的原型报文源码,检测所述原型报文源码是否存在错误;Obtain the source code of the prototype message corresponding to the sorting protocol message, and detect whether there is an error in the source code of the prototype message; 若所述原型报文源码不存在错误,则基于所述原型报文源码,生成协议程序。If there is no error in the source code of the prototype message, a protocol program is generated based on the source code of the prototype message. 2.如权利要求1所述的流式协议开发方法,其特征在于,所述基于所述原型报文源码,生成协议程序的步骤包括:2. The streaming protocol development method according to claim 1, wherein the step of generating a protocol program based on the source code of the prototype message comprises: 对语言选择指令进行解析,得到目标代码语言;Analyze the language selection instruction to obtain the target code language; 根据所述目标代码语言对所述原型报文源码进行语言转换,得到目标代码;performing language conversion on the source code of the prototype message according to the target code language to obtain the target code; 根据预设代码编译器对所述目标代码进行编译,生成协议程序。The target code is compiled according to a preset code compiler to generate a protocol program. 3.如权利要求1所述的流式协议开发方法,其特征在于,所述当所述调测结果通过验证时,确定完成流式协议开发的步骤包括:3. The streaming protocol development method according to claim 1, wherein when the commissioning result is verified, the step of determining that the streaming protocol development is completed comprises: 将所述调测结果与标准结果进行对比,确定所述调测结果是否通过验证;Comparing the commissioning result with the standard result to determine whether the commissioning result has passed the verification; 若所述调测结果与所述标准结果相同,则判定所述调测结果通过验证,确定完成流式协议开发。If the commissioning result is the same as the standard result, it is determined that the commissioning result has passed the verification, and it is determined that the development of the streaming protocol is completed. 4.如权利要求1-3任一项所述的流式协议开发方法,其特征在于,所述获取定义数据,并获取通信协议选择指令对应的协议报文的步骤之前,还包括:4. The streaming protocol development method according to any one of claims 1-3, wherein, before the step of obtaining the definition data and obtaining the protocol message corresponding to the communication protocol selection instruction, it also includes: 获取标准过程和业务过程,分别对所述标准过程与业务过程进行拆分,得到包含协议报文的多个协议模组,以根据定义数据对协议报文进行可视化组装,生成协议程序。The standard process and the business process are obtained, and the standard process and the business process are respectively split to obtain a plurality of protocol modules including the protocol message, so as to visually assemble the protocol message according to the definition data, and generate a protocol program. 5.一种流式协议开发装置,其特征在于,所述流式协议开发装置包括:5. A streaming protocol development device, characterized in that the streaming protocol development device comprises: 获取模块,用于获取定义数据,并获取通信协议选择指令对应的协议报文;An acquisition module, configured to acquire definition data, and acquire a protocol message corresponding to a communication protocol selection instruction; 提取模块,用于提取所述定义数据中的字典表定义数据与参数定义数据,并获取所述协议报文的报文信息,其中报文信息包括发送报文、接收报文、报文包头和报文内容;An extraction module, configured to extract dictionary table definition data and parameter definition data in the definition data, and obtain message information of the protocol message, wherein the message information includes sending messages, receiving messages, message headers and message content; 组装模块,用于将所述字典表定义数据与参数定义数据作为输入数据分别可视化组装至所述报文信息的发送报文、接收报文、报文包头和报文内容,得到第一协议报文、第二协议报文、第三协议报文与第四协议报文;An assembling module, configured to use the dictionary table definition data and parameter definition data as input data to visually assemble the sending message, receiving message, message header and message content of the message information respectively, to obtain the first protocol message text, the second protocol message, the third protocol message and the fourth protocol message; 整合模块,用于将所述第一协议报文、所述第二协议报文、所述第三协议报文与所述第四协议报文整合得到目标协议报文;An integration module, configured to integrate the first protocol message, the second protocol message, the third protocol message, and the fourth protocol message to obtain a target protocol message; 生成模块,用于根据所述目标协议报文,生成协议程序;A generating module, configured to generate a protocol program according to the target protocol message; 调测模块,用于基于所述协议程序对模拟数据进行调测,生成调测结果;A commissioning module, configured to commission the simulated data based on the protocol program, and generate a commissioning result; 确定模块,用于当所述调测结果通过验证时,确定完成流式协议开发;A determining module, configured to determine that the development of the streaming protocol is completed when the commissioning result is verified; 所述根据所述目标协议报文,生成协议程序包括:According to the target protocol message, generating a protocol program includes: 对所述目标协议报文中的所述第一协议报文、所述第二协议报文、所述第三协议报文与所述第四协议报文进行排序,得到排序协议报文;Sorting the first protocol message, the second protocol message, the third protocol message, and the fourth protocol message in the target protocol message to obtain a sorted protocol message; 获取所述排序协议报文对应的原型报文源码,检测所述原型报文源码是否存在错误;Obtain the source code of the prototype message corresponding to the sorting protocol message, and detect whether there is an error in the source code of the prototype message; 若所述原型报文源码不存在错误,则基于所述原型报文源码,生成协议程序。If there is no error in the source code of the prototype message, a protocol program is generated based on the source code of the prototype message. 6.一种流式协议开发设备,其特征在于,所述流式协议开发设备包括存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的流式协议开发程序,所述流式协议开发程序被所述处理器执行时实现如权利要求1-4中任一项所述的流式协议开发方法的步骤。6. A stream protocol development device, characterized in that, the stream protocol development device includes a memory, a processor, and a stream protocol development program stored on the memory and operable on the processor, the When the stream protocol development program is executed by the processor, the steps of the stream protocol development method described in any one of claims 1-4 are realized. 7.一种存储介质,其特征在于,所述存储介质上存储有流式协议开发程序,所述流式协议开发程序被处理器执行时实现如权利要求1-4中任一项所述的流式协议开发方法的步骤。7. A storage medium, characterized in that, a streaming protocol development program is stored on the storage medium, and when the streaming protocol development program is executed by a processor, the method described in any one of claims 1-4 is realized. Steps in the streaming protocol development method.
CN202011012409.7A 2020-09-23 2020-09-23 Streaming protocol development method, device, equipment and storage medium Active CN112202745B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011012409.7A CN112202745B (en) 2020-09-23 2020-09-23 Streaming protocol development method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011012409.7A CN112202745B (en) 2020-09-23 2020-09-23 Streaming protocol development method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112202745A CN112202745A (en) 2021-01-08
CN112202745B true CN112202745B (en) 2023-01-31

Family

ID=74014549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011012409.7A Active CN112202745B (en) 2020-09-23 2020-09-23 Streaming protocol development method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112202745B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113077023A (en) * 2021-04-20 2021-07-06 南京理工大学 Automatic matching Internet of things system for group strings
CN119363850A (en) * 2024-10-29 2025-01-24 西北机电工程研究所 A multi-node communication software framework based on TCP and UDP protocols

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546301A (en) * 2012-01-16 2012-07-04 中国科学院深圳先进技术研究院 Digital signal logic analyzing system
CN104506484A (en) * 2014-11-11 2015-04-08 中国电子科技集团公司第三十研究所 Proprietary protocol analysis and identification method
CN105279090A (en) * 2015-11-17 2016-01-27 中国建设银行股份有限公司 Test script generating method and test script generating device applied in financial field
CN107908394A (en) * 2017-11-21 2018-04-13 中国电子科技集团公司第五十四研究所 A kind of data interchange format source code generation method and instrument

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7464154B2 (en) * 2001-05-18 2008-12-09 Network Resonance, Inc. System, method and computer program product for analyzing data from network-based structured message stream
CN110380970B (en) * 2019-07-22 2020-10-13 北京邮电大学 Self-adaptive data message forwarding method and device suitable for heterogeneous network
CN111314707B (en) * 2020-01-17 2022-03-15 深圳力维智联技术有限公司 Data mapping identification method, device and equipment and readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546301A (en) * 2012-01-16 2012-07-04 中国科学院深圳先进技术研究院 Digital signal logic analyzing system
CN104506484A (en) * 2014-11-11 2015-04-08 中国电子科技集团公司第三十研究所 Proprietary protocol analysis and identification method
CN105279090A (en) * 2015-11-17 2016-01-27 中国建设银行股份有限公司 Test script generating method and test script generating device applied in financial field
CN107908394A (en) * 2017-11-21 2018-04-13 中国电子科技集团公司第五十四研究所 A kind of data interchange format source code generation method and instrument

Also Published As

Publication number Publication date
CN112202745A (en) 2021-01-08

Similar Documents

Publication Publication Date Title
CN113742202B (en) AI chip verification system, method, device and storage medium
CN101478449B (en) A protocol automatic testing method and system thereof
CN110287109A (en) Test method, device, computer equipment and its storage medium of protocol interface
CN112202745B (en) Streaming protocol development method, device, equipment and storage medium
CN116107893A (en) Heterogeneous platform embedded software test verification system and method
CN113064618B (en) System and method for simulating new energy vehicle conformance detection
CN108092835A (en) The detection method and device of electric automobile charging pile
JP2006134284A (en) Data generation method
CN112256557B (en) Program regression testing method, device, system, computer equipment and storage medium
CN117950391A (en) Diagnostic test method, device and equipment for whole vehicle controller and storage medium
KR101792864B1 (en) System and Method for verifying application
CN112838938B (en) Test system of Internet of things platform
CN119011329A (en) IO module firmware upgrading method, device, equipment and readable storage medium
US7272750B2 (en) Expert system for intelligent testing
CN111930444A (en) Instruction coupling device, method, equipment and storage medium for verifying processor core
CN114691486A (en) Program debugging method and device and computer equipment
CN116346660A (en) Data processing method, device, equipment and medium based on dependent replacement service
CN113645052B (en) A firmware debugging method and related equipment
US20120167037A1 (en) Software static testing apparatus and method
CN108173957A (en) A kind of Http interfaces rapid configuration joint debugging platform
CN116028367A (en) Automatic test system and method
CN110377463A (en) Interface test method, device, terminal and computer readable storage medium
CN115426301B (en) Device detection method, device, equipment and storage medium based on self-generated message
CN115695504B (en) Internet of things platform communication method, device, equipment and storage medium
CN116820992B (en) Automatic testing method and system for embedded software

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 518057 the six level of energy storage building 3099, Keyuan South Road, Nanshan District, Shenzhen, Guangdong.

Patentee after: SHENZHEN ZNV TECHNOLOGY Co.,Ltd.

Country or region after: China

Patentee after: Nanjing Liwei Zhilian Technology Co.,Ltd.

Address before: 518057 the six level of energy storage building 3099, Keyuan South Road, Nanshan District, Shenzhen, Guangdong.

Patentee before: SHENZHEN ZNV TECHNOLOGY Co.,Ltd.

Country or region before: China

Patentee before: NANJING ZNV SOFTWARE Co.,Ltd.

CP03 Change of name, title or address