Controller, control method, power switch system, program product, and storage medium
By adopting a publish-subscribe communication mechanism in the power switch cabinet, the controller automatically determines the target enabled power module and its output power, solving the problem of power-off adaptation required in the existing technology and achieving highly adaptable and reliable power switch cabinet operation.
Patent Information
- Application Number
- CN202410384407.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-29
- Publication Date
- 2025-09-30
AI Technical Summary
Existing power switch cabinets require the entire system to be powered off for adaptation when the operation of the power module needs to be changed, resulting in high costs and poor reliability. In addition, the existing communication mechanism is complex, making it difficult to achieve highly adaptive operation.
Adopting a publish-subscribe communication mechanism, the controller communicates with multiple power modules through the bus, automatically determining the target enabled power modules and their output power, achieving smooth operation without powering off, and supporting control authority transfer and high adaptability.
This ensures smooth operation of the power switchgear under power change triggering events, improves system reliability and flexibility, and reduces the need for manual intervention and power outage maintenance.
Smart Images

Figure CN120729014A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of power conversion, and in particular to a controller, a control method, a power switch system, a computer program product, and a computer-readable storage medium for a power switch cabinet. Background Art
[0002] Power conversion is used to convert electrical energy from one form to another, such as from AC to DC, to meet the power requirements of the load. Power switchgear is a common power conversion device used to achieve power conversion. Summary of the Invention
[0003] The embodiments of the present disclosure provide a controller, a control method, a power switch system, a computer program product, and a computer-readable storage medium for the operation of a power switch cabinet having multiple power modules. A communication mechanism is established based on a publish-subscribe model. In the event of a power change trigger event, the target enabled power module and its target output power are automatically determined without powering off the power switch cabinet and performing additional adaptation, thereby achieving smooth and normal operation of the power switch cabinet and realizing high adaptability on both the controller side and the power switch cabinet side.
[0004] An embodiment of the present disclosure provides a controller for controlling the operation of a power switch cabinet having multiple power modules, wherein the controller communicates with the multiple power modules in a publish-subscribe mode via a bus, and the controller is configured to determine a power change trigger event; in response to the power change trigger event, determine one or more target-enabled power modules to be enabled and the target output power of each of the one or more target-enabled power modules based on the target total output power of the power switch cabinet and an information table associated with the multiple power modules; and control the one or more target-enabled power modules to be enabled with their respective target output powers, wherein the information table records the operating status and optimal operating range of each power module in the multiple power modules.
[0005] According to an embodiment of the present disclosure, the operating state includes an initialization state, a waiting state, an enabled state, and an idle state.
[0006] According to an embodiment of the present disclosure, the determining of one or more target enabled power modules to be enabled and the target output power of each of the one or more target enabled power modules includes: determining one or more power modules in a waiting state or an enabled state among the multiple power modules as the one or more target enabled power modules based on the enabling strategy, so that the sum of the target output powers of the one or more target enabled power modules meets the target total output power and the respective target output powers of the one or more target enabled power modules fall within the respective optimal output ranges of the one or more target enabled power modules.
[0007] According to an embodiment of the present disclosure, the enabling strategy includes a minimum enabling strategy and a maximum enabling strategy, wherein the minimum enabling strategy minimizes the number of target enabling power modules to be enabled while considering the optimal output interval, and the maximum enabling strategy maximizes the number of target enabling power modules to be enabled while considering the optimal output interval.
[0008] According to an embodiment of the present disclosure, the information table further records the operating address information of each power module in the multiple power modules, wherein the operating address information of the multiple power modules is sorted according to the order in which the multiple power modules enter the initialization state.
[0009] According to an embodiment of the present disclosure, the method of determining one or more power modules in a waiting state or an enabled state among the multiple power modules as the one or more target enabled power modules based on the enabling strategy also includes: performing a first priority sorting on the power modules in the enabled state among the multiple power modules based on the running address information to determine a first sequence of power modules, and performing a second priority sorting on the power modules in a waiting state among the multiple power modules based on the running address information to determine a second sequence of power modules; and determining the one or more target enabled power modules based on the power modules in the first sequence and the power modules in the second sequence, wherein the priority of the power modules in the first sequence is higher than the priority of the power modules in the second sequence.
[0010] According to an embodiment of the present disclosure, controlling the one or more target-enabled power modules to be enabled with their respective target output powers includes: publishing a control message on the bus, the control message including the operating address information and target output power of each of the one or more target-enabled power modules.
[0011] According to an embodiment of the present disclosure, the controller is further configured to, in response to determining that a first power module among the plurality of power modules fails, update the information table to update the operating state of the first power module to the idle state.
[0012] According to an embodiment of the present disclosure, the information table also records the operating address information of each power module in the multiple power modules, and updating the information table also includes: updating the operating address information of the first power module to empty, and updating the operating address information of the power module in the waiting state or in the enabled state; and notifying the power module in the waiting state or in the enabled state of the updated operating address information via the publish-subscribe mode.
[0013] According to an embodiment of the present disclosure, the controller is further configured to update the information table based on elimination of a fault of the first power module, so as to update the operating state of the first power module to the waiting state.
[0014] According to an embodiment of the present disclosure, the controller is further configured to update the information table based on elimination of a fault of the first power module, and update the operating state of the first power module to the initialization state.
[0015] According to an embodiment of the present disclosure, the power change triggering event includes a change in the target total output power or a failure of a power module among the plurality of power modules.
[0016] According to an embodiment of the present disclosure, the controller is further configured to initialize information associated with a first power module in the information table based on power-on of a first power module among the power modules.
[0017] An embodiment of the present disclosure provides a control method for controlling the operation of a power switch cabinet having multiple power modules, wherein the multiple power modules communicate in a publish-subscribe mode via a bus, the method comprising: determining a power change trigger event; in response to the power change trigger event, determining one or more target-enabled power modules to be enabled and the target output power of each of the one or more target-enabled power modules based on the target total output power of the power switch cabinet and an information table associated with the multiple power modules; and controlling the one or more target-enabled power modules to be enabled with their respective target output powers, wherein the information table records the operating status and optimal operating range of each power module in the multiple power modules.
[0018] An embodiment of the present disclosure provides a computer program product, comprising computer instructions, which are used to implement the method according to one of the embodiments of the present disclosure when the computer instructions are executed by a processor.
[0019] An embodiment of the present disclosure provides a computer-readable storage medium having computer-executable instructions stored thereon. When the instructions are executed by a processor, the instructions are used to implement the method according to one of the embodiments of the present disclosure.
[0020] An embodiment of the present disclosure provides a power switch system, comprising a controller according to one of the embodiments of the present disclosure and a power switch cabinet having multiple power modules, wherein the controller communicates with the multiple power modules in a publish-subscribe mode via a bus, and the multiple power modules respectively provide power output to a load.
[0021] According to an embodiment of the present disclosure, in response to a failure of the controller, a first power module among the multiple power modules operates as the controller, wherein, based on the publish-subscribe mode, the first power module has an information table stored locally that is identical to the information table of the controller before the failure occurs.
[0022] According to an embodiment of the present disclosure, the first power module is a power module that first enters an initialization state among the power modules in a waiting state or an enabled state among the plurality of power modules. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] To more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some exemplary embodiments of the present disclosure, and those skilled in the art can derive other drawings based on these drawings without inventive effort.
[0024] Figure 1 A schematic diagram of a power switching system according to an embodiment of the present disclosure is shown;
[0025] Figure 2 A schematic flow chart of a method for controlling the operation of a power switchgear according to an embodiment of the present disclosure is shown;
[0026] Figure 3 A schematic diagram showing an information table according to an embodiment of the present disclosure;
[0027] Figure 4 A schematic diagram showing an operating state of a power module according to an embodiment of the present disclosure;
[0028] Figure 5 A schematic diagram illustrating the transition of the operating state of a power module from power-on to enablement according to an embodiment of the present disclosure is shown;
[0029] Figure 6 A schematic diagram illustrating the operating state transition of a power module in the event of a fault according to an embodiment of the present disclosure is shown;
[0030] Figure 7 A schematic diagram illustrating a computer program product according to an embodiment of the present disclosure; and
[0031] Figure 8 A schematic diagram of a computer-readable storage medium according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solutions and advantages of the present disclosure more apparent, the exemplary embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments of the present disclosure, and it should be understood that the present disclosure is not limited to the exemplary embodiments described herein.
[0033] In this specification and the accompanying drawings, substantially the same or similar steps and elements are denoted by the same or similar reference numerals, and repeated descriptions of these steps and elements will be omitted. At the same time, in the description of the present disclosure, the terms "first", "second", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance or ranking.
[0034] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present disclosure pertains. The terms used herein are for the purpose of describing embodiments of the present invention only and are not intended to limit the present invention.
[0035] At present, the mainstream power switch cabinets include power switch cabinets with tower structure and power switch cabinets with power modules.
[0036] For power switch cabinets with a tower-type architecture, once a failure occurs, the entire cabinet needs to be replaced, which is costly and has poor reliability. In order to achieve redundant configuration, two tower-type power switch cabinets of the same capacity are often required, which is costly.
[0037] Power switchgear using power modules, which employ multiple converters connected in parallel as power modules, offers advantages in terms of cost, reliability, and redundancy. However, current power switchgear using power modules has complex communication mechanisms and control methods. When the operation of a power module needs to be changed, for example due to a power module failure or a change in load-side power demand, the entire power switchgear often needs to be powered off for adaptation, including manual adaptation on the computer side, to restore normal operation of the power switchgear.
[0038] To address the aforementioned prior art issues, such as requiring the entire power switch cabinet to be powered off for adaptation when power module operation needs to be changed, the present disclosure provides a controller, control method, power switch system, computer program product, and computer-readable storage medium for operating a power switch cabinet having multiple power modules. The controller, control method, power switch system, computer program product, and computer-readable storage medium establish a communication mechanism based on a publish-subscribe model. In response to a power change trigger event, the controller automatically determines the target enabled power module and its target output power, without requiring power off and / or manual adaptation of the power switch cabinet. Furthermore, this determination can prioritize specific power modules based on an enabling strategy and priority, thereby improving the operational reliability of the power switch cabinet. Furthermore, upon power-on, the power module automatically completes initialization, enabling it to be enabled without manual configuration, enabling the immediate addition of new power modules. Furthermore, the controller supports the transfer of control authority between the controller and the power modules, achieving highly adaptive operation on both the controller and the power switch cabinet side.
[0039] To facilitate description of the present disclosure, concepts related to the present disclosure are introduced below.
[0040] Publish-subscribe model: also known as the producer-consumer model. The sender of a message (called a publisher) does not send the message directly to a specific receiver (called a subscriber). Instead, it broadcasts the message through a message channel so that subscribers who subscribe to the message topic can obtain the message.
[0041] Figure 1 A schematic diagram of a power switching system according to an embodiment of the present disclosure is shown.
[0042] like Figure 1 As shown, the power switch system 100 according to the embodiment of the present disclosure may include, for example, a controller 101 and a power switch cabinet 102 .
[0043] For example, the power switch system 100 may be used to implement power conversion, the controller 101 may be used to control the operation of the power switch cabinet 102 to meet the power demand of the load side, and the power switch cabinet 102 may be used to provide power output to the load.
[0044] For example, the controller 101 can be integrated into the power switch cabinet 102 to achieve better compatibility, or the controller 101 can be arranged outside the power switch cabinet 102, for example, remotely arranged in a control room, to meet the user's remote control requirements. The controller 101 can be used to control the operation of multiple power switch cabinets 102.
[0045] For example, the power switch cabinet 102 may include a plurality of power modules, and in this example, four power modules are schematically shown, namely, power module 1021, power module 1022, power module 1023, and power module 1024. It will be understood that the present disclosure does not limit the number of power modules. The power modules may, for example, respectively have power module controllers (not shown). The plurality of power modules respectively provide power output to a load, such as a load L, via a power line PL, wherein the maximum power output and actual power output of each of the plurality of power modules may be the same or different. A disconnecting device (not shown), such as an isolating switch or a contactor, is respectively provided between the plurality of power modules and the power line PL so as to power off the particular power module when a fault occurs in the particular power module. The disconnecting device may be electrically controlled or manually controlled.
[0046] According to an embodiment of the present disclosure, the controller 101 and the plurality of power modules (power module 1021 , power module 1022 , power module 1023 and power module 1024 ) may communicate in a publish-subscribe mode via a bus, such as a serial bus or a parallel bus.
[0047] The publish-subscribe model achieves loose coupling, which means that multiple power modules that need to communicate can be decoupled, and each power module can be managed independently. Even if some power modules fail to operate, it will not affect the overall management of message publishing and subscription.
[0048] Furthermore, the publish-subscribe model enables publishers to quickly publish messages to a message channel, i.e., a bus, and then return to their primary operational tasks without having to wait for subscribers to complete the tasks contained in the message and / or return confirmation messages indicating task completion. Both the controller 101 and the multiple power modules can act as both publishers and subscribers. For example, the primary operational task for the controller is to control the overall operation of the power switchgear, while for the power modules it is to output power. Tasks contained in messages can include, for example, assigning operational address information to a specific power module or enabling a specific power module.
[0049] In addition, by utilizing the publish-subscribe mode, when the controller 101 publishes, for example, a control message, multiple power modules can simultaneously obtain the control message and multiple power modules can simultaneously respond.
[0050] Furthermore, using the publish-subscribe model, messages are published to the bus, rather than to the objects pointed to by the message content, so that all subscribers can obtain the message. In this way, for example, when the controller 101 assigns operating address information to power module 1021 or enables power module 1021, other power modules can also learn about the operating address information of power module 1021 or that power module 1021 has been enabled. Or, for example, when power module 1021 fails and publishes a fault message, the controller 101 and the other power modules can both learn about the failure of power module 1021.
[0051] Preferably, the interfaces of the multiple power modules can support hot plugging, for example, so that the power switch cabinet will not be damaged during hot plugging and unplugging, and normal communication of other participants on the bus will not be affected.
[0052] According to an embodiment of the present disclosure, an adaptive power switch system 100 is provided, in which a controller 101 is used to control the operation of a power switch cabinet 102, so that in the event of a power change trigger event, normal operation of the power switch cabinet that meets the power requirements of the load side can be achieved without powering off the power switch cabinet 102 and additionally adapting multiple power modules, thereby achieving high adaptability on both the controller side and the power switch cabinet side.
[0053] Figure 2 A schematic flow chart of a control method 200 for the operation of a power switch cabinet according to an embodiment of the present disclosure is shown. The control method 200 may be, for example, Figure 1 The controller 101 shown in FIG. Figure 2 As shown, the control method 200 may include steps S201 to S203.
[0054] In step S201, a power change triggering event may be determined. This power change triggering event may, for example, include a change in the target total output power of the power switch cabinet or a failure of a power module among multiple power modules of the power switch cabinet. The situation where the load-side power demand is obtained as the target total output power when the power switch cabinet is initially powered on may also be considered a change in the target total output power.
[0055] After the power switch cabinet is initially powered on, the controller controls the operation of multiple power modules based on the target total output power to meet the power demand on the load side. When the power demand on the load side remains unchanged and the multiple power modules are in normal status, the controller continues this operation. However, if a power change trigger event occurs, such as an increase or decrease in the power demand on the load side, which causes the target total output power of the power switch cabinet to increase or decrease, or a failure of a specific power module causes the power output of other power modules to need to be changed to meet the target total output power, the controller controls the operation of the multiple power modules so that the power output of the power switch cabinet can always meet the power demand on the load side, ensuring that the power switching system achieves normal power conversion without causing unstable power output (or even unable to output) or requiring power outages for maintenance and / or adaptation.
[0056] Therefore, the controller determines a power change trigger event. According to an embodiment of the present disclosure, the controller can actively determine a power change trigger event, for example, by detecting the power demand on the load side and performing heartbeat monitoring on multiple power modules, wherein the heartbeat monitoring confirms that the power module has not failed by periodically obtaining a "heartbeat" signal (or a non-fault signal) from the power module. Alternatively, the controller can passively determine a power change trigger event, for example, by receiving a changed power demand on the load side and a fault signal issued by a power module in the event of a fault.
[0057] For example, a power change trigger event can be determined periodically or based on an event trigger. Periodically (e.g., every minute or every hour) determining whether a power change trigger event has occurred can reduce operating costs for the power switch system because, in actual operation of the power switch system, power change trigger events occur less frequently. Based on an event trigger, determining a power change trigger event can achieve an immediate response and improve the operational reliability of the power switch system.
[0058] In response to a power change trigger event, in step S202, for example, one or more target enabled power modules to be enabled and the target output power of each of the one or more target enabled power modules can be determined based on the target total output power of the power switch cabinet and an information table associated with multiple power modules.
[0059] Alternatively, the target output power may be given in the form of a current sharing coefficient, which represents the percentage of the rated power output by the power module.
[0060] The information table is used to record the information of each power module in the plurality of power modules. For example, the information table can record the operating status and optimal operating range of each power module in the plurality of power modules. For further description of the information table, see Figure 3 .
[0061] Figure 3 A schematic diagram of an information table according to an embodiment of the present disclosure is shown.
[0062] like Figure 3 As shown in FIG, the information table can record the operating status and optimal operating range of each power module in the multiple power modules. Figure 3 As further shown, the information table may also record module identification codes and operation address information.
[0063] The module identification code is specific to the power module and does not change. For example, the module identification codes of four power modules are shown as N1, N2, N3, and N4, respectively. These four power modules are referred to as power module N1, power module N2, power module N3, and power module N4, respectively. The module identification code is, for example, the MAC address of the power module.
[0064] Operational address information refers to the operational addresses assigned by the controller to multiple power modules within the operational address space. Only after these operational address information is assigned can the multiple power modules be properly enabled. Operational address information is specific to each power module but may change, for example, by being reassigned. For example, the operational address information for power modules N1, N2, N3, and N4 is shown as #1, #2, #3, and #4, respectively.
[0065] The operating state of the power module may include, for example, the initialization state, the waiting state, the enabled state, and the idle state. Figure 4 Provide a detailed description.
[0066] Figure 4 A schematic diagram illustrating an operating state of a power module according to an embodiment of the present disclosure is shown.
[0067] According to an embodiment of the present disclosure, a power module powered on in a power switch cabinet is considered a power module among the multiple power modules of the power switch cabinet. The power module powered on in the power switch cabinet may include a power module that was inserted into the power switch cabinet before the power switch cabinet was put into operation but did not have a closed disconnect device (e.g., a contactor), or a power module that was newly inserted into the power switch cabinet after the power switch cabinet was put into operation.
[0068] After the power module is powered on, its operating state is divided into four states to achieve smooth and seamless control management without the situation of not knowing the current operating state of the power module, thereby supporting the smooth operation of the power switch cabinet.
[0069] like Figure 4As shown, the operating states of the power module may include, for example, an initialization state 401 , a waiting state 402 , an enabled state 403 and an idle state 404 .
[0070] To describe the operating status, the first power module (and the second power module, etc.) among multiple power modules is taken as an example. It should be understood that the ordinal words such as "first" and "second" are not restrictive, and the first power module (and the second power module, etc.) can be any power module among the multiple power modules.
[0071] After the first power module is powered on, it automatically enters the initialization state 401. In the initialization state 401, the first power module notifies the controller 101 of its power-on status, for example by publishing a power-on message, reports its module identification code (for example, N1) and optimal operating range (for example, 20W to 40W), and requests an address assignment from the controller 101. Based on the request, the controller 101 assigns an operating address (for example, #1) to the first power module. Based on the above information reported by the first power module and the assigned operating address, the controller 101 initializes information associated with the first power module in the information table, for example, recording the module identification code, operating address information, optimal operating range, and operating status of the first power module in the information table (this is recorded in the waiting state 402). After this, the controller 101 publishes an address assignment message assigning the operating address information to the first power module based on a publish-subscribe model. The address assignment message, for example, includes information associated with the first power module in the information table, for example, assigning operating address information #1 to the power module with a module identification code of N1 and an optimal operating range of 20W to 40W.
[0072] After the address allocation message is published to the bus, the power module with the module identification code N1 (the first power module in this example) and other power modules can obtain the message and learn the above information associated with the first power module. The first power module then enters the waiting state 402.
[0073] In the waiting state 402 , the first power module is ready to be enabled to output power and is waiting to be enabled.
[0074] When it is determined that the first power module is to be enabled, that is, the first power module is determined as the target enabled power module, the controller 101 updates the operating state of the first power module to the enabled state 403 in the information table, and the first power module enters the enabled state 403 from the waiting state 402.
[0075] The first power module learns from the control message that it is enabled and the power it should output, i.e., the target output power. The control message includes, for example, the target enabled power modules and their respective target output powers, e.g., operating the power module with the module identification code N1 at an output power of 30 W and the power module with the module identification code N2 at an output power of 20 W.
[0076] After the control message is published to the bus, the power module with module identification code N1, the power module with module identification code N2 and other power modules can obtain the control message. After knowing the content of the control message, the power module with module identification code N1 and the power module with module identification code N2 are enabled at the same time according to their respective target output powers.
[0077] In the enabled state 403 , the first power module outputs power at the target output power, so as to output power together with other power modules (if any) in the enabled state 403 to meet the target total output power of the power switch cabinet.
[0078] To more easily understand the operating state transition of the power module in the above process, for example, Figure 5 A schematic diagram illustrating operation state transition of a power module from power-on to enablement according to an embodiment of the present disclosure is shown.
[0079] like Figure 5 As shown, taking the power-on of the first power module as an example, the power switch cabinet includes, for example, the first power module and other power modules (not shown). After power-on, the first power module waits for the allocation of operating address information and enters the initialization state 401. The controller 101 actively (for example, through monitoring) or passively (for example, through the power-on message of the first power module) learns that the first power module is powered on, initializes the information associated with the first power module in the information table (for example, records its module identification code, optimal output range, etc.), and then issues an allocation address message for allocating operating address information to the first power module and updates the operating state of the first power module in the information table to the waiting state 402. The first power module obtains the allocation address message and enters the waiting state 402. In the subsequent operation, if the controller 101 determines to enable the first power module, it issues a corresponding control message and updates the operating state of the first power module in the information table to the enabled state 403. The first power module obtains the control message, enters the enabled state 403 and is enabled with the target output power. For a detailed description of the determination process, please refer to other content sections of this disclosure. In the case of a failure of the first power module, the controller 101 updates the operating state of the first power module in the information table to the idle state 404. Since the process from the initialization state 401 to the waiting state 402 is very short, the case of a failure of the power module in the initialization state 401 is not described additionally. Figure 4 The path from the initialization state 401 to the idle state 404 is not shown in the figure. It should be understood that a failure of the power module in the initialization state 401 also falls into the case of a power module failure described in the present disclosure.
[0080] The first power module, for example, actively enters the idle state 404 and issues a fault message after detecting a fault, or passively enters the idle state 404 by obtaining a control message after the controller detects a fault, for example.
[0081] To more easily understand the operating state transition of the power module in the above process, for example, Figure 6 The diagram exemplarily shows the operating state transition of a power module in the event of a fault according to an embodiment of the present disclosure.
[0082] like Figure 6 As shown, taking the failure of the first power module as an example, the power switch cabinet includes, for example, the first power module, the second power module, the third power module and possibly other power modules (not shown). Figure 6 As shown, for example, immediately before the first power module fails, the first power module and the second power module are in the enabled state 403, and the second power module is in the waiting state 402. Based on the failure of the first power module, for example, a fault message is sent to the bus, and the controller 101 and the second power module and the third power module can simultaneously obtain the fault message. It should be noted that the lines with arrows pointing to the controller 101, the second power module, and the third power module in the figure are staggered up and down only to avoid confusion, and do not represent a sequence. After determining the power change trigger event, the controller 101 determines the target enabled power module and its target output power, for example, determining that the target enabled power module is the second power module and the third power module. Then, the controller 101 issues a corresponding control message and updates the operating status of the power modules involved in the information table, that is, the first power module enters the idle state 404, the second power module remains in the enabled state 403, and the third power module enters the enabled state 403. The first power module, the second power module, and the third power module simultaneously receive the control message (again, the lines with arrows are staggered to avoid confusion and do not represent a sequential order), and then perform corresponding operating state transitions and actions according to the control message. For a detailed description of this determination process and control messages, please refer to other contents of this disclosure.
[0083] In the idle state 404, the first power module cannot be enabled and waits for fault elimination. Fault elimination may require the first power module to be powered off, or it may not require the first power module to be powered off. According to the embodiments of the present disclosure, the description of powering on the power module is intended to be the first power-on of the power module in the power switch cabinet. Powering on a power module that has been powered on, for example, after being powered off for troubleshooting, is not considered as a power-on operation. Figure 4 4. The situation shown in FIG. 4 is from powering up the power module to the initialization state 401.
[0084] After the fault of the first power module is eliminated, the first power module enters the initialization state 401 or the waiting state 402 again from the idle state 404. At the same time, the controller 101 updates the operating state of the first power module to the initialization state 401 or the waiting state 402 in the information table accordingly.
[0085] In actual operation, if the message size is limited and cannot carry all the information to be published at once, according to the embodiments of the present disclosure, publishing a message, such as publishing a control message, can be achieved by publishing multiple control messages. For example, a first control message includes the target power module to be enabled, a second control message includes the target output power, and a third control message includes the instruction to start enabling. By continuously publishing the first, second, and third control messages in sequence, the effect of publishing a control message including all the information to be published can also be achieved. Those skilled in the art may make modifications based on actual application scenarios without departing from the scope of protection of the present disclosure.
[0086] According to the embodiments of the present disclosure, there is no need to separately send a message to cause the power module to transition to a new operating state. Instead, after a message (whether from the controller 101 or the power module) is issued, the controller 101 updates a locally stored information table. As described below, if a locally stored information table is also established and updated in the power module, then similarly, after a message (whether from the controller 101 or the power module) is issued, the power module will also update the locally stored information table.
[0087] If the power switch cabinet is powered off, the power modules are no longer in operation.
[0088] Return to reference Figure 3 According to an embodiment of the present disclosure, the operation address information of the multiple power modules can be sorted according to the order in which the multiple power modules enter the initialization state.
[0089] In other words, operating address information is assigned to power modules on a first-come, first-served basis, such that power modules that enter the initialization state 401 earlier are assigned operating address information that is earlier in the operating address space. If a power module enters the initialization state 401 multiple times during operation, the original operating address information of the power module is cancelled, and its latest operating address information is assigned based on the order in which it entered the initialization state the most recently.
[0090] The optimal operating range is the range within which a power module's optimal output power falls, including both upper and lower limits. For example, the rated output power of power modules N1, N2, and N4 is 50W, with an optimal operating range of 20W to 40W, an upper limit of 40W, and a lower limit of 20W. Power module N3 has a rated output power of 60W and an optimal operating range of 30W to 40W, with an upper limit of 40W and a lower limit of 30W.
[0091] Return to Figure 2 According to an embodiment of the present disclosure, step S202 may include determining one or more power modules in a waiting state or an enabled state among the multiple power modules as one or more target enabled power modules based on the enabling strategy, so that the sum of the target output powers of the one or more target enabled power modules meets the target total output power and the respective target output powers of the one or more target enabled power modules fall within the respective optimal output ranges of the one or more target enabled power modules.
[0092] According to the embodiments of the present disclosure, on the one hand, the target total output power is met, so that the power switch cabinet completes the task of outputting power according to the required power on the load side without any operational fluctuations; on the other hand, the target output powers of the target enabled power modules are respectively made to fall within their optimal output ranges, thereby further improving the operational reliability of the target enabled power modules and the entire power switch cabinet, and being able to extend the service life of the target enabled power modules and reduce the risk of failure of the target enabled power modules.
[0093] The activation policy may include, for example, a minimum activation policy and a maximum activation policy.
[0094] The minimum enabling strategy minimizes the number of target enabled power modules to be enabled while considering the optimal output interval, and the maximum enabling strategy maximizes the number of target enabled power modules to be enabled while considering the optimal output interval.
[0095] As an example, for ease of description, assuming that the target total output power is 160w, there are 8 power modules in a waiting state or an enabled state, and their optimal output intervals are all 20w to 40w, the above-mentioned enabling strategy is described. According to the minimum enabling strategy, the number of target enabling power modules to be enabled will be calculated based on the upper limit of the optimal output interval, 40w, and the number of target enabling power modules to be enabled is 4 and their target output power is 40w. According to the maximum enabling strategy, the number of target enabling power modules to be enabled will be calculated based on the lower limit of the optimal output interval, 20w, and the number of target enabling power modules to be enabled is 8 and their target output power is 20w. It can be understood that for simplicity, it is assumed that the optimal output intervals of each power module are the same. In fact, the optimal output intervals of each power module can be different, and the number of target enabling power modules to be enabled and the target output power of each target enabling power module can be calculated according to various known optimization algorithms.
[0096] Of course, the minimum and maximum activation strategies do not necessarily yield different determination results. For example, if the target total output power is 160W, but there are only four power modules in the waiting or activated state, and their optimal output ranges are all between 20W and 40W, both the minimum and maximum activation strategies will determine that the number of target activated power modules to be activated is 4 and their target output power is 40W, because the optimal output range must be met.
[0097] By using the maximum enabling strategy, the redundancy of the enabled power modules can be ensured, and the reliability of the power switch cabinet operation can be improved. By using the minimum enabling strategy, lower cost operation can be achieved.
[0098] It should be understood that the minimum enabling policy and the maximum enabling policy are merely exemplary examples, and other enabling policies can also be combined with the embodiments of the present disclosure.
[0099] Preferably, if the power modules in the standby or enabled state are insufficient to support the target total output power according to the corresponding enabling policy and within the power module's optimal output range, the controller 101 issues an alarm signal to prompt the user to add new power modules to the power switch cabinet. This prevents load impacts or even power outages caused by insufficient output power from the power switch cabinet, further improving the reliability of the power switch cabinet.
[0100] Preferably, in the case of an alarm signal, powering on the power module also triggers step S202 , so as to re-determine the target enabled power module and its target output power.
[0101] Preferably, the activation strategy can be changed during operation of the power switch cabinet.
[0102] According to an embodiment of the present disclosure, determining one or more power modules in a waiting state or an enabled state among a plurality of power modules as one or more target enabled power modules based on an enabling policy may further include: performing a first priority sorting on the enabled power modules among the plurality of power modules based on operating address information to determine a first sequence of power modules, performing a second priority sorting on the waiting power modules among the plurality of power modules based on the operating address information to determine a second sequence of power modules; and determining one or more target enabled power modules based on the power modules in the first sequence and the power modules in the second sequence. The priority of the power modules in the first sequence may be higher than the priority of the power modules in the second sequence.
[0103] That is, when a power change trigger event is determined, there may already be power modules that are already in an enabled state or a waiting state. When determining target enabled power modules to be enabled in response to the power change trigger event, priority is given to the power modules that are already in an enabled state, and the power modules that are already in an enabled state are sorted by a first priority based on the operating address information. For example, a power module with an earlier operating address information has a higher priority, thereby obtaining a first sequence of power modules.
[0104] Similarly, the power modules originally in the waiting state are sorted by a second priority based on the operation address information. For example, the power modules with earlier operation address information have higher priorities, thereby obtaining the power modules in the second sequence.
[0105] Then, the target enabled power module is determined based on the power modules in the first sequence and the power modules in the second sequence. The priority of the power modules in the first sequence is higher than that of the power modules in the second sequence, and the power modules in the first sequence and the second sequence are also prioritized.
[0106] For example, the power modules of the first sequence are determined to be power modules A, B, C, and D, and the power modules of the second sequence are determined to be power modules E, F, and G. Subsequently, power modules A, B, C, and D are prioritized as target enabled power modules. If power modules A, B, C, and D cannot meet the target total output power using them as target enabled power modules, power module E is prioritized as the target enabled power module, and so on. Conversely, if the target total output power can be met using only a portion of power modules A, B, C, and D as target enabled power modules, power module D is prioritized as the target enabled power module, and so on.
[0107] In this way, the order of the operation address information of the target enabled power modules to be enabled is kept unchanged, which is advantageous in the case where re-addressing is required as will be described below.
[0108] Next, in step S203 , for example, one or more target enabled power modules may be controlled to be enabled at their respective target output powers, so that the power switch cabinet achieves the target total output power.
[0109] According to an embodiment of the present disclosure, step S203 may include, for example: issuing a control message on the bus, where the control message may include, for example, the operating address information and the target output power of each of the target enabled power modules.
[0110] Illustratively, the control message may include, for example: the power module with operating address information #1 is enabled with a target output power of 20W, the power module with operating address information #2 is enabled with a target output power of 20W, and the power module with operating address information #3 is enabled with a target output power of 20W.
[0111] According to an embodiment of the present disclosure, each time a power change trigger event occurs, target enabled power modules and their respective target output powers are determined in response to the power change trigger event. In response to a new power change trigger event, a new control message is issued, which includes the target enabled power modules to be enabled and their respective target output powers. Power modules that were originally enabled may continue to be enabled or may no longer be enabled (for example, due to a decrease in the target total output power).
[0112] For example, if it is determined that the target enabled power modules to be enabled do not include the first power module that was originally in the enabled state, it is not necessary to add an instruction to disable the first power module in the new control message. After the first power module obtains the new control message from the bus and learns that there is no instruction for itself, it will no longer be enabled. The state transition of the first power module corresponds to, for example, Figure 4 The path from the enabled state 403 to the wait state 402.
[0113] Alternatively, the control message may include, for example, the module identification code and target output power of each of the target enabled power modules. In this case, illustratively, the control message may include, for example, that the power module with module identification code N1 is enabled with a target output power of 20 W, the power module with module identification code N2 is enabled with a target output power of 20 W, and the power module with module identification code N3 is enabled with a target output power of 20 W.
[0114] According to an embodiment of the present disclosure, in response to determining that a first power module among a plurality of power modules fails, the information table is updated to update the operating state of the first power module to an idle state. The state transition of the first power module corresponds to, for example, Figure 4 Path from the wait state 402 to the idle state 404 or from the enabled state 403 to the idle state 404.
[0115] Optionally, when the first power module enters the idle state, the operation address information of the first power module is retained. In the subsequent process, based on the elimination of the fault of the first power module, the information table is updated to update the operation state of the first power module to the waiting state, that is, the first power module does not need to be assigned new operation address information and can directly wait to be enabled. The state transition of the first power module corresponds to, for example, Figure 4 The path from the idle state 404 to the wait state 402.
[0116] Alternatively, when the first power module enters the idle state, the operating address information of the first power module is updated to special address information, such as null, and the operating address information of the power modules in the waiting state or the enabled state is updated. That is, the power modules in the waiting state or the enabled state are re-addressed (or reallocated addresses), and the updated operating address information is notified to the power modules in the waiting state or the enabled state via a publish-subscribe model. The special address information is address information in the operating address space that will not be allocated to power modules in the waiting state or the enabled state.
[0117] In this way, for example, when the power switch cabinet has been in continuous operation for a long time and multiple power modules have been replaced, the operating address information is no longer fixedly assigned to a specific power module. This effectively avoids the problem of insufficient operating address space, further supporting the power switch cabinet to operate for a long time without having to power off.
[0118] In this case, based on the elimination of the fault of the first power module, the information table is updated, and the operating state of the first power module is updated to the initialization state, so as to allocate operating address information to the first power module so that the first power module can be enabled. The state transition of the first power module corresponds to, for example, Figure 4 The path from the idle state 404 to the initialized state 401.
[0119] Optionally, the information table is established and updated only in the controller used to execute the control method, and the controller controls the power switch cabinet based on the information in the information table. For example, when determining the target enabled power module to be enabled, it can only be selected from the power modules in the waiting state or the enabled state.
[0120] Optionally, for example, according to Figure 1 In a power switch system, an information table can also be established and updated in each of the multiple power modules. This is achieved based on the publish-subscribe model according to the embodiments of the present disclosure. Because messages such as address allocation messages, control messages, and fault messages are published to the bus, participants in the bus, namely the controller and each power module, can obtain the messages and learn the message content.
[0121] In this case, in response to a controller failure, the first power module among the plurality of power modules may operate as the controller. Based on the publish-subscribe model, the first power module may have an information table stored locally that is the same as the information table of the controller before the failure.
[0122] In this way, in the event of a fault on the controller side, the power module is used to temporarily take over some of the functions of the controller, such as allocating operating address information to other power modules, determining the target enabled power modules to be enabled and their respective target output powers, etc., so as to normally execute the control method according to the embodiment of the present disclosure. After the fault of the controller is eliminated, the control authority is returned and the controller obtains the latest information in the information table to ensure the smooth operation of the power switch cabinet.
[0123] Preferably, the first power module operating as the controller can be, for example, the power module that first enters the initialization state among the power modules in the waiting state or the enabled state among the multiple power modules. The power module that first enters the initialization state and is capable of normal operation has an information table that is identical to or most consistent with the information table in the controller, because the power module that first enters the initialization state can not only obtain information associated with itself, but also always obtain information associated with power modules that enter the initialization state after it.
[0124] Similar to determining a power module failure, a controller failure may also be determined actively or passively, for example, by the controller actively issuing a fault message or the first power module in a system of multiple power modules performing heartbeat monitoring on the controller.
[0125] According to an embodiment of the present disclosure, a control method for controlling the operation of a power switch cabinet having multiple power modules establishes a communication mechanism based on a publish-subscribe model, ensuring that failures of a communication participant do not affect the normal communication of other communication participants and that synchronized messages are obtained. In response to a power change trigger event, the method automatically determines the target enabled power module and its target output power, without requiring power-off of the power switch cabinet and / or manual adaptation. Furthermore, this determination can prioritize specific power modules based on an enabling strategy and priority, thereby improving the operational reliability of the power switch cabinet. Furthermore, upon power-on, the power module automatically completes initialization, enabling it to be enabled without manual configuration, enabling the immediate addition of new power modules. Furthermore, the power module interface supports hot swapping, ensuring that the normal operation of the power switch cabinet is not affected even when the power module needs to be powered off for maintenance. Furthermore, the method supports transfer of control authority between the controller and the power module, achieving highly adaptive operation on both the controller and the power switch cabinet side.
[0126] The present disclosure also relates to a controller for executing various aspects of the control method 200 described above, such as the controller described above with reference to Figure 1 The controller 101 is described.
[0127] According to an embodiment of the present disclosure, a controller for controlling the operation of a power switch cabinet having multiple power modules establishes a communication mechanism based on a publish-subscribe model, ensuring that failures of a communication participant do not affect the normal communication of other communication participants and that synchronized messages are obtained. In response to a power change trigger event, the controller automatically determines the target enabled power module and its target output power, without requiring power-off of the power switch cabinet and / or manual adaptation. Furthermore, this determination can prioritize specific power modules based on an enabling strategy and priority, thereby improving the operational reliability of the power switch cabinet. Furthermore, upon power-on, the power module automatically completes initialization, enabling it to be enabled without manual configuration, enabling the immediate addition of new power modules. Furthermore, the power module interface supports hot swapping, ensuring that the normal operation of the power switch cabinet is not affected even when the power module needs to be powered off for maintenance. Furthermore, the controller supports the transfer of control authority between the controller and the power module, achieving highly adaptive operation on both the controller and the power switch cabinet side.
[0128] The present disclosure also relates to a power switch system comprising the above controller and a power switch cabinet having a plurality of power modules, such as the above reference Figure 1 The power switch system 100 described herein can communicate with the multiple power modules via a bus in a publish-subscribe mode, and the multiple power modules can respectively provide power output to the load.
[0129] In response to the controller failing, a first power module among the plurality of power modules may operate as the controller.Based on the publish-subscribe model, the first power module may have an information table stored locally that is the same as the information table of the controller before the failure.
[0130] The first power module may be a power module that first enters an initialization state among the power modules in a waiting state or an enabled state among the plurality of power modules.
[0131] According to the power switch system of the embodiments of the present disclosure, a communication mechanism is established based on a publish-subscribe model, ensuring that the failure of a communication participant does not affect the normal communication of other communication participants and ensuring the synchronous acquisition of messages or messages. In response to the determination of a power change trigger event, the target power module to be enabled and its target output power are automatically determined without powering off the power switch cabinet and / or manually adapting it. In addition, this determination can prioritize specific power modules based on an activation strategy and priority, thereby improving the operational reliability of the power switch cabinet. Furthermore, when the power module is powered on, it is automatically initialized, allowing it to be directly enabled without manual configuration, allowing new power modules to be added at any time. Furthermore, the power module interface supports hot swapping, ensuring that the normal operation of the power switch cabinet is not affected even when the power module needs to be powered off for maintenance. Furthermore, the control authority transfer between the controller and the power module is supported, ensuring the normal operation of the power switch cabinet even in the event of a controller-side failure. The power switch system according to the embodiments of the present disclosure achieves highly adaptive operation on both the controller and the power switch cabinet side.
[0132] Figure 7 A schematic diagram of a computer program product 700 according to an embodiment of the present disclosure is shown.
[0133] like Figure 7 As shown, the computer program product 700 may include computer instructions 701. When the computer instructions 701 are executed by a processor, they may be used to implement the method described in accordance with the embodiment of the present disclosure.
[0134] According to the computer program product of the embodiment of the present disclosure, a communication mechanism can be established based on a publish-subscribe model, so that the failure of a communication participant does not affect the normal communication of other communication participants, and the synchronous acquisition of messages or messages is guaranteed; in response to determining a power change trigger event, the target enabled power module and its target output power are automatically determined without the need to power off the power switch cabinet and / or manually adapt. In addition, in this determination, specific power modules can be given priority based on the enabling strategy and priority, thereby improving the operational reliability of the power switch cabinet. In addition, initialization is automatically completed when the power module is powered on, so that it can directly wait to be enabled without manual configuration, and new power modules can be added at any time. Moreover, the interface of the power module supports hot plugging, so that the normal operation of the power switch cabinet is not affected when the power module needs to be powered off for maintenance. Moreover, the control authority transfer between the controller and the power module is supported, and highly adaptive operation is achieved on both the controller side and the power switch cabinet side.
[0135] Figure 8 A schematic diagram of a computer-readable storage medium 800 according to an embodiment of the present disclosure is shown.
[0136] like Figure 8 As shown, a computer-readable storage medium 800 may store computer-executable instructions 801. When the computer-executable instructions 801 are executed by a processor, they may be used to implement the method described in the embodiment of the present disclosure.
[0137] The computer-readable storage medium in the embodiments of the present disclosure can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM) or a flash memory. Volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DR RAM). It should be noted that the memory of the method described herein is intended to include, but is not limited to, these and any other suitable types of memory. It should be noted that the memory of the method described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0138] According to the computer-readable storage medium of the embodiment of the present disclosure, a communication mechanism can be established based on a publish-subscribe model, so that the failure of a communication participant does not affect the normal communication of other communication participants, and the synchronous acquisition of messages or messages is guaranteed; in response to determining a power change trigger event, the target enabled power module and its target output power are automatically determined without the need to power off the power switch cabinet and / or manually adapt. In addition, in this determination, specific power modules can be given priority based on the enabling strategy and priority, thereby improving the operational reliability of the power switch cabinet. In addition, initialization is automatically completed when the power module is powered on, so that it can directly wait to be enabled without manual configuration, and new power modules can be added at any time. Moreover, the interface of the power module supports hot plugging, so that the normal operation of the power switch cabinet is not affected when the power module needs to be powered off for maintenance. Moreover, the control authority transfer between the controller and the power module is supported, and highly adaptive operation is achieved on both the controller side and the power switch cabinet side.
[0139] It should be noted that the flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architectures, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a portion of code, which contains at least one executable instruction for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the boxes can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or can be implemented using a combination of dedicated hardware and computer instructions.
[0140] In general, various example embodiments of the present disclosure may be implemented in hardware or dedicated circuitry, software, firmware, logic, or any combination thereof. Certain aspects may be implemented in hardware, while other aspects may be implemented in firmware or software that may be executed by a controller, microprocessor, or other computing device. When various aspects of the embodiments of the present disclosure are illustrated or described as block diagrams, flow charts, or using some other graphical representation, it will be understood that the blocks, devices, systems, techniques, or methods described herein may be implemented, as non-limiting examples, in hardware, software, firmware, dedicated circuitry or logic, general-purpose hardware or a controller or other computing device, or some combination thereof.
[0141] The exemplary embodiments of the present disclosure described in detail above are merely illustrative and not restrictive. Those skilled in the art will appreciate that various modifications and combinations may be made to these embodiments or their features without departing from the principles and spirit of the present disclosure, and such modifications should fall within the scope of the present disclosure.
Claims
1. A controller for controlling the operation of a power switch cabinet having a plurality of power modules, wherein the controller communicates with the plurality of power modules via a bus in a publish-subscribe mode. The controller is configured to: determining a power change trigger event; In response to the power change trigger event, determining one or more target enabled power modules to be enabled and target output powers of the one or more target enabled power modules based on the target total output power of the power switch cabinet and an information table associated with the plurality of power modules; as well as controlling the one or more target enabled power modules to be enabled at their respective target output powers, The information table records the operating status and optimal operating range of each power module in the plurality of power modules.
2. The controller according to claim 1, wherein: The operating states include an initialization state, a waiting state, an enable state, and an idle state.
3. The controller according to claim 2, wherein: The determining of one or more target enabled power modules to be enabled and target output powers of the one or more target enabled power modules includes: Based on the enabling strategy, one or more power modules in the waiting state or the enabled state among the multiple power modules are determined as the one or more target enabled power modules, so that the sum of the target output powers of the one or more target enabled power modules meets the target total output power and the respective target output powers of the one or more target enabled power modules fall within the respective optimal output ranges of the one or more target enabled power modules.
4. The controller according to claim 3, wherein: The activation strategy includes a minimum activation strategy and a maximum activation strategy, wherein: The minimum enabling strategy minimizes the number of target enabled power modules to be enabled while considering the optimal output range. The maximum enabling strategy maximizes the number of target enabled power modules to be enabled in consideration of the optimal output range.
5. The controller according to claim 2, wherein: The information table also records the operation address information of each power module in the plurality of power modules. The operation address information of the multiple power modules is sorted according to the order in which the multiple power modules enter the initialization state.
6. The controller according to claim 5, wherein: The step of determining one or more power modules in a waiting state or an enabled state among the plurality of power modules as the one or more target enabled power modules based on the enabling strategy further includes: performing a first priority sorting on the power modules in the enabled state among the plurality of power modules based on the operating address information to determine a first sequence of power modules, and performing a second priority sorting on the power modules in the waiting state among the plurality of power modules based on the operating address information to determine a second sequence of power modules; and The one or more target enabled power modules are determined based on the power modules in the first sequence and the power modules in the second sequence, wherein the priority of the power modules in the first sequence is higher than the priority of the power modules in the second sequence.
7. The controller according to claim 5, wherein: The controlling the one or more target enabled power modules to be enabled at their respective target output powers comprises: A control message is published on the bus, wherein the control message includes operation address information and target output power of each of the one or more target enabled power modules.
8. The controller according to claim 2, wherein: The controller is further configured to: In response to determining that a first power module among the plurality of power modules fails, the information table is updated to update the operating state of the first power module to the idle state.
9. The controller according to claim 8, wherein: The information table also records the operation address information of each power module in the plurality of power modules. The updating of the information table further includes: updating the operation address information of the first power module to be empty, and updating the operation address information of the power modules in the waiting state or in the enabled state; and The updated operation address information is notified to the power module in the waiting state or in the enabled state via the publish-subscribe mode.
10. The controller according to claim 8, wherein: The controller is further configured to: Based on the elimination of the fault of the first power module, the information table is updated to update the operating state of the first power module to the waiting state.
11. The controller according to claim 9, wherein: The controller is further configured to: Based on the elimination of the fault of the first power module, the information table is updated, and the operating state of the first power module is updated to the initialization state.
12. The controller according to claim 1, wherein: The power change triggering event includes a change in the target total output power or a failure of a power module among the plurality of power modules.
13. The controller according to claim 1, wherein: The controller is further configured to: Upon powering on a first power module among the power modules, information associated with the first power module is initialized in the information table.
14. A method for controlling the operation of a power switch cabinet having a plurality of power modules, wherein the plurality of power modules communicate in a publish-subscribe mode via a bus, the method comprising: determining a power change trigger event; In response to the power change trigger event, determining one or more target enabled power modules to be enabled and target output powers of the one or more target enabled power modules based on the target total output power of the power switch cabinet and an information table associated with the plurality of power modules; as well as controlling the one or more target enabled power modules to be enabled at their respective target output powers, The information table records the operating status and optimal operating range of each power module in the plurality of power modules.
15. A computer program product comprising computer instructions for implementing the method according to claim 14 when the computer instructions are executed by a processor. 16 . A computer-readable storage medium having computer-executable instructions stored thereon, wherein the instructions are used to implement the method according to claim 14 when executed by a processor.
17. A power switch system comprising a controller according to any one of claims 1 to 13 and a power switch cabinet having a plurality of power modules, wherein: The controller communicates with the multiple power modules via a bus in a publish-subscribe mode. The multiple power modules respectively provide power output to a load.
18. The power switching system according to claim 17, wherein: In response to a failure of the controller, a first power module among the plurality of power modules operates as the controller, wherein, based on the publish-subscribe mode, the first power module has an information table stored locally that is identical to an information table of the controller before the failure.
19. The power switching system according to claim 18, wherein: The first power module is a power module that first enters an initialization state among the power modules in a waiting state or an enabled state among the multiple power modules.