Alternating current and direct current switching method and system between switches
Through the intelligent AC-DC switching system based on the MCU processor, the power state is monitored and scheduled in real time, and the problems of unsmooth switching and long response time in the existing technology are solved, and the smooth transition of power switching and the high-reliability operation of the system are achieved.
Patent Information
- Application Number
- CN202510083699.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-20
- Publication Date
- 2025-05-02
AI Technical Summary
The existing AC-DC switching schemes have insufficient switching, long response time or interruption, which leads to unstable or downtime when the power supply changes.
The intelligent AC and DC switching system based on the MCU processor is adopted to monitor the working status of AC and DC power supplies in real time, and use the intelligent scheduling mechanism to achieve a smooth transition of power switching to ensure the stable and continuous operation of the system.
It realizes seamless connection of power switching, improves the system's response speed and reliability, and ensures that the equipment continues to work normally in the event of power supply changes or abnormal situations.
Smart Images

Figure CN119921447A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of AC / DC control design, and in particular to an AC / DC switching method and system between switches. Background Art
[0002] With the widespread application of power storage and emergency power supply systems, especially in the fields of communications, smart grids, and new energy vehicle charging stations, it is particularly important to ensure the continuity and stability of the system during power failures. In these systems, AC / DC switching technology is usually required to ensure that when the AC power fails, it can quickly switch to the DC power supply to maintain the normal operation of the equipment. However, many traditional AC / DC switching solutions currently have problems such as insufficient switching smoothness, long response time, or interruption, which makes the system prone to instability or shutdown when the power supply changes.
[0003] In order to improve the stability and reliability of the system, many advanced power management systems have begun to introduce intelligent control modules to monitor the status of the power supply in real time and automatically switch according to the operation of the power supply. In the existing technology, most systems use static switching methods and cannot dynamically adjust according to the real-time load and power stability of the system, resulting in delays, damage to equipment, or impact on system operation during the power switching process.
[0004] Therefore, it is particularly important to develop an efficient, intelligent and seamless AC / DC switching system, especially in terms of power failure detection, delay optimization of switching operations, and power supply scheduling under different power supply states. In order to meet the above challenges, the present invention proposes an intelligent AC / DC switching system based on an MCU processor, which monitors the working status of AC and DC power supplies in real time. When a fault or abnormality occurs, the system realizes a smooth transition of power switching through an intelligent scheduling mechanism, ensures stable and continuous operation of the system, and greatly improves the response speed and reliability of the system. Summary of the invention
[0005] The embodiment of the present application provides a method and system for switching between AC and DC between switches. The technical solution is as follows:
[0006] According to one aspect of the present application, a switch-to-switch AC / DC switching system is provided, the system comprising: an MCU processor, and an AC power supply module, a BMS remote switch module, a DIP switch module, and a BMS power supply module respectively connected to the MCU processor, wherein the AC power supply module and the BMS remote switch module interact bidirectionally with the MCU processor;
[0007] The AC power supply module is used to provide AC power to ensure the normal operation of the system;
[0008] The BMS remote switch module is used to control the switching of AC or DC power supply;
[0009] The DIP switch module is used to provide a static input signal to configure the system;
[0010] The MCU processor is responsible for controlling the operation of the entire system and performing the logic judgment and scheduling of AC and DC power supply switching;
[0011] The BMS power supply module is used to provide DC power and switch to the system main power supply when AC power supply is unavailable.
[0012] Optionally, the MCU processor is also used to determine and control the switching of the AC power supply and the DC power supply according to the real-time status information of the system;
[0013] Optionally, the AC power supply module includes an AC power supply module, which is used to provide AC power to the system and ensure stable operation of the system under normal conditions;
[0014] The BMS power supply module includes a DC power supply module, which is used to provide a backup DC power supply when the AC power supply is abnormal or unusable;
[0015] The MCU processor is also used to delay shutting down the output of the AC power supply module when an AC power failure is detected, and quickly enable the DC power supply module;
[0016] The MCU processor is also used to delay shutting down the output of the DC power supply module when an abnormal DC power supply is detected, and switch to the AC power supply module for AC power supply.
[0017] Optionally, the DIP switch module is used to configure the initial parameters and debugging parameters of the system, wherein the static input signal of the DIP switch module is provided to the MCU processor, and the MCU is also used to set the system's operating mode and priority according to the static input signal.
[0018] Optionally, the BMS remote switch module communicates with the MCU processor wirelessly or by wire, and the BMS remote switch module supports remote control switching operations between AC and DC power supply.
[0019] Optionally, the power switching between the AC power supply module and the BMS power supply module is intelligently adjusted by the MCU processor according to the system load conditions and power supply stability, and has the function of delayed shutdown and enablement to ensure that there is no obvious interruption during the switching process.
[0020] Optionally, the BMS power supply module monitors and manages the battery power through a built-in battery management system BMS, and the BMS is used to automatically switch to the backup power supply when the AC power supply is unavailable.
[0021] On the other hand, a method for switching between AC and DC switches is provided. The method is used in the above-mentioned AC and DC switching system between switches. The method is used in the MCU processor, and the method includes:
[0022] Get status information of AC power and DC power;
[0023] Determine the current power type according to the status information;
[0024] If the current power supply is AC, monitor the stability. If a failure occurs, delay shutting down the AC power and enable the DC power.
[0025] If the current power supply is DC, delay shutting down the DC power supply and switch to AC power supply;
[0026] During the switching process, the power supply priority is adjusted according to the system load conditions.
[0027] Optionally, determining the current power type according to the status information includes:
[0028] By monitoring the output signals of the AC power supply module and the BMS power supply module, real-time status information of the system is obtained in real time, wherein the status information includes whether an AC power supply or a DC power supply is currently used;
[0029] If the AC power supply is in working state, the current power supply type is marked as AC power supply;
[0030] If a DC power supply is used, the current power supply type is marked as DC power supply.
[0031] Optionally, if the current power supply is an AC power supply, monitoring the stability, and if a failure occurs, delaying shutting down the AC power supply and enabling the DC power supply, includes:
[0032] If the current power supply is AC, periodically obtain the output signal of the AC power supply module to determine whether it is within the normal working range;
[0033] If a fault is detected in the output signal of the AC power supply module, a fault response mechanism is initiated;
[0034] In the fault response mechanism, the output of the AC power supply module is gradually shut down according to the set delay time, and the BMS power supply module is enabled at the same time;
[0035] If the current power supply is a DC power supply, the DC power supply is turned off with a delay and switched to an AC power supply, including:
[0036] If the current power supply is DC, monitor the recovery status of AC power;
[0037] If it is detected that the AC power returns to normal, the power switching logic is started;
[0038] In the power switching logic, the output of the AC power supply module is gradually shut down according to the set delay time, and the BMS power supply module is started during the process to switch the AC power supply.
[0039] The embodiment of the present application provides an AC / DC switching system between switches. The system coordinates the work between modules through the MCU processor, realizes the intelligent switching between AC power and DC power, ensures that when the AC power fails, the system can quickly and seamlessly switch to the backup DC power, and promptly restore to the AC power supply when the DC power is abnormal. Through this system, the reliability and stability of power supply can be improved, ensuring that the device terminal continues to work normally under power supply changes or abnormal conditions. It has good scalability and adaptability and is suitable for multiple fields such as communication power supply, emergency power supply, and car charging stations. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 is a structural schematic diagram of an AC / DC switching system between switches provided by an exemplary embodiment of the present application;
[0041] Figure 2 A flow chart of an AC / DC switching method between switches provided by an exemplary embodiment of the present application is shown;
[0042] Figure 3 shows the timing diagram when AC switches to DC;
[0043] Figure 4 shows the timing diagram when DC is switching to AC. DETAILED DESCRIPTION
[0044] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0045] The term "multiple" as used herein refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.
[0046] Example 1
[0047] Please refer to Figure 1, which shows a schematic diagram of the structure of an AC / DC switching system between switches provided by an exemplary embodiment of the present application. The system includes: an MCU processor, and an AC power supply module, a BMS remote switch module, a DIP switch module, and a BMS power supply module respectively connected to the MCU processor.
[0048] As for the connection relationship, the AC power supply module and the BMS remote switch module interact bidirectionally with the MCU processor.
[0049] The AC power supply module is used to provide AC power to ensure the normal operation of the system. The AC power supply module is the main power module of the entire system, responsible for providing AC power to ensure that the system has sufficient power supply during normal operation. This module will provide stable AC voltage and current to other modules in the system (especially the MCU processor and BMS power supply module). During the AC / DC switching process of the system, when the AC power supply is detected to be faulty or unstable, the MCU will control the output of the module, delay the shutdown of the AC power supply and quickly switch to the backup DC power supply (provided by the BMS power supply module).
[0050] The BMS remote switch module is used to control the switching of AC or DC power supply. The BMS remote switch module is a control module that interacts bidirectionally with the MCU processor, and is mainly responsible for power switching operations on the AC power supply module and the BMS power supply module through remote control signals (such as wireless or wired). It receives instructions from the MCU and sends a switching signal to the AC power supply module or the BMS power supply module so that the backup power supply can be enabled in time when a power supply failure occurs. The module also supports monitoring the power supply status and switching to the appropriate power supply according to system requirements.
[0051] The DIP switch module is used to provide static input signals for system configuration. The DIP switch module is used to provide static input signals, mainly used to configure the system's operating mode and initial settings (such as power switching priority, delay time, etc.). Through this module, users can manually set the system's debugging parameters and provide the MCU with necessary configuration data. The DIP switch module helps the system adjust the operating mode according to specific needs during the startup or maintenance phase by inputting fixed signals.
[0052] The MCU processor is responsible for controlling the operation of the entire system and performing the logical judgment and scheduling of AC and DC power supply switching. The MCU processor is the core control unit of the entire AC and DC switching system between switches, responsible for the operation management and power supply scheduling of the system. The MCU continuously monitors the status of the AC power supply module and the BMS power supply module, and obtains the power status information of the AC power supply and DC power supply in real time.
[0053] Based on this information, the MCU will perform the following logical operations:
[0054] Power type judgment: judge whether AC power or DC power is currently used through the input power status signal (such as voltage and current feedback);
[0055] Fault response and switching: If the system is using AC power and detects a fault, the MCU will gradually shut down the AC power according to the set delay time and enable the DC power (BMS power supply module). Conversely, if the current power is DC and the AC power is restored, the MCU will delay shutting down the DC power and switch to AC power.
[0056] The BMS power supply module is used to provide DC power and switch to the system main power supply when AC power supply is unavailable.
[0057] The BMS power supply module is a module that provides DC power to the system and also acts as a backup power source. When the AC power is unavailable, it will automatically switch to the main power source of the system. The module monitors and manages the battery power and health status through the battery management system (BMS) to ensure that the battery provides sufficient power without affecting the operation of the system. In addition, the MCU controls the activation and shutdown of the module through the BMS remote switch module to ensure that the system can seamlessly transition to DC power supply mode when the AC power fails.
[0058] In summary, the embodiment of the present application provides an AC / DC switching system between switches, which coordinates the work between modules through the MCU processor, realizes the intelligent switching between AC power and DC power, and ensures that when the AC power fails, the system can quickly and seamlessly switch to the backup DC power supply, and promptly restore to the AC power supply when the DC power is abnormal. Through this system, the reliability and stability of power supply can be improved, ensuring that the device terminal continues to work normally under power supply changes or abnormal conditions. It has good scalability and adaptability and is suitable for multiple fields such as communication power supply, emergency power supply, and car charging stations.
[0059] Example 2
[0060] Furthermore, each structure of the above system is further explained.
[0061] Optionally, the MCU processor is also used to determine and control the switching between AC power and DC power according to the real-time status information of the system. Further, the MCU processor is the core control unit of the system, responsible for determining and controlling the switching between AC power (AC power supply module) and DC power (BMS power supply module) according to the real-time status information of the system.
[0062] Specifically, the MCU processor determines the type of current power supply (AC power or DC power) by monitoring the status information of the AC power supply module and the DC power supply module in real time. When the AC power supply is detected to be faulty or abnormal, the MCU processor will delay shutting down the output of the AC power supply module and quickly enable the DC power supply module. When a problem with the DC power supply is detected, the MCU processor will delay shutting down the DC power supply module and switch to the AC power supply. The MCU also intelligently adjusts the power switching according to the system load, power supply stability and set priority to ensure that there is no obvious interruption during the switching process.
[0063] Optionally, the AC power supply module includes an AC power supply module, which is used to provide AC power to the system and ensure the stable operation of the system under normal circumstances. The power provided by this module will be used to drive the MCU processor, BMS power supply module and other system components. In the event of an AC power failure or instability, the MCU processor will control the output of the module, delay the shutdown of the AC power supply, and switch the power supply to the backup DC power supply to ensure that the system continues to work without interruption.
[0064] The BMS power supply module includes a DC power supply module, which is used to provide a backup DC power supply when the AC power supply is abnormal or cannot be used. That is, when the AC power supply of the system is abnormal or cannot be used, the BMS power supply module will provide a backup DC power supply. The DC power supply is usually supported by a battery to ensure that the system can continue to operate when the AC power fails. In addition, the BMS power supply module monitors and manages the battery power and health status through a built-in battery management system (BMS) to ensure that the battery operates within a reasonable working range and avoid excessive discharge or damage to the battery.
[0065] The MCU processor is also used to delay shutting down the output of the AC power supply module when an AC power failure is detected, and quickly enable the DC power supply module;
[0066] The MCU processor is also used to delay shutting down the output of the DC power supply module when an abnormal DC power supply is detected, and switch to the AC power supply module for AC power supply.
[0067] Optionally, the DIP switch module is used to configure the initial parameters and debugging parameters of the system, wherein the static input signal of the DIP switch module is provided to the MCU processor, and the MCU is also used to set the system's operating mode and priority according to the static input signal. That is, the module provides the necessary configuration data to the MCU processor through the static input signal, so that the system can be adjusted according to the set operating mode and priority at startup or when debugging is required. The MCU processor will configure the system's operating mode according to the input signal of the DIP switch module, determine the switching priority, delay time and other parameters of AC and DC power supply, to ensure that the system makes appropriate power switching decisions according to actual needs.
[0068] Optionally, the BMS remote switch module communicates with the MCU processor wirelessly or wired, and the BMS remote switch module supports remote control of AC and DC power supply switching operations. By receiving remote control signals, the module can trigger power switching operations when the system fails or needs adjustment, ensuring that the system can respond in time under remote operation and maintain power supply stability.
[0069] Optionally, the power switching of the AC power supply module and the BMS power supply module is intelligently adjusted by the MCU processor according to the system load and power supply stability, and has the function of delayed shutdown and activation to ensure that there is no obvious interruption during the switching process. Intelligent adjustment specifically includes judging whether power switching is required based on the system load and power supply stability. The MCU processor controls the delayed shutdown and activation process of the power switching to ensure that there is no obvious interruption during the switching, avoiding system failure or shutdown caused by uneven power switching.
[0070] Optionally, the BMS power supply module monitors and manages the battery power through a built-in battery management system BMS. The BMS is used to automatically switch to a backup power source when the AC power source is unavailable, and detect the battery power, voltage and health status in real time to ensure that the battery operates within a good working range. In the event that the AC power supply module is unavailable, the BMS power supply module will automatically switch to a backup power source to ensure the normal operation of the system.
[0071] In summary, this system coordinates the work of AC power supply module, BMS power supply module, BMS remote switch module, DIP switch module and other modules through the MCU processor, and intelligently judges and controls the switching of power supply. When the power supply fails, the MCU processor delays the shutdown of the faulty power supply and enables the backup power supply according to factors such as system load and power supply stability to ensure seamless transition of the system. The system also supports remote control and local configuration functions. Users can adjust parameters such as working mode and priority according to actual needs, thereby improving the reliability and flexibility of the system.
[0072] Example 3
[0073] On the other hand, a method for switching between AC and DC switches is provided. The method is used in the above-mentioned AC and DC switching system between switches. The method is used in the MCU processor, and the method includes:
[0074] Step 201, obtaining status information of an AC power source and a DC power source.
[0075] In this step, the MCU processor obtains system status information in real time by monitoring the output signals of the AC power supply module and the BMS power supply module. This information includes the type of current power supply (i.e., AC power supply or DC power supply).
[0076] The specific operation is as follows. The AC power supply module will provide information about the voltage, current and working status of the AC power supply for the MCU processor to analyze and judge; the BMS power supply module provides information such as the battery power and status of the DC power supply to ensure seamless switching when the AC power fails. With this information, the MCU can determine whether the current system is in AC power mode or DC power mode.
[0077] Step 202: determine the current power type according to the status information.
[0078] By monitoring the output signals of the AC power supply module and the BMS power supply module, the real-time status information of the system is obtained in real time, and the status information includes whether AC power or DC power is currently used; if the AC power is in working state, the current power type is marked as AC power supply; if DC power is used, the current power type is marked as DC power supply.
[0079] This judgment method ensures that the system can correctly identify the type of power currently in use at any time, providing a basis for subsequent switching operations.
[0080] Step 203: If the current power supply is AC, monitor the stability. If a failure occurs, delay shutting down the AC power supply and enable the DC power supply.
[0081] In this step, the MCU processor will continuously monitor the output signal of the AC power module to determine the working status of the AC power supply. The voltage, current and other key parameters of the AC power supply are regularly collected to confirm whether they are within the normal working range.
[0082] If the current power supply is AC, the output signal of the AC power supply module is obtained regularly to determine whether it is in the normal working range; if it is detected that the output signal of the AC power supply module is faulty (such as the voltage or current is not within the preset range), the fault response mechanism is started; in the fault response mechanism, the output of the AC power supply module is gradually shut down according to the set delay time, and the BMS power supply module is enabled at the same time, that is, while delaying the shutdown of the AC power supply, the MCU will quickly start the BMS power supply module and switch the system to the DC power supply to ensure that the system continues to operate stably.
[0083] Step 204: If the current power supply is a DC power supply, the DC power supply is turned off with a delay and switched to an AC power supply.
[0084] If the current power supply is DC, monitor the recovery status of AC power. That is, if the current system is using DC power, the MCU processor will continuously monitor the status of the AC power supply module to determine whether the AC power has returned to normal.
[0085] If it is detected that the AC power returns to normal, the power switching logic is started. That is, when it is detected that the AC power of the AC power supply module returns to normal working state, the MCU will start the power switching logic and switch to AC power supply.
[0086] In the power switching logic, the output of the AC power supply module is gradually turned off according to the set delay time, and the BMS power supply module is started to switch to AC power supply during the process. That is, in the power switching logic, the MCU gradually turns off the DC power supply according to the set delay time, and ensures a smooth transition to AC power supply through the BMS power supply module. The switching process needs to ensure that the system will not have obvious power supply interruption or instability due to power switching.
[0087] Step 205: During the switching process, the power supply priority is adjusted according to the system load condition.
[0088] During the power switching process, the MCU will dynamically adjust the power switching priority, including:
[0089] Adjust the priority according to the system load. The MCU will obtain the system load data in real time and evaluate the current system power supply requirements. If the system load is high, the MCU will prioritize the activation of the AC power supply to ensure stable operation.
[0090] To balance the current load during the switching process, the MCU also needs to adjust the switching speed between the AC power supply and the DC power supply according to the changes in the power load to ensure that the system is not overloaded during power switching to avoid damage to the battery or power system.
[0091] Through this dynamic adjustment, the system can intelligently optimize according to actual needs to ensure that the impact on equipment during power switching is minimized.
[0092] In summary, in the embodiments of the present application, a method for switching between AC and DC switches is provided. By real-time monitoring and intelligently judging the status of AC and DC power supplies, the system can achieve smooth switching of power supplies, ensuring timely switching to DC power supply when AC power supply fails, and being able to quickly switch back to AC power supply when DC power supply has problems, thereby ensuring the continuity and stability of the system. By setting a delayed shutdown and enablement mechanism, and dynamically adjusting the power supply priority according to the system load conditions, this method effectively avoids interruptions during the power switching process, improves the reliability and flexibility of power switching, and ensures that the system can operate efficiently and stably under various power supply conditions.
[0093] An embodiment of the present application further provides a computer-readable medium storing at least one instruction, wherein the at least one instruction is loaded and executed by the processor to implement the AC / DC switching method between switches as described in the above embodiments.
[0094] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. An AC / DC switching system between switches, characterized in that: The system includes: an MCU processor, and an AC power supply module, a BMS remote switch module, a DIP switch module, and a BMS power supply module respectively connected to the MCU processor, wherein the AC power supply module and the BMS remote switch module interact with the MCU processor in a bidirectional manner; The AC power supply module is used to provide AC power to ensure the normal operation of the system; The BMS remote switch module is used to control the switching of AC or DC power supply; The DIP switch module is used to provide a static input signal to configure the system; The MCU processor is responsible for controlling the operation of the entire system and performing the logic judgment and scheduling of AC and DC power supply switching; The BMS power supply module is used to provide DC power and switch to the system main power supply when AC power supply is unavailable.
2. The system according to claim 1, characterized in that The MCU processor is also used to determine and control the switching of the AC power supply and the DC power supply according to the real-time status information of the system.
3. The system according to claim 1, characterized in that The AC power supply module includes an AC power supply module, which is used to provide AC power to the system and ensure stable operation of the system under normal conditions; The BMS power supply module includes a DC power supply module, which is used to provide a backup DC power supply when the AC power supply is abnormal or unusable; The MCU processor is also used to delay shutting down the output of the AC power supply module when an AC power failure is detected, and quickly enable the DC power supply module; The MCU processor is also used to delay shutting down the output of the DC power supply module when an abnormal DC power supply is detected, and switch to the AC power supply module for AC power supply.
4. The system according to claim 1, characterized in that The DIP switch module is used to configure the initial parameters and debugging parameters of the system, wherein the static input signal of the DIP switch module is provided to the MCU processor, and the MCU is also used to set the working mode and priority of the system according to the static input signal.
5. The system according to any one of claims 1 to 4, characterized in that: The BMS remote switch module communicates with the MCU processor wirelessly or by wire, and the BMS remote switch module supports remote control switching operations between AC and DC power supply.
6. The system according to any one of claims 1 to 4, characterized in that: The power switching of the AC power supply module and the BMS power supply module is intelligently adjusted by the MCU processor according to the system load condition and power supply stability, and has the function of delayed shutdown and activation to ensure that there is no obvious interruption during the switching process.
7. The system according to any one of claims 1 to 4, characterized in that: The BMS power supply module monitors and manages the battery power through a built-in battery management system BMS. The BMS is used to automatically switch to a backup power source when the AC power source is unavailable.
8. A method for switching between AC and DC between switches, characterized in that: The method is used in the switch-to-switch AC / DC switching system according to any one of claims 1 to 7, and the method is used in the MCU processor, and the method includes: Get status information of AC power and DC power; Determine the current power type according to the status information; If the current power supply is AC, monitor the stability. If a failure occurs, delay shutting down the AC power and enable the DC power. If the current power supply is DC, delay shutting down the DC power supply and switch to AC power supply; During the switching process, the power supply priority is adjusted according to the system load conditions.
9. The method according to claim 8, characterized in that The determining the current power type according to the status information includes: By monitoring the output signals of the AC power supply module and the BMS power supply module, real-time status information of the system is obtained in real time, wherein the status information includes whether an AC power supply or a DC power supply is currently used; If the AC power supply is in working state, the current power supply type is marked as AC power supply; If a DC power supply is used, the current power supply type is marked as DC power supply.
10. The method according to claim 8, characterized in that If the current power supply is AC power, the stability is monitored, and if a fault occurs, the AC power supply is shut down with a delay and the DC power supply is enabled, including: If the current power supply is AC, periodically obtain the output signal of the AC power supply module to determine whether it is within the normal working range; If a fault is detected in the output signal of the AC power supply module, a fault response mechanism is initiated; In the fault response mechanism, the output of the AC power supply module is gradually shut down according to the set delay time, and the BMS power supply module is enabled at the same time; If the current power supply is a DC power supply, the DC power supply is turned off with a delay and switched to an AC power supply, including: If the current power supply is DC, monitor the recovery status of AC power; If it is detected that the AC power returns to normal, the power switching logic is started; In the power switching logic, the output of the AC power supply module is gradually shut down according to the set delay time, and the BMS power supply module is started during the process to switch the AC power supply.