A switching control method, apparatus, device, system, and storage medium
By adopting an adaptive control switching switch closing strategy, combined with equipment type identification and synchronous verification, the problems of power supply safety and flexibility in multi-power mixed power supply systems are solved. This achieves dual power supply redundancy for the load and safe parallel connection of grid-connected inverters, reducing the risk of short circuits.
Patent Information
- Application Number
- CN202611420220.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-11
- Publication Date
- 2026-11-17
AI Technical Summary
In multi-power hybrid power supply systems, how can we improve the flexibility of power supply while ensuring power supply safety, especially in solving the problems caused by the mutual exclusion power supply mode between traditional switching switches, which prevents third-party inverters from being connected to the grid and critical loads from obtaining dual power supply redundancy?
By acquiring the target device type and closing status corresponding to the switching switch, and combining the device type and closing status to determine the closing strategy, adaptive control of the switching switch is achieved, allowing or prohibiting changes in its closing status. The device type identification module and synchronous controller are used for accurate identification and synchronous verification, and the hardware mechanical interlock circuit ensures safety.
While ensuring power supply safety, it improves the flexibility of multi-power supply, realizes dual-power redundant power supply for loads and safe parallel connection of grid-connected inverters, solves the problems of equipment not being able to be connected to the grid and redundant power supply in traditional solutions, and reduces the risk of short circuits.
Smart Images

Figure CN123121970A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of power supply control technology, specifically to a switching switch control method, a switching switch control device, a computer device, a switching switch control system, and a computer-readable storage medium. Background Technology
[0002] In multi-source hybrid power supply systems (such as those with multiple power sources including the grid, generators, energy storage, and photovoltaic inverters), automatic transfer switches or cascaded transfer switches are typically used to switch power sources to ensure power supply safety. Research has found that to prevent short circuits caused by simultaneous connection of different power sources to the bus, these transfer switches generally employ a mutually exclusive power supply mode, meaning that only one power source's transfer switch is allowed to close at any given time, while transfer switches for other power sources must be open. Improving the flexibility of multi-source power supply while ensuring power supply safety has become a hot research topic. Summary of the Invention
[0003] This application provides a switching control method, apparatus, device, system, and computer-readable storage medium, which can improve the flexibility of multiple power supply by flexibly controlling the opening and closing state of the switching switch while ensuring power supply safety.
[0004] On one hand, embodiments of this application provide a switching control method, including: Obtain the device type of the target device corresponding to the first switching switch, and the closing status of the second switching switch; Based on the equipment type of the target equipment and the closing status of the second switching switch, determine the closing strategy of the first switching switch; If the closing strategy is to allow closing, then control the first switching switch to close; If the closing strategy is to prohibit closing, then the first switching switch is controlled to remain in the open state.
[0005] On one hand, embodiments of this application provide a switching control device, the device comprising: The acquisition unit is used to acquire the device type of the target device corresponding to the first switching switch and the closing status of the second switching switch; The processing unit is used to determine the closing strategy of the first switching switch based on the equipment type of the target equipment and the closing status of the second switching switch. And for controlling the first switching switch to close if the closing strategy is to allow closing; And if the closing strategy is to prohibit closing, then control the first switching switch to remain in the open state.
[0006] In one implementation, the processing unit is configured to determine the closing strategy of the first switching switch based on the device type of the target device and the closing state of the second switching switch, specifically for: If the second switching switch is in the open state, then the closing strategy of the first switching switch is determined to be allowing closing; If the second switching switch is in the closed state, the closing strategy of the first switching switch is determined according to the equipment type of the target equipment.
[0007] In one implementation, the processing unit is configured to determine the closing strategy of the first switching switch based on the device type of the target device, specifically for: If the target device is a load type or a grid-connected inverter type, then the closing strategy of the first switching switch is determined to be allowing closing; If the target device is an off-grid inverter or a generator, then the closing strategy of the first switching switch is to prohibit closing.
[0008] In one implementation, the target device is connected upstream of the first switching switch, and the processing unit is used to obtain the device type of the target device corresponding to the first switching switch, specifically for: Obtain electrical information upstream of the first switching switch; Send a communication request to the target device and obtain the communication interaction information of the target device; Identify the device type of the target device based on electrical and communication interaction information.
[0009] In one implementation, the electrical information includes total harmonic distortion information; the processing unit is configured to identify the device type of the target device based on the electrical information and communication interaction information, specifically for: If the total harmonic distortion is greater than the first distortion threshold, and the grid connection mode identifier sent by the target device is obtained, then the device type of the target device is determined to be a grid-connected inverter type. If the total harmonic distortion is greater than the first distortion threshold and the off-grid mode identifier sent by the target device is obtained, then the device type of the target device is determined to be an off-grid inverter. If the total harmonic distortion is less than the second distortion threshold and the target device has no communication response, then the device type of the target device is determined to be load type. If the frequency drift upstream of the first switching switch exceeds the frequency drift threshold, or the total harmonic distortion is greater than the second distortion threshold, and the generator identifier sent by the target device is obtained, then the device type of the target device is determined to be the generator type. The first distortion threshold is greater than the second distortion threshold.
[0010] In one implementation, the target device is a grid-connected inverter, and the closing strategy is to allow closing; before controlling the first switching switch to close, the processing unit is also used to: If the synchronization status between the power supply side corresponding to the second switching switch and the target device meets the preset synchronization conditions, then the first switching switch is determined to have passed the synchronization status detection. If the synchronization status between the power supply side corresponding to the second switching switch and the target device does not meet the preset synchronization conditions, an adjustment signal is sent to the target device to adjust the output voltage or frequency of the target device until the synchronization status meets the preset synchronization conditions. The preset synchronization conditions include: the frequency deviation between the power supply side corresponding to the second switch and the target device is less than the frequency deviation threshold; the phase deviation between the power supply side corresponding to the second switch and the target device is less than the phase deviation threshold; the voltage deviation between the power supply side corresponding to the second switch and the target device is less than the voltage deviation threshold; and the phase sequence of the power supply side corresponding to the second switch and the target device are both positive.
[0011] On one hand, embodiments of this application provide a switching control system, the system comprising: First switching switch and second switching switch; The device type identification module is used to identify the device type of the target device corresponding to the first switch; The controller is used to determine the closing strategy of the first switching switch based on the device type of the target device and the closing state of the second switching switch, and to control the closing state of the first switching switch according to the closing strategy.
[0012] Accordingly, this application provides a switching control system, which includes: First switching switch and second switching switch; The device type identification module is used to identify the device type of the target device corresponding to the first switch; The controller is used to determine the closing strategy of the first switching switch based on the device type of the target device and the closing state of the second switching switch, and to control the closing state of the first switching switch according to the closing strategy.
[0013] Accordingly, this application provides a computer device comprising: Memory, which stores computer programs; The processor is used to load computer programs to implement the above-mentioned switching control method.
[0014] Accordingly, this application provides a computer-readable storage medium storing a computer program adapted to be loaded by a processor and executed by the above-described switching control method.
[0015] In this embodiment, the device type of the target device corresponding to the first switching switch and the closing state of the second switching switch are obtained. Based on the device type of the target device and the closing state of the second switching switch, a closing strategy for the first switching switch is determined. If the closing strategy allows closing, the first switching switch is controlled to close; if the closing strategy prohibits closing, the first switching switch is controlled to remain open. Therefore, this application achieves adaptive decision-making for the closing strategy of the first switching switch by jointly determining the target device type corresponding to the first switching switch and the closing state of the second switching switch, thereby improving the flexibility of multi-power supply while ensuring power supply safety. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 A schematic diagram of the architecture of a switching control system provided in an embodiment of this application; Figure 2 A schematic diagram of a circuit connection provided in an embodiment of this application; Figure 3 A flowchart illustrating a switching control method provided in an embodiment of this application; Figure 4 This is a schematic diagram of the internal architecture of a synchronization controller provided in an embodiment of this application; Figure 5 This is a schematic diagram of the internal architecture of the smart port switching switch provided in the embodiments of this application; Figure 6 This is a schematic diagram of the structure of a switching control device provided in an embodiment of this application; Figure 7 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation
[0018] It should be noted in advance that, in order to enable those skilled in the art to better understand the technical solutions proposed in the embodiments of this application, the embodiments of this application will be described clearly and completely in conjunction with one or more accompanying drawings. Furthermore, the various drawings shown in the embodiments of this application are merely illustrative examples; for example, the execution order of each step in the drawings can be adaptively adjusted according to the actual application scenario. In addition, in the embodiments of this application, the block diagrams shown in the various drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, or in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0019] In the embodiments of this application, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.
[0020] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0021] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily have to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.
[0022] It should be noted that "multiple" in this article refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0023] This application provides a switching control method, which can be executed by a computer device, such as a terminal (e.g., a personal computer, laptop, smartphone, etc.) or a server. Please refer to... Figure 1, Figure 1 This is a schematic diagram of the architecture of a switching control system provided in an embodiment of this application. Figure 1 As shown, the switching control system includes: a first switching switch (such as...) Figure 1 As shown in -QS2), the second switching switch (such as Figure 1 The -QS1 shown), device type identification module (such as Figure 1 The device type identification circuit inside the QS2 shown in the diagram) and the controller (such as...) Figure 1 The main control MCU inside the QS2 shown in the diagram. Optionally, the switching control system may also include a synchronization controller (which can be deployed in...). Figure 1 The -QS2 shown internally) and the hardware mechanical interlock circuit (by Figure 1 The circuit formed by connecting the auxiliary normally closed contact of -QS1 and the auxiliary normally closed contact of -QS2 in series.
[0024] The device type identification module is used to identify the device type of the target device corresponding to the first switching switch. In one embodiment, the device type identification module may include a voltage sampling circuit, a frequency sampling circuit, and / or a total harmonic distortion (THD) analysis circuit, used to acquire voltage information, frequency information, and / or THD information upstream of the first switching switch (i.e., the target device side). The device type identification module may also include a communication interface (such as an RS485 interface, CAN interface, Modbus interface, etc.), used to send communication requests to the target device and acquire communication interaction information of the target device. The device type identification module identifies the device type of the target device based on the acquired electrical information and / or communication interaction information. This identification method can supplement the judgment with electrical characteristics when communication interaction fails, and accurately identify the device type through communication information when electrical characteristics are not obvious, thereby improving the coverage and accuracy of device type identification.
[0025] The controller determines the closing strategy of the first switching switch based on the device type of the target device and the closing state of the second switching switch, and controls the closing state of the first switching switch according to the closing strategy. Specifically, the controller can implement the closing strategy decision through logical operations or table lookup. In one embodiment, the decision logic executed by the controller can be expressed as follows: if the second switching switch is in the open state, the first switching switch is allowed to close; if the second switching switch is in the closed state, the device type of the target device is further determined. If the target device is a load type or a grid-connected inverter type, the first switching switch is allowed to close (i.e., the two switching switches can be closed simultaneously to achieve parallel power supply); if the target device is an off-grid inverter type or a generator type, the first switching switch is prohibited from closing (i.e., the two switching switches maintain a mutually exclusive relationship). The above decision logic can also be pre-configured as a decision matrix and stored in the controller's storage unit. The controller can quickly determine the closing strategy by querying the decision matrix.
[0026] Through the decision logic executed by the controller described above, the switching control system can adaptively adjust the mutual exclusion / parallel connection relationship between the two switching switches according to the equipment type of the target device: when the target device is a load, both switching switches are allowed to close simultaneously, enabling the load to obtain dual power supply redundancy, achieving dual power supply hot standby without additional STS configuration; when the target device is a grid-connected inverter, both switching switches are allowed to close simultaneously, enabling the grid-connected inverter to operate safely in parallel with the power supply side, improving the scalability and compatibility of the switching control system; when the target device is an off-grid inverter or a generator, the mutual exclusion logic is automatically restored, prohibiting the simultaneous closing of the two switching switches, ensuring power supply safety. This adaptive adjustment mechanism solves the problems of third-party inverters being unable to connect to the grid and critical loads not obtaining dual power supply redundancy under traditional fixed mutual exclusion logic.
[0027] In one implementation, the aforementioned device type identification module and controller can be integrated into the first switching switch to form an intelligent port switching switch. This intelligent port switching switch, in addition to the on / off control functions of a conventional switching switch, also has built-in device type identification capabilities and closing strategy decision-making capabilities. In actual deployment, simply replacing the traditional switching switch with this intelligent port switching switch provides adaptive mutual exclusion / parallel switching capabilities without altering the original line layout, resulting in short modification time and low cost.
[0028] Optionally, the aforementioned switching control system may further include a synchronization controller. The synchronization controller, when the target device is a grid-connected inverter and the closing strategy is set to allow closing (i.e., allowing two switching switches to close simultaneously for parallel connection), detects the synchronization status between the power supply side corresponding to the second switching switch and the target device before controlling the closing of the first switching switch. If the synchronization status meets preset synchronization conditions (e.g., frequency deviation less than 0.01Hz, phase deviation less than 5°, voltage deviation less than 5%, and both phase sequences are positive), a closing permission signal is sent to the controller. If the synchronization status does not meet the preset synchronization conditions, an adjustment signal is sent to the target device (e.g., frequency / voltage adjustment command sent via a 4-20mA current signal or CAN bus communication) to adjust the output voltage or frequency of the target device until the synchronization status meets the preset synchronization conditions. This active synchronization control method enables the grid-connected inverter to actively adjust its output parameters to match the power supply under the guidance of the synchronization controller, thereby achieving safe parallel connection.
[0029] Optionally, the aforementioned switching control system may further include a hardware mechanical interlock circuit. The hardware mechanical interlock circuit is implemented by connecting the auxiliary normally closed contact of the first switching switch and the auxiliary normally closed contact of the second switching switch in series with the control power supply. When either switch closes, its own auxiliary normally closed contact opens, thereby cutting off the power supply to the closing coil of the other switch. This hardware mechanical interlock circuit does not rely on any software, CPU, or relays. Even if the controller completely fails (e.g., MCU crash, program collapse), the hardware mechanical interlock circuit can still prevent both switching switches from closing simultaneously, thereby further reducing the risk of a dual-power short circuit.
[0030] Figure 2 This is a schematic diagram of a circuit connection provided for an embodiment of this application. Figure 2 As shown, the power supply side (such as the power grid) is connected to the input terminal of the second switch, and the output terminal of the second switch is connected to the busbar; the target device (such as a generator, load, or inverter) is connected to the input terminal of the first switch, and the output terminal of the first switch is connected to the busbar. Optionally, the first and second switches can be connected via cascaded signal lines (…). Figure 2 The dashed line (in the middle) enables control interlocking or parallel coordination. The busbar can be connected to the first energy storage power source, the second energy storage power source, and the load, respectively. In one embodiment, the first switching switch has a built-in device type identification module and controller, used to identify the type of upstream target device and adaptively control the on / off state of the first switching switch in conjunction with the closing state of the second switching switch. Based on this circuit, seamless switching between mutual exclusion and parallel power supply modes can be achieved, making it suitable for multi-power source mixed power supply scenarios.
[0031] To further enhance power supply safety and prevent simultaneous closing of two switching switches due to controller software malfunctions or communication failures, this application embodiment also provides a hardware mechanical interlock circuit. This hardware mechanical interlock circuit is implemented by connecting the auxiliary normally closed contacts of the first and second switching switches in series to a control power supply (such as a 24V DC power supply). When either switch is closed, its own auxiliary normally closed contact opens, thereby cutting off the power supply circuit to the closing coil of the other switch, preventing that switch from closing (i.e., closing either switching switch requires first disconnecting the power supply to the closing coil of the other switching switch). This hardware interlock circuit uses a purely mechanical contact structure and does not rely on any software logic, microcontroller, or relays. Even if the controller completely fails (such as an MCU crash), the hardware mechanical interlock circuit can still enforce mutually exclusive power supply, effectively reducing the short-circuit risk caused by simultaneous connection of two power supplies to the bus.
[0032] Combination Figure 1 and Figure 2 Specifically, the first switching switch (-QS2) is connected between the target equipment and the busbar, used to control whether the target equipment is connected to the busbar. The second switching switch (-QS1) is connected between the power supply side (such as the power grid) and the busbar, used to control whether the power supply side is connected to the busbar. When the second switching switch is in the closed state, the power supply side is connected to the busbar; when the second switching switch is in the open state, the power supply side is disconnected from the busbar.
[0033] Based on the above system architecture and circuit connection relationships, this application proposes a switching control method. Please refer to... Figure 3 , Figure 3 This is a flowchart illustrating a switching control method provided in an embodiment of this application. Figure 3 As shown, the switching control method may include the following steps S301 to S304: S301. Obtain the device type of the target device corresponding to the first switching switch, and the closing status of the second switching switch.
[0034] The target device corresponding to the first switching switch refers to the device connected to the busbar through the first switching switch. In one embodiment, the target device is connected upstream of the first switching switch; upstream can be understood as the direction of current flow from the target device to the first switching switch. The first switching switch can act as a path control device between the target device and the busbar, used to control whether the target device is connected to the busbar.
[0035] The device type of the target device is used to indicate the category and operating mode of the target device. In one implementation, the device type may include, but is not limited to: load type (such as general lighting, sockets, power equipment, etc.), grid-connected inverter type (such as hybrid inverters or microinverters operating in grid-connected mode), off-grid inverter type (such as energy storage inverters operating in off-grid mode), and generator type (diesel generators, etc.). Different device types exhibit different safety characteristics when connected in parallel with the power supply. Load type and grid-connected inverter type are generally allowed to operate in parallel with the power supply, while off-grid inverter type and generator type are generally not allowed to operate in parallel with the power supply.
[0036] The closing status of the second changeover switch indicates whether it is currently closed or open. The second changeover switch connects the power supply side (such as the power grid) to the busbar. When the second changeover switch is closed, it indicates that the power supply is connected to the busbar; when the second changeover switch is open, it indicates that the power supply is not connected to the busbar. The closing status of the second changeover switch can be obtained by reading the auxiliary contact signals of the second changeover switch, the position sensor signals, or the status register of the controller.
[0037] In one implementation, obtaining the device type of the target device corresponding to the first switch may include: obtaining electrical information upstream of the first switch. The electrical information upstream of the first switch may refer to electrical information obtained from the upstream access terminal of the first switch. Optionally, the electrical information upstream of the first switch may also refer to the electrical information of one or more devices (such as multiple devices in a circuit) connected upstream of the first switch.
[0038] Electrical information may include at least one of the following: current information, voltage information, frequency information, and total harmonic distortion (THD) information. THD information is used to characterize the degree of distortion in the voltage or current waveform. A communication request is sent to the target device, and communication interaction information from the target device is obtained. Based on the electrical information and communication interaction information, the device type of the target device is identified.
[0039] Different equipment types exhibit different electrical characteristics in terms of output voltage / current. For example, the voltage on the grid / load side usually has a stable frequency (e.g., 50Hz ± 0.05Hz) and low THD (usually less than 3%); the output voltage of grid-connected inverters usually contains higher harmonic components (THD is usually between 5% and 10%); the output voltage of generators has a larger frequency drift (up to ± 0.5Hz or more) and higher THD (usually greater than 8%).
[0040] Communication interaction information refers to the information obtained through data exchange with a target device via a communication interface. This information may include the target device's device identifier, operating mode identifier (e.g., grid-connected mode, off-grid mode), and operating parameters. In one implementation, a query request can be sent to the target device via communication protocols such as RS485, CAN, or Modbus. Upon receiving the request, the target device returns a response message containing its device identifier and / or operating mode identifier. For ordinary loads without communication capabilities, communication interaction information may not be available, or communication requests may time out without a response.
[0041] By combining electrical feature detection with communication interaction identification, device types can be accurately identified in various scenarios: for intelligent devices with communication capabilities (such as smart inverters and smart distribution cabinets), device type information can be directly obtained through communication interaction; for ordinary loads without communication capabilities, inference can be made through electrical feature analysis; for devices with failed communication interaction but obvious electrical features, supplementary judgment can be made through electrical features. This comprehensive identification method significantly improves the coverage and accuracy of device type identification.
[0042] In one embodiment, the electrical information includes total harmonic distortion (THD) information. The specific process for identifying the device type of the target device based on the electrical information and communication interaction information is as follows: if the THD is greater than a first distortion threshold, and the grid-connected mode identifier sent by the target device is obtained, then the device type of the target device is determined to be a grid-connected inverter. The first distortion threshold can be set to 5% (or can be adjusted to 6%, 8%, etc., depending on the actual system conditions; this application does not impose any restrictions on this). The grid-connected mode identifier is a flag bit reported by the target device in the communication message indicating that it is currently operating in grid-connected mode. When both of the above conditions are met simultaneously, the device type of the target device can be determined to be a grid-connected inverter.
[0043] If the total harmonic distortion is greater than the first distortion threshold, and the off-grid mode identifier sent by the target device is obtained, then the device type of the target device is determined to be an off-grid inverter.
[0044] If the total harmonic distortion is less than the second distortion threshold and the target device has no communication response, then the device type of the target device is determined to be a load type. The second distortion threshold can be set to 3% (or can be adjusted to 2%, 1%, etc., depending on the actual system conditions; this application does not impose any restrictions on this), and the first distortion threshold is greater than the second distortion threshold.
[0045] If the frequency drift upstream of the first switching switch exceeds the frequency drift threshold, or the total harmonic distortion is greater than the second distortion threshold, and the generator identifier sent by the target device is obtained, then the device type of the target device is determined to be a generator. The frequency drift threshold can be set to 0.3Hz (or 0.2Hz, 0.5Hz, etc., depending on the actual system conditions).
[0046] Through the aforementioned multi-dimensional feature matching rules, the types of grid-connected inverters, off-grid inverters, load types, and generator types (four equipment types) can be accurately identified, providing a reliable decision-making basis for determining subsequent closing strategies. It should be noted that the thresholds in the above identification rules (such as the first distortion threshold, the second distortion threshold, and the frequency drift threshold) can be adjusted according to the actual application scenario and equipment characteristics; this application embodiment does not impose such limitations.
[0047] In one implementation, the reliability of device type identification can be improved by verifying the consistency of multiple identification results. Specifically, the device type of the target device is obtained multiple times within a predetermined time period (e.g., within 3 seconds). If the device types obtained multiple times are consistent, the identification result is taken as the final identification result. If the device types obtained multiple times are inconsistent, it indicates that the current identification conditions are unstable or the target device is in the process of state switching. In this case, the closing strategy can be determined to prohibit closing (conservative handling) to reduce the safety risks caused by misidentification.
[0048] S302. Based on the equipment type of the target equipment and the closing status of the second switching switch, determine the closing strategy of the first switching switch.
[0049] The closing strategy is used to indicate whether the first switching switch is allowed to close. In one embodiment, the closing strategy may include two decision outcomes: allowing closing and disallowing closing.
[0050] The core of this step lies in making a comprehensive decision by combining the equipment type of the target device with the closing status of the second transfer switch, rather than making a judgment based on either factor alone. This comprehensive decision-making approach can adapt to more diverse application scenarios: when the second transfer switch is in the open state (i.e., the power supply is not connected to the bus), the first transfer switch is allowed to close, and the target device is powered independently, regardless of its type; when the second transfer switch is in the closed state (i.e., the power supply is connected to the bus), it is necessary to determine whether the target device is allowed to be connected in parallel with the power supply based on its type. Types that are allowed to be connected in parallel (loads, grid-connected inverters) are allowed to close, while types that are not allowed to be connected in parallel (off-grid inverters, generators) are prohibited from closing. This decision-making method can maximize power supply flexibility while ensuring safety.
[0051] In one implementation, the above decision-making process can be divided into the following two levels: If the second changeover switch is in an open state, it is determined that the closing strategy of the first changeover switch is allowing closing. This is because when the second changeover switch is in the open state, the power supply on the power supply side is not connected to the busbar, and closing the first changeover switch only connects the target device to the busbar, which will not cause the situation where two power supplies supply power at the same time. Therefore, there is no need to make additional judgment on the type of the target device, and closing is directly allowed.
[0052] If the second changeover switch is in a closed state, the closing strategy of the first changeover switch is determined according to the device type of the target device. Specifically, if the device type of the target device is a load type or a grid-tied inverter type, it is determined that the closing strategy is allowing closing; if the device type of the target device is an off-grid inverter type or an diesel generator type, it is determined that the closing strategy is prohibiting closing.
[0053] In an embodiment, the above decision logic may be pre-configured in the form of a decision matrix and stored in the storage unit of the controller. After acquiring the device type of the target device and the closing state of the second changeover switch, the controller quickly determines the closing strategy of the first changeover switch by looking up the table, which has the advantages of fast decision-making speed and clear logic. An exemplary decision matrix is shown in Table 1 below: Table 1
[0054] S303: If the closing strategy is allowing closing, the first changeover switch is controlled to close.
[0055] When the closing strategy determined in step S302 is allowing closing, the controller sends a closing instruction to the closing coil of the first changeover switch, controls the first changeover switch to close, and connects the target device to the busbar.
[0056] In an implementation manner, when the device type of the target device is the grid-tied inverter type and the closing strategy is allowing closing, a synchronization state detection may also be performed before controlling the first changeover switch to close. Specifically, if the synchronization state between the power supply side corresponding to the second changeover switch and the target device meets a preset synchronization condition, it is determined that the first changeover switch passes the synchronization state detection; if the synchronization state does not meet the preset synchronization condition, an adjustment signal is sent to the target device to adjust the output voltage or frequency of the target device until the synchronization state meets the preset synchronization condition.
[0057] The preset synchronization conditions may include: the frequency deviation between the power supply side corresponding to the second changeover switch and the target device is less than a frequency deviation threshold (such as 0.01 Hz); the phase deviation between the power supply side and the target device is less than a phase deviation threshold (such as 5° electrical angle); the voltage deviation between the power supply side and the target device is less than a voltage deviation threshold (such as 5%); the phase sequences of the power supply side and the target device are both positive sequences. The above synchronization conditions need to be satisfied at the same time to confirm that the synchronization state is qualified.
[0058] By performing synchronization verification before closing the circuit breaker, it can be ensured that the grid-connected inverter meets strict synchronization requirements when connected in parallel with the power supply. This helps to reduce the huge circulating current caused by excessive frequency difference, phase difference, or voltage difference, thereby protecting equipment safety. Synchronization verification, as an entry threshold for parallel mode, can work in conjunction with the equipment type-based closing strategy decision in step S302. The closing strategy determines whether to allow entry into parallel mode, while synchronization verification ensures safe access to parallel mode. Together, they achieve safe and flexible parallel control.
[0059] During synchronization verification, if the synchronization state does not meet the preset synchronization conditions, an adjustment signal is sent to the target device to actively adjust its output parameters. The adjustment signal can be sent to the target device's controller via a 4-20mA current signal or CAN bus communication, instructing the target device to adjust its output voltage amplitude, output frequency, or phase. Upon receiving the adjustment signal, the target device adjusts its output parameters accordingly until the synchronization conditions are met. This active synchronization control method differs from the passive approach of traditional schemes that only detects and alarms when synchronization is lost. It can actively guide the target device to a synchronized state without interrupting power supply, thereby improving the success rate and efficiency of parallel operation.
[0060] In one implementation, the synchronization verification process also includes a synchronization timeout protection mechanism. If the synchronization status fails to meet the preset synchronization conditions within a predetermined timeout period (e.g., 5 seconds), synchronization adjustment is stopped, the first switching switch is prohibited from closing, and an alarm message is sent to the operation and maintenance system. This timeout protection mechanism prevents indefinite waiting in the event of target equipment failure or communication anomalies, ensuring availability.
[0061] Figure 4 This is a schematic diagram of the internal architecture of a synchronization controller provided in an embodiment of this application. Figure 4 As shown, this synchronization controller is used to perform synchronization verification and control between the target device corresponding to the first switching switch (-QS2) and the power supply side corresponding to the second switching switch (-QS1) in parallel mode. The synchronization controller includes the following components: -QS1 side sampling: Collect frequency, phase, voltage and phase sequence information of the second switching switch (-QS1).
[0062] -QS2 side sampling: Collect frequency, phase, voltage and phase sequence information from the first switching switch (-QS2) side (i.e. the target device side).
[0063] PLL (Phase-Locked Loop): Phase-locked loop is performed with the -QS1 side as the reference, providing a reference for synchronization determination.
[0064] Synchronization determination logic: Determine the sampling data from both sides. The determination conditions include: frequency deviation ≤ 0.01Hz, phase deviation ≤ 5°, and voltage deviation ≤ 5%. The values are for illustrative purposes only and do not constitute an actual limitation of this application.
[0065] -QS2 upstream speed and voltage regulation signal: When the synchronization state is not met, a speed and voltage regulation signal is sent to the upstream device (such as a generator or inverter) via 4-20mA or CAN bus to adjust its output.
[0066] Synchronization timeout protection: If the synchronization process fails to succeed after 5 seconds, the circuit breaker will refuse to close and an alarm will be output.
[0067] The workflow is as follows: The frequency, phase, voltage, and phase sequence information collected by the -QS1 and -QS2 side sampling are sent to the PLL phase-locked loop. After locking the PLL with the -QS1 side as the reference, the result is sent to the synchronization determination logic. Simultaneously, the -QS2 side sampling information is also directly sent to the synchronization determination logic. The synchronization determination logic compares the parameters on both sides. If the frequency deviation, phase deviation, and voltage deviation all meet their respective threshold conditions, synchronization is considered successful, and a closing permission signal is output to the -QS2 smart port, allowing the first switching switch to close. If the synchronization conditions are not met, synchronization is considered unsatisfactory, and a speed and voltage regulation signal (4-20mA or CAN) is sent to the upstream equipment (generator / inverter) of -QS2 to adjust its output voltage or frequency, while continuing to monitor the synchronization status.
[0068] The synchronization timeout protection module continuously monitors the synchronization process. If synchronization fails to be successful after 5 seconds, it outputs a rejection closing command and triggers an alarm, terminating the synchronization process.
[0069] Through the above architecture, the synchronous controller realizes the admission verification and active synchronization adjustment of the parallel mode, ensuring that the power supplies on both sides meet the synchronization conditions required for safe parallel connection before the first switching switch is closed.
[0070] S304. If the closing strategy is to prohibit closing, then control the first switching switch to remain in the open state.
[0071] When the closing strategy determined in step S302 is to prohibit closing, the controller does not send a closing command to the closing coil of the first switching switch, and controls the first switching switch to remain in the open state (if the first switching switch is currently in the closed state, it is controlled to be disconnected), so that the target equipment remains disconnected from the bus.
[0072] In one implementation, while controlling the first switching switch to remain in the open state, the reason for prohibiting closing can also be recorded, and prompt information can be output to users or maintenance personnel through indicator lights, displays or remote communication interfaces so that relevant personnel can understand the system status and decision-making basis.
[0073] In this embodiment, by using the device type of the target device and the closing status of the second switching switch as dual bases for the closing strategy decision, adaptive adjustment of the closing strategy is achieved. That is, based on the current actual conditions, it automatically decides whether to enable mutual exclusion logic (prohibiting the simultaneous closing of two switching switches) or disable mutual exclusion logic (allowing the simultaneous closing of two switching switches). Compared with the fixed hard mutual exclusion logic between the two switching switches in the traditional solution, this solution significantly improves the flexibility of the power supply architecture while ensuring power supply safety (automatic activation of mutual exclusion in off-grid inverter and generator scenarios) (achieving dual power supply hot standby in load scenarios and safe parallel connection in grid-connected inverter scenarios). It overcomes the shortcomings of traditional solutions that cannot support third-party inverter grid connection and cannot provide dual power supply redundancy for critical loads.
[0074] In one embodiment, the above method may further include a strategy dynamic update step. Specifically, when the closing state of the second switching switch changes (e.g., from open to closed, or from closed to open), the device type of the target device is reacquired, and the closing strategy of the first switching switch is updated based on the reacquired device type and the changed closing state of the second switching switch; and / or, when the device type of the target device changes (e.g., a grid-connected inverter switches to off-grid mode), the closing strategy of the first switching switch is updated based on the changed device type and the current closing state of the second switching switch.
[0075] This dynamic update mechanism ensures that the closing strategy can adaptively adjust in real time to follow changes in system status. For example, when the second switching switch changes from open to closed, if the target device is a load type and the previous closing strategy was "allow closing" (powered solely by the target device), the updated closing strategy remains "allow closing" (the power supply side is connected in parallel with the target device to achieve dual power supply), but the power supply mode changes from single-path power supply to dual-path power supply, resulting in higher power supply reliability for the load. If the target device is a generator type and the previous closing strategy was "allow closing" (powered solely by the generator), the updated closing strategy changes to "prohibit closing" (the generator must not be connected in parallel with the power supply side), thus automatically restoring the mutual exclusion relationship and ensuring safety. Furthermore, when the target device changes from a grid-connected inverter type to an off-grid inverter type, if the second switching switch is currently closed, the closing strategy automatically updates from "allow closing" to "prohibit closing," reducing the risk of the off-grid inverter being mistakenly connected in parallel with the power supply side.
[0076] As described above, the switching control method provided in this application can adaptively operate in either a mutual exclusion mode or a parallel mode, depending on the equipment type of the target device and the closing state of the second switching switch. The operating timing of each mode is explained in detail below.
[0077] (a) Working sequence of mutual exclusion mode The mutual exclusion mode is applicable to scenarios where the target device upstream of the first switching switch (-QS2) is an off-grid inverter or a generator. In the mutual exclusion mode, the second switching switch (-QS1) and the first switching switch (-QS2) follow the mutual exclusion power supply rules to ensure that the power supply side (such as the grid) and the target device (such as the generator) will not be connected to the bus at the same time.
[0078] Taking the power grid as the power supply side and the generator as the target device as an example, the complete working sequence of the mutual exclusion mode is as follows: Phase 1: Normal power supply from the power grid With the grid voltage normal and the second switch (-QS1) closed, the grid is connected to the bus, supplying power to the load. The controller continuously monitors the device type of the target equipment (generator) corresponding to the first switch and the closing status (closed) of the second switch. Based on the target equipment type being a generator and the second switch being closed, the controller determines the closing strategy to prohibit closing, keeping the first switch (-QS2) open, and the generator is not connected to the bus. At this time, the bus is only powered by the grid, and the generator is in standby mode.
[0079] Phase 2: Power grid failure, switch to generator power supply When the power grid fails, the controller detects that the voltage on the supply side of the second switching switch is below a threshold (e.g., 70% of the normal voltage) or the frequency is abnormal, thus determining that the power grid has failed. The controller immediately sends a trip command to the second switching switch, -QS1 opens, and the power grid is disconnected from the bus. After confirming that the second switching switch is in the tripped state, the controller, based on the target equipment type (generator) and the state of the second switching switch (tripped), re-determines the closing strategy to allow closing, sends a closing command to the first switching switch, -QS2 closes, and the generator connects to the bus to supply power to the load. The switching time from power grid failure to generator power supply can be controlled within 20 milliseconds (excluding generator start-up time). The cold start time of the generator itself is approximately 5–30 seconds, which depends on the generator model and is not considered part of the control delay of this switching system.
[0080] Phase 3: Power grid restoration, switching back to grid power supply When the power grid is restored, the controller detects that the voltage and frequency on the power supply side have returned to normal. To ensure the safety of the switching process, the controller first sends a trip command to the first switching switch, -QS2 opens, and the generator is disconnected from the bus. After confirming that -QS2 has been tripped, the controller sends a closing command to the second switching switch, -QS1 closes, and the power grid reconnects to the bus, restoring power supply. The switching time from power grid restoration to switching back to power grid supply can be controlled within 50 milliseconds.
[0081] Through the above three stages, the mutual exclusion mode realizes the automatic switching between the power grid and the generator, ensuring that only one power source is connected to the bus at any time, effectively reducing the short circuit risk caused by parallel connection of different power sources.
[0082] (II) Working sequence in parallel mode The parallel mode is suitable for scenarios where the target device upstream of the first switching switch (-QS2) is a load type or a grid-connected inverter type. In parallel mode, the two switching switches can be closed simultaneously to achieve multi-power parallel power supply or dual-power redundant hot standby.
[0083] Taking the power grid as the power supply side and the grid-connected inverter as the target device as an example, the complete operating sequence of the parallel mode is as follows: Phase 1: Power grid is normal, and grid-connected inverters are operating in parallel. The power grid is normal, and the second switching switch (-QS1) is in the closed state. The controller obtains that the target device type is a grid-connected inverter and that the second switching switch is in the closed state, and determines that the closing strategy is to allow closing. Before controlling the first switching switch (-QS2) to close, the synchronization controller first performs a synchronization verification (see...). Figure 4 (As described above regarding the synchronization controller): The controller detects the frequency, phase, voltage, and phase sequence between the grid side and the grid-connected inverter side to confirm that the preset synchronization conditions are met. After the synchronization verification is successful, the controller sends a closing command to the first switching switch, -QS2 closes, and the grid-connected inverter is connected to the bus in parallel with the grid to jointly supply power to the load. During parallel operation, the synchronization controller continuously monitors the synchronization status of both sides to ensure operational safety.
[0084] Phase 2: Power grid failure, grid-connected inverter provides power independently. When the grid loses power, the controller detects a power outage on the supply side. Since the grid-connected inverter is still in grid-connected mode at this time, to prevent the inverter from feeding power back to the grid (anti-islanding protection), the controller sends a trip command to the second transfer switch, -QS1 opens, and the grid is disconnected from the bus. At this time, the first transfer switch remains closed, and the grid-connected inverter continues to supply power to the load. If the grid-connected inverter does not have off-grid load capacity, the system may shut down, but the transfer switch control logic of this application still keeps -QS2 closed, waiting for the grid to be restored or for manual intervention.
[0085] Phase 3: Power grid restoration and reconnection When the grid is restored, the controller detects that the voltage and frequency on the power supply side have returned to normal. The controller keeps the first switching switch (-QS2) closed, and the grid-connected inverter continues to supply power. Before closing the second switching switch (-QS1), the synchronization controller performs a synchronization check again between the grid side and the grid-connected inverter side (because there may be a phase difference between the grid and the inverter side after the grid is restored). After the check passes, the controller sends a closing command to the second switching switch, -QS1 closes, and the grid is reconnected to the inverter and bus in parallel, restoring normal parallel power supply.
[0086] Phase 4: Out-of-step protection (parallel operation anomaly handling) During parallel operation, if the synchronization controller detects that the synchronization state does not meet the preset synchronization conditions due to sudden load changes, grid disturbances, or other reasons (such as frequency deviation exceeding a threshold, phase deviation exceeding a threshold, or voltage deviation exceeding a threshold), the controller will immediately disconnect the first switching switch (-QS2) or the second switching switch (-QS1) within 0.2 seconds (usually disconnecting the non-power supply side switch, i.e., -QS2), causing the system to automatically degrade from parallel mode to mutual exclusion mode, with power supplied solely by the grid, and simultaneously issuing a loss-of-synchronization alarm signal. After the synchronization state is restored, the synchronization check can be re-executed and the parallel mode restored.
[0087] Through the above-mentioned parallel operation timing, this application realizes the safe parallel operation of the grid-connected inverter and the power grid, as well as the smooth transition during the power grid failure / recovery process, and provides a fast protection mechanism for out-of-step operation, which not only ensures the continuity of power supply, but also ensures the safety of equipment.
[0088] (III) Dynamic Adaptability of Mode Switching It should be noted that the switching between mutual exclusion mode and parallel mode is not a one-time configuration, but rather dynamically adjusted in real time based on changes in the target device's equipment type and the closing status of the second switching switch. For example, when the second switching switch changes from open to closed, the closing strategy is recalculated; when the target device type changes from a grid-connected inverter to an off-grid inverter, the closing strategy immediately switches from allowing closing to disallowing closing, automatically exiting parallel mode. This dynamic adaptability allows the system to flexibly respond to various operating conditions such as device access / departure and power status changes during operation, without manual intervention.
[0089] To make the technical solution of this application clearer and easier to understand, the implementation methods of this application are illustrated below with examples of several specific application scenarios. It should be noted that the following embodiments are for illustrative purposes only and do not constitute a limitation on the scope of application of this application.
[0090] Example 1: Power Supply Scenario for Residential Villas This embodiment provides a power supply mode switching system for villa residences. The system configuration includes: a power grid (as the power supply side), a generator (as a backup power source), a first switching switch (-QS2, i.e., a smart port switching switch), a second switching switch (-QS1, i.e., a grid-connected / off-grid switching switch), energy storage power supply 1 and energy storage power supply 2 (the energy storage system involved in this embodiment, including a PCS and a battery), a third-party grid-connected inverter, and conventional loads. Specifically, the power grid is connected to the input terminal of -QS1 via -QF1, and the output terminal of -QS1 is connected to the bus; the generator is connected to the input terminal of -QS2 via -QF2, and the output terminal of -QS2 is connected to the bus; the bus is connected to energy storage power supply 1 and energy storage power supply 2 via -QF3 and -QF4 respectively, to the third-party grid-connected inverter via -QF5, and to the conventional loads via -QF6.
[0091] Its working process is as follows: (1) When the power grid is operating normally, the second switching switch (-QS1) is in the closed state, and the power grid supplies power to the bus. At this time, if the target equipment connected upstream of the first switching switch (-QS2) is a generator or an off-grid inverter, the controller determines the closing strategy as prohibiting closing based on the equipment type of the target equipment and the closing state of the second switching switch. -QS2 remains in the open state, and the generator is not connected to the bus. Energy storage power supply 1 and energy storage power supply 2 are connected to the grid for charging and discharging, and the third-party grid-connected inverter is connected to the grid for operation.
[0092] (2) When the power grid fails, -QS1 automatically trips. After the controller detects that the second switching switch has changed to the tripped state, it determines the closing strategy to allow closing, regardless of the type of the target equipment. -QS2 closes, and the generator or off-grid inverter supplies power to the load through the bus.
[0093] (3) When the power grid is restored, the controller detects that the power supply side has returned to normal and controls -QS1 to close. At the same time, the closing strategy is re-determined according to the equipment type of the target equipment. If the target equipment is a generator type, the closing strategy is to prohibit closing, -QS2 automatically opens, and the system switches back to power grid supply.
[0094] Through the above process, this embodiment realizes a mutually exclusive mode in which the grid supplies power when the grid is normal and automatically switches to generator or off-grid inverter power supply when the grid fails. At the same time, it allows energy storage and third-party inverters to operate in parallel with the grid when the grid is normal, thereby improving the reliability and economy of household power supply.
[0095] Example 2: Dual Power Supply Scenario for Industrial and Commercial Factories This embodiment provides a multi-power supply system for industrial and commercial plants. The system configuration includes: a first mains power supply, a second mains power supply, a generator, a second transfer switch (-QS1), a first transfer switch (-QS2, i.e., a smart port transfer switch), a third-party photovoltaic inverter (multiple units connected in parallel), and production loads. The first mains power supply serves as the primary power source and is connected to the bus via -QS1. The second mains power supply or generator serves as a backup power source and is connected to the bus via -QS2. The third-party photovoltaic inverters are connected to the bus via branch circuit breakers, enabling grid-connected operation with the mains power supply.
[0096] Its working process is as follows: (1) When the first mains power is normal, -QS1 is closed, and the mains power supplies the factory load. At this time, if the target equipment connected upstream of -QS2 is a generator type, the controller determines the closing strategy to prohibit closing, and -QS2 remains open; the third-party photovoltaic inverter is connected to the grid and supplies power to the bus.
[0097] (2) When the first mains power fails, -QS1 is tripped. The controller changes to tripped state according to the second switching switch and determines the closing strategy to allow closing. -QS2 is closed, and the second mains power or generator is connected to the bus to supply power to the load, realizing automatic switching between the two mains power or between mains power and generator.
[0098] (3) When the first mains power is restored, the controller controls -QS1 to close. At the same time, if the upstream of -QS2 is a generator type, the closing strategy is updated to prohibit closing, -QS2 automatically opens, and the system switches back to the first mains power supply.
[0099] In this embodiment, because the third-party photovoltaic inverter itself has comprehensive grid-connection protection functions, it can continue to operate in grid-connection during the period when -QS1 is closed and mains power is supplied, without being restricted by the mutual exclusion logic between -QS1 and -QS2. This allows the factory to obtain redundant power supply from two sources while still fully utilizing photovoltaic power generation, thus reducing electricity costs.
[0100] Example 3: Intelligent Power Distribution Scenario for Communication Base Stations This embodiment provides an intelligent power distribution system for a communication base station. The system configuration includes: a power grid, a generator, a second switching switch (-QS1), a first switching switch (-QS2, i.e., an intelligent port switching switch), an intelligent power distribution cabinet (with a communication interface), and a base station communication load. The intelligent power distribution cabinet has communication capabilities and can report its own equipment type and operating status via the Modbus protocol.
[0101] Its working process is as follows: (1) The intelligent distribution cabinet is connected to the upstream of -QS2 and actively reports the device type identifier (such as DeviceType=SmartLoad) to the controller through the communication interface, indicating that it is an intelligent load type. The controller determines the closing strategy to allow closing based on the obtained device type (load type) and the closing status of the second switching switch (if -QS1 is closed), and controls -QS2 to close.
[0102] (2) In the parallel mode where -QS1 and -QS2 are closed at the same time, the intelligent distribution cabinet can choose the power supply source independently. For example, based on the electricity price strategy, load priority or battery status, it can intelligently switch between grid power supply and generator power supply to realize on-demand power supply and peak shaving and valley filling.
[0103] (3) When the intelligent distribution cabinet disconnects or communication is interrupted, the controller re-identifies the device type upstream of -QS2; if it cannot be identified or is identified as a normal load, the closing strategy is updated to prohibit closing, -QS2 automatically opens, and the system returns to mutual exclusion mode.
[0104] Through the above process, this embodiment realizes the flexible parallel connection of intelligent loads and power supply, enabling the intelligent power distribution cabinet to autonomously select between the two power sources according to a preset strategy, thereby improving the intelligence and energy efficiency of power supply for communication base stations.
[0105] Example 4: Complex Scenarios with Mixed Loads This embodiment provides a hybrid power supply system that includes multiple types of loads. The system configuration includes: a power grid, a generator, a second transfer switch (-QS1), a first transfer switch (-QS2, i.e., a smart port transfer switch), a third-party grid-connected inverter, smart loads (with communication interfaces), and conventional loads. The three types of loads are each connected to the busbar via independent branch circuit breakers.
[0106] Its working process and adaptive mode switching are as follows: (1) When only a regular load is connected upstream of -QS2, the controller identifies the target device as the load type and, in conjunction with the closing status of -QS1, determines the closing strategy as allowing closing (achieving dual power supply hot standby), or as prohibiting closing (maintaining mutual exclusion) according to the system configuration. In practical applications, the configuration can be flexibly adjusted according to the load's requirements for power supply reliability.
[0107] (2) When a third-party grid-connected inverter (which may include multiple inverters) is connected upstream of -QS2, the controller identifies it as a grid-connected inverter type, allowing -QS1 and -QS2 to be closed at the same time, so that the inverter can operate in parallel with the grid and realize the full consumption of photovoltaic or energy storage power.
[0108] (3) When a smart load (such as a smart distribution cabinet) is connected upstream of -QS2, the controller obtains its equipment type through communication interaction, allows it to enter the parallel mode, and enables the smart load to choose its power supply source autonomously.
[0109] (4) When a certain type of load is disconnected or its type changes, the controller re-acquires the equipment type and dynamically updates the closing strategy. For example, when all third-party grid-connected inverters are disconnected, only regular loads remain upstream of -QS2. The closing strategy automatically switches from allowing closing to prohibiting closing, and the system automatically degrades from parallel mode to mutual exclusion mode to ensure power supply safety.
[0110] This embodiment demonstrates that in complex scenarios involving multiple types of loads, the system can automatically switch between mutual exclusion mode and parallel mode based on real-time changes in the type of upstream device in -QS2, without manual intervention. This ensures both power supply safety and power supply flexibility.
[0111] As can be seen from the above specific embodiments, the switching control method and system proposed in this application are applicable to a variety of application scenarios. They can adaptively adjust the closing strategy of the first switching switch according to the different types of access target devices, thereby maximizing the flexibility and economy of multi-power supply while ensuring power supply safety.
[0112] In one implementation, the switching control method provided in this application embodiment can be executed by a smart port switching switch. Figure 5 This is a schematic diagram of the internal architecture of the smart port switch provided in an embodiment of this application. Figure 5 As shown, the smart port switching switch (such as...) Figure 1 The QS2 integrates a main control MCU, upstream type identification circuit, closing controller, cascade hardware interlock, cascade signal output, self-drive, real-time monitoring module and event recording module. All components work together to achieve automatic identification of target device type and adaptive decision-making of closing strategy.
[0113] Main Control MCU: As the core control unit of the intelligent port switch, the main control MCU is responsible for receiving the device type identification result output by the upstream type identification circuit, obtaining the closing status information of the second switch (-QS1), and determining the closing strategy of the first switch according to the preset decision logic. The main control MCU is also responsible for data interaction with external communication interfaces (such as RS485, CAN, Modbus, etc.) and reporting system status, event logs, and other information to the remote operation and maintenance platform.
[0114] Upstream Type Identification Circuit: This circuit identifies the device type of the target device connected upstream of the smart port switch. The upstream type identification circuit acquires voltage, frequency, and total harmonic distortion (THD) information upstream of the smart port switch through a voltage sampling circuit, a frequency sampling circuit, and a total harmonic distortion (THD) analysis circuit. Simultaneously, it sends a communication request to the target device via a communication interface (such as RS485, CAN, Modbus, etc.) to obtain the target device's communication interaction information (such as device identifier, operating mode identifier, etc.). Based on at least one of the aforementioned electrical information and communication interaction information, the upstream type identification circuit comprehensively determines whether the target device belongs to a load type, a grid-connected inverter type, an off-grid inverter type, or a generator type, and outputs the identification result to the main control MCU. For the specific identification process of this circuit, please refer to the relevant description of the aforementioned device type identification method.
[0115] Closing Controller: The closing controller generates a closing control signal for the smart port switch based on the closing status of the second switching switch (-QS1) and the target device type output by the upstream type identification circuit. Specifically, the closing controller receives the closing strategy decision result from the main control MCU. When the closing strategy allows closing, the closing controller sends a closing command to the smart port switch's own driver; when the closing strategy prohibits closing, the closing controller either does not send a closing command or sends a tripping command to the smart port switch's own driver. The closing controller's decision logic can be pre-configured as a decision matrix and stored in the main control MCU's memory unit to achieve fast table lookup decision-making.
[0116] Cascading signal output: The cascading signal output is used to output a cascading signal to the control terminal of the second switching switch (-QS1), realizing coordinated control between the two switching switches. In mutual exclusion mode, the cascading signal output reflects the closing status of -QS2, enabling the control circuit of -QS1 to know the status information of -QS2, thereby realizing the mutual exclusion power supply logic; in parallel mode, the cascading signal output allows both switching switches to close simultaneously, canceling the mutual exclusion restriction. The cascading signal output, together with the hardware mechanical interlock circuit, constitutes a dual protection mechanism of software logic and hardware enforcement.
[0117] Cascaded Hardware Interlock: A cascaded hardware interlock is a purely mechanical interlock circuit between the first and second switching switches. It is implemented by connecting the auxiliary normally closed contact of the first switching switch (-QS2) and the auxiliary normally closed contact of the second switching switch (-QS1) in series with the control power supply. When either switch closes, its own auxiliary normally closed contact opens, thereby cutting off the power supply circuit to the closing coil of the other switch and forcibly preventing it from closing. This cascaded hardware interlock does not rely on any software, microcontroller, or relays. Even if the main control MCU completely fails, the hardware interlock can still independently perform safety protection functions, ensuring that the two switching switches will not close simultaneously.
[0118] The intelligent port changeover switch self-drive is a drive circuit used to drive the first changeover switch body to perform closing or opening operations. The intelligent port changeover switch self-drive receives closing or opening commands from the closing controller, driving the closing or opening coil of the changeover switch to actuate, thus realizing the mechanical state switching of the switch. The intelligent port changeover switch self-drive also has a built-in status feedback circuit, which can detect the actual position of the switch (closed / open) in real time and feed the status information back to the main control MCU and the real-time monitoring module, forming a closed-loop control.
[0119] Real-time monitoring module: The real-time monitoring module continuously monitors the electrical parameters such as voltage, frequency, and phase upstream of the intelligent port switching switch, as well as the closing status of the second switching switch (-QS1) and the closing status of the first switching switch itself. The monitoring data from the real-time monitoring module is periodically reported to the main control MCU for status judgment and decision updates. During parallel operation, the real-time monitoring module also works with the synchronization controller to continuously monitor the synchronization status of the power supplies on both sides. Once a loss of synchronization is detected, the loss-of-synchronization protection mechanism is immediately triggered.
[0120] Event logging module: The event logging module is used to record key events during the operation of the switching control system, including but not limited to: mode switching events (mutually exclusive modes). The event logging function records events such as parallel mode switching, closing / opening operation events, equipment type identification result changes, synchronization verification result events, and fault alarm events. This provides comprehensive data support for system fault diagnosis, operation and maintenance analysis, and security auditing.
[0121] Through the coordinated operation of the aforementioned components, the intelligent port switching switch achieves automatic identification of target device types, adaptive decision-making of closing strategies, reliable drive of the switch, real-time monitoring of operating status, and complete recording of key events, providing a highly integrated and intelligent switching control solution for multi-power mixed power supply scenarios.
[0122] The methods of the embodiments of this application have been described in detail above. In order to facilitate better implementation of the above solutions of the embodiments of this application, the apparatus of the embodiments of this application is provided below.
[0123] Please see Figure 6 , Figure 6 This is a schematic diagram of a switching control device provided in an embodiment of this application. In one embodiment, Figure 6 The switch control device shown can be integrated into a computer device. Figure 6 The switch control device shown can be used to perform the above. Figure 3Some or all of the functions described in the method embodiments. For example... Figure 6 As shown, the switching control device includes: The acquisition unit 601 is used to acquire the device type of the target device corresponding to the first switching switch and the closing status of the second switching switch; Processing unit 602 is used to determine the closing strategy of the first switching switch based on the equipment type of the target equipment and the closing status of the second switching switch. And for controlling the first switching switch to close if the closing strategy is to allow closing; And if the closing strategy is to prohibit closing, then control the first switching switch to remain in the open state.
[0124] In one embodiment, the processing unit 602 is configured to determine the closing strategy of the first switching switch based on the device type of the target device and the closing state of the second switching switch, specifically for: If the second switching switch is in the open state, then the closing strategy of the first switching switch is determined to be allowing closing; If the second switching switch is in the closed state, the closing strategy of the first switching switch is determined according to the equipment type of the target equipment.
[0125] In one embodiment, the processing unit 602 is configured to determine the closing strategy of the first switching switch based on the device type of the target device, specifically for: If the target device is a load type or a grid-connected inverter type, then the closing strategy of the first switching switch is determined to be allowing closing; If the target device is an off-grid inverter or a generator, then the closing strategy of the first switching switch is to prohibit closing.
[0126] In one embodiment, the target device is connected upstream of the first switching switch, and the processing unit 602 is used to obtain the device type of the target device corresponding to the first switching switch, specifically for: Obtain electrical information upstream of the first switching switch; Send a communication request to the target device and obtain the communication interaction information of the target device; Identify the device type of the target device based on electrical and communication interaction information.
[0127] In one embodiment, the electrical information includes total harmonic distortion information; the processing unit 602 is configured to identify the device type of the target device based on the electrical information and communication interaction information, specifically for: If the total harmonic distortion is greater than the first distortion threshold, and the grid connection mode identifier sent by the target device is obtained, then the device type of the target device is determined to be a grid-connected inverter type. If the total harmonic distortion is greater than the first distortion threshold and the off-grid mode identifier sent by the target device is obtained, then the device type of the target device is determined to be an off-grid inverter. If the total harmonic distortion is less than the second distortion threshold and the target device has no communication response, then the device type of the target device is determined to be load type. If the frequency drift upstream of the first switching switch exceeds the frequency drift threshold, or the total harmonic distortion is greater than the second distortion threshold, and the generator identifier sent by the target device is obtained, then the device type of the target device is determined to be the generator type. The first distortion threshold is greater than the second distortion threshold.
[0128] In one implementation, the target device is a grid-connected inverter, and the closing strategy is to allow closing; before controlling the first switching switch to close, the processing unit 602 is further configured to: If the synchronization status between the power supply side corresponding to the second switching switch and the target device meets the preset synchronization conditions, then the first switching switch is determined to have passed the synchronization status detection. If the synchronization status between the power supply side corresponding to the second switching switch and the target device does not meet the preset synchronization conditions, an adjustment signal is sent to the target device to adjust the output voltage or frequency of the target device until the synchronization status meets the preset synchronization conditions. The preset synchronization conditions include: the frequency deviation between the power supply side corresponding to the second switch and the target device is less than the frequency deviation threshold; the phase deviation between the power supply side corresponding to the second switch and the target device is less than the phase deviation threshold; the voltage deviation between the power supply side corresponding to the second switch and the target device is less than the voltage deviation threshold; and the phase sequence of the power supply side corresponding to the second switch and the target device are both positive.
[0129] According to one embodiment of this application, Figure 3 The steps involved in the switch control method shown can be derived from... Figure 6 The switching control device shown is operated by individual units within it. For example, Figure 3 Step S301 shown can be performed by Figure 6 The acquisition unit 601 shown is executed, and steps S302-S304 can be performed by... Figure 6 The processing unit 602 shown executes. Figure 6The various units in the switch control device shown can be individually or entirely combined into one or more other units, or some of the units can be further divided into multiple functionally smaller units. This achieves the same operation without affecting the technical effects of the embodiments of this application. The above units are based on logical function division. In practical applications, the function of one unit can be implemented by multiple units, or the function of multiple units can be implemented by one unit. In other embodiments of this application, the switch control device may also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented collaboratively by multiple units.
[0130] According to another embodiment of this application, a general-purpose computing device, such as a computer device including processing elements and storage elements such as a central processing unit (CPU), random access memory (RAM), and read-only memory (ROM), can perform operations such as... Figure 3 The computer program (including program code) involved in each step of the corresponding method shown, to construct such... Figure 6 The diagram illustrates a switch control device and a switch control method for implementing embodiments of this application. A computer program may be recorded on, for example, a computer-readable recording medium, loaded onto the aforementioned computing device via the same medium, and executed therein.
[0131] Based on the same inventive concept, the principle and beneficial effects of the switching control device provided in the embodiments of this application are similar to the principle and beneficial effects of the switching control method in the embodiments of this application. For details, please refer to the principle and beneficial effects of the method implementation. For the sake of brevity, these will not be repeated here.
[0132] Please see Figure 7 , Figure 7 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Figure 7As shown, the computer device includes at least a processor 701, a communication interface 702, and a memory 703. The processor 701, communication interface 702, and memory 703 can be connected via a bus or other means. The processor 701 (or Central Processing Unit, CPU) is the computing and control core of the computer device. It can parse various instructions within the computer device and process various data. For example, the CPU can parse power-on / off commands issued by an object to the computer device and control the computer device to perform power-on / off operations; it can also transmit various interactive data between internal structures of the computer device, and so on. The communication interface 702 may optionally include a standard wired interface or a wireless interface (such as Wi-Fi, mobile communication interface, etc.), and under the control of the processor 701, it can be used to send and receive data; the communication interface 702 can also be used for data transmission and interaction within the computer device. The memory 703 is the storage device in the computer device, used to store programs and data. It can be understood that the memory 703 here can include the computer device's built-in memory, or it can include extended memory supported by the computer device. The memory 703 provides storage space for storing the operating system of the computer device, which may include, but is not limited to, Android, iOS, Windows Phone, etc. This application does not limit this.
[0133] This application embodiment also provides a computer-readable storage medium (Memory), which is a memory device in a computer device used to store programs and data. It is understood that the computer-readable storage medium here can include both the built-in storage medium in the computer device and extended storage media supported by the computer device. The computer-readable storage medium provides storage space that stores the processing system of the computer device. Furthermore, the storage space also stores computer programs suitable for loading and execution by the processor 701. It should be noted that the computer-readable storage medium here can be high-speed RAM or non-volatile memory, such as at least one disk storage device; optionally, it can also be at least one computer-readable storage medium located remotely from the aforementioned processor.
[0134] In one embodiment, processor 701 performs the following operations by running a computer program stored in memory 703: Obtain the device type of the target device corresponding to the first switching switch, and the closing status of the second switching switch; Based on the equipment type of the target equipment and the closing status of the second switching switch, determine the closing strategy of the first switching switch; If the closing strategy is to allow closing, then control the first switching switch to close; If the closing strategy is to prohibit closing, then the first switching switch is controlled to remain in the open state.
[0135] As an optional embodiment, the processor 701 determines the closing strategy of the first switching switch based on the device type of the target device and the closing state of the second switching switch. A specific embodiment of this is as follows: If the second switching switch is in the open state, then the closing strategy of the first switching switch is determined to be allowing closing; If the second switching switch is in the closed state, the closing strategy of the first switching switch is determined according to the equipment type of the target equipment.
[0136] As an optional embodiment, the processor 701 determines the closing strategy of the first switching switch according to the device type of the target device in the following specific embodiment: If the target device is a load type or a grid-connected inverter type, then the closing strategy of the first switching switch is determined to be allowing closing; If the target device is an off-grid inverter or a generator, then the closing strategy of the first switching switch is to prohibit closing.
[0137] As an optional embodiment, the target device is connected upstream of the first switching switch. A specific embodiment of the processor 701 obtaining the device type of the target device corresponding to the first switching switch is as follows: Obtain electrical information upstream of the first switching switch; Send a communication request to the target device and obtain the communication interaction information of the target device; Identify the device type of the target device based on electrical and communication interaction information.
[0138] As an optional embodiment, the electrical information includes total harmonic distortion information; a specific embodiment in which the processor 701 identifies the device type of the target device based on the electrical information and communication interaction information is as follows: If the total harmonic distortion is greater than the first distortion threshold, and the grid connection mode identifier sent by the target device is obtained, then the device type of the target device is determined to be a grid-connected inverter type. If the total harmonic distortion is greater than the first distortion threshold and the off-grid mode identifier sent by the target device is obtained, then the device type of the target device is determined to be an off-grid inverter. If the total harmonic distortion is less than the second distortion threshold and the target device has no communication response, then the device type of the target device is determined to be load type. If the frequency drift upstream of the first switching switch exceeds the frequency drift threshold, or the total harmonic distortion is greater than the second distortion threshold, and the generator identifier sent by the target device is obtained, then the device type of the target device is determined to be the generator type. The first distortion threshold is greater than the second distortion threshold.
[0139] As an optional embodiment, the target device is a grid-connected inverter, and the closing strategy is to allow closing; before controlling the first switching switch to close, the processor 701 also performs the following operations by running the computer program in the memory 703: If the synchronization status between the power supply side corresponding to the second switching switch and the target device meets the preset synchronization conditions, then the first switching switch is determined to have passed the synchronization status detection. If the synchronization status between the power supply side corresponding to the second switching switch and the target device does not meet the preset synchronization conditions, an adjustment signal is sent to the target device to adjust the output voltage or frequency of the target device until the synchronization status meets the preset synchronization conditions. The preset synchronization conditions include: the frequency deviation between the power supply side corresponding to the second switch and the target device is less than the frequency deviation threshold; the phase deviation between the power supply side corresponding to the second switch and the target device is less than the phase deviation threshold; the voltage deviation between the power supply side corresponding to the second switch and the target device is less than the voltage deviation threshold; and the phase sequence of the power supply side corresponding to the second switch and the target device are both positive.
[0140] Based on the same inventive concept, the principle and beneficial effects of the computer device provided in the embodiments of this application in solving the problem are similar to the principle and beneficial effects of the switching control method in the embodiments of this application in solving the problem. Please refer to the principle and beneficial effects of the implementation of the method. For the sake of brevity, they will not be repeated here.
[0141] This application also provides a computer-readable storage medium storing a computer program adapted to be loaded by a processor and execute the switching control method of the above method embodiments.
[0142] This application also provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the aforementioned switching control method.
[0143] The steps in the method of this application embodiment can be adjusted, combined, or deleted according to actual needs.
[0144] The modules in the device of this application embodiment can be merged, divided, and deleted according to actual needs.
[0145] In the embodiments of this application, the term "module" or "unit" refers to a computer program or part of a computer program with a predetermined function, which works together with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.
[0146] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc.
[0147] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Those skilled in the art will understand that all or part of the processes for implementing the above embodiments and equivalent variations made in accordance with the claims of this application are still within the scope of this application.
Claims
1. A switching control method, characterized in that, include: Obtain the device type of the target device corresponding to the first switching switch, and the closing status of the second switching switch; Based on the device type of the target device and the closing status of the second switching switch, determine the closing strategy of the first switching switch; If the closing strategy allows closing, then control the first switching switch to close; If the closing strategy is to prohibit closing, then the first switching switch is controlled to remain in the open state.
2. The method as described in claim 1, characterized in that, The step of determining the closing strategy of the first switching switch based on the device type of the target device and the closing status of the second switching switch includes: If the second switching switch is in the open state, then the closing strategy of the first switching switch is determined to be allowing closing; If the second switching switch is in the closed state, the closing strategy of the first switching switch is determined according to the equipment type of the target device.
3. The method as described in claim 2, characterized in that, The step of determining the closing strategy of the first switching switch based on the device type of the target device includes: If the target device is a load type or a grid-connected inverter type, then the closing strategy of the first switching switch is determined to be allowing closing; If the target device is an off-grid inverter or a generator, then the closing strategy of the first switching switch is determined to be to prohibit closing.
4. The method as described in claim 1, characterized in that, The target device is connected upstream of the first switching switch, and obtaining the device type of the target device corresponding to the first switching switch includes: Obtain the electrical information upstream of the first switching switch; Send a communication request to the target device and obtain the communication interaction information of the target device; The device type of the target device is identified based on the electrical information and the communication interaction information.
5. The method as described in claim 4, characterized in that, The electrical information includes total harmonic distortion information; the step of identifying the device type of the target device based on the electrical information and the communication interaction information includes: If the total harmonic distortion is greater than the first distortion threshold, and the grid connection mode identifier sent by the target device is obtained, then the device type of the target device is determined to be a grid-connected inverter type. If the total harmonic distortion is greater than the first distortion threshold, and the off-grid mode identifier sent by the target device is obtained, then the device type of the target device is determined to be an off-grid inverter type. If the total harmonic distortion is less than the second distortion threshold and the target device has no communication response, then the device type of the target device is determined to be a load type. If the frequency drift upstream of the first switching switch exceeds the frequency drift threshold, or the total harmonic distortion is greater than the second distortion threshold, and the generator identifier sent by the target device is obtained, then the device type of the target device is determined to be a generator type. Wherein, the first distortion threshold is greater than the second distortion threshold.
6. The method as described in claim 1, characterized in that, The target device is a grid-connected inverter, and the closing strategy is to allow closing; before controlling the first switching switch to close, the method further includes: If the synchronization status between the power supply side corresponding to the second switching switch and the target device meets the preset synchronization conditions, then the first switching switch is determined to have passed the synchronization status detection. If the synchronization state between the power supply side corresponding to the second switching switch and the target device does not meet the preset synchronization condition, an adjustment signal is sent to the target device to adjust the output voltage or frequency of the target device until the synchronization state meets the preset synchronization condition. The preset synchronization conditions include: the frequency deviation between the power supply side corresponding to the second switch and the target device is less than the frequency deviation threshold; the phase deviation between the power supply side corresponding to the second switch and the target device is less than the phase deviation threshold; the voltage deviation between the power supply side corresponding to the second switch and the target device is less than the voltage deviation threshold; and the phase sequence of the power supply side corresponding to the second switch and the target device are both positive.
7. A switching control system, characterized in that, include: First switching switch and second switching switch; The device type identification module is used to identify the device type of the target device corresponding to the first switch; The controller is configured to determine the closing strategy of the first switching switch based on the device type of the target device and the closing state of the second switching switch, and control the closing state of the first switching switch according to the closing strategy.
8. A switching control device, characterized in that, The switching control device includes: The acquisition unit is used to acquire the device type of the target device corresponding to the first switching switch and the closing status of the second switching switch; The processing unit is configured to determine the closing strategy of the first switching switch based on the device type of the target device and the closing status of the second switching switch. And for controlling the first switching switch to close if the closing strategy allows closing; And if the closing strategy is to prohibit closing, control the first switching switch to remain in the open state.
9. A computer device, characterized in that, include: A memory, wherein a computer program is stored; A processor is configured to load the computer program to implement the switching control method as described in any one of claims 1-6.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program adapted to be loaded by a processor and executed as described in any one of claims 1-6.
