A method and device for charging a battery and a computer readable storage medium

By acquiring data from electric heavy-duty trucks at preset intervals, determining voltage values, and activating the VCU, BMS, and DCDC for recharging under user commands, the problem of battery depletion in electric heavy-duty trucks is solved, achieving automatic recharging and power consumption optimization.

CN114665554BActive Publication Date: 2026-05-29ANHUI HUALING AUTOMOBILE

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ANHUI HUALING AUTOMOBILE
Filing Date
2022-03-31
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

Electric heavy trucks are prone to battery depletion after prolonged parking. Current methods only detect this when starting the vehicle, resulting in the inability to use the vehicle in emergencies and the need to charge it manually or wait for roadside assistance from a 4S shop.

Method used

Vehicle data is acquired through a preset cycle to determine the battery voltage value. If the voltage is below the threshold, an alarm message is output and a user command is received. If the command is to charge the battery, the VCU, BMS, and DC-DC converter are activated to charge the battery. The cycle and number of times are optimized to reduce power consumption.

Benefits of technology

This avoids users discovering low battery only when starting the vehicle, reduces power consumption, improves user experience, and ensures the battery is automatically recharged when necessary.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114665554B_ABST
    Figure CN114665554B_ABST
Patent Text Reader

Abstract

The application discloses a battery power supplement method and device and a computer readable storage medium, and relates to the technical field of new energy sources. Vehicle data is acquired according to a preset period, and it is judged whether the voltage value is lower than a preset threshold value; if yes, an alarm information is output to a user, and a user instruction is received; if the instruction is a power supplement instruction, a VCU, a BMS and a DCDC are started, a high-voltage instruction is sent to the BMS through the VCU, high voltage is output to the DCDC through the BMS, a power supplement voltage is obtained, and the battery is powered according to the power supplement voltage. It can be seen that the alarm information is output when the voltage value of the battery is lower than the preset threshold value, and the VCU, the BMS and the DCDC are started to power the battery when the instruction of the user is the power supplement instruction, so that the situation that the user can only find that the battery power is insufficient when starting the vehicle is avoided, and the VCU, the BMS and the DCDC are started only when the battery is powered, so that the power consumption is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of new energy technology, and in particular to a method, apparatus and computer-readable storage medium for replenishing a battery. Background Technology

[0002] With the development of intelligent and connected vehicles, electric heavy-duty trucks are equipped with more and more electronic devices. This increased use of electrical components in electric heavy-duty trucks can lead to battery depletion when the truck is parked for extended periods. Currently, the solution to this problem is only apparent when the user starts the vehicle. This means that in urgent situations, the user cannot use the vehicle and must either jump-start it or wait for roadside assistance from an Automobile Sales Service Shop (4S).

[0003] In view of the above-mentioned technical problems, finding a method for battery charging is a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0004] The purpose of this application is to provide a method, apparatus, and computer-readable storage medium for replenishing a storage battery.

[0005] To address the aforementioned technical problems, this application provides a method for replenishing a storage battery, comprising:

[0006] Vehicle data is acquired according to a preset cycle, wherein the vehicle data includes at least the voltage value of the battery;

[0007] Determine whether the voltage value is lower than a preset threshold;

[0008] If so, output alarm information to the user and receive instructions from the user;

[0009] If the instruction is a power replenishment instruction, then the VCU, BMS, and DC-DC converter are activated to send a high-voltage instruction to the BMS through the VCU, and output high voltage to the DC-DC converter through the BMS to obtain a power replenishment voltage, and replenish the battery according to the power replenishment voltage.

[0010] Preferably, if the voltage value is not lower than the preset threshold, the method further includes:

[0011] Determine whether the voltage value is lower than a threshold, wherein the threshold is greater than a preset threshold;

[0012] If so, output the battery status information to the user, adjust the preset period to the first preset period, and return to the step of obtaining vehicle data according to the preset period, wherein the first preset period is less than the preset period;

[0013] If not, return to the step of obtaining vehicle data according to the preset period.

[0014] Preferably, if the instruction is not the power-up instruction, it further includes:

[0015] Adjust the preset period to the first preset period, and return to the step of obtaining vehicle data according to the preset period;

[0016] Obtain the number of times the alarm message was sent;

[0017] Determine whether the number of attempts has reached the preset number;

[0018] If so, adjust the first preset period to the second preset period and return to the step of obtaining vehicle data according to the preset period, wherein the second preset period is greater than the first preset period.

[0019] Preferably, after replenishing the battery according to the replenishment voltage, the method further includes:

[0020] Determine whether the voltage value is greater than the threshold.

[0021] If so, stop power supply and send a hibernation command to the VCU, the BMS, and the DC-DC converter;

[0022] If not, continue to recharge.

[0023] Preferably, after the continued power replenishment, the method further includes:

[0024] Obtain the charging duration;

[0025] Determine whether the charging time meets the preset time.

[0026] If so, stop power supply and send the hibernation command to the VCU, the BMS, and the DC-DC converter;

[0027] If not, continue to recharge.

[0028] Preferably, after the power supply is stopped, the method further includes:

[0029] Obtain the temperature of the DC-DC converter;

[0030] Determine whether the temperature is greater than the preset temperature;

[0031] If so, control the water pump to cool the DC-DC converter.

[0032] Preferably, obtaining the compensation voltage includes:

[0033] An enable command is sent to the DC-DC converter so that the DC-DC converter converts the high voltage to a low voltage.

[0034] To address the aforementioned technical problems, this application also provides a battery charging device, comprising:

[0035] The acquisition module is used to acquire vehicle data according to a preset period, wherein the vehicle data includes at least the voltage value of the battery;

[0036] The judgment module is used to determine whether the voltage value is lower than a preset threshold; if so, it triggers the output module.

[0037] The output module is used to output alarm information to the user and receive instructions from the user;

[0038] The startup module is used to start the VCU, BMS, and DC-DC converter if the instruction is a power replenishment instruction. The VCU sends a high-voltage instruction to the BMS, and the BMS outputs a high voltage to the DC-DC converter to obtain a power replenishment voltage. The battery is then replenished with power based on the power replenishment voltage.

[0039] To solve the above-mentioned technical problems, this application also provides a battery charging device, including a memory for storing computer programs;

[0040] A processor, used to execute the computer program to implement the steps of the battery charging method as described above.

[0041] To address the aforementioned technical problems, this application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the battery charging method described above.

[0042] This application provides a battery charging method that acquires vehicle data at a preset cycle, including at least the battery voltage value; determines whether the voltage value is below a preset threshold; if so, outputs an alarm message to the user and receives a user command; if the command is a charging command, activates the VCU, BMS, and DC-DC converter to send a high-voltage command to the BMS via the VCU, and outputs high voltage to the DC-DC converter via the BMS to obtain a charging voltage, and charges the battery according to the charging voltage. Therefore, this method outputs an alarm message when the battery voltage is below a preset threshold and activates the VCU, BMS, and DC-DC converter to charge the battery when the user command is a charging command, avoiding situations where the user only discovers the low battery power when starting the vehicle. Furthermore, activating the VCU, BMS, and DC-DC converter only during charging reduces power consumption.

[0043] Based on this, this application also provides a battery charging device and a computer-readable storage medium, which have the same beneficial effects as the battery charging method. Attached Figure Description

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

[0045] Figure 1 A flowchart illustrating a battery charging method provided in an embodiment of this application;

[0046] Figure 2 A structural diagram of a battery charging device provided in an embodiment of this application;

[0047] Figure 3 This is a structural diagram of a battery charging device provided in another embodiment of this application. Detailed Implementation

[0048] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of this application.

[0049] The core of this application is to provide a method, apparatus, and computer-readable storage medium for replenishing a storage battery. The VCU, BMS, and DC-DC converter are respectively a vehicular communication unit (VCU), a battery management system (BMS), and a direct current converter (DCDC).

[0050] To enable those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0051] Figure 1 A flowchart illustrating a battery charging method provided in this application embodiment is shown below. Figure 1 As shown, the battery charging method includes the following steps.

[0052] S10: Acquire vehicle data according to a preset cycle.

[0053] S11: Determine if the voltage value is lower than the preset threshold. If so, proceed to step S12.

[0054] S12: Output alarm information to the user and receive user commands.

[0055] S13: If the instruction is a power replenishment instruction, the VCU, BMS and DCDC are started to send a high voltage instruction to the BMS through the VCU and output high voltage to the DCDC through the BMS to obtain the power replenishment voltage, and the battery is replenished according to the power replenishment voltage.

[0056] It is understandable that with the development of intelligent connected vehicles, electric heavy-duty trucks are equipped with more and more electronic devices. Due to the increased electrical components in electric heavy-duty trucks, battery depletion can occur when the truck is parked for extended periods. Currently, the solution to this problem is only apparent when the user starts the vehicle, meaning that in urgent situations, the user cannot use the vehicle and must either jump-start it or wait for roadside assistance. Therefore, this paper proposes a battery charging method. As described in step S10, vehicle data is acquired according to a preset cycle. This embodiment does not limit the preset cycle; it can be 5 hours or 2 hours, as long as vehicle data is acquired after a certain period. As a preferred implementation, this embodiment uses a preset cycle of 5 hours. Furthermore, the vehicle data includes at least, but is not limited to, the battery voltage value. The specific content of the vehicle data can be set according to the specific implementation.

[0057] Step S11 mentions determining whether the voltage value is lower than a preset threshold. This embodiment does not limit the specific value of the preset threshold; it can be set according to the specific vehicle model. It is understood that the battery's charge level can be determined based on its voltage value. When the battery voltage is too low, it is determined that the battery needs to be replenished. As a preferred embodiment, the preset voltage can be set to 22.5V. That is, when the battery voltage is lower than 22.5V, step S12 is executed. Step S12 mentions outputting alarm information to the user and receiving user commands. The alarm information is not limited; it can be whether to automatically charge or whether the current charge is too low. The goal is to inform the user that the current charge is low. The method of sending the alarm information is also not limited; it can be sent to the user's email address or uploaded to a local server, and the user can view it through mobile software. This embodiment does not impose any limitations and the choice can be made according to the specific implementation method. Furthermore, the user's command can be a charging command (automatic charging) or a non-charging command; this is not limited.

[0058] As mentioned in step S13, if the command is a power replenishment command, the VCU, BMS, and DC-DC converter are activated. The VCU sends a high-voltage command to the BMS, and the BMS outputs high voltage to the DC-DC converter to obtain the power replenishment voltage. The battery is then recharged based on this voltage. When the user's command is a power replenishment command, the VCU, BMS, and DC-DC converter are awakened. The VCU sends a high-voltage command to the BMS, which controls the high-voltage relay of the power battery to close and output high voltage to the DC-DC converter. Then, the VCU sends a function enable command to the DC-DC converter, which performs DC-to-DC step-down processing to recharge the battery.

[0059] This embodiment provides a battery charging method that acquires vehicle data at a preset cycle, including at least the battery voltage value; determines whether the voltage value is below a preset threshold; if so, outputs an alarm message to the user and receives a user command; if the command is a charging command, activates the VCU, BMS, and DC-DC converter to send a high-voltage command to the BMS via the VCU, and outputs high voltage to the DC-DC converter via the BMS to obtain a charging voltage, and charges the battery according to the charging voltage. Therefore, this method outputs an alarm message when the battery voltage is below a preset threshold and activates the VCU, BMS, and DC-DC converter to charge the battery when the user command is a charging command, avoiding situations where the user only discovers the low battery power when starting the vehicle. Furthermore, activating the VCU, BMS, and DC-DC converter only during charging reduces power consumption.

[0060] In a specific embodiment, when the battery charge is not low, there may be a situation where the voltage value is not lower than a preset threshold. Considering the occurrence of this situation, this embodiment proposes a case where the voltage value is not lower than the preset threshold. When it is determined that the voltage value is not lower than the preset threshold, it is then determined whether the voltage value is lower than the threshold. If the threshold is greater than the preset threshold, the battery status information is output to the user, and the preset period is adjusted to the first preset period. The process then returns to the step of obtaining vehicle data according to the preset period, where the first preset period is less than the preset period. If not, the process returns to the step of obtaining vehicle data according to the preset period.

[0061] It is understandable that when the voltage value is not lower than a preset threshold, it is still necessary to determine whether the voltage value is lower than the threshold. The threshold is greater than the preset threshold. As mentioned in the above embodiment, when the voltage value is lower than the preset threshold, it indicates that the current battery power is too low and needs to be charged. However, in the situation mentioned in this embodiment, although the voltage is lower than the threshold, charging is not required. Although the power is low, it can still be used. For example, when using a mobile phone, when the battery level is below 20%, the phone will ask if it needs to be charged. When the battery level is below 50% but above 20%, the phone will indicate that the current battery power is low, but will not ask if it needs to be charged; this is merely a warning. The threshold in this embodiment serves the same purpose. When the battery voltage is higher than the preset threshold but lower than the preset threshold, it is necessary to remind the user. This can be achieved by simply sending the current battery status information to the user, that is, informing the user of the current battery power information. This embodiment will not elaborate further on this.

[0062] Furthermore, the preset period is adjusted to a first preset period, and the process returns to the step of acquiring vehicle data according to the preset period, where the first preset period is shorter than the preset period. It is understood that the current battery charge is low but usable; therefore, after reaching this conclusion, the preset period is changed to the first preset period. That is, acquiring vehicle data according to the first preset period is changed until the battery voltage is greater than a threshold or lower than a preset threshold, at which point the first preset period is changed back to the preset period. This embodiment does not limit the first preset period; it only needs to be shorter than the preset period. As a preferred embodiment, this embodiment uses a first preset period of 2 hours.

[0063] In this embodiment, when the voltage value is not lower than a preset threshold, if it is determined that the voltage value is not lower than the preset threshold, then it checks whether the voltage value is lower than the threshold. If so, the battery status information is output to the user, the preset period is adjusted to the first preset period, and the process returns to the step of acquiring vehicle data according to the preset period. If not, the process returns to the step of acquiring vehicle data according to the preset period. It can be seen that this method also considers the case where the voltage value is not lower than the preset threshold and handles this case accordingly, indicating the current battery level to the user.

[0064] In a specific embodiment, there is a situation where the voltage value is determined to be lower than a preset threshold, but the user's instruction is not a power-up instruction. Considering the occurrence of this situation, this embodiment describes the situation where the instruction is not a power-up instruction as follows.

[0065] Adjust the preset cycle to the first preset cycle and return to the step of obtaining vehicle data according to the preset cycle;

[0066] Get the number of times alarm messages were sent;

[0067] Determine if the preset number of attempts has been reached;

[0068] If so, adjust the first preset cycle to the second preset cycle and return to the step of obtaining vehicle data according to the preset cycle, wherein the second preset cycle is longer than the first preset cycle.

[0069] Understandably, when the battery voltage falls below a preset threshold, an alarm message is sent to the user. If the user's command is a charge-up command, the VCU and other controllers will be activated to charge the battery. However, if the user's command is not a charge-up command or the user does not provide a response, the preset cycle is adjusted to the first preset cycle, and the process returns to the step of acquiring vehicle data according to the preset cycle. In other words, when the battery power is too low and the user has not issued a charge-up command, the cycle for acquiring vehicle data changes to the first preset cycle. Furthermore, the number of alarm messages sent is recorded. When the number of alarm messages sent reaches a preset number—that is, when multiple alarm messages are sent to the user consecutively, and the user still has not issued a charge-up command or provided any feedback—the first preset cycle is adjusted to the second preset cycle, and the process returns to the step of acquiring vehicle data according to the preset cycle. The second preset cycle is longer than the first preset cycle.

[0070] This embodiment does not limit the second preset period, as long as it is longer than the first preset period. As a preferred embodiment, the second preset period is 6 hours. That is, when the number of consecutive alarm messages sent reaches the preset number, the period for acquiring vehicle data is changed to the second preset period until the battery voltage is greater than the threshold. In addition, this embodiment does not limit the preset number of times. The preset number of times can be selected according to the specific implementation situation, and can be 3 times or 4 times.

[0071] In this embodiment, when the instruction is not a power-replenishing instruction, the preset period is adjusted to a first preset period, and the process returns to the step of acquiring vehicle data according to the preset period; the number of times alarm information is sent is obtained; it is determined whether the number of times has reached a preset number; if so, the first preset period is adjusted to a second preset period, and the process returns to the step of acquiring vehicle data according to the preset period, wherein the second preset period is greater than the first preset period. It can be seen that this method increases the frequency of reminders to the user when the battery power is too low, and changes the reminder period when the number of reminders becomes excessive, until the battery voltage exceeds a threshold, thus improving the user experience.

[0072] Based on the above embodiments, after replenishing the battery according to the replenishment voltage, the following steps are also included.

[0073] Determine if the voltage value is greater than the threshold.

[0074] If so, stop power supply and send a hibernation command to VCU, BMS, and DC-DC;

[0075] If not, continue to recharge.

[0076] Understandably, replenishing the battery only requires bringing it above a threshold. Therefore, it's necessary to determine if the voltage exceeds the threshold. If so, replenishment can be stopped, and a hibernation command can be sent to the VCU, BMS, and DC-DC converter. Specifically, the VCU sends a stop-operation enable command to the DC-DC converter, and then sends a high-voltage reduction command to the BMS. The BMS then controls the power battery to disconnect the high-voltage output.

[0077] The embodiment provided includes a voltage value determination after power replenishment. When the voltage value exceeds a threshold, power replenishment is stopped, and a sleep command is sent to the VCU, BMS, and DC-DC converter. This reduces power consumption to some extent and does not waste power replenishment resources.

[0078] Based on the above embodiments, battery charging only needs to be usable and does not need to be continuously charged. Therefore, it is also necessary to determine the charging time. Thus, after continuing to charge, it also includes obtaining the charging duration; determining whether the charging duration meets the preset duration; if yes, stopping charging and sending a hibernation command to VCU, BMS and DCDC; if no, continuing to charge.

[0079] It is understandable that the power replenishment time should not be too long. Therefore, it is necessary to obtain the power replenishment duration. When the power replenishment duration meets the preset duration, power replenishment is stopped and a hibernation command is sent to the VCU, BMS, and DCDC. This embodiment does not limit the preset duration; it can be 2 hours or 3 hours, and the preset duration can be set according to the specific implementation situation.

[0080] This embodiment provides a method for obtaining the battery replenishment duration; determining whether the replenishment duration meets the preset duration; if yes, stopping the replenishment and sending a sleep command to the VCU, BMS, and DC-DC converter; if no, continuing the replenishment. This reduces power consumption while also satisfying subsequent battery usage.

[0081] In a specific embodiment, the DC-DC converter, which converts high voltage to low voltage for an extended period, may become overheated. Considering this possibility, this embodiment further includes the following after stopping the power supply:

[0082] Obtain the temperature of DC-DC converter;

[0083] Determine if the temperature is higher than the preset temperature;

[0084] If so, control the water pump to cool down the DC-DC converter.

[0085] It is understandable that when a DC-DC converter operates for an extended period, it will be in a high-temperature state, which can cause significant damage. Therefore, it is necessary to determine whether the temperature of the DC-DC converter exceeds a preset temperature. If so, the water pump should be controlled to cool the DC-DC converter. Furthermore, this embodiment does not limit the preset temperature; it can be selected according to the specific implementation requirements.

[0086] This embodiment provides a method to detect the temperature of the DC-DC converter after power is stopped. If the temperature is too high, the DC-DC converter is cooled down, thus protecting it and improving safety.

[0087] The battery charging method has been described in detail in the above embodiments. This application also provides embodiments of a battery charging device. It should be noted that this application describes the device embodiments from two perspectives: one is based on functional modules, and the other is based on hardware.

[0088] Figure 2 A structural diagram of a battery charging device provided in an embodiment of this application is shown below. Figure 2 As shown, the battery charging device includes:

[0089] The acquisition module 16 is used to acquire vehicle data according to a preset cycle, wherein the vehicle data includes at least the voltage value of the battery;

[0090] The judgment module 17 is used to determine whether the voltage value is lower than a preset threshold. If so, the output module 18 is triggered.

[0091] Output module 18 is used to output alarm information to the user and receive user commands;

[0092] The startup module 19 is used to start the VCU, BMS and DCDC if the instruction is a power replenishment instruction, so as to send the high voltage instruction to the BMS through the VCU and output the high voltage to the DCDC through the BMS to obtain the power replenishment voltage, and replenish the battery according to the power replenishment voltage.

[0093] The battery charging device provided in this embodiment includes an acquisition module, a judgment module, an output module, and a start module. It executes a program for charging the battery. The program acquires vehicle data at a preset cycle, including at least the battery voltage value. It then determines whether the voltage value is below a preset threshold. If so, it outputs an alarm message to the user and receives a user command. If the command is a charging command, it activates the VCU, BMS, and DC-DC converter. The VCU sends a high-voltage command to the BMS, and the BMS outputs high voltage to the DC-DC converter to obtain the charging voltage. The battery is then charged based on this charging voltage. Therefore, this device outputs an alarm message when the battery voltage is below a preset threshold and activates the VCU, BMS, and DC-DC converter to charge the battery when the user's command is a charging command. This avoids situations where the user only discovers the low battery power when starting the vehicle. Furthermore, activating the VCU, BMS, and DC-DC converter only during charging reduces power consumption.

[0094] Figure 3 A structural diagram of a battery charging device provided in another embodiment of this application is shown below. Figure 3 As shown, the battery charging device includes: a memory 20 for storing computer programs;

[0095] The processor 21 is used to execute a computer program to implement the steps of the battery charging method mentioned in the above embodiments.

[0096] The battery charging device provided in this embodiment may include, but is not limited to, smartphones, tablets, laptops, or desktop computers.

[0097] The processor 21 may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor 21 may be implemented using at least one of the following hardware forms: Digital Signal Processor (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor, also known as the Central Processing Unit (CPU), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 21 may integrate a Graphics Processing Unit (GPU), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, the processor 21 may also include an Artificial Intelligence (AI) processor, which is used to handle computational operations related to machine learning.

[0098] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In this embodiment, the memory 20 is used to store at least the following computer program 201, which, after being loaded and executed by the processor 21, is capable of implementing the relevant steps of the battery charging method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, and the storage method may be temporary or permanent storage. The operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include, but is not limited to, data related to the battery charging method.

[0099] In some embodiments, the battery charging device may further include a display screen 22, an input / output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.

[0100] Those skilled in the art will understand that Figure 3 The structure shown does not constitute a limitation on the battery charging device and may include more or fewer components than shown.

[0101] The battery charging device provided in this embodiment includes a memory and a processor. The memory stores a program for the battery charging method, and the processor executes the program. The program acquires vehicle data at a preset cycle, including at least the battery voltage value. It then determines whether the voltage value is below a preset threshold. If so, it outputs an alarm message to the user and receives a user command. If the command is a charging command, it activates the VCU, BMS, and DC-DC converter. The VCU sends a high-voltage command to the BMS, and the BMS outputs high voltage to the DC-DC converter to obtain the charging voltage. The battery is then charged based on this charging voltage. Therefore, this device outputs an alarm message when the battery voltage is below a preset threshold and activates the VCU, BMS, and DC-DC converter to charge the battery when the user's command is a charging command. This avoids the situation where the user only discovers the low battery power when starting the vehicle. Furthermore, activating the VCU, BMS, and DC-DC converter only during charging reduces power consumption.

[0102] Finally, this application also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps described in the above method embodiments.

[0103] It is understood that if the methods in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and executes all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0104] The computer-readable storage medium provided in this embodiment is used to store a computer program. When the program is executed by the processor, it acquires vehicle data according to a preset cycle. The vehicle data includes at least the battery voltage value. It determines whether the voltage value is lower than a preset threshold. If so, it outputs an alarm message to the user and receives a user command. If the command is a charging command, it activates the VCU, BMS, and DC-DC converter to send a high-voltage command to the BMS through the VCU and output high voltage to the DC-DC converter through the BMS to obtain a charging voltage. The battery is then charged based on the charging voltage. Therefore, by outputting an alarm message when the battery voltage is lower than a preset threshold and activating the VCU, BMS, and DC-DC converter to charge the battery when the user command is a charging command, it avoids the situation where the user only discovers the low battery power when starting the vehicle. Furthermore, activating the VCU, BMS, and DC-DC converter only during charging reduces power consumption.

[0105] The foregoing has provided a detailed description of a battery charging method, apparatus, and computer-readable storage medium provided in this application. The various embodiments in the specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section. It should be noted that those skilled in the art can make several improvements and modifications to this application without departing from the principles of this application, and these improvements and modifications also fall within the protection scope of the claims of this application.

[0106] It should also be noted that, in this specification, relational terms such as "first" and "second" are used only 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.

Claims

1. A method for replenishing a storage battery, characterized in that, include: Vehicle data of electric heavy trucks is acquired at preset intervals, wherein the vehicle data includes at least the voltage value of the battery. Determine whether the voltage value is lower than a preset threshold; If the voltage value is lower than the preset threshold, an alarm message is output to the user, and the user's instructions are received; If the voltage value is not lower than the preset threshold, determine whether the voltage value is lower than the threshold, wherein the threshold is greater than the preset threshold; if yes, output the battery status information to the user, adjust the preset period to the first preset period, and return to the step of obtaining vehicle data according to the preset period, wherein the first preset period is less than the preset period; if no, return to the step of obtaining vehicle data according to the preset period. If the instruction is a power replenishment instruction, then the VCU, BMS, and DC-DC are activated to send a high-voltage instruction to the BMS through the VCU, and output high voltage to the DC-DC through the BMS to obtain a power replenishment voltage, and replenish the battery according to the power replenishment voltage; If the instruction is not the power replenishment instruction, adjust the preset period to the first preset period and return to the step of obtaining vehicle data according to the preset period; obtain the number of times the alarm information is sent; determine whether the number of times has reached the preset number; if so, adjust the first preset period to the second preset period and return to the step of obtaining vehicle data according to the preset period, wherein the second preset period is greater than the first preset period.

2. The battery charging method according to claim 1, characterized in that, After replenishing the battery according to the replenishment voltage, the method further includes: Determine whether the voltage value is greater than the threshold. If so, stop power supply and send a hibernation command to the VCU, the BMS, and the DC-DC converter; If not, continue to recharge.

3. The battery charging method according to claim 2, characterized in that, Following the continued power replenishment, the following is also included: Obtain the charging duration; Determine whether the charging time meets the preset time. If so, stop power supply and send the hibernation command to the VCU, the BMS, and the DC-DC converter; If not, continue to recharge.

4. The battery charging method according to claim 2, characterized in that, After the power supply is stopped, the following is also included: Obtain the temperature of the DC-DC converter; Determine whether the temperature is greater than the preset temperature; If so, control the water pump to cool the DC-DC converter.

5. The battery charging method according to claim 1, characterized in that, Obtaining the compensation voltage includes: An enable command is sent to the DC-DC converter so that the DC-DC converter converts the high voltage to a low voltage.

6. A battery charging device, characterized in that, include: The acquisition module is used to acquire vehicle data of electric heavy trucks at preset intervals, wherein the vehicle data includes at least the voltage value of the battery. The judgment module is used to determine whether the voltage value is lower than a preset threshold. If the voltage value is lower than the preset threshold, the output module is triggered to output alarm information to the user and receive the user's command. If the voltage value is not lower than the preset threshold, the module determines whether the voltage value is lower than the threshold, wherein the threshold is greater than the preset threshold. If yes, the output module is triggered to output the battery status information to the user, and the preset period is adjusted to a first preset period, then the module returns to the acquisition module, wherein the first preset period is less than the preset period. If no, the module directly returns to the acquisition module. The output module is used to output alarm information to the user and receive instructions from the user; it is also used to output the status information of the battery to the user. The startup module is used to start the VCU, BMS and DC-DC if the instruction is a power replenishment instruction, so as to send a high voltage instruction to the BMS through the VCU, and output high voltage to the DC-DC through the BMS to obtain a power replenishment voltage, and replenish the battery according to the power replenishment voltage; The judgment module is further configured to, if the instruction is not the power replenishment instruction, adjust the preset period to the first preset period and return to the acquisition module; acquire the number of times the alarm information is sent; determine whether the number of times reaches the preset number; if so, adjust the first preset period to the second preset period and return to the acquisition module, wherein the second preset period is greater than the first preset period.

7. A battery charging device, characterized in that, Includes memory used to store computer programs; A processor, configured to execute the computer program to implement the steps of the battery charging method as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the battery charging method as described in any one of claims 1 to 5.