A vehicle battery management method, device, equipment and readable storage medium

By evaluating the clock unit state and prioritizing the configuration of the input/output unit wake-up source, the problem of low reliability in the vehicle battery management system during sleep mode is solved, achieving safe and reliable low-power sleep mode and the ability to wake up at any time.

CN122165938APending Publication Date: 2026-06-09VOYAH AUTOMOBILE TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
VOYAH AUTOMOBILE TECH CO LTD
Filing Date
2026-03-09
Publication Date
2026-06-09

AI Technical Summary

Technical Problem

Existing vehicle battery management systems have low reliability during sleep mode, which may lead to high static power consumption or failure to power on or unlock the vehicle, affecting vehicle startup.

Method used

By acquiring the timing status of the clock unit, it is determined whether the wake-up source configuration conditions of the input/output unit are met. If they are met, the input/output unit is controlled to execute the wake-up source configuration, and enters a sleep state after the configuration is completed, ensuring at least one reliable wake-up capability and avoiding absolute dependence on the clock unit.

Benefits of technology

It improves the reliability of the battery management system, avoids extreme situations such as high power consumption operation or sleep shutdown, and ensures that the system can safely and reliably enter a low power sleep state and be woken up at any time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122165938A_ABST
    Figure CN122165938A_ABST
Patent Text Reader

Abstract

The application discloses a kind of vehicle battery management method, device, equipment and readable storage medium, it is related to the technical field of vehicle battery management, the method includes steps S10: the timing state of clock unit is acquired;Step S20: based on the timing state of clock unit, judge whether to satisfy the wake-up source configuration condition of input-output unit;Step S30: if satisfying the wake-up source configuration condition of input-output unit, control input-output unit to execute wake-up source configuration, and enter hibernation state after completing configuration, control power management unit and microcontroller enter low-power mode.Specifically, the embodiment of the application adds judging step S20, this step evaluates the state of clock unit, and decides execution path according to the evaluation result, can safely and reliably enter low-power hibernation state, while guaranteeing being woken up at any time, improve the reliability of battery management system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the technical field of vehicle battery management, and particularly to a vehicle battery management method, apparatus, device, and readable storage medium. Background Technology

[0002] With the increasing popularity of new energy vehicles, the reliability and energy consumption control of low-voltage lithium battery management systems (LBMS) are receiving growing attention. To reduce static power consumption when the vehicle is stationary, the LBMS needs to enter a low-power sleep mode after the vehicle is turned off. A typical sleep process usually relies on the successful setting and normal wake-up of the system's real-time clock (RTC) module. Ideally, after the system receives the vehicle's sleep command, the RTC module completes the wake-up time setting and enters sleep mode. Subsequently, the general purpose input / output (GPIO) modules configure the wake-up source and then enter sleep mode. Finally, the power management (POWER) module controls the entire system to enter a low-power state.

[0003] However, in practical applications, if the RTC module malfunctions during the sleep preparation phase and the system terminates the sleep process due to the RTC malfunction, the static power consumption will remain high, which may lead to battery depletion. If the system ignores the RTC state and directly enters deep sleep, the vehicle may be unable to power on, unlock, or start due to the GPIO module failing to configure a valid wake-up source correctly, resulting in low reliability. Summary of the Invention

[0004] This invention provides a vehicle battery management method, apparatus, device, and readable storage medium to solve the technical problem of low reliability in vehicle battery management systems during dormancy.

[0005] In a first aspect, a vehicle battery management method is provided, including the following steps: Step S10: Obtain the timing status of the clock unit; Step S20: Based on the timing state of the clock unit, determine whether the wake-up source configuration conditions of the input / output unit are met; Step S30: If the wake-up source configuration conditions of the input / output unit are met, control the input / output unit to perform wake-up source configuration, and enter the sleep state after the configuration is completed, and control the power management unit and the microcontroller to enter the low power mode.

[0006] In some embodiments, the step of obtaining the timing state of the clock unit includes the following steps: Step S110: Determine whether the number of timeouts of the clock unit's counter within the preset time window exceeds a preset threshold; Step S120: If yes, then it is determined that the wake-up source configuration conditions of the input / output unit are met; Step S130: If not, control the clock unit to set the wake-up time and determine that the wake-up source configuration conditions of the input / output unit are met.

[0007] In some embodiments, the step of controlling the clock unit to set the wake-up time and determining whether the wake-up source configuration conditions of the input / output unit are met, if not, further includes: If the clock unit fails to set the wake-up time, the clock unit is initialized and the process returns to step S110.

[0008] In some embodiments, the preset time window is 800-1200 milliseconds.

[0009] In some embodiments, the preset threshold is 3-5 times.

[0010] In some embodiments, the step of controlling the input / output unit to perform wake-up source configuration if the wake-up source configuration conditions of the input / output unit are met, and entering a sleep state after the configuration is completed, includes the following steps: Turn off the LED indicator pin; Configure the CAN wake-up pin to interrupt on the falling edge; Configure the rising edge interrupt for the hardwired wake-up pin; Configure the rising edge interrupt on the RTC wake-up pin; Configure the AFE current pin to interrupt on the rising edge.

[0011] In some embodiments, after the step of obtaining the timing state of the clock unit, the method further includes: filtering the timing state.

[0012] Secondly, a vehicle battery management device is provided, comprising: The acquisition unit is used to acquire the timing status of the clock unit; The judgment unit is used to determine whether the wake-up source configuration conditions of the input / output unit are met based on the timing state of the clock unit. The first execution unit is used to control the input / output unit to perform wake-up source configuration when the wake-up source configuration conditions of the input / output unit are met, and to enter a sleep state after the configuration is completed. The second execution unit is used to control the power management unit and the microcontroller to enter a low-power mode after the input / output unit enters sleep mode.

[0013] Thirdly, a computer device is provided, comprising: a memory and a processor, wherein the memory stores at least one instruction, the at least one instruction being loaded and executed by the processor to implement the aforementioned vehicle battery management method.

[0014] Fourthly, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions, which, when executed by a computer, cause the computer to perform the aforementioned vehicle battery management method.

[0015] The beneficial effects of the technical solution provided by this invention include: This invention provides a vehicle battery management method, apparatus, device, and readable storage medium. The vehicle battery management method includes step S10: acquiring the timing state of a clock unit; step S20: determining whether the wake-up source configuration conditions of the input / output unit are met based on the timing state of the clock unit; and step S30: if the wake-up source configuration conditions of the input / output unit are met, controlling the input / output unit to perform wake-up source configuration, and entering a sleep state after completing the configuration, controlling the power management unit and microcontroller to enter a low-power mode. Specifically, this invention adds a judgment step S20, which evaluates the state of the clock unit and determines the execution path based on the evaluation result. Even if the clock unit malfunctions, as long as the wake-up source configuration conditions are met, the input / output unit will still be prioritized to perform the complete wake-up source configuration S30. This ensures that at least one reliable wake-up capability is available before entering a low-power state, avoiding the absolute dependence of the clock unit on the traditional sleep process. This prevents the extreme situations of high-power operation or deadlock when the clock unit malfunctions, ensuring the ability to autonomously handle clock unit malfunctions, safely and reliably entering a low-power sleep state, and ensuring that it can be woken up at any time, thus improving the reliability of the battery management system. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 A flowchart of a vehicle battery management method provided in an embodiment of the present invention; Figure 2 A schematic diagram of a vehicle battery management device provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of a computer device provided in an embodiment of the present invention. Detailed Implementation

[0018] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, 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, 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.

[0019] This invention provides a vehicle battery management method, apparatus, device, and readable storage medium, which can solve the technical problem of low reliability in vehicle battery management systems during dormancy.

[0020] See Figure 1 As shown, an embodiment of the present invention provides a vehicle battery management method, including the following steps: Step S10: Obtain the timing state of the clock unit; Step S20: Based on the timing state of the clock unit, determine whether the wake-up source configuration conditions of the input / output unit are met; Step S30: If the wake-up source configuration conditions of the input / output unit are met, control the input / output unit to perform wake-up source configuration, and enter a sleep state after completing the configuration, and control the power management unit and microcontroller to enter a low-power mode. Specifically, the embodiment of the present invention adds a judgment step S20, which evaluates the state of the clock unit and determines the execution path based on the evaluation result. Even if the clock unit is abnormal, as long as the wake-up source configuration conditions are met, the input / output unit will still be controlled to perform the complete wake-up source configuration S30 first, thereby ensuring that at least one reliable wake-up capability is available before entering the low-power state. This avoids the absolute dependence of the traditional sleep process on the clock unit, and prevents the extreme situation of high-power operation or sleep-dead disconnection when the clock unit is abnormal. It ensures the ability to autonomously handle clock unit abnormalities, can safely and reliably enter the low-power sleep state, and can be woken up at any time, thereby improving the reliability of the battery management system.

[0021] This invention provides a vehicle battery management method, comprising the following steps: S10: acquiring the timing state of a clock unit; S20: determining, based on the timing state of the clock unit, whether the wake-up source configuration conditions of the input / output unit are met; and S30: if the wake-up source configuration conditions of the input / output unit are met, controlling the input / output unit to perform wake-up source configuration, and entering a sleep state after configuration, and controlling the power management unit and microcontroller to enter a low-power mode. Specifically, this invention adds a judgment step S20, which evaluates the state of the clock unit and determines the execution path based on the evaluation result. Even if the clock unit malfunctions, as long as the wake-up source configuration conditions are met, the input / output unit will still be prioritized to execute the complete wake-up source configuration S30. This ensures at least one reliable wake-up capability before entering a low-power state, avoiding the absolute dependence of the clock unit on the traditional sleep process. This prevents the clock unit from falling into extreme situations of high-power operation or complete sleep and disconnection when it malfunctions, ensuring the ability to autonomously handle clock unit malfunctions, safely and reliably entering a low-power sleep state, and guaranteeing that it can be woken up at any time, thus improving the reliability of the battery management system.

[0022] As an optional implementation, in one embodiment of the invention, step S10 of obtaining the timing status of the clock unit includes the following steps: Step S110: Determine whether the number of timeouts of the clock unit's counter within a preset time window exceeds a preset threshold; Step S120: If yes, determine that the wake-up source configuration conditions of the input / output unit are met; Step S130: If no, control the clock unit to set the wake-up time and determine that the wake-up source configuration conditions of the input / output unit are met. Specifically, this embodiment of the invention improves the intelligence of the sleep process by introducing a quantitative anomaly detection and automatic decision-making mechanism. Step 110 identifies the intermittent or continuous anomaly of the clock unit by determining whether the number of timeouts of the clock unit's counter within a preset time window exceeds a preset threshold. This not only detects the complete failure of the clock unit but also captures its unstable working state. When the determination is yes, step 120 directly determines that the conditions are met and directly enters the wake-up source configuration process. When the determination is no, step 130 attempts to set the wake-up time of the clock unit and automatically selects a feasible sleep path based on a clear numerical threshold, so that when the clock unit experiences different degrees of anomalies, it can reliably guide the system to a safe sleep state.

[0023] As an optional implementation, in one embodiment of the invention, the step of controlling the clock unit to set the wake-up time and determining whether the wake-up source configuration conditions of the input / output unit are met, if the clock unit fails to set the wake-up time, then initialize the clock unit and return to step S110. Specifically, the fault recovery and retry mechanism added in step 130 improves the fault tolerance of the system. When the first attempt to control the clock unit to set the wake-up time fails, it does not directly determine that the conditions are not met or enter an error state, but performs the operation of initializing the clock unit to try to repair potential faults, and then automatically returns to step 110 to re-evaluate the state. That is, firstly, the state is screened by the threshold judgment in step 110. If the screening passes but the specific setting fails, then the initialization is used to repair and the screening is performed again, ensuring that the entire hibernation process can eventually reach a certain and safe state exit through internal loop drive even when facing an unstable clock unit, thereby enhancing the reliability of the system in complex environments and the guarantee of completing the hibernation task.

[0024] As an optional implementation, in one embodiment of the invention, the preset time window is 800-1200 milliseconds. Specifically, by limiting the preset time window to 800-1200 milliseconds, a reasonable judgment scale is provided for clock unit anomaly detection, which facilitates the effective distinction between normal timing fluctuations of the clock unit and real functional anomalies, ensuring the accuracy of the system's sleep judgment under real operating conditions.

[0025] As an optional implementation, in one embodiment of the invention, the preset threshold is 3-5 times. Specifically, this threshold range can accurately distinguish between accidental interference and persistent faults, achieving a balance between avoiding false triggers and ensuring timely response, thereby ensuring the timeliness and accuracy of subsequent process switching and improving decision reliability.

[0026] As an optional implementation, in one embodiment of the invention, the step of controlling the input / output unit to perform wake-up source configuration and enter sleep state after the configuration is completed, if the wake-up source configuration conditions of the input / output unit are met, includes the following steps: turning off the LED indicator pin; configuring the falling edge interrupt of the CAN wake-up pin; configuring the rising edge interrupt of the hard-wired wake-up pin; configuring the rising edge interrupt of the RTC wake-up pin; and configuring the rising edge interrupt of the AFE current pin. Specifically, the LED indicator pin is turned off: after the setting is completed, the LED indicator pin is in the off state, and there will be no accidental triggering of the light due to the wake-up source setting process, thus avoiding interference with the system's low-power state judgment. Multiple types of wake-up interrupts are effective: CAN wake-up pin falling edge interrupt: when the CAN wake-up pin detects a voltage falling edge signal, it will trigger an interrupt to wake up the system, which is suitable for CAN bus communication wake-up scenarios. Hard-wired wake-up pin rising edge interrupt: when the hard-wired wake-up pin captures a rising edge signal, it will trigger an interrupt, which can wake up the system through physical buttons, external hard-wired signals, etc. RTC wake-up pin rising edge interrupt: when the RTC (real-time clock) module generates a rising edge signal, it will trigger an interrupt, supporting timed wake-up functions, such as waking up the device according to a preset time period. AFE Current Pin Rising Edge Interrupt: The AFE (Analog Front End) current pin triggers an interrupt when it detects a change in the rising edge of the current. This can be used to monitor changes in device current and to wake up from abnormal current conditions or specific current states. After completing the above settings, the system will enter a low-power standby state that can be woken up by the above signals. When any wake-up source triggers an interrupt, the system can switch from low-power mode to operating mode. This combination ensures that, regardless of whether the clock unit is working normally or is determined to be bypassed due to an anomaly, the system has established at least one, and usually multiple, parallel, effective wake-up paths before hibernation. This completely eliminates the risk of the system freezing due to a missing or improperly configured wake-up source, improving the reliability and security of the hibernation state.

[0027] As an optional implementation, in one embodiment of the invention, after the step of acquiring the timing state of the clock unit, a filtering process is further included for the timing state. In this embodiment of the invention, by adding a filtering process after acquiring the timing state of the clock unit, anti-interference preprocessing is provided for subsequent state judgment, thereby improving the stability and accuracy of system decision-making.

[0028] This invention also provides a vehicle battery management device, see [link to relevant documentation]. Figure 2As shown, the system includes an acquisition unit, a judgment unit, a first execution unit, and a second execution unit. The acquisition unit acquires the timing status of the clock unit; the judgment unit determines whether the wake-up source configuration conditions of the input / output unit are met based on the timing status of the clock unit; the first execution unit controls the input / output unit to perform wake-up source configuration when the wake-up source configuration conditions are met, and enters a sleep state after configuration is completed; the second execution unit controls the power management unit and the microcontroller to enter a low-power mode after the input / output unit enters sleep mode. By modularly designing the core process flow into hardware logic or dedicated software units, the sleep control decision-making process becomes more efficient, stable, and easy to integrate, effectively improving the deployment reliability and real-time response capability of the battery management system in mass-produced vehicles.

[0029] This invention also provides a computer device, such as... Figure 3 As shown, the computer device includes a memory and a processor. The memory stores at least one instruction, which is loaded and executed by the processor to implement the aforementioned vehicle battery management method. The processor can be a CPU, or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, etc. The general-purpose processor can be a microprocessor, or any conventional processor. The processor is the control center of the computer device, connecting various parts of the entire computer device through various interfaces and lines.

[0030] Memory can be used to store computer programs and / or modules. The processor implements various functions of the computer device by running or executing the computer programs and / or modules stored in the memory, and by accessing data stored in the memory. Memory can mainly include a program storage area and a data storage area. The program storage area can store the operating system, application programs required for at least one function (such as video playback, image playback, etc.), etc.; the data storage area can store data created based on the use of the mobile phone (such as video data, image data, etc.). In addition, memory can include high-speed random access memory, and can also include non-volatile memory, such as hard disks, RAM, plug-in hard disks, SmartMedia Cards (SMC), Secure Digital (SD) cards, Flash Cards, at least one disk storage device, flash memory device, or other volatile solid-state storage devices.

[0031] In one embodiment of the invention, the processor is used to run a computer program stored in a memory to perform the following steps: Step S10: Obtain the timing status of the clock unit; Step S20: Based on the timing state of the clock unit, determine whether the wake-up source configuration conditions of the input / output unit are met; Step S30: If the wake-up source configuration conditions of the input / output unit are met, control the input / output unit to perform wake-up source configuration, and enter the sleep state after the configuration is completed, and control the power management unit and the microcontroller to enter the low power mode.

[0032] Specifically, this embodiment of the invention adds a judgment step S20, which evaluates the state of the clock unit and determines the execution path based on the evaluation result. Even if the clock unit is abnormal, as long as the wake-up source configuration conditions are met, the input / output unit will still be prioritized to execute the complete wake-up source configuration S30. This ensures that at least one reliable wake-up capability is available before entering the low-power state, avoiding the absolute dependence of the traditional sleep process on the clock unit. This prevents the clock unit from falling into extreme situations such as high-power operation or sleep-dead disconnection when it is abnormal, ensuring the ability to autonomously handle clock unit abnormalities, safely and reliably enter the low-power sleep state, and ensuring that it can be woken up at any time, thus improving the reliability of the battery management system.

[0033] This invention also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements all or part of the steps of the aforementioned vehicle battery management method.

[0034] The embodiments of the present invention can implement all or part of the aforementioned processes, or they can be accomplished by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various methods described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium can be appropriately added to or subtracted according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electrical carrier signals and telecommunication signals.

[0035] In the description of this invention, it should be noted that the terms "upper," "lower," etc., indicating the orientation or positional relationship are based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the invention. Unless otherwise expressly specified and limited, the terms "installed," "connected," and "linked" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication between two elements. For those skilled in the art, the specific meaning of the above terms in this invention can be understood according to the specific circumstances.

[0036] It should be noted that in this invention, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0037] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features of the invention herein.

Claims

1. A vehicle battery management method, characterized by, include: Step S10: Obtain the timing status of the clock unit; Step S20: Based on the timing state of the clock unit, determine whether the wake-up source configuration conditions of the input / output unit are met; Step S30: If the wake-up source configuration conditions of the input / output unit are met, control the input / output unit to perform wake-up source configuration, and enter the sleep state after the configuration is completed, and control the power management unit and the microcontroller to enter the low power mode.

2. The vehicle battery management method of claim 1, wherein, The step of obtaining the timing status of the clock unit includes the following steps: Step S110: Determine whether the number of timeouts of the clock unit's counter within the preset time window exceeds a preset threshold; Step S120: If yes, then it is determined that the wake-up source configuration conditions of the input / output unit are met; Step S130: If not, control the clock unit to set the wake-up time and determine that the wake-up source configuration conditions of the input / output unit are met.

3. The vehicle battery management method of claim 2, wherein, If not, the step of controlling the clock unit to set the wake-up time and determining whether the wake-up source configuration conditions of the input / output unit are met further includes: If the clock unit fails to set the wake-up time, the clock unit is initialized and the process returns to step S110.

4. The vehicle battery management method of claim 2, wherein: The preset time window is 800-1200 milliseconds.

5. The vehicle battery management method of claim 2, wherein: The preset threshold is 3-5 times.

6. The vehicle battery management method of claim 2, wherein The step of controlling the input / output unit to perform wake-up source configuration if the wake-up source configuration conditions of the input / output unit are met, and then entering a sleep state after the configuration is completed, includes the following steps: Turn off the LED indicator pin; Configure the CAN wake-up pin to interrupt on the falling edge; Configure the rising edge interrupt for the hardwired wake-up pin; Configure the rising edge interrupt on the RTC wake-up pin; Configure the AFE current pin to interrupt on the rising edge.

7. The vehicle battery management method of claim 1, wherein After the step of obtaining the timing state of the clock unit, the method further includes: filtering the timing state.

8. A vehicle battery management device, characterized by, include: The acquisition unit is used to acquire the timing status of the clock unit; The judgment unit is used to determine whether the wake-up source configuration conditions of the input / output unit are met based on the timing state of the clock unit. The first execution unit is used to control the input / output unit to perform wake-up source configuration when the wake-up source configuration conditions of the input / output unit are met, and to enter a sleep state after the configuration is completed. The second execution unit is used to control the power management unit and the microcontroller to enter a low-power mode after the input / output unit enters sleep mode.

9. A computer device, characterized in that, include: A memory and a processor, wherein the memory stores at least one instruction, which is loaded and executed by the processor to implement a vehicle battery management method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions that, when executed by a computer, cause the computer to perform a vehicle battery management method according to any one of claims 1 to 7.