Backup switching method and device, control system and readable storage medium

By setting up active devices and hot spare devices in the microgrid edge control system, monitoring and switching data processing devices, the microgrid imbalance problem caused by the crash or failure of the data processing device is solved, and the reliability and stability of the system are improved.

CN119231509APending Publication Date: 2024-12-31SHANGHAI TIANHE FUJIA ENERGY CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411361992.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

In the field of microgrid control, the data processing devices in edge controller systems crash or fail, causing local power generation and power consumption to be lost, affecting the operating reliability of the microgrid.

Method used

Multiple data processing devices are used, and at least one of them is an active device and one is a hot spare device. The hot spare device monitors the data processing results and synchronization information of the active device. If an abnormality is found, it will be switched to a new active device to ensure that the system is running uninterrupted. And power on or restart the original active device through the switching device.

Benefits of technology

It effectively reduces trip accidents caused by imbalance between power generation and power consumption in the microgrid, improves the reliability of backup and switching, and ensures the stability and reliability of the control system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119231509A_ABST
    Figure CN119231509A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to a backup switching method and device, a control system and a readable storage medium, the backup switching method is applied to the control system, the control system comprises a plurality of data processing devices of the same type, and the data processing devices comprise at least one movable device and at least one hot standby device. The backup switching method comprises the following steps: a hot standby device obtains first processing data generated by processing to-be-processed data by an active device; the hot standby device processes the to-be-processed data to obtain second processing data; the hot standby device obtains first synchronization information of the movable device; if it is determined that the active device is abnormal according to the comparison result of the second processing data and the first processing data and the first synchronization information, the hot standby device configures the hot standby device as a new active device to replace the original active device to generate the first processing data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of control technology, and in particular, to a backup switching method, device, control system, and readable storage medium. Background Art

[0002] In the field of microgrid control, edge controller systems play an important role in local energy scheduling. However, if the controller, collector and other data processing devices in the edge controller system crash or fail, local power generation and consumption will quickly lose balance, causing tripping, which greatly affects the operational reliability of the microgrid. Summary of the invention

[0003] Based on this, it is necessary to provide a backup switching method, device, control system and readable storage medium that can improve operation reliability in response to the above technical problems.

[0004] In a first aspect, the present application provides a backup switching method, which is applied to a control system, wherein the control system includes a plurality of data processing devices of the same type, wherein the plurality of data processing devices include at least one active device and at least one hot standby device, and the backup switching method includes:

[0005] The hot standby device acquires first processed data generated by the active device processing the data to be processed;

[0006] The hot standby device processes the data to be processed to obtain second processed data;

[0007] The hot standby device acquires first synchronization information of the active device;

[0008] If it is determined that the active device is abnormal according to the comparison result between the second processed data and the first processed data and the first synchronization information, the hot standby device configures the hot standby device as a new active device to replace the original active device to generate the first processed data.

[0009] In one embodiment, the hot standby device obtains the first synchronization information of the active device, including:

[0010] The hot standby device acquires the heartbeat synchronization time according to the first heartbeat packet sent by the active device;

[0011] The hot standby device acquires program status information of each program in the active device;

[0012] The hot standby device obtains input parameters of the algorithm in the active device;

[0013] The method further comprises:

[0014] The hot standby device determines whether the active device is abnormal according to the heartbeat synchronization time, the program status information and the input parameters.

[0015] In one embodiment, the hot standby device processes the to-be-processed data of the active device to obtain second processed data, including:

[0016] The hot standby device processes the data to be processed using the same data processing algorithm as that of the active device to obtain second processed data;

[0017] The method further comprises:

[0018] If the second processed data is different from the first processed data, the hot standby device determines that the active device is abnormal.

[0019] In one embodiment, it also includes:

[0020] After configuring the hot standby device as the new active device, the hot standby device acquires the second synchronization information of the original active device;

[0021] If the new active device determines, according to the second synchronization information, that the original active device has not returned to normal within a preset time period, the new active device controls the original active device to be powered on again.

[0022] In one embodiment, it also includes:

[0023] If the new active device determines that the original active device has recovered to normal according to the second synchronization information, the new active device is configured as a hot standby device, and the original active device is configured to continue to generate the first processing data.

[0024] In one embodiment, the data processing device is connected to a plurality of Ethernet devices respectively, and the network segment addresses of the plurality of Ethernet devices are different, and the backup switching method further comprises:

[0025] If some of the Ethernet devices stop sending the second heartbeat packets, the active device communicates through the Ethernet devices that are still sending the second heartbeat packets.

[0026] In a second aspect, the present application provides a control system, comprising:

[0027] An Ethernet device, the Ethernet device being used to communicate with the LNA communication device;

[0028] A plurality of data processing devices, wherein the data processing devices are connected to the Ethernet device, and the plurality of data processing devices of the same type are connected to each other, and the plurality of data processing devices of the same type include at least one active device and at least one hot standby device, and the hot standby device is used to perform the backup switching method as described above;

[0029] Wherein, the type of the data processing device includes at least one of a controller and a collector.

[0030] In one embodiment, it also includes:

[0031] A plurality of switch devices are respectively arranged on the power supply paths of the plurality of data processing devices in a one-to-one correspondence, and the switch devices are used to switch the connected power supply paths on and off under the control of other data processing devices of the same type.

[0032] In one of the embodiments, there are multiple Ethernet devices, and the active device is also used to execute the backup switching method as described above.

[0033] In a third aspect, the present application provides a backup switching device, applied to a control system, wherein the control system includes a plurality of data processing devices of the same type, wherein the plurality of data processing devices include at least one active device and at least one hot standby device, and the backup switching device includes:

[0034] A first acquisition module, used for the hot standby device to acquire first processed data generated by the active device processing the data to be processed;

[0035] A second processing module, used for the hot standby device to process the data to be processed to obtain second processed data;

[0036] A state acquisition module, used for the hot standby device to acquire the first synchronization information of the active device;

[0037] The switching module is used to configure the hot standby device as a new active device to replace the original active device to generate the first processing data if it is determined that the active device is abnormal based on the comparison result of the second processing data and the first processing data and the first synchronization information.

[0038] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.

[0039] In a fifth aspect, the present application provides a computer program product, including a computer program, which implements the steps of the above method when executed by a processor.

[0040] The above backup switching method, device, control system and readable storage medium, by setting multiple data processing devices in the control system and dividing the multiple data processing devices into active devices and hot standby devices, can timely switch the active devices based on the monitoring function of the hot standby devices when the active devices occasionally freeze or fail, so that the control system can still maintain uninterrupted operation, reduce the probability of overall downtime, and thus reduce tripping accidents caused by imbalance between power generation and power consumption in the microgrid. Moreover, abnormal judgment based on the results of data processing and the first synchronization information can effectively reduce the missed judgment of active devices, thereby further improving the reliability of the backup switching method. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0042] Figure 1 One of the flowcharts of the backup switching method according to an embodiment;

[0043] Figure 2 A sub-flow chart of a hot standby device acquiring first synchronization information of an active device according to an embodiment;

[0044] Figure 3 This is a second flowchart of a backup switching method according to an embodiment;

[0045] Figure 4 One of the schematic diagrams of a control system including two controllers and a collector according to an embodiment;

[0046] Figure 5 One of the schematic diagrams of a control system including two controllers and two collectors according to an embodiment;

[0047] Figure 6 One of the schematic diagrams of a control system including two controllers and no collector according to an embodiment;

[0048] Figure 7 The second schematic diagram of a control system including two controllers and one collector according to an embodiment;

[0049] Figure 8 The second schematic diagram of a control system including two controllers and two collectors according to an embodiment;

[0050] Fig. 9This is a second schematic diagram of a control system including two controllers and no collector according to an embodiment. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0052] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, the first processing data may be referred to as the second processing data, and similarly, the second processing data may be referred to as the first processing data.

[0053] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. "Multiple" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined. "Several" means at least one, such as one, two, etc., unless otherwise clearly and specifically defined.

[0054] In the related art, the edge control system of the microgrid usually adopts a topological structure of a single controller and a single collector. Among them, the collector is used to collect and preprocess data from various power systems, for example, it can collect key power data such as voltage, current, frequency, etc. in real time. The collector can also further support the conversion of data interfaces, such as supporting the conversion between LAN interfaces and non-LAN interfaces such as WAN interfaces, serial interfaces, and wireless interfaces, and transmit the converted data to the controller via the Ethernet device in the control system. The controller is used to analyze the data obtained from the collector, and generate corresponding control commands to adjust the operating status of the microgrid according to the preset algorithm and control logic. However, the edge control system needs to realize local energy scheduling, and the response cycle of the controller and collector is in seconds. Therefore, the controller and collector have high stability and self-recovery requirements. When the controller or collector crashes or fails, it is very easy to cause the local power generation and power consumption to lose balance quickly, thereby causing problems such as tripping.

[0055] Therefore, an embodiment of the present application provides a backup switching method for a control system. The control system includes multiple data processing devices of the same type, and the types of data processing devices include but are not limited to controllers, collectors, etc. The multiple data processing devices include at least one active device and at least one hot standby device. An active device refers to a device with actual control or acquisition functions in the edge control of a microgrid, and a hot standby device refers to a device that serves as a hot backup for an active device, and is used to replace an active device that has an abnormality such as a freeze or failure. Figure 1 FIG. 1 is a flowchart of a backup switching method according to an embodiment of the present invention. Figure 1 The backup switching method includes steps 102 to 108.

[0056] Step 102: The hot standby device obtains first processed data generated by the active device by processing the data to be processed.

[0057] Among them, the data processing device can be but is not limited to being connected to any one of the 485 bus, CAN bus and Ethernet device to obtain the data to be processed. Ethernet devices are, for example, devices with data transmission and forwarding functions such as switches. The first processed data can be understood as the data that actually participates in the control of the microgrid. In an exemplary embodiment, the type of the data processing device is a controller, and the active controller is used to process data according to key power data such as voltage, current, and frequency, and generate first processed data for controlling the microgrid. In another exemplary embodiment, the type of the data processing device is a collector, and the active collector is used to convert data in non-LAN interface formats such as WAN interface, serial interface, wireless interface, etc., and generate data for transmission to the LAN interface of the Ethernet device. That is, the specific content of the data to be processed and the first processed data is determined according to the specific type of the data processing device, which is not limited here.

[0058] Step 104: The hot standby device processes the data to be processed to obtain second processed data.

[0059] Among them, the second processed data can be understood as data that does not actually participate in the control of the microgrid, but is used to verify whether the active device is operating normally. That is, the hot standby device is mainly in a listening state and will not issue any control instructions to the microgrid. Optionally, the hot standby device can obtain the data to be processed from the active device, or it can obtain the data to be processed from any one of the 485 bus, CAN bus and Ethernet devices, or it can obtain the data to be processed from both places respectively, and verify whether the data to be processed received by the active device is correct. Furthermore, the algorithm used by the hot standby device to process the data to be processed may be the same as the algorithm used by the active device to process it, or it may be different, which is not limited here.

[0060] Step 106: The hot standby device obtains first synchronization information of the active device.

[0061] The plurality of data processing devices may be connected via a dedicated bus and be independent of the path used by the active device to obtain the data to be processed, thereby reducing interference between different data. The first synchronization information includes synchronization information, which includes but is not limited to program status information of each program in the data processing device, heartbeat packets, and input parameters of algorithm calculations.

[0062] Step 108: If it is determined that the active device is abnormal according to the comparison result between the second processed data and the first processed data and the first synchronization information, the hot standby device configures the hot standby device as a new active device to replace the original active device to generate the first processed data.

[0063] As an example, a case where multiple data processing devices are two controllers is used for explanation, and the two data processing devices are controller 1 and controller 2. In the initial state, controller 1 serves as an active device and controller 2 serves as a hot standby device. Controller 1, as an active device, is used to generate first processing data based on the data to be processed, and transmits it to the LAN communication device via the Ethernet device to control the LAN communication device. If controller 2, as a hot standby device, finds that the first processing data generated by controller 1 does not match the second processing data generated by itself, or finds that controller 1 does not send synchronization information, it can be determined that controller 1 is abnormal. Then, controller 2 is configured as a new active device to replace controller 1, as the original active device, to generate the first processing data. It can be understood that if the number of controllers is greater than three, the data of the three controllers can be cross-verified to reduce erroneous switching caused by errors in the second processing data generated by the hot standby device.

[0064] In another exemplary embodiment, the example of multiple data processing devices being two collectors is used for explanation, and the two data processing devices are collector 1 and collector 2. In the initial state, collector 1 is used as an active device and collector 2 is used as a hot standby device. Collector 1 as an active device is used to generate first processing data according to the data to be processed, and transmit it to the controller via an Ethernet device so that the controller processes the data and generates corresponding control instructions. If collector 2 as a hot standby device finds that the first processing data generated by collector 1 does not match the second processing data generated by itself, or finds that collector 1 does not send synchronization information, it can be determined that collector 1 is abnormal. Then, collector 2 is configured as a new active device to replace collector 1 as the original active device to generate the first processing data. It can be understood that if the number of collectors is greater than three, the data of the three collectors can be cross-validated to reduce the error switching caused by the error of the second processing data generated by the hot standby device.

[0065] In the embodiment of the application, by setting a plurality of data processing devices in the control system and dividing the plurality of data processing devices into active devices and hot standby devices, the monitoring function of the hot standby device can be used to timely switch the active device when the active device occasionally freezes or fails, so that the control system can still maintain uninterrupted operation, reduce the probability of overall downtime, and further reduce the tripping accidents caused by the imbalance between power generation and power consumption in the microgrid. Moreover, the abnormality judgment based on the data processing result and the first synchronization information can effectively reduce the missed judgment of the active device, thereby further improving the reliability of the backup switching method.

[0066] Figure 2 A sub-flow chart of a hot standby device obtaining first synchronization information of an active device according to an embodiment, referring to Figure 2 In one embodiment, the hot standby device obtains the first synchronization information of the active device, including steps 202 to 206.

[0067] Step 202: The hot standby device obtains the heartbeat synchronization time according to the first heartbeat packet sent by the active device.

[0068] Among them, the heartbeat synchronization time refers to the time when the active device sends a heartbeat packet. The heartbeat packet is used to confirm the connection status and communication status between the active device and the Ethernet device. If the active device does not send the first heartbeat packet within a certain period of time, it can be considered that the active device has an abnormal situation such as freezing or failure.

[0069] Step 204: The hot standby device obtains input parameters of the algorithm in the active device, wherein the input parameters include but are not limited to key power data such as voltage, current, and frequency.

[0070] Step 206: The hot standby device obtains program status information of each program in the active device, wherein the program status information includes but is not limited to whether each program is running, data input rate and data output rate of the running program, etc.

[0071] Correspondingly, the backup switching method also includes the following steps: the hot standby device determines whether the active device is abnormal based on the heartbeat synchronization time, program status information and input parameters. For example, the hot standby device can determine the heartbeat synchronization time of the next first heartbeat packet based on the latest heartbeat synchronization time and the sending period of the first heartbeat packet. If the active device has not sent the heartbeat synchronization time of the next first heartbeat packet after exceeding the heartbeat synchronization time, it can be determined that the active device is abnormal. For another example, if the key program used by the active device to support input parameter processing is not running, or any one of the data input rate and data output rate of the program is too low, it can also be determined that the active device is abnormal. For another example, if the input parameters received by the active device and the hot standby device are different, it can also be determined that the active device is abnormal. That is, the active device can be determined to be abnormal according to any one of the first synchronization information, thereby achieving a sharp response to the abnormality of the active device.

[0072] In one of the embodiments, the hot standby device processes the to-be-processed data of the active device to obtain second processed data, including the following steps: the hot standby device uses the same data processing algorithm as the active device to process the to-be-processed data to obtain second processed data. The backup switching method also includes the following steps: if the second processed data is different from the first processed data, the hot standby device determines that the active device is abnormal. Specifically, since the algorithms of the active device and the hot standby device are consistent, the hot standby device will also perform the same data processing and should obtain the second processed data that is the same as the first processed data. Therefore, by verifying the second processed data and the first processed data, it is possible to easily and quickly determine whether the active device is abnormal. Furthermore, the program status information may include the data processing algorithm used by the program, so the hot standby device can obtain the data processing algorithm of the active device based on the program status information and perform corresponding data processing.

[0073] In one of the embodiments, the backup switching method further includes the following steps: after the hot standby device configures the hot standby device as a new active device, the hot standby device obtains the second synchronization information of the original active device; if the new active device determines that the original active device has not returned to normal within a preset time period according to the second synchronization information, the original active device is controlled to be powered on again. Specifically, after the hot standby device replaces the original active device, the original active device has a certain amount of time to try to self-repair or self-restart. Therefore, after the hot standby device is switched to the new active device, the original hot standby device can continue to be monitored, and whether it has returned to normal can be determined by obtaining the second synchronization information of the original hot standby device. Accordingly, a switch device can be respectively provided on the power supply path of each data processing device, and the switch device is controlled by other data processing devices. That is, when the new active device determines that the repair of the original active device fails, the data processing device and its corresponding switch device can power on the original active device again through the switch device, thereby actively allowing the original active device to perform a hard restart.

[0074] Take the data processing device as an example where the multiple data processing devices are two controllers, the two data processing devices are controller 1 and controller 2, respectively, and the control system also includes a switch device 1 provided on the power supply path of controller 1, and a switch device 2 provided on the power supply path of controller 2. Switch device 1 is controlled by controller 2, and switch device 2 is controlled by controller 1. Therefore, after controller 2 is configured as a new active device to replace controller 1 as the original active device to generate the first processing data, controller 2 can continue to obtain the second synchronization information of controller 1. If controller 1 does not return to normal within a preset time, controller 2 can switch switch device 1 to power on controller 1 again. In the embodiment of the application, by obtaining the second synchronization information of the original active device, it is possible to timely know whether the original active device has returned to normal, and in the case where it cannot be recovered spontaneously, the original active device is hard restarted, thereby ensuring that there are multiple data processing devices that can work normally in the control system at the same time, so as to be switched when any data processing device is abnormal, thereby reducing the overall downtime risk of the control system and improving the reliability of the control system.

[0075] Figure 3 This is a second flowchart of a backup switching method according to an embodiment of the present invention. Figure 3 In one embodiment, the backup switching method includes steps 302 to 322. Steps 302 to 320 may refer to the above embodiments and will not be described in detail here.

[0076] Step 302: The hot standby device obtains first processed data generated by the active device by processing the data to be processed.

[0077] Step 304: The hot standby device processes the data to be processed using the same data processing algorithm as that of the active device to obtain second processed data.

[0078] Step 306: The hot standby device obtains the heartbeat synchronization time according to the first heartbeat packet sent by the active device.

[0079] Step 308: The hot standby device obtains program status information of each program in the active device.

[0080] Step 310: The hot standby device obtains input parameters of the algorithm in the active device.

[0081] Step 312: The hot standby device determines whether the active device is abnormal based on the heartbeat synchronization time, program status information, and input parameters.

[0082] Step 314: If the second processed data is different from the first processed data, the hot standby device determines that the active device is abnormal.

[0083] Step 316: If it is determined that the active device is abnormal according to the comparison result between the second processed data and the first processed data and the first synchronization information, the hot standby device configures the hot standby device as a new active device to replace the original active device to generate the first processed data.

[0084] Step 318: After configuring the hot standby device as a new active device, the hot standby device obtains the second synchronization information of the original active device.

[0085] Step 320: If the new active device determines according to the second synchronization information that the original active device has not returned to normal within a preset time period, the original active device is controlled to be powered on again.

[0086] Step 322: If the new active device determines that the original active device has recovered to normal according to the second synchronization information, the new active device is configured as a hot standby device, and the original active device is configured to continue to generate the first processed data.

[0087] In the embodiment of the application, after the original active device returns to normal, it is promptly connected to the control system to perform control functions, and the hot standby device configured as the new active device is switched back to its original state, so that the control system can continue to maintain the original working mode, which is conducive to providing stability of the control system.

[0088] In one embodiment, the data processing device is connected to a plurality of Ethernet devices respectively, and the network segment addresses of the plurality of Ethernet devices are different. Specifically, the Ethernet devices are all connected in a star structure. When the Ethernet device fails, the data processing devices such as the controller and collector connected to the failed Ethernet device and the LAN communication device will be disconnected and out of control. Therefore, the backup switching method also includes the following steps: if some Ethernet devices stop sending the second heartbeat packet, the active device communicates through the Ethernet device that is still sending the second heartbeat packet. That is, there is a second heartbeat packet transmission between the data processing device and the plurality of Ethernet devices, and the data processing device is configured with a program for detecting whether the network fails according to the second heartbeat packet. Therefore, when all the data processing devices cannot receive the second heartbeat packet from a certain Ethernet device, but can receive the second heartbeat packet from other Ethernet devices, it can be judged that the Ethernet device that stops sending the second heartbeat packet has an abnormality, and the Ethernet device can be switched in time to ensure the stable communication of the data processing devices such as the controller and collector and the LAN communication device.

[0089] It should be understood that, although the steps in each flowchart are shown in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in each flowchart may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0090] The present application provides a control system, including an Ethernet device and multiple data processing devices. The Ethernet device is used to communicate with an LNA communication device. The data processing device is connected to the Ethernet device, and multiple data processing devices of the same type are connected to each other. The multiple data processing devices of the same type include at least one active device and at least one hot standby device, and the hot standby device is used to execute the backup switching method as described above. That is, the hot standby device obtains the first processed data generated by the active device processing the processed data; the hot standby device processes the processed data to obtain the second processed data; the hot standby device obtains the first synchronization information of the active device; if it is determined that the active device is abnormal based on the comparison result of the second processed data and the first processed data and the first synchronization information, the hot standby device configures the hot standby device as a new active device to replace the original active device to generate the first processed data.

[0091] The type of data processing device includes at least one of a controller and a collector. Specifically, Figure 4 FIG. 1 is a schematic diagram of a control system including two controllers and a collector according to an embodiment of the present invention. Figure 5 FIG. 1 is a schematic diagram of a control system including two controllers and two collectors according to an embodiment of the present invention, and is combined with reference to FIG. Figure 4 and Figure 5 If there are many communication devices and the distance is large, the collector and controller can be separated. The same type of data processing devices have the same connection relationship, so they can replace each other for data processing. It should be noted that if there are few communication devices and the distance is small, the collector can be Figure 6 In addition, if all devices that need to communicate with Ethernet devices use LNA interfaces, the collector may not be set in the control system.

[0092] Continue to refer Figures 4 to 6In one embodiment, the control system further includes a plurality of switch devices. The plurality of switch devices are respectively arranged on the power supply paths of the plurality of data processing devices in a one-to-one correspondence, and the switch devices are used to switch the on and off of the connected power supply paths under the control of other data processing devices of the same type. Specifically, the control logic of the switch device can refer to the aforementioned embodiment, which will not be described in detail here. In the embodiment of the application, by setting the switch device in the control system, the abnormal data processing device can be easily powered on again, thereby improving the recovery speed of the control system.

[0093] Figure 7 The second schematic diagram of a control system including two controllers and one collector according to an embodiment of the present invention is shown in FIG. Figure 8 The second schematic diagram of a control system including two controllers and two collectors according to an embodiment of the present invention is shown in FIG. Fig. 9 This is a schematic diagram of a control system including two controllers and no collector according to an embodiment of the present invention, with reference to Figures 7 to 9 In one embodiment, there are multiple Ethernet devices, and the active device is also used to execute the backup switching method as described above. That is, if some Ethernet devices stop sending the second heartbeat packet, the active device communicates through the Ethernet device that is still sending the second heartbeat packet.

[0094] The embodiment of the present application also provides a backup switching device, which is applied to a control system, wherein the control system includes multiple data processing devices of the same type, wherein the multiple data processing devices include at least one active device and at least one hot standby device. The backup switching device includes a first acquisition module, a second processing module, a state acquisition module and a switching module. Among them, the first acquisition module is used for the hot standby device to acquire the first processed data generated by the active device processing the processed data. The second processing module is used for the hot standby device to process the processed data to obtain the second processed data. The state acquisition module is used for the hot standby device to acquire the first synchronization information of the active device. The switching module is used for the hot standby device to configure the hot standby device as a new active device to replace the original active device to generate the first processed data if it is determined that the active device is abnormal based on the comparison result of the second processed data and the first processed data and the first synchronization information.

[0095] Furthermore, the backup switching device also includes a first processing module, which is used for the active device to process the data to be processed to generate first processed data.

[0096] In one embodiment, the state acquisition module includes a first acquisition unit, a second acquisition unit and a third acquisition unit. The first acquisition unit is used for the hot standby device to acquire the heartbeat synchronization time according to the first heartbeat packet sent by the active device, the second acquisition unit is used for the hot standby device to acquire the program status information of each program in the active device, and the third acquisition unit is used for the hot standby device to acquire the input parameters of the algorithm in the active device. The backup switching device also includes a first abnormality judgment module, which is used for the hot standby device to determine whether the active device is abnormal according to the heartbeat synchronization time, program status information and input parameters.

[0097] In one embodiment, the second processing module is used for the hot standby device to process the data to be processed using the same data processing algorithm as the active device to obtain second processed data. The backup switching device also includes a second abnormality judgment module, which is used for the hot standby device to determine that the active device is abnormal if the second processed data is different from the first processed data.

[0098] In one embodiment, the state acquisition module is further used for the hot standby device to obtain the second synchronization information of the original active device after configuring the hot standby device as the new active device. The backup switching module also includes a power-on module, which is used to control the original active device to power on again if the new active device determines according to the second synchronization information that the original active device has not returned to normal within a preset time.

[0099] In one embodiment, the switching module is further configured to configure the new active device as a hot standby device and configure the original active device to continue generating the first processed data if the new active device determines that the original active device has recovered to normal according to the second synchronization information.

[0100] In one embodiment, the data processing device is connected to a plurality of Ethernet devices respectively, and the network segment addresses of the plurality of Ethernet devices are different. The backup switching device further comprises a network switching module, which is used for, if some Ethernet devices stop sending the second heartbeat packet, the active device communicates through the Ethernet device that is still sending the second heartbeat packet.

[0101] The division of each module in the above-mentioned backup switching device is only for illustration. In other embodiments, the backup switching device can be divided into different modules as needed to complete all or part of the functions of the above-mentioned backup switching device. For the specific definition of the backup switching device, please refer to the definition of the backup switching method above, which will not be repeated here. Each module in the above-mentioned backup switching device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the electronic device in the form of hardware, or can be stored in the memory of the electronic device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0102] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0103] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0104] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0105] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0106] The above embodiments only express several implementation methods of the embodiments of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for those of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the embodiments of the present application, and these all belong to the protection scope of the embodiments of the present application. Therefore, the protection scope of the patent of the embodiments of the present application shall be subject to the attached claims.

Claims

1. A backup switching method, characterized in that: Applied to a control system, the control system includes a plurality of data processing devices of the same type, the plurality of data processing devices include at least one active device and at least one hot standby device, the backup switching method includes: The hot standby device acquires first processed data generated by the active device processing the data to be processed; The hot standby device processes the data to be processed to obtain second processed data; The hot standby device acquires first synchronization information of the active device; If it is determined that the active device is abnormal according to the comparison result between the second processed data and the first processed data and the first synchronization information, the hot standby device configures the hot standby device as a new active device to replace the original active device to generate the first processed data.

2. The backup switching method according to claim 1, characterized in that: The hot standby device acquires first synchronization information of the active device, including: The hot standby device acquires the heartbeat synchronization time according to the first heartbeat packet sent by the active device; The hot standby device acquires program status information of each program in the active device; The hot standby device obtains input parameters of the algorithm in the active device; The method further comprises: The hot standby device determines whether the active device is abnormal according to the heartbeat synchronization time, the program status information and the input parameters.

3. The backup switching method according to claim 1, characterized in that: The hot standby device processes the to-be-processed data of the active device to obtain second processed data, including: The hot standby device processes the data to be processed using the same data processing algorithm as that of the active device to obtain second processed data; The method further comprises: If the second processed data is different from the first processed data, the hot standby device determines that the active device is abnormal.

4. The backup switching method according to any one of claims 1 to 3, characterized in that: Also includes: After configuring the hot standby device as the new active device, the hot standby device acquires the second synchronization information of the original active device; If the new active device determines, according to the second synchronization information, that the original active device has not returned to normal within a preset time period, the new active device controls the original active device to be powered on again.

5. The backup switching method according to claim 4, characterized in that: Also includes: If the new active device determines that the original active device has recovered to normal according to the second synchronization information, the new active device is configured as a hot standby device, and the original active device is configured to continue to generate the first processing data.

6. The backup switching method according to claim 1, characterized in that: The data processing device is connected to a plurality of Ethernet devices respectively, and the network segment addresses of the plurality of Ethernet devices are different, and the backup switching method further comprises: If some of the Ethernet devices stop sending the second heartbeat packets, the active device communicates through the Ethernet devices that are still sending the second heartbeat packets.

7. A control system, characterized in that: include: An Ethernet device, the Ethernet device being used to communicate with the LNA communication device; A plurality of data processing devices, wherein the data processing devices are connected to the Ethernet device, and the plurality of data processing devices of the same type are connected to each other, and the plurality of data processing devices of the same type include at least one active device and at least one hot standby device, and the hot standby device is used to execute the backup switching method according to any one of claims 1 to 5; Wherein, the type of the data processing device includes at least one of a controller and a collector.

8. The control system according to claim 7, characterized in that: Also includes: A plurality of switch devices are respectively arranged on the power supply paths of the plurality of data processing devices in a one-to-one correspondence, and the switch devices are used to switch the connected power supply paths on and off under the control of other data processing devices of the same type.

9. The control system according to claim 7, characterized in that: There are multiple Ethernet devices, and the active device is also used to execute the backup switching method as described in claim 6.

10. A backup switching device, characterized in that: Applied to a control system, the control system includes a plurality of data processing devices of the same type, the plurality of data processing devices include at least one active device and at least one hot standby device, the backup switching device includes: A first acquisition module, used for the hot standby device to acquire first processed data generated by the active device processing the data to be processed; A second processing module, used for the hot standby device to process the data to be processed to obtain second processed data; A state acquisition module, used for the hot standby device to acquire the first synchronization information of the active device; The switching module is used to configure the hot standby device as a new active device to replace the original active device to generate the first processing data if it is determined that the active device is abnormal based on the comparison result of the second processing data and the first processing data and the first synchronization information.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Cited By

  • Cold standby control method of processing core, cold standby controller and integrated circuit

    CN122044330A

  • Cold backup control method, cold backup controller and integrated circuit of processing core

    CN122044330B