Graphical arrangement method of binary protocol

Automatically identify and customize device protocols through graphical orchestration methods, solving the problem of protocol conversion and docking when devices are connected to the Internet of Things system, realizing rapid cloud entry and efficient analysis of device data, reducing R&D costs and cycles, and improving product quality Competitiveness and parsing correctness.

CN118740944APending Publication Date: 2024-10-01BEIJING SHUIDI IOT TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410889237.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing technology is difficult to quickly and effectively define, convert, and parse device protocols, which leads to protocol conversion and docking problems when devices are connected to the Internet of Things system, increasing the cost of moving devices to the cloud and low R&D efficiency.

Method used

Using a graphical orchestration method, users can customize the orchestration by automatically identifying data feature values ​​and displaying information graphically. The system automatically matches historical parsing rules based on feature values, supports multiple network protocols and data types, and generates configuration files to achieve rapid parsing. .

Benefits of technology

It achieves rapid connection of device protocols, reduces R&D costs and cycles, improves product competitiveness, has maximum versatility and high resolution accuracy, reduces the amount of transmitted data, and improves orchestration experience and scalability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740944A_ABST
    Figure CN118740944A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of graphical arrangement, and provides a graphical arrangement method of a binary protocol, which comprises the following steps: step 1, firstly, under the prompt of an arrangement page, a device can be quickly connected to a service port and reports data, and at the moment, a user starts arrangement at a cloud end according to original data reported by a display device; step 2, the system automatically identifies characteristic values of the data, attempts to automatically analyze recognizable protocols, and displays necessary information in a graphical manner; and step 3, when the system automatically identifies the characteristic value of the data in the step 2, a user can ignore an automatic identification result, and complete user-defined arrangement is carried out. Through simple equipment or complex equipment, protocol docking and equipment data cloud access can be quickly completed by using the method, subsequent functions such as data visualization and big data analysis are further realized, and the convenience of arrangement brings about reduction of research and development cost, shortening of research and development period and improvement of product competitiveness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of graphical arrangement, and in particular to a graphical arrangement method for a binary protocol. Background Art

[0002] With the development of Internet of Things technology, more and more devices need to be connected to the cloud for cloud device management and data management. The premise of device access to the cloud is that the cloud can identify the device protocol. Although different industries have some protocol standards, equipment manufacturers do not fully comply with the general protocol in order to seek differences and cost-effectiveness. On the other hand, due to the huge application gap between industries, the general protocols of different industries cannot be interoperable. For example, the "Environmental Protection National Standard HJ212-2017" protocol of the environmental protection industry defines the protocol standard for environmental protection equipment, and the "Hydrological Monitoring Data Communication Protocol SL651-2014" of the hydrological monitoring industry defines the protocol standard for hydrological monitoring equipment. The two industry protocols are completely independent and have no correlation; at the same time, many environmental protection and hydrological equipment manufacturers use the Modbus protocol as their own corporate standard.

[0003] At present, in order to access a device with a new protocol, there are usually the following methods:

[0004] 1. Cloud vendors provide unified standards, and equipment manufacturers complete protocol conversion according to the standards of cloud vendors. Generally, this happens when the cloud vendor is a larger platform, such as Alibaba, Tencent and other platforms. Equipment manufacturers spend money on docking and conduct secondary development on the device side to adapt to the cloud vendor's protocol.

[0005] 2. Carry out customized development according to the customized project. The cloud and device sides agree on the communication protocol of this project. After confirmation, each side develops according to the protocol and completes the device docking.

[0006] 3. The device side is implemented according to certain standard protocols, and the cloud can provide general support for certain industry standard protocols. For example, if the cloud supports the "Hydrological Monitoring Data Communication Protocol SL651-2014" protocol, you only need to check the elements supported by this protocol to achieve most protocol docking.

[0007] 4. Some larger projects adopt the front-end IoT platform (front-end gateway) approach to connect numerous complex device protocols, which is completed on this front-end IoT platform; the front-end IoT platform does not limit the connection method, for example, the device protocol can be connected and converted on the device side or on the cloud. Regardless of the solution, the IoT platform is ultimately responsible for the collection and conversion of all device data, and then provides a unified format data source internally to isolate the impact of device types and protocol differences on the project.

[0008] As mentioned above, when these devices are connected to the IoT system, they will face various protocol conversion and docking problems. How to quickly define, convert, and parse various device protocols, especially binary protocols, has become the most critical issue in the promotion of IoT applications, and is also directly related to the cost of putting devices on the cloud.

[0009] Under the existing technical conditions, there are also many problems, which are as follows:

[0010] 1. The way that equipment manufacturers actively identify cloud manufacturers will lead to higher production costs for equipment manufacturers. More importantly, large platforms (such as Tencent or Alibaba) only provide a very general object model, which cannot cover all the protocol requirements of the equipment. Most of the data used is in JSON format, which has a large amount of data and low transmission and storage efficiency. In addition, the charging method of large platforms is not suitable for all equipment manufacturers. A more effective docking method is needed that can directly dock with binary protocols and reduce the subsequent operating costs of equipment.

[0011] 2. If the equipment is developed according to the customized project, the operation efficiency of the equipment and the cloud is relatively high, but the biggest problem is the later scalability. Every time a new type of equipment is connected, both parties need to develop, debug and test again, which is inefficient. At this time, a protocol connection method that can be arbitrarily expanded is needed to avoid frequent secondary development of the protocol.

[0012] 3. Industry standard protocols can accelerate the protocol docking of devices to some extent, but not all cloud platforms support industry standard protocols, and the cost of cloud platforms developing industry-wide protocols is relatively high. On the other hand, the price of equipment that supports industry standards is generally very high, which also increases a lot of costs for users. If ordinary equipment can quickly complete protocol docking, such special equipment and platforms can also be replaced.

[0013] 4. The front-end IoT platform does not fundamentally solve the problem of difficult device protocol docking in terms of technology. It only isolates the impact of device protocol differences or device type changes on the project from an architectural perspective. Most front-end IoT platforms are still manually developed for secondary development. To complete device docking, it is also necessary to solve the problems of long docking time, high cost, and easy errors.

[0014] After comprehensive analysis, the reasons for the above phenomena and problems are mainly the following:

[0015] 1. There are many industries and equipment types. The equipment communication protocol can use TCP / HTTP / MQTT / WebSocket / UDP and other methods. The communication channel can use WiFi / 4G / NB-I oT / LoRa. The business data can use Json / Hex / BCD and other formats. Finally, there are differences in protocol requirements. Manufacturers define their own specific protocol formats as needed. The above reasons lead to the existence of countless communication protocols on the market, and it is very difficult for cloud platforms to connect to these protocols.

[0016] 2. Protocol docking will generate workload, which can be used as the project work time for evaluation and budgeting, so the R&D party does not want to make an automatic and universal system. Otherwise, there will be no such workload in the future, reducing income.

[0017] 3. There are technical barriers between industries. For example, the Modbus protocol is very suitable for industrial equipment, but simple devices such as alarms are more suitable for customized binary format data transmission. The two industries are used by two different groups of people who do not understand each other. Few companies can see through the differences between different industries, and thus cannot come up with an efficient and universal docking method.

[0018] 4. Some high-end platforms or edge gateway manufacturers have connected to the protocols of some brand equipment, such as PLCs of Siemens, Schneider, and Mitsubishi. However, non-standard equipment manufacturers will not be supported by these platforms and gateways. This docking method for specific brands or specific protocols will also face the problems of high docking costs and weak expansion capabilities. Summary of the invention

[0019] In view of the shortcomings of the prior art, the present invention provides a graphical arrangement method for binary protocols, which solves the problem of various protocol conversion and docking when these devices are connected to the Internet of Things system. How to quickly define, convert and parse various device protocols, especially binary protocols, has become the most critical issue in the promotion of Internet of Things applications, and is also directly related to the cost of putting devices on the cloud.

[0020] To achieve the above objectives, the present invention is implemented through the following technical solutions: A graphical arrangement method of a binary protocol, comprising the following steps:

[0021] Step 1: First, under the prompt of the arrangement page, the device can quickly connect to the service port and report data. At this time, the user starts the arrangement in the cloud by comparing the original data reported by the display device;

[0022] Step 2: The system automatically identifies the characteristic values ​​of the data, attempts to automatically parse the recognizable protocols, and displays the necessary information graphically;

[0023] Step 3: When the system automatically identifies the characteristic values ​​of the data in step 2, the user can ignore the results of the automatic identification and perform a completely customized arrangement;

[0024] Step 4: After the device reports the latest data and refreshes the data in the system, it can be arranged. During the arrangement, the system automatically matches the historical data analysis rules according to the feature values ​​and completes the analysis and arrangement through step 2.

[0025] Preferably, the device page in step one prompts the domain name (IP) and port of the device entering the cloud, and supports multiple network protocols, including but not limited to TCP, UDP, HTTP and WebSocket.

[0026] Preferably, the characteristic value in step 2 is any one of the following two (same as above, these two are examples, there are others):

[0027] Automatically identify Modbus features: device address + command word + register address + number of bytes + data + CRC;

[0028] Automatically determine whether it is a feature of the hydrological 651 protocol: a message starting with 7E 7E.

[0029] Preferably, in step three, the user can directly define the function of the register, and the function includes displaying the basic information of name, alarm information, read and write information, unit, correction coefficient and usage authority.

[0030] Preferably, in step three, the user can quickly split the high and low bytes of the register for editing, and based on the characteristics of the high and low bytes, limited possible data types are defined.

[0031] Preferably, in step three, the user can perform bit editing processing, splitting the register into multiple bits to perform one or a combination of single bit arrangement and multiple bit combination arrangement.

[0032] Preferably, in step three, the user can merge two registers, and support one or a combination of 4-byte floating point numbers or 32-bit integers.

[0033] Preferably, in step three, after the user arranges all the data, the parsed effect can be immediately displayed, so that the user can quickly check whether the arrangement is correct.

[0034] Preferably, in step 3, the user can set a characteristic value for the data and parse the data according to the system's judgment;

[0035] If the system identifies a characteristic protocol, it will automatically mark the characteristic value. After the platform receives data from the device, it will compare the characteristic value and use the parsing rules that match the characteristic value to parse the data.

[0036] If the system does not determine the arrangement feature value, it will be analyzed in sequence according to the reported data.

[0037] Preferably, after the arrangement in step 4, the system generates a corresponding configuration file and provides it to the application that needs to parse the data in real time, and completes the rapid parsing according to the feature value matching parsing rules, wherein;

[0038] The custom binary protocol is similar to the Modbus protocol. The system does not automatically identify the characteristic value. It specifies the characteristic value according to the user and defines the parsing rules for each byte, combined byte, bit, and combined bit. For complex protocol parsing, the excel table is used to complete the arrangement, and the parsing settings for each byte or each register are defined in the table.

[0039] The present invention provides a graphical arrangement method for binary protocols, which has the following beneficial effects:

[0040] 1. The present invention can quickly complete protocol docking and upload device data to the cloud, whether it is a simple device or a complex device, and further realize subsequent functions such as data visualization and big data analysis. The convenience of arrangement reduces R&D costs, shortens the R&D cycle, and improves product competitiveness.

[0041] 2. The present invention highlights the independence of business protocols and has the greatest versatility. As long as it is byte stream data, it can be compiled and parsed.

[0042] 3. The present invention applies eigenvalue technology to ensure the correctness of the analysis.

[0043] 4. The graphical design and layout-and-display design of the present invention can greatly improve the layout experience and avoid layout errors.

[0044] 5. The one-time arrangement and multiple-use technology designed by the present invention enables multiple applications to share the arrangement results and quickly complete the protocol parsing.

[0045] 6. The present invention uses binary data when transmitting and parsing data, which greatly reduces the amount of data transmitted.

[0046] 7. The present invention provides multiple online formatting and Excel spreadsheet formatting methods, which are suitable for various usage scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 A schematic diagram of the graphical information display in the present invention;

[0048] Figure 2 It is a schematic diagram of the register function in the present invention;

[0049] Figure 3 A schematic diagram of editing high and low bytes of a register in the present invention;

[0050] Figure 4 A schematic diagram of register splitting in the present invention;

[0051] Figure 5 A schematic diagram of register merging in the present invention;

[0052] Figure 6 A schematic diagram of setting characteristic values ​​in the present invention;

[0053] Figure 7 A schematic diagram of the communication protocol updated in the present invention;

[0054] Figure 8 It is a schematic diagram of complex protocol parsing in the present invention. DETAILED DESCRIPTION

[0055] The following will be combined with the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0056] Example:

[0057] The embodiment of the present invention provides a graphical arrangement method of a binary protocol, comprising the following steps:

[0058] Step 1: First, the editing page prompts the domain name (IP) and port of the device to the cloud. It supports multiple network protocols, including but not limited to TCP / UDP / HTTP / WebSocket, etc. The device can quickly connect to the service port and report data. At this time, the cloud displays the original binary data reported by the device, and the user can start editing intuitively according to the data;

[0059] Step 2: Figure 1 As shown, the system automatically identifies the characteristic values ​​of the data, such as automatically identifying the characteristics of Modbus: device address + command word + register address + number of bytes + data + CRC, or automatically determining whether it is the characteristic of the Hydrological 651 protocol: a message starting with 7E 7E; if the system can identify the protocol, it will try to automatically parse it according to these protocols and graphically display the necessary information;

[0060] Step 3: When the system automatically identifies the characteristic value of the data in step 2, the user can also ignore the result of automatic identification and completely customize all bytes. Taking the Modbus RTU protocol as an example, the graphical information displayed;

[0061] The graphical information includes: format data (e.g., 01, 03), decimal data displayed according to registers, byte number, register number, register combination and separation information, etc.;

[0062] in addition;

[0063] like Figure 2 As shown, the user can directly define the functions of the registers, including display name, alarm information, read / write information, unit, correction coefficient and basic information of usage authority.

[0064] like Figure 3 As shown, the user can quickly split the high and low bytes of the register for editing, and based on the characteristics of the high and low bytes, a limited number of possible data types are defined.

[0065] like Figure 4 As shown, the user can perform bit editing processing, split a register into multiple bits and perform single-bit arrangement, or perform combined arrangement of multiple bits.

[0066] like Figure 5 As shown, the user can merge two registers to support 4-byte floating point numbers or 32-bit integers.

[0067] After users have compiled all the data, the parsed results will be displayed immediately, which allows them to quickly check whether the compilation is correct;

[0068] Specifically, Figure 6 As shown, the user can set the characteristic value of this data and analyze the data according to the system judgment;

[0069] If the system identifies a characteristic protocol, it will automatically mark the characteristic value. After the platform receives data from the device, it will compare the characteristic value and use the parsing rules that match the characteristic value to parse the data.

[0070] If the system does not determine the arrangement feature value, it will analyze it in sequence according to the reported data;

[0071] Step 4: Figure 7As shown, if the user updates the communication protocol, the device only needs to report the latest data once, and the system can be edited after refreshing the data. During the editing, the system automatically matches the data parsing rules that the user has edited according to the feature value. The new data is parsed and edited using the above steps. After editing, the system generates the corresponding configuration file and provides it to the application that needs to parse the data in real time. The parsing rules are matched according to the feature value to complete the fast parsing, where;

[0072] like Figure 8 As shown in the figure, the custom binary protocol is similar to the Modbus protocol. The system does not automatically identify the characteristic value. It specifies the characteristic value according to the user and defines the parsing rules for each byte, combined byte, bit, and combined bit. For complex protocol parsing, the excel table is used to complete the arrangement, and the parsing settings for each byte or each register are defined in the table.

[0073] It is worth noting that the method described in the present invention ignores the business nature of the protocol and directly arranges and defines the byte stream. For example, whether it is the Hydrological 651 protocol, the ModbusRTU protocol, or a custom protocol, what can be obtained in the cloud is the data stream of the device. This method directly arranges the byte stream and can adapt to all binary protocols.

[0074] Secondly, the design idea of ​​this method is to obtain the equipment data first, and then perform visual programming based on the real data, which is immediate and intuitive to help users quickly program and verify.

[0075] In addition, this method can identify multiple industry standard protocol specifications, such as the Environmental Protection 212 protocol, the Hydrology 651 protocol, the Modbus RTU protocol, the Modbus TCP protocol, etc., and can further directly format the byte stream correctly to facilitate user arrangement.

[0076] This method invents the concept of characteristic value to avoid the unreliable factors caused by relying solely on the reporting order for rule matching.

[0077] This method can combine or separate bytes in a data stream and can support common data types.

[0078] This method can combine or separate bits in a byte and can support common bit operation protocols.

[0079] Finally, this system supports data change analysis. After the system receives new data from the device, it matches the feature values, finds the analysis rules, and then compares the last data to re-analyze the changed bytes. The unchanged bytes continue the last analysis results, which greatly reduces the amount of analysis calculations.

[0080] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A graphical arrangement method for binary protocols, It is characterized in that The following steps are involved: Step 1: First, under the prompt of the arrangement page, the device can quickly connect to the service port and report data. At this time, the user starts the arrangement in the cloud by comparing the original data reported by the display device; Step 2: The system automatically identifies the characteristic values ​​of the data, attempts to automatically parse the recognizable protocols, and displays the necessary information graphically; Step 3: When the system automatically identifies the characteristic values ​​of the data in step 2, the user can ignore the results of the automatic identification and perform a completely customized arrangement; Step 4: After the device reports the latest data and refreshes the data in the system, it can be arranged. During the arrangement, the system automatically matches the historical data analysis rules according to the feature values ​​and completes the analysis and arrangement through step 2.

2. A method for graphically arranging a binary protocol according to claim 1, It is characterized in that The device page in step 1 prompts the domain name (IP) and port of the device entering the cloud, and supports multiple network protocols, including but not limited to TCP, UDP, HTTP and WebSocket.

3. The method for graphically arranging a binary protocol according to claim 1, It is characterized in that The characteristic value in step 2 is any one of the following two (not two, but multiple, these two are just examples): Automatically identify Modbus features: device address + command word + register address + number of bytes + data + CRC; Automatically determine whether it is a feature of the hydrological 651 protocol: a message starting with 7E 7E. The above are examples, and other protocol formats can be automatically recognized.

4. The method for graphically arranging a binary protocol according to claim 1, It is characterized in that In step three, the user can directly define the functions of the register, and the functions include displaying the name, alarm information, read and write information, unit, correction coefficient and basic information of usage authority.

5. The method for graphically arranging a binary protocol according to claim 1, It is characterized in that In step three, the user can quickly split the high and low bytes of the register for editing, and based on the characteristics of the high and low bytes, limited possible data types are defined.

6. The method for graphically arranging a binary protocol according to claim 1, It is characterized in that In step three, the user can perform bit editing processing, splitting the register into multiple bits to perform one or a combination of single bit arrangement and multiple bit combination arrangement.

7. The method for graphically arranging a binary protocol according to claim 1, It is characterized in that In step three, the user can merge two registers, and support one or a combination of 4-byte floating point numbers or 32-bit integers.

8. The method for graphically arranging a binary protocol according to claim 1, It is characterized in that In step 3, the user can display the parsed effect immediately after arranging all the data, and can quickly check whether the arrangement is correct.

9. The method for graphically arranging a binary protocol according to claim 1, It is characterized in that In step 3, the user can set the characteristic value of the data and analyze the data according to the judgment of the system; If the system identifies a characteristic protocol, it will automatically mark the characteristic value. After the platform receives data from the device, it will compare the characteristic value and use the parsing rules that match the characteristic value to parse the data. If the system does not determine the arrangement feature value, it will be analyzed in sequence according to the reported data.

10. The method for graphically arranging a binary protocol according to claim 1, It is characterized in that After the arrangement in step 4, the system generates a corresponding configuration file and provides it to the application that needs to parse the data in real time, and completes the rapid parsing according to the feature value matching parsing rules, wherein; The custom binary protocol is similar to the Modbus protocol. The system does not automatically identify the characteristic value. It specifies the characteristic value according to the user and defines the parsing rules for each byte, combined byte, bit, and combined bit. For complex protocol parsing, the Excel spreadsheet is used to complete the arrangement, and the parsing settings for each byte or each register are defined in the spreadsheet.