A priority scheduling based autonomous power switching system

By using an autonomous power supply switching system based on priority scheduling, the operating status of the gas meter's power supply is determined in real time and priority switching is performed, which solves the problem of unstable switching when the power supply status deteriorates, and ensures the reliability and lifespan of the gas meter's power supply.

CN123184294APending Publication Date: 2026-11-27HUNAN YINTONG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611393546.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-09
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing multi-power supply solutions for smart gas meters lack real-time assessment of the internal polarization state and degradation degree of the power supply, resulting in the inability to identify power supply degradation in a timely manner, delayed switching response, difficulty in achieving smooth transition, and easy to cause repeated false switching due to transient jitter, affecting the lifespan of the power supply and the reliable execution of key functions.

Method used

The system employs a data acquisition and definition module, an operational status identification module, a utility decision module, a soft-connection execution module, and a verification and backtracking module. By collecting the voltage, current, and accumulated charge under temperature compensation of the power supply, the system determines the operational status of the power supply in real time. It then executes the power supply switching through priority scheduling and charge balance soft-connection transition logic. Combined with the load-side voltage fluctuation envelope, it performs closed-loop monitoring and Markov dwell time verification to filter out erroneous switching.

Benefits of technology

It enables automatic switching to a secondary priority power supply during power supply degradation, avoiding valve malfunction and communication interruption, ensuring the power supply of the gas meter, reducing the wear and tear on the power supply lifespan caused by repeated switching, and improving the reliability and stability of power supply switching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123184294A_ABST
    Figure CN123184294A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of power supply switching, and particularly discloses an autonomous power supply switching system based on priority scheduling, which collects output terminal voltages, currents and temperature-compensated cumulative charge amounts of multiple power supplies and energy storage units as initial boundary conditions, calculates the polarization voltage response slope and the polarization recovery time constant of each power supply through a polarization equivalent relaxation model, determines the running state by combining a sequential likelihood ratio test, calculates the power supply suitability and selects a main power supply according to the running state and the decay rate, compiles the path switching instruction, performs charge balance soft lap joint transition, takes the peak and valley values of the load terminal voltage fluctuation as a closed-loop supervision quantity during the transition, filters out transient jitter through Markov residence time verification, and if the main power supply is in a failure state, the system reselects the main power supply, and binds the selection record and the time stamp into a dynamic reference to modify the next round of boundary conditions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power supply switching technology, and more specifically to an autonomous power supply switching system based on priority scheduling. Background Technology

[0002] With the increasing prevalence of piped gas in residential and commercial settings, smart gas meters are gradually replacing traditional mechanical gas meters, becoming the primary terminal device for gas metering and management. Smart gas meters typically integrate functional units such as a metering module, valve control module, remote communication module, and display module. The remote communication module enables data interaction with the gas management platform, the valve control module executes remote or locally triggered valve opening and closing operations, and the metering module collects users' gas consumption data.

[0003] In existing multi-power supply schemes for smart gas meters, the switching logic is mostly based on simple switching based on voltage thresholds, lacking real-time assessment of the internal polarization state and degradation degree of each power supply. This results in the inability to identify power condition deterioration in a timely manner. At the same time, the switching response is lagging, making it difficult to achieve a smooth transition between power failure and backup power supply activation. Furthermore, the lack of closed-loop verification and dynamic correction mechanisms before and after switching makes it prone to repeated false switching due to transient jitter, resulting in additional loss of power supply life and affecting the reliable execution of critical functions of the gas meter such as safe valve closure and communication reporting during power switching. Summary of the Invention

[0004] The purpose of this invention is to provide an autonomous power supply switching system based on priority scheduling to solve the problems mentioned above.

[0005] The objective of this invention can be achieved through the following technical solutions: An autonomous power supply switching system based on priority scheduling includes: The data acquisition and definition module is used to acquire the output voltage, current, and accumulated charge under temperature compensation of the first power supply, the second power supply, and the energy storage unit, and define them as the initial boundary conditions. The operating state identification module calculates the internal polarization characteristic parameters of each power supply online based on the initial boundary conditions, and determines its operating state by combining the sequential likelihood ratio test. The operating state is divided into stable state, early warning state and failure state. The utility decision module calculates the power supply utility by weighting the running state and the decay rate of each power source, selects the current primary power source according to the utility priority, and compiles the selection result into a path switching instruction. The soft-connection execution module receives path switching instructions, performs power supply switching through charge-balanced soft-connection transition logic, and uses the load-side voltage fluctuation envelope as a closed-loop monitoring quantity during the transition to suppress switching shocks. The verification backtracking module performs Markov dwell time verification on the closed-loop monitoring quantity and the running state. After filtering out transient jitter, if the main power supply is determined to be in a failed state, it backtracks to the utility decision module to reselect. At the same time, the selected record is bound to the timestamp as a dynamic benchmark to correct the next round of boundary conditions of the data acquisition and definition module.

[0006] As a further aspect of the present invention: the process for determining the running state is as follows: Substitute the initial boundary conditions into the polarization equivalent relaxation model of each power source, and successively solve for the polarization voltage response slope and polarization recovery time constant of each power source, which are used as internal polarization characteristic parameters. The internal polarization characteristic parameters and the nominal polarization characteristic parameters of each power source are subjected to a sequential likelihood ratio test, and the cumulative likelihood ratio of the current polarization offset of each power source relative to the expected offset is calculated successively. When the cumulative likelihood ratio value continues to be lower than the preset acceptance limit, the power supply will be judged as a failure state. When the cumulative likelihood ratio is between the lower acceptance limit and the upper rejection limit, it is considered to be in a warning state. When the cumulative likelihood ratio is higher than the rejection limit, it is determined to be in a stable state, and the stable state, warning state, or failure state is output as the running state.

[0007] As a further aspect of the present invention: the construction process of the polarization equivalent relaxation model is as follows: The internal resistance and polarization capacitance of each power supply are configured into multiple characteristic impedance ratios according to their respective time constants, and the characteristic impedance ratios are used as the topological skeleton of the polarization equivalent relaxation model. The initial boundary conditions are fed into the topology skeleton as inputs. After the topology skeleton performs relaxation analysis on the inputs, the polarization voltage response slope and polarization recovery time constant of each power supply are output. The polarization voltage response slope and polarization recovery time constant are used as the outputs of the polarization equivalent relaxation model for subsequent operational state determination.

[0008] As a further aspect of the present invention: the step of compiling the selection result into a path switching instruction specifically includes: Based on the degree of deviation between the decay rate of each power source and the corresponding nominal decay rate, and combined with the current operating state level of each power source, the energy supply suitability under the current operating conditions is calculated for each source. The power supply sources are prioritized from high to low according to their energy suitability, and the power supply source ranked first is selected as the current main power supply source. The port number and conduction duration corresponding to the main power supply are compiled into a path switching instruction output.

[0009] As a further aspect of the present invention: the step-by-step calculation of the energy supply suitability under the current operating conditions specifically includes: The decay rate offset is obtained by subtracting the decay rate of each power source from its nominal decay rate. Multiply the decay rate offset by the penalty coefficient preset for the corresponding operating state level to obtain the offset penalty value after level correction; The initial power supply rating of each power source is compared with the offset penalty value. Based on the comparison result, the suitability of each power source under the current operating conditions is determined and output.

[0010] As a further aspect of the present invention: the power supply switching is performed through charge-balanced soft-connection transition logic, specifically including: Based on the port numbers of the current primary power supply and the target power supply in the path switching instruction, the transition switching duration and transition switching start time are calculated using a dynamic charge balance algorithm. Based on the transition switching duration and the start time of the transition switching, the peak and valley values ​​of the load-side voltage fluctuation are used as closed-loop monitoring quantities to gradually increase the output voltage of the target power supply, while gradually decreasing the output voltage of the current main power supply. When the output voltage of the target power supply rises to match the output voltage of the current main power supply, a power supply switch is executed, and the peak and valley values ​​of the fluctuation during the switch process are output as closed-loop monitoring quantities.

[0011] As a further aspect of the present invention: the calculation of the transition switching duration and the transition switching start time specifically includes: Obtain the current main power supply's output charge accumulation and the target power supply's output charge accumulation, and define the difference between the two as the charge imbalance. Based on the charge imbalance and the preset allowable charge deviation limit, the transition switching time required to balance the charge amounts of the two is calculated. Based on the real-time rate of change of the current load voltage, the transition switching duration is back-calculated to the current moment to determine the transition switching start time and lock the transition switching start time and transition switching duration.

[0012] As a further aspect of the present invention: the Markov dwell time verification specifically includes: Using closed-loop monitoring quantities as triggering conditions, record the duration of continuous residence in the current operating state of each power supply; The duration of continuous dwell time is compared with the preset minimum dwell time threshold for steady state. When the duration of continuous dwell time is lower than the minimum dwell time threshold for steady state, the current running state is determined to be transient jitter and is filtered out. When the duration of continuous residence reaches or exceeds the minimum residence threshold in steady state, the current operating state is confirmed as a valid operating state, and subsequent power supply backtracking selection and dynamic reference correction operations are performed based on the valid operating state.

[0013] The beneficial effects of this invention are: (1) The present invention uses a three-level power supply architecture in conjunction with a real-time operation status determination mechanism. When any power supply enters a low power or failure state, the system can automatically switch to the secondary priority power supply after completing the current cycle determination. This avoids the failure of valve control, communication interruption and other functions caused by a single power supply failure, and ensures that the gas meter always has the power supply guarantee to perform safe valve closure and status reporting during the power deterioration process.

[0014] (2) By introducing closed-loop monitoring of the load voltage fluctuation envelope and Markov dwell time verification during the power supply switching transition, the present invention can filter out erroneous switching caused by load transients or power supply jitter, and at the same time correct the next round of acquisition parameters with dynamic reference, so that the switching action is triggered only when the operating state is continuously and stably deviated, reducing the loss of power supply life due to repeated switching. Attached Figure Description

[0015] The invention will now be further described with reference to the accompanying drawings.

[0016] Figure 1 This is a system block diagram of the present invention; Figure 2 This is a flowchart of the process for determining the running state in this invention; Figure 3 This is a flowchart illustrating how the selection result is compiled into a path switching instruction in this invention. Detailed Implementation

[0017] 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. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0018] Please see Figure 1 As shown, the present invention is an autonomous power supply switching system based on priority scheduling, comprising: The data acquisition and definition module is used to acquire the output voltage, current, and accumulated charge under temperature compensation of the first power supply, the second power supply, and the energy storage unit, and define them as the initial boundary conditions. The operating state identification module calculates the internal polarization characteristic parameters of each power supply online based on the initial boundary conditions, and determines its operating state by combining the sequential likelihood ratio test. The operating state is divided into stable state, early warning state and failure state. The utility decision module calculates the power supply utility by weighting the running state and the decay rate of each power source, selects the current primary power source according to the utility priority, and compiles the selection result into a path switching instruction. The soft-connection execution module receives path switching instructions, performs power supply switching through charge-balanced soft-connection transition logic, and uses the load-side voltage fluctuation envelope as a closed-loop monitoring quantity during the transition to suppress switching shocks. The verification backtracking module performs Markov dwell time verification on the closed-loop monitoring quantity and the running state. After filtering out transient jitter, if the main power supply is determined to be in a failed state, it backtracks to the utility decision module to reselect. At the same time, the selected record is bound to the timestamp as a dynamic benchmark to correct the next round of boundary conditions of the data acquisition and definition module.

[0019] The data acquisition and definition module is used to acquire the output voltage, current, and accumulated charge under temperature compensation from the first power supply, the second power supply, and the energy storage unit, and defines them as initial boundary conditions, specifically including: For the acquisition of output voltage, a voltage divider resistor network is used to connect in parallel to the positive and negative output terminals of the first power supply, the second power supply, and the energy storage unit, respectively. The output voltage of each power supply is attenuated proportionally to the allowable input range of the analog-to-digital converter. The analog-to-digital converter converts the attenuated analog voltage signal into a digital voltage value, which is recorded as the voltage of the first power supply, the voltage of the second power supply, and the voltage of the energy storage unit, respectively.

[0020] For the acquisition of output current, a current sensing resistor is connected in series in the output circuit of each power supply. A differential amplifier is used to acquire the potential difference across each current sensing resistor. The potential difference is converted into a digital current value by an analog-to-digital converter and recorded as the output current of the first power supply, the output current of the second power supply, and the output current of the energy storage unit, respectively.

[0021] For collecting the accumulated charge under temperature compensation, a current integrating metering element is connected in series in the charging and discharging path of the energy storage unit. The current integrating metering element continuously records the total amount of charge flowing through the energy storage unit during the charging and discharging process. At the same time, a thermistor is attached to the surface of the energy storage unit to collect the real-time temperature of the energy storage unit. The temperature compensation coefficient is obtained by looking up a table based on the real-time temperature. The total charge is multiplied by the temperature compensation coefficient to obtain the accumulated charge under temperature compensation.

[0022] The collected first power supply terminal voltage, first power supply output current, second power supply terminal voltage, second power supply output current, energy storage unit terminal voltage, energy storage unit output current, and accumulated charge under temperature compensation are combined to form initial boundary conditions, which are then called upon in the subsequent operation state determination process.

[0023] Please see Figure 2As shown, in the operating state identification module, based on the initial boundary conditions, the internal polarization characteristic parameters of each power supply are calculated online, and the operating state is determined by combining the sequential likelihood ratio test. The operating state is divided into stable state, early warning state, and failure state, specifically including: When constructing the polarization equivalent relaxation model, for each power supply, it is equivalent to an ideal voltage source with series internal resistance and parallel polarization capacitor topology. The product of the internal resistance value and the polarization capacitor value is used as the relaxation time constant of the power supply.

[0024] The relaxation time constants of each power source are arranged in descending order, and the ratio of two adjacent relaxation time constants is used as the characteristic impedance ratio. All characteristic impedance ratios are combined to form the topological skeleton of the polarization equivalent relaxation model.

[0025] After the topology skeleton is constructed, the voltage and output current of each power supply in the initial boundary conditions are fed into the topology skeleton as input quantities. The topology skeleton performs relaxation analysis on the input quantities according to the relaxation time constant of each power supply, and outputs the polarization voltage response slope and polarization recovery time constant of each power supply as internal polarization characteristic parameters.

[0026] The polarization voltage response slope is calculated using a recursive method. Based on the terminal voltage value at the current sampling moment, the terminal voltage value at the previous sampling moment, and the sampling time interval, the polarization voltage response slope at the current sampling moment is calculated successively according to the first formula, which is: ; in Indicates the first Individual power supply, Indicates the current sampling sequence number. Indicates the first The power supply is in the first The slope of the polarization voltage response at each sampling time. Indicates the first The filtering coefficient of the power supply. Indicates the time interval between two adjacent samples. Indicates the first The power supply is in the first The terminal voltage value at each sampling time. Indicates the first The power supply is in the first The terminal voltage value at each sampling time. Indicates the first The power supply is in the first The slope of the polarization voltage response at each sampling time.

[0027] Filter coefficients Based on the polarization response characteristics of each power supply, a value between 0.3 and 0.5 is used for power supplies with fast polarization response, and a value between 0.6 and 0.8 is used for power supplies with slow polarization response.

[0028] After obtaining the internal polarization characteristic parameters, the operating state is determined for each power supply.

[0029] Obtain the nominal polarization voltage response slope and nominal polarization recovery time constant calibrated at the factory for each power supply. Use the difference between the polarization voltage response slope in the internal polarization characteristic parameters and the nominal polarization voltage response slope as the voltage response offset. Use the difference between the polarization recovery time constant in the internal polarization characteristic parameters and the nominal polarization recovery time constant as the time constant offset. Combine the voltage response offset and the time constant offset to obtain the current polarization offset.

[0030] Then, for each power source, its current polarization offset is successively input into the sequential likelihood ratio test process.

[0031] The sequential likelihood ratio test procedure calculates the cumulative likelihood ratio of each power source sequentially according to the second formula, which is: ; in Indicates the first The power supply is in the first Cumulative likelihood ratio at each sampling time Indicates from the first sampling to the... Summation operation of each sample, Indicates the first The power supply is in the first Current polarization offset at the next sample Indicates the first Mean polarization offset of a power supply under stable operating conditions Indicates the first The standard deviation of polarization offset of a power supply under stable operating conditions Indicates the first Mean polarization shift of each power supply in the failure state Indicates the first The standard deviation of polarization offset of a power supply under failure conditions.

[0032] in and This was obtained by taking the average and standard deviation of multiple sampling data of the same type of power supply under stable operating conditions. and The average and standard deviation of multiple sampling data of the same power supply model under failure conditions were obtained.

[0033] The sequential likelihood ratio test procedure also presets an acceptance lower limit and a rejection upper limit, which are determined based on a pre-set significance level, where the significance level is 0.05, the acceptance lower limit is -1.96, and the rejection upper limit is 1.96.

[0034] After each sampling, the calculated cumulative likelihood ratio is compared with the lower acceptance limit and the upper rejection limit: when the cumulative likelihood ratio is consistently lower than the lower acceptance limit, the power supply is determined to be in a failure state; when the cumulative likelihood ratio is between the lower acceptance limit and the upper rejection limit, the power supply is determined to be in a warning state; when the cumulative likelihood ratio is higher than the upper rejection limit, the power supply is determined to be in a stable state.

[0035] The stable state, warning state, or failure state are output as the operating state for subsequent energy supply suitability calculation.

[0036] Please see Figure 3 As shown, in the utility decision module, the power supply utility is calculated by weighting the running state and the decay rate of each power source. The current primary power source is selected according to the utility priority, and the selection result is compiled into path switching instructions, specifically including: The decay rate of each power supply is obtained as follows: In each sampling period, the output current value of each power supply collected at the current sampling time is compared with the output current value of each power supply collected at the previous sampling time. The decrease in current value is divided by the sampling time interval to obtain the instantaneous current decay rate of each power supply in the current sampling period. The average value of the instantaneous current decay rate in ten consecutive sampling periods is taken as the decay rate of each power supply under the current operating condition.

[0037] The nominal degradation rate of each power supply is determined by the rated cycle life and rated capacity decay curve provided by the power supply manufacturer. For primary batteries, the nominal degradation rate is 0.5% per 100 hours; for rechargeable batteries, the nominal degradation rate is 2% per 100 cycles.

[0038] When obtaining the degradation rate offset, the difference between the degradation rate of each power supply under the current operating conditions and the nominal degradation rate of the corresponding power supply is calculated. The difference between the degradation rate under the current operating conditions and the nominal degradation rate is used as the degradation rate offset of each power supply.

[0039] When the difference is greater than zero, it indicates that the actual degradation rate of the power supply is faster than the nominal degradation rate, meaning that the performance degradation of the power supply exceeds expectations; when the difference is less than zero, it indicates that the actual degradation rate of the power supply is slower than the nominal degradation rate, meaning that the performance degradation of the power supply is lower than expected.

[0040] The operational status is divided into three levels: the stable state has a level value of zero, the warning state has a level value of 0.5, and the failure state has a level value of one.

[0041] For each operational level, a corresponding penalty coefficient is preset, with the penalty coefficient for the stable state being 0.2, the penalty coefficient for the warning state being 0.8, and the penalty coefficient for the failure state being 1.5.

[0042] The penalty coefficient is set based on the following: In a steady state, the power supply performance is good, and only a low penalty is needed for slight degradation; in a warning state, the power supply has shown signs of performance degradation and needs to be given a moderate penalty to reduce its probability of being selected; in a failure state, the power supply is close to or has reached the end of its life and needs to be given a high penalty to eliminate the possibility of it being selected.

[0043] The degradation rate offset of each power supply is multiplied by the penalty coefficient corresponding to the current operating state level of that power supply, and the product is used as the offset penalty value after level correction. For power supplies in a stable state, the offset penalty value is the degradation rate offset multiplied by 0.2; for power supplies in a warning state, the offset penalty value is the degradation rate offset multiplied by 0.8; and for power supplies in a failed state, the offset penalty value is the degradation rate offset multiplied by 1.5.

[0044] The initial power supply rating of each power source is determined by the rated capacity and rated output voltage of the power source, and the product of the rated capacity and rated output voltage is used as the initial power supply rating.

[0045] The difference between the initial rated power supply value of each power supply and the corresponding offset penalty value is used as the power supply suitability of each power supply under the current operating conditions.

[0046] When the difference is greater than zero, the difference is directly used as the power supply suitability output; when the difference is less than or equal to zero, the power supply suitability is forcibly set to zero, indicating that the power supply does not have power supply suitability under the current operating conditions.

[0047] After obtaining the power supply suitability of each power source, the power sources are prioritized according to their power supply suitability values ​​from high to low, with the power source with the highest power supply suitability value being ranked first.

[0048] Extract the top-ranked power supply as the current primary power supply and obtain the port number pre-assigned to that power supply in the system.

[0049] Simultaneously, based on the estimated energy consumption rate of the current load and the remaining capacity of the current main power supply, the duration for which the current main power supply can maintain normal power supply is calculated, and this duration is taken as the conduction maintenance duration.

[0050] The port number and conduction duration corresponding to the current primary power supply are combined and compiled into a path switching instruction. This path switching instruction contains two fields: the first field stores the port number and the second field stores the conduction duration, which are then called by the subsequent soft connection transition process.

[0051] In the soft-connection execution module, a path switching command is received, and power supply switching is performed through charge-balanced soft-connection transition logic. During the transition, the load-side voltage fluctuation envelope is used as a closed-loop monitoring quantity to suppress switching impact. Specifically, this includes: Based on the port number carried in the path switching command, identify the current primary power supply and the target power supply.

[0052] The power supply corresponding to the port number stored in the first field of the path switching instruction is used as the current primary power supply, and the power supply corresponding to the port number stored in the second field is used as the target power supply.

[0053] Once the primary power supply and the target power supply are determined, a dynamic charge balance algorithm is executed to calculate the transition switching duration and the transition switching start time.

[0054] When calculating the transition switching time, first obtain the total amount of charge output by the current main power supply from the start time to the current time, as the cumulative output charge of the current main power supply; then obtain the total amount of charge output by the target power supply from the start time to the current time, as the cumulative output charge of the target power supply.

[0055] The difference between the current accumulated output charge of the main power supply and the accumulated output charge of the target power supply is taken as the charge imbalance.

[0056] When the charge imbalance is positive, it means that the total charge output by the current main power supply is greater than that of the target power supply; when the charge imbalance is negative, it means that the total charge output by the current main power supply is less than that of the target power supply.

[0057] A preset allowable charge deviation limit is set, which is 1 / 1000 of the rated capacity of the current main power supply.

[0058] The charge imbalance is compared with the allowable charge deviation limit. If the absolute value of the charge imbalance is less than or equal to the allowable charge deviation limit, charge balance compensation is not required. The transition switching time is set to zero and the switching is performed immediately. If the absolute value of the charge imbalance is greater than the allowable charge deviation limit, the charge imbalance is divided by the rated output current of the current main power supply. The quotient is used as the transition switching time required to balance the charge of the two.

[0059] When calculating the start time of transition switching, the load voltage value at the current time and the load voltage value at the previous sampling time are obtained. The load voltage value at the current time is subtracted from the load voltage value at the previous sampling time and then divided by the sampling time interval to obtain the real-time change rate of the load voltage.

[0060] The voltage change rate correction value is obtained by multiplying the real-time rate of change of the load voltage by a preset safety factor, where the safety factor is 0.9.

[0061] The difference between the output voltage of the current main power supply and the output voltage of the target power supply is taken as the voltage difference. The voltage difference is divided by the voltage change rate correction value to obtain the voltage change time.

[0062] Using the current time as a reference, subtract the voltage change time from the current time and then subtract the transition switching duration to obtain the current time as the transition switching start time.

[0063] Once the transition start time is reached, the output voltage of the target power supply is gradually increased according to the transition duration as the total duration, while the output voltage of the current main power supply is gradually decreased.

[0064] The step-up and step-down methods adopt an alternating stepping mode, that is, in each stepping cycle, the output voltage of the target power supply is first increased by one step value, and then the output voltage of the current main power supply is decreased by one step value.

[0065] The step value is calculated as follows: 1% of the smaller of the rated output voltage of the target power supply and the rated output voltage of the current main power supply is used as the base step value. The transition switching time is divided into 50 equal time intervals. One step operation is performed in each equal time interval. The base step value is multiplied by the ratio of the voltage difference to the smaller of the rated output voltage to obtain the actual step value in the current step cycle.

[0066] After each step operation is completed, the load voltage value is collected and recorded.

[0067] During the step-by-step lifting and step-by-step lowering process, the output voltage of the target power supply is monitored in real time to ensure that it is consistent with the output voltage of the current main power supply.

[0068] When the difference between the output voltage of the target power supply and the output voltage of the current main power supply is less than a preset voltage difference threshold, it is determined that the two output voltages are the same. At this time, a power supply switch is executed, that is, the connection between the current main power supply and the load is disconnected, while the connection between the target power supply and the load is closed. The voltage difference threshold is 0.5% of the rated output voltage of the current main power supply.

[0069] Record the load-side voltage values ​​collected at all sampling moments during the entire transition period, from the start of the transition to the completion of the power supply switchover.

[0070] Iterate through all recorded load-side voltage values, extract the maximum and minimum values, and use the difference between the maximum and minimum values ​​as the load-side voltage fluctuation peak and valley values.

[0071] The peak and valley values ​​of the load-side voltage fluctuation are output as closed-loop monitoring quantities for subsequent verification and backtracking processes.

[0072] If the peak and valley values ​​of the load voltage fluctuation exceed the preset fluctuation limit, the current switch is marked as an over-impact switch. The fluctuation limit is 5% of the rated output voltage of the current main power supply.

[0073] In the verification backtracking module, the closed-loop monitoring quantity and the running state are verified using Markov dwell time. After filtering out transient jitter, if the main power supply is determined to be in a failed state, the process backtracks to the utility decision module for reselection. Simultaneously, the selected record is bound to a timestamp as a dynamic benchmark to correct the next round of boundary conditions in the data acquisition and definition module. Specifically, this includes: The Markov dwell time verification uses the closed-loop monitoring quantity as the trigger condition, which is the peak and valley values ​​of the load-side voltage fluctuation.

[0074] The closed-loop monitoring value is input to the dwell time counter. When the closed-loop monitoring value is less than or equal to the preset fluctuation limit value, the dwell time counter starts counting. When the closed-loop monitoring value is greater than the fluctuation limit value, the dwell time counter is reset to zero and starts counting again.

[0075] The upper limit of fluctuation is set at 5% of the rated output voltage of the current main power supply. The dwell time counter starts from zero and accumulates continuously in milliseconds. The accumulated value is the continuous dwell time of each power supply in its current operating state.

[0076] After the duration of continuous residence is recorded, the duration of continuous residence is compared with the preset minimum steady-state residence threshold.

[0077] The steady-state minimum dwell time threshold is set based on the following: the threshold is related to the voltage sampling period of each power supply, and the cumulative time of five consecutive samplings is taken as the steady-state minimum dwell time threshold.

[0078] When the sampling period is 200 milliseconds, the minimum steady-state dwell time threshold is set to 1000 milliseconds; when the sampling period is 500 milliseconds, the minimum steady-state dwell time threshold is set to 2500 milliseconds.

[0079] If the current continuous dwell time is lower than the steady-state minimum dwell threshold, the current operating state is determined to be transient jitter, that is, the operating state is marked as invalid and filtered out, the dwell time counter is reset to zero and starts counting again, the current main power supply remains unchanged, and no switching operation is performed.

[0080] When the duration of continuous residence reaches or exceeds the minimum residence threshold of steady state, the current running state is confirmed as a valid running state.

[0081] After confirming its validity, read the current operating status determination result of the main power supply.

[0082] If the current primary power supply is in a stable or warning state, the current primary power supply remains unchanged, no backtracking operation is performed, and the port number of the current primary power supply and the current timestamp are bound and stored as a selection record.

[0083] If the current primary power supply is in a failed state, it is determined that the current primary power supply no longer has the ability to continue supplying power, triggering a backtracking operation to return to the power supply suitability calculation process, recalculate the power supply suitability of each power supply, and reselect the primary power supply.

[0084] After each selection operation, the selection result is bound to the corresponding timestamp to form a selection record. The selection result includes the port number selected as the primary power supply, and the timestamp is the system running time when the selection operation was performed. The selection records are stored sequentially in the storage medium according to time. Each selection record occupies eight bytes of storage space, with the first four bytes storing the port number and the last four bytes storing the timestamp.

[0085] Use all currently stored records in the storage medium as a dynamic baseline.

[0086] The dynamic benchmark is used to correct the boundary conditions for the next round of data acquisition and definition. The specific correction method is as follows: extract the port number from all selected records, count the frequency of each port number in all selected records, and take the terminal voltage acquisition value of the power supply corresponding to the port number with the highest frequency as the reference median value for the next round of voltage acquisition. This reference median value is used as the reference voltage offset of the analog-to-digital converter during the data acquisition and definition process. Extract the timestamps from all selected records, calculate the time interval between two adjacent timestamps of selected records, take the average value of all time intervals, and use this average value as the basis for updating the steady-state minimum dwell threshold when determining the next round of operating state.

[0087] The dynamic reference is updated once after each complete switching cycle. The updated reference voltage offset and the average time interval replace the original parameters for use in the next round of data acquisition and operational status determination.

[0088] The working principle of this invention is as follows: The output voltages and currents of the first power supply, the second power supply, and the energy storage unit, as well as the accumulated charge after temperature compensation, are collected and combined to define the initial boundary conditions. Based on these initial boundary conditions, the polarization voltage response slope and polarization recovery time constant of each power supply are calculated using a polarization equivalent relaxation model. A sequential likelihood ratio test is then used to determine whether each power supply is currently in a stable, warning, or failed state. The power supply suitability is calculated based on the operating state and decay rate of each power supply. The current primary power supply is selected from high to low suitability and compiled into a path switching instruction. A dynamic charge balance soft-connection transition is executed based on this path switching instruction. During the transition, the peak and valley values ​​of the load-side voltage fluctuations are collected as closed-loop monitoring quantities. This closed-loop monitoring quantity is compared with the operating state using a Markov dwell time check. After filtering out transient jitter, if the primary power supply is in a failed state, a new selection is made. Simultaneously, the selection record and timestamp are bound as a dynamic reference for correcting the initial boundary conditions in the next round.

[0089] The foregoing has provided a detailed description of one embodiment of the present invention, but this description is merely a preferred embodiment and should not be construed as limiting the scope of the invention. All equivalent variations and modifications made within the scope of the claims of this invention should still fall within the patent coverage of this invention.

Claims

1. An autonomous power supply switching system based on priority scheduling, characterized in that, include: The data acquisition and definition module is used to acquire the output voltage, current, and accumulated charge under temperature compensation of the first power supply, the second power supply, and the energy storage unit, and define them as the initial boundary conditions. The operating state identification module calculates the internal polarization characteristic parameters of each power supply online based on the initial boundary conditions, and determines its operating state by combining the sequential likelihood ratio test. The operating state is divided into stable state, early warning state and failure state. The utility decision module calculates the power supply utility by weighting the running state and the decay rate of each power source, selects the current primary power source according to the utility priority, and compiles the selection result into a path switching instruction. The soft-connection execution module receives path switching instructions, performs power supply switching through charge-balanced soft-connection transition logic, and uses the load-side voltage fluctuation envelope as a closed-loop monitoring quantity during the transition to suppress switching shocks. The verification backtracking module performs Markov dwell time verification on the closed-loop monitoring quantity and the running state. After filtering out transient jitter, if the main power supply is determined to be in a failed state, it backtracks to the utility decision module to reselect. At the same time, the selected record is bound to the timestamp as a dynamic benchmark to correct the next round of boundary conditions of the data acquisition and definition module.

2. The autonomous power supply switching system based on priority scheduling according to claim 1, characterized in that, The process for determining the running state is as follows: Substitute the initial boundary conditions into the polarization equivalent relaxation model of each power source, and successively solve for the polarization voltage response slope and polarization recovery time constant of each power source, which are used as internal polarization characteristic parameters. The internal polarization characteristic parameters and the nominal polarization characteristic parameters of each power source are subjected to a sequential likelihood ratio test, and the cumulative likelihood ratio of the current polarization offset of each power source relative to the expected offset is calculated successively. When the cumulative likelihood ratio value continues to be lower than the preset acceptance limit, the power supply will be judged as a failure state. When the cumulative likelihood ratio is between the lower acceptance limit and the upper rejection limit, it is considered to be in a warning state. When the cumulative likelihood ratio is higher than the rejection limit, it is determined to be in a stable state, and the stable state, warning state, or failure state is output as the running state.

3. The autonomous power supply switching system based on priority scheduling according to claim 2, characterized in that, The construction process of the polarization equivalent relaxation model is as follows: The internal resistance and polarization capacitance of each power supply are configured into multiple characteristic impedance ratios according to their respective time constants, and the characteristic impedance ratios are used as the topological skeleton of the polarization equivalent relaxation model. The initial boundary conditions are fed into the topology skeleton as inputs. After the topology skeleton performs relaxation analysis on the inputs, the polarization voltage response slope and polarization recovery time constant of each power supply are output. The polarization voltage response slope and polarization recovery time constant are used as the outputs of the polarization equivalent relaxation model for subsequent operational state determination.

4. The autonomous power supply switching system based on priority scheduling according to claim 1, characterized in that, The process of compiling the selection result into path switching instructions specifically includes: Based on the degree of deviation between the decay rate of each power source and the corresponding nominal decay rate, and combined with the current operating state level of each power source, the energy supply suitability under the current operating conditions is calculated for each source. The power supply sources are prioritized from high to low according to their energy suitability, and the power supply source ranked first is selected as the current main power supply source. The port number and conduction duration corresponding to the main power supply are compiled into a path switching instruction output.

5. The autonomous power supply switching system based on priority scheduling according to claim 4, characterized in that, The calculation of energy supply suitability under the current operating conditions source by source specifically includes: The decay rate offset is obtained by subtracting the decay rate of each power source from its nominal decay rate. Multiply the decay rate offset by the penalty coefficient preset for the corresponding operating state level to obtain the offset penalty value after level correction; The initial power supply rating of each power source is compared with the offset penalty value. Based on the comparison result, the suitability of each power source under the current operating conditions is determined and output.

6. The autonomous power supply switching system based on priority scheduling according to claim 1, characterized in that, The power supply switching is performed via charge-balanced soft-connection transition logic, specifically including: Based on the port numbers of the current primary power supply and the target power supply in the path switching instruction, the transition switching duration and transition switching start time are calculated using a dynamic charge balance algorithm. Based on the transition switching duration and the start time of the transition switching, the peak and valley values ​​of the load-side voltage fluctuation are used as closed-loop monitoring quantities to gradually increase the output voltage of the target power supply, while gradually decreasing the output voltage of the current main power supply. When the output voltage of the target power supply rises to match the output voltage of the current main power supply, a power supply switch is executed, and the peak and valley values ​​of the fluctuation during the switch process are output as closed-loop monitoring quantities.

7. The autonomous power supply switching system based on priority scheduling according to claim 6, characterized in that, The calculation of the transition handover duration and the transition handover start time specifically includes: Obtain the current main power supply's output charge accumulation and the target power supply's output charge accumulation, and define the difference between the two as the charge imbalance. Based on the charge imbalance and the preset allowable charge deviation limit, the transition switching time required to balance the charge amounts of the two is calculated. Based on the real-time rate of change of the current load voltage, the transition switching duration is back-calculated to the current moment to determine the transition switching start time and lock the transition switching start time and transition switching duration.

8. The autonomous power supply switching system based on priority scheduling according to claim 1, characterized in that, The Markov dwell time verification specifically includes: Using closed-loop monitoring quantities as triggering conditions, record the duration of continuous residence in the current operating state of each power supply; The duration of continuous dwell time is compared with the preset minimum dwell time threshold for steady state. When the duration of continuous dwell time is lower than the minimum dwell time threshold for steady state, the current running state is determined to be transient jitter and is filtered out. When the duration of continuous residence reaches or exceeds the minimum residence threshold in steady state, the current operating state is confirmed as a valid operating state, and subsequent power supply backtracking selection and dynamic reference correction operations are performed based on the valid operating state.