Data communication method, electronic device and storage medium based on data lake

By adopting the data communication method of data lake in the digital factory, and using industrial firewalls to connect the central data lake and edge data lake, the problem of needing to adjust the firewall configuration when updating the data collection module is solved, and the deployment efficiency and security are improved.

CN114880524BActive Publication Date: 2024-09-20SHENZHEN AI LINK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210481006.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-05
Publication Date
2024-09-20
Estimated Expiration
2042-05-05

AI Technical Summary

Technical Problem

When updating data collection modules in existing digital factories, the industrial firewall configuration needs to be adjusted, resulting in low deployment efficiency.

Method used

The data communication method based on the data lake is adopted, and the industrial firewall is used for data transmission and analysis through the communication connection between the central data lake and the edge data lake. This avoids frequent adjustments to the firewall configuration and is suitable for progressively deployed digital factories.

Benefits of technology

It improves the deployment efficiency of digital factories, reduces safety hazards caused by the addition or removal of industrial collection equipment, and enhances the security and processing performance of digital factories.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114880524B
    Figure CN114880524B
Patent Text Reader

Abstract

The present application provides a data communication method, electronic device and storage medium based on a data lake, and relates to the field of communication technology. Among them, the method can be applied to a central data lake, the central data lake is connected to at least one edge data lake through at least one industrial firewall, and each edge data lake is connected to at least one industrial collection device. The method includes: receiving industrial equipment data sent by the edge data lake through the industrial firewall, and the industrial equipment data is obtained by the edge data lake through at least one industrial collection device; according to the industrial equipment data, analyzing the target industrial equipment corresponding to the industrial equipment data, and obtaining the data analysis results. Compared with the prior art, even if the industrial collection equipment connected to the edge data lake is added or removed, there is no need to reconfigure the industrial firewall, which can improve the deployment efficiency of the digital factory.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a data communication method, electronic device and storage medium based on a data lake. Background Art

[0002] As an emerging factory model, the digital factory realizes product intelligence, production automation, and the integration of information flow and material flow within manufacturing enterprises. Among them, the digital factory adopts a series of advanced technologies such as big data analysis, end-to-end real-time planning and equipment interconnection, automatic control system, digital twin, etc. to realize the digitization of production and even the entire supply chain. With these technologies, the production efficiency of enterprises can be improved, and highly customized products can be mass-produced.

[0003] Currently, when implementing data collection services in digital factories, the data storage and processing functions are generally connected to other networks (such as office networks), and the information collection functions are dispersedly deployed at industrial sites and connected to the production network. Specifically, information collection services usually rely on data collection modules to obtain data in the production environment, and data collection modules are usually deployed in the production network and isolated from other networks where data storage and processing functions are located by industrial firewalls. If data needs to be directly transferred between the production network and other networks, corresponding configuration must be performed on the industrial firewall.

[0004] It can be seen that in the existing data communication method, each time the data acquisition module in the digital factory is updated, the maintenance personnel are required to adjust the configuration of the industrial firewall. Therefore, the existing digital factory has the problem of low deployment efficiency. Summary of the invention

[0005] The purpose of this application is to provide a data lake-based data communication method, electronic device and storage medium to improve the deployment efficiency of digital factories in response to the above-mentioned deficiencies in the prior art.

[0006] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:

[0007] In a first aspect, the present invention provides a data lake-based data communication method, which is applied to a central data lake, wherein the central data lake is communicatively connected to at least one edge data lake through at least one industrial firewall, and each edge data lake is communicatively connected to at least one industrial collection device, and the method comprises:

[0008] Receiving industrial equipment data sent by the edge data lake through the industrial firewall, the industrial equipment data is acquired by the edge data lake through at least one industrial collection device;

[0009] According to the industrial equipment data, target industrial equipment corresponding to the industrial equipment data is analyzed to obtain data analysis results.

[0010] In an optional implementation, the industrial firewall is configured to include a preset mapping relationship, the preset mapping relationship including: a mapping relationship between an address corresponding to the central data lake, an address corresponding to the edge data lake, a first port, a second port, a third port, and a fourth port;

[0011] Wherein, the first port is used for the edge data lake to send the industrial equipment data to the central data lake; the second port is used for the central data lake to receive the industrial equipment data sent by the edge data lake;

[0012] The third port is used for the edge data lake to receive the data transmission instruction sent by the central data lake; the fourth port is used for the central data lake to send the data transmission instruction to the edge data lake.

[0013] In an optional embodiment, the method further comprises:

[0014] Based on the fourth port, a stop transmission instruction is sent to the edge data lake through the industrial firewall, so that the edge data lake temporarily stores the acquired industrial equipment data in a preset storage module according to the stop transmission instruction.

[0015] In an optional implementation manner, before receiving the industrial equipment data sent by the edge data lake through the industrial firewall, the method further includes:

[0016] Based on the fourth port, an industrial equipment collection instruction and / or a start transmission instruction is sent to the edge data lake through the industrial firewall.

[0017] In an optional implementation, the receiving the industrial equipment data sent by the edge data lake through the industrial firewall includes:

[0018] receiving, based on the first message queue, a data transmission request sent by a second message queue in the edge data lake through the industrial firewall;

[0019] According to the data transmission request, sending a consent response to the edge data lake through the industrial firewall based on the first message queue;

[0020] The industrial equipment data in the second message queue sent by the industrial firewall from the second message queue in the edge data lake after receiving the consent response is received based on the first message queue, wherein the second message queue temporarily stores the industrial equipment data in a preset storage module when the consent response is not received.

[0021] In an optional implementation, the data type of the industrial equipment data includes at least one of the following: time-series structured data, non-time-series structured data, and unstructured data;

[0022] When the second message queue does not receive the consent response, temporarily storing the industrial equipment data in a preset storage module includes:

[0023] When the second message queue does not receive the consent response, the industrial equipment data is temporarily stored in a preset storage module according to the data type of the industrial equipment data, wherein the preset storage module includes at least one of the following: a non-relational database, a relational database, and an object storage module, the non-relational database is used to store time-series structured data, the relational database is used to store non-time-series structured data, and the object storage module is used to store unstructured data.

[0024] In an optional implementation, if the central data lake includes a non-relational database, a relational database, and an object storage module, the central data lake further includes: a graph database, and after receiving the industrial equipment data sent by the edge data lake through the industrial firewall, the method further includes:

[0025] According to the industrial equipment data, the association relationship between the non-relational database, each data table in the relational database and each data object in the object storage module is constructed through the graph database;

[0026] The step of analyzing the target industrial equipment corresponding to the industrial equipment data according to the industrial equipment data to obtain data analysis results includes:

[0027] According to the association relationship in the graph database, the target industrial equipment corresponding to the industrial equipment data is analyzed to obtain data analysis results.

[0028] In a second aspect, the present invention provides a data lake-based data communication method, which is applied to an edge data lake, wherein the edge data lake is communicatively connected to a central data lake through an industrial firewall, and the edge data lake is communicatively connected to at least one industrial collection device, and the method comprises:

[0029] Acquiring industrial equipment data through at least one of the industrial collection devices;

[0030] The industrial equipment data is sent to the central data lake through the industrial firewall, so that the central data lake analyzes the target industrial equipment corresponding to the industrial equipment data according to the industrial equipment data to obtain data analysis results.

[0031] In a third aspect, an embodiment of the present application provides a data lake-based data communication device, which is applied to a central data lake, wherein the central data lake is communicatively connected to at least one edge data lake through at least one industrial firewall, and each edge data lake is communicatively connected to at least one industrial collection device, and the data communication device includes:

[0032] A receiving module, configured to receive industrial equipment data sent by the edge data lake through the industrial firewall, wherein the industrial equipment data is acquired by the edge data lake through at least one industrial collection device;

[0033] The analysis module is used to analyze the target industrial equipment corresponding to the industrial equipment data according to the industrial equipment data to obtain data analysis results.

[0034] In an optional implementation, the industrial firewall is configured to include a preset mapping relationship, the preset mapping relationship including: a mapping relationship between an address corresponding to the central data lake, an address corresponding to the edge data lake, a first port, a second port, a third port, and a fourth port;

[0035] Wherein, the first port is used for the edge data lake to send the industrial equipment data to the central data lake; the second port is used for the central data lake to receive the industrial equipment data sent by the edge data lake;

[0036] The third port is used for the edge data lake to receive the data transmission instruction sent by the central data lake; the fourth port is used for the central data lake to send the data transmission instruction to the edge data lake.

[0037] In an optional embodiment, the data communication device also includes: a sending module, which is used to send a stop transmission instruction to the edge data lake through the industrial firewall based on the fourth port, so that the edge data lake temporarily stores the acquired industrial equipment data to a preset storage module according to the stop transmission instruction.

[0038] In an optional embodiment, before receiving the industrial equipment data sent by the edge data lake through the industrial firewall, the sending module is also used to send industrial equipment collection instructions and / or start transmission instructions to the edge data lake through the industrial firewall based on the fourth port.

[0039] In an optional implementation, the receiving module is specifically configured to receive, based on the first message queue, a data transmission request sent by the second message queue in the edge data lake through the industrial firewall;

[0040] According to the data transmission request, sending a consent response to the edge data lake through the industrial firewall based on the first message queue;

[0041] The industrial equipment data in the second message queue sent by the industrial firewall from the second message queue in the edge data lake after receiving the consent response is received based on the first message queue, wherein the second message queue temporarily stores the industrial equipment data in a preset storage module when the consent response is not received.

[0042] In an optional implementation, the data type of the industrial equipment data includes at least one of the following: time-series structured data, non-time-series structured data, and unstructured data;

[0043] When the second message queue does not receive the consent response, temporarily storing the industrial equipment data in a preset storage module includes:

[0044] When the second message queue does not receive the consent response, the industrial equipment data is temporarily stored in a preset storage module according to the data type of the industrial equipment data, wherein the preset storage module includes at least one of the following: a non-relational database, a relational database, and an object storage module, the non-relational database is used to store time-series structured data, the relational database is used to store non-time-series structured data, and the object storage module is used to store unstructured data.

[0045] In an optional implementation, if the central data lake includes a non-relational database, a relational database, and an object storage module, the central data lake further includes: a graph database, the receiving module is further configured to construct, based on the industrial equipment data, an association relationship between each data table in the non-relational database, each data table in the relational database, and each data object in the object storage module through the graph database;

[0046] The analysis module is specifically used to analyze the target industrial equipment corresponding to the industrial equipment data according to the association relationship in the graph database to obtain data analysis results.

[0047] In a fourth aspect, the present invention provides a data communication device based on a data lake, which is applied to an edge data lake, wherein the edge data lake is communicatively connected to a central data lake through an industrial firewall, and the edge data lake is communicatively connected to at least one industrial collection device, and the data communication device includes:

[0048] An acquisition module, used for acquiring industrial equipment data through at least one of the industrial acquisition devices;

[0049] A sending module is used to send the industrial equipment data to the central data lake through the industrial firewall, so that the central data lake analyzes the target industrial equipment corresponding to the industrial equipment data according to the industrial equipment data to obtain data analysis results.

[0050] In a fifth aspect, the present invention provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to perform the steps of the data communication method based on the data lake as described in any of the aforementioned implementations.

[0051] In a sixth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the data communication method based on a data lake as described in any of the aforementioned implementation modes are executed.

[0052] The beneficial effects of this application are:

[0053] In the data lake-based data communication method, electronic device and storage medium provided in the embodiments of the present application, the method can be applied to a central data lake, the central data lake is communicatively connected to at least one edge data lake through at least one industrial firewall, and each edge data lake is communicatively connected to at least one industrial collection device. The method includes: receiving industrial equipment data sent by the edge data lake through the industrial firewall, the industrial equipment data is acquired by the edge data lake through at least one industrial collection device; according to the industrial equipment data, analyzing the target industrial equipment corresponding to the industrial equipment data to obtain data analysis results. By applying the embodiments of the present application, compared with the prior art, even if the industrial collection equipment connected to the edge data lake is added or removed, there is no need to reconfigure the industrial firewall, so that the data communication method provided in the embodiments of the present application can be applied to digital factories with progressive deployment, and the deployment efficiency of digital factories can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0055] Figure 1 A data communication system based on a data lake is provided in an embodiment of the present application;

[0056] Figure 2 A flow chart of a data communication method based on a data lake provided in an embodiment of the present application;

[0057] Figure 3 A flowchart of another data lake-based data communication method provided in an embodiment of the present application;

[0058] Figure 4 A flowchart of another data lake-based data communication method provided in an embodiment of the present application;

[0059] Figure 5 A flowchart of another data lake-based data communication method provided in an embodiment of the present application;

[0060] Figure 6 A flowchart of another data lake-based data communication method provided in an embodiment of the present application;

[0061] Figure 7 A flowchart of another data lake-based data communication method provided in an embodiment of the present application;

[0062] Figure 8 A schematic diagram of functional modules of a data communication device based on a data lake provided in an embodiment of the present application;

[0063] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0064] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.

[0065] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0066] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0067] In view of the problem of low digital factory deployment efficiency caused by the need for maintenance personnel to adjust the configuration of the industrial firewall every time the data acquisition module is updated in existing digital factories, an embodiment of the present application provides a data communication method based on a data lake. By applying this embodiment, the deployment efficiency of digital factories can be improved.

[0068] Figure 1 A data communication system based on a data lake is provided in an embodiment of the present application. Figure 2 A flow chart of a data communication method based on a data lake provided in an embodiment of the present application. The data communication system can be applied to a digital factory, and the data communication method can be applied to the central data lake 110 in the data communication system. Figure 1 As shown, the central data lake 110 can be connected to at least one edge data lake 130 through at least one industrial firewall 120, and each edge data lake 130 can be connected to at least one industrial collection device 140. Among them, each edge data lake 130 can be configured to access different production network subnets (for example, a production network covering a certain workshop), and each edge data lake 130 can communicate data with at least one industrial collection device 140 in its corresponding production network subnet. Specifically, each industrial collection device 140 can send the collected industrial device data to the edge data lake 130. The central data lake 110 can be configured to access an office network, the Internet, or a production network different from the production network subnet to which each edge data lake 130 is connected, which is not limited here. In some embodiments, the central data lake 110 and each edge data lake 130 can be deployed in a computer or a server, which is not limited here.

[0069] For each industrial firewall 120, each industrial firewall 120 can provide network boundary security protection between the production network subnet connected to each edge data lake 130 and the network (office network, Internet or production network, etc.) connected to the central data lake 110, and isolate each security area corresponding to each production network subnet from each other to ensure the security of each production network subnet. In some embodiments, the industrial firewall 120 can be configured to parse, identify and control all data traffic passing through the production network subnet, and defend the industrial equipment connected to the production network subnet from attacks from internal and external networks through mechanisms such as interface scanning protection, security auditing, malicious code protection, vulnerability protection and access permission limitation.

[0070] Reference Figure 2 As shown, the method may include:

[0071] S101. Receive industrial equipment data sent by the edge data lake through the industrial firewall, where the industrial equipment data is acquired by the edge data lake through at least one industrial collection device.

[0072] Among them, the industrial collection equipment can collect data from various industrial equipment in the industrial environment. The industrial equipment may include industrial production equipment and various machine tools, such as lathes, milling machines, grinders, planers and other machines, which are not limited here; the industrial collection equipment may include but is not limited to: industrial sensors, which may include temperature sensors, humidity sensors, visual sensors, pressure sensors and RFID readers, etc., which are not limited here. Depending on the different industrial collection equipment, the type of industrial equipment data collected may be different.

[0073] During the data communication process, each industrial collection device can send the collected industrial equipment data to the edge data lake. After receiving the industrial equipment data, the edge data lake can send the industrial equipment data to the central data lake through the industrial firewall. Correspondingly, the central data lake can receive the industrial equipment data sent by each edge data lake through the industrial firewall. Based on this communication process, compared with the prior art, it can be seen that even if the industrial collection equipment connected to the edge data lake is added or removed, there is no need to reconfigure the industrial firewall, so that the data communication method provided in the embodiment of the present application can be applied to digital factories with progressive deployment, which can improve the deployment efficiency of digital factories.

[0074] S102. Analyze the target industrial equipment corresponding to the industrial equipment data according to the industrial equipment data to obtain data analysis results.

[0075] After the central data lake receives the industrial equipment data, it can analyze the target industrial equipment corresponding to the industrial equipment data, for example, it can analyze the working status (normal operation or failure), working performance, etc. of the target industrial equipment, and obtain the data analysis results through analysis. It can be understood that the data analysis results can further guide maintenance personnel to perform timely maintenance on the target industrial equipment, thereby ensuring the working efficiency of the digital factory.

[0076] In summary, the embodiment of the present application provides a data communication method based on a data lake, which can be applied to a central data lake, wherein the central data lake is communicatively connected to at least one edge data lake through at least one industrial firewall, and each edge data lake is communicatively connected to at least one industrial collection device, and the method includes: receiving industrial equipment data sent by the edge data lake through the industrial firewall, the industrial equipment data being acquired by the edge data lake through at least one industrial collection device; analyzing the target industrial equipment corresponding to the industrial equipment data according to the industrial equipment data, and acquiring data analysis results. By applying the embodiment of the present application, compared with the prior art, even if the industrial collection equipment to which the edge data lake is communicatively connected is added or removed, there is no need to reconfigure the industrial firewall, so that the data communication method provided by the embodiment of the present application can be applied to digital factories with progressive deployment, and the deployment efficiency of digital factories can be improved.

[0077] In some embodiments, the industrial firewall can be configured to open a specific port for the data connection between the edge data lake and the central data lake and perform scanning protection. Optionally, the industrial firewall can be configured to include a preset mapping relationship, which can include: the address corresponding to the central data lake, the address corresponding to the edge data lake, the first port, the second port, the third port, and the fourth port. Optionally, the preset mapping relationship can be expressed as <first IP address, first port, third port, second IP address, second port, fourth port>, wherein the first IP address is used to indicate the address corresponding to the edge data lake, and optionally, it can be the IP address of the first preset component in the edge data lake in the production network subnet; the second IP address is used to indicate the address corresponding to the central data lake, and optionally, it can be the IP address of the second preset component in the central data lake in the connected network (office network, Internet or production network, etc.), which is not limited here.

[0078] Among them, the first port is used for the edge data lake to send industrial equipment data to the central data lake; the second port is used for the central data lake to receive industrial equipment data sent by the edge data lake; the third port is used for the edge data lake to receive data transmission instructions sent by the central data lake; the fourth port is used for the central data lake to send data transmission instructions to the edge data lake.

[0079] Optionally, the first port and the third port may be ports opened to the outside by the first preset component; the second port and the fourth port may be ports opened to the outside by the second preset component. In some embodiments, the data transmission instruction may include a start transmission instruction, a stop transmission instruction, etc., which are not limited here. Based on the above description, it can be seen that by configuring the industrial firewall as above, normal communication between the central data lake and the edge data lake can be achieved.

[0080] By applying the embodiments of the present application, it can also be seen that since the industrial firewall only includes configuration information related to the central data lake and the edge data lake, and does not include configuration information related to the industrial acquisition equipment, even if the industrial acquisition equipment connected to the edge data lake is added or removed, there is no need to reconfigure the industrial firewall, which can improve the deployment efficiency of the digital factory. In addition, compared with the existing technology, it can also avoid the potential safety hazards in the digital factory caused by the removal of industrial acquisition equipment but the failure to update the configuration rules of the industrial firewall in time, thereby improving the security of the digital factory.

[0081] Of course, it should be noted that if the industrial firewall receives a data packet sent by a non-central data lake or a non-edge data lake, the industrial firewall can discard the data packet.

[0082] Figure 3 A flow chart of another data lake-based data communication method provided in an embodiment of the present application is as follows: Figure 3 As shown, the method may include:

[0083] S201. Based on the fourth port, send a stop transmission instruction to the edge data lake through the industrial firewall, so that the edge data lake temporarily stores the acquired industrial equipment data to a preset storage module according to the stop transmission instruction.

[0084] In some embodiments, after receiving industrial equipment data sent by at least one industrial collection device, the edge data lake can forward the industrial equipment data to the central data lake through the industrial firewall. Of course, the embodiment of the present application does not limit the timing of forwarding, which can be real-time forwarding or scheduled forwarding (for example, forwarding once every 1 hour or every 2 hours), and the corresponding forwarding rules can be selected according to the actual application scenario.

[0085] Among them, when the edge data lake forwards the industrial equipment data to the central data lake through the industrial firewall, considering that the central data lake is affected by the network status and ongoing business processing operations (for example, batch operations), if the central data lake continues to receive the industrial equipment data sent by the edge data lake through the industrial firewall, it may cause the processing performance of the central data lake to further deteriorate and fail to successfully receive the industrial equipment data in a timely manner. Optionally, the central data lake can generate a stop transmission instruction according to the first preset rule, and send the stop transmission instruction to the edge data lake through the industrial firewall based on the fourth port, so that when the edge data lake receives the stop transmission instruction, it can temporarily store the acquired industrial equipment data in the preset storage module and wait for the appropriate time to send it.

[0086] By applying the embodiments of the present application, the processing pressure of the central data lake can be reduced and the processing performance of the central data lake can be guaranteed; in addition, the risk of data packet loss of industrial equipment during data transmission can be reduced and security can be improved.

[0087] Figure 4 A flowchart of another data lake-based data communication method provided in an embodiment of the present application. Figure 4 As shown, before receiving the industrial equipment data sent by the edge data lake through the industrial firewall, the method further includes:

[0088] S301. Based on the fourth port, send industrial equipment collection instructions and / or start transmission instructions to the edge data lake through the industrial firewall.

[0089] Among them, the industrial equipment collection instruction is used to instruct the edge data lake to send a start collection instruction to the industrial collection device, so that the industrial collection device collects the industrial equipment data of the target industrial equipment according to the start collection instruction; the start transmission instruction is used to instruct the edge data lake to start transmitting the acquired industrial equipment data to the central data lake.

[0090] For example, in some embodiments, if the edge data lake can temporarily store industrial equipment data acquired within a historical time period, optionally, when the central data lake can receive industrial equipment data, the central data lake can send a start transmission instruction to the edge data lake through the industrial firewall based on the fourth port. After the edge data lake receives the start transmission instruction, the industrial equipment data temporarily stored within the historical time period can be sent to the central data lake with reference to the above-mentioned method embodiment.

[0091] It should be noted that the embodiments of the present application do not limit the timing of sending the industrial equipment collection instructions and the start transmission instructions. Optionally, both can be sent at the same time, or, based on the fourth port, the industrial equipment collection instructions are sent to the edge data lake through the industrial firewall at a first moment; and the start transmission instructions are sent to the edge data lake through the industrial firewall at a second moment. The sending timing can be flexibly selected according to the actual application scenario and is not limited here.

[0092] Figure 5 A flowchart of another data lake-based data communication method provided in an embodiment of the present application. Optionally, Figure 5 As shown, the above step of receiving industrial equipment data sent by the edge data lake through the industrial firewall includes:

[0093] S401. Receive, based on the first message queue, a data transmission request sent by the second message queue in the edge data lake through the industrial firewall.

[0094] Optionally, the central data lake may include a first message queue, and the edge data lake may include a second message queue. In some embodiments, the edge data lake may transmit industrial device data collected by at least one industrial collection device to the second message queue, and then the edge data lake may send a data transmission request to the central data lake through the industrial firewall based on the second message queue, and the central data lake may receive the data transmission request through its corresponding first message queue.

[0095] S402. According to the data transmission request, a consent response is sent to the edge data lake through the industrial firewall based on the first message queue.

[0096] S403, receiving the industrial equipment data in the second message queue in the edge data lake through the industrial firewall after receiving the consent response based on the first message queue.

[0097] Among them, when the second message queue does not receive a consent response, the industrial equipment data is temporarily stored in a preset storage module. In some embodiments, a preset storage rule can be set for the second message queue. For example, it can be set that when the second message queue does not receive a consent response within a preset time period (for example, 30 seconds, 1 minute, etc.), the industrial equipment data is temporarily stored in a preset storage module. Of course, the specific setting method is not limited to this.

[0098] Based on the above steps, it can be seen that after the central data lake receives the data transmission request, if it agrees to receive the data, then the central data lake can send a consent response to the edge data lake through the industrial firewall based on the first message queue. Furthermore, after receiving the consent response, the second message queue in the edge data lake can send industrial equipment data to the central data lake through the industrial firewall based on the second message queue; the central data lake can receive the industrial equipment data based on the first message queue. Optionally, the first message queue can write the received industrial equipment data to local storage.

[0099] By applying the embodiments of the present application, the central data lake can decide whether to receive the industrial equipment data sent by the edge data lake based on its own specific circumstances (network, processing performance, etc.), thereby improving the applicability of the method of the present application; and the edge data lake can temporarily store the acquired industrial equipment data in a preset storage module when it does not receive a consent response sent by the central data lake, thereby avoiding the loss of industrial equipment data.

[0100] Based on the embodiment of the present application, optionally, the first preset component can be the first message queue, and the second preset component can be the second message queue, that is, the first IP address in the industrial firewall can be the IP address of the first message queue in the edge data lake in the production network subnet; the second IP address can be the IP address of the second message queue in the central data lake in the connected network (office network, Internet or production network, etc.). Of course, the setting method of the first preset component and the second preset component is not limited to this.

[0101] Optionally, the data type of the industrial equipment data may include at least one of the following: time-series structured data, non-time-series structured data, and unstructured data. Then, in some embodiments, when the second message queue does not receive an approval response, the step of temporarily storing the industrial equipment data in a preset storage module may include:

[0102] When the second message queue does not receive the consent response, the second message queue temporarily stores the industrial equipment data in a preset storage module according to the data type of the industrial equipment data.

[0103] Optionally, the preset storage module includes at least one of the following: a non-relational database, a relational database, and an object storage module, wherein the non-relational database and the relational database may belong to a file storage module. Combined with the foregoing embodiment, the file storage module may be connected to the second message queue in the edge data lake through the non-relational database and the relational database.

[0104] Among them, the non-relational database is used to store time-series structured data (for example, temperature / humidity data, etc.), the relational database is used to store non-time-series structured data (for example, industrial acquisition equipment status data, which may be online status, online duration, etc.), and the object storage module is used to store unstructured data (for example, video data, etc.).

[0105] In some embodiments, it is understandable that the same industrial collection device can collect multiple different types of industrial equipment data, and different industrial collection devices can collect multiple different types of industrial equipment data.

[0106] Of course, it should be noted that for the central data lake, it can also include non-relational databases, relational databases and object storage modules. Among them, the data types stored in the non-relational databases, relational databases, and object storage modules can be referred to the storage methods in the edge data lake, which will not be repeated here.

[0107] Figure 6A flow chart of another data lake-based data communication method provided in an embodiment of the present application is provided. If the central data lake includes a non-relational database, a relational database, and an object storage module, the central data lake also includes: a graph database, such as Figure 6 As shown, after receiving the industrial equipment data sent by the edge data lake through the industrial firewall, the method may include:

[0108] S501. Based on the industrial equipment data, the graph database is used to construct the association relationship between the data tables in the non-relational database, the relational database, and the data objects in the object storage module.

[0109] In some embodiments, a data service can be deployed in the central data lake, and metadata can be constructed for the acquired industrial equipment data through a graph database based on the data service to achieve full-process impact analysis and traceability analysis from data to application. The data service defines a relationship matrix through a graph database, which may specifically include: the relationship between each data table and key value of a non-relational database and a relational database, and the relationship between an unstructured data object and each data table of a non-relational database and a relational database.

[0110] Accordingly, the target industrial equipment corresponding to the industrial equipment data is analyzed according to the industrial equipment data to obtain data analysis results, including:

[0111] S502: Analyze the target industrial equipment corresponding to the industrial equipment data according to the association relationship in the graph database to obtain data analysis results.

[0112] Based on the above description, it can be understood that when analyzing the target industrial equipment corresponding to the industrial equipment data, the graph database can be used to query the association between various data records in the central data lake, and then based on the association, the target industrial equipment corresponding to the industrial equipment data can be analyzed to obtain data analysis results. According to the data analysis results, maintenance personnel can be guided to perform timely maintenance on the target industrial equipment, thereby ensuring the work efficiency of the digital factory.

[0113] For example, the non-relational database in the central data lake may include a first data table and a second data table, wherein the first data table may store temperature data of the target industrial equipment collected by the temperature sensor, and the second data table may store humidity data of the target industrial equipment collected by the humidity sensor; the relational database in the central data lake may store a third data table and a fourth data table, wherein the third data table may store status data of the temperature sensor, such as online status, online duration, etc.; the fourth data table may store status data of the humidity sensor, such as online status, online duration, etc.; based on the above description, it can be understood that the graph database in the central data lake may store the association relationship between the first data table and the third data table, and the association relationship between the second data table and the fourth data table. In this way, it can be ensured that when the relevant data of the target industrial equipment is subsequently obtained, the complete relevant data can be obtained according to the graph database, so that a comprehensive analysis of the target industrial equipment can be performed.

[0114] Figure 7 A flow chart of another data lake-based data communication method provided in an embodiment of the present application, which can be applied to the edge data lake 130, referring to the above Figure 1 As shown, the edge data lake 130 can be connected to the central data lake 110 through the industrial firewall 120, and the edge data lake 130 is connected to at least one industrial collection device 140. Figure 7 As shown, the method may include:

[0115] S601. Acquire industrial equipment data through at least one industrial collection device.

[0116] S602. Send industrial equipment data to the central data lake through the industrial firewall, so that the central data lake analyzes the target industrial equipment corresponding to the industrial equipment data according to the industrial equipment data to obtain data analysis results.

[0117] For the description of this part, please refer to the above-mentioned related description, which will not be repeated here. Compared with the prior art, the application of the embodiment of the present application introduces edge data. Therefore, even if the industrial acquisition equipment connected to the edge data lake is added or removed, there is no need to reconfigure the industrial firewall, so that the data communication method provided by the embodiment of the present application can be applied to the digital factory with progressive deployment, which can improve the deployment efficiency of the digital factory.

[0118] Figure 8The functional module diagram of a data lake-based data communication device provided in the embodiment of the present application is a schematic diagram of the functional modules of the data lake-based data communication device. The device can be applied to the central data lake, and the central data lake is connected to at least one edge data lake through at least one industrial firewall. Each edge data lake is connected to at least one industrial collection device. The basic principle and technical effect of the device are the same as those of the corresponding method embodiment described above. For the sake of brief description, the parts not mentioned in this embodiment can refer to the corresponding content in the method embodiment. Figure 8 As shown, the data communication device 200 may include:

[0119] A receiving module 210 is used to receive industrial equipment data sent by the edge data lake through the industrial firewall, where the industrial equipment data is acquired by the edge data lake through at least one industrial collection device;

[0120] The analysis module 220 is used to analyze the target industrial equipment corresponding to the industrial equipment data according to the industrial equipment data to obtain data analysis results.

[0121] In an optional implementation, the industrial firewall is configured to include a preset mapping relationship, the preset mapping relationship including: a mapping relationship between an address corresponding to the central data lake, an address corresponding to the edge data lake, a first port, a second port, a third port, and a fourth port;

[0122] Wherein, the first port is used for the edge data lake to send the industrial equipment data to the central data lake; the second port is used for the central data lake to receive the industrial equipment data sent by the edge data lake;

[0123] The third port is used for the edge data lake to receive the data transmission instruction sent by the central data lake; the fourth port is used for the central data lake to send the data transmission instruction to the edge data lake.

[0124] In an optional embodiment, the data communication device also includes: a sending module, which is used to send a stop transmission instruction to the edge data lake through the industrial firewall based on the fourth port, so that the edge data lake temporarily stores the acquired industrial equipment data to a preset storage module according to the stop transmission instruction.

[0125] In an optional embodiment, before receiving the industrial equipment data sent by the edge data lake through the industrial firewall, the sending module is also used to send industrial equipment collection instructions and / or start transmission instructions to the edge data lake through the industrial firewall based on the fourth port.

[0126] In an optional implementation, the receiving module 210 is specifically configured to receive, based on the first message queue, a data transmission request sent by the second message queue in the edge data lake through the industrial firewall;

[0127] According to the data transmission request, sending a consent response to the edge data lake through the industrial firewall based on the first message queue;

[0128] The industrial equipment data in the second message queue sent by the industrial firewall is received based on the first message queue after the second message queue in the edge data lake receives the consent response, wherein the second message queue temporarily stores the industrial equipment data in a preset storage module when the consent response is not received.

[0129] In an optional implementation, the data type of the industrial equipment data includes at least one of the following: time-series structured data, non-time-series structured data, and unstructured data;

[0130] When the second message queue does not receive the consent response, temporarily storing the industrial equipment data in a preset storage module includes:

[0131] When the second message queue does not receive the consent response, the industrial equipment data is temporarily stored in a preset storage module according to the data type of the industrial equipment data, wherein the preset storage module includes at least one of the following: a non-relational database, a relational database, and an object storage module, the non-relational database is used to store time-series structured data, the relational database is used to store non-time-series structured data, and the object storage module is used to store unstructured data.

[0132] In an optional implementation, if the central data lake includes a non-relational database, a relational database, and an object storage module, the central data lake further includes: a graph database, the receiving module 210 is further configured to construct, according to the industrial equipment data, an association relationship between each data table in the non-relational database, each data table in the relational database, and each data object in the object storage module through the graph database;

[0133] The analysis module is specifically used to analyze the target industrial equipment corresponding to the industrial equipment data according to the association relationship in the graph database to obtain data analysis results.

[0134] In some embodiments, the present invention further provides a data lake-based data communication device, which is applied to an edge data lake, wherein the edge data lake is communicatively connected to a central data lake through an industrial firewall, and the edge data lake is communicatively connected to at least one industrial collection device, and the data communication device includes:

[0135] An acquisition module, used for acquiring industrial equipment data through at least one of the industrial acquisition devices;

[0136] A sending module is used to send the industrial equipment data to the central data lake through the industrial firewall, so that the central data lake analyzes the target industrial equipment corresponding to the industrial equipment data according to the industrial equipment data to obtain data analysis results.

[0137] The above-mentioned device is used to execute the method provided by the aforementioned embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0138] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more microprocessors, or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0139] Fig. 9 This is a schematic diagram of an electronic device structure provided in an embodiment of the present application. The electronic device can be a device deployed in a central data lake or an edge data lake, such as a computer, a server, etc. Fig. 9 As shown, the electronic device may include: a processor 310, a storage medium 320 and a bus 330, the storage medium 320 stores machine-readable instructions executable by the processor 310, when the electronic device is running, the processor 310 and the storage medium 320 communicate through the bus 330, and the processor 310 executes the machine-readable instructions to perform the steps of the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.

[0140] Optionally, the present application further provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method embodiment are executed. The specific implementation method and technical effect are similar and will not be repeated here.

[0141] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, 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 through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

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

[0143] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0144] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the methods of each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.

[0145] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0146] The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application. It should be noted that similar numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A data communication method based on a data lake, characterized in that: Applied to a central data lake, the central data lake is communicatively connected to at least one edge data lake via at least one industrial firewall, and each edge data lake is communicatively connected to at least one industrial collection device, the method comprising: Receiving industrial equipment data sent by the edge data lake through the industrial firewall, the industrial equipment data is acquired by the edge data lake through at least one industrial collection device; According to the industrial equipment data, analyzing the target industrial equipment corresponding to the industrial equipment data to obtain data analysis results; The industrial firewall is configured to include a preset mapping relationship, and the preset mapping relationship includes: a mapping relationship between an address corresponding to the central data lake, an address corresponding to the edge data lake, a first port, a second port, a third port, and a fourth port; Wherein, the first port is used for the edge data lake to send the industrial equipment data to the central data lake; the second port is used for the central data lake to receive the industrial equipment data sent by the edge data lake; The third port is used for the edge data lake to receive the data transmission instruction sent by the central data lake; the fourth port is used for the central data lake to send the data transmission instruction to the edge data lake.

2. The method according to claim 1, characterized in that: The method further comprises: Based on the fourth port, a stop transmission instruction is sent to the edge data lake through the industrial firewall, so that the edge data lake temporarily stores the acquired industrial equipment data in a preset storage module according to the stop transmission instruction.

3. The method according to claim 1, characterized in that Before receiving the industrial equipment data sent by the edge data lake through the industrial firewall, the method further includes: Based on the fourth port, an industrial equipment collection instruction and / or a start transmission instruction is sent to the edge data lake through the industrial firewall.

4. The method according to any one of claims 1 to 3, characterized in that: The receiving the industrial equipment data sent by the edge data lake through the industrial firewall includes: receiving, based on the first message queue, a data transmission request sent by a second message queue in the edge data lake through the industrial firewall; According to the data transmission request, sending a consent response to the edge data lake through the industrial firewall based on the first message queue; The industrial equipment data in the second message queue sent by the industrial firewall from the second message queue in the edge data lake after receiving the consent response is received based on the first message queue, wherein the second message queue temporarily stores the industrial equipment data in a preset storage module when the consent response is not received.

5. The method according to claim 4, characterized in that The data type of the industrial equipment data includes at least one of the following: time series structured data, non-time series structured data, and unstructured data; When the second message queue does not receive the consent response, temporarily storing the industrial equipment data in a preset storage module includes: When the second message queue does not receive the consent response, the industrial equipment data is temporarily stored in a preset storage module according to the data type of the industrial equipment data, wherein the preset storage module includes at least one of the following: a non-relational database, a relational database, and an object storage module, the non-relational database is used to store time-series structured data, the relational database is used to store non-time-series structured data, and the object storage module is used to store unstructured data.

6. The method according to claim 5, characterized in that If the central data lake includes a non-relational database, a relational database, and an object storage module, the central data lake further includes: a graph database. After receiving the industrial equipment data sent by the edge data lake through the industrial firewall, the method further includes: According to the industrial equipment data, the association relationship between the non-relational database, each data table in the relational database and each data object in the object storage module is constructed through the graph database; The step of analyzing the target industrial equipment corresponding to the industrial equipment data according to the industrial equipment data to obtain data analysis results includes: According to the association relationship in the graph database, the target industrial equipment corresponding to the industrial equipment data is analyzed to obtain data analysis results.

7. A data communication method based on a data lake, characterized in that: Applied to an edge data lake, the edge data lake is communicatively connected to a central data lake via an industrial firewall, and the edge data lake is communicatively connected to at least one industrial collection device, the method comprising: Acquiring industrial equipment data through at least one of the industrial collection devices; Sending the industrial equipment data to the central data lake through the industrial firewall, so that the central data lake analyzes the target industrial equipment corresponding to the industrial equipment data according to the industrial equipment data to obtain data analysis results; The industrial firewall is configured to include a preset mapping relationship, and the preset mapping relationship includes: a mapping relationship between an address corresponding to the central data lake, an address corresponding to the edge data lake, a first port, a second port, a third port, and a fourth port; Wherein, the first port is used for the edge data lake to send the industrial equipment data to the central data lake; the second port is used for the central data lake to receive the industrial equipment data sent by the edge data lake; The third port is used for the edge data lake to receive the data transmission instruction sent by the central data lake; the fourth port is used for the central data lake to send the data transmission instruction to the edge data lake.

8. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to perform the steps of the data communication method based on the data lake as described in any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the data communication method based on the data lake are performed as claimed in any one of claims 1 to 7.