Data acquisition method and device, equipment and storage medium
By calling Utgard components and firewall transparent transmission technology through IKVM technology, the problem of security risks in industrial data collection is solved, the security of data collection is guaranteed, and the risks caused by data leakage and obsolete protocols are avoided.
Patent Information
- Application Number
- CN202410968737.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-10-11
AI Technical Summary
There are security risks in data collection in the industrial field. Existing data collection gateways connect OPC DA anonymously and configure DCOM intrusively, resulting in a high risk of data leakage, slow protocol updates, and lack of security considerations.
Utgard components are called through IKVM technology to realize non-anonymous connection to OPC DA, avoid intrusive configuration of DCOM, and configure IPTables firewall and Netfilter firewall to transparently transmit IP addresses to ensure the security of the data collection process.
It achieves the security guarantee of data collection, prevents data leakage, improves the security and stability of the data collection process, and avoids risks caused by old protocols and vulnerabilities.
Smart Images

Figure CN118764387A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of industrial technology, and in particular to a data acquisition method, device, equipment and computer-readable storage medium. Background Art
[0002] There are many protocols in the industrial field, and each manufacturer operates independently, which makes data collection and sharing difficult. In addition, industrial protocol stacks rarely take security issues into consideration. Industrial equipment is updated slowly, and there are many old high-risk protocols and high-risk vulnerabilities. With the acceleration of digitalization in recent years, especially the wider application of data collection, data collection gateways are generally at the edge of the management network and control network. The security of data collection gateways is particularly important. Most of the data collection gateways on the market connect to OPC DA anonymously, configure DCOM intrusively, and need to open Everyone connection permissions and anonymous connection permissions, which poses a great security risk. Summary of the invention
[0003] The purpose of the present invention is to provide a data acquisition method, device, equipment and storage medium, which are applied to the field of industrial technology. The method calls the Utgard component through IKVM technology to realize non-anonymous connection OPC DA, without the need for intrusive configuration of DCOM, without the need to open Everyone connection permissions and anonymous connection permissions, thereby preventing data leakage and ensuring data security.
[0004] In order to solve the above technical problems, the present invention provides a data collection method, comprising:
[0005] Configure the driver of the collected end, and when it is recognized that the driver includes the OPC DA protocol driver, call the Utgard component based on IKVM;
[0006] The driver is loaded in the data acquisition gateway so that the data acquisition gateway is connected to the collected end based on the driver; wherein the data acquisition gateway is connected to the collected end non-anonymously through the Utgard component based on the OPC DA protocol driver;
[0007] Configuring a collection strategy for each of the collected terminals, and collecting the operating data of the collected terminals through the data collection gateway based on the collection strategy;
[0008] The operation data is cleaned and formatted to obtain target data, and the target data is sent to a data consumption end.
[0009] Optionally, the configuration of the driver of the acquisition end includes:
[0010] Configuring the OCR acquisition driver of the acquired end;
[0011] Correspondingly, the collecting the operation data of the collected terminal through the data collection gateway based on the collection strategy includes:
[0012] Taking a screenshot of the display interface of the collected end to obtain a screenshot image;
[0013] Identify the screenshot image to obtain the operation data of the collected end;
[0014] The operation data of the collected end is collected through the data collection gateway based on the collection strategy.
[0015] Optionally, also include:
[0016] Loading the OCR acquisition driver in the data acquisition gateway so that the data acquisition network is connected to the acquisition camera based on the OCR acquisition driver;
[0017] Correspondingly, the collecting the operation data of the collected terminal through the data collection gateway based on the collection strategy includes:
[0018] Acquire a screen shot image of the display interface of the collected terminal based on the collection camera;
[0019] Identify the screen shot image to obtain the operation data of the collected terminal;
[0020] The operation data of the collected end is collected through the data collection gateway based on the collection strategy.
[0021] Optionally, also include:
[0022] Setting an IPTables firewall and / or a Netfilter firewall in the data gateway;
[0023] Based on the IPTables firewall and / or Netfilter firewall, the IP address of the collected end is transparently transmitted to the data consumption end, so that the consumption end connects to the collected end based on the IP address and collects the operating data of the collected end.
[0024] Optionally, also include:
[0025] The operation data of the collected end is obtained based on the Socket byte offset and the number of bytes.
[0026] Optionally, also include:
[0027] When a driver injection instruction is received, a new driver is injected into the data acquisition gateway by means of reflection injection; wherein the new driver includes an uplink protocol driver.
[0028] Optionally, the data acquisition gateway runs in a Docker container and uses Harbor as the image library.
[0029] In order to solve the above technical problems, the present invention provides a data acquisition device, comprising:
[0030] The first module is used to configure the driver of the collected end, and when it is identified that the driver includes the OPC DA protocol driver, the Utgard component is called based on IKVM;
[0031] The second module is used to load the driver in the data acquisition gateway so that the data acquisition gateway is connected to the collected end based on the driver; wherein the data acquisition gateway is connected to the collected end non-anonymously through the Utgard component based on the OPC DA protocol driver;
[0032] The third module is used to configure the collection strategy of each collected terminal, and collect the operation data of the collected terminal through the data collection gateway based on the collection strategy;
[0033] The fourth module is used to perform data cleaning and format conversion on the operating data to obtain target data, and send the target data to the data consumption end.
[0034] In order to solve the above technical problems, the present invention provides a data acquisition device, comprising:
[0035] Memory, for storing computer programs;
[0036] A processor is used to implement the above-mentioned data collection method when executing the computer program.
[0037] In order to solve the above technical problem, the present invention provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, the above-mentioned data collection method is implemented.
[0038] It can be seen that the method of the present invention configures the driver of the collected end, and when it is identified that the driver contains the OPC DA protocol driver, the Utgard component is called based on IKVM; the driver is loaded in the data acquisition gateway so that the data acquisition gateway connects to the collected end based on the driver; wherein the data acquisition gateway is non-anonymously connected to the collected end based on the OPC DA protocol driver and the Utgard component; the collection strategy of each collected end is configured, and the operation data of the collected end is collected through the data acquisition gateway based on the collection strategy; the operation data is cleaned and formatted to obtain the target data, and the target data is sent to the data consumption end. The method of the present invention calls the Utgard component through the IKVM technology to realize non-anonymous connection to OPC DA, without the need to invasively configure DCOM, without opening Everyone's connection permission and anonymous connection permission, preventing data leakage and ensuring data security. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0040] Figure 1 A flow chart of a data collection method provided by an embodiment of the present invention;
[0041] Figure 2 A diagram showing an example of deployment of a data acquisition gateway provided by an embodiment of the present invention;
[0042] Figure 3 This is a structural block diagram of a data acquisition device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0044] There are many protocols in the industrial field, and each manufacturer operates independently, making data collection and sharing difficult. In addition, industrial protocol stacks rarely take security into consideration, industrial equipment is updated slowly, and old high-risk protocols and high-risk vulnerabilities are everywhere. However, in recent years, the digitalization process has accelerated, and IT (Information Technology) and OT (Operational Technology) have been increasingly integrated, especially with the wider use of data collection applications. Collection gateways are at the edge of the management network and control network, and the security of collection gateways is particularly important. However, current collection gateways basically do not consider security issues. Collection gateways cannot rely entirely on external security devices, and endogenous security is also very important.
[0045] In addition, the acquisition gateways on the market generally have problems such as lack of openness and poor scalability, and the supported southbound and northbound protocols are relatively fixed and single, which cannot adapt to the complex environment of multiple brands and multiple protocols in the discrete industry industrial control environment, and are also costly.
[0046] Most gateways on the market connect anonymously to OPC DA (Object Linking and Embedding for Process Control Data Access). OPC DA is a set of communication specifications created by Microsoft for the process control field. The connection process requires intrusive configuration of DCOM (Distributed Component Object Model) and requires opening up connection permissions for Everyone. Opening up anonymous connection permissions will cause great security risks.
[0047] The following combination Figure 1 , Figure 1 A flow chart of a data collection method provided by an embodiment of the present invention, the method may include:
[0048] S101: Configure the driver of the collected end, and when it is identified that the driver includes the OPC DA protocol driver, call the Utgard component based on IKVM.
[0049] The collection gateway in this embodiment can run on the server. In order to achieve decoupling from the running hardware and not rely on a specific hardware architecture, this embodiment can adopt cloud native technology, build a Docker container in the server, and use Harbor as the image library. Docker is an open source application container engine that allows developers to package their applications and dependency packages into a portable image, and then publish it to any machine with a popular operating system. It can also achieve virtualization. Harbor is an open source enterprise container image repository. The data collection gateway can run in a Docker container on the server.
[0050] In this embodiment, in order to improve the compatibility of the communication protocol of the collected end, the data collection gateway in this embodiment can run on the DOTNET (.NET) platform, which is a free open source development platform for building various applications. The DOTNET platform in this embodiment can be deployed in a Docker container or directly on a server.
[0051] In order to achieve connection with the collected end, this embodiment can pre-configure the driver of the collected end supporting the protocol, such as Modbus protocol, OPC protocol, MTConnect protocol, MPI (Multi Point Interface) protocol, S7 protocol, Profibus-DP protocol, Fanuc protocol and Socket protocol. Modbus protocol is a common language applied to electronic controllers. Through this protocol, controllers can communicate with each other or through the network; OPC protocol is a data access protocol based on Microsoft technology, including OPC DA protocol and OPC UA protocol. OPC UA is a communication protocol for the field of industrial automation and is the next generation of OPC protocol; MTConnect is a CNC equipment interconnection communication protocol proposed and led by the American Machinery Manufacturing Technology Association in 2006; S7 protocol is a communication protocol based on the client-server model; Profibus-DP protocol is a real-time data exchange protocol used in industrial automation systems; Socket protocol is a network protocol, which is at the session layer and is used to manage network connections and provide security and privacy protection.
[0052] In this embodiment, if there is a newly collected end and the data collection gateway cannot support the communication protocol of the collected end, the corresponding protocol driver can be added to the data collection gateway through reflection injection, that is, when the driver injection instruction is received, the newly added driver is injected into the data collection gateway through reflection injection; wherein the newly added driver may include an uplink protocol driver, that is, when there is a situation where the data gateway cannot support the communication protocol of the data consumption end, this embodiment can also inject the uplink protocol driver of the corresponding protocol into the data gateway through reflection injection to realize the communication between the data collection gateway and the data consumption end.
[0053] This embodiment does not limit the specific type of the collected end, which can generally be a front-end hardware device or a third-party system. In this embodiment, when the configured collected end driver includes an OPC DA protocol driver, this embodiment can call the Utgard component based on IKVM. IKVM is an open source tool for running a Java virtual machine, which allows Java programming in the DOTNET development platform. The use of the Java virtual machine under the DOTNET platform is realized through IKVM technology, and further the Utgard component of OpenSCADA can be called. OpenSCADA is an open source monitoring and data acquisition system. Utgard is a sub-project of the OpenSCADA system, which is written in the Java programming language. This embodiment can realize non-anonymous connection to the collected end through the Utgard component without the help of DCOM.
[0054] S102: Loading a driver in the data acquisition gateway so that the data acquisition gateway is connected to the collected end based on the driver; wherein the data acquisition gateway is connected to the collected end non-anonymously through the Utgard component based on the OPC DA protocol driver.
[0055] In this embodiment, a pre-configured driver of the collected end can be loaded in the data gateway, so that the data collection gateway can connect to the collected end based on the driver, thereby realizing data communication between the data collection gateway and the collected end, and collecting the running data of the collected end. Among them, the data collection gateway can be based on the OPC DA protocol driver to connect to the collected end that supports the OPC DA protocol through the Utgard component non-anonymously.
[0056] S103: configuring a collection strategy for each collected terminal, and collecting the operating data of the collected terminal through a data collection gateway based on the collection strategy.
[0057] S104: Clean and format the operating data to obtain target data, and send the target data to the data consumer.
[0058] This embodiment can configure the collection strategy of each collected terminal. The collection strategy in this embodiment can include information such as whether to start collection, collection cycle, data upload method and data collection method. The data collection method in this embodiment can generally include active collection and passive collection. Active collection can collect operation data through timed collection, and passive collection can collect operation data through subscription.
[0059] This embodiment can collect the operating data of the collected end through the data collection gateway based on the collection strategy, and perform data cleaning and format conversion on the collected operating data to obtain target data so that the data format conforms to the format of the data consumer end, and send the target data to the data consumer end.
[0060] This embodiment does not limit the communication method between the data acquisition gateway and the data consumer, and generally supports communication protocols such as HTTP (Hypertext Transfer Protocol), MQTT (Message Queuing Telemetry Transport), ODBC (Open Database Connectivity) and JDBC (Java DataBase Connectivity). The protocols supported by the data acquisition gateway in this embodiment can realize the access of data consumers such as ThingWorx, IoTSharp, ThingsCloud, ThingsBoard and Huawei Cloud. ThingWorx, IoTSharp, ThingsCloud, ThingsBoard and Huawei Cloud are open source Internet of Things platforms.
[0061] Specifically, this embodiment can use the OPC open source component UA-.NETStandard to publish the OPC UA Server for data consumers to subscribe and read, or use MQTTNet (an open source DOTNET library) to implement the MQTT Server and MQTT Client, and transmit the data to the data consumer through the message queue, or use ODBC / JDBC / OLEDB (Open Database Connectivity) to transmit data to the relational database of the data consumer, or use HTTP Load (an ultra-lightweight performance testing tool) to transmit data to the analysis system.
[0062] In this embodiment, in order to prevent security risks in the control network caused by security vulnerabilities, this embodiment can collect and forward target data through KepServer instead of forwarding data through the data acquisition gateway. KepServer is an OPC server software that implements the OPC standard interface and allows communication with devices through KepServer.
[0063] In this embodiment, an API interface (Application Programming Interface) can be constructed in the data acquisition gateway to enable a third-party management platform to modify the parameters of the data acquisition gateway through the API interface, such as remotely modifying the parameters through a WEB (network) user interface. In this embodiment, the operation data can also be visualized inside the server to monitor the operation data.
[0064] In this embodiment, since some manufacturers' devices only support the private protocols they developed, communication is not possible through the existing protocols. In this embodiment, communication with the collected end can be established through TCP (Transmission Control Protocol) Socket, and the operation data of the collected end can be obtained through the Socket byte offset and byte number. TCPSocket is a network programming interface based on the TCP protocol, which can realize reliable communication between different hosts.
[0065] In this embodiment, when encountering an HMI (Human Machine Interface) and configuration software that cannot provide acquisition protocols, API / SDK (Software Development Kit), the data acquisition gateway cannot achieve remote monitoring and data acquisition.
[0066] This embodiment can configure an OCR (Optical Character Recognition) acquisition driver, load the OCR acquisition driver in the data acquisition gateway to connect to the collected end, take a screenshot of the display interface of the collected end to obtain a screenshot image; recognize the screenshot image to obtain the operating data of the collected end; and collect the operating data of the collected end through the data acquisition gateway based on the acquisition strategy.
[0067] In this embodiment, when the collected end does not have a screenshot function, this embodiment can also additionally set up a collection camera, load an OCR collection driver in the data collection gateway so that the data collection network can connect to the collection camera based on the OCR collection driver; obtain the screen capture image of the display interface of the collected end based on the collection camera; identify the screen capture image to obtain the operating data of the collected end; and collect the operating data of the collected end through the data collection gateway based on the collection strategy.
[0068] This embodiment does not limit the method of obtaining operation data from screenshots and captured images. Generally, text can be recognized through an artificial intelligence recognition model, and the operation data in the text can be further extracted through regular expressions or position coordinates in the driver's configuration parameters.
[0069] The OCR acquisition driver uses the screenshot device and the screenshot scheduler to capture the specified area of the screen to the specified directory of the HTTP server at the time interval set by the user. It can also build an HTML (HyperText Markup Language) full-screen web page. Users or other devices or systems can monitor the running system or screen in real time by calling this page.
[0070] Furthermore, in this embodiment, in order to minimize the exposure surface, this embodiment can set an IPTables firewall and / or a Netfilter firewall in the data acquisition gateway, and based on the IPTables firewall and / or the Netfilter firewall, the IP address of the collected end is transparently transmitted to the consumer end, so that the consumer end can connect to the collected end based on the IP address and collect the operating data of the collected end.
[0071] Directed reverse proxy transparent transmission can be achieved through IPTables firewall and Netfilter firewall. Directed reverse proxy transparent transmission can minimize the exposure surface and is the lowest cost and best isolation method for industrial control boundaries. As long as the security protection of the allowed directional access host (data consumption end) is sufficient, the safe data collection at the industrial control level (collected end) can be guaranteed. This function can achieve protocol transparent transmission and solve the inherent security of the collection process to achieve safe and efficient data collection. IPTables firewall and Netfilter firewall are firewall tools that can realize network management.
[0072] Specifically, this embodiment can first enable a DNAT (Destination Network Address Translation) rule in a PreRouting list to direct the port of the collector accessing the proxy machine to the industrial computer. If the gateway of the industrial computer is a proxy machine, the configuration is completed. If the gateway of the industrial computer is not a proxy machine, it is necessary to configure a SNAT (Source Network Address Translaiton) rule in a PostRouting list to convert the original address of the collector into the address of the industrial computer's intranet. PreRouting and PostRouting are two data transfer chains located in the NAT (Network Address Translation) table.
[0073] In this embodiment, OpenWrt (an embedded Linux distribution) can be used as the underlying operating system of the data acquisition gateway. The openness of OpenWrt can be used to install more application functions and achieve highly flexible expansion.
[0074] The data acquisition gateway in this embodiment supports multiple access methods, including wired Ethernet, wireless LAN, cellular network + VPN (Virtual Private Network).
[0075] Based on the above embodiments, the method of the present invention calls the Utgard component through the IKVM technology to realize non-anonymous connection OPCDA, without the need for intrusive configuration of DCOM, without the need to open Everyone connection permissions and anonymous connection permissions, thereby preventing data leakage and ensuring data security.
[0076] The following combination Figure 2 , Figure 2 This is a deployment example diagram of a data acquisition gateway provided by an embodiment of the present invention. The data acquisition gateway can run on the DOTNET platform in a Docker container and collect and upload data through a collection scheduling module.
[0077] The industrial protocol driver module in the collection and scheduling module can be connected to various types of collected terminals through drivers, such as Toledo's TCP port, Siemens, Mitsubishi, RockWell, general PLC (Programmable Logic Controller) / host computer, CNC (Compute Numerical Control) CNC machine tools, TCP Socket general device interface and MQTT Server, etc., and connected to the OPC DA Server non-anonymously through the OPC DA driver module. For some old equipment, this embodiment can obtain data by using the OCR collection driver module and capturing the screen with a camera or a screenshot.
[0078] The uplink protocol driver module in the acquisition driver module is mainly used to transmit data to the data consumer, such as connecting to the data consumer through MQTT, HTTP or Database Interface.
[0079] The directional reverse proxy transparent transmission module in the collection driver module can realize the directional reverse proxy transparent transmission function through the IPTables firewall and the Netfilter firewall to transmit the data to the data consumer more securely.
[0080] The WEB (network) user interface module in the acquisition driver module can realize the parameter configuration function, which can specifically include: a login submodule, which is used to process user login and the allocation of user permissions; a data upload protocol configuration submodule, which is used to configure the address and parameters of the upload protocol; a device information configuration submodule, which is used to configure the device group, device name, device driver, whether to start acquisition, acquisition cycle, whether to upload to MQTT / time series database / HTTP destination, whether to store in the database and other information; a communication parameter configuration submodule, which is used to configure the device's connection parameters, protocol parameters, timeout period, etc.; a driver injection configuration submodule, which is used to configure the configuration of the custom driver under the driver directory. When the system starts, the driver is dynamically loaded into the memory through DOTNET reflection.
[0081] The API module in the collection driver module can publish an API interface so that a third-party management platform can modify the parameters of the data collection gateway through the API, such as accessing the API interface through the WEB user interface module to realize the function of remote parameter configuration.
[0082] The following combination Figure 3 , Figure 3 A structural block diagram of a data acquisition device provided by an embodiment of the present invention, the device may include:
[0083] The first module 100 is used to configure the driver of the collected end, and when it is identified that the driver includes the OPC DA protocol driver, the Utgard component is called based on the IKVM;
[0084] The second module 200 is used to load the driver in the data acquisition gateway so that the data acquisition gateway is connected to the collected end based on the driver; wherein the data acquisition gateway is connected to the collected end non-anonymously through the Utgard component based on the OPC DA protocol driver;
[0085] The third module 300 is used to configure the collection strategy of each collected terminal, and collect the operation data of the collected terminal through the data collection gateway based on the collection strategy;
[0086] The fourth module 400 is used to perform data cleaning and format conversion on the operation data to obtain target data, and send the target data to the data consumption end.
[0087] Based on the above embodiments, the method of the present invention calls the Utgard component through the IKVM technology to realize non-anonymous connection OPCDA, without the need for intrusive configuration of DCOM, without the need to open Everyone connection permissions and anonymous connection permissions, thereby preventing data leakage and ensuring data security.
[0088] Based on the above embodiment, the first module 100 may include:
[0089] The first unit is used to configure the OCR acquisition driver of the acquired end;
[0090] Accordingly, the third module 300 may include:
[0091] The second unit is used to take a screenshot of the display interface of the collected end to obtain a screenshot image;
[0092] A third unit is used to identify the screenshot image to obtain the operation data of the collected terminal;
[0093] The fourth unit is used to collect the operating data of the collected terminal through the data collection gateway based on the collection strategy.
[0094] Based on the above embodiments, the device may further include:
[0095] A fifth module is used to load the OCR acquisition driver in the data acquisition gateway so that the data acquisition network is connected to the acquisition camera based on the OCR acquisition driver;
[0096] Accordingly, the third module 300 may include:
[0097] A fifth unit is used to obtain a screen shot image of the display interface of the collected terminal based on the collection camera;
[0098] A sixth unit, configured to identify the screen shot image to obtain the operation data of the collected terminal;
[0099] The seventh unit is used to collect the operating data of the collected terminal through the data collection gateway based on the collection strategy.
[0100] Based on the above embodiments, the device may further include:
[0101] A sixth module is used to set an IPTables firewall and / or a Netfilter firewall in the data gateway;
[0102] The seventh module is used to transparently transmit the IP address of the collected end to the data consumption end based on the IPTables firewall and / or Netfilter firewall, so that the consumption end can connect to the collected end based on the IP address and collect the operating data of the collected end.
[0103] Based on the above embodiments, the device may further include:
[0104] The eighth module is used to obtain the operation data of the collected end based on the Socket byte offset and the number of bytes.
[0105] Based on the above embodiments, the device may further include:
[0106] The ninth module is used to inject a new driver into the data acquisition gateway by means of reflection injection when a driver injection instruction is received; wherein the new driver includes an uplink protocol driver.
[0107] Based on the above embodiments, the data acquisition gateway runs in a Docker container and uses Harbor as the image library.
[0108] Based on the above embodiments, the present invention further provides a data acquisition device, which may include a memory and a processor, wherein a computer program is stored in the memory, and when the processor calls the computer program in the memory, the steps provided in the above embodiments may be implemented. Of course, the device may also include various necessary network interfaces, power supplies, and other components.
[0109] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by an execution terminal or a processor, the method provided in the embodiment of the present invention can be implemented; the storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0110] In this article, relational terms such as first and second, etc. are used only 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 "comprise", "include" 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 statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
Claims
1. A data collection method, characterized in that: include: Configure the driver of the collected end, and when it is recognized that the driver includes the OPC DA protocol driver, call the Utgard component based on IKVM; The driver is loaded in the data acquisition gateway so that the data acquisition gateway is connected to the collected end based on the driver; wherein the data acquisition gateway is connected to the collected end non-anonymously through the Utgard component based on the OPC DA protocol driver; Configuring a collection strategy for each of the collected terminals, and collecting the operating data of the collected terminals through the data collection gateway based on the collection strategy; The operation data is cleaned and formatted to obtain target data, and the target data is sent to a data consumption end.
2. The data collection method according to claim 1, characterized in that: The configuration of the driver of the acquisition end includes: Configuring the OCR acquisition driver of the acquired end; Correspondingly, the collecting the operation data of the collected terminal through the data collection gateway based on the collection strategy includes: Taking a screenshot of the display interface of the collected end to obtain a screenshot image; Identify the screenshot image to obtain the operation data of the collected end; The operation data of the collected end is collected through the data collection gateway based on the collection strategy.
3. The data collection method according to claim 2, characterized in that: Also includes: Loading the OCR acquisition driver in the data acquisition gateway so that the data acquisition network is connected to the acquisition camera based on the OCR acquisition driver; Correspondingly, the collecting the operation data of the collected terminal through the data collection gateway based on the collection strategy includes: Acquire a screen shot image of the display interface of the collected terminal based on the collection camera; Identify the screen shot image to obtain the operation data of the collected terminal; The operation data of the collected end is collected through the data collection gateway based on the collection strategy.
4. The data collection method according to claim 1, characterized in that: Also includes: Setting an IPTables firewall and / or a Netfilter firewall in the data gateway; Based on the IPTables firewall and / or Netfilter firewall, the IP address of the collected end is transparently transmitted to the data consuming end, so that the consuming end connects to the collected end based on the IP address and collects the operating data of the collected end.
5. The data collection method according to claim 1, characterized in that: Also includes: The operation data of the collected end is obtained based on the Socket byte offset and the number of bytes.
6. The data collection method according to claim 1, characterized in that: Also includes: When a driver injection instruction is received, a new driver is injected into the data acquisition gateway by means of reflection injection; wherein the new driver includes an uplink protocol driver.
7. The data collection method according to claim 1, characterized in that: The data acquisition gateway runs in a Docker container and uses Harbor as the image library.
8. A data acquisition device, characterized in that: include: The first module is used to configure the driver of the collected end, and when it is identified that the driver includes the OPC DA protocol driver, the Utgard component is called based on IKVM; The second module is used to load the driver in the data acquisition gateway so that the data acquisition gateway is connected to the collected end based on the driver; wherein the data acquisition gateway is connected to the collected end non-anonymously through the Utgard component based on the OPC DA protocol driver; The third module is used to configure the collection strategy of each collected terminal, and collect the operation data of the collected terminal through the data collection gateway based on the collection strategy; The fourth module is used to perform data cleaning and format conversion on the operating data to obtain target data, and send the target data to the data consumption end.
9. A data acquisition device, characterized in that: include: Memory, for storing computer programs; A processor, configured to implement the data collection method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the data collection method according to any one of claims 1 to 7 is implemented.
