A method for configuring an edge computing device end-edge cloud communication protocol

By constructing standard data type representation methods and data mapping IDs, the compatibility issues between different engineering machinery products were resolved, data protocol unification and security were achieved, development efficiency and product maintainability were improved, and industry standardization was promoted.

CN116192981BActive Publication Date: 2026-05-29SICHUAN LANHAI ENG EQUIP MFG CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SICHUAN LANHAI ENG EQUIP MFG CO LTD
Filing Date
2023-02-14
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

Construction machinery products from different manufacturers are incompatible due to their respective CAN protocols, which increases the burden on developers, reduces maintainability, and hinders industry promotion and data standardization.

Method used

We construct a standard data type representation method, classify and number cloud data, define data mapping IDs, build data mapping relationships based on data mapping IDs and types, form configuration files, and ensure data security through encryption and decryption operations.

Benefits of technology

It has achieved compatibility with different types of products, improved development efficiency and product maintainability, promoted data standardization, reduced the burden on developers, and improved product stability and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116192981B_ABST
    Figure CN116192981B_ABST
Patent Text Reader

Abstract

The application discloses a configurable method of an edge computing device end edge cloud communication protocol, a standard data type representation method is constructed, cloud end data is classified according to data types, and different types of data are numbered to define data mapping IDs; a mapping relationship of the data is constructed based on the data mapping IDs and the data types of the data to form a configuration file. The method of combining general data type definition and data mapping enables the same protocol to be compatible for different types of products in a manufacturer under the condition of ensuring the safety of the internal data protocol of the manufacturer, meanwhile, through the unification of the data protocol, the development efficiency is improved, the product maintainability of the manufacturer is improved, the data of various manufacturers is unified, and the configuration file mapping different data only needs to be modified instead of being developed again, so that the product stability is improved, the maintenance burden of the developer is reduced, the maintainability is higher, the data uniformity is good, and the standardization degree is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication protocol technology, and specifically to a configurable method for edge-cloud communication protocols on edge computing devices. Background Technology

[0002] Edge computing machines (ECMs) are cloud service products that utilize network edge nodes close to users and terminals to provide computing, networking, and storage services locally. Compared to traditional data centers deployed in the center of the network, edge computing machines deploy resources closer to users in data centers, thus possessing unique advantages such as low network latency, high bandwidth, and security and stability.

[0003] With the ever-expanding market demand for information technology and intelligent systems, most manufacturers have begun to build IoT platforms to manage construction machinery. How to efficiently, quickly, compatiblely, and scalably migrate to the cloud has become a challenge for construction machinery companies on their path to informatization.

[0004] Currently, most controllers, operating structures, and sensors in the construction machinery field adopt the CAN protocol. Each manufacturer defines its own data protocol based on CAN according to its own needs. Since each manufacturer's construction machinery products are different, their data protocols also differ. Each manufacturer uses its own protocol rules, and different products have different functions. Therefore, even within the same manufacturer, different brands and different products may have different data protocols.

[0005] Among them, the CAN protocol belongs to the fieldbus category and is a serial communication network that effectively supports distributed control systems. Due to its high performance, high reliability, and unique design, it has gained increasing attention and is widely used in many fields. Moreover, it can detect any errors that occur, and when the signal transmission distance reaches 10km, CAN can still provide a data transmission rate of up to 50kbit / s. Because of the high real-time performance and wide application range of the CAN bus, it can be arbitrarily combined with high-speed networks with bit rates up to 1Mbps to low-cost, multi-line 50Kbps networks. Therefore, CAN has been widely used in the automotive, aerospace, industrial control, and security industries.

[0006] Similarly, because the CAN protocol is an open protocol, each manufacturer can define it according to its own needs, thus preventing competitors or others from obtaining the protocol in the short term and obtaining or even tampering with equipment data, which could lead to equipment malfunctions. This results in the current technical approach and design thinking lacking the ability to quickly replicate products. Each type of product requires adjustments from developers, increasing their workload. Maintainability is low after problems occur, and it also hinders industry promotion and the effective advancement of industry and national data standards. Summary of the Invention

[0007] In view of this, the present invention provides a method for configuring edge-cloud communication protocols on edge computing devices, aiming to solve the technical problem that different types of products cannot be compatible when using the same data protocol.

[0008] To address the above technical problems, the present invention provides a method for configurable edge-cloud communication protocols in edge computing devices, comprising:

[0009] Construct standard data type representation methods;

[0010] Cloud data is categorized according to data type, and different types of data are numbered and defined with data mapping IDs;

[0011] Based on the data mapping ID and the data data type, a data mapping relationship is constructed to form a configuration file.

[0012] As one implementation method, the method for constructing a standard data type representation includes:

[0013] Define data types and CAN line data placeholders according to programming conventions;

[0014] Based on the defined data types, the data of the CAN line is represented by multiple different data types to form a standard data type representation.

[0015] As one implementation, the configuration file also includes a CAN address, specifically...

[0016] Define the data mapping syntax according to programming conventions;

[0017] Based on the data mapping syntax, the configuration file is generated, and the configuration file contains the data mapping relationship constructed from the CAN address, data type, and data mapping ID.

[0018] As one implementation method, the programming conventions are configured in accordance with existing programming language specifications.

[0019] As one implementation, the configuration file also includes a CAN address, including:

[0020] The CAN address includes standard frames and extended frames;

[0021] The standard frame is configured with a defined CAN address, and the extended frame is configured with a custom CAN address.

[0022] In one implementation, the standard frame is configured with a defined CAN address, including:

[0023] The standard frame is also configured with a standard interval and a reserved interval, specifically...

[0024] Define a real-time functional data zone and a status data zone;

[0025] Based on the real-time functional data zone and the status data zone, determine the data information;

[0026] Configure the acquisition frequency based on the determined data information so that the CAN address standard frame can be configured with standard range and reserved range according to the acquisition frequency.

[0027] As one implementation method, both the standard data type representation method and the data mapping ID support extended definitions.

[0028] In one implementation, the data mapping ID is extended by increasing the number of bits.

[0029] As one implementation method, the step of constructing a data mapping relationship based on the data mapping ID and the data data type to form a configuration file further includes:

[0030] Before the configuration file is generated, the contents of the configuration file are kept secure and confidential.

[0031] Alternatively, security and confidentiality measures can be taken for the configuration file after it has been created.

[0032] In addition, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the above methods.

[0033] This invention provides a configurable edge-cloud communication protocol for edge computing devices, including constructing a standard data type representation method; classifying cloud data according to data type and numbering different types of data to define data mapping IDs; and constructing a data mapping relationship based on the data mapping IDs and data types to form a configuration file. This method, combining a universal data type definition and data mapping, ensures compatibility across different types of products within a manufacturer while maintaining the security of the manufacturer's internal data protocols. It is applicable to every edge computing device (including various data acquisition and CAN data reading) and allows for openness while ensuring the security of internal data protocols, solving the problem of protocol leakage caused by the need to interface with manufacturer protocols when migrating to the cloud. Furthermore, by unifying the data protocol, it not only improves development efficiency but also enhances the maintainability of manufacturers' products, promoting data unification among manufacturers. Different manufacturers can simply modify the configuration file to map different data without redevelopment, thereby improving product stability, reducing the maintenance burden on developers, and resulting in higher maintainability, better data uniformity, and a high degree of standardization. Attached Figure Description

[0034] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0035] Figure 1 This is a schematic diagram illustrating the steps of a method for configuring an edge-cloud communication protocol on an edge computing device according to an embodiment of the present invention;

[0036] Figure 2 This is a schematic diagram of the configuration file encryption and decryption steps provided in an embodiment of the present invention. Detailed Implementation

[0037] To enable those skilled in the art to better understand the embodiments of the present invention, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0038] This invention provides a method for configuring edge-cloud communication protocols for edge computing devices, wherein the definition of edge-cloud includes: edge - engineering machinery; edge - edge computing device; cloud - cloud server.

[0039] Reference Figure 1 This is a schematic diagram illustrating the steps of a method for configuring an edge-cloud communication protocol on an edge computing device, according to an embodiment of the present invention.

[0040] S11. Construct standard data type representation methods.

[0041] This embodiment defines data types and CAN line data placeholders according to current popular programming language specifications and programming habits. Through these data types, the data of the CAN line is represented by multiple different data types, thereby forming a standard data type representation method.

[0042]

[0043] Table 1 - Standard Data Type Representation Table

[0044] Table 1 shows the standard data type representation table provided in this embodiment. Based on the established standard data type representation method, the CAN line data is represented by multiple different data types according to the data type. This embodiment supports extended definitions, meaning that in addition to the standard data type representations claimed in this embodiment, manufacturers can also extend and customize them according to their own needs. The data type Unit64 occupies 8 bytes, Unit32 occupies 4 bytes, Unit16 occupies 2 bytes, and Unit8 occupies 1 byte. These are only the standard data type representations defined in this embodiment to implement the technical solution of this application. When extending and customizing, the same data type comparison space can be used, or the data type comparison space can be set independently, thereby achieving compatibility of the present invention.

[0045] It should be noted that the programming habits mentioned in this embodiment are applied to the process of code programming by those skilled in the art, including but not limited to programming content habits, programming semantic habits, and programming thinking habits. Those skilled in the art can understand and reproduce this embodiment based on current programming language specifications and common programming habits.

[0046] It is understood that most of the programming languages ​​in this embodiment follow the same definitions as those specified in the current programming language specifications, with slight differences in naming. Therefore, definitions that use similar definition methods as in this embodiment or have different names are all included in the protection scope of this application.

[0047] S12. Classify cloud data according to data type, number different types of data, and define data mapping IDs.

[0048] Cloud data refers to storing data online, specifically on the servers of a service provider. Cloud storage is an online storage model where data is stored on multiple virtual servers, usually hosted by a third party, rather than on dedicated servers. This allows users to access their data anytime, anywhere, using any internet-connected device.

[0049] Therefore, cloud data has the following storage characteristics:

[0050] (1) The cloud integrates a large number of rich software resources, which are categorized and easy to find;

[0051] (2) Installing and uninstalling software in the cloud is very simple;

[0052] (3) Close the cloud program. All remaining files and information of the software in the cloud will be retained.

[0053] This embodiment categorizes cloud data according to data type, including but not limited to basic data, functional data, event data, and multimedia data. After categorizing the cloud data according to data type, different categories of data are numbered to obtain data mapping IDs.

[0054]

[0055] Table 2 - Data Mapping ID Table

[0056] like Figure 2 The image shown is an example of a data mapping ID representation provided in this embodiment. This data mapping ID relationship table also reserves expansion space so that manufacturers can extend the definition according to their actual needs.

[0057] It should be noted that when defining the extended data mapping ID, the extension can be done by increasing the number of bits. This extension method is not only simple and efficient, but also compatible with future industry or national unified engineering machinery data standard definitions.

[0058] S13. Based on the data mapping ID and the data data type, construct the data mapping relationship and form a configuration file.

[0059] This embodiment defines a data mapping syntax according to programming conventions, thereby forming a configuration file. Specifically, the configuration file declares the CAN address, data type, and data mapping ID to construct the data mapping relationship, thus forming the configuration file.

[0060] The programming habits are based on the current popular programming language specifications, as described in step S11, and will not be elaborated on here.

[0061] It should be noted that the CAN address contained in the configuration file includes a standard CAN address frame and an extended CAN address frame. The standard frame is configured with a predefined CAN address, and the extended frame is configured with a custom CAN address. That is, in this embodiment, the standard frame is defined and divided into special areas such as real-time functional data and status data, so as to uniformly realize different data configurations with different acquisition frequencies.

[0062] In addition, the standard frame is configured into a standard range and a reserved range. Specifically, based on the division of real-time functional data, status data and other special areas, the data information is determined, and then the acquisition frequency is configured according to the determined data information. This allows the CAN address standard frame to be configured into a standard range and a reserved area according to the configured acquisition frequency. Through this allocation method, not only can more and longer data be stored, but the utilization rate of the standard frame can also be made more efficient. In addition, due to the better server performance, more and longer data can be stored, improving the efficiency of data storage and utilization.

[0063] This embodiment provides a method for configurable edge-cloud communication protocols in edge computing devices. By constructing a standard data type representation method, cloud data is categorized according to data type, and different data types are numbered, defining data mapping IDs. Based on the data mapping IDs and data data types, a data mapping relationship is constructed, forming a configuration file. This method of combining universal data type definitions and data mapping ensures compatibility across different types of products within a manufacturer, while maintaining the security of the manufacturer's internal data protocols. Unifying the data protocol not only improves development efficiency but also enhances product maintainability, promoting data unification among manufacturers. Different manufacturers can simply modify the configuration file to map different data without redevelopment, thereby improving product stability. This also promotes the unification of industry data structures.

[0064] Furthermore, this method allows manufacturers to customize their data protocols and data ID definitions according to their specific product functional requirements. It also ensures compatibility with future industry-wide or national unified data standards for construction machinery.

[0065] Furthermore, such as Figure 2 The diagram shown is a schematic diagram of the configuration file encryption and decryption steps provided in an embodiment of the present invention.

[0066] S31. Before the configuration file is generated, the contents of the configuration file are kept secure and confidential.

[0067] The configuration file contains the CAN address, data type, and mapping ID. The configuration file mentioned in this embodiment is formed according to programming conventions through data mapping relationships. Therefore, before the configuration file is formed, data information such as the CAN address, data type, and mapping ID can be securely protected. Specifically, this can be achieved by performing data encryption and decryption operations, including but not limited to setting a key, encrypting plaintext into ciphertext, and then decrypting the ciphertext back to plaintext using the set key, thereby improving data security.

[0068] It should be noted that key setup includes using substitution encryption and decryption methods, as well as permutation encryption and decryption methods. The principle of substitution encryption and decryption is to use the key to convert each character in the plaintext into a character in the ciphertext, while the principle of permutation encryption and decryption is to rearrange the characters of the plaintext in different orders. Furthermore, a combination of substitution and permutation encryption and decryption methods can be used to further enhance data security.

[0069] S32, or, perform security and confidentiality operations on the configuration file after it has been created.

[0070] Similarly, after the configuration file is generated, file encryption and decryption operations can be performed on the generated configuration file itself, including but not limited to using encryption and decryption software, or using S31-based encryption and decryption operations based on the data itself.

[0071] Understandably, data encryption and decryption can be used before the configuration file is created, and a combination of file encryption and decryption can be used after the configuration file is created to further improve data security, so that manufacturers can open the data while ensuring the security of internal data protocols.

[0072] By adopting a data type definition and data mapping approach, the configuration file is defined by the manufacturer. Through self-configured encryption and decryption operations, it is opened while ensuring the security of the internal data protocol, thus solving the problem of manufacturer protocol leakage caused by the need to connect to the manufacturer's protocol when migrating to the cloud.

[0073] This embodiment provides an encryption and decryption method for configuration files. It securely protects the content of the configuration file before or after its creation. Manufacturers define their own configuration files and implement corresponding data protection methods. This ensures the security of internal data protocols while allowing for open access, satisfying the compatibility requirements of different product types using the same protocol while improving internal data security. For manufacturers, this reduces the maintenance burden on developers, improves maintainability, enhances data consistency, and increases standardization. From a societal perspective, it promotes the standardization of construction machinery data and industry data, creating conditions for the intelligentization of construction machinery standards.

[0074] Furthermore, this embodiment also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the method performed in any of the above embodiments.

[0075] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.

[0076] The above are merely preferred embodiments of the present invention. It should be noted that the above preferred embodiments should not be considered as limitations on the present invention, and the scope of protection of the present invention should be determined by the scope defined in the claims. For those skilled in the art, several improvements and modifications can be made without departing from the spirit and scope of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A method for configuring edge-cloud communication protocols on an edge computing device, characterized in that, include: Construct standard data type representation methods; Cloud data is categorized according to data type, and different types of data are numbered and defined with data mapping IDs; Based on the data mapping ID and the data data type, a data mapping relationship is constructed to form a configuration file; The configuration file includes the CAN address, specifically... Define the data mapping syntax according to programming conventions; Based on the data mapping syntax, the configuration file is generated, and the configuration file contains a data mapping relationship constructed from CAN address, data type, and data mapping ID; The CAN address includes standard frames and extended frames; The standard frame is configured with a predefined CAN address, including: The standard frame is also configured with a standard interval and a reserved interval, specifically... Define a real-time functional data zone and a status data zone; Based on the real-time functional data zone and the status data zone, determine the data information; Configure the acquisition frequency according to the determined data information so that the CAN address standard frame is configured with standard range and reserved range according to the acquisition frequency; The extended frame is configured with a custom CAN address.

2. The method for configuring edge-cloud communication protocol on an edge computing device according to claim 1, characterized in that, The method for constructing a standard data type representation includes: Define data types and CAN line data placeholders according to programming conventions; Based on the defined data types, the data of the CAN line is represented by multiple different data types to form a standard data type representation.

3. A configurable method for edge-cloud communication protocol on an edge computing device according to claim 1 or 2, characterized in that, The programming practices described are configured in accordance with current programming language specifications.

4. A method for configuring an edge-cloud communication protocol for an edge computing device according to claim 1, characterized in that, Both the standard data type representation method and the data mapping ID support extended definitions.

5. A method for configuring an edge-cloud communication protocol on an edge computing device according to claim 4, characterized in that, The data mapping ID is extended by increasing the number of bits.

6. A method for configuring edge-cloud communication protocol on an edge computing device according to claim 1, characterized in that, The step of constructing a data mapping relationship based on the data mapping ID and the data data type to form a configuration file also includes: Before the configuration file is generated, the contents of the configuration file are kept secure and confidential. Alternatively, security and confidentiality measures can be taken for the configuration file after it has been created.

7. A computer-readable storage medium, characterized in that, It stores a computer program that, when executed by a processor, implements the steps of the method of any one of claims 1-6.