Data acquisition control method, control system, electronic equipment and medium for wind farm
By using the main process and redundant acquisition service process in a single server, and using the monitoring process for status monitoring and switching, the problems of high redundancy costs and slow switching speed of multiple servers are solved, and high availability and low-cost data acquisition control are achieved.
Patent Information
- Application Number
- CN202210006139.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-05
- Publication Date
- 2025-06-06
- Estimated Expiration
- 2042-01-05
AI Technical Summary
In the prior art, the redundancy cost of multiple servers is high and the slow task switching speed between servers leads to long service interruption time.
The main process of a single server and the redundant collection service process are used to monitor the status of each collection service process through the monitoring process, and switch to other states in the normal collection service process in the replacement of the main process when the main process is abnormal.
On the premise of ensuring a certain degree of high availability, the cost is reduced, the service switching speed is improved, and the service interruption time is shortened.
Smart Images

Figure CN114610478B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a data acquisition control method, in particular to a data acquisition control method, a control system, an electronic device and a medium for a wind farm. Background Art
[0002] In the process of informatization and intelligent development of new energy and wind power generation, data collection, as the cornerstone of informatization, is the top priority of its development. The high availability requirements of data collection have never changed. In recent years, data collection technology solutions have emerged in an endless stream and have achieved unprecedented development. As far as the existing data collection solutions are concerned, the main method is to use active and standby server redundancy (hot standby, warm standby, cold standby) to solve the problem of high availability.
[0003] Redundancy means designing the same function in two or more devices. If one device has a problem, the other device will automatically take over the task of the problematic device and continue to work, thus enhancing the robustness of the system.
[0004] The data collection solution for wind power generation sites mainly uses active-standby server redundancy to improve system availability. The so-called active server refers to the main server that provides services, while the standby server refers to the standby server that does not provide services. The heartbeat service is used to determine whether the active-standby server needs to be switched and whether the work is normal. When the active server that provides services is operating normally, it undertakes the task of data collection. When the active server that provides services fails, the standby server that originally did not provide services will take over its services. After it recovers, the active-standby server will perform or not perform the active-standby switch according to the switching strategy.
[0005] Under the premise of multiple servers, providing multiple hardware servers will inevitably face the problem of high costs. Active-standby redundant servers require task switching between servers, and the switching speed is slow, resulting in a long interruption time in the continuous provision of services.
[0006] If a single server is used to provide collection services, high availability cannot be guaranteed if the software fails. Summary of the invention
[0007] The technical problem to be solved by the present invention is to overcome the defects in the prior art of high redundant cost of multiple servers and slow task switching between servers resulting in long service interruption time, and to provide a data acquisition control method, control system, electronic equipment and medium for a wind farm.
[0008] The present invention solves the above technical problems through the following technical solutions:
[0009] In a first aspect, the present invention provides a data acquisition control method for a wind farm, wherein the wind farm is provided with a data acquisition server, wherein the data acquisition server is deployed with at least two acquisition service processes and a monitoring process, wherein the acquisition service process is used to collect and transmit wind turbine data, and wherein the control method comprises:
[0010] Selecting a collection service process as a main process, and controlling the main process to send the collected wind turbine data outward;
[0011] Monitor the status of each collection service process through the monitoring process;
[0012] If the state of the main process is abnormal, other acquisition service processes with normal states are switched to replace the main process.
[0013] Optionally, the step of selecting a collection service process as a main process and controlling the main process to send the collected wind turbine data outward includes:
[0014] Only the main process is controlled to collect fan data, or multiple collection service processes including the main process are controlled to collect fan data.
[0015] Optionally, the step of controlling only the main process to collect fan data or controlling multiple collection service processes including the main process to collect fan data includes:
[0016] If the data volume of the wind turbine data source is greater than the first preset threshold, only the main process is controlled to collect data;
[0017] If the data volume of the wind turbine data source is less than the second preset threshold, multiple collection service processes including the main process are controlled to collect data.
[0018] Optionally, the step of monitoring the running status of each acquisition service process includes:
[0019] Periodically obtain the running status of each collection service process and notify each collection service process of the running status of other collection service processes.
[0020] Optionally, the state of the main process is abnormal, including abnormal operation or communication of the main process.
[0021] Optionally, if the state of the main process is abnormal, switching another acquisition service process in a normal state to replace the main process includes:
[0022] If the state of the main process is abnormal, detecting whether the communication of the main process is abnormal;
[0023] If not, restart the main process;
[0024] If so, switch to another acquisition service process in a normal state to replace the main process.
[0025] In a second aspect, the present invention provides a data acquisition control system for a wind farm, wherein the wind farm is provided with a data acquisition server, wherein the data acquisition server is deployed with at least two acquisition service processes and a monitoring process, wherein the acquisition service process is used to acquire and transmit wind turbine data, and wherein the control system comprises:
[0026] A control module, used to select a collection service process as a main process, and control the main process to send the collected wind turbine data outward;
[0027] The control module is also used to monitor the status of the acquisition service process;
[0028] The switching module is used to switch other acquisition service processes in normal state to replace the main process when the state of the main process is abnormal.
[0029] Optionally, the control module is further used to control only the main process to collect fan data or control multiple collection service processes including the main process to collect fan data.
[0030] Optionally, when the data volume of the fan data source is greater than a first preset threshold, the control module only controls the main process to collect fan data; when the data volume of the fan data source is less than a second preset threshold, the control module controls multiple collection service processes including the main process to collect fan data simultaneously.
[0031] Optionally, the control module periodically obtains the running status of each acquisition service process, and notifies each acquisition service process of the running status of other acquisition service processes.
[0032] Optionally, the state of the main process is abnormal, including abnormal operation or communication of the main process.
[0033] Optionally, when the control module monitors that the state of the main process is abnormal, it detects whether the communication of the main process is abnormal;
[0034] If not, the control module restarts the main process;
[0035] If so, the control module calls the switching module to switch other acquisition service processes in normal status to replace the main process.
[0036] In a third aspect, the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned wind farm data acquisition and control method when executing the computer program.
[0037] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the above-mentioned data acquisition and control method for a wind farm.
[0038] The positive and progressive effect of the present invention is that when a single server main process and redundant collection service processes are used, the cost is greatly reduced compared with active and standby redundant physical servers while ensuring a certain degree of high availability;
[0039] A single server uses a master-slave process and monitors the master process and other collection service processes through a monitoring process. When the master process fails, it can switch to other normal collection service processes in a timely manner. Compared with a single server with a single process, high availability has been greatly improved.
[0040] The switching speed between the main process and other acquisition service processes in a single server is at least 2-3 times faster than the switching speed between the primary and backup physical servers, with high switching response. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 This is a flow chart of a data acquisition control method for a wind farm according to Embodiment 1 of the present invention;
[0042] Figure 2 is a schematic diagram of step S102 in embodiment 1 of the present invention;
[0043] Figure 3 is a schematic diagram of step S103 in embodiment 1 of the present invention;
[0044] Figure 4 This is a schematic diagram of data collection and control of multiple wind turbines in a wind farm according to Embodiment 1 of the present invention;
[0045] Figure 5 This is a module schematic diagram of a data acquisition and control system for a wind farm according to Embodiment 2 of the present invention;
[0046] Figure 6 This is a schematic diagram of the hardware structure of an electronic device according to Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0047] The present invention is further described below by way of examples, but the present invention is not limited to the scope of the examples.
[0048] Example 1
[0049] like Figure 1As shown, this embodiment provides a data acquisition control method for a wind farm, wherein the wind farm is provided with a data acquisition server, wherein the data acquisition server is deployed with at least two acquisition service processes and a monitoring process, wherein the acquisition service process is used to collect and transmit wind turbine data, and the control method comprises:
[0050] Step S100: Select a collection service process as the main process;
[0051] Step S104, controlling the main process to send the collected wind turbine data to the outside;
[0052] Monitor the status of each collection service process through the monitoring process;
[0053] Step S107: If the state of the main process is abnormal, switch to another acquisition service process in a normal state to replace the main process.
[0054] As a preferred implementation, the step S100 further includes step S101, detecting the data volume of the wind turbine data source, and executing step S102 if the data volume is greater than a first preset threshold, and executing step S103 if the data volume is less than a second preset threshold.
[0055] Among them, the first preset threshold is greater than the second preset threshold, and is specifically judged according to the configured bool (Boolean variable) parameter, that is, greater than the first preset threshold is true, and less than the second preset threshold is false; as an implementable method of this embodiment, for the case where the data volume is between the first preset threshold and the second preset threshold, the default configuration in the bool parameter is false.
[0056] Therefore, if the judgment result is true, step S102 is executed; if the judgment result is false, step S103 is executed.
[0057] Step S102: Only control the main process to collect fan data, such as Figure 2 As shown in the figure, the dotted line part indicates that in this scenario, other collection service processes are in standby state and do not perform data collection and external data sending tasks; preferably, if the data volume of the fan data source is greater than the first preset threshold, only the main process is controlled to collect data, and the main process sends the collected data to the next level application, and the next level application is SCADA (Supervisory Control And Data Acquisition), MES (Manufacturing Execution System) and other systems.
[0058] In this case, the amount of data is large. If the main process and other collection service processes collect fan data at the same time, the performance requirements for the server will be higher. Therefore, the mode of only the main process collecting data is adopted, which can meet the collection requirements, reduce the performance requirements of the server, and the cost is also low.
[0059] Step S103: Control multiple collection service processes including the main process to collect wind turbine data, such as Figure 3 As shown, preferably, if the data volume of the fan data source is less than the second preset threshold value, multiple collection service processes including the main process are controlled to collect data, and the main process sends the collected data to the next level application. The dotted line in the figure indicates that the other collection service processes only transmit data to the outside when switching to replace the main process, and do not transmit data to the outside at other times.
[0060] In this case, the data volume is small, and the main process and other collection service processes collect the wind turbine data at the same time. The performance requirements of the server are relatively low, which can meet the collection requirements. In addition, when a collection service fails, the speed of switching to provide services is faster than Figure 2 The switching method shown is faster.
[0061] As a preferred implementation, the monitoring process periodically obtains the running status of each collection service process and notifies each collection service process of the running status of other collection service processes.
[0062] In this implementation manner, the main process state is abnormal, including the main process running abnormally or communicating abnormally.
[0063] As a preferred implementation, if the state of the main process is abnormal, executing step 105, detecting whether the communication of the main process is abnormal;
[0064] If it is not a communication anomaly, the main process state may be an operation anomaly, and in this case, step S106 is executed to restart the main process;
[0065] If the main process fails to restart multiple times and the number of restarts reaches a threshold, execute step 107;
[0066] If the communication is abnormal, step 107 is executed to switch other acquisition service processes in normal status to replace the main process.
[0067] As a preferred implementation, the abnormal communication state includes interruption of communication of the main process, or the monitoring process is unable to obtain status information of the main process for multiple consecutive cycles.
[0068] The wind farm is equipped with multiple wind turbines, and each wind turbine is equipped with a wind turbine data acquisition server. Figure 4As shown, each wind turbine data acquisition server serves as a wind turbine data source, and sends the collected wind farm data to the next level application through the wind farm data acquisition control method.
[0069] When a single server's main process and redundant collection service processes are used, the cost is greatly reduced compared to active-standby redundant physical servers while ensuring a certain degree of high availability.
[0070] A single server uses a master-slave process and monitors the master process and other collection service processes through a monitoring process. When the master process fails, it can switch to other normal collection service processes in a timely manner. Compared with a single server with a single process, high availability has been greatly improved.
[0071] The switching speed between the main process and other acquisition service processes in a single server is at least 2-3 times faster than the switching speed between the primary and backup physical servers, with high switching response.
[0072] Example 2
[0073] like Figure 5 As shown, an embodiment of the present invention provides a data acquisition control system for a wind farm, wherein the wind farm is provided with a data acquisition server, wherein the data acquisition server is deployed with at least two acquisition service processes and a monitoring process, wherein the acquisition service process is used to acquire and transmit wind turbine data, and wherein the control system comprises:
[0074] Control module 1, used to select a collection service process as a main process, and control the main process to send the collected wind turbine data outward;
[0075] The control module 1 is also used to monitor the status of the acquisition service process;
[0076] The switching module 2 is used to switch other acquisition service processes in normal states to replace the main process when the state of the main process is abnormal.
[0077] In this embodiment, the control module 1 is also used to control only the main process to collect fan data or control multiple collection service processes including the main process to collect fan data.
[0078] As a preferred implementation, based on the threshold of the data volume of the fan data source, the control module 1 only controls the main process to collect fan data when the data volume of the fan data source is greater than a first preset threshold, and controls multiple collection service processes including the main process to collect fan data simultaneously when the data volume of the fan data source is less than a second preset threshold.
[0079] The control module 1 periodically obtains the running status of each acquisition service process, and notifies each acquisition service process of the running status of other acquisition service processes.
[0080] In this implementation manner, the state of the main process is abnormal, including abnormal operation or communication of the main process.
[0081] As a preferred implementation, when the control module 1 monitors that the state of the main process is abnormal, it detects whether the communication of the main process is abnormal;
[0082] If not, the control module 1 restarts the main process;
[0083] If so, the control module 1 calls the switching module 2 to switch other acquisition service processes in normal status to replace the main process.
[0084] Example 3
[0085] like Figure 6 FIG. 3 is a schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present invention, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the data acquisition control method for the wind farm in Embodiment 1 above is implemented. Figure 6 The electronic device 30 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0086] The electronic device 30 may be in the form of a general-purpose computing device, for example, it may be a server device. The components of the electronic device 30 may include, but are not limited to: at least one processor 31, at least one memory 32, and a bus 33 connecting different system components (including the memory 32 and the processor 31).
[0087] The bus 33 includes a data bus, an address bus, and a control bus.
[0088] The memory 32 may include a volatile memory, such as a random access memory (RAM) 321 and / or a cache memory 322 , and may further include a read-only memory (ROM) 323 .
[0089] The memory 32 may also include a program / utility 325 having a set (at least one) of program modules 324, such program modules 324 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0090] The processor 31 executes various functional applications and data processing by running the computer programs stored in the memory 32 , such as the data acquisition control method for a wind farm in Embodiment 1 of the present invention.
[0091] The electronic device 30 may also communicate with one or more external devices 34 (e.g., keyboards, pointing devices, etc.). Such communication may be performed via an input / output (I / O) interface 35. Furthermore, the model-generated device 30 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 36. As shown, the network adapter 36 communicates with other modules of the model-generated device 30 via a bus 33. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the model-generated device 30, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (RAID) systems, tape drives, and data backup storage systems.
[0092] It should be noted that although several units / modules or sub-units / modules of the electronic device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided into multiple units / modules to be embodied.
[0093] Example 4
[0094] The present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the data acquisition and control method for the wind farm described in Example 1 is implemented.
[0095] The readable storage medium may include but is not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device or any suitable combination of the above.
[0096] In a possible implementation manner, the present invention may also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the data acquisition control method for a wind farm described in Example 1.
[0097] The program code for executing the present invention may be written in any combination of one or more programming languages, and may be executed entirely on a user device, partially on a user device, as an independent software package, partially on a user device and partially on a remote device, or entirely on a remote device.
[0098] Although the specific embodiments of the present invention are described above, it should be understood by those skilled in the art that this is only for illustration and the protection scope of the present invention is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, but these changes and modifications all fall within the protection scope of the present invention.
Claims
1. A data acquisition control method for a wind farm, It is characterized in that The wind farm is provided with a data acquisition server, and a single data acquisition server is deployed with at least two acquisition service processes and a monitoring process, and the acquisition service process is used to collect and transmit wind turbine data. The control method includes: Selecting a collection service process as a main process and controlling the main process to send the collected wind turbine data outwards includes: According to the data volume of the fan data source, only the main process is controlled to collect fan data, or multiple collection service processes including the main process are controlled to collect fan data, including: If the data volume of the wind turbine data source is greater than the first preset threshold, only the main process is controlled to collect data; If the data volume of the wind turbine data source is less than a second preset threshold, controlling multiple collection service processes including the main process to collect data; Monitor the status of each collection service process through the monitoring process; If the state of the main process is abnormal, other acquisition service processes with normal states are switched to replace the main process.
2. The data acquisition and control method for a wind farm according to claim 1, It is characterized in that The step of monitoring the running status of each acquisition service process includes: Periodically obtain the running status of each collection service process and notify each collection service process of the running status of other collection service processes.
3. The data acquisition and control method for a wind farm according to claim 1, It is characterized in that The state of the main process is abnormal, including abnormal operation or communication of the main process.
4. The data acquisition and control method for a wind farm according to claim 3, It is characterized in that If the state of the main process is abnormal, switching other acquisition service processes with normal states to replace the main process includes: If the state of the main process is abnormal, detecting whether the communication of the main process is abnormal; If not, restart the main process; If so, switch to another acquisition service process in a normal state to replace the main process.
5. A data acquisition and control system for a wind farm, It is characterized in that The wind farm is provided with a data acquisition server, and a single data acquisition server is deployed with at least two acquisition service processes and a monitoring process, and the acquisition service process is used to collect and transmit wind turbine data. The control system includes: A control module, used to select a collection service process as a main process, and control the main process to send the collected wind turbine data outward; The control module is further used to control only the main process to collect fan data or control multiple collection service processes including the main process to collect fan data according to the data volume of the fan data source; when the data volume of the fan data source is greater than a first preset threshold, the control module controls only the main process to collect fan data; when the data volume of the fan data source is less than a second preset threshold, the control module controls multiple collection service processes including the main process to collect fan data simultaneously; The control module is also used to monitor the status of the acquisition service process; The switching module is used to switch other acquisition service processes in normal state to replace the main process when the state of the main process is abnormal.
6. The data acquisition and control system for a wind farm according to claim 5, It is characterized in that The control module periodically obtains the running status of each acquisition service process, and notifies each acquisition service process of the running status of other acquisition service processes.
7. The data acquisition and control system for a wind farm according to claim 5, It is characterized in that The state of the main process is abnormal, including abnormal operation or communication of the main process.
8. The data acquisition and control system for a wind farm according to claim 7, It is characterized in that When the control module detects that the state of the main process is abnormal, it detects whether the communication of the main process is abnormal; If not, the control module restarts the main process; If so, the control module calls the switching module to switch other acquisition service processes in normal status to replace the main process.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the data acquisition and control method for a wind farm according to any one of claims 1 to 4 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the data acquisition and control method for a wind farm according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Process replacement method and device
CN106462455A
Information control method, server and computer readable medium
CN108332423A
Internet of things equipment information acquisition method, system and device
CN111416821A
Process replacement method and device, electronic equipment and storage medium
CN113064748A