CN115865651B - Data acquisition method and device, electronic equipment and storage medium - Google Patents

Data acquisition method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115865651B
CN115865651B CN202211422098.0A CN202211422098A CN115865651B CN 115865651 B CN115865651 B CN 115865651B CN 202211422098 A CN202211422098 A CN 202211422098A CN 115865651 B CN115865651 B CN 115865651B
Authority
CN
China
Prior art keywords
data acquisition
target
substation
master station
information
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.)
Active
Application number
CN202211422098.0A
Other languages
Chinese (zh)
Other versions
CN115865651A (en
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.)
BEIJING IWHR TECHNOLOGY CO LTD
China Three Gorges Corp
Original Assignee
BEIJING IWHR TECHNOLOGY CO LTD
China Three Gorges Corp
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 BEIJING IWHR TECHNOLOGY CO LTD, China Three Gorges Corp filed Critical BEIJING IWHR TECHNOLOGY CO LTD
Priority to CN202211422098.0A priority Critical patent/CN115865651B/en
Publication of CN115865651A publication Critical patent/CN115865651A/en
Application granted granted Critical
Publication of CN115865651B publication Critical patent/CN115865651B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The application provides a data acquisition method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: selecting a target master station and a plurality of target substations from a preset service registry according to the data acquisition demand information; based on the registration information of the target master station and the target substations in the preset service registration center, establishing communication connection between the target master station and the target substations to obtain a data acquisition system; when a new substation is added, establishing communication connection between the new substation and a target master station according to registration information of the new substation; and based on the data acquisition system, acquiring working condition data of the target monitoring equipment. By registering all the master stations and the substations to a preset service registration center in advance, when a data acquisition system needs to be built, communication connection between the master stations and the substations is automatically established, and even if a new substation appears, quick configuration between the master stations and the new substation can be realized, so that a foundation is laid for ensuring the data acquisition efficiency.

Description

Data acquisition method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of device monitoring technologies, and in particular, to a data acquisition method, a data acquisition device, an electronic device, and a storage medium.
Background
In large industrial systems such as hydropower stations, data acquisition is the core of a monitoring system, and other functions of the monitoring system, including real-time data collection, historical data storage, human-computer interface display, equipment operation, alarm events and the like, depend on the data acquisition and command issuing functions of a front-end acquisition system.
In the prior art, the communication connection between the data acquisition master station and the corresponding data acquisition substation is manually configured by an operator according to the current data acquisition requirements. However, if a new data acquisition substation is added subsequently, the original communication connection needs to be reconfigured, so that the operation flow is complicated, and the data acquisition efficiency is not guaranteed.
Disclosure of Invention
The application provides a data acquisition method, a data acquisition device, electronic equipment and a storage medium, which are used for solving the defects of complex configuration flow and the like between a main station and a substation in the prior art.
The first aspect of the present application provides a data acquisition method, comprising:
acquiring data acquisition requirement information;
selecting a target master station and a plurality of target substations from a preset service registration center according to the data acquisition demand information;
based on the registration information of the target master station and a plurality of target substations in the preset service registration center, establishing communication connection between the target master station and the plurality of target substations to obtain a data acquisition system;
when a new substation is added, calling registration information of the new substation in the preset service registration center;
establishing communication connection between the new substation and a target master station according to the registration information of the new substation so as to update the data acquisition system;
and based on the data acquisition system, acquiring working condition data of the target monitoring equipment according to the data acquisition demand information.
Optionally, the method further comprises:
and broadcasting address information of the service registry through a preset discovery service bus based on the preset service registry, so that all master stations and substations in a preset range send registration requests to the preset service registry according to the address information, and all the master stations and the substations in the preset range are registered in the preset service registry.
Optionally, the registration information includes at least a uniform resource locator, and the establishing a communication connection between the target master station and the plurality of target substations based on the registration information of the target master station and the plurality of target substations in the preset service registration center includes:
and transmitting the registration information of each target substation to the target master station, so that the target master station establishes communication connection with each target substation according to the registration information.
Optionally, based on the data acquisition system, according to the data acquisition requirement information, the method performs working condition data acquisition on the target monitoring device, including:
according to the data acquisition demand information, a corresponding data acquisition task is sent to a substation to be operated in the data acquisition system, so that the substation to be operated acquires working condition data of the target monitoring equipment according to the data acquisition task, and returns the working condition data to the target main station;
wherein the sub-station to be operated comprises the target sub-station and a new sub-station.
Optionally, the sending, according to the data acquisition requirement information, a corresponding data acquisition task to a substation to be operated in the data acquisition system includes:
acquiring current power consumption information of each target substation and each new substation in the data acquisition system;
screening the sub-stations to be operated in the idle state in the data acquisition system according to the current power consumption information of each target sub-station and each new sub-station;
and sending a corresponding data acquisition task to a substation to be operated in the data acquisition system according to the data acquisition demand information.
Optionally, the method further comprises:
and sending a device control instruction to a substation to be operated in the data acquisition system so as to control the working condition of the target monitoring device based on the substation to be operated.
Optionally, the method further comprises:
monitoring a heartbeat signal of a target main station in the data acquisition system in the process of acquiring working condition data of target monitoring equipment according to the data acquisition demand information based on the data acquisition system;
and when the monitoring result of the heartbeat signal of the target master station represents abnormality, switching the target master station to the data acquisition system.
A second aspect of the present application provides a data acquisition device comprising:
the acquisition module is used for acquiring data acquisition requirement information;
the selection module is used for selecting a target master station and a plurality of target substations from a preset service registration center according to the data acquisition demand information;
the connection module is used for establishing communication connection between the target master station and the target substations based on the registration information of the target master station and the target substations in the preset service registration center to obtain a data acquisition system;
a substation adding module, configured to invoke registration information of a new substation in the preset service registry when the new substation is added;
the updating module is used for establishing communication connection between the new substation and the target master station according to the registration information of the new substation so as to update the data acquisition system;
and the data acquisition module is used for acquiring working condition data of the target monitoring equipment according to the data acquisition demand information based on the data acquisition system.
Optionally, the apparatus further includes:
the registration module is used for broadcasting address information of the service registration center based on the preset service registration center through a preset discovery service bus, so that all master stations and substations in a preset range send registration requests to the preset service registration center according to the address information, and all the master stations and the substations in the preset range are registered in the preset service registration center.
Optionally, the registration information includes at least a uniform resource locator, and the connection module is specifically configured to:
and transmitting the registration information of each target substation to the target master station, so that the target master station establishes communication connection with each target substation according to the registration information.
Optionally, the data acquisition module is specifically configured to:
according to the data acquisition demand information, a corresponding data acquisition task is sent to a substation to be operated in the data acquisition system, so that the substation to be operated acquires working condition data of the target monitoring equipment according to the data acquisition task, and returns the working condition data to the target main station;
wherein the sub-station to be operated comprises the target sub-station and a new sub-station.
Optionally, the data acquisition module is specifically configured to:
acquiring current power consumption information of each target substation and each new substation in the data acquisition system;
screening the sub-stations to be operated in the idle state in the data acquisition system according to the current power consumption information of each target sub-station and each new sub-station;
and sending a corresponding data acquisition task to a substation to be operated in the data acquisition system according to the data acquisition demand information.
Optionally, the apparatus further includes:
and the control module is used for sending a device control instruction to a substation to be operated in the data acquisition system so as to control the working condition of the target monitoring device based on the substation to be operated.
Optionally, the data acquisition module is further configured to:
monitoring a heartbeat signal of a target main station in the data acquisition system in the process of acquiring working condition data of target monitoring equipment according to the data acquisition demand information based on the data acquisition system;
and when the monitoring result of the heartbeat signal of the target master station represents abnormality, switching the target master station to the data acquisition system.
A third aspect of the present application provides an electronic device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes the computer-executable instructions stored by the memory such that the at least one processor performs the method as described above in the first aspect and the various possible designs of the first aspect.
A fourth aspect of the application provides a computer readable storage medium having stored therein computer executable instructions which when executed by a processor implement the method as described above for the first aspect and the various possible designs of the first aspect.
The technical scheme of the application has the following advantages:
the application provides a data acquisition method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring data acquisition requirement information; selecting a target master station and a plurality of target substations from a preset service registry according to the data acquisition demand information; based on the registration information of the target master station and the target substations in the preset service registration center, establishing communication connection between the target master station and the target substations to obtain a data acquisition system; when a new substation is added, calling registration information of the new substation in a preset service registration center; according to the registration information of the new substation, establishing communication connection between the new substation and the target master station so as to update the data acquisition system; based on the data acquisition system, the working condition data acquisition is carried out on the target monitoring equipment according to the data acquisition demand information. According to the method provided by the scheme, all the master stations and the substations are registered in the preset service registration center in advance, when a data acquisition system for acquiring working condition data of the target monitoring equipment is required to be constructed, communication connection between the master stations and the substations can be automatically established based on registration information of the master stations and the substations in the preset service registration center, and even if a new substation occurs, quick configuration between the master stations and the new substation can be realized, so that a foundation is laid for guaranteeing data acquisition efficiency.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief description will be given below of the drawings required for the embodiments or the prior art descriptions, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings for a person having ordinary skill in the art.
FIG. 1 is a schematic diagram of a data acquisition system according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a data acquisition method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an interaction flow of an exemplary data acquisition system according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a data acquisition device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Specific embodiments of the present application have been shown by way of the above drawings and will be described in more detail below. These drawings and the written description are not intended to limit the scope of the disclosed concept in any way, but to illustrate the inventive concept to those skilled in the art by reference to specific embodiments.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. In the following description of the embodiments, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
In the prior art, the communication connection between the data acquisition master station and the corresponding data acquisition substation is manually configured by an operator according to the current data acquisition requirements. However, if a new data acquisition substation is added subsequently, the original communication connection needs to be reconfigured, so that the operation flow is complicated, and the data acquisition efficiency is not guaranteed.
In order to solve the above problems, the data acquisition method, apparatus, electronic device and storage medium provided by the embodiments of the present application, the method includes: acquiring data acquisition requirement information; selecting a target master station and a plurality of target substations from a preset service registry according to the data acquisition demand information; based on the registration information of the target master station and the target substations in the preset service registration center, establishing communication connection between the target master station and the target substations to obtain a data acquisition system; when a new substation is added, calling registration information of the new substation in a preset service registration center; according to the registration information of the new substation, establishing communication connection between the new substation and the target master station so as to update the data acquisition system; based on the data acquisition system, the working condition data acquisition is carried out on the target monitoring equipment according to the data acquisition demand information. According to the method provided by the scheme, all the master stations and the substations are registered in the preset service registration center in advance, when a data acquisition system for acquiring working condition data of the target monitoring equipment is required to be constructed, communication connection between the master stations and the substations can be automatically established based on registration information of the master stations and the substations in the preset service registration center, and even if a new substation occurs, quick configuration between the master stations and the new substation can be realized, so that a foundation is laid for guaranteeing data acquisition efficiency.
The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
First, a structure of a data acquisition system on which the present application is based will be described:
the data acquisition method, the data acquisition device, the electronic equipment and the storage medium provided by the embodiment of the application are suitable for acquiring the working condition data of hydropower station equipment in industrial systems such as hydropower stations. Fig. 1 is a schematic structural diagram of a data acquisition system according to an embodiment of the present application, which mainly includes a hydropower station device (target monitoring device), a substation, and a master station. Specifically, a working condition data sensor is arranged on the hydropower station equipment and is used for directly detecting working condition data of the hydropower station equipment, the detected working condition data are sent to corresponding substations, the substations forward the obtained working condition data to a master station, and the master station performs summary management on the working condition data uploaded by different substations.
The embodiment of the application provides a data acquisition method which is used for acquiring working condition data of hydropower station equipment in industrial systems such as hydropower stations. The execution main body of the embodiment of the application is electronic equipment such as a server, a desktop computer, a notebook computer, a tablet computer and other electronic equipment which can be used for data acquisition.
As shown in fig. 2, a flow chart of a data acquisition method according to an embodiment of the present application is shown, where the method includes:
step 201, data acquisition requirement information is acquired.
The data acquisition requirement information may specifically refer to a communication point table, which is used to embody which working condition data of which target monitoring devices need to be acquired, such as the temperature of the No. 1 target monitoring device, the rotation speed of the No. 2 target monitoring device, and so on.
Step 202, selecting a target master station and a plurality of target substations in a preset service registration center according to the data acquisition demand information.
Specifically, a target master station can be selected at a preset service registry according to a data acquisition destination address represented by data acquisition information, and a target substation capable of establishing communication connection with target monitoring equipment is selected at the preset service registry according to a target monitoring equipment address represented by the data acquisition information.
In order to ensure sufficient computing resources of the target master station, the master station in an idle state can be selected as the target master station in a preset service registration center, and specifically, the target master station in the idle state can be selected according to the power consumption information of each master station.
And 203, establishing communication connection between the target master station and the target substations based on the registration information of the target master station and the target substations in the preset service registration center to obtain a data acquisition system.
Specifically, in an embodiment, the registration information of each target substation may be sent to the target master station, so that the target master station establishes a communication connection with each target substation according to the registration information.
It should be noted that the registration information includes at least a uniform resource locator (url) and a role function identifier (master station or substation), and url includes a protocol type, a hostname, an IP address, and the like.
Specifically, the registration information of each target substation may be sent to the target master station, so that the target master station establishes a communication connection with each target substation according to url of each target substation.
It should be further noted that the preset service registry is further registered with a configuration server, and may acquire registration information of the configuration server, and then establish connection between the configuration server and the target master station, so as to connect each target substation to the target master station based on the configuration server, that is, establish communication connection between the target master station and each target substation.
Step 204, when a new substation is added, the registration information of the new substation is called in the preset service registration center.
It should be noted that, if a new substation appears in the system, the new substation registers the first time to the preset service registry after the first start.
And step 205, establishing communication connection between the new substation and the target master station according to the registration information of the new substation so as to update the data acquisition system.
Specifically, after the registration information of the new substation is sent to the target master station, the target master station will automatically establish a communication connection with the new substation according to url that is characterized by the registration information of the new substation.
And 206, based on the data acquisition system, acquiring working condition data of the target monitoring equipment according to the data acquisition demand information.
Wherein the target monitoring device may be one or more industrial devices.
Specifically, based on the target master station in the data acquisition system, corresponding data acquisition control can be performed on the target substation and the new substation according to the data acquisition demand information, so that the target substation and the new substation can acquire the working condition data of the corresponding target monitoring equipment, and the obtained working condition data are uniformly returned to the target master station.
Specifically, in an embodiment, according to the data acquisition requirement information, a corresponding data acquisition task may be sent to a substation to be operated in the data acquisition system, so that the substation to be operated acquires working condition data of the target monitoring device according to the data acquisition task, and returns the working condition data to the target master station.
Wherein the sub-station to be operated comprises a target sub-station and a new sub-station.
Specifically, since different to-be-operated sub-stations can acquire different target to-be-monitored equipment, the types of the working condition indexes which can be acquired may also be different, corresponding data acquisition tasks can be formulated for different to-be-operated sub-stations according to the data acquisition requirement information, so that each to-be-operated sub-station can jointly complete the data acquisition work required by the data acquisition requirement information by executing the received data acquisition tasks.
Specifically, in an embodiment, in order to ensure load balance of each substation in the data acquisition system, current power consumption information of each target substation and each new substation in the data acquisition system may be acquired; according to the current power consumption information of each target substation and each new substation, the to-be-operated substation currently in an idle state is screened in the data acquisition system; and sending corresponding data acquisition tasks to the sub-stations to be operated in the data acquisition system according to the data acquisition demand information.
Specifically, when the current power consumption information of the target substation and the new substation represents that the to-be-operated substation in the data acquisition system is not in an idle state currently, entering a waiting state, acquiring the current power consumption information of each target substation and the new substation in the data acquisition system according to a preset period, screening to the to-be-operated substation in the idle state, and sending a data acquisition task to the to-be-operated substation.
Similarly, in an embodiment, current power consumption information of each target substation and new substation in the data acquisition system may also be obtained; according to the current power consumption information of each target substation and each new substation, the to-be-operated substation with current power consumption lower than a preset power consumption threshold value is screened in the data acquisition system; and sending corresponding data acquisition tasks to the sub-stations to be operated in the data acquisition system according to the data acquisition demand information.
The preset power consumption threshold may be set according to an actual application condition, and the embodiment of the application is not limited.
Specifically, in an embodiment, a device control instruction may also be sent to a substation to be operated in the data acquisition system, so as to perform working condition control on the target monitoring device based on the substation to be operated.
Specifically, the device control personnel can input a device control instruction to the target main station, then the target main station sends the device control instruction to the substation to be operated, and if the substation to be operated determines that the current device control condition is met, the target monitoring device is subjected to corresponding working condition control according to the device control instruction. The device control command may be a device rotation speed control command, a temperature control command, a switch control command, etc.
In order to ensure that the master station and the substation within the preset range can register with the preset service registry as soon as possible on the basis of the above embodiment, as an implementation manner, in an embodiment, the method further includes:
step 301, broadcasting address information of the service registry through a preset discovery service bus based on the preset service registry, so that all master stations and substations in a preset range send registration requests to the preset service registry according to the address information, and all the master stations and substations in the preset range are registered in the preset service registry.
Specifically, the preset service registry may broadcast address information of the preset service registry according to a preset period based on the discovery service bus, so that all unregistered master stations and substations in a preset range may send a registration request to the preset service registry according to the address information, so as to register the substations to the preset service registry.
In order to ensure network security, the preset service registry may perform identity security verification on the master station and the slave station that request registration according to the IP address or hostname carried by the received registration request, so as to only allow the master station and the slave station whose identity security verification results are normal to register to the preset service registry.
On the basis of the foregoing embodiment, in order that the data acquisition system may perform data acquisition normally, as a practical implementation manner, in one embodiment, the method further includes:
step 401, monitoring a heartbeat signal of a target main station in a data acquisition system in the process of acquiring working condition data of target monitoring equipment according to data acquisition demand information based on the data acquisition system;
and step 402, when the monitoring result of the heartbeat signal of the target master station represents abnormality, performing target master station switching on the data acquisition system.
Specifically, in order to avoid that the normal operation of the data acquisition system is affected due to the failure of the target master station in the data acquisition system, the heartbeat signal of the target master station in the data acquisition system can be monitored, when the monitoring result of the heartbeat signal of the target master station is abnormal, a new target master station is selected in a preset service registry, and communication connection between the new target master station and each substation in the data acquisition system is established, so that the target master station is switched to the data acquisition system.
As shown in fig. 3, an interaction flow diagram of an exemplary data acquisition system provided by the embodiment of the present application is specifically an automatic discovery and scheduling management flow of an intelligent front-end acquisition service, where the intelligent front-end is a substation, the acquisition service is a master station, the registration center LDS is a preset service registration center, and the configuration tool DETOOL is a configuration server. The intelligent front end and the acquisition service can discover a registry based on a preset discovery service bus, then request registration, fill registration information CAPABILITIES, store registration information of the registry into a registration list after the registry receives a registration request sent by the acquisition service, and write registration information of the registry into a preset database after the registry receives the registration request sent by the intelligent front end. Aiming at the registration information written into the preset database, the IBC table of the intelligent terminal is read based on a configuration tool to check the validity of the intelligent front end, apply for the key of the intelligent front end to the encryption system, if the verification is passed, inform the registration center in a command mode, and after receiving the command notification, the registration center enables the intelligent front end to call a specified service method and notify that the key can be obtained. The configuration tool can acquire information (data acquisition demand information) such as point table configuration and the like, downloads the information to corresponding target intelligent front ends, connects each target intelligent front end to a target acquisition service, namely configures communication connection between a target main station and each target substation, informs a registry in a command mode after completing configuration, traverses OPCUA task state nodes after receiving the command notification, transmits intelligent front end acquisition url and idle intelligent front end ONAME to the registered target acquisition service, invokes a designated service method according to the received information, distributes intelligent front end acquisition url and task nodes (target monitoring equipment), acquires work according to the task nodes and the intelligent front end acquisition url, updates heartbeat, and establishes OPCUA links with the target acquisition service and responds to the acquisition action. In the data acquisition process, the registration center continuously monitors the state of the acquisition task, and if abnormality is found, if the intelligent front end or the acquisition service is found to be faulty, the acquisition task is redistributed according to the load balancing principle.
According to the data acquisition method provided by the embodiment of the application, the data acquisition requirement information is acquired; selecting a target master station and a plurality of target substations from a preset service registry according to the data acquisition demand information; based on the registration information of the target master station and the target substations in the preset service registration center, establishing communication connection between the target master station and the target substations to obtain a data acquisition system; when a new substation is added, calling registration information of the new substation in a preset service registration center; according to the registration information of the new substation, establishing communication connection between the new substation and the target master station so as to update the data acquisition system; based on the data acquisition system, the working condition data acquisition is carried out on the target monitoring equipment according to the data acquisition demand information. According to the method provided by the scheme, all the master stations and the substations are registered in the preset service registration center in advance, when a data acquisition system for acquiring working condition data of the target monitoring equipment is required to be constructed, communication connection between the master stations and the substations can be automatically established based on registration information of the master stations and the substations in the preset service registration center, and even if a new substation occurs, quick configuration between the master stations and the new substation can be realized, so that a foundation is laid for guaranteeing data acquisition efficiency. And, by using the discovery service bus, plug and play of each substation is realized, and the new substation can be easily integrated into the existing system without any additional configuration modification or program restarting work. Meanwhile, for the execution of the data acquisition task, a scheduling strategy of real-time dynamic and load balancing is adopted, and corresponding master and slave station acquisition programs do not need to be manually started one by one in advance, so that the data acquisition efficiency is improved.
The embodiment of the application provides a data acquisition device which is used for executing the data acquisition method provided by the embodiment.
Fig. 4 is a schematic structural diagram of a data acquisition device according to an embodiment of the present application. The data acquisition device 40 includes: an acquisition module 401, a selection module 402, a connection module 403, a substation addition module 404, an update module 405 and a data acquisition module 406.
The acquisition module is used for acquiring data acquisition requirement information; the selection module is used for selecting a target master station and a plurality of target substations from a preset service registration center according to the data acquisition demand information; the connection module is used for establishing communication connection between the target master station and the plurality of target substations based on registration information of the target master station and the plurality of target substations in a preset service registration center to obtain a data acquisition system; the substation adding module is used for calling the registration information of the new substation in a preset service registration center when the new substation is added; the updating module is used for establishing communication connection between the new substation and the target master station according to the registration information of the new substation so as to update the data acquisition system; and the data acquisition module is used for acquiring working condition data of the target monitoring equipment according to the data acquisition demand information based on the data acquisition system.
Specifically, in an embodiment, the apparatus further comprises:
the registration module is used for broadcasting address information of the service registration center based on the preset service registration center through a preset discovery service bus, and enabling all master stations and substations in a preset range to send registration requests to the preset service registration center according to the address information so as to register all the master stations and the substations in the preset range to the preset service registration center.
Specifically, in an embodiment, the registration information includes at least a uniform resource locator, and the connection module is specifically configured to:
and transmitting the registration information of each target substation to the target master station so that the target master station establishes communication connection with each target substation according to the registration information.
Specifically, in an embodiment, the data acquisition module is specifically configured to:
according to the data acquisition demand information, a corresponding data acquisition task is sent to a substation to be operated in the data acquisition system, so that the substation to be operated acquires working condition data of target monitoring equipment according to the data acquisition task, and the working condition data is returned to the target master station;
wherein the sub-station to be operated comprises a target sub-station and a new sub-station.
Specifically, in an embodiment, the data acquisition module is specifically configured to:
acquiring current power consumption information of each target substation and each new substation in a data acquisition system;
according to the current power consumption information of each target substation and each new substation, the to-be-operated substation currently in an idle state is screened in the data acquisition system;
and sending corresponding data acquisition tasks to the sub-stations to be operated in the data acquisition system according to the data acquisition demand information.
Specifically, in an embodiment, the apparatus further comprises:
and the control module is used for sending a device control instruction to a substation to be operated in the data acquisition system so as to control the working condition of the target monitoring device based on the substation to be operated.
Specifically, in an embodiment, the data acquisition module is further configured to:
monitoring a heartbeat signal of a target main station in a data acquisition system in the process of carrying out working condition data acquisition on target monitoring equipment according to data acquisition demand information based on the data acquisition system;
and when the monitoring result of the heartbeat signal of the target master station represents abnormality, switching the target master station to the data acquisition system.
The specific manner in which the respective modules perform the operations of the data acquisition device in this embodiment has been described in detail in the embodiments related to the method, and will not be described in detail here.
The data acquisition device provided by the embodiment of the application is used for executing the data acquisition method provided by the embodiment, and the implementation mode and the principle are the same and are not repeated.
The embodiment of the application provides electronic equipment for executing the data acquisition method provided by the embodiment.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device 50 includes: at least one processor 51 and a memory 52.
The memory stores computer-executable instructions; at least one processor executes computer-executable instructions stored in the memory, causing the at least one processor to perform the data acquisition method as provided in the above embodiments.
The implementation manner and principle of the electronic device provided by the embodiment of the present application are the same, and are not repeated.
The embodiment of the application provides a computer readable storage medium, wherein computer executable instructions are stored in the computer readable storage medium, and when a processor executes the computer executable instructions, the data acquisition method provided by any embodiment is realized.
The storage medium containing computer executable instructions in the embodiments of the present application may be used to store the computer executable instructions of the data acquisition method provided in the foregoing embodiments, and its implementation manner is the same as the principle, and will not be repeated.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
The integrated units implemented in the form of software functional units described above may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform part of the steps of the methods according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above. The specific working process of the above-described device may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the application.

Claims (10)

1. A method of data acquisition, comprising:
acquiring data acquisition requirement information;
selecting a target master station and a plurality of target substations from a preset service registration center according to the data acquisition demand information;
based on the registration information of the target master station and a plurality of target substations in the preset service registration center, establishing communication connection between the target master station and the plurality of target substations to obtain a data acquisition system;
when a new substation is added, calling registration information of the new substation in the preset service registration center;
establishing communication connection between the new substation and a target master station according to the registration information of the new substation so as to update the data acquisition system;
and based on the data acquisition system, acquiring working condition data of the target monitoring equipment according to the data acquisition demand information.
2. The method as recited in claim 1, further comprising:
and broadcasting address information of the service registry through a preset discovery service bus based on the preset service registry, so that all master stations and substations in a preset range send registration requests to the preset service registry according to the address information, and all the master stations and the substations in the preset range are registered in the preset service registry.
3. The method of claim 1, wherein the registration information includes at least a uniform resource locator, and wherein the establishing a communication connection between the target master station and the plurality of target substations based on registration information of the target master station and the plurality of target substations in the preset service registry comprises:
and transmitting the registration information of each target substation to the target master station, so that the target master station establishes communication connection with each target substation according to the registration information.
4. The method of claim 1, wherein the performing, based on the data acquisition system and according to the data acquisition requirement information, the working condition data acquisition on the target monitoring device includes:
according to the data acquisition demand information, a corresponding data acquisition task is sent to a substation to be operated in the data acquisition system, so that the substation to be operated acquires working condition data of the target monitoring equipment according to the data acquisition task, and returns the working condition data to the target main station;
wherein the sub-station to be operated comprises the target sub-station and a new sub-station.
5. The method according to claim 4, wherein the sending the corresponding data acquisition task to the substation to be operated in the data acquisition system according to the data acquisition requirement information includes:
acquiring current power consumption information of each target substation and each new substation in the data acquisition system;
screening the sub-stations to be operated in the idle state in the data acquisition system according to the current power consumption information of each target sub-station and each new sub-station;
and sending a corresponding data acquisition task to a substation to be operated in the data acquisition system according to the data acquisition demand information.
6. The method according to claim 4, wherein the method further comprises:
and sending a device control instruction to a substation to be operated in the data acquisition system so as to control the working condition of the target monitoring device based on the substation to be operated.
7. The method according to claim 1, wherein the method further comprises:
monitoring a heartbeat signal of a target main station in the data acquisition system in the process of acquiring working condition data of target monitoring equipment according to the data acquisition demand information based on the data acquisition system;
and when the monitoring result of the heartbeat signal of the target master station represents abnormality, switching the target master station to the data acquisition system.
8. A data acquisition device, comprising:
the acquisition module is used for acquiring data acquisition requirement information;
the selection module is used for selecting a target master station and a plurality of target substations from a preset service registration center according to the data acquisition demand information;
the connection module is used for establishing communication connection between the target master station and the target substations based on the registration information of the target master station and the target substations in the preset service registration center to obtain a data acquisition system;
a substation adding module, configured to invoke registration information of a new substation in the preset service registry when the new substation is added;
the updating module is used for establishing communication connection between the new substation and the target master station according to the registration information of the new substation so as to update the data acquisition system;
and the data acquisition module is used for acquiring working condition data of the target monitoring equipment according to the data acquisition demand information based on the data acquisition system.
9. An electronic device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing computer-executable instructions stored in the memory causes the at least one processor to perform the method of any one of claims 1 to 7.
10. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor implement the method of any of claims 1 to 7.
CN202211422098.0A 2022-11-14 2022-11-14 Data acquisition method and device, electronic equipment and storage medium Active CN115865651B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211422098.0A CN115865651B (en) 2022-11-14 2022-11-14 Data acquisition method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211422098.0A CN115865651B (en) 2022-11-14 2022-11-14 Data acquisition method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115865651A CN115865651A (en) 2023-03-28
CN115865651B true CN115865651B (en) 2023-08-15

Family

ID=85663364

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211422098.0A Active CN115865651B (en) 2022-11-14 2022-11-14 Data acquisition method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115865651B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11317744A (en) * 1998-05-01 1999-11-16 Kokusai Electric Co Ltd Roaming method for radio lan equipment
JP2004312491A (en) * 2003-04-09 2004-11-04 Fuji Electric Fa Components & Systems Co Ltd Method for registering connection relation between slave station and master station o
CN102468986A (en) * 2010-11-04 2012-05-23 北京市电力公司 Test method and system for electricity consumption information collection system, and main station
CN107346980A (en) * 2017-06-20 2017-11-14 重庆渝丰鑫新线缆科技有限公司 A kind of group-net communication method of more slave station cable anti-theft monitoring systems
CN108256340A (en) * 2017-12-22 2018-07-06 中国平安人寿保险股份有限公司 Collecting method, device, terminal device and storage medium
CN109379353A (en) * 2018-10-08 2019-02-22 北京科东电力控制系统有限责任公司 Collecting method and device
CN114024988A (en) * 2021-10-29 2022-02-08 许继集团有限公司 Dynamic data acquisition system and method for new energy centralized control

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11317744A (en) * 1998-05-01 1999-11-16 Kokusai Electric Co Ltd Roaming method for radio lan equipment
JP2004312491A (en) * 2003-04-09 2004-11-04 Fuji Electric Fa Components & Systems Co Ltd Method for registering connection relation between slave station and master station o
CN102468986A (en) * 2010-11-04 2012-05-23 北京市电力公司 Test method and system for electricity consumption information collection system, and main station
CN107346980A (en) * 2017-06-20 2017-11-14 重庆渝丰鑫新线缆科技有限公司 A kind of group-net communication method of more slave station cable anti-theft monitoring systems
CN108256340A (en) * 2017-12-22 2018-07-06 中国平安人寿保险股份有限公司 Collecting method, device, terminal device and storage medium
CN109379353A (en) * 2018-10-08 2019-02-22 北京科东电力控制系统有限责任公司 Collecting method and device
CN114024988A (en) * 2021-10-29 2022-02-08 许继集团有限公司 Dynamic data acquisition system and method for new energy centralized control

Also Published As

Publication number Publication date
CN115865651A (en) 2023-03-28

Similar Documents

Publication Publication Date Title
CN111580995B (en) Synchronous communication method and system of distributed cloud platform and Internet of things intelligent terminal based on MQTT asynchronous communication scene
CA2490980A1 (en) Opc server redirection manager
CN112416969B (en) Parallel task scheduling system in distributed database
CN107483297B (en) Active monitoring system and method for quality of service carried on embedded equipment
CN102215243A (en) Event synchronization method, system, client and server
CN111147567A (en) Service calling method, device, equipment and medium
CN112653577A (en) Network element management method, device and storage medium
CN102571850A (en) Transaction committing system, method and equipment
CN111078238A (en) Centralized processing method and device for application configuration in container environment
CN112630557A (en) Equipment state detection method, device, equipment and medium
CN115562757A (en) Data processing method, configuration center system, electronic device, and storage medium
CN116319732A (en) Message queue centralized configuration management system and method based on RabbitMQ
CN110958151B (en) Keep-alive detection method, keep-alive detection device, node, storage medium and communication system
CN109889406A (en) For managing method, apparatus, equipment and the storage medium of network connection
CN115865651B (en) Data acquisition method and device, electronic equipment and storage medium
CN115729164B (en) Industrial communication system management method and device and industrial communication system
CN110445700A (en) Slave communication system, method and terminal device
CN112542002A (en) Car renting system control method and device
CN110784510A (en) Method for accessing target service node to bus and information interaction method of service node
CN109542841A (en) The method and terminal device of data snapshot are created in cluster
CN114422335A (en) Communication method, communication device, server and storage medium
CN111193674B (en) Scene and service state-based load splitting realization method and system
CN109327529B (en) Distributed scanning method and system
CN112260902A (en) Network equipment monitoring method, device, equipment and storage medium
CN105187244A (en) Access management system of digital communication equipment supporting multiple management modes

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
GR01 Patent grant
GR01 Patent grant