CN114598602A - Data acquisition method and device, computer equipment and computer readable storage medium - Google Patents

Data acquisition method and device, computer equipment and computer readable storage medium Download PDF

Info

Publication number
CN114598602A
CN114598602A CN202210222885.4A CN202210222885A CN114598602A CN 114598602 A CN114598602 A CN 114598602A CN 202210222885 A CN202210222885 A CN 202210222885A CN 114598602 A CN114598602 A CN 114598602A
Authority
CN
China
Prior art keywords
data
equipment
data acquisition
configuration information
configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210222885.4A
Other languages
Chinese (zh)
Inventor
付立明
董国铖
易通
黄胜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Rootcloud Technology Co Ltd
Original Assignee
Rootcloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Rootcloud Technology Co Ltd filed Critical Rootcloud Technology Co Ltd
Priority to CN202210222885.4A priority Critical patent/CN114598602A/en
Publication of CN114598602A publication Critical patent/CN114598602A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0843Configuration by using pre-existing information, e.g. using templates or copying from other elements based on generic templates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention discloses a data acquisition method, a data acquisition device, computer equipment and a computer readable storage medium, wherein the method comprises the following steps: after receiving a response equipment configuration request sent by a worker, the server selects corresponding equipment models from a first preset number of equipment models to instantiate to obtain an equipment instance, so that the server can store acquired data in the equipment instance subsequently; then, acquiring data acquired by data acquisition equipment corresponding to the equipment configuration request according to configuration information stored in the equipment model; finally, the data is stored to the device instance. Therefore, after the plurality of equipment models are configured in the server in advance, when a worker can perform corresponding configuration operation on the data acquisition equipment on line, the configured equipment models are directly selected, the worker does not need to manually configure, and the possibility that the worker possibly makes mistakes due to complex operation is further reduced.

Description

Data acquisition method and device, computer equipment and computer readable storage medium
Technical Field
The invention relates to the field of internet of things, in particular to a data acquisition method and device, computer equipment and a computer readable storage medium.
Background
Industrial Internet of Things (IIoT) refers to a technology for integrating various data acquisition devices with sensing and monitoring capabilities into various production links in cooperation with technologies such as mobile communication and intelligent analysis in Industrial production.
However, in the process of collecting data by the data collecting device and sending the data to the server for storage and analysis, a worker needs to perform corresponding configuration operation for each data collecting device online and offline, and the operation is complex and is prone to errors.
Disclosure of Invention
In view of this, the present invention provides a data acquisition method, an apparatus, a computer device and a computer readable storage medium, which are used to improve the current situation that a data acquisition device needs to perform corresponding configuration operations on and off line, and the operation is complex and is prone to error.
In a first aspect, an embodiment of the present invention provides a data acquisition method applied to a server, where a first preset number of device models corresponding to data acquisition devices are set in the server, the device models store configuration information of the data acquisition devices, and the server acquires data acquired by the data acquisition devices through the configuration information, where the method includes:
responding to an equipment configuration request, instantiating an equipment model corresponding to the equipment configuration request to obtain an equipment instance;
acquiring data acquired by data acquisition equipment corresponding to the equipment configuration request according to the configuration information stored in the equipment model;
storing the data to the device instance.
Optionally, in an implementation manner provided by the embodiment of the present invention, the data acquisition device includes a second preset number of sensors, where the sensors are configured to acquire a preset number of types of acquirable data, each sensor corresponds to one point location data, and the configuration information includes at least one point location data corresponding to each type of the acquirable data;
the acquiring data acquired by the data acquisition device corresponding to the device configuration request according to the configuration information stored in the device model corresponding to the device configuration request includes:
and acquiring data collected by the corresponding sensor according to the point location data stored in the equipment model corresponding to the equipment configuration request.
Further, in an implementation manner provided by the embodiment of the present invention, a template model corresponding to the first preset number of device models is further provided in the server, where the template model includes each type of the collectable data corresponding to the data collection device;
the method further includes, in response to the device configuration request, instantiating a device model corresponding to the device configuration request, before obtaining a device instance corresponding to the device configuration request:
generating a first preset number of initial device models corresponding to the data acquisition devices, and enabling each initial device model to inherit each type of the acquirable data corresponding to the data acquisition devices in the template model;
and configuring point location data corresponding to each type of the collectable data aiming at each initial equipment model to obtain the equipment model.
Further, in an implementation manner provided by the embodiment of the present invention, the configuration information further includes a communication protocol corresponding to the data acquisition device and corresponding network address information.
Further, in an implementation manner provided by the embodiment of the present invention, the method further includes:
and responding to the example information counting request, and counting the communication protocol and point data corresponding to each equipment example.
Optionally, in an implementation manner provided by the embodiment of the present invention, the method further includes:
and responding to the configuration modification request, and modifying the configuration information in the equipment model corresponding to the configuration modification request.
In a second aspect, an embodiment of the present invention provides a data acquisition apparatus, which is applied to a server, where a first preset number of device models corresponding to data acquisition devices are set in the server, the device models store configuration information of the data acquisition devices, and the server acquires data acquired by the data acquisition devices through the configuration information, where the apparatus includes:
the response module is used for responding to the equipment configuration request and instantiating the equipment model corresponding to the equipment configuration request to obtain an equipment instance;
the acquisition module is used for acquiring data acquired by the data acquisition equipment corresponding to the equipment configuration request according to the configuration information stored in the equipment model;
a storage module to store the data to the device instance.
Optionally, in an implementation manner provided by the embodiment of the present invention, the data acquisition device includes a second preset number of sensors, where the sensors are configured to acquire a preset number of types of acquirable data, each sensor corresponds to one point location data, and the configuration information includes at least one point location data corresponding to each type of the acquirable data;
the acquisition module is further configured to acquire data acquired by the corresponding sensor according to the point location data stored in the device model corresponding to the device configuration request.
In a third aspect, an embodiment of the present invention provides a computer device, including a memory and a processor, where the memory stores a computer program, and the computer program, when running on the processor, executes the data acquisition method disclosed in any one of the first aspects.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when running on a processor, executes the data acquisition method disclosed in any one of the first aspects.
In the data acquisition method provided by the embodiment of the invention, after receiving a response equipment configuration request sent by a worker, a server selects corresponding equipment models from a preset first preset number of equipment models to instantiate to obtain an equipment instance, so that the server can store acquired data in the equipment instance subsequently to realize real-time monitoring of the data; then, acquiring data acquired by data acquisition equipment corresponding to the equipment configuration request according to configuration information stored in the equipment model; and finally, storing the acquired data to the equipment instance.
Therefore, after the plurality of equipment models are configured in the server in advance, when a worker can perform corresponding configuration operation on the data acquisition equipment on line, the configured equipment models can be directly selected, so that the worker does not need to manually configure, the possibility that the worker possibly makes mistakes due to complex operation is reduced, and the normal implementation of data acquisition is ensured; moreover, the server can acquire the data acquired by the corresponding data acquisition equipment according to the configuration information and store the data in the equipment example, so that the real-time data monitoring of the data acquisition equipment is realized.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings required to be used in the embodiments will be briefly described below, and it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope of the present invention. Like components are numbered similarly in the various figures.
Fig. 1 is a schematic flow chart illustrating a first data acquisition method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating a second data acquisition method according to an embodiment of the present invention;
FIG. 3 is a flow chart illustrating a third data acquisition method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a data acquisition apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Hereinafter, the terms "including", "having", and their derivatives, which may be used in various embodiments of the present invention, are only intended to indicate specific features, numbers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the existence of, or adding to, one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present invention belong. The terms (such as terms defined in a commonly used dictionary) will be construed to have the same meaning as the contextual meaning in the related art and will not be construed to have an idealized or overly formal meaning unless expressly so defined in various embodiments of the present invention.
Referring to fig. 1, fig. 1 shows a schematic flow chart of a first data acquisition method provided by an embodiment of the present invention, where the data acquisition method provided by the embodiment of the present invention is applied to a server, where a first preset number of device models corresponding to data acquisition devices are arranged in the server, the device models store configuration information of the data acquisition devices, and the server acquires data acquired by the data acquisition devices through the configuration information.
It should be noted that the embodiment of the present invention does not limit the category of the data acquisition device, and the data acquisition device may be selected according to actual situations. As one possibility, the data acquisition device comprises a current sensor and/or a voltage sensor.
Further, configuration information of the data acquisition device, that is, data required for communication between the data acquisition device and the server, may be specifically selected according to actual conditions. As one possibility, the configuration information includes the communication protocols of the server and the sensors, such as modbus protocol or siemens S7 protocol; in yet another possible approach, the configuration information further includes an IP (Internet Protocol) address and a MAC (Media Access Control) address of the sensor.
Furthermore, the embodiment of the invention creates a plurality of device models according to the configurable content of the data acquisition device, such as the communication protocol and the acquired data. Exemplarily, if the data acquisition device includes a current sensor and a voltage sensor, and the configuration information includes a communication protocol, the configuration information in an equipment model corresponding to the data acquisition device includes: data collection-current, data collection device-current sensor, communication protocol-modbus. The configuration information in the other device model includes: data acquisition-current and voltage, data acquisition equipment-current sensor and voltage sensor, communication protocol-siemens S7.
Based on this, the embodiment of the invention sets a plurality of equipment models containing configuration information in the server in advance, so that when a worker configures the data acquisition equipment in the server, the worker can directly select the configured equipment models without manually inputting by the worker.
It should be further noted that, in order to reduce the storage redundancy of the server, the configuration information of any two device models in the server should not be completely consistent.
Therefore, the data acquisition method provided by the embodiment of the invention comprises the following steps:
s110, responding to the device configuration request, instantiating the device model corresponding to the device configuration request to obtain a device instance.
That is, an equipment configuration request sent by a user through a terminal is obtained, and a corresponding equipment model is determined according to the equipment configuration request.
It is understood that the request information in the device configuration request may only include the identification information of the data acquisition device, that is, the server may determine the data acquisition device to be configured only according to the device configuration request, and other content, such as the communication protocol, is determined by the configuration information in the device model corresponding to any one data acquisition device.
It can also be understood that the information in the device configuration request may include identification information of the data acquisition device and partial configuration information, and then the server determines the corresponding data acquisition device according to the identification information, and searches for any one device model satisfying the partial configuration information among the device models corresponding to all the data acquisition devices as the device model corresponding to the device configuration request.
Therefore, after the server acquires the request information in the device configuration request, the device models matched with the request information are selected from the first preset number of device models, the device models are instantiated to obtain device instances, and when data sent by the data acquisition device corresponding to the device configuration request are received subsequently, the data are stored through the device instances and real-time monitoring of the data is achieved through the device instances.
And S120, acquiring data acquired by the data acquisition equipment corresponding to the equipment configuration request according to the configuration information stored in the equipment model.
That is, the data source in the device instance, that is, the data acquisition device corresponding to the device instance, is determined according to the configuration information, so as to read data from the data acquisition device and store the data in the device instance.
Further, in a feasible manner provided by the embodiment of the present invention, specifically referring to fig. 2, fig. 2 shows a flowchart of a second data processing method provided by the embodiment of the present invention. In order to ensure that a server can determine data acquisition equipment corresponding to an equipment instance from a plurality of data acquisition equipment, in this embodiment, the data acquisition equipment includes a second preset number of sensors, the sensors are used for acquiring a preset variety of quantities of acquirable data, each sensor corresponds to one point location data, and the configuration information includes at least one point location data corresponding to each kind of acquirable data;
further S120, includes:
and S121, acquiring data collected by the corresponding sensor according to the point location data stored by the equipment model corresponding to the equipment configuration request.
That is, the data acquisition device in this embodiment includes a plurality of sensors, and the data acquirable device corresponds to a plurality of kinds of acquirable data, and any one kind of acquirable data can be acquired by at least one sensor. For example, the voltage acquisition can be completed by the first voltage sensor, the second voltage sensor and the third voltage sensor, and the current acquisition can be completed by the first current sensor and the second current sensor.
Therefore, in the embodiment of the present invention, each sensor is identified by point location data, so that the server can determine the data source of the device instance according to the point location data, for example, the point location data of the first voltage sensor is 1, the point location data of the second voltage sensor is 2, and the point location data of the third voltage sensor is 3; and when the point location data corresponding to the voltage in the equipment model corresponding to the equipment configuration request is 3, the server acquires the voltage data from the third voltage sensor.
It should be noted that, when the number of the collectable data corresponding to one data collecting device is multiple, the configuration information in each device model needs to include the point location data of each collectable data to indicate which sensor each collectable data is collected by, for example, which sensor among the first voltage sensor, the second voltage sensor, and the third voltage sensor the voltage is collected by.
It should be noted that, in this embodiment, the device configuration request sent by the user through the terminal may not include the point location data information. Furthermore, when the equipment configuration request does not include point location data information, the server can randomly select one equipment model from all equipment models matched with the equipment configuration request as a corresponding equipment model; and when the equipment configuration request comprises point location data information, the server selects an equipment model matched with the point location data information.
Further, it is understood that the point location data in the configuration information may be null. Specifically, if the point location data of the first voltage sensor corresponding to the voltage is 1, the point location data of the second voltage sensor is 2, and the point location data of the third voltage sensor is 3, the point location data corresponding to the voltage in the configuration information of the device model may be a null value, that is, it indicates that the device model including the configuration information is not used for storing the voltage.
It is also understood that the data acquisition device in this embodiment can be understood as a PLC (Programmable Logic Controller) connected with a plurality of sensors; and the point location data is used for identifying the sensor connected with the PLC.
S130, storing the data to the equipment instance.
That is, after the server acquires the data acquired by the data acquisition equipment according to the configuration information, the data is stored in the equipment example, so that the real-time monitoring of the data acquisition equipment is realized.
Therefore, after the plurality of equipment models are configured in the server in advance, when a worker can perform corresponding configuration operation on the data acquisition equipment on line, the worker can directly select the configured equipment models without manually configuring, so that the possibility that the worker makes mistakes due to complex operation is reduced, and the normal implementation of data acquisition is ensured; moreover, the server can acquire the data acquired by the corresponding data acquisition equipment according to the configuration information and store the data in the equipment example, so that the data monitoring of the data acquisition equipment is realized.
Optionally, referring to fig. 3, fig. 3 is a schematic flow chart of a third data obtaining method provided in the embodiment of the present invention, that is, in order to improve the generation efficiency of the device models, in an implementation manner provided in the embodiment of the present invention, template models corresponding to the first preset number of device models are further provided in the server, where the template models include each type of the collectable data corresponding to the data collection device;
further before S110, the method further includes:
s140, generating a first preset number of initial device models corresponding to the data acquisition devices, and enabling each initial device model to inherit each type of the acquirable data corresponding to the data acquisition devices in the template model;
s150, configuring point location data corresponding to each type of the collectable data aiming at each initial equipment model to obtain the equipment model.
That is, when the number of the acquirable data corresponding to one data acquisition device is multiple, the template model corresponding to the data acquisition device is preset in the server in the embodiment of the present invention, and the template model includes an attribute field corresponding to each kind of the acquirable data corresponding to the data acquisition device, and when the acquirable data corresponding to the data acquisition device includes voltage and current, the template model corresponding to the data acquisition device includes two attribute fields of voltage and current.
Furthermore, the server generates device models according to the template models, namely, a first preset number of initial device models are created, wherein the initial device models inherit all attribute fields in the template models, namely, each type of collectable data corresponding to the data collection device; and then configuring each initial equipment model, namely setting a sensor corresponding to each type of collectable data, namely point location data, so as to obtain the equipment model.
Based on the above, because the device model is formed by inheriting the template model, the device model is not required to be repeatedly created by the computer device according to each type of collectable data corresponding to the data collection device, and computer resources required by the creation of the device model are reduced.
Optionally, in an implementation manner provided by the embodiment of the present invention, the configuration information further includes a communication protocol corresponding to the data acquisition device and corresponding network address information.
That is, the configuration information needs to include a communication protocol and network address information, and the network address information can be understood as an IP address and a port number, so that the server obtains data from the data acquisition device according to the communication protocol, the network address information, and the point location data.
Optionally, in an implementation manner provided by the embodiment of the present invention, the method further includes:
and responding to the example information counting request, and counting the communication protocol and point data corresponding to each equipment example.
That is, the server receives the instance information statistical request sent by the user through the terminal, and counts the communication protocols and point data adopted by all the device instances, so that the staff can quickly determine the point data used by all the device instances and the communication protocols corresponding to all the device instances.
And when the data acquisition equipment is the PLC, the server can count the point location service condition of the PLC and determine the communication protocol of each sensor.
Optionally, in an implementation manner provided by the embodiment of the present invention, the method further includes:
and responding to the configuration modification request, and modifying the configuration information in the equipment model corresponding to the configuration modification request.
That is, the configuration information in the device model in the embodiment of the present invention is not data that is not completely modifiable, and may be modified according to a configuration modification request sent by a worker, and further, when the configuration information in the server cannot be used to acquire data in the data acquisition device, the configuration information may be adjusted according to actual conditions, so as to ensure reasonable data acquisition.
Corresponding to the data acquisition method provided by the embodiment of the present invention, an embodiment of the present invention further provides a data acquisition apparatus, referring to fig. 4, and fig. 4 shows a schematic structural diagram of the data acquisition apparatus provided by the embodiment of the present invention, where the data acquisition apparatus 200 provided by the embodiment of the present invention is applied to a server, a first preset number of device models corresponding to data acquisition devices are arranged in the server, the device models store configuration information of the data acquisition devices, and the server acquires data acquired by the data acquisition devices through the configuration information, where the apparatus includes:
a response module 210, configured to respond to a device configuration request, instantiate a device model corresponding to the device configuration request, and obtain a device instance;
an obtaining module 220, configured to obtain, according to the configuration information stored in the device model, data acquired by the data acquisition device corresponding to the device configuration request;
a storage module 230, configured to store the data to the device instance.
Optionally, in an implementation manner provided by the embodiment of the present invention, the data acquisition device includes a second preset number of sensors, where the sensors are configured to acquire a preset number of types of acquirable data, each sensor corresponds to one point location data, and the configuration information includes at least one point location data corresponding to each type of the acquirable data;
the acquisition module is further configured to acquire data acquired by the corresponding sensor according to the point location data stored in the device model corresponding to the device configuration request.
The data acquisition device provided in the embodiment of the present application can implement each process of the data acquisition method in the method embodiment disclosed in fig. 1, and can achieve the same technical effect, and for avoiding repetition, details are not repeated here.
An embodiment of the present invention further provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the computer program, when running on the processor, executes the data acquisition method disclosed in the method embodiment corresponding to fig. 1.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program runs on a processor, the computer program executes the data acquisition method disclosed in the method embodiment corresponding to fig. 1.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention or a part thereof which contributes to the prior art in essence can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of the changes or substitutions within the technical scope of the present invention, and shall cover the scope of the present invention.

Claims (10)

1. A data acquisition method is applied to a server, a first preset number of device models corresponding to data acquisition devices are arranged in the server, configuration information of the data acquisition devices is stored in the device models, and the server acquires data acquired by the data acquisition devices through the configuration information, and the method comprises the following steps:
responding to an equipment configuration request, instantiating an equipment model corresponding to the equipment configuration request to obtain an equipment instance;
acquiring data acquired by data acquisition equipment corresponding to the equipment configuration request according to the configuration information stored in the equipment model;
storing the data to the device instance.
2. The method according to claim 1, wherein the data acquisition device comprises a second preset number of sensors, the sensors are configured to acquire a preset number of types of acquirable data, each sensor corresponds to one point location data, and the configuration information comprises at least one point location data corresponding to each type of the acquirable data;
the acquiring data acquired by the data acquisition device corresponding to the device configuration request according to the configuration information stored in the device model corresponding to the device configuration request includes:
and acquiring data acquired by the corresponding sensor according to the point location data stored by the equipment model corresponding to the equipment configuration request.
3. The method according to claim 2, wherein a template model corresponding to the first preset number of equipment models is further provided in the server, and the template model includes each of the collectable data corresponding to the data collection equipment;
the method further includes, in response to the device configuration request, instantiating a device model corresponding to the device configuration request, before obtaining a device instance corresponding to the device configuration request:
generating a first preset number of initial device models corresponding to the data acquisition devices, and enabling each initial device model to inherit each type of the acquirable data corresponding to the data acquisition devices in the template model;
and configuring point location data corresponding to each type of the collectable data aiming at each initial equipment model to obtain the equipment model.
4. The method of claim 2, wherein the configuration information further comprises a communication protocol and network address information corresponding to the data collection device.
5. The method of claim 4, further comprising:
and responding to the example information counting request, and counting the communication protocol and point data corresponding to each equipment example.
6. The method of claim 1, further comprising:
and responding to the configuration modification request, and modifying the configuration information in the equipment model corresponding to the configuration modification request.
7. A data acquisition device is applied to a server, a first preset number of device models corresponding to data acquisition devices are arranged in the server, configuration information of the data acquisition devices is stored in the device models, and the server acquires data acquired by the data acquisition devices through the configuration information, and the device comprises:
the response module is used for responding to the equipment configuration request and instantiating the equipment model corresponding to the equipment configuration request to obtain an equipment instance;
the acquisition module is used for acquiring data acquired by the data acquisition equipment corresponding to the equipment configuration request according to the configuration information stored in the equipment model;
a storage module to store the data to the device instance.
8. The apparatus according to claim 7, wherein the data collecting device includes a second preset number of sensors, the sensors are configured to collect a preset number of types of collectable data, each sensor corresponds to one point location data, and the configuration information includes at least one point location data corresponding to each type of collectable data;
the acquisition module is further configured to acquire data acquired by the corresponding sensor according to the point location data stored in the device model corresponding to the device configuration request.
9. A computer device comprising a memory and a processor, the memory storing a computer program which, when run on the processor, performs the data acquisition method of any one of claims 1-6.
10. A computer-readable storage medium, having stored thereon a computer program which, when run on a processor, performs the data acquisition method of any one of claims 1-6.
CN202210222885.4A 2022-03-09 2022-03-09 Data acquisition method and device, computer equipment and computer readable storage medium Pending CN114598602A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210222885.4A CN114598602A (en) 2022-03-09 2022-03-09 Data acquisition method and device, computer equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210222885.4A CN114598602A (en) 2022-03-09 2022-03-09 Data acquisition method and device, computer equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN114598602A true CN114598602A (en) 2022-06-07

Family

ID=81815020

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210222885.4A Pending CN114598602A (en) 2022-03-09 2022-03-09 Data acquisition method and device, computer equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114598602A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111475555A (en) * 2020-03-12 2020-07-31 咪咕文化科技有限公司 Data acquisition method, electronic device and computer-readable storage medium
CN111638690A (en) * 2020-05-26 2020-09-08 新奥数能科技有限公司 Data acquisition method, device, system and equipment based on general information model
CN112001700A (en) * 2020-08-21 2020-11-27 金钱猫科技股份有限公司 Engineering inspection method based on big data automatic comparison and server
CN113794781A (en) * 2021-11-16 2021-12-14 佛山技研智联科技有限公司 Data acquisition method, device, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111475555A (en) * 2020-03-12 2020-07-31 咪咕文化科技有限公司 Data acquisition method, electronic device and computer-readable storage medium
CN111638690A (en) * 2020-05-26 2020-09-08 新奥数能科技有限公司 Data acquisition method, device, system and equipment based on general information model
CN112001700A (en) * 2020-08-21 2020-11-27 金钱猫科技股份有限公司 Engineering inspection method based on big data automatic comparison and server
CN113794781A (en) * 2021-11-16 2021-12-14 佛山技研智联科技有限公司 Data acquisition method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US11158143B2 (en) Vehicle diagnostic method and device, and computer readable storage medium
EP1958169B1 (en) Rfid architecture in an industrial controller environment
CN112995133B (en) Analysis method, device and system based on modbus protocol
CN112235326A (en) Internet of things equipment data analysis method and device and electronic equipment
CN111682960A (en) Fault diagnosis method and device for Internet of things network and equipment
US9811072B2 (en) Apparatus and method for analyzing a control network
CN113313280B (en) Cloud platform inspection method, electronic equipment and nonvolatile storage medium
CN110995639A (en) Data transmission method
CN111010378A (en) Method for rapidly accessing various sensors and various protocols to cloud platform
CN111447153A (en) Industrial equipment fingerprint identification method
CN104202328A (en) GOOSE/SMV (generic object oriented substation event/sampled measured value) message subscribing method, GOOSE/SMV message subscribing configuration module and GOOSE/SMV message subscribing terminal
CN108696375B (en) Industrial network information acquisition device, method, monitoring system and storage medium
CN113169898B (en) System and method for error identification and error cause analysis in a network of network components
CN114598602A (en) Data acquisition method and device, computer equipment and computer readable storage medium
CN113938351A (en) Data acquisition method, system and computer readable storage medium
CN109270885B (en) Data communication method, device and equipment for monitoring PLC system and storage medium
CN110996289A (en) Intelligent gateway, method and system for machine state monitoring diagnostic instrument
CN110674130A (en) Data transmission method
CN113703401B (en) Configuration method and device of anomaly detection algorithm, electronic equipment and storage medium
CN114330497A (en) Self-learning method, system, equipment and storage medium for classification of Internet of things equipment
CN111885159B (en) Data acquisition method and device, electronic equipment and storage medium
CN116633955A (en) Communication method, device, vehicle, medium and equipment
CN114500178A (en) Intelligent internet of things gateway capable of self-operation and self-maintenance
CN112055058A (en) Data storage method and device and computer readable storage medium
CN110647520A (en) Data acquisition equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination