Communication power supply load calculation and air switch control method and system based on service priority
By combining a hybrid algorithm of ampere-hour integration and dynamic voltage calibration with an iterative load shutdown strategy, the communication power supply system achieves precise and intelligent load management during AC mains power outages. This solves the problems of low control accuracy and low resource utilization in existing technologies, ensuring priority power supply for core services and efficient system operation.
Patent Information
- Application Number
- CN202511619281.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-06
- Publication Date
- 2026-02-13
AI Technical Summary
Existing communication power management systems suffer from low control precision when AC mains power is interrupted, making it impossible to accurately assess the true remaining capacity of the battery, lacking service awareness capabilities, and failing to provide differentiated power supply protection based on service priorities, resulting in low resource utilization efficiency.
A communication power supply load calculation and circuit breaker control method based on service priority is adopted. The remaining battery capacity is calculated in real time through a hybrid algorithm of ampere-hour integration and dynamic voltage calibration. Combined with the load service priority list, an iterative shutdown sequence is dynamically generated to achieve accurate and intelligent load management.
It improves the control precision and business awareness of power management, ensures priority power supply for core businesses, and enhances resource utilization efficiency and system reliability.
Smart Images

Figure CN121529938A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent management technology for communication power supplies, and in particular to a method and system for calculating communication power supply load and controlling circuit breakers based on service priority. Background Technology
[0002] Communication networks are a crucial infrastructure of modern society, and their stable operation highly depends on a continuous and reliable power supply. In emergencies such as AC mains power outages, communication sites typically switch to battery power to maintain the normal operation of critical equipment. However, battery capacity is limited, and how to maximize the continuous operation of core communication services with limited power reserves is a key issue in the field of communication power management.
[0003] Currently, most common backup power management solutions for communication power supplies adopt a simple control strategy based on voltage thresholds. This means that when the battery voltage drops to a preset shutdown threshold, all or most non-core loads are disconnected at once. While this method is simple to implement, it has significant shortcomings: First, battery voltage is affected by various factors such as load current, temperature, and aging. Relying solely on voltage thresholds cannot accurately reflect the true remaining capacity, easily leading to premature or delayed load shutdowns, causing service interruptions or equipment damage. Second, traditional control methods lack differentiation based on load service attributes, failing to provide differentiated power supply protection according to service importance. This may result in high-priority services being unexpectedly interrupted, while low-priority services continue to consume power, reducing power efficiency and the level of intelligence in service assurance.
[0004] Therefore, the existing technology has the following main defects: First, the control accuracy is low, relying on voltage threshold judgment, and it is impossible to accurately assess the actual remaining capacity of the battery in real time, resulting in control lag or malfunction; second, it lacks business awareness capability, and cannot carry out differentiated load management according to business priority, resulting in unreasonable resource allocation; third, the system response is inflexible, mostly using a one-time shutdown strategy, and it is impossible to dynamically adjust the shutdown sequence and rhythm according to the real-time power supply status, resulting in low resource utilization efficiency.
[0005] To address the problems of low control precision, inability to distinguish service priorities, and low resource utilization in the existing technologies, this invention proposes a communication power load calculation and circuit breaker control method and system based on service priorities, aiming to achieve accurate, intelligent, and service-aware power management. Summary of the Invention
[0006] In view of the shortcomings of the prior art, the purpose of this invention is to provide a method and system for automatic calculation of communication power load and circuit breaker control based on service priority, so as to achieve accurate, intelligent and service-aware power management and solve the problems of control lag, inability to distinguish service priority and low resource utilization.
[0007] To achieve the above objectives, the present invention adopts the following technical solution;
[0008] A method for calculating communication power load and controlling circuit breakers based on service priority, comprising:
[0009] S100. Initialization and parameter preset: Obtain the preset list of load service priorities and time thresholds;
[0010] S200. Status monitoring and mode switching: continuously monitors the AC input status. When the AC input is determined to be faulty, it switches from normal operation mode to backup power mode and records the power outage start time.
[0011] S300. Dynamic capacity calculation and power supply time prediction: In standby power mode, the remaining battery capacity is calculated in real time by combining a hybrid algorithm of ampere-hour integration and voltage dynamic calibration. Based on the remaining battery capacity and the total load current obtained in real time, the estimated remaining power supply time under the current load is dynamically predicted.
[0012] S400. Shutdown trigger judgment: compare the predicted estimated remaining power supply time with the time threshold. If the trigger condition is met, a shutdown command is generated.
[0013] S500 Iterative priority shutdown control dynamically generates a load shutdown sequence from the lowest priority to the highest priority based on the service priority list loaded in S100, and iterates the shutdown loop after each shutdown until the stopping condition is met.
[0014] As a further aspect of the present invention, the step of obtaining the preset load service priority list and time threshold includes:
[0015] S110. Load the service priority list. Read the pre-configured load service priority list from non-volatile memory. The priority list specifies each load branch and its corresponding service priority identifier, such as by numbers or level labels.
[0016] S120. Read time thresholds, read two key time thresholds;
[0017] S130. Self-test and parameter verification: The processor checks and configures whether the communication of the storage unit, various sensors, communication modules and circuit breaker control loop is normal; at the same time, it performs logical verification on the read service priority list and time threshold.
[0018] As a further aspect of the present invention, the two key time thresholds include: a first waiting time threshold and a second safety time threshold, wherein the first waiting time threshold is greater than the second safety time threshold.
[0019] The first waiting time threshold is used to set a buffer period for waiting for mains power to be restored, so as to avoid unnecessary load shutdown due to instantaneous fluctuations or short-term power outages, thereby improving user experience and system stability.
[0020] The second safety time threshold defines the minimum battery life margin that the system must maintain to ensure the safe operation of core businesses; it is a safety redundancy design.
[0021] As a further aspect of the present invention, the logical verification includes: the confirmation list is not empty, all thresholds are positive and meet the relationship that the first waiting time threshold is greater than the second safety time threshold; if the verification fails, an alarm is triggered and an error log is recorded.
[0022] As a further aspect of the present invention, the step of continuously monitoring the AC input status, switching from normal operating mode to backup power mode when the AC input is determined to be faulty, and recording the start time of the power outage includes:
[0023] S210. Continuous status monitoring: The AC status monitoring unit continuously samples and monitors the effective voltage value and frequency of any two independent AC inputs through a voltage transformer.
[0024] S220. Failure determination: When the voltage of both AC inputs is continuously lower than the preset effective value threshold and exceeds the set delay, it is determined that the AC input is completely failed to eliminate the influence of instantaneous power grid fluctuations.
[0025] S230. Mode switching and recording: Once a failure is detected, the control core (MCU) immediately updates the status flag from normal mode to backup power mode after determining that the AC has failed; at the same time, it calls the real-time clock (RTC) to record the current absolute time as the start time of the power outage.
[0026] As a further aspect of the present invention, the real-time calculation of the remaining battery capacity using a hybrid algorithm combining ampere-hour integration and dynamic voltage calibration includes:
[0027] Data acquisition: The battery data acquisition unit collects the battery discharge current in real time through a current sensor (such as a Hall sensor);
[0028] The capacity measurement unit calculates the first remaining capacity through integral calculation. First remaining capacity The calculation formula is:
[0029] ;
[0030] This is the initial capacity; This refers to the battery's rated capacity. For Coulomb efficiency; for The discharge current at any given moment.
[0031] As a further aspect of the present invention, the step of dynamically predicting the estimated remaining power supply time under the current load based on the remaining battery capacity and the real-time acquired total load current includes:
[0032] Dynamic voltage calibration:
[0033] a. Calibration timing judgment: Continuously monitor the load current. When the load current is less than the preset threshold and remains stable for a period of time, it is determined that the quasi-no-load window period has been entered. At this time, the battery polarization effect is weakened and the terminal voltage can more accurately reflect the SOC.
[0034] b. Data Acquisition and Compensation: During the data acquisition window, battery terminal voltage and temperature are simultaneously acquired. A temperature compensation formula is used to compensate for the voltage reading to eliminate the influence of temperature on the voltage reading. The temperature compensation formula for the measured voltage is:
[0035] ;
[0036] The voltage after compensation; This refers to the battery terminal voltage. This refers to the battery terminal temperature. This refers to the battery voltage temperature coefficient. Standard reference temperature;
[0037] c. Capacity lookup and comparison, based on the compensated voltage. Query the pre-stored open-circuit voltage-remaining capacity correspondence table to obtain the second remaining capacity;
[0038] d. Deviation correction, calculate the first remaining capacity With the obtained second remaining capacity If the absolute deviation exceeds a preset capacity deviation threshold, the ampere-hour integration is considered to have a significant error, and the second remaining capacity is obtained accordingly. Based on the first remaining capacity Make corrections, that is Otherwise, maintain the current ampere-hour integration result;
[0039] Power supply time prediction, based on remaining capacity after final calibration The total load current is obtained in real time by the load current monitoring unit. Calculate the estimated remaining power supply time under the current load. Estimated remaining power supply time The calculation formula is:
[0040] .
[0041] As a further aspect of the present invention, the step of comparing the predicted estimated remaining power supply time with a time threshold, and generating a shutdown command when the triggering condition is met, includes:
[0042] S410. Time condition judgment: The shutdown decision unit continuously checks whether the first waiting time threshold has passed since the start of the power outage.
[0043] S420. Capacity condition determination, and simultaneously, obtain the estimated remaining power supply time predicted in step S300. And determine the estimated remaining power supply time. Is it less than the second safety time threshold?
[0044] S430. Logic AND judgment and instruction generation, if and only if the waiting time has exceeded the first waiting time threshold and the estimated remaining power supply time. The shutdown decision unit generates a shutdown command only when the conditions are met simultaneously with the second safety time threshold; otherwise, the system returns to continue monitoring and prediction.
[0045] As a further aspect of the present invention, the step of dynamically generating a load shutdown sequence from the lowest priority to the highest priority based on the service priority list loaded in S100 includes:
[0046] Read and parse the priority list. Read the load service priority list again from the configuration storage unit that was initialized in step S100. The load service priority list clearly records each controlled load branch in the system and its corresponding service priority identifier.
[0047] Data structure transformation and sorting: The microprocessor (MCU) loads the priority list data it reads into its working memory (RAM); then, it executes a sorting algorithm to sort all load branches from low to high priority according to the business priority identifier, and the resulting data structure forms the initial shutdown queue.
[0048] The queue association and readiness process logically associates the sorted shutdown queue with the shutdown control execution unit, ensuring that each load entry in the queue corresponds to a physical execution endpoint that can be independently controlled. At this point, a clear sequence of load shutdown actions, starting from the lowest priority, is ready.
[0049] The queue check determines whether the shutdown queue is empty. If it is empty, it means that all shutdownable loads (usually non-core loads) have been processed and the iterative shutdown process ends. This means that even if all non-core loads are shut down, the endurance of core business still cannot reach the safety threshold, and the highest level alarm should be generated.
[0050] As a further aspect of the present invention, the step of the iterative shutdown loop is as follows:
[0051] The queue is checked to determine if the shutdown queue is empty. If it is empty, it means that all shutdownable loads have been processed and the iterative shutdown process ends. At this point, it means that even if all non-core loads are shut down, the endurance of core business still cannot reach the safety threshold, and the highest level alarm should be generated.
[0052] To perform a shutdown, a load is taken from the head of the shutdown queue; the shutdown control execution unit sends a shutdown signal to that load, causing it to be physically disconnected.
[0053] State reassessment: After the lowest priority load branch is turned off, the total load current... If the load is reduced, steps S300 and S400 are immediately re-executed. Based on the new load conditions, the remaining battery capacity is dynamically calculated, and a new estimated remaining power supply time is predicted.
[0054] The termination condition is determined by checking whether the newly predicted value is greater than or equal to the second safety time threshold. If it is, it means that by shutting down the current load, sufficient safety margin for the core business has been successfully obtained, and the iterative shutdown process ends successfully. If not, the process returns to the queue check step, continues to take the next lowest priority load from the shutdown queue for shutdown, and repeats the state re-evaluation process until the termination condition is met or the queue is empty.
[0055] On the other hand, this application also provides an automatic calculation and circuit breaker control system for communication power load, including:
[0056] Configure storage unit 301 to store system parameters such as the load service priority list, the first waiting time threshold, the second safe time threshold, and the open circuit voltage-remaining capacity (OCV-SOC) correspondence table;
[0057] The AC status monitoring unit 302 is connected to the configuration storage unit 301 and is used to perform continuous monitoring and mode switching judgment of the AC input status, specifically to implement step S200;
[0058] The battery data acquisition unit 303 is used to acquire the battery's terminal voltage, discharge current, and temperature data; the battery data acquisition unit 303 includes a voltage sensor, a current sensor (such as a Hall sensor), and a temperature sensor;
[0059] The load current monitoring unit 304 is used to acquire the total load current of the system in real time.
[0060] The capacity calculation unit 305 is connected to the battery data acquisition unit 303 and the configuration storage unit 301, and is used to execute the hybrid algorithm combining ampere-hour integration and voltage dynamic calibration, specifically to implement the capacity calculation part in step S300;
[0061] The time prediction unit 306, connected to the capacity calculation unit 305 and the load current monitoring unit 304, is used to calculate and estimate the remaining power supply time based on the output of the capacity calculation unit 305 and the total load current. Specifically, it is used to implement the time prediction part in step S300;
[0062] The shutdown decision unit 307 is connected to the AC status monitoring unit 302, the time prediction unit 306 and the configuration storage unit 301, and is used to execute the shutdown trigger judgment, specifically to implement step S400.
[0063] The shutdown control execution unit 308 is connected to the shutdown decision unit 307 and the configuration storage unit 301, and is used to execute the iterative priority shutdown control. The shutdown control execution unit 308 includes a general purpose input / output interface (GPIO), a driving circuit, and a circuit breaker array composed of multiple controlled circuit breakers, each circuit breaker controlling the on / off state of one load branch.
[0064] Communication unit 309, connected to configuration storage unit 301, AC status monitoring unit 302, capacity calculation unit 305, time prediction unit 306, and shutdown decision unit 307, is used to transmit AC input status, battery remaining capacity, and estimated remaining power supply time. Information such as shutdown operation records is sent to the remote monitoring center and stored locally.
[0065] As a further embodiment of the present invention, the system may optionally include a central processing unit, which is connected to the configuration storage unit 301, the AC status monitoring unit 302, the battery data acquisition unit 303, the load current monitoring unit 304, the capacity calculation unit 305, the time prediction unit 306, the shutdown decision unit 307, the shutdown control execution unit 308, and the communication unit 309, respectively, for coordinating and controlling the work of each unit and executing the program instructions of the method.
[0066] In summary, due to the adoption of the above technical solution, the beneficial technical effects of the invention are as follows:
[0067] Compared with existing technologies, the communication power load calculation and circuit breaker control method and system based on service priority provided by this invention brings significant beneficial technical effects through the coordination and optimization of multiple technical aspects:
[0068] First, this invention effectively overcomes the low accuracy of traditional voltage threshold control. By employing a hybrid algorithm combining ampere-hour integration and dynamic voltage calibration for battery remaining capacity calculation, it leverages the timely response of the ampere-hour integration method under load changes while simultaneously correcting the accumulated error of the ampere-hour integration through dynamic calibration using the OCV-SOC relationship during the quasi-no-load window. This results in a high-precision SOC value across all operating conditions. This high-precision capacity perception provides a reliable data foundation for subsequent intelligent decision-making, fundamentally avoiding control lag or malfunctions caused by capacity misjudgment.
[0069] Secondly, this invention introduces the concept of service priority, achieving a leap from "undifferentiated power supply" to "differentiated protection." Through a preset load service priority list, the system can clearly identify the importance of the services carried by different load branches. When executing shutdown control, a one-size-fits-all strategy is not adopted; instead, iterative shutdown is performed according to priority from low to high. This mechanism ensures that under any circumstances, power resources are prioritized for core services, significantly improving the power supply guarantee capability for critical services and the overall operational reliability of the system.
[0070] Finally, this invention achieves refined and optimized allocation of power resources through dynamic prediction and iterative feedback mechanisms. The system not only predicts the remaining power supply time in real time but also sets a first waiting time threshold and a second safety time threshold as decision triggering conditions, balancing the need to avoid instantaneous power outages and ensure a safety margin for core services. During the shutdown execution phase, a closed-loop control mode of "shutdown-evaluation-re-decision" is adopted. Each time a low-priority load is shut down, the system status is immediately re-evaluated until the remaining power supply time meets safety requirements. This gradual, feedback-based control strategy can maximize the operating time of non-core services while ensuring the safety of core services, thereby improving the overall utilization efficiency of limited backup power and achieving intelligent, adaptive, and high-level power management. Attached Figure Description
[0071] Figure 1 A flowchart of a communication power supply load calculation and circuit breaker control method based on service priority;
[0072] Figure 2 This is a logic block diagram of a communication power supply load calculation and circuit breaker control system based on service priority. Detailed Implementation
[0073] To make the objectives, technical solutions, and advantages of the invention clearer, the invention will be further described in detail below with reference to embodiments. It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the invention.
[0074] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments.
[0075] This embodiment provides a communication power load calculation and circuit breaker control method based on service priority. Its core lies in dynamically managing the load after a mains power outage through high-precision battery capacity calculation and intelligent decision-making based on service priority, ensuring that core services achieve maximum battery life. The overall flowchart of the method can be found here. Figure 1 The following provides a detailed explanation of each step.
[0076] Please refer to Figure 1 This application illustrates an exemplary method for calculating communication power load and controlling circuit breakers based on service priority, specifically including the following steps:
[0077] A method for calculating communication power load and controlling circuit breakers based on service priority, comprising:
[0078] S100. Initialization and parameter preset: Obtain the preset list of load service priorities and time thresholds;
[0079] Intelligent decision-making relies on preset strategy parameters, and the initialization process is a key step in injecting business awareness and decision-making logic; by loading business priorities, the importance of different loads can be identified; by setting differentiated time thresholds, a precise trade-off can be made between waiting for recovery and ensuring security.
[0080] To achieve business awareness and intelligent decision-making, preset strategy parameters need to be loaded at the beginning. These strategy parameters constitute the brain of the system's decision-making, enabling it to distinguish the importance of business and take corresponding control actions at different time points.
[0081] The specific steps include:
[0082] S110. Load the service priority list. Read the pre-configured load service priority list from non-volatile memory (such as EEPROM or Flash). The priority list clearly defines each load branch (such as core network equipment, transmission equipment, environmental monitoring, office power, etc.) and its corresponding service priority identifier, for example, represented by numbers or level labels (such as high, medium, low).
[0083] S120. Read time thresholds, read two key time thresholds: a first waiting time threshold and a second safe time threshold, and satisfy the condition that the first waiting time threshold is greater than the second safe time threshold;
[0084] The first waiting time threshold is used to set a buffer period for waiting for mains power to be restored, so as to avoid unnecessary load shutdown due to instantaneous fluctuations or short-term power outages, thereby improving user experience and system stability.
[0085] The second safety time threshold defines the minimum battery endurance that the system must maintain to ensure the safe operation of core businesses, and is a safety redundancy design.
[0086] S130. Self-test and parameter verification: The processor checks and configures the storage unit, various sensors (voltage, current, temperature), communication module, and circuit breaker control circuit to ensure normal communication. At the same time, it performs logical verification on the read service priority list and time threshold. The logical verification includes: confirming that the list is not empty, that all thresholds are positive and that the first waiting time threshold is greater than the second safety time threshold. If the verification fails, an alarm is triggered and an error log is recorded.
[0087] S200. Status monitoring and mode switching: continuously monitors the AC input status. When the AC input is determined to be faulty, it switches from normal operation mode to backup power mode and records the power outage start time.
[0088] principle:
[0089] By monitoring the AC input status in real time to perceive the power grid condition, this is the premise for triggering all subsequent intelligent control logic. Once the main power supply fails, it immediately switches to the backup power supply (battery) mode and records the start time of the power outage as a benchmark for subsequent time judgment.
[0090] The specific steps include:
[0091] S210. Continuous status monitoring: The AC status monitoring unit continuously samples and monitors the effective voltage (RMS) and frequency of any two independent AC inputs (such as AC A and AC B) periodically through a voltage transformer (such as a voltage transformer or a dedicated metering chip).
[0092] S220. Failure determination: When the voltage of both AC inputs is continuously lower than the preset effective value threshold (e.g., 187VAC) and exceeds the set delay (e.g., 5 seconds), the AC input is determined to be completely failed to eliminate the influence of instantaneous power grid fluctuations.
[0093] S230. Mode switching and recording: Once a failure is detected, the control core (such as MCU) will immediately update the status flag from normal mode to backup power mode after determining that the AC has failed; at the same time, it will call the real-time clock (RTC) to record the current absolute time as the start time of the power outage.
[0094] S300. Dynamic capacity calculation and power supply time prediction: In standby power mode, the remaining battery capacity is calculated in real time by combining a hybrid algorithm of ampere-hour integration and voltage dynamic calibration. Based on the remaining battery capacity and the total load current obtained in real time, the estimated remaining power supply time under the current load is dynamically predicted.
[0095] principle:
[0096] The remaining capacity (State of Charge, SOC) of a battery is the fundamental determinant of driving range. Traditional voltage threshold methods cannot accurately reflect the true remaining capacity of the battery. A hybrid algorithm is formed by combining the ampere-hour integration method (used to continuously track capacity changes) with the voltage dynamic calibration method (used to correct accumulated errors at specific times). This algorithm takes advantage of the timely response of the ampere-hour integration method to load changes, and at the same time takes advantage of the stable correspondence between the battery terminal voltage and SOC in the quasi-no-load state (OCV-SOC curve) to periodically calibrate the drift of the ampere-hour integration, thereby obtaining a high-precision SOC value under all operating conditions. Furthermore, by combining the real-time total load current, the abstract capacity value is transformed into an intuitive remaining time, providing a quantitative basis for decision-making.
[0097] The specific steps include:
[0098] S310. Ah-time integration calculation: This algorithm combines ampere-hour integration with dynamic voltage calibration to calculate the remaining battery capacity in real time.
[0099] The battery data acquisition unit collects the battery discharge current in real time through a current sensor (such as a Hall sensor);
[0100] The capacity calculation unit calculates the first remaining capacity through integral operations. First remaining capacity The calculation formula is:
[0101] ;
[0102] This is the initial capacity; This refers to the battery's rated capacity. For Coulomb efficiency; for The discharge current at any given moment;
[0103] S320. Voltage Dynamic Calibration:
[0104] a. Calibration timing judgment: Continuously monitor the load current. When the load current is less than the preset threshold (e.g., 0.05C) and remains stable for a period of time, it is determined that the quasi-no-load window period has been entered. At this time, the battery polarization effect is weakened, and the terminal voltage can more accurately reflect the SOC.
[0105] b. Data Acquisition and Compensation: During the data acquisition window, battery terminal voltage and temperature are simultaneously acquired. A temperature compensation formula is used to compensate for the voltage reading to eliminate the influence of temperature on the voltage reading. The temperature compensation formula for the measured voltage is:
[0106] ;
[0107] The voltage after compensation; This refers to the battery terminal voltage. This refers to the battery terminal temperature. This refers to the battery voltage temperature coefficient. Standard reference temperature;
[0108] c. Capacity lookup and comparison, based on the compensated voltage. Query the pre-stored open-circuit voltage-remaining capacity (OCV-SOC) correspondence table to obtain the second remaining capacity;
[0109] d. Deviation correction, calculate the first remaining capacity With the obtained second remaining capacity If the absolute deviation exceeds a preset capacity deviation threshold (e.g., 5%), then the ampere-hour integration is considered to have a significant error, and the second remaining capacity is obtained accordingly. Based on the first remaining capacity Make corrections, that is Otherwise, maintain the current ampere-hour integration result;
[0110] S330. Power supply time prediction, based on remaining capacity after final calibration. The total load current is obtained in real time by the load current monitoring unit. Calculate the estimated remaining power supply time under the current load. Estimated remaining power supply time The calculation formula is:
[0111] .
[0112] S400. Shutdown trigger judgment: compare the predicted estimated remaining power supply time with the time threshold. If the trigger condition is met, a shutdown command is generated.
[0113] principle:
[0114] The shutdown trigger judgment is the decision-making center. It comprehensively considers the waiting time, battery safety margin, and predicted future state to determine whether to initiate the load shutdown process. Its purpose is to strike a balance between ensuring the safety of core business and avoiding premature intervention.
[0115] The specific steps include:
[0116] S410. Time condition judgment: The shutdown decision unit continuously checks whether the first waiting time threshold has been exceeded since the power outage start time (i.e., the current time is greater than the power outage start time + the first waiting time threshold).
[0117] S420. Capacity condition determination, and simultaneously, obtain the estimated remaining power supply time predicted in step S300. And determine the estimated remaining power supply time. Is it less than the second safety time threshold?
[0118] S430. Logic AND judgment and instruction generation, if and only if the waiting time has exceeded the first waiting time threshold and the estimated remaining power supply time. The shutdown decision unit generates a shutdown command only when the conditions are met simultaneously with the second safety time threshold; otherwise, the system returns to continue monitoring and prediction.
[0119] S500 Iterative priority shutdown control dynamically generates a load shutdown sequence from the lowest priority to the highest priority based on the service priority list loaded in S100, and iterates the shutdown loop after each shutdown until the stopping condition is met.
[0120] principle:
[0121] Iterative priority shutdown control is the ultimate manifestation of business awareness. Unlike the traditional one-size-fits-all power-off solution, it does not cut off all non-core loads at once, but adopts an iterative, feedback-based control strategy. Its core idea is: each time, only the lowest priority load is shut down, and then the overall system status (remaining power supply time) is immediately reassessed. Through this closed-loop control of shutdown-assessment-re-decision, the system can dynamically and gradually improve its endurance to a safe level at the lowest cost (shutting down the least important loads), thereby maximizing the preservation of non-core business uptime during crises and achieving intelligent and optimized resource allocation.
[0122] The specific steps include:
[0123] S510. Generate a shutdown queue. Based on the service priority list loaded in S100, dynamically generate a load shutdown sequence from the lowest priority to the highest priority.
[0124] The priority list is read and parsed. From the configuration storage unit (such as EEPROM or Flash) that was initialized in step S100, the load service priority list is read again. The load service priority list is a structured data set that clearly records each controlled load branch in the system (e.g., core router L1, transmission equipment L2, data center air conditioner L3, office area lighting L4) and its corresponding service priority identifier. The priority identifier can be in numerical form (e.g., 1 represents the highest, N represents the lowest) or in level label form.
[0125] Data structure transformation and sorting: The microprocessor (MCU) loads the priority list data it reads into its working memory (RAM); then, it executes a sorting algorithm (e.g., quick sort, bubble sort, or direct comparison based on the size of the numbers / preset order) to sort all load branches in order of priority from low to high according to the business priority identifier. The resulting data structure (such as an array or linked list) constitutes the initial shutdown queue.
[0126] The queue association and readiness process logically associates the sorted shutdown queue with shutdown control execution units (such as GPIO interfaces, driver circuits, and controlled circuit breaker arrays) to ensure that each load entry in the queue corresponds to a physical execution endpoint that can be independently controlled. At this point, a clear sequence of load shutdown actions starting from the lowest priority is ready.
[0127] The queue check determines whether the shutdown queue is empty. If it is empty, it means that all shutdownable loads (usually non-core loads) have been processed and the iterative shutdown process ends. This means that even if all non-core loads are shut down, the endurance of core business still cannot reach the safety threshold, and the highest level alarm should be generated.
[0128] S520. Iterative shutdown loop:
[0129] To perform a shutdown, a load is taken from the head of the shutdown queue (i.e., the load with the lowest current priority). The shutdown control execution unit (e.g., controlling the drive circuit through the MCU's GPIO port, and then operating the controlled circuit breaker or relay connected to the load) sends a shutdown signal to the load to physically disconnect it.
[0130] State reassessment: After the lowest priority load branch is turned off, the total load current... If the load is reduced, steps S300 and S400 are immediately re-executed. Based on the new load conditions, the remaining battery capacity is dynamically calculated, and a new estimated remaining power supply time is predicted.
[0131] The termination condition is determined by checking whether the newly predicted value is greater than or equal to the second safety time threshold. If it is, it means that by shutting down the current load, sufficient safety margin for the core business has been successfully obtained, and the iterative shutdown process ends successfully. If not, the process returns to the queue check step, continues to take the next lowest priority load from the shutdown queue for shutdown, and repeats the state re-evaluation process until the termination condition is met or the queue is empty.
[0132] Please refer to Figure 2 It illustrates a logic block diagram of a communication power load calculation and circuit breaker control system based on service priority, including:
[0133] Configure storage unit 301 to store system parameters such as the load service priority list, the first waiting time threshold, the second safe time threshold, and the open circuit voltage-remaining capacity (OCV-SOC) correspondence table;
[0134] The AC status monitoring unit 302 is connected to the configuration storage unit 301 and is used to perform continuous monitoring and mode switching judgment of the AC input status, specifically to implement step S200;
[0135] The battery data acquisition unit 303 is used to acquire the battery's terminal voltage, discharge current, and temperature data; the battery data acquisition unit 303 includes a voltage sensor, a current sensor (such as a Hall sensor), and a temperature sensor;
[0136] The load current monitoring unit 304 is used to acquire the total load current of the system in real time.
[0137] The capacity calculation unit 305 is connected to the battery data acquisition unit 303 and the configuration storage unit 301, and is used to execute the hybrid algorithm combining ampere-hour integration and voltage dynamic calibration, specifically to implement the capacity calculation part in step S300;
[0138] The time prediction unit 306, connected to the capacity calculation unit 305 and the load current monitoring unit 304, is used to calculate and estimate the remaining power supply time based on the output of the capacity calculation unit 305 and the total load current. Specifically, it is used to implement the time prediction part in step S300;
[0139] The shutdown decision unit 307 is connected to the AC status monitoring unit 302, the time prediction unit 306 and the configuration storage unit 301, and is used to execute the shutdown trigger judgment, specifically to implement step S400.
[0140] The shutdown control execution unit 308 is connected to the shutdown decision unit 307 and the configuration storage unit 301, and is used to execute the iterative priority shutdown control. The shutdown control execution unit 308 includes a general purpose input / output interface (GPIO), a driving circuit, and a circuit breaker array composed of multiple controlled circuit breakers, each circuit breaker controlling the on / off state of one load branch.
[0141] Communication unit 309, connected to configuration storage unit 301, AC status monitoring unit 302, capacity calculation unit 305, time prediction unit 306, and shutdown decision unit 307, is used to transmit AC input status, battery remaining capacity, and estimated remaining power supply time. Information such as shutdown operation records is sent to the remote monitoring center and stored locally.
[0142] Optionally, the system further includes a central processing unit, which is connected to the configuration storage unit 301, the AC status monitoring unit 302, the battery data acquisition unit 303, the load current monitoring unit 304, the capacity calculation unit 305, the time prediction unit 306, the shutdown decision unit 307, the shutdown control execution unit 308, and the communication unit 309, respectively, for coordinating and controlling the work of each unit and executing the program instructions of the method.
[0143] This invention also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the steps described in any of the above method embodiments through the computer program.
[0144] This invention also provides a computer-readable storage medium storing computer instructions thereon, which, when executed by a processor, implement the steps described in any of the above method embodiments.
[0145] The above description is a preferred embodiment of the invention and is not intended to limit the scope of the invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the invention should be included within the scope of protection of the invention.
Claims
1. A method for communication power load estimation and air switch control based on service priority, characterized in that, Comprise: S100. Initialization and parameter preset, obtain the preset load service priority list and time threshold; S200. State monitoring and mode switching, continuously monitor the AC input state, when it is determined that the AC input fails, switch from the normal working mode to the backup power supply mode, and record the power failure starting time; S300. Dynamic capacity calculation and power supply time prediction, in the backup power supply mode, the remaining capacity of the storage battery is calculated in real time through a hybrid algorithm of ampere-hour integration and voltage dynamic calibration, and based on the remaining capacity of the storage battery and the total load current obtained in real time, the estimated remaining power supply time under the current load is dynamically predicted; S400. Shutdown trigger judgment, compare the predicted estimated remaining power supply time with the time threshold, when the trigger condition is met, a shutdown instruction is generated; S500. Iterative priority shutdown control, according to the service priority list loaded in S100, a load shutdown sequence from the lowest priority to the highest priority is dynamically generated, and the shutdown cycle is iterated after each shutdown until the stop condition is met.
2. The method of claim 1, wherein the method is characterized by: The step of obtaining the preset load service priority list and time threshold comprises: S110. Load service priority list, read the preconfigured load service priority list from the nonvolatile memory, the priority list specifies the service priority identification of each load branch; S120. Read the time threshold, read two key time thresholds; The two key time thresholds include: the first waiting time threshold and the second safety time threshold, and the first waiting time threshold is greater than the second safety time threshold; The first waiting time threshold is used to set a waiting period for power recovery, to avoid unnecessary load shutdown due to transient fluctuations or short power failure, and to improve user experience and system stability; The second safety time threshold defines the minimum battery endurance margin that must be maintained by the system to ensure the safe operation of the core business, which is a safety redundancy design; S130. Self-check and parameter verification, the processor checks whether the communication of the configuration storage unit, various sensors, communication modules and air switch control loop is normal; At the same time, the logic verification is carried out on the read service priority list and time threshold; The logic verification is: confirming that the list is not empty, the threshold is positive and meets the relationship that the first waiting time threshold is greater than the second safety time threshold.
3. The method of claim 1, wherein the method is characterized by: The step of continuously monitoring the AC input state, when it is determined that the AC input fails, switching from the normal working mode to the backup power supply mode, and recording the power failure starting time comprises: S210. Continuous state monitoring, the AC state monitoring unit continuously samples and monitors the voltage effective value and frequency of any two independent AC inputs through the voltage transformer periodically; S220. Failure determination, when it is monitored that the voltages of the two AC inputs are both continuously lower than the preset effective value threshold and exceed the set delay, it is determined that the AC input is completely failed, so as to exclude the influence of power grid transient jitter; S230. Mode switching and recording, once the determination of failure, the control core MCU updates the state flag from normal mode to standby power supply mode after determining the AC failure; at the same time, the real-time clock RTC is called to record the current absolute time as the power-off starting time.
4. The method of claim 1, wherein the method is characterized by: The hybrid algorithm of ampere-hour integration and voltage dynamic calibration for real-time calculation of the remaining capacity of the battery includes: Data acquisition, the battery data acquisition unit acquires the battery discharge current in real time through the current sensor; The capacity measurement unit calculates the first remaining capacity by integral operation The calculation formula of the first remaining capacity is ; is the initial capacity; is the battery rated capacity; is the coulombic efficiency; is the discharge current at the time instant t. is the discharge current at the time instant t.
5. The method of claim 1, wherein the method is characterized by: The step of dynamically predicting the estimated remaining power supply time under the current load based on the remaining capacity of the battery and the total load current obtained in real time includes: Calibration timing judgment, continuously monitor the load current, when the load current is less than the preset threshold and remains stable for more than a period of time, it is determined that the quasi-idling window period is entered, at this time the battery polarization effect is weakened, and the terminal voltage can accurately reflect the SOC; Data acquisition and compensation, in the window period, the battery terminal voltage and temperature are synchronously acquired, and the measured voltage is temperature compensated by using a temperature compensation formula to eliminate the influence of temperature on the voltage reading; the temperature compensation formula for the measured voltage is: ; Vcomp is the compensated voltage; Vbat is the battery terminal voltage; Tbat is the battery terminal temperature; Kv is the battery voltage temperature coefficient; Tref is the standard reference temperature; Capacity query and comparison, according to the compensated voltage , query the pre-stored open circuit voltage-remaining capacity correspondence table to obtain a second remaining capacity; The deviation correction calculates the first remaining capacity The absolute deviation of the obtained second remaining capacity If the deviation exceeds a preset capacity deviation threshold, it is considered that the ampere-hour integral has a significant error, and the first remaining capacity is corrected based on the obtained second remaining capacity , that is ; otherwise, the current ampere-hour integral result is maintained; The power supply time prediction is based on the final calibrated remaining capacity , and the total load current acquired by the load current monitoring unit in real time , to calculate the estimated remaining power supply time under the current load ; the estimated remaining power supply time The calculation formula is: 。 6. The method of claim 1, wherein the method is characterized by: The step of comparing the predicted estimated remaining power supply time with the time threshold, and generating a shutdown instruction when the trigger condition is met includes: S410. Time condition judgment, the shutdown decision unit continuously checks whether the first waiting time threshold has passed since the power-off starting time; S420. Capacity condition determination, and simultaneously, obtain the estimated remaining power supply time predicted in step S300. And determine the estimated remaining power supply time. Is it less than the second safety time threshold? S430. Logic and decision making and instruction generation, when and only when, the waiting time has exceeded the first waiting time threshold and the estimated remaining power supply time is less than the second safety time threshold, the shutdown decision unit generates a shutdown instruction; otherwise, the system returns to continue monitoring and prediction.
7. The method of claim 1, wherein the method is characterized by: The step of dynamically generating a load shutdown sequence from the lowest priority to the highest priority according to the service priority list loaded in S100 includes: Reading and analyzing the priority list, the load service priority list is read again from the configuration storage unit initialized in S100, which explicitly records each controlled load branch in the system and its corresponding service priority identifier; Data structure conversion and sorting, the microprocessor MCU loads the read priority list data into its working memory RAM; then, a sorting algorithm is executed to sort all load branches according to the service priority identifier from low to high, forming an initial shutdown queue. Queue association and readiness, the shutdown queue obtained after sorting is logically associated with the shutdown control execution unit to ensure that each load entry in the queue corresponds to an independently controllable physical execution endpoint; at this time, a clear load shutdown action sequence from the lowest priority is ready. Queue checking, if the shutdown queue is empty, it means that all the load that can be shut down has been processed, and the iterative shutdown process is ended; at this time, it means that even if all non-core loads are shut down, the endurance time of the core service still cannot reach the safety threshold, and the highest level of alarm should be generated.
8. The method of claim 1, wherein the method is characterized by: The step of the iterative shutdown loop is: Queue checking, if the shutdown queue is empty, it means that all the load that can be shut down has been processed, and the iterative shutdown process is ended; at this time, it means that even if all non-core loads are shut down, the endurance time of the core service still cannot reach the safety threshold, and the highest level of alarm should be generated. Performing shutdown, taking out a load from the head of the shutdown queue; the shutdown control execution unit sends a shutdown signal to its load, making it physically disconnected; State re-evaluation, after the current lowest priority load branch is turned off, total load current Reduction, immediately re-execute steps S300 and S400, dynamically calculate the remaining capacity of the battery based on the new load conditions, and predict the new estimated remaining power supply time; Termination condition judgment, judging whether the new prediction is greater than or equal to the second safety time threshold; if yes, it means that by shutting down the current load, enough safety margin for the core business has been won, and the iterative shutdown process is successfully ended; if not, return to the queue checking step, continue to take out the next load with the lowest priority from the shutdown queue for shutdown, and repeat the state reevaluation process until the termination condition is met or the queue is empty.
9. A system for operating a method of communication power load estimation and air gap control based on service priority according to any of claims 1-8, characterized in that, The system comprises: A configuration storage unit is configured to store a load service priority list, a first latency threshold, a second safety time threshold, and an open circuit voltage-remaining capacity (OCV-SOC) corresponding table system parameter; An alternating current state monitoring unit is connected with the configuration storage unit and configured to perform continuous monitoring and mode switching judgment of the alternating current input state, and specifically configured to implement step S200; A battery data acquisition unit is configured to acquire terminal voltage, discharge current, and temperature data of the battery; the battery data acquisition unit comprises a voltage sensor, a current sensor, and a temperature sensor; A load current monitoring unit is configured to acquire total load current of the system in real time; A capacity measurement unit is connected with the battery data acquisition unit and the configuration storage unit, and is configured to perform a hybrid algorithm combining ampere-hour integration and voltage dynamic calibration, and specifically configured to implement the capacity measurement part in step S300; The time prediction unit is connected with the capacity measurement unit and the load current monitoring unit, and is configured to calculate the estimated remaining power supply time based on the output result of the capacity measurement unit and the total load current , and is specifically configured to implement the time prediction part in step S300. A shutdown decision unit is connected with the alternating current state monitoring unit, the time prediction unit, and the configuration storage unit, and is configured to perform shutdown trigger judgment, and specifically configured to implement step S400; A shutdown control execution unit is connected with the shutdown decision unit and the configuration storage unit, and is configured to perform the iterative priority shutdown control; the shutdown control execution unit comprises a general input and output interface (GPIO), a driving circuit, and an air switch array composed of a plurality of controlled air switches, each air switch controlling the on-off of a load branch; The communication unit, connected to the configuration storage unit, AC status monitoring unit, capacity calculation unit, time prediction unit, and shutdown decision unit, is used to transmit AC input status, remaining battery capacity, and estimated remaining power supply time. Information such as shutdown operation records is sent to the remote monitoring center and stored locally.
10. The communication power load estimation and air gap control system based on service priority according to claim 9, wherein, The system further comprises a central processing unit connected with the configuration storage unit, the alternating current state monitoring unit, the battery data acquisition unit, the load current monitoring unit, the capacity measurement unit, the time prediction unit, the shutdown decision unit, the shutdown control execution unit, and the communication unit, respectively, and configured to coordinate and control the work of each unit and execute the program instructions of the method.
Citation Information
Cited By
Railway communication signal intelligent lithium iron phosphate backup power supply monitoring and dynamic switching system
CN122137091A