A method for authorized power locking and dynamic derating control of shared batteries
By locking the power sub-item and implementing dynamic power control, the management problem of authorized but undelivered power in a shared battery system is solved, achieving dynamic matching between power locking and port power, thus improving the reliability and security of power supply.
Patent Information
- Application Number
- CN202611588291.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-14
- Publication Date
- 2026-11-10
AI Technical Summary
In off-grid shared power supply scenarios, existing battery management systems cannot accurately determine the authorized but not yet delivered power, leading to problems such as unfulfilled authorized power and frequent triggering of port overcurrent protection.
By establishing a locked power sub-item, real-time metering and deduction of unused power, and dynamic determination of the port's allowed output power based on battery status and user requests, power locking and dynamic port derating control are achieved.
This avoids the same portion of battery energy being repeatedly authorized, ensuring that the authorized power is consistent with the actual output power, reducing the risk of frequent triggering of port overcurrent protection, and optimizing port power allocation and power supply capabilities.
Smart Images

Figure CN123072129A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of battery management, and more specifically to a method for authorized power locking and dynamic derating control of shared batteries. Background Technology
[0002] With the increasing application of shared charging in scenic areas, outdoor energy storage power supplies, field communication equipment, environmental monitoring equipment, and emergency power supply equipment, off-grid shared batteries need to complete battery protection, user authorization, port power supply, low-battery backup, and remote communication under unattended conditions. Photovoltaic input or auxiliary energy input can improve the equipment's endurance, but the energy replenishment capability in an off-grid environment is fluctuating, and the battery system still needs to accurately determine the amount of electricity that can be safely delivered to the user.
[0003] Existing Battery Management Systems (BMS) typically collect data on total battery voltage, individual cell voltage, battery temperature, charge / discharge current, and fault status, and perform overcharge, over-discharge, overcurrent, short circuit, over-temperature, and equalization protection. These BMSs primarily focus on battery safety protection, usually determining whether charging and discharging are permitted based on State of Charge (SOC), temperature, and fault status. They do not adequately consider the authorized but not yet physically delivered capacity in shared power supply scenarios, the capacity the system must retain, and the power delivery capability in the time domain during continuous port power supply.
[0004] Existing shared power supply equipment typically controls port connectivity based on user QR code authorization, payment status, rental duration, or billing amount. Authorization determination mainly relies on current SOC, remaining battery power, or preset thresholds. This method handles user authorization and port output control separately, and the locked battery power that has been authorized but not yet actually output is not continuously included in the battery-side safety capability calculation. When multiple users or multiple ports continuously submit power requests, the same portion of the battery's releaseable energy may be repeatedly counted in different authorization requests, causing subsequent authorizations to exceed the equipment's actual delivery capacity within the authorized time.
[0005] In off-grid, weak communication scenarios, the cloud authorization status, local metering status, and BMS battery status may exhibit short-term inconsistencies. If the local device continues to open ports according to the cloud payment status when communication is abnormal, issues such as unfulfilled authorized power supply, inability to transmit status after communication module power failure, and frequent triggering of port overcurrent protection may occur. Summary of the Invention
[0006] To address the aforementioned shortcomings in the prior art, the present invention provides a method for authorized power locking and dynamic derating control of shared batteries, which solves the problems of unfulfilled authorized power and frequent triggering of port overcurrent protection in weak communication networks.
[0007] To achieve the above-mentioned objectives, the technical solution adopted by this invention is as follows: A method for authorized power locking and dynamic derating control of a shared battery is provided, comprising the following steps: The local operating status of the shared battery in the current control cycle is obtained with a preset sampling period, including the current available power, the remaining locked power of the port, the remaining authorized time of the port, and the requested power of the port; In response to a user's power request, the actual authorized power volume is determined based on the user's requested power volume, the currently available power volume, and the maximum battery-side equivalent energy allowed to be delivered within the authorized time period. Based on the actual authorized power volume, a corresponding locked power volume sub-item is established for this authorization, the total locked power volume is updated, the corresponding port is opened, and the corresponding state machine is switched from the pending authorization state to the locked state or the power supply state. For the ports that have been opened, the output voltage and output current are collected according to the preset metering cycle, and the port output power in the current metering cycle is calculated and converted into the equivalent power consumption on the battery side; the corresponding locked power sub-item is deducted according to the equivalent power consumption on the battery side, and then the total locked power and the current available power are updated. The allowable output power of each port is dynamically determined based on the remaining locked power, authorized remaining time, requested power, and current allowed discharge current.
[0008] Furthermore, the current method for calculating the available electricity volume includes: The basic available energy is calculated based on the battery's SOC and rated capacity, and then the corrected current available energy of the battery is obtained by combining the temperature correction factor, the battery health state correction factor, and the discharge efficiency. To estimate the current available power capacity: add the corrected current available battery energy, the predicted photovoltaic input power, and the predicted auxiliary energy, and then subtract the system's minimum power capacity, the system's own operating power, the power reserved for low-temperature heating, the expected energy consumption of optional actuators, and the total locked remaining power to obtain the estimated current available power capacity. Determine if the estimated current available electricity volume is greater than 0. If so, use the estimated current available electricity volume as the current available electricity volume; otherwise, determine that the current available electricity volume is 0.
[0009] Furthermore, the specific methods for determining the actual authorized electricity volume include: Based on the port's output conversion efficiency, rated power, and the port's allowable output power determined by the battery's current allowable discharge power and the system's safety status, determine the maximum battery-side equivalent energy that the corresponding port is allowed to deliver within this authorized time period; The minimum value among the user's requested electricity volume, the current available electricity volume, and the maximum battery-side equivalent energy allowed to be delivered within the current authorized time period shall be selected as the actual authorized electricity volume for this period. If the actual authorized power is less than the power requested by the user, partial authorization will be performed based on the actual authorized power, or the user will be prompted that the authorized power is insufficient.
[0010] Furthermore, the locked power sub-item is used to record the authorized transaction identifier, user identifier, port number, authorization time, actual authorized power, locked remaining power, and authorized remaining time; The state machine includes idle state, pending authorization state, locked state, power supply state, derating state, pending release state, safety protection state, and abnormal recovery state.
[0011] Furthermore, the specific methods for dynamically determining the allowable output power of a port based on the remaining locked capacity, remaining authorized time, requested power, and current allowable discharge current of each port include: The fulfillment reference power is determined based on the remaining locked power, the remaining authorized time, and the port output conversion efficiency; whereby the fulfillment reference power represents the average port output power required to complete the delivery of the remaining locked power within the remaining authorized time. Determine whether there is a current change that does not reach the preset value, a calculation result that exceeds the preset effective range, or abnormal sampling data within adjacent control cycles. If so, use the reference internal resistance determined in advance based on battery temperature, SOC, and SOH as the dynamic internal resistance; otherwise, estimate the dynamic internal resistance of the battery based on the changes in battery terminal voltage and battery terminal discharge current within adjacent control cycles. Predict the battery terminal voltage for the next control cycle based on the current battery terminal voltage, candidate discharge current, dynamic internal resistance, current battery terminal discharge current, and voltage safety margin. Based on the current battery terminal discharge current, the current battery terminal voltage, the minimum allowable battery terminal voltage, the voltage safety margin, and the dynamic internal resistance, obtain the maximum allowable discharge current under voltage constraints. The current allowable discharge current is determined based on the battery's SOC, temperature, SOH, and fault status, and the minimum value between the current allowable discharge current and the maximum allowable discharge current under voltage constraints is selected as the battery's current safe discharge current. Based on the overall conversion efficiency from the battery side to the output port side, the current battery terminal voltage, the current safe discharge current of the battery, the system's own operating power, and the low-temperature heating power, calculate the estimated safe output power shared by all user ports; if the estimated safe output power shared by all user ports is greater than 0, then the estimated safe output power shared by all user ports is used as the safe output power shared by all user ports; otherwise, the safe output power shared by all user ports is set to 0. The power allocation weight is determined based on the performance reference power of each port; The power that should be allocated to the corresponding port is obtained based on the port weight and the safe output power shared by all user ports; and the minimum value is selected as the port's allowed output power from the power that should be allocated, the port's requested power, and the port's rated power.
[0012] Furthermore, when the port's allowed output power is lower than the current port output power, the port output power is gradually reduced to the port's allowed output power according to a preset power change slope; When the predicted battery terminal voltage for the next control cycle is lower than the minimum allowable terminal voltage, the remaining charge is depleted, or a serious fault occurs, the corresponding port is disconnected.
[0013] Furthermore, when the battery temperature is below a preset threshold, the charging and discharging current and high-power port output are limited; When the battery SOC is lower than the preset value, the system's minimum reserve capacity is lower than the preset value, the demand for low-temperature heating increases, communication is abnormal, or the BMS alarm occurs, the system's minimum reserve capacity is increased, and the current available power and safe output power are recalculated. When the current available electricity volume is lower than the minimum authorized threshold, new authorizations are stopped and the system enters the minimum operating mode; the already powered ports are subject to current limiting, throttling, or disconnection according to the port's allowed output power; After entering the minimum operating mode, user output ports are closed or restricted, unnecessary actuators are stopped, communication reporting frequency is reduced, and the minimum operating capacity of necessary modules is preserved.
[0014] Furthermore, when a user ends their power consumption early, the authorized time expires, or the locked power of a locked power item is exhausted, the power supply to the corresponding port is stopped, and the corresponding locked power item is put into a pending release state to obtain the remaining unused power. When the port is abnormally disconnected, metering data is missing, or the device is abnormally reset, the corresponding locked electricity sub-item will be transferred to the abnormal recovery state, and the verification will be completed based on the last valid metering record to release the unused electricity. Each metering record includes an authorized transaction identifier, port number, and metering sequence number; for metering records with the same authorized transaction identifier and metering sequence number, the locked power deduction is performed only once.
[0015] Furthermore, when communication is normal, the system receives authorization requests from the cloud and uploads authorization records, locked power sub-items, port metering records, and release records; when communication is abnormal, the system enters local authorization verification mode and performs authorization and power supply control based on the current available power volume, locked power pool, port status, and system security status; the authorization request is generated based on the device number, user identity, payment status, and power withdrawal request. Local records are managed according to authorized transaction identifiers and meter numbers. Locking, deduction, or release operations corresponding to the same authorized transaction and the same meter number are executed only once. When the duration of communication anomalies exceeds the preset threshold, or when the locked power consumption record is inconsistent with the port metering record, new authorizations will be stopped, and the relevant locked power consumption sub-items will be retained for verification. When the communication anomaly lasts for more than a preset threshold and communication is restored, the local authorization record, metering deduction record, and release record are uploaded to the cloud. The cloud obtains the consistency verification result based on the authorized transaction identifier and metering sequence number. The corresponding record is updated based on the consistency verification result. The locked electricity sub-items with discrepancies are transferred to the anomaly recovery state until the verification is completed before the release is executed.
[0016] Furthermore, after dynamically determining the port's allowable output power, the following operations are also included: Using the current battery SOC, battery temperature, SOH, battery voltage, current safe discharge current, dynamic internal resistance, safe output power shared by all user ports, remaining locked capacity of the port, remaining authorized time, fulfillment reference power of the port, and communication status as inputs to the reinforcement learning model, the port power allocation weight correction, port power change slope correction, and voltage safety margin correction are obtained from the corresponding outputs of the reinforcement learning model. The port's allowable output power and the predicted battery terminal voltage for the next control cycle are redefined based on the port power allocation weight correction, port power change slope correction, and voltage safety margin correction.
[0017] The beneficial effects of this invention are as follows: 1. This invention establishes the authorized but not yet physically delivered power as locked power and deducts it from the current available power, thereby avoiding the duplicate authorization of the same part of the battery's usable energy.
[0018] 2. This invention establishes a closed-loop update of authorized power, actual output power, locked remaining power, and currently available power by establishing a locked power sub-item, real-time metering and deduction, and releasing unused power.
[0019] 3. The present invention determines the port fulfillment reference power based on the locked remaining power and the remaining authorized time, and performs port power allocation in combination with the battery safe output power, so that the port output capacity matches the remaining authorized demand.
[0020] 4. This invention estimates the dynamic internal resistance based on changes in battery terminal voltage and discharge current, and predicts the battery terminal voltage for the next control cycle. It can perform current limiting or derating before undervoltage protection is triggered, thereby reducing the risk of power outages caused by sudden loads.
[0021] 5. When there is low temperature, communication abnormality, BMS alarm, or increased system backup requirements, this invention recalculates the current available power and safe output power, and prioritizes the preservation of the minimum operating capabilities of the BMS, main control module, and communication module.
[0022] 6. This invention supports local authorization verification under weak communication conditions and avoids repeated execution of locking, deduction or release operations by using authorized transaction identifiers and metering serial numbers.
[0023] 7. The lightweight reinforcement learning model of this invention optimizes port power allocation and derating only within the safe output power range, and reverts to rule control when the model is abnormal or the output exceeds the safe constraints. Attached Figure Description
[0024] Figure 1 This is a schematic diagram of the overall process of this method; Figure 2 This is a flowchart illustrating the calculation of currently available electricity volume, authorization volume locking, and release. Figure 3 Flowchart for minimum protection control; Figure 4 Power supply control flowchart for QR code authorization; Figure 5 This is a schematic diagram of the architecture of the off-grid shared photovoltaic battery device in the embodiment. Detailed Implementation
[0025] The specific embodiments of the present invention are described below to enable those skilled in the art to understand the present invention. However, it should be understood that the present invention is not limited to the scope of the specific embodiments. For those skilled in the art, various changes are obvious as long as they are within the spirit and scope of the present invention as defined and determined by the appended claims. All inventions utilizing the concept of the present invention are protected.
[0026] Example 1: like Figure 1 , Figure 2 , Figure 3 and Figure 4 As shown, the authorized power lock and port dynamic derating control method for the shared battery includes the following steps: S1. Obtain the local operating status of the shared battery in the current control cycle using a preset sampling period; In practice, the local operating status of the current control cycle includes battery SOC and battery temperature. , Battery terminal voltage Battery terminal current Current available electricity volume System minimum power consumption , No. Locked remaining power at each port , No. Remaining license time for each port , No. Request power of each port The dynamic internal resistance of the battery Safe output power shared by all user ports System security status Communication status , is represented as:
[0027] in Indicates time; It should be noted that the "currently available sales capacity" in this invention refers to the maximum battery-side equivalent energy that the shared battery can still use for new authorizations after taking into account the reliable predicted replenishment energy and deducting the system's minimum capacity, the system's expected energy consumption, and the locked capacity that has been authorized but not yet physically delivered, in the current battery state. The current available sales capacity is a power control state quantity that changes in real time with the battery state, replenishment state, and locked capacity, and is used to characterize the device's current new authorization capability.
[0028] The currently available electricity volume is calculated according to a preset authorized calculation time window. The predicted photovoltaic input energy, the predicted auxiliary energy, the system's own operating power, the reserved power for low-temperature heating, and the estimated energy consumption of optional actuators all correspond to the same authorized calculation time window, and the authorized calculation time window is not shorter than the authorized duration requested by the user.
[0029] In some feasible implementations, the method for calculating the currently available electricity volume includes the following sub-steps: S1-1. Calculate the basic available energy based on the battery SOC and rated capacity, and combine it with the temperature correction factor, battery health status correction factor and discharge efficiency to obtain the corrected current available energy of the battery. S1-2. Estimate the current available power capacity: Add the corrected current available battery energy, the predicted photovoltaic input power, and the predicted auxiliary energy, and then subtract the system's minimum power capacity, the system's own operating power, the power reserved for low-temperature heating, the expected energy consumption of optional actuators, and the total locked remaining power to obtain the estimated current available power capacity. S1-3. Determine whether the estimated value of the current available electricity is greater than 0. If so, use the estimated value of the current available electricity as the current available electricity; otherwise, determine that the current available electricity is 0.
[0030] For example, the currently available electricity volume is represented as follows:
[0031] in The corrected current available energy of the battery. , The basic usable energy is obtained based on the battery's SOC and rated capacity. This is a temperature correction factor. This is a correction factor for battery health status. For discharge efficiency; The predicted photovoltaic input energy after confidence correction. , The reliability coefficient of photovoltaic power replenishment. To predict photovoltaic input energy; The energy predicted by the auxiliary energy replenishment after confidence correction. , To assist in the reliability coefficient of energy replenishment, To assist in predicting energy levels; This is for the system's own operating power; Reserve power for low-temperature heating; Estimated energy consumption for optional actuators; To determine the total remaining battery level, in multi-user or multi-port scenarios, the total locked battery level is the sum of the locked battery level sub-items: ; This indicates taking the maximum value.
[0032] It should also be noted that locked capacity represents the equivalent battery energy for which a power supply commitment has been made to the user but has not yet been actually delivered. All locked capacity is deducted when calculating the current marketable capacity to avoid duplicate authorization of the same portion of available battery energy. The current marketable capacity is recalculated whenever locked capacity is added, deducted, or released.
[0033] The currently available electricity volume is used to determine the new authorized capacity of the device, and is not directly equal to the actual authorized electricity volume. The actual authorized electricity volume is also subject to the user's requested electricity volume and the electricity volume that the corresponding port can deliver within the authorized time.
[0034] This embodiment unifies user authorization, locked power supply establishment, port power supply, meter deduction, and unused power release into a local authorized power supply lock state machine. The state machine includes at least the following states: idle state, pending authorization state, locked state, power supply in progress state, derating state, pending release state, minimum protection state, and abnormal recovery state.
[0035] S2. In response to the user's power request, determine the actual authorized power volume based on the user's requested power volume, the current available power volume, and the maximum battery-side equivalent energy allowed to be delivered within the authorized time period; In practice, when a user scans a code to request power, the backend server or local main control module can generate a power request based on the device number, user identity, payment status, and the requested power amount. The authorization request must include at least the requested power amount. Requested power and authorization duration One or more of the following. When a user requests power in terms of port-side power, it is converted into an equivalent battery-side requested power according to the port output conversion efficiency; subsequently... Both represent the equivalent requested battery capacity after conversion.
[0036] For example, the specific method for determining the actual authorized power volume includes the following sub-steps: S2-1. Based on the port's output conversion efficiency, rated power, and the port's permissible output power determined by the battery's current permissible discharge power and the system's safety status, determine the maximum battery-side equivalent energy that the corresponding port is allowed to deliver within this authorized time period; its expression is:
[0037] in For the first The maximum battery-side equivalent energy allowed to be delivered by each port within the authorized time period; For the first Output conversion efficiency of each port; According to the first The rated power of each port, the current allowable discharge power of the battery, and the allowable output power of the port determined by the system safety status; For the first Authorization time for each port; S2-2. Select the minimum value from the user's requested electricity volume, the current available electricity volume, and the maximum battery-side equivalent energy allowed to be delivered within the current authorized time as the actual authorized electricity volume; Specifically, if the actual authorized power volume is less than the user's requested power volume, partial authorization will be performed based on the actual authorized power volume, or a message indicating insufficient authorized power volume will be returned to the user; the expression is as follows:
[0038] in This refers to the actual authorized electricity volume for this transaction; Request battery level for the user; This represents the current available electricity volume. This indicates taking the minimum value.
[0039] S3. Based on the actual authorized power consumption, establish a corresponding locked power consumption sub-item for this authorization, update the total locked power consumption, open the corresponding port, and switch the corresponding state machine from the pending authorization state to the locked state or the power supply state. In the specific implementation process, after obtaining the actual authorized power volume, a corresponding locked power volume sub-item is established for it: The locked power sub-item must record at least the authorized transaction identifier, user identifier, port number, authorization time, actual authorized power, remaining locked power, and remaining authorization time. The total locked power of the system is updated as follows: .
[0040] The creation of the locked power sub-item, the update of the total locked power of the system, and the recalculation of the current available power are all completed within the same authorized transaction. After the update is completed, the corresponding control port is opened, and the state machine is switched from the pending authorization state to the locked state or the power supply state.
[0041] It should be noted that when If the battery level is less than or equal to zero, or if the battery safety status, system safety margin conditions, or port status do not meet the authorization requirements, the new authorization will be rejected. If the actual authorized battery level is less than the user's requested battery level, partial authorization can be performed based on the actual authorized battery level, or a message indicating insufficient authorized battery level can be returned to the user.
[0042] Once established, the remaining locked power is deducted from the current available power as an authorized commitment, and it also participates in the output power calculation of the corresponding port, so that the same locked power status simultaneously constrains the power supply control of subsequent authorizations and the current port.
[0043] S4. For the open ports, collect the output voltage and output current according to the preset metering cycle, calculate the port output power in the current metering cycle, and convert it into the equivalent power consumption on the battery side; deduct the corresponding locked power sub-item according to the equivalent power consumption on the battery side, and then update the total locked power and the current available power. For example, in a specific power supply process, the electricity metering unit can collect data according to a preset metering cycle. The output voltage and current of each port are calculated, and the port output power is calculated for the current metering cycle.
[0044] in For the measurement period, and The first The output voltage and output current of each port Indicates time.
[0045] Then, based on the port output conversion efficiency, the port output power is converted into the equivalent power consumption on the battery side:
[0046] in, For the first Output conversion efficiency of each port.
[0047] Next, the corresponding locked power sub-item is deducted based on the equivalent power consumption on the battery side: ; The system's total locked battery level has been updated to: .
[0048] After the locked power is updated, the current available power is recalculated, and the updated locked remaining power is used for port output power control.
[0049] To avoid repeated deductions of locked electricity due to communication retransmissions or duplicate metering, each metering record must include at least an authorized transaction identifier, port number, and metering sequence number; for metering records with the same authorized transaction identifier and metering sequence number, locked electricity deduction will only be performed once.
[0050] When a user ends their power usage early, the authorized time expires, or the locked power for a locked power item is depleted, power supply to the corresponding port is stopped, and the corresponding locked power item is put into a pending release state to retrieve the remaining unused power. After completing port closure and final metering, release the remaining locked power. ; When a port is abnormally disconnected, metering data is missing, or the device is abnormally reset, the corresponding locked electricity sub-item will be transferred to the abnormal recovery state, and the verification will be completed based on the last valid metering record to release the unused electricity.
[0051] By locking the power supply in real time and releasing it under certain conditions, the device can continuously distinguish between the power supply that has been committed but not yet delivered and the power supply that can still be used for new authorizations, so that the actual output of the port, the locked power supply status and the current available power supply are consistent.
[0052] S5. Dynamically determine the allowable output power of each port based on the remaining locked power, remaining authorized time, requested power, and current allowed discharge current.
[0053] In this embodiment, dynamically determining the port's allowed output power includes the following sub-steps: S5-1. Determine the fulfillment reference power based on the remaining locked power, the remaining authorized time, and the port output conversion efficiency; whereby the fulfillment reference power represents the average port output power required to deliver the remaining locked power within the remaining authorized time; the corresponding expression is:
[0054] in For the first The fulfillment reference power of each port represents the average port output power required to complete the delivery of the remaining locked power within the remaining authorized time, and is used to determine the port power allocation requirements. For the first Each port output conversion efficiency; No. The remaining battery level of each port is locked; Remaining time for authorization; To control the cycle; To obtain the maximum value; S5-2. To anticipate battery voltage drops caused by load changes, the dynamic internal resistance of the battery is estimated based on changes in battery terminal voltage and discharge current within adjacent control cycles. The system determines whether there are any current changes that do not reach a preset value, calculation results that exceed a preset effective range, or abnormal sampling data within adjacent control cycles. If so, the dynamic internal resistance is used as a reference internal resistance predetermined by battery temperature, SOC, and SOH. Otherwise, the dynamic internal resistance of the battery is estimated based on changes in battery terminal voltage and battery terminal discharge current within adjacent control cycles. The corresponding expression is:
[0055]
[0056]
[0057] in This represents the change in battery terminal voltage within adjacent control cycles. and This represents the battery terminal voltage value in the adjacent control cycle. This represents the change in battery terminal discharge current within adjacent control cycles. and This represents the battery discharge current value in the adjacent control cycle. The dynamic internal resistance is estimated based on the changes in battery terminal voltage and battery terminal discharge current within adjacent control cycles. Indicates time; S5-3. Based on the current battery terminal voltage, candidate discharge current, dynamic internal resistance, current battery terminal discharge current, and voltage safety margin, predict the battery terminal voltage for the next control cycle; its expression is:
[0058] in The battery terminal voltage for the predicted next control cycle; This is the current battery terminal voltage; Candidate discharge current; This represents the current battery discharge current. A voltage safety margin is set to account for sampling errors, continued load increases, and model errors; S5-4. Based on the current battery terminal discharge current, current battery terminal voltage, minimum allowable battery terminal voltage, voltage safety margin, and dynamic internal resistance, obtain the maximum allowable discharge current under voltage constraints; its expression is:
[0059] in This is the maximum permissible discharge current under voltage constraints; This is the minimum permissible terminal voltage of the battery; The minimum internal resistance value set to avoid abnormal calculations caused by excessively low dynamic internal resistance; S5-5. Determine the current allowable discharge current based on the battery's SOC, temperature, SOH and fault status, and select the minimum value from the current allowable discharge current and the maximum allowable discharge current under voltage constraints as the battery's current safe discharge current. S5-6. Based on the comprehensive conversion efficiency from the battery side to the output port side, the current battery terminal voltage, the current safe discharge current of the battery, the system's own operating power, and the low-temperature heating power, calculate the estimated safe output power shared by all user ports. If the estimated safe output power shared by all user ports is greater than 0, then the estimated safe output power shared by all user ports is used as the safe output power shared by all user ports; otherwise, the safe output power shared by all user ports is set to 0. The expression is:
[0060] in Secure output power shared by all user ports; The overall conversion efficiency from the battery side to the output port side; This is the current safe discharge current of the battery; This refers to the system's own operating power; This refers to the power output for low-temperature heating; when low-temperature heating is not activated, =0; S5-7. When multiple ports are powered simultaneously, the power allocation weight is determined based on the fulfillment reference power of each port; the expression is:
[0061] in For the first The weight of each port; Total number of ports; A positive number is set to avoid a denominator of zero; For the first The fulfillment reference power of each port; S5-8. Based on the port weight and the shared secure output power of all user ports, obtain the power that should be allocated to the corresponding port; and select the minimum value from the power that should be allocated, the port's requested power, and the port's rated power as the port's allowed output power, i.e.:
[0062] in For the first Allowable output power of each port; For the first Power should be allocated to each port; For the first Rated power of each port; For the first The requested power of each port.
[0063] It should be noted that when some ports do not use their allocated power, the main control module will redistribute the remaining power according to the fulfillment reference power of other ports.
[0064] when When the output power of the port is lower than the current output power, the output power of the port is gradually reduced according to the preset power change slope; when the predicted terminal voltage is lower than the minimum allowable terminal voltage, the remaining power is depleted, or a serious fault occurs, the corresponding port is disconnected.
[0065] Port control sequentially includes normal output, current limiting, power derating, output level reduction, port disconnection, and minimum operating range. After the remaining power is locked and updated, the compliance reference power and the port's allowable output power are recalculated synchronously in the next control cycle.
[0066] In some feasible implementations, this embodiment also performs safety protection based on battery SOC, temperature, terminal voltage, discharge current, and fault state: When the battery temperature is below a preset threshold, the charging and discharging current and high-power port output are limited; When the equipment is equipped with a low-temperature heating module, the operation of the low-temperature heating module is controlled according to the photovoltaic input, battery SOC and system backup requirements; When the battery SOC is lower than the preset value, the system's minimum reserve capacity is lower than the preset value, the demand for low-temperature heating increases, communication is abnormal, or the BMS alarm occurs, the system's minimum reserve capacity is increased, and the current available power and safe output power are recalculated. When the current available electricity volume is lower than the minimum authorized threshold, new authorizations are stopped and the system enters the minimum operating mode; the already powered ports are subject to current limiting, throttling, or disconnection according to the port's allowed output power; After entering the minimum operating mode, the user output ports are closed or restricted, unnecessary actuators are stopped, the communication reporting frequency is reduced, and the minimum operating capacity of necessary modules (including BMS, main control module, communication module and necessary display functions) is preserved.
[0067] The main control module is used to acquire the status of photovoltaic and auxiliary energy replenishment, port metering data, port output power, user authorization status, communication status, low temperature heating status and environmental status, and to interact with the BMS battery management module.
[0068] In the specific implementation process, when communication is normal, the system receives authorization requests from the cloud and uploads authorization records, locked power sub-items, port metering records, and release records; when communication is abnormal, the system enters the local authorization verification mode and performs authorization and power supply control based on the current available power, locked power pool, port status, and system security status; the authorization request is generated based on the device number, user identity, payment status, and power withdrawal request. Local records are managed according to authorized transaction identifiers and meter numbers. Locking, deduction, or release operations corresponding to the same authorized transaction and the same meter number are executed only once. When the duration of communication anomalies exceeds the preset threshold, or when the locked power consumption record is inconsistent with the port metering record, new authorizations will be stopped, and the relevant locked power consumption sub-items will be retained for verification. When the communication anomaly lasts for more than a preset threshold and communication is restored, the local authorization record, metering deduction record, and release record are uploaded to the cloud. The cloud obtains the consistency verification result based on the authorized transaction identifier and metering sequence number. The corresponding record is updated based on the consistency verification result. The locked electricity sub-items with discrepancies are transferred to the anomaly recovery state until the verification is completed before the release is executed.
[0069] In this embodiment, after dynamically determining the allowable output power of the port, the following operations are also included: A1. Using the current battery SOC, battery temperature, SOH, battery voltage, current safe discharge current, dynamic internal resistance, shared safe output power of all user ports, remaining locked capacity of the port, remaining authorized time, port fulfillment reference power, and communication status as inputs to the reinforcement learning model, obtain the port power allocation weight correction, port power change slope correction, and voltage safety margin correction for the corresponding outputs of the reinforcement learning model; where the state variables of the reinforcement learning model can be expressed as: ; The set of action quantities can be represented as:
[0070] in, For the first Port power allocation weight adjustment amount For the first Correction amount for the slope of power change at each port This is a correction amount for the safety margin of the predicted terminal voltage; A2. Based on the port power allocation weight correction, port power change slope correction, and voltage safety margin correction, redetermine the port allowable output power and predict the battery terminal voltage for the next control cycle.
[0071] It should be noted that the port control power meets the following requirements:
[0072] in, For the first Rated power of each port; This is the predicted battery terminal voltage; This is the minimum permissible terminal voltage.
[0073] The reward function of the reinforcement learning model is determined based on the authorized power supply fulfillment rate, port power supply continuity, port power fluctuation, undervoltage shutdown count, and overcurrent protection trigger count.
[0074] in, For authorized electricity volume fulfillment rate; For port power supply continuity indicators; Port power fluctuation; This refers to the number of undervoltage shutdowns. This refers to the number of times the overcurrent protection is triggered. , , , and These are the weighting coefficients.
[0075] The reinforcement learning model is deployed using offline training, online table lookup, or small-scale neural network inference. When the model input is abnormal, inference times out, or the output does not meet the above safety constraints, the calculated port allowable output power is used.
[0076] Example 2: This embodiment is a further extension based on Embodiment 1. Taking an off-grid photovoltaic shared battery device as an example, this embodiment further illustrates the application of the authorized power lock and port dynamic derating control method for this shared battery. Figure 5 As shown, the off-grid shared photovoltaic battery equipment includes a photovoltaic power generation module, an optional auxiliary energy replenishment module, an energy storage battery module, a BMS battery management module, a charging management module, a multi-voltage output module, a QR code authorization module, a port electronic switch, an energy metering unit, an IoT communication module, a local display module, and a main control module.
[0077] The BMS battery management module is used to collect data on total battery voltage, individual cell voltage, state of charge (SOC), state of health (SOH), battery temperature, charge / discharge current, rate of change of battery terminal voltage, rate of change of discharge current, and fault status.
[0078] The main control module is used to acquire the status of photovoltaic and auxiliary energy replenishment, port metering data, port output power, user authorization status, communication status, low temperature heating status and environmental status, and to interact with the BMS battery management module.
[0079] The authorized power lock and dynamic derating control method for shared batteries operates on the BMS battery management module or the main control module connected to it. Based on battery-side operating data, system-side operating data, and user power requests, it maintains the current available power, the locked power pool, and the authorized power lock state machine, calculating the actual authorized power, the locked remaining power, and the port's allowed output power. The locked remaining power also participates in the calculation of the current available power and the port output power control. Based on this, the control module outputs control commands for port opening, current limiting, derating, disconnection, and minimum power guarantee modes.
[0080] After a user scans the device's QR code using their mobile terminal, the backend server or local main control module generates an authorization request based on the device number, user identity, payment status, and power consumption request. The main control module or BMS battery management module determines the actual authorized power volume based on the current available power volume, battery safety status, system safety margin conditions, and port status; when the authorization conditions are met, a corresponding locked power volume sub-item is established, and the corresponding port is opened.
[0081] The BMS battery management module collects battery-side operating data according to a preset sampling period, while the main control module collects output voltage, output current, cumulative output capacity, and port operating status from each port according to a preset metering period. The sampling period can be shorter than or equal to the port power control period, and the port metering period can be equal to or greater than the port power control period.
[0082] The reinforcement learning model runs in the main control module to optimize the calculated port power allocation results, and only corrects the port power allocation weights, derating slopes and voltage safety margins within the safe output power range.
[0083] In a specific scenario, the corrected available energy of the off-grid shared photovoltaic battery is 3.20 kWh, the reliable photovoltaic predicted supplemental energy is 0.35 kWh, the system's guaranteed minimum energy is 0.45 kWh, the system's expected energy consumption within the authorized calculation time window is 0.12 kWh, and the expected energy consumption for cryogenic heating and optional actuators is 0. The locked remaining energy for user A in the device is 0.80 kWh.
[0084] The current available electricity volume is: .
[0085] User B requests power through port 2, requesting 2.00 kWh of power for a duration of 2 hours. The port's output conversion efficiency is 0.90. At the time of authorization, the initial allowable output power of port 2 is 0.90 kW, corresponding to the battery-side time-domain deliverable power: .
[0086] User B's requested power consumption on the port side is converted to the equivalent requested power consumption on the battery side as follows: .
[0087] According to the actual authorized electricity calculation method, the actual authorized electricity for this transaction is as follows:
[0088] The main control module establishes a locked power sub-item for user B and updates the total locked power of the system to 2.80 kWh. At this time, with other parameters remaining unchanged, the current available power is updated to 0.18 kWh. When the minimum authorization threshold is greater than 0.18 kWh, the main control module stops accepting new power withdrawal requests, thereby preventing the existing locked power from being reauthorized.
[0089] During the power supply process, user B actually receives 0.54 kWh of output power from the port side, and the corresponding equivalent power consumption on the battery side is: .
[0090] User B's remaining locked power supply is reduced from 2.00 kWh to 1.40 kWh. If User B terminates power consumption prematurely at this point, the main control module will release the remaining 1.40 kWh after completing the final metering and recalculate the current available power supply.
[0091] In contrast, in a control method that grants authorization sequentially based solely on the current SOC or remaining battery energy, and does not establish local locking sub-items for authorized but not yet delivered energy, 0.80kWh already authorized but not yet delivered by user A may still participate in user B's authorization decision, causing the same portion of battery energy to be repeatedly committed. In this embodiment, after user A successfully authorizes, the corresponding 0.80kWh is included in the system's total locked energy and deducted when calculating user B's current sellable energy. After user B obtains authorization, the current sellable energy decreases to 0.18kWh, and when it falls below the minimum authorization threshold, new authorizations are stopped, thus keeping the device's total authorized commitments within the current deliverable energy range.
[0092] In another scenario, the remaining locked capacity of port 1 is 0.60 kWh, with a remaining authorized time of 1 hour; the remaining locked capacity of port 2 is 0.45 kWh, with a remaining authorized time of 0.5 hours; the output conversion efficiency of both ports is 0.90. Based on calculations, the compliance reference power for the two ports is 0.54 kW and 0.81 kW, respectively.
[0093] Within two consecutive control cycles, the battery discharge current increased from 18A to 30A, and the battery terminal voltage decreased from 48.5V to 47.9V. The estimated dynamic internal resistance of the battery is: .
[0094] Assume the minimum allowable terminal voltage of the battery is 47.5V, and the voltage safety margin is 0.2V. When the candidate discharge current is 40A, the predicted terminal voltage is: .
[0095] Since the predicted terminal voltage is lower than the minimum allowable terminal voltage, the main control module reduces the allowable discharge current and limits the safe output power of all user ports to approximately 1.42kW. The main control module allocates the safe output power according to the performance reference power ratio of the two ports and gradually reduces the port output at a preset power change slope to avoid sudden loads directly triggering the battery undervoltage protection.
[0096] In contrast, in a control method that uses a fixed port power limit and only executes current limiting or port disconnection after the battery terminal voltage reaches the undervoltage protection threshold, the voltage drop caused by a sudden increase in load cannot participate in the port power adjustment in advance, easily causing a sudden interruption of port output. This embodiment estimates a dynamic internal resistance of 0.05Ω based on changes in battery terminal voltage and discharge current, and predicts that the battery terminal voltage will drop to 47.2V when the candidate discharge current is 40A, which is lower than the minimum allowable terminal voltage of 47.5V. Therefore, it reduces the safe output power before the undervoltage protection is triggered, and allocates power based on the locked remaining charge and authorized remaining time of each port, thereby reducing the risk of undervoltage shutdown caused by sudden load.
[0097] The above application scenarios demonstrate that the present invention locks the power supply to occupy newly authorized capabilities in real time and pre-constrains the port output power by predicting the terminal voltage, so that the user's authorization commitment, the locked remaining power supply, and the port's physical delivery capability remain dynamically consistent.
[0098] In summary, this invention establishes an authorized power lock state machine and a locked power pool, simultaneously using authorized but unused locked power for calculating current marketable power and controlling port output power. Combined with real-time metering deduction, unused power release, dynamic port derating, and system safety control, it achieves closed-loop management and safe power supply for off-grid shared batteries. This invention solves the problem that existing BMS systems struggle to comprehensively distinguish between currently available battery energy, system safety reserve power, authorized locked power, and current marketable power; it addresses the issue that authorized but unused power is not locally locked after successful user authorization, leading to repeated use of the same battery energy in subsequent authorizations; it resolves the problem that port output power cannot be dynamically adjusted based on remaining locked power, remaining authorization time, SOC, temperature, battery terminal voltage, and discharge current changes; it addresses the problem of undervoltage, overcurrent protection triggering, and power outages caused by sudden port loads; and it resolves the inconsistency between authorization records, locked power records, and port metering records under weak communication conditions.
Claims
1. A method for authorized power locking and dynamic derating control of a shared battery, characterized in that, Includes the following steps: The local operating status of the shared battery in the current control cycle is obtained with a preset sampling period, including the current available power, the remaining locked power of the port, the remaining authorized time of the port, and the requested power of the port; In response to a user's power request, the actual authorized power volume is determined based on the user's requested power volume, the currently available power volume, and the maximum battery-side equivalent energy allowed to be delivered within the authorized time period. Based on the actual authorized power volume, a corresponding locked power volume sub-item is established for this authorization, the total locked power volume is updated, the corresponding port is opened, and the corresponding state machine is switched from the pending authorization state to the locked state or the power supply state. For the ports that have been opened, the output voltage and output current are collected according to the preset metering cycle, and the port output power in the current metering cycle is calculated and converted into the equivalent power consumption on the battery side. Based on the equivalent power consumption on the battery side, the corresponding locked power sub-item is deducted, thereby updating the total locked power and the current available power. The allowable output power of each port is dynamically determined based on the remaining locked power, authorized remaining time, requested power, and current allowed discharge current.
2. The authorized power lock and port dynamic derating control method for shared batteries according to claim 1, characterized in that, The methods for calculating the current available electricity volume include: The basic available energy is calculated based on the battery's SOC and rated capacity, and then the corrected current available energy of the battery is obtained by combining the temperature correction factor, the battery health state correction factor, and the discharge efficiency. To estimate the current available power capacity: add the corrected current available battery energy, the predicted photovoltaic input power, and the predicted auxiliary energy, and then subtract the system's minimum power capacity, the system's own operating power, the power reserved for low-temperature heating, the expected energy consumption of optional actuators, and the total locked remaining power to obtain the estimated current available power capacity. Determine if the estimated current available electricity volume is greater than 0. If so, use the estimated current available electricity volume as the current available electricity volume; otherwise, determine that the current available electricity volume is 0.
3. The authorized power lock and port dynamic derating control method for shared batteries according to claim 1, characterized in that, The specific methods for determining the actual authorized electricity volume include: Based on the port's output conversion efficiency, rated power, and the port's allowable output power determined by the battery's current allowable discharge power and the system's safety status, determine the maximum battery-side equivalent energy that the corresponding port is allowed to deliver within this authorized time period; The minimum value among the user's requested electricity volume, the current available electricity volume, and the maximum battery-side equivalent energy allowed to be delivered within the current authorized time period shall be selected as the actual authorized electricity volume for this period. If the actual authorized power is less than the power requested by the user, partial authorization will be performed based on the actual authorized power, or the user will be prompted that the authorized power is insufficient.
4. The authorized power lock and port dynamic derating control method for shared batteries according to claim 1, characterized in that, The Locked Battery sub-item is used to record the authorized transaction identifier, user identifier, port number, authorization time, actual authorized battery level, remaining locked battery level, and remaining authorized time. The state machine includes idle state, pending authorization state, locked state, power supply state, derating state, pending release state, safety protection state, and abnormal recovery state.
5. The authorized power lock and port dynamic derating control method for shared batteries according to claim 1, characterized in that, The specific methods for dynamically determining the allowable output power of a port based on the remaining locked capacity, remaining authorized time, requested power, and current allowed discharge current include: The fulfillment reference power is determined based on the remaining locked power, the remaining authorized time, and the port output conversion efficiency; whereby the fulfillment reference power represents the average port output power required to complete the delivery of the remaining locked power within the remaining authorized time. Determine whether there is a current change that does not reach the preset value, a calculation result that exceeds the preset effective range, or abnormal sampling data within adjacent control cycles. If so, use the reference internal resistance determined in advance based on battery temperature, SOC, and SOH as the dynamic internal resistance; otherwise, estimate the dynamic internal resistance of the battery based on the changes in battery terminal voltage and battery terminal discharge current within adjacent control cycles. Predict the battery terminal voltage for the next control cycle based on the current battery terminal voltage, candidate discharge current, dynamic internal resistance, current battery terminal discharge current, and voltage safety margin. Based on the current battery terminal discharge current, the current battery terminal voltage, the minimum allowable battery terminal voltage, the voltage safety margin, and the dynamic internal resistance, obtain the maximum allowable discharge current under voltage constraints. The current allowable discharge current is determined based on the battery's SOC, temperature, SOH, and fault status, and the minimum value between the current allowable discharge current and the maximum allowable discharge current under voltage constraints is selected as the battery's current safe discharge current. Based on the overall conversion efficiency from the battery side to the output port side, the current battery terminal voltage, the current safe discharge current of the battery, the system's own operating power, and the low-temperature heating power, calculate the estimated safe output power shared by all user ports; if the estimated safe output power shared by all user ports is greater than 0, then the estimated safe output power shared by all user ports is used as the safe output power shared by all user ports; otherwise, the safe output power shared by all user ports is set to 0. The power allocation weight is determined based on the performance reference power of each port; The power that should be allocated to the corresponding port is obtained based on the port weight and the safe output power shared by all user ports; and the minimum value is selected as the port's allowed output power from the power that should be allocated, the port's requested power, and the port's rated power.
6. The authorized power lock and port dynamic derating control method for shared batteries according to claim 5, characterized in that, When the port's allowed output power is lower than the current port output power, the port output power is gradually reduced to the port's allowed output power according to a preset power change slope. When the predicted battery terminal voltage for the next control cycle is lower than the minimum allowable terminal voltage, the remaining charge is depleted, or a serious fault occurs, the corresponding port is disconnected.
7. The authorized power lock and port dynamic derating control method for shared batteries according to claim 1, characterized in that, When the battery temperature is below a preset threshold, the charging and discharging current and high-power port output are limited; When the battery SOC is lower than the preset value, the system's minimum reserve capacity is lower than the preset value, the demand for low-temperature heating increases, communication is abnormal, or the BMS alarm occurs, the system's minimum reserve capacity is increased, and the current available power and safe output power are recalculated. When the current available electricity volume is lower than the minimum authorized threshold, new authorizations are stopped and the system enters the minimum operating mode; the already powered ports are subject to current limiting, throttling, or disconnection according to the port's allowed output power; After entering the minimum operating mode, user output ports are closed or restricted, unnecessary actuators are stopped, communication reporting frequency is reduced, and the minimum operating capacity of necessary modules is preserved.
8. The authorized power lock and port dynamic derating control method for shared batteries according to claim 4, characterized in that, When a user ends their power use early, the authorized time expires, or the locked power of a locked power item is exhausted, the power supply to the corresponding port is stopped, and the corresponding locked power item is put into a waiting-to-release state to obtain the remaining unused power. When the port is abnormally disconnected, metering data is missing, or the device is abnormally reset, the corresponding locked electricity sub-item will be transferred to the abnormal recovery state, and the verification will be completed based on the last valid metering record to release the unused electricity. Each metering record includes an authorized transaction identifier, port number, and metering sequence number; for metering records with the same authorized transaction identifier and metering sequence number, the locked power deduction is performed only once.
9. The authorized power lock and port dynamic derating control method for shared batteries according to claim 8, characterized in that, When communication is normal, it receives authorization requests from the cloud and uploads authorization records, locked power sub-items, port metering records, and release records; when communication is abnormal, it enters local authorization verification mode and performs authorization and power supply control based on the current available power, locked power pool, port status, and system security status. The authorization request is generated based on the device number, user identity, payment status, and power request. Local records are managed according to authorized transaction identifiers and meter numbers. Locking, deduction, or release operations corresponding to the same authorized transaction and the same meter number are executed only once. When the duration of communication anomalies exceeds the preset threshold, or when the locked power consumption record is inconsistent with the port metering record, new authorizations will be stopped, and the relevant locked power consumption sub-items will be retained for verification. When the duration of communication anomaly exceeds the preset threshold and communication is restored, the local authorization record, meter deduction record and release record are uploaded to the cloud to obtain the consistency verification result of the cloud based on the authorization transaction identifier and meter sequence number; Update the corresponding record based on the consistency verification result; transfer the locked power sub-item with discrepancies to the abnormal recovery state until the verification is completed before releasing it.
10. The authorized power lock and port dynamic derating control method for shared batteries according to claim 1, characterized in that, After dynamically determining the port's allowed output power, the following operations are also included: Using the current battery SOC, battery temperature, SOH, battery voltage, current safe discharge current, dynamic internal resistance, safe output power shared by all user ports, remaining locked capacity of the port, remaining authorized time, fulfillment reference power of the port, and communication status as inputs to the reinforcement learning model, the port power allocation weight correction, port power change slope correction, and voltage safety margin correction are obtained from the corresponding outputs of the reinforcement learning model. The port's allowable output power and the predicted battery terminal voltage for the next control cycle are redefined based on the port power allocation weight correction, port power change slope correction, and voltage safety margin correction.
