Data transmission method, device and computer storage medium

By compressing industrial equipment data at the edge gateway and decompressing it in the cloud, the bandwidth pressure and computing efficiency issues of the cloud IoT platform are resolved, and efficient data management and transmission of equipment from different manufacturers are achieved.

CN116319878BActive Publication Date: 2025-09-09SHENZHEN HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202310212364.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-27
Publication Date
2025-09-09
Estimated Expiration
2043-02-27

AI Technical Summary

Technical Problem

When integrating industrial equipment data from different production workshops, cloud-based IoT platforms face enormous bandwidth pressure and reduced computing efficiency. In particular, the differences in data description rules and formats of equipment from different manufacturers lead to high data processing costs and excessive cloud burden.

Method used

The operating data of industrial equipment is compressed at the edge gateway to generate data to be transmitted in the form of strings and numerical values ​​containing device information and attribute information. The data is then decompressed in the cloud and cleaned and encoded according to pre-agreed rules to reduce data capacity and bandwidth usage.

Benefits of technology

It effectively reduces Internet bandwidth pressure, improves data transmission efficiency, and reduces the computing burden of the cloud IoT platform, enabling efficient management of equipment from different manufacturers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116319878B_ABST
    Figure CN116319878B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide a method, device, and computer storage medium for data transmission, which are used to alleviate the traffic pressure on Internet bandwidth caused by the data generated by industrial equipment being sent from the edge gateway to the cloud IoT platform. The method of the present application uses the edge gateway to collect the original data according to the agreed compression rules, removes redundancy from the original data and compresses it to obtain first data, and sends the first data to the cloud IoT platform via the Internet. The cloud IoT platform then decompresses the first data according to the agreed decompression rules to obtain valid data. There is no need to transmit redundant data from the edge gateway to the cloud IoT platform, which reduces the data capacity transmitted from the edge gateway to the cloud IoT platform, thereby reducing the Internet bandwidth required to send the data generated by industrial equipment from the edge gateway to the cloud IoT platform, and improving the efficiency of data transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of Internet of Things, and more particularly to a data transmission method, device, and computer storage medium. Background Art

[0002] With the continuous advancement of enterprise digital transformation, the primary issue that traditional manufacturing needs to face in its digital transformation is how the cloud-based Internet of Things platform can collect and process the operating data collected from equipment deployed in different production workshops.

[0003] Because industrial equipment is deployed in various production workshops, data collection requires edge gateways located in these workshops to collect data and transmit it to a cloud-based IoT platform via the internet. To monitor production equipment's operational data in real time, this data must be collected intensively, requiring large amounts of data to be transmitted to the cloud-based IoT platform via the internet. As the intervals between data collections decrease, the amount of data required to be transmitted from edge gateways to the cloud-based IoT platform continues to increase, placing significant pressure on internet bandwidth. Summary of the Invention

[0004] The embodiments of the present application provide a data transmission method, device, and computer storage medium for alleviating the traffic pressure on Internet bandwidth caused by sending data generated by industrial equipment from an edge gateway to a cloud-based Internet of Things platform.

[0005] A first aspect of an embodiment of the present application provides a method for data transmission, including: obtaining original data, the original data including device information of a first device, a value of a first attribute of the first device, and a first storage address, the value of the first attribute being the value stored in the first storage address; obtaining a first correspondence list, the first correspondence list including a correspondence between the device information and a first character string and a correspondence between the first storage address and a second character string; generating first data based on the original data and the first correspondence list, the first data including the first character string, the second character string, and a first value, the first value being used to describe the value of the first attribute; sending the first data to a second device so that the second device processes the first data to obtain second data, the second data including the device information, the first attribute, and the value of the first attribute.

[0006] In an embodiment of the present application, after collecting raw data from the first device and obtaining a first correspondence list, the second device generates first data based on the raw data of the first device and the first correspondence list, wherein the raw data includes device information of the first device, a first storage address, and a value of a first attribute of the first device, where the value of the first attribute is the value stored at the first storage address; the first correspondence list includes a correspondence between the device information and a first string, and a correspondence between the first storage address and a second string; the first data includes a first string, a second string, and a first value, where the first value is used to describe the value of the first attribute. The first data is then sent to the second device, so that after obtaining the first data and the second correspondence list, the first device processes the first data according to the second correspondence list to obtain second data, wherein the second correspondence includes a correspondence between the device information and the first string, and a correspondence between the second string and the first attribute; and the second data includes the device information, the first attribute, and the value of the first attribute. By cleaning and encoding the redundant data of the original data according to the pre-agreed compression rules, the first data is obtained. After the first data is transmitted to the second device, the second device decompresses the first data according to the agreed decompression rules to obtain the second data required by the second device to manage the first device, thereby reducing the capacity of the data transmitted from the third device to the second device and reducing the bandwidth pressure of the Internet.

[0007] In a possible implementation of the first aspect, the first relationship list further includes a second numerical value corresponding to the second character string, and the first numerical value is a difference between a numerical value of the first attribute and the second numerical value.

[0008] In an embodiment of the present application, by adding a second numerical value corresponding to the second string in the first correspondence list, when the third device processes the original data according to the first correspondence, the second numerical value is calculated as the offset of the numerical value of the first attribute, which can further reduce the storage space occupied by the numerical value of the first attribute, thereby improving the efficiency of data transmission.

[0009] In a possible implementation of the first aspect, obtaining raw data includes: obtaining point data generated by a first device, the point data being used to indicate the device information and the numerical value of the first attribute; and parsing the point data to obtain the raw data. In an embodiment of the present application, obtaining raw data can be accomplished by obtaining point data generated by a first device, and after obtaining the point data, using a protocol driver to parse the binary point data to obtain structured raw data. A specific implementation method is provided for obtaining raw data, providing more possibilities for the implementation of the solution.

[0010] A second aspect of an embodiment of the present application provides a method for data transmission, including: obtaining a second correspondence list, the second correspondence list including the correspondence between device information of a first device and a first string and the correspondence between the second string and a first attribute; obtaining first data sent by a third device, the first data including the first string, the second string and a first numerical value, the first numerical value being used to describe the numerical value of the first attribute; processing the first data according to the second correspondence list to obtain second data, the second data including the device information, the first attribute and the numerical value of the first attribute.

[0011] In a possible implementation of the second aspect, the second relationship list further includes a second numerical value corresponding to the second character string, and the first numerical value is a difference between a numerical value of the first attribute and the second numerical value.

[0012] In a possible implementation of the second aspect, before obtaining the first data sent by the third device, the method also includes: obtaining a first correspondence list, the first correspondence list including the correspondence between the device information and the first character string and the correspondence between the first storage address and the second character string; and sending the first correspondence list to the third device.

[0013] In this embodiment of the present application, a technician can configure the first correspondence list through the user interface provided by the second device. Once configured, the first correspondence list is sent to the third device. By forwarding the second correspondence list from the second device to the third device, the cloud-based IoT platform's data transmission and management capabilities are enhanced, providing more possibilities for implementing the solution.

[0014] A third aspect of the embodiments of the present application provides a data transmission device, including:

[0015] an acquiring unit, configured to acquire original data, the original data including device information of a first device, a value of a first attribute of the first device, and a first storage address, wherein the value of the first attribute is a value stored in the first storage address;

[0016] The acquiring unit is further configured to acquire a first correspondence list, wherein the first correspondence list includes a correspondence between the device information and the first character string and a correspondence between the first storage address and the second character string;

[0017] a generating unit, configured to generate first data according to the original data and the first correspondence list, wherein the first data includes the first character string, the second character string, and a first numerical value, wherein the first numerical value is used to describe a numerical value of the first attribute;

[0018] A sending unit is configured to send the first data to a second device, so that the second device processes the first data to obtain second data, where the second data includes the device information, the first attribute, and a value of the first attribute.

[0019] In a possible implementation of the third aspect, the first relationship list further includes a second numerical value corresponding to the second character string, and the first numerical value is a difference between a numerical value of the first attribute and the second numerical value.

[0020] In a possible implementation of the third aspect, the acquiring unit is specifically configured to:

[0021] Acquire point data generated by a first device, where the point data is used to indicate the device information and a value of the first attribute;

[0022] The point data is analyzed to obtain the original data.

[0023] A fourth aspect of the embodiments of the present application provides a data transmission device, including:

[0024] an acquiring unit, configured to acquire a second correspondence list, wherein the second correspondence list includes a correspondence between the device information of the first device and the first character string and a correspondence between the second character string and the first attribute;

[0025] The acquiring unit is further configured to acquire first data sent by a third device, where the first data includes the first character string, the second character string, and a first numerical value, where the first numerical value is used to describe a numerical value of the first attribute;

[0026] A processing unit is configured to process the first data according to the second correspondence list to obtain second data, where the second data includes the device information, the first attribute, and a value of the first attribute.

[0027] In a possible implementation of the fourth aspect, the second relationship list further includes a second numerical value corresponding to the second character string, and the first numerical value is a difference between a numerical value of the first attribute and the second numerical value.

[0028] In a possible implementation of the fourth aspect, the acquiring unit is further configured to acquire a first correspondence list, where the first correspondence list includes a correspondence between the device information and the first character string and a correspondence between the first storage address and the second character string;

[0029] The device further includes: a sending unit, configured to send the first correspondence list to the third device.

[0030] A fifth aspect of an embodiment of the present application provides a device for data transmission, including a processor and a memory, wherein the memory is used to store instructions, and the processor is used to execute the instructions. When the processor executes the instructions, the method described in the first aspect or any possible implementation of the first aspect is executed.

[0031] A sixth aspect of an embodiment of the present application provides a device for data transmission, including a processor and a memory, wherein the memory is used to store instructions, and the processor is used to execute the instructions. When the processor executes the instructions, the method described in the second aspect or any possible implementation of the second aspect is executed.

[0032] A seventh aspect of an embodiment of the present application provides a computing device cluster, comprising at least one computing device, each computing device comprising a processor and a memory;

[0033] The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method described in the first aspect or any possible implementation of the first aspect.

[0034] An eighth aspect of the embodiments of the present application provides a computing device cluster, comprising at least one computing device, each computing device comprising a processor and a memory;

[0035] The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method described in the second aspect or any possible implementation of the second aspect.

[0036] A ninth aspect of the embodiments of the present application provides a computer-readable storage medium, characterized in that it includes a program that, when run on a computer, enables the computer to execute the method described in the first aspect or any possible implementation of the first aspect.

[0037] In a tenth aspect, an embodiment of the present application provides a computer-readable storage medium, characterized in that it includes a program that, when run on a computer, enables the computer to execute the method described in the second aspect or any possible implementation of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 An architectural diagram of the cloud-based IoT platform provided in an embodiment of the present application;

[0039] Figure 2 A schematic diagram of a data transmission method provided in an embodiment of the present application;

[0040] Figure 3A schematic diagram of a structure of a data transmission device provided in an embodiment of the present application;

[0041] Figure 4 Another structural diagram of a data transmission device provided in an embodiment of the present application;

[0042] Figure 5 Another structural diagram of a data storage device provided in an embodiment of the present application;

[0043] Figure 6 Another structural diagram of a data storage device provided in an embodiment of the present application;

[0044] Figure 7 A schematic diagram of the structure of a computing device cluster provided in an embodiment of the present application;

[0045] Figure 8 Another structural diagram of a computing device cluster provided in an embodiment of the present application;

[0046] Figure 9 Another structural diagram of a computing device cluster provided in an embodiment of the present application;

[0047] Figure 10 Another structural diagram of a computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] The embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application. The terms used in the implementation methods of the present application are only used to explain the specific embodiments of the present application and are not intended to limit the present application. It is known to those skilled in the art that with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0049] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, and this is merely a way of distinguishing the objects of the same properties when describing them in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0050] With the continuous advancement of enterprise digital transformation, the digital transformation of traditional manufacturing is also inevitable. Based on the existing large number of production and manufacturing equipment, the cloud-based IoT platform needs to collect and process the operating data generated by industrial equipment deployed in different production workshops.

[0051] Because industrial equipment is deployed across various production workshops, operating data collection requires the deployment of edge gateways in each workshop. These edge gateways collect data from the industrial equipment within the workshops, obtain operational data, and transmit this data to cloud-based IoT platforms. As cloud-based IoT platforms increasingly demand more management of industrial equipment, they must collect more intensive operational data to achieve highly accurate management of the equipment's operating status. This has led to an increasing burden on the internet for transmitting operational data, placing significant pressure on network bandwidth.

[0052] Furthermore, because industrial equipment includes devices of different manufacturers and models, the description rules and file formats of the collected operational data also vary. Therefore, the data collected from industrial equipment must be processed to obtain a unified operational data format. The cloud-based IoT platform manages this unified operational data, enabling oversight of industrial equipment of different manufacturers and models.

[0053] If the collected operating data is to be processed on the edge side, it is necessary to customize the operating data processing software for different models of industrial equipment from different manufacturers, which incurs high costs.

[0054] If the collected operating data is processed on the cloud IoT platform, the cloud IoT platform will need to process the operating data of massive industrial equipment, which will greatly occupy the computing power of the cloud IoT platform and cause the computing efficiency of the cloud IoT platform to decrease.

[0055] In response to the above problems, an embodiment of the present application proposes that after the edge gateway collects the operating data of the industrial equipment, it processes the operating data according to a pre-agreed compression rule to obtain the data to be transmitted. The data to be transmitted includes a character string A corresponding to the device information of the industrial equipment, a character string B corresponding to the storage address of the attribute information of the industrial equipment, and the numerical value of the attribute information of the industrial equipment. After receiving the data to be transmitted sent by the edge gateway, the cloud-based Internet of Things platform processes the data to be transmitted according to the pre-agreed decompression rules to obtain the processed operating data for subsequent operations.

[0056] In order to facilitate the understanding of the system architecture of the solution proposed in this application, the system architecture in which the solution proposed in this application operates is first introduced. Figure 1 , Figure 1An architectural diagram of the cloud-based IoT platform provided in an embodiment of the present application.

[0057] The architecture of the device control platform includes the device control platform, edge gateway and field controller or subsystem (DCS / PLC).

[0058] The device control platform is connected to the edge gateway via a network, and the edge gateway is communicatively connected to the field controller or subsystem. The edge gateway includes a protocol driver, an offset mapping module, a synchronization configuration module, and a data communication module. After collecting operational data generated by the field controller or subsystem, the edge gateway's protocol driver converts the format to obtain raw data. The offset mapping module processes the raw data based on the device modeling rules and point configuration rules obtained through network synchronization on the cloud IoT platform. The edge gateway then transmits the processed raw data to the cloud IoT platform via the data communication module.

[0059] The cloud IoT platform includes an edge management console, an IoT (Internet of Things) platform application programming interface (API) and an attribute parsing module. Technicians can set device modeling rules and point configurations through the edge management console, so that the cloud IoT platform can synchronize the device modeling rules and point configuration rules to the edge network manager through the network. In addition, after receiving the processed raw data sent by the edge network manager, the cloud Internet platform obtains the device model through calculation based on the device modeling rules and the processed raw data. The attribute parsing module parses the device model and provides the device attributes obtained after parsing to the independent software vendor (ISV) business application that can be accessed through the IoT platform API interface, so that technicians can monitor the equipment in the industrial production workshop through the IVS business application interface.

[0060] In combination with the above ideas, the data transmission method provided by the embodiment of the present application is introduced below in conjunction with the accompanying drawings. Figure 2 , Figure 2 A schematic diagram of a data transmission method provided in an embodiment of the present application.

[0061] 201. The third device obtains a first correspondence list sent by the second device;

[0062] The third device obtains a first correspondence list sent by the second device. The first correspondence list includes a correspondence between the device information of the first device and the first string, and a correspondence between the first storage address and the second string. The first storage address is a storage address of a value of a first attribute of the first device, wherein the first device is an industrial device at an industrial production site.

[0063] For example, during a production process, a first device generates multiple attribute values, such as current, voltage, or motor speed. Different attribute values ​​of the first device correspond to different point addresses in the first device, meaning that different attribute values ​​of the first device are stored at different storage addresses in the first device. This example illustrates a situation where the first device is CNC1, and there are multiple CNC devices at an industrial production site. The point address for the attribute current of CNC1 is ns:1001.

[0064] The first correspondence list includes: the correspondence between CNC1 and C1 and the correspondence between ns:1001 and flag0. The specific form of the first correspondence list in actual application can be:

[0065] CNC1<->C1

[0066] Point address ns: 1001<->flag0

[0067] Optionally, in order to further compress the capacity of the first data based on the actual properties of the first device, a second value corresponding to the second string may be added to the first correspondence list, where the second value is a reference benchmark value for processing the first property value.

[0068] Still taking the aforementioned first correspondence list as an example, the first correspondence list may also include 2 corresponding to flag0. In this case, the specific expression of the first correspondence in actual application may be:

[0069] CNC1<->C1

[0070] Point address ns:1001<->flag0;2

[0071] It is understandable that the description of the first correspondence here is only an example. In actual applications, the first correspondence may include character strings and numerical values ​​corresponding to multiple point addresses. The specific settings should be made in combination with the specific application scenarios and are not limited here.

[0072] In an embodiment of the present application, by adding a second numerical value corresponding to the second string in the first correspondence list, when the third device processes the original data according to the first correspondence, the second numerical value is calculated as the offset of the numerical value of the first attribute, which can further reduce the storage space occupied by the numerical value of the first attribute, thereby improving the efficiency of data transmission.

[0073] Optionally, the third device may obtain the first correspondence list sent by the second device, or may obtain the first correspondence list preset by a technician through a USB interface, which is not limited here.

[0074] It should be noted that there is no clear order between step 201 and step 202. In practical applications, step 201 and step 202 can be completed before step 203.

[0075] 202. The third device obtains original data;

[0076] The third device obtains original data, where the original data includes device information of the first device and a value of a first attribute of the first device, where the value of the first attribute is a value stored in a first storage address of the first device.

[0077] The original data is data read by the third device from the first storage address of the first device through a protocol driver.

[0078] For example, it is assumed that the first device is CNC1, there are multiple CNC devices at the industrial production site, the point address of the attribute current of the CNC1 device is ns:1001, and the value of the first attribute is 2.7.

[0079] The specific data of the original data read by the third device through the protocol driver is as follows:

[0080]

[0081]

[0082] Optionally, when the third device reads the original data from the first storage address of the first device through the protocol driver, the protocol driver further converts the binary description in the first storage into a structured description, such as the specific description of the original data.

[0083] The specific description of the point data recorded in binary form in the first storage address of the first device is:

[0084] Point address: ns:1001

[0085] Value: 2.7

[0086] Type: int

[0087] Note: Current (optional)

[0088] Ledger information: Production line No. 1 CNC1

[0089] It is understandable that the description of the method and content of the third device obtaining the original data here is only an example. In actual applications, the original data may contain descriptions of multiple attributes and the original data may be obtained through other means. The specific content and specific acquisition method of the original data should be set in combination with the specific application scenario and are not restricted here.

[0090] It should be noted that there is no clear order between step 201 and step 202. In practical applications, step 201 and step 202 can be completed before step 203.

[0091] 203. The third device generates first data according to the original data and the first correspondence list;

[0092] After the third device obtains the original data and the first correspondence list, the third device generates the first data according to the original data and the first correspondence list.

[0093] Exemplarily, when the first correspondence list includes the correspondence between device information and the first string and the correspondence between the first storage address and the second string, the third device searches the first correspondence list based on the device information of the first device, the value of the first attribute of the first device and the first storage address in the original data, obtains the correspondence between the device information and the first string and the correspondence between the first storage address and the second string, and generates first data based on the correspondence between the device information and the first string and the correspondence between the first storage address and the second string, where the first data includes the first string, the second string and the value of the first attribute.

[0094] When the first correspondence list includes the correspondence between the device information and the first character string and the correspondence between the first storage address and the second character string, and the specific content of the first correspondence list is the same as the example in the aforementioned step 201, the specific form of the first data may be:

[0095]

[0096] Optionally, when the first correspondence list includes the correspondence between device information and the first string, the correspondence between the first storage address and the second string, and the correspondence between the second value and the second string, the third device searches the first correspondence list based on the device information of the first device, the value of the first attribute of the first device, and the first storage address in the original data, obtains the correspondence between the device information and the first string, the correspondence between the first storage address and the second string, and the correspondence between the second string and the second value, and generates first data based on the correspondence between the device information and the first string, the correspondence between the first storage address and the second string, and the correspondence between the second string and the second value, where the first data includes the first string, the second string, and the first value, wherein the first value is the difference between the value of the first attribute and the second value.

[0097] If the first correspondence list includes the correspondence between the device information and the first string, the correspondence between the first storage address and the second string, and the correspondence between the second string and the second value, and the specific content of the first correspondence list is the same as the example in step 201, the specific form of the first data may be:

[0098]

[0099] It can be understood that the method in which the third device generates the first data based on the original data and the first correspondence list is only an example. In actual applications, adaptive adjustments should be made based on the device type and attribute value type included in the original data. There is no restriction here.

[0100] 204. The third device sends the first data to the second device;

[0101] After generating the first data, the third device sends the first data to the second device via a message queue telemetry transport (MQTT) protocol.

[0102] Exemplarily, the second device may be an Internet of Things platform provided on a cloud server, or may be a server with massive data processing capabilities, which is not limited here.

[0103] It should be noted that there is no clear order between step 204 and step 205. In practical applications, step 204 and step 205 can be completed before step 206.

[0104] 205. The second device obtains a second correspondence list;

[0105] The second device obtains a second correspondence list, which includes a correspondence between the device information of the first device and the first character string and a correspondence between the second character string and the first attribute.

[0106] Specifically, the technician can directly write the second correspondence list to the second device, or the technician can also send the second correspondence list to a device connected to the second device in a communicative manner, and the device connected to the second device in a communicative manner sends the second correspondence list to the second device. There is no limitation here.

[0107] For example, the first device is CNC1, and there are multiple CNC devices at the industrial production site. The point address of the attribute current of the CNC1 device is ns:1001.

[0108] The second correspondence list includes: the correspondence between CNC1 and C1 and the correspondence between flag0 and current. The specific form of the second correspondence list in actual application can be:

[0109] CNC1<->C1

[0110] flag0<->current

[0111] Optionally, in order to further compress the capacity of the first data based on the actual properties of the first device, a second value corresponding to the second string may be added to the second correspondence list, where the second value is a reference base value for processing the first property value.

[0112] Still taking the aforementioned second correspondence list as an example, the first correspondence list may also include 2 corresponding to flag0. In this case, the specific expression of the first correspondence in actual application may be:

[0113] CNC1<->C1

[0114] flag0<->current; 2

[0115] It is understandable that the description of the method for obtaining the second correspondence and the specific content of the second correspondence here are only examples. In actual applications, the specific settings should be set in combination with the specific application scenario, and no limitation is made here.

[0116] It should be noted that there is no clear order between step 204 and step 205. In practical applications, step 204 and step 205 can be completed before step 206.

[0117] 206. The second device processes the first data according to the second correspondence list to obtain second data.

[0118] After obtaining the first data and the second correspondence list, the second device processes the first data according to the second correspondence list to obtain second data, where the second data includes device information, the first attribute, and a value of the first attribute.

[0119] Exemplarily, when the second correspondence list includes the correspondence between the device information and the first string and the correspondence between the second string and the first attribute, the second device obtains the correspondence between the device information and the first string and the correspondence between the second string and the first attribute based on the first data including the first string, the second string and the numerical value of the first attribute, and processes the first data according to the correspondence between the device information and the first string and the correspondence between the second string and the first attribute to obtain the second data, where the second data includes the device information, the first attribute and the numerical value of the first attribute.

[0120] When the second correspondence list includes the correspondence between the device information and the first string and the correspondence between the second string and the first attribute, and the specific content of the second correspondence list is the same as the example in the aforementioned step 205, the specific form of the second data can be:

[0121] The current of CNC1 is 2.7.

[0122] Optionally, when the second correspondence list includes the correspondence between the device information and the first string, the correspondence between the second string and the first attribute, and the correspondence between the second value and the second string, the second device obtains the correspondence between the device information and the first string, the correspondence between the second string and the first attribute, and the correspondence between the second string and the second value based on the first data including the first string, the second string, and the first value, wherein the first value is the difference between the value of the first attribute and the second value, and processes the first data according to the correspondence between the device information and the first string, the correspondence between the second string and the first attribute, and the correspondence between the second string and the second value to obtain the second data, wherein the first data includes the first string, the second string, and the first value, and the second data includes the device information, the first attribute, and the value of the first attribute.

[0123] If the second correspondence list includes the correspondence between the device information and the first string, the correspondence between the second string and the first attribute, and the correspondence between the second value and the second string, and the specific content of the second correspondence list is the same as the example in step 205, the specific form of the first data may be:

[0124] Current of CNC1 = 2 + 0.7 = 2.7

[0125] It can be understood that the description here of the second device processing the first data according to the second correspondence list to obtain the second data is only an example. In actual applications, adaptive adjustments should be made in combination with the device type and the attribute value type of the device included in the original data. No restrictions are made here.

[0126] In an embodiment of the present application, after collecting raw data from the first device and obtaining a first correspondence list, the second device generates first data based on the raw data of the first device and the first correspondence list, wherein the raw data includes device information of the first device, a first storage address, and a value of a first attribute of the first device, where the value of the first attribute is the value stored at the first storage address; the first correspondence list includes a correspondence between the device information and a first string, and a correspondence between the first storage address and a second string; the first data includes a first string, a second string, and a first value, where the first value is used to describe the value of the first attribute. The first data is then sent to the second device, so that after obtaining the first data and the second correspondence list, the first device processes the first data according to the second correspondence list to obtain second data, wherein the second correspondence includes a correspondence between the device information and the first string, and a correspondence between the second string and the first attribute; and the second data includes the device information, the first attribute, and the value of the first attribute. By cleaning and encoding the redundant data of the original data according to the pre-agreed compression rules, the first data is obtained. After the first data is transmitted to the second device, the second device decompresses the first data according to the agreed decompression rules to obtain the second data required by the second device to manage the first device, thereby reducing the capacity of the data transmitted from the third device to the second device and reducing the bandwidth pressure of the Internet.

[0127] The above describes the data transmission method provided in the embodiment of the present application. The following describes the data transmission device provided in the embodiment of the present application with reference to the accompanying drawings.

[0128] See also Figure 3 , Figure 3 A schematic diagram of the structure of a data transmission device provided in an embodiment of the present application.

[0129] The devices for data transmission include:

[0130] An acquiring unit 301 is configured to acquire original data, where the original data includes device information of a first device, a value of a first attribute of the first device, and a first storage address, where the value of the first attribute is a value stored in the first storage address;

[0131] The acquiring unit 301 is further configured to acquire a first correspondence list, the first correspondence list including a correspondence between the device information and the first character string and a correspondence between the first storage address and the second character string;

[0132] A generating unit 302 is configured to generate first data according to the original data and the first correspondence list, wherein the first data includes the first character string, the second character string, and a first value, wherein the first value is used to describe a value of the first attribute;

[0133] The sending unit 303 is configured to send the first data to a second device, so that the second device processes the first data to obtain second data, where the second data includes the device information, the first attribute, and a value of the first attribute.

[0134] Optionally, the first relationship list further includes a second numerical value corresponding to the second character string, and the first numerical value is a difference between the numerical value of the first attribute and the second numerical value.

[0135] Optionally, the acquiring unit 301 is specifically configured to:

[0136] Acquire point data generated by a first device, where the point data is used to indicate the device information and a value of the first attribute;

[0137] The point data is analyzed to obtain the original data.

[0138] See also Figure 4 , Figure 4 Another structural diagram of a data transmission device provided in an embodiment of the present application.

[0139] The devices for data transmission include:

[0140] An acquiring unit 401 is configured to acquire a second correspondence list, where the second correspondence list includes a correspondence between device information of a first device and a first string and a correspondence between a second string and a first attribute;

[0141] The acquiring unit 401 is further configured to acquire first data sent by a third device, where the first data includes the first character string, the second character string, and a first value, where the first value is used to describe a value of the first attribute;

[0142] The processing unit 402 is configured to process the first data according to the second correspondence list to obtain second data, where the second data includes the device information, the first attribute, and a value of the first attribute.

[0143] Optionally, the second relationship list further includes a second numerical value corresponding to the second character string, and the first numerical value is a difference between the numerical value of the first attribute and the second numerical value.

[0144] Optionally, the acquiring unit 401 is further configured to acquire a first correspondence list, where the first correspondence list includes a correspondence between the device information and the first character string and a correspondence between the first storage address and the second character string;

[0145] The sending unit 403 is further configured to send the first correspondence list to the third device.

[0146] In addition, the present invention also provides a data transmission device. Figure 5 , Figure 5 Another structural schematic diagram of a data storage device provided in an embodiment of the present application.

[0147] Data transmission device 500 includes a bus 502, a processor 504, a memory 506, and a communication interface 508. Processor 504, memory 506, and communication interface 508 communicate with each other via bus 502. Data transmission device 500 may be a server or a terminal device. It should be understood that this application does not limit the number of processors and memories in data transmission device 500.

[0148] The bus 502 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 The bus 502 may include a path for transmitting information between various components of the data transmission device 500 (eg, memory 506, processor 504, communication interface 508).

[0149] The processor 504 may include any one or more processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0150] The memory 506 may include volatile memory, such as random access memory (RAM). The processor 504 may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid state drive (SSD).

[0151] The memory 506 stores executable program code, and the processor 504 executes the executable program code to respectively implement the functions of the aforementioned acquisition unit 301, generation unit 302, and sending unit 303, thereby implementing any of the data storage methods. In other words, the memory 506 stores instructions for executing any of the data storage methods.

[0152] Alternatively, the memory 506 stores executable codes, and the processor 504 executes the executable codes to respectively implement the functions of the aforementioned access points, thereby implementing any of the data storage methods. In other words, the memory 506 stores instructions for executing any of the data storage methods.

[0153] The communication interface 508 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the data transmission device 500 and other devices or a communication network.

[0154] See also Figure 6 , Figure 6 Another structural schematic diagram of a data storage device provided in an embodiment of the present application.

[0155] Data transmission device 600 includes a bus 602, a processor 604, a memory 606, and a communication interface 608. Processor 604, memory 606, and communication interface 608 communicate with each other via bus 602. Data transmission device 600 may be a server or a terminal device. It should be understood that this application does not limit the number of processors and memories in data transmission device 600.

[0156] The bus 602 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6The bus 602 may include a path for transmitting information between various components of the device 600 (eg, memory 606, processor 604, communication interface 608).

[0157] The processor 604 may include any one or more processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0158] The memory 606 may include volatile memory, such as random access memory (RAM). The processor 604 may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid state drive (SSD).

[0159] The memory 606 stores executable program code, and the processor 604 executes the executable program code to respectively implement the functions of the aforementioned acquisition unit 401, sending unit 402, and generation unit 403, thereby implementing any of the data storage methods. In other words, the memory 606 stores instructions for executing any of the data storage methods.

[0160] Alternatively, the memory 606 stores executable codes, and the processor 604 executes the executable codes to respectively implement the functions of the aforementioned access points, thereby implementing any of the data storage methods. That is, the memory 606 stores instructions for executing any of the data storage methods.

[0161] The communication interface 608 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the data transmission device 600 and other devices or a communication network.

[0162] See also Figure 7 , Figure 7 A schematic diagram of the structure of a computing device cluster provided in an embodiment of the present application.

[0163] The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smartphone.

[0164] like Figure 7 As shown, the computing device cluster includes at least one data transmission device 500. The memory 506 in one or more data transmission devices 500 in the computing device cluster may store the same instructions for executing any one of the data storage methods.

[0165] In some possible implementations, the memory 506 of one or more data transmission devices 500 in the computing device cluster may also store partial instructions for executing any of the data storage methods. In other words, the combination of one or more data transmission devices 500 can jointly execute instructions for executing any of the data storage methods.

[0166] It should be noted that the memory 506 in different data transmission devices 500 in the computing device cluster can store different instructions, each used to execute part of the functions of the cloud management platform. In other words, the instructions stored in the memory 506 in different data transmission devices 500 can implement the functions of one or more of the acquisition unit 301, generation unit 302, and sending unit 303.

[0167] In some possible implementations, one or more data transmission devices 500 in the computing device cluster may be connected via a network, which may be a wide area network or a local area network.

[0168] See also Figure 8 , Figure 8 Another structural diagram of a computing device cluster provided in an embodiment of the present application.

[0169] The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smartphone.

[0170] like Figure 8 As shown, the computing device cluster includes at least one data transmission device 600. The memory 606 in one or more data transmission devices 600 in the computing device cluster may store the same instructions for executing any one of the data storage methods.

[0171] In some possible implementations, the memory 606 of one or more data transmission devices 600 in the computing device cluster may also store partial instructions for executing any of the data storage methods. In other words, the combination of one or more data transmission devices 600 can jointly execute instructions for executing any of the data storage methods.

[0172] It should be noted that the memory 606 in different data transmission devices 600 in the computing device cluster can store different instructions, each used to execute part of the functions of the cloud management platform. In other words, the instructions stored in the memory 606 in different data transmission devices 600 can implement the functions of one or more of the acquisition unit 301, generation unit 302, and sending unit 303.

[0173] In some possible implementations, one or more data transmission devices 600 in the computing device cluster may be connected via a network, which may be a wide area network or a local area network.

[0174] See also Figure 9 , Figure 9 Another structural diagram of a computing device cluster provided in an embodiment of the present application.

[0175] like Figure 9 As shown, two data transmission devices 500A and 500B are connected via a network. Specifically, the connection to the network is achieved through communication interfaces within each computing device. In this possible implementation, the memory 506 within the data transmission device 500A stores instructions for executing the functions of the acquisition unit 301. Simultaneously, the memory 506 within the data transmission device 500B stores instructions for executing the functions of the generation unit 302 and the sending unit 303.

[0176] It should be understood that Figure 9 The function of the data transmission device 500A shown in FIG. 5 may also be completed by multiple data transmission devices 500. Similarly, the function of the data transmission device 500B may also be completed by multiple data transmission devices 500.

[0177] The present application embodiment also provides another computing device cluster. The connection relationship between the computing devices in the computing device cluster can be similarly referred to as Figure 7 and Figure 9 The connection mode of the computing device cluster is different in that the memory 506 of one or more data storage devices 500 in the computing device cluster may store the same instructions for executing any one of the data storage methods.

[0178] In some possible implementations, the memory 506 of one or more data transmission devices 500 in the computing device cluster may also store partial instructions for executing any of the data storage methods. In other words, the combination of one or more data transmission devices 500 can jointly execute instructions for executing any of the data storage methods.

[0179] It should be noted that the memory 506 in different data transmission devices 500 in the computing device cluster may store different instructions for executing part of the functions of the data storage method.

[0180] See also Figure 10 , Figure 10 Another structural diagram of a computing device cluster provided in an embodiment of the present application.

[0181] like Figure 10 As shown, two data transmission devices 600A and 600B are connected via a network. Specifically, the connection to the network is achieved through communication interfaces within each computing device. In this possible implementation, the memory 606 within the data transmission device 600A stores instructions for executing the functions of the acquisition unit 401. Simultaneously, the memory 606 within the data transmission device 600B stores instructions for executing the functions of the processing unit 302 and the sending unit 303.

[0182] It should be understood that Figure 10 The function of the data transmission device 600A shown in FIG. 6 may also be completed by multiple data transmission devices 600. Similarly, the function of the data transmission device 600B may also be completed by multiple data transmission devices 600.

[0183] The present application embodiment also provides another computing device cluster. The connection relationship between the computing devices in the computing device cluster can be similarly referred to as Figure 8 and Figure 10 The connection mode of the computing device cluster is different in that the memory 606 of one or more data storage devices 600 in the computing device cluster may store the same instructions for executing any one of the data storage methods.

[0184] In some possible implementations, the memory 606 of one or more data transmission devices 600 in the computing device cluster may also store partial instructions for executing any of the data storage methods. In other words, the combination of one or more data transmission devices 600 can jointly execute instructions for executing any of the data storage methods.

[0185] It should be noted that the memory 606 in different data transmission devices 600 in the computing device cluster may store different instructions for executing part of the functions of the data storage method.

[0186] An embodiment of the present application also provides a computer-readable storage medium, including computer-readable instructions. When the computer-readable instructions are executed on a computer, the computer executes the operations performed by the third device in any one of the implementation methods shown in the aforementioned method embodiments.

[0187] An embodiment of the present application also provides a computer-readable storage medium, including computer-readable instructions. When the computer-readable instructions are executed on a computer, the computer executes the operation performed by the second device in any one of the implementation methods shown in the aforementioned method embodiments.

[0188] An embodiment of the present application also provides a computer program product, which includes a computer program or instructions. When the computer program or instructions are run on a computer, the computer executes the operations performed by the third device in any one of the implementation methods shown in the aforementioned method embodiments.

[0189] An embodiment of the present application also provides a computer program product, which includes a computer program or instructions. When the computer program or instructions are executed on a computer, the computer executes the operation performed by the second device in any one of the implementation methods shown in the aforementioned method embodiments.

[0190] The present application also provides a chip or chip system, which may include a processor. The chip may also include a memory (or storage module) and / or a transceiver (or communication module), or the chip is coupled with a memory (or storage module) and / or a transceiver (or communication module), wherein the transceiver (or communication module) can be used to support the chip for wired and / or wireless communication, and the memory (or storage module) can be used to store a program or a set of instructions, and the processor calls the program or the set of instructions to implement the above-mentioned method embodiment, the operation performed by the third device or the second device in any possible implementation of the method embodiment. The chip system may include the above chip, and may also include the above chip and other discrete devices, such as memory (or storage module) and / or transceiver (or communication module).

[0191] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0192] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0193] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0194] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0195] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk, and other media that can store program code.

Claims

1. A data transmission method, characterized in that: include: The third device obtains raw data with a structured description from the binary description in the first storage address of the first device through a protocol driver. The raw data includes device information of the first device, a value of a first attribute of the first device, and the first storage address. The value of the first attribute is the value stored in the first storage address. The first storage address is specifically a point address. The first device is an industrial device at an industrial production site. Obtaining a first correspondence list, the first correspondence list including a correspondence between the device information and a first character string and a correspondence between the first storage address and a second character string, the first correspondence list also including a second value corresponding to the second character string; generating first data according to the original data and the first correspondence list, wherein the first data includes the first character string, the second character string, and a first numerical value, wherein the first numerical value is used to describe the numerical value of the first attribute, and the first numerical value is a difference between the numerical value of the first attribute and the second numerical value; The first data is sent to a second device so that the second device processes the first data to obtain second data, where the second data includes the device information, the first attribute, and the value of the first attribute. The second device is a cloud-based Internet of Things platform, and the second data is used by the cloud-based Internet of Things platform to provide externally accessible independent software developer (ISV) business applications.

2. The method according to claim 1, characterized in that The obtaining of original data comprises: Acquire point data generated by a first device, where the point data is used to indicate the device information and a value of the first attribute; The point data is analyzed to obtain the original data.

3. A data transmission method, characterized in that: include: Obtaining a second correspondence list, the second correspondence list including a correspondence between the device information of the first device and the first string, a correspondence between the second string and the first attribute, and a second value corresponding to the second string; Obtaining a first correspondence list, the first correspondence list including a correspondence between the device information and the first character string and a correspondence between the first storage address and the second character string; Sending the first correspondence list to a third device, where the third device is an edge gateway device; Obtaining first data sent by a third device, where the first data is generated by the third device based on the first correspondence list and original data, where the original data is a structured description obtained by the third device from a binary description in a first storage address of the first device via a protocol driver, the original data including device information of the first device, a value of a first attribute of the first device, and the first storage address, and the first data including the first character string, the second character string, and a first value, where the first value is used to describe the value of the first attribute, and the first value is the difference between the value of the first attribute and the second value; The first data is processed according to the second correspondence list to obtain second data, where the second data includes the device information, the first attribute and the value of the first attribute, and the second data is used to provide accessible independent software developer (ISV) business applications through an application programming interface.

4. A data transmission device, characterized in that The device is an edge gateway, and the device includes: an acquiring unit, configured to acquire raw data of a structured description from a binary description in a first storage address of a first device, the raw data including device information of the first device, a value of a first attribute of the first device, and the first storage address, the value of the first attribute being a value stored in the first storage address, the first storage address being specifically a point address, and the first device being an industrial device at an industrial production site; The acquiring unit is further configured to acquire a first correspondence list, the first correspondence list including a correspondence between the device information and the first character string and a correspondence between the first storage address and the second character string, and the first correspondence list also including a second numerical value corresponding to the second character string; a generating unit, configured to generate first data based on the original data and the first correspondence list, wherein the first data includes the first character string, the second character string, and a first numerical value, wherein the first numerical value is used to describe the numerical value of the first attribute, and the first numerical value is a difference between the numerical value of the first attribute and the second numerical value; A sending unit is used to send the first data to a second device so that the second device processes the first data to obtain second data, where the second data includes the device information, the first attribute and the value of the first attribute. The second device is a cloud-based Internet of Things platform, and the second data is used by the cloud-based Internet of Things platform to provide externally accessible independent software developer (ISV) business applications.

5. The device according to claim 4, characterized in that The acquisition unit is specifically configured to: Acquire point data generated by a first device, where the point data is used to indicate the device information and a value of the first attribute; The point data is analyzed to obtain the original data.

6. A data transmission device, characterized in that The device is a cloud-based Internet of Things platform, and the device includes: an acquiring unit, configured to acquire a second correspondence list, the second correspondence list including a correspondence between the device information of the first device and the first string, a correspondence between the second string and the first attribute, and a second value corresponding to the second string; The acquiring unit is further configured to acquire a first correspondence list, wherein the first correspondence list includes a correspondence between the device information and the first character string and a correspondence between the first storage address and the second character string; A sending unit, configured to send the first correspondence list to a third device, where the third device is an edge gateway device; The acquiring unit is further configured to acquire first data sent by a third device, where the first data is generated by the third device based on the first correspondence list and original data, the original data being a structured description acquired by the third device from a binary description in a first storage address of the first device via a protocol driver, the original data including device information of the first device, a value of a first attribute of the first device, and the first storage address, the first data including the first character string, the second character string, and a first value, the first value being used to describe a value of the first attribute, and the first value being a difference between the value of the first attribute and the second value; A processing unit is used to process the first data according to the second correspondence list to obtain second data, where the second data includes the device information, the first attribute and the value of the first attribute, and the second data is used to provide externally accessible independent software developer (ISV) business applications.

7. A data transmission device, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store instructions, and the processor is used to execute the instructions. When the processor executes the instructions, the method according to any one of claims 1 to 2 is performed.

8. A data transmission device, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store instructions, and the processor is used to execute the instructions. When the processor executes the instructions, the method according to claim 3 is performed.

9. A computing device cluster, characterized in that: comprising at least one computing device, each computing device including a processor and a memory; The processor of the at least one computing device is configured to execute instructions stored in a memory of the at least one computing device, so that the computing device cluster executes the method according to any one of claims 1 to 2.

10. A computing device cluster, characterized in that: comprising at least one computing device, each computing device including a processor and a memory; The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method according to claim 3 .

11. A computer-readable storage medium, characterized in that The invention comprises a program which, when being run on a computer, causes the computer to execute the method according to any one of claims 1 to 2.

12. A computer-readable storage medium, characterized in that The invention comprises a program which, when being run on a computer, causes the computer to execute the method as claimed in claim 3.

Citation Information

Patent Citations

  • Geological disaster monitoring data transmission method and device

    CN113037693A

  • Charging pile big data transmission system and method

    CN113593126A

  • Internet of Things intelligent gateway based on edge computing and working method thereof

    CN114513390A