Data acquisition method and electronic equipment

By generating acquisition instructions containing data source identification information and acquisition strategies, data acquisition from multiple data sources is automatically solved, and the problem of low data acquisition accuracy, timeliness and efficiency in the production process is solved, reducing acquisition costs.

CN118897487AInactive Publication Date: 2024-11-05SUPCON TECH CO LTD
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202410942830.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-11-05
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The prior art data acquisition is accurate, time-consuming and efficient in the production process, and is costly. It is mainly because the data comes from multiple different databases and systems and requires manual collection, resulting in increased errors and costs.

Method used

Provides a data acquisition method, which automatically collects data from multiple data sources by generating acquisition instructions containing data source identification information and acquisition strategies, including configuring interface to generate acquisition instructions, establishing data source connections, and performing data processing and monitoring.

Benefits of technology

The automation of data acquisition is realized, accuracy, timeliness and efficiency is improved, acquisition costs are reduced, and manual errors are avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118897487A_ABST
    Figure CN118897487A_ABST
Patent Text Reader

Abstract

The invention provides a data acquisition method and electronic equipment, and relates to the technical field of data processing.The data acquisition method comprises the steps that a first acquisition instruction is obtained; wherein the first acquisition instruction comprises identification information of each first data source in the at least one first data source and at least one acquisition strategy; the at least one first data source is in one-to-one correspondence with the at least one acquisition strategy, and the at least one first data source is at least one of the plurality of data sources; and in response to the first acquisition instruction, acquiring data from the at least one first data source according to the identification information of each of the at least one first data source and the at least one acquisition strategy to obtain first data. According to the invention, the accuracy, timeliness and efficiency of data acquisition can be improved, and the cost of data acquisition is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a data acquisition method and electronic equipment. Background Art

[0002] Currently, during the production process, relevant data in the production process can be analyzed and the production process can be adjusted according to the analysis results to improve production efficiency and ensure that product quality meets standard requirements.

[0003] However, since the relevant data in the production process comes from different databases, systems and production equipment, that is, the relevant data in the production process comes from multiple data sources, the relevant data in the production process is usually collected manually, which reduces the accuracy, timeliness and efficiency of data collection and increases the cost of data collection. Summary of the invention

[0004] The present invention provides a data collection method and electronic equipment, which can improve the accuracy, timeliness and efficiency of data collection and reduce the cost of data collection.

[0005] In a first aspect, the present application provides a data collection method, comprising: obtaining a first collection instruction; wherein the first collection instruction includes identification information of each first data source in at least one first data source and at least one collection strategy; the at least one first data source corresponds to the at least one collection strategy one-to-one, and the at least one first data source is at least one of a plurality of data sources; in response to the first collection instruction, data is collected from the at least one first data source according to the identification information of each first data source in the at least one first data source and at least one collection strategy to obtain first data.

[0006] Optionally, before obtaining the first acquisition instruction, the method also includes: providing an instruction configuration interface to the user; in response to a collection request acting on the instruction configuration interface, obtaining from the instruction configuration interface the name of each first data source in the at least one first data source filled in by the user and the at least one collection strategy; obtaining identification information of each first data source according to the name of each first data source, and generating the first acquisition instruction according to the identification information of each first data source in the at least one first data source and the at least one collection strategy.

[0007] Optionally, the first acquisition instruction also includes a control strategy; the control strategy includes a first processing operation and a monitoring strategy; the first processing operation is one of multiple processing operations; after obtaining the first data, it also includes: performing the first processing operation on the first data to obtain second data; monitoring the second data according to the monitoring strategy, and triggering a corresponding processing flow according to the monitoring results.

[0008] Optionally, before obtaining the first acquisition instruction, the method also includes: providing an instruction configuration interface to the user; in response to the acquisition request acting on the instruction configuration interface, obtaining from the instruction configuration interface the name of each first data source in the at least one first data source filled in by the user, the at least one acquisition strategy and the control strategy; obtaining identification information of each first data source according to the name of each first data source, and generating the first acquisition instruction according to the identification information of each first data source in the at least one first data source, the at least one acquisition strategy and the control strategy.

[0009] Optionally, before obtaining the first acquisition instruction, the method also includes: establishing a test connection for each data source according to the access configuration information of each data source among the multiple data sources; detecting the test connection for each data source, and, if the test connection for each data source passes the detection, saving the access configuration information for each data source.

[0010] Optionally, the type of the data source includes relational, sequential and interface types; establishing a test connection for each data source according to the access configuration information of each of the multiple data sources includes: determining the type of each data source according to the access configuration information of each of the multiple data sources; when the type of the data source is the relational or sequential type, judging whether the system supports the type of the data source; when the system supports the type of the data source, establishing a test connection for the data source according to the access configuration information of the data source; when the system does not support the type of the data source, uploading a software package file format of the data source, and establishing a test connection for the data source based on the software package file format of the data source and the access configuration information; when the type of the data source is the interface type, establishing a test connection for the data source according to the access configuration information of the data source.

[0011] Optionally, the multiple data sources include a data source corresponding to a collection device; the method further includes: receiving data collected by the collection device, and saving the data collected by the collection device in the data source corresponding to the collection device.

[0012] Optionally, collecting data from the at least one first data source to obtain first data based on the identification information of each first data source and at least one collection strategy includes: obtaining access configuration information of each first data source based on the identification information of each first data source; establishing an access connection for each first data source based on the access configuration information of each first data source; and collecting data from each first data source based on the access connection of each first data source and according to the access strategy corresponding to each first data source to obtain the first data.

[0013] In a second aspect, the present application provides an electronic device, comprising a memory and a processor; the memory is used to store a computer program; the processor is used to implement the data collection method described in any one of the first aspects when executing the computer program.

[0014] In a third aspect, the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the data collection method as described in any one of the first aspects is implemented.

[0015] The beneficial effects of the data acquisition method of the present invention are:

[0016] Since the first collection instruction may include identification information of each first data source in at least one first data source and at least one collection strategy, and at least one first data source corresponds one-to-one to at least one collection strategy, and at least one first data source is at least one of multiple data sources, therefore, after obtaining the first collection instruction, data can be collected from at least one first data source in response to the first collection instruction according to identification information of each first data source in at least one first data source and at least one collection strategy, which not only realizes the automatic collection of data in at least one of the multiple data sources, but also improves the accuracy, timeliness and efficiency of data collection, avoids errors caused by manual collection, and reduces the cost of data collection. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A schematic diagram of an application scenario of the data collection method provided in an embodiment of the present application;

[0018] Figure 2 A flow chart of a data collection method provided in an embodiment of the present application;

[0019] Figure 3 A schematic diagram of a process for establishing a test connection for each data source provided in an embodiment of the present application;

[0020] Figure 4A schematic diagram of a process for establishing an access connection to a first data source provided in an embodiment of the present application;

[0021] Figure 5 A schematic diagram of the data collection process provided by the embodiment of the present application;

[0022] Figure 6 A schematic diagram of the structure of a data acquisition device provided in an embodiment of the present application;

[0023] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. Although certain embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be interpreted as being limited to the embodiments described herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments of the present invention are only for exemplary purposes and are not intended to limit the scope of protection of the present invention.

[0025] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.

[0026] The term "including" and its variations used in this article are open inclusions, that is, "including but not limited to"; the term "based on" means "based at least in part on"; the term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments"; the term "optionally" means "optional embodiments". The relevant definitions of other terms will be given in the following description. It should be noted that the concepts of "first", "second", etc. mentioned in the present invention are only used to distinguish different devices, modules or units, etc., and are not used to limit the order or interdependence of the functions performed by these devices, modules or units, etc.

[0027] It should be noted that the modifications of "one" and "plurality" mentioned in the present invention are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0028] The names of the messages or information exchanged between multiple devices in the embodiments of the present invention are only used for illustrative purposes, and are not used to limit the scope of these messages or information.

[0029] In order to solve the above problems, an embodiment of the present application provides a data collection method, which can collect data from at least one of multiple data sources, realize the automatic collection of data from at least one of multiple data sources, improve the accuracy, timeliness and efficiency of data collection, and reduce the cost of data collection.

[0030] The data collection method can be executed by an electronic device, including but not limited to a laptop computer, a desktop computer, a server, an electronic reader, etc.

[0031] The types of data sources may include relational, time series, and interface types, wherein a relational data source may be a relational database, a time series data source may be a time series database, and an interface data source may be a third-party system.

[0032] In some embodiments, the data source may also be a data source corresponding to a collection device. The collection device may collect data of the production device during the production process, and send the collected data to the data source corresponding to the collection device, and the data source corresponding to the collection device receives the data collected by the collection device, and stores the data collected by the collection device in the data source corresponding to the collection device to provide a data basis for later data collection.

[0033] The types of different data sources in the multiple data sources may be the same or different, and the embodiments of the present application do not impose any special limitation on this.

[0034] The data collection method provided in the embodiment of the present application can realize the collection of data required for statistical process control (SPC) analysis, and can also realize the collection of data required for measurement system analysis (MSA), and the embodiment of the present application does not make any special limitations on this.

[0035] Next, we will take the data collection required for SPC analysis as an example. Figure 1 , an example is given of the application scenario of the data collection method provided in the embodiment of the present application.

[0036] Since the data in the production process comes from different databases, systems, and production equipment, that is, the data in the production process will be stored in different databases, systems, or reported by production equipment, the sources of data required for SPC analysis are diverse. Figure 1 As shown, the application scenario of the data collection method may include four data sources, namely, a relational database 121, a time series database 122, a third-party system 123, and a data source corresponding to a collection device 130. It should be noted that the data source corresponding to the collection device 130 is arranged in the electronic device 110. Figure 1The data source corresponding to the acquisition device 130 is not shown.

[0037] It should be noted that in Figure 1 In the process, the collection device 130 can collect data of the production equipment in the production process (it can be understood that the collection of the collection device 130 here can be active collection by the collection device 130, or passive collection by the collection device 130, that is, the production equipment actively reports to the collection device 130), and send the collected data to the electronic device 110, and the electronic device 110 saves the data collected by the collection device 130 in the data source corresponding to the collection device 130.

[0038] The relational database 121, the time series database 122, and the third-party system 123 are respectively used to store corresponding types of data in the production process.

[0039] The electronic device 110 can be used to execute the data collection method provided in the embodiment of the present application to collect data from at least one of the data sources corresponding to the relational database 121, the time series database 122, the third-party system 123 and the collection device 130 to obtain first data. The first data here can be data required for SPC analysis.

[0040] The following is an exemplary description of the data collection method provided in the embodiments of the present application. Figure 2 A flow chart of a data collection method provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the data collection method may include the following steps:

[0041] 201. Obtain a first acquisition instruction.

[0042] The first collection instruction may include identification information of each first data source in the at least one first data source and at least one collection strategy. The identification information of the first data source may be information such as an ID of the first data source used to uniquely identify the first data source.

[0043] The at least one first data source is at least one of the plurality of data sources. The at least one first data source corresponds to the at least one acquisition strategy. Each acquisition strategy in the at least one acquisition strategy can be used to indicate at least one of the parameters collected from the corresponding first data source, the target time of the parameters, the acquisition frequency of the parameters, etc.

[0044] It should be noted that the target time of the parameter is used to indicate the data of the parameter to be collected at the target time, and the collection frequency of the parameter is used to indicate the collection of the parameter from the data source based on the sampling frequency. For example, the data of a parameter is stored at intervals of one second. If the collection frequency of the parameter is collected once every 2 seconds, when collecting the data of the parameter from the data source, the parameter is collected at intervals of 2 seconds from the data of the parameter stored at intervals of one second.

[0045] Exemplarily, if the first data source is the relational database 121 , the collection strategy corresponding to the first data source may include parameters that need to be collected.

[0046] If the first data source is the time series database 122, the collection strategy corresponding to the first data source may include the parameters to be collected and the target time of the parameters. On this basis, the collection strategy corresponding to the first data source may also include the collection frequency of the parameters.

[0047] If the first data source is a data source corresponding to the third-party system 123 or the collection device 130 , the collection strategy corresponding to the first data source may include at least one of the parameters to be collected, the target time of the parameters, the collection frequency of the parameters, etc.

[0048] 202. In response to the first collection instruction, data is collected from at least one first data source according to identification information of each first data source in at least one first data source and at least one collection strategy to obtain first data.

[0049] Specifically, at least one first data source is determined according to identification information of each first data source in at least one first data source, and then data is collected from the corresponding first data source according to each collection strategy in at least one collection strategy to obtain first data.

[0050] Obviously, since the first acquisition instruction may include identification information of each first data source in at least one first data source and at least one acquisition strategy, and at least one first data source corresponds one-to-one to at least one acquisition strategy, and at least one first data source is at least one of multiple data sources, therefore, after obtaining the first acquisition instruction, data can be collected from at least one first data source according to identification information of each first data source in at least one first data source and at least one acquisition strategy in response to the first acquisition instruction, which not only realizes the automatic collection of data in at least one of the multiple data sources, but also improves the accuracy, timeliness and efficiency of data collection, avoids errors caused by manual collection, and reduces the cost of data collection.

[0051] In some embodiments, before obtaining the first acquisition instruction, a configuration process of the first acquisition instruction may also be included. The configuration process of the first acquisition instruction may be as follows:

[0052] First, a command configuration interface is provided to the user.

[0053] The command configuration interface may display the name of the data source that can be selected by the user, the parameters that can be collected in each data source, and the collection conditions of each parameter (such as the target time of the parameter, the collection frequency of the parameter, etc.), so that the user can fill in the name of the first data source and the collection strategy corresponding to the first data source in the command configuration interface. After the user fills in the name of at least one first data source and at least one collection strategy, the collection request can be sent to the electronic device by triggering the collection control displayed in the command configuration interface.

[0054] Then, in response to the collection request acting on the instruction configuration interface, the name of each first data source in the at least one first data source filled in by the user and at least one collection strategy are obtained from the instruction configuration interface.

[0055] Finally, identification information of each first data source is obtained according to the name of each first data source, and a first acquisition instruction is generated according to the identification information of each first data source in at least one first data source and at least one acquisition strategy.

[0056] Obviously, by providing the user with an instruction configuration interface, it is convenient for the user to fill in the name of each first data source in at least one first data source and at least one collection strategy according to the needs. By responding to the collection request acting on the instruction configuration interface, the name of each first data source in at least one first data source filled in by the user and at least one collection strategy are obtained from the instruction configuration interface, so as to obtain the identification information of each first data source according to the name of each first data source, and generate a first collection instruction according to the identification information of each first data source in at least one first data source and at least one collection strategy, and convert the user's data collection requirements into a first collection instruction that can be recognized by the electronic device, so that the electronic device can automatically collect data based on the first collection instruction. In addition, since the instruction configuration interface can be provided to the user, the user can fill in the name of each first data source in at least one first data source and at least one collection strategy according to the needs, which improves the diversity and flexibility of data collection, enriches the diversity of the first collection instructions, and can also improve the applicability of the data collection method in a complex business environment.

[0057] In some embodiments, the first acquisition instruction may further include a control strategy.

[0058] The control strategy may include a first processing operation and a monitoring strategy, wherein the first processing operation is one of a plurality of processing operations, and the plurality of processing operations may include SPC analysis and MSA analysis, etc.

[0059] Based on this, after obtaining the first data, the following steps may also be included:

[0060] First, a first processing operation is performed on the first data to obtain second data. Then, the second data is monitored according to a monitoring strategy, and a corresponding processing flow is triggered according to the monitoring result.

[0061] Specifically, the monitoring strategy may include a normal range of the second data, an abnormal monitoring rule for the second data, and an abnormal processing flow for the second data.

[0062] Among them, the normal range of the second data can be used to determine whether the second data exceeds the normal range, the abnormal monitoring rules of the second data can be used to indicate that when the number of times the second data exceeds the normal range exceeds a preset number, the second data is determined to be abnormal, and the abnormal handling process of the second data can indicate the alarm method and abnormal handling personnel after the second data is abnormal.

[0063] Obviously, whether the second data is abnormal can be monitored through the normal range of the second data in the monitoring strategy and the abnormal monitoring rules of the second data, and when the second data is abnormal, the abnormality can be handled according to the abnormality handling process in the monitoring strategy.

[0064] It should be noted that, in other feasible embodiments, the control strategy may further include calculation accuracy (for example, the number of decimal places retained), and the calculation accuracy is used to indicate the calculation accuracy of the first operation.

[0065] Obviously, since the first acquisition instruction may also include a control strategy, and the control strategy may include a first processing operation and a monitoring strategy, the first processing operation is one of multiple processing operations. Therefore, after obtaining the first data, the first processing operation may be performed on the first data to obtain the second data, thereby realizing the automatic analysis of the first data and improving the analysis efficiency of the first data. Furthermore, the second data is monitored according to the monitoring strategy, realizing the automatic monitoring of the second data, triggering the corresponding processing flow according to the monitoring result, realizing the automatic monitoring and processing of the second data.

[0066] Based on this, the configuration process of the first acquisition instruction may include the following steps:

[0067] First, a command configuration interface is provided to the user.

[0068] The command configuration interface may display the name of the data source that can be selected by the user, the parameters that can be collected in each data source and the collection conditions of each parameter (such as the target time of the parameter, the collection frequency of the parameter, etc.), and the filling interface of the processing operation and monitoring strategy that can be selected by the user, so that the user can fill in the name of the first data source, the collection strategy corresponding to the first data source, the first processing operation and the monitoring strategy. After the user fills in the name of at least one first data source, at least one collection strategy, the first processing operation and the monitoring strategy, the collection request can be sent to the electronic device by triggering the collection control displayed in the command configuration interface.

[0069] Then, in response to the collection request acting on the instruction configuration interface, the name of each first data source in the at least one first data source filled in by the user, at least one collection strategy and a control strategy are obtained from the instruction configuration interface.

[0070] Finally, identification information of each first data source is obtained according to the name of each first data source, and a first acquisition instruction is generated according to the identification information of each first data source in at least one first data source, at least one acquisition strategy and a control strategy.

[0071] Obviously, the configuration process of the first acquisition instruction can not only achieve the effects that can be achieved in the configuration process of the first sampling instruction described above, but also because the instruction configuration interface can be provided to the user, the user can fill in the first processing operation and monitoring strategy according to the needs. In this way, when the first acquisition instruction is generated, the first processing operation and monitoring strategy can be carried in the first acquisition instruction, so that after the first data is obtained, the first data can be further processed according to the first processing operation and monitoring strategy. In addition, because the instruction configuration interface can be provided to the user, the user can fill in the first processing operation and monitoring strategy according to the needs, which improves the diversity and flexibility of data processing and monitoring.

[0072] In some embodiments, before obtaining the first acquisition instruction, a configuration process of multiple data sources may also be included. The configuration process of multiple data sources may be as follows:

[0073] First, a test connection for each data source is established according to access configuration information of each data source among the multiple data sources.

[0074] The access configuration information of the data source may include at least a part of the code, name, IP (ie, identification information), port, type, mode, user name, and password of the data source.

[0075] Exemplarily, when the data source is a relational database or a time series database, the access configuration information of the data source may include the data source's code, name, IP (ie, identification information), port, type, mode, user name and password, etc.

[0076] When the data source is a third-party system, the access configuration information of the data source may include the code, name, IP (ie, identification information), port, type, user name and password of the data source.

[0077] Exemplarily, the process of establishing a test connection for each data source may be as follows: Figure 3 As shown, Figure 3 As shown, the process of establishing a test connection for each data source may include:

[0078] 301. Determine the type of each data source according to the access configuration information of each data source among the multiple data sources. Since the access configuration information of the data source carries the type of the data source, the type of the data source can be determined according to the access configuration information of the data source.

[0079] 302. When the data source type is relational or time series, determine whether the system supports the type of data source.

[0080] Exemplarily, the types of data sources supported by the system may include:

[0081] Oracle / SQL Server / MySQL / PostgreSQL / Mariadb / Dameng, etc.

[0082] 303. In case the system supports the type of data source, a test connection of the data source is established according to the access configuration information of the data source.

[0083] Exemplarily, you can first configure the encoding and name of the data source, then configure the IP, port and type of each data source, then configure the data source mode, user name and password, and finally, establish a test connection for the data source based on the above configured information.

[0084] 304. In the case that the system does not support the type of data source, upload the software package file format (jar package) of the data source, and establish a test connection of the data source based on the software package file format and access configuration information of the data source.

[0085] Exemplarily, you can first configure the encoding and name of the data source, then configure the IP, port and type of each data source, then upload the jar package of the data source and configure the connection url template, then configure the data source mode, user name and password, and finally, based on the above configured information and the jar package of the data source, establish a test connection for the data source.

[0086] 305. When the data source is of interface type, a test connection of the data source is established according to the access configuration information of the data source.

[0087] Exemplarily, you can first configure the code and name of the data source, then configure the IP, port and type of each data source, then configure the user name and password of the data source, and finally, establish a test connection for the data source based on the above configured information.

[0088] Then, the test connection of each data source is detected, and when the test connection detection of each data source passes, the access configuration information of each data source is saved.

[0089] Exemplarily, based on the test connection of each data source, each data source can be accessed separately by using the user name and password configured for each data source. After successful access, it is determined that the test connection of the data source has passed the detection. After failed access, the data source needs to be reconfigured.

[0090] Obviously, according to the access configuration information of each data source among the multiple data sources, a test connection for each data source is established, and the test connection of each data source is detected. In addition, when the test connection detection of each data source passes, the access configuration information of each data source is saved, thereby realizing the configuration of each data source and ensuring that when collecting data from the data source, the data source can be accessed through the saved access configuration information of the data source, thereby ensuring the reliability of data collection.

[0091] In some embodiments, when the multiple data sources include a data source corresponding to a collection device, the data collection method may further include: receiving data collected by the collection device, and storing the data collected by the collection device in the data source corresponding to the collection device.

[0092] It should be noted that some production equipment on the production line cannot save the data in the production process in relational databases, time series databases and other databases due to problems such as outdated equipment systems. Therefore, a collection device can be set up to collect data from the production equipment in the production process, and the collected data can be actively reported to the electronic device, so that the electronic device can save the data collected by the collection device in the data source corresponding to the collection device, so as to ensure the richness of data collection.

[0093] In some embodiments, the process of collecting data from at least one first data source may be as follows:

[0094] First, access configuration information of each first data source is obtained according to identification information of each first data source.

[0095] The access configuration information has been explained above and will not be repeated here.

[0096] Then, an access connection for each first data source is established according to the access configuration information of each first data source.

[0097] For example, Figure 4 As shown, the process of establishing an access connection to a first data source may include the following steps:

[0098] 401. Determine the type of the first data source according to the access configuration information of the first data source.

[0099] 402. When the type of the first data source is relational or time series, configure the code, name, IP, port and type of the first data source.

[0100] 403. Determine whether the system supports the type of the first data source.

[0101] 404. If yes, configure the mode, username and password of the first data source.

[0102] 405. Based on the above configured information, establish an access connection to the first data source.

[0103] 406. If not, upload the jar package of the first data source and configure the connection url template.

[0104] 407. Configure the mode, user name and password of the first data source;

[0105] 408. Based on the above configuration information and the jar package of the first data source, establish an access connection to the first data source.

[0106] 409. When the type of the first data source is interface type, configure the code, name, IP, port and type of the first data source.

[0107] 410. Configure the username and password of the first data source.

[0108] 411. Establish an access connection to the first data source based on the above configured information.

[0109] It should be noted that the process of establishing the access connection of each first data source is similar, so the process of establishing the access connection of other first data sources can be found above and will not be repeated here.

[0110] Finally, based on the access connection of each first data source and according to the access policy corresponding to each first data source, data is collected from each first data source to obtain first data.

[0111] Combine the following Figure 1 , the data collection process is illustrated as follows: Figure 5 As shown, the data collection process may include:

[0112] 501. The electronic device 110 establishes a test connection to the relational database 121 according to the access configuration information of the relational database 121.

[0113] 502 . The electronic device 110 detects a test connection of the relational database 121 .

[0114] 503. When determining that the test connection detection of the relational database 121 passes, the electronic device 110 saves the access configuration information of the relational database 121.

[0115] 504. The electronic device 110 establishes a test connection to the time series database 122 according to the access configuration information of the time series database 122.

[0116] 505. The electronic device 110 detects the test connection of the timing database 122.

[0117] 506. When the electronic device 110 determines that the test connection detection of the time series database 122 passes, it saves the access configuration information of the time series database 122.

[0118] 507 . The electronic device 110 establishes a test connection to the third-party system 123 according to the access configuration information of the third-party system 123 .

[0119] 508 . The electronic device 110 detects the test connection of the third-party system 123 .

[0120] 509 . When determining that the test connection detection of the third-party system 123 passes, the electronic device 110 saves the access configuration information of the third-party system 123 .

[0121] 510. The collection device 130 reports the data collected by the collection device 130 to the electronic device 110.

[0122] 511. The electronic device 110 saves the data collected by the collection device 130 in the data source corresponding to the collection device 130.

[0123] 512. The electronic device 110 provides a command configuration interface to the user.

[0124] 513. The user fills in the name of each first data source in the at least one first data source, at least one acquisition strategy and a control strategy in the instruction configuration interface.

[0125] The at least one first data source is at least one of the data sources corresponding to the relational database 121 , the time series database 122 , the third-party system 123 , and the acquisition device 130 .

[0126] 514. The user sends a collection request to the electronic device 110 by triggering the collection control in the instruction configuration interface.

[0127] 515. In response to the collection request, the electronic device 110 obtains the name of each first data source in the at least one first data source in the instruction configuration interface, at least one collection strategy and a control strategy.

[0128] 516. The electronic device 110 obtains identification information of each first data source according to the name of each first data source in at least one first data source.

[0129] 517. The electronic device 110 generates a first acquisition instruction according to the identification information of each first data source in at least one first data source, at least one acquisition strategy and a control strategy.

[0130] 518. In response to the first collection instruction, the electronic device 110 collects data from at least one of the data sources corresponding to the relational database 121, the time series database 122, the third-party system 123 and the collection device 130 to obtain first data.

[0131] It should be noted that the specific data source from which the data is collected is determined according to the identification information of the first data source carried in the first collection instruction.

[0132] Figure 6 A schematic diagram of the structure of the data acquisition device provided in the embodiment of the present application is shown in FIG. Figure 6 As shown, the data acquisition device 600 may include: an acquisition module 601 and a collection module 602. Among them:

[0133] The acquisition module 601 is used to obtain a first acquisition instruction; wherein the first acquisition instruction includes identification information of each first data source in at least one first data source and at least one acquisition strategy; the at least one first data source corresponds to the at least one acquisition strategy one-to-one, and the at least one first data source is at least one of a plurality of data sources; the acquisition module 602 is used to respond to the first acquisition instruction, and according to the identification information of each first data source in the at least one first data source and at least one acquisition strategy, collect data from the at least one first data source to obtain first data.

[0134] Optionally, the acquisition module 601 can also be used to provide an instruction configuration interface to the user before obtaining the first acquisition instruction; in response to the acquisition request acting on the instruction configuration interface, obtain the name of each first data source in the at least one first data source filled in by the user and the at least one acquisition strategy from the instruction configuration interface; obtain the identification information of each first data source according to the name of each first data source, and generate the first acquisition instruction according to the identification information of each first data source in the at least one first data source and the at least one acquisition strategy.

[0135] Optionally, the first acquisition instruction also includes a control strategy; the control strategy includes a first processing operation and a monitoring strategy; the first processing operation is one of multiple processing operations; the acquisition module 602 is also used to perform the first processing operation on the first data after obtaining the first data to obtain second data; monitor the second data according to the monitoring strategy, and trigger the corresponding processing flow according to the monitoring results.

[0136] Optionally, the acquisition module 601 can also be used to provide an instruction configuration interface to the user before obtaining the first acquisition instruction; in response to the acquisition request acting on the instruction configuration interface, obtain from the instruction configuration interface the name of each first data source in the at least one first data source filled in by the user, the at least one acquisition strategy and the control strategy; obtain the identification information of each first data source according to the name of each first data source, and generate the first acquisition instruction according to the identification information of each first data source in the at least one first data source, the at least one acquisition strategy and the control strategy.

[0137] Optionally, the acquisition module 601 can also be used to establish a test connection for each data source according to the access configuration information of each data source among the multiple data sources before obtaining the first acquisition instruction; detect the test connection of each data source, and, if the test connection detection of each data source passes, save the access configuration information of each data source.

[0138] Optionally, the types of the data source include relational, time series and interface types;

[0139] The obtaining module 601 is specifically used to determine the type of each data source according to the access configuration information of each data source in the multiple data sources; when the type of the data source is the relational type or the time series type, determine whether the system supports the type of the data source; when the system supports the type of the data source, establish a test connection for the data source according to the access configuration information of the data source; when the system does not support the type of the data source, upload the software package file format of the data source, and establish a test connection for the data source based on the software package file format of the data source and the access configuration information; when the type of the data source is the interface type, establish a test connection for the data source according to the access configuration information of the data source.

[0140] Optionally, the multiple data sources include a data source corresponding to a collection device; the acquisition module 601 is further used to receive data collected by the collection device, and to save the data collected by the collection device in the data source corresponding to the collection device.

[0141] Optionally, the collection module 602 is specifically used to obtain access configuration information of each first data source based on the identification information of each first data source; establish an access connection for each first data source based on the access configuration information of each first data source; and based on the access connection of each first data source and according to the access policy corresponding to each first data source, collect data from each first data source to obtain the first data.

[0142] It should be noted that the data acquisition device can achieve similar effects as the data acquisition method, which will not be described in detail here.

[0143] like Figure 7 As shown, an electronic device 700 provided by an embodiment of the present invention includes a memory 710 and a processor 720; the memory 710 is used to store a computer program; the processor 720 is used to implement the data acquisition method as described above when executing the computer program.

[0144] In other words, an electronic device 700 includes a memory 710 and a processor 720 coupled to the memory 710; the memory 710 is configured to store a computer program; and the processor 720 is configured to perform the following operations when executing the computer program:

[0145] A first acquisition instruction is obtained; wherein the first acquisition instruction includes identification information of each first data source in at least one first data source and at least one acquisition strategy; the at least one first data source corresponds to the at least one acquisition strategy, and the at least one first data source is at least one of a plurality of data sources. In response to the first acquisition instruction, data is collected from the at least one first data source according to the identification information of each first data source in the at least one first data source and the at least one acquisition strategy to obtain first data.

[0146] It should be noted that the electronic device can achieve similar effects as the data collection method, which will not be described in detail here.

[0147] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the data collection method as described above is implemented.

[0148] In other words, a non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor performs the following operations:

[0149] A first acquisition instruction is obtained; wherein the first acquisition instruction includes identification information of each first data source in at least one first data source and at least one acquisition strategy; the at least one first data source corresponds to the at least one acquisition strategy, and the at least one first data source is at least one of a plurality of data sources. In response to the first acquisition instruction, data is collected from the at least one first data source according to the identification information of each first data source in the at least one first data source and the at least one acquisition strategy to obtain first data.

[0150] It should be noted that the computer-readable storage medium can achieve similar effects as the data collection method, which will not be described in detail here.

[0151] An electronic device 700 that can be used as a server or client of the present invention will now be described, which is an example of a hardware device that can be applied to various aspects of the present invention. The electronic device 700 is intended to represent various forms of digital electronic computer equipment, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device 700 can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples, and are not intended to limit the implementation of the present invention described herein and / or required.

[0152] The electronic device 700 includes a computing unit, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) or a computer program loaded from a storage unit into a random access memory (RAM). In the RAM, various programs and data required for the operation of the device can also be stored. The computing unit, ROM, and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.

[0153] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc. In the present application, the unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or it may be arranged on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment of the present invention. In addition, each functional unit in each embodiment of the present invention can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit.

[0154] Although the present invention is disclosed as above, the protection scope of the present invention is not limited thereto. Those skilled in the art may make various changes and modifications without departing from the spirit and scope of the present invention, and these changes and modifications will fall within the protection scope of the present invention.

Claims

1. A data collection method, characterized in that: include: Obtaining a first acquisition instruction; Wherein, the first collection instruction includes identification information of each first data source in at least one first data source and at least one collection strategy; The at least one first data source corresponds to the at least one acquisition strategy in a one-to-one manner, and the at least one first data source is at least one of a plurality of data sources; In response to the first collection instruction, data is collected from the at least one first data source according to identification information of each first data source in the at least one first data source and at least one collection strategy to obtain first data.

2. The method according to claim 1, characterized in that Before obtaining the first acquisition instruction, the method further includes: Providing a command configuration interface to the user; In response to a collection request acting on the instruction configuration interface, obtaining from the instruction configuration interface a name of each first data source in the at least one first data source filled in by the user and the at least one collection strategy; The identification information of each first data source is obtained according to the name of each first data source, and the first acquisition instruction is generated according to the identification information of each first data source in the at least one first data source and the at least one acquisition strategy.

3. The method according to claim 1, characterized in that The first acquisition instruction further includes a control strategy; the control strategy includes a first processing operation and a monitoring strategy; the first processing operation is one of a plurality of processing operations; After obtaining the first data, the method further includes: performing the first processing operation on the first data to obtain second data; The second data is monitored according to the monitoring strategy, and a corresponding processing flow is triggered according to the monitoring result.

4. The method according to claim 3, characterized in that Before obtaining the first acquisition instruction, the method further includes: Providing a command configuration interface to the user; In response to a collection request acting on the instruction configuration interface, obtaining from the instruction configuration interface a name of each first data source in the at least one first data source filled in by the user, the at least one collection strategy, and the control strategy; The identification information of each first data source is obtained according to the name of each first data source, and the first acquisition instruction is generated according to the identification information of each first data source in the at least one first data source, the at least one acquisition strategy and the control strategy.

5. The method according to claim 1, characterized in that Before obtaining the first acquisition instruction, the method further includes: Establishing a test connection for each data source according to the access configuration information of each data source among the multiple data sources; A test connection of each data source is detected, and when the test connection of each data source is detected to be passed, access configuration information of each data source is saved.

6. The method according to claim 5, characterized in that The types of data sources include relational, time series and interface types; The step of establishing a test connection for each data source according to the access configuration information of each data source among the plurality of data sources comprises: Determining the type of each data source according to the access configuration information of each data source among the multiple data sources; When the type of the data source is the relational type or the time series type, determining whether the system supports the type of the data source; If the system supports the type of the data source, establishing a test connection for the data source according to the access configuration information of the data source; In the case that the system does not support the type of the data source, uploading the software package file format of the data source, and establishing a test connection for the data source based on the software package file format of the data source and the access configuration information; When the type of the data source is the interface type, a test connection of the data source is established according to the access configuration information of the data source.

7. The method according to claim 1, characterized in that The multiple data sources include a data source corresponding to a collection device; the method further includes: Receive data collected by the collection device, and save the data collected by the collection device in a data source corresponding to the collection device.

8. The method according to any one of claims 1 to 7, characterized in that: The collecting data from the at least one first data source according to the identification information of each first data source in the at least one first data source and at least one collection strategy to obtain the first data includes: Obtaining access configuration information of each first data source according to the identification information of each first data source; Establishing an access connection for each first data source according to the access configuration information of each first data source; Based on the access connection of each first data source and according to the access policy corresponding to each first data source, data is collected from each first data source to obtain the first data.

9. An electronic device, characterized in that: including memory and processor; The memory is used to store computer programs; The processor is configured to implement the data collection method according to any one of claims 1 to 8 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the data collection method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Data processing method, equipment and system

    CN106371973A

  • Data governing system based on metadata management

    CN107657052A

  • Database statistical information acquisition method and device, medium and electronic equipment

    CN111984628A

  • Data acquisition method and device, electronic equipment and storage medium

    CN113064943A

  • Industrial control security data acquisition system and method

    CN114546519A