Charging method and device, computer device, storage medium and computer program product

By detecting vehicle status and battery conditions, and selecting appropriate charging modes and stopping conditions, the problem of high performance loss of backup batteries in existing technologies is solved, and the battery life is improved.

CN115021349BActive Publication Date: 2026-06-02FAW JIEFANG AUTOMOTIVE CO

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
FAW JIEFANG AUTOMOTIVE CO
Filing Date
2022-06-14
Publication Date
2026-06-02

AI Technical Summary

Technical Problem

Existing backup battery charging methods fail to take into account the battery's own condition, resulting in significant performance loss and reduced lifespan.

Method used

By detecting the vehicle's initial ignition state, the initial temperature of the backup battery, and the pre-configured temperature range, it is determined whether the backup battery can be charged; the voltage of the backup battery and the number of changes in the vehicle's ignition state are obtained, and a constant current mode or trickle charging mode is selected for charging; based on the charging mode and temperature range, it is decided whether to stop charging.

Benefits of technology

This reduces the performance loss of backup batteries and extends their lifespan.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115021349B_ABST
    Figure CN115021349B_ABST
Patent Text Reader

Abstract

The application relates to a charging method and device, computer equipment, a storage medium and a computer program product. The method comprises the following steps: after determining that a charging interface of a backup battery establishes a connection, determining whether the backup battery can be charged according to a vehicle initial ignition state, an initial temperature of the backup battery and a pre-configured temperature condition range; in the case of determining that the backup battery can be charged, acquiring a voltage of the backup battery and a duration of the vehicle ignition state; determining a charging mode of the backup battery according to the voltage of the backup battery, a pre-configured voltage condition threshold and the duration of the vehicle ignition state, and controlling the charging of the backup battery according to the charging mode, wherein the charging mode comprises a constant current mode or a trickle current mode; and determining whether to stop charging the backup battery according to the charging mode and the pre-configured temperature condition range. The method can reduce the performance loss of the backup battery and is beneficial to improving the service life of the backup battery.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of automotive electronics technology, and in particular to a charging method, apparatus, computer equipment, storage medium, and computer program product. Background Technology

[0002] In order to meet the requirements of remote emission regulation monitoring and new energy regulation monitoring, heavy-duty commercial vehicles must install a backup battery in the vehicle terminal. The backup battery is powered by the vehicle battery. When the vehicle is started and the vehicle battery stops supplying power, the backup battery is activated to supply power to the vehicle terminal. A good charging method for the backup battery is beneficial to improving the service life of the backup battery.

[0003] Current backup battery charging methods primarily control the charging of backup batteries by detecting the vehicle's load voltage. However, this method does not take into account the battery's own condition, resulting in significant performance degradation of the backup battery. Summary of the Invention

[0004] Therefore, it is necessary to provide a battery charging method, apparatus, computer equipment, computer-readable storage medium, and computer program product that can reduce battery performance loss in order to address the above-mentioned technical problems.

[0005] Firstly, this application provides a charging method. The method includes:

[0006] After confirming that the charging interface of the backup battery has been connected, it is determined whether the backup battery can be charged based on the vehicle's initial ignition status, the initial temperature of the backup battery, and the pre-configured temperature range.

[0007] If it is determined that the backup battery can be charged, the voltage of the backup battery and the number of changes in the vehicle's ignition state are obtained.

[0008] The charging mode of the backup battery is determined based on the voltage of the backup battery, the pre-configured voltage condition threshold, and the number of changes in the vehicle's ignition state. The backup battery is then charged according to the charging mode, which includes constant current mode or trickle mode.

[0009] Determine whether to stop charging the backup battery based on the charging mode and the pre-configured temperature range.

[0010] In one embodiment, the charging mode of the backup battery is determined based on the backup battery voltage, a pre-configured voltage condition threshold, and the number of changes in the vehicle ignition state, including:

[0011] Compare the voltage of the backup battery with the value of a pre-configured voltage condition threshold;

[0012] If the voltage of the backup battery is greater than the pre-configured voltage condition threshold, the charging mode of the backup battery is determined to be trickle mode based on the number of changes in the vehicle ignition state, the preset number of changes, and the preset duration.

[0013] If the voltage of the backup battery is less than or equal to the pre-configured voltage condition threshold, then the charging mode of the backup battery is determined to be constant current mode.

[0014] In one embodiment, the charging mode of the backup battery is determined to be trickle charging mode based on the number of changes in the vehicle ignition state, a preset number of changes, and a preset duration, including:

[0015] If the number of changes in the vehicle's ignition state exceeds the preset number of changes within a preset duration, the charging mode of the backup battery is determined to be trickle charging mode.

[0016] If the vehicle's ignition status remains unchanged, the lifespan of the backup battery is obtained, and it is determined whether the lifespan of the backup battery meets the preset conditions. If the lifespan of the backup battery meets the preset conditions, the charging mode of the backup battery is determined to be trickle charging mode.

[0017] In one embodiment, determining whether to stop charging the backup battery based on the charging mode and a pre-configured temperature range includes:

[0018] If the charging mode is trickle charging, the trickle charging mode is used to control the charging of the backup battery for a first calibrated time. After the first calibrated time, it is determined whether the current temperature of the backup battery is within the pre-configured temperature range. If the current temperature of the backup battery is within the pre-configured temperature range, the process returns to the step of using trickle charging mode to control the charging of the backup battery for the first calibrated time. If the current temperature of the backup battery is not within the pre-configured temperature range, it is determined to stop charging the backup battery.

[0019] If the charging mode is constant current mode, the constant current mode is used to control the charging of the backup battery for a second calibration time. After the second calibration time, it is determined whether the current temperature of the backup battery is within the pre-configured temperature range. If the current temperature of the backup battery is within the pre-configured temperature range, the charging time in constant current mode is obtained, and it is determined whether the charging time is greater than the pre-configured charging time. If the charging time is less than or equal to the pre-configured charging time, the process returns to the step of using constant current mode to control the charging of the backup battery for a second calibration time. If the charging time is greater than the pre-configured charging time, the charging mode is adjusted to trickle mode, and the process returns to the step of using trickle mode to control the charging of the backup battery for a first calibration time. If the current temperature of the backup battery is not within the pre-configured temperature range, it is determined to stop charging the backup battery.

[0020] In one embodiment, the vehicle's initial ignition state includes ignition or ignition off; determining whether the backup battery can be charged based on the vehicle's initial ignition state, the initial temperature of the backup battery, and a pre-configured temperature range includes:

[0021] If the vehicle's initial ignition state is off, it is determined that the backup battery cannot be charged. If the vehicle's initial ignition state is on, it is determined whether the initial temperature of the backup battery is within the pre-configured temperature range.

[0022] If the initial temperature of the backup battery is not within the pre-configured temperature range, it is determined that the backup battery cannot be charged; if the initial temperature of the backup battery is within the pre-configured temperature range, it is determined that the backup battery can be charged.

[0023] In one embodiment, the charging method further includes:

[0024] If the initial temperature of the backup battery is not within the pre-configured temperature range, wait for a preset time and return to the step of determining whether the initial temperature of the backup battery is within the pre-configured temperature range.

[0025] Secondly, this application also provides a charging device. The device includes:

[0026] The condition determination module is used to determine whether the backup battery can be charged after the connection to the backup battery charging interface is established, based on the vehicle's initial ignition state, the initial temperature of the backup battery, and the pre-configured temperature condition range.

[0027] The data acquisition module is used to acquire the voltage of the backup battery and the duration of the vehicle ignition state, provided that it is determined that the backup battery can be charged.

[0028] The charging control module is used to determine the charging mode of the backup battery based on the voltage of the backup battery, the pre-configured voltage condition threshold and the duration of the vehicle ignition state, and to control the charging of the backup battery according to the charging mode. The charging mode includes constant current mode or trickle mode.

[0029] The stop-charging determination module is used to determine whether to stop charging the backup battery based on the charging mode and a pre-configured temperature range.

[0030] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:

[0031] After confirming that the charging interface of the backup battery has been connected, it is determined whether the backup battery can be charged based on the vehicle's initial ignition status, the initial temperature of the backup battery, and the pre-configured temperature range.

[0032] If it is determined that the backup battery can be charged, obtain the voltage of the backup battery and the duration of the vehicle ignition state.

[0033] The charging mode of the backup battery is determined based on the voltage of the backup battery, the pre-configured voltage condition threshold, and the duration of the vehicle ignition state. The backup battery is then charged according to the charging mode, which includes constant current mode or trickle mode.

[0034] Determine whether to stop charging the backup battery based on the charging mode and the pre-configured temperature range.

[0035] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:

[0036] After confirming that the charging interface of the backup battery has been connected, it is determined whether the backup battery can be charged based on the vehicle's initial ignition status, the initial temperature of the backup battery, and the pre-configured temperature range.

[0037] If it is determined that the backup battery can be charged, obtain the voltage of the backup battery and the duration of the vehicle ignition state.

[0038] The charging mode of the backup battery is determined based on the voltage of the backup battery, the pre-configured voltage condition threshold, and the duration of the vehicle ignition state. The backup battery is then charged according to the charging mode, which includes constant current mode or trickle mode.

[0039] Determine whether to stop charging the backup battery based on the charging mode and the pre-configured temperature range.

[0040] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:

[0041] After confirming that the charging interface of the backup battery has been connected, it is determined whether the backup battery can be charged based on the vehicle's initial ignition status, the initial temperature of the backup battery, and the pre-configured temperature range.

[0042] If it is determined that the backup battery can be charged, obtain the voltage of the backup battery and the duration of the vehicle ignition state.

[0043] The charging mode of the backup battery is determined based on the voltage of the backup battery, the pre-configured voltage condition threshold, and the duration of the vehicle ignition state. The backup battery is then charged according to the charging mode, which includes constant current mode or trickle mode.

[0044] Determine whether to stop charging the backup battery based on the charging mode and the pre-configured temperature range.

[0045] The aforementioned charging method, apparatus, computer equipment, storage medium, and computer program products, after establishing a connection with the backup battery's charging interface, provide conditions for determining whether charging is possible based on the vehicle's initial ignition state, the backup battery's initial temperature, and a pre-configured temperature range. This helps protect the backup battery by ensuring it is charged under feasible conditions. When charging is determined to be possible, the system determines the backup battery's charging mode based on the backup battery's voltage, a pre-configured voltage threshold, and the number of times the vehicle's ignition state changes. Charging is then controlled according to this charging mode. This method of using different charging modes to control charging under different backup battery voltage conditions and different numbers of vehicle ignition state changes avoids continuous constant-current charging of the backup battery, reducing performance degradation. Furthermore, the system provides conditions for stopping charging based on the charging mode and a pre-configured temperature range, further reducing performance degradation and extending the backup battery's lifespan. Attached Figure Description

[0046] Figure 1 This is a diagram illustrating the application environment of the charging method in one embodiment;

[0047] Figure 2 A flowchart illustrating a charging method in one embodiment. Figure 1 ;

[0048] Figure 3 A flowchart illustrating a charging method in one embodiment. Figure 2 ;

[0049] Figure 4 This is a schematic diagram of a sub-process of S640 in one embodiment;

[0050] Figure 5 A flowchart illustrating a charging method in one embodiment. Figure 3 ;

[0051] Figure 6 A flowchart illustrating a charging method in one embodiment. Figure 4 ;

[0052] Figure 7 A flowchart illustrating a charging method in one embodiment. Figure 5 ;

[0053] Figure 8 This is a structural block diagram of a charging device in one embodiment;

[0054] Figure 9 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0055] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0056] The charging method provided in this application embodiment can be applied to, for example... Figure 1 In the application environment shown, the vehicle terminal 102 communicates with the vehicle battery 104 and the backup battery 106 via serial ports. The charging interfaces of the vehicle battery 104 and the backup battery 106 are connected, and the vehicle terminal 102 can control the vehicle battery 104 to charge the backup battery 106. A data storage system can store the data that the vehicle terminal 102 needs to process. The data storage system can be integrated into the vehicle terminal 102 or placed in the cloud or on another network server. After establishing a connection between the charging interfaces of the vehicle battery 104 and the backup battery 106, the vehicle terminal 102 determines whether the vehicle battery 104 can charge the backup battery 106 based on the vehicle's initial ignition state, the initial temperature of the backup battery 106, and a pre-configured temperature range. If the vehicle battery 104 can charge the backup battery 106, it acquires the voltage of the backup battery 106 and the number of changes in the vehicle's ignition state. Based on the voltage of the backup battery 106, a pre-configured voltage threshold, and the number of changes in the vehicle's ignition state, it determines the charging mode of the backup battery 106 and controls the vehicle battery 104 to charge the backup battery 106 according to the charging mode. The charging mode includes constant current mode or trickle charging mode. Based on the charging mode and the pre-configured temperature range, it determines whether the vehicle battery 104 should stop charging the backup battery 106. The server can be implemented using a standalone server or a server cluster consisting of multiple servers.

[0057] In one embodiment, such as Figure 2 As shown, a charging method is provided, which is applied to Figure 1 Taking the vehicle-mounted terminal 102 as an example, the explanation includes the following steps:

[0058] After confirming that the charging interface of the backup battery has been connected, the S200 determines whether the backup battery can be charged based on the vehicle's initial ignition status, the initial temperature of the backup battery, and the pre-configured temperature range.

[0059] The backup battery is a rechargeable battery that provides backup power to the vehicle terminal. Normally, the vehicle's main battery powers the terminal; however, if the main battery fails, the backup battery is activated. Backup batteries include, but are not limited to, nickel-metal hydride, nickel-cadmium, and lithium batteries. The vehicle terminal includes a data acquisition unit, a data processing unit, and a control unit. The data acquisition unit collects various vehicle data, and the data processing unit processes this data. The control unit controls the main battery, backup battery, and other equipment. The initial ignition state refers to the vehicle's initial state before or after ignition. This includes either ignition on or off states. Ignition on states include the IG-on state (ignition on), and off states include the IG-off state (ignition off). The pre-configured temperature range is a pre-set temperature range to ensure the backup battery operates normally. After confirming that the charging interfaces of the vehicle battery and the backup battery are connected, the vehicle terminal obtains the initial ignition status of the vehicle and the initial temperature of the backup battery. Based on the initial ignition status of the vehicle, the initial temperature of the backup battery, and the pre-configured temperature range, it determines whether the vehicle battery can charge the backup battery, providing a judgment condition for whether the backup battery can be charged.

[0060] S400, when it is determined that the backup battery can be charged, acquires the voltage of the backup battery and the number of changes in the vehicle's ignition state.

[0061] The backup battery voltage is its open-circuit voltage, which can be measured by a voltage sensor and transmitted to the vehicle terminal. The voltage of a fully charged backup battery is higher than its partially charged voltage. As the backup battery is used, its voltage decreases; as the vehicle battery charges it, its voltage increases. Vehicle ignition status includes ignition and off states. The number of times the vehicle ignition status changes refers to the number of times the vehicle switches between ignition and off states. When the vehicle terminal determines that the vehicle battery can charge the backup battery, it acquires the backup battery voltage and the number of ignition status changes to further control the charging of the backup battery.

[0062] The S600 determines the charging mode of the backup battery based on the backup battery voltage, a pre-configured voltage condition threshold, and the number of times the vehicle's ignition state changes. It then controls the charging of the backup battery according to the charging mode, which includes constant current mode or trickle mode.

[0063] The vehicle-mounted terminal determines the charging mode of the backup battery based on its voltage, a pre-configured voltage threshold, and the number of times the vehicle's ignition state changes. The pre-configured voltage threshold is a pre-set voltage threshold used to determine the appropriate charging mode for the backup battery. The vehicle-mounted terminal controls the charging of the backup battery according to the charging mode, including constant current charging and trickle charging. Constant current charging uses a constant current to charge the backup battery, improving charging efficiency and shortening charging time. Trickle charging uses a small current or alternating small and large current pulses to charge the backup battery, compensating for capacity loss caused by self-discharge after charging, reducing performance degradation, and extending the backup battery's lifespan.

[0064] The S800 determines whether to stop charging the backup battery based on the charging mode and a pre-configured temperature range.

[0065] When the backup battery is charged to a certain level, it is necessary to stop charging the backup battery to avoid continuous charging and performance degradation. The vehicle terminal determines the conditions for stopping charging the backup battery based on the charging mode and the pre-configured temperature range, so as to determine whether the vehicle battery should stop charging the backup battery.

[0066] The aforementioned charging method, after establishing a connection with the backup battery's charging interface, provides conditions for determining whether charging is feasible based on the vehicle's initial ignition state, the backup battery's initial temperature, and a pre-configured temperature range. This helps ensure the backup battery is charged under feasible conditions. When charging is deemed feasible, the method determines the backup battery's charging mode based on its voltage, a pre-configured voltage threshold, and the number of times the vehicle's ignition state changes. Charging is then controlled according to this mode. This method of using different charging modes to control charging under different backup battery voltage conditions and varying numbers of vehicle ignition state changes avoids continuous constant-current charging, reducing performance degradation. Furthermore, the method provides conditions for stopping charging based on the charging mode and a pre-configured temperature range, further reducing performance degradation and extending the backup battery's lifespan.

[0067] In one embodiment, such as Figure 3 As shown, the charging mode of the backup battery is determined based on the backup battery voltage, a pre-configured voltage condition threshold, and the number of changes in the vehicle ignition state, including:

[0068] S620 compares the voltage of the backup battery with the value of a pre-configured voltage condition threshold.

[0069] S640, if the voltage of the backup battery is greater than the pre-configured voltage condition threshold, the charging mode of the backup battery is determined to be trickle mode based on the number of changes in the vehicle ignition state, the preset number of changes, and the preset duration.

[0070] S660: If the voltage of the backup battery is less than or equal to a pre-configured voltage condition threshold, the charging mode of the backup battery is determined to be constant current mode.

[0071] In this embodiment, the preset number of changes is a pre-set number of changes in the vehicle's ignition state, and the preset duration is a pre-set duration for the vehicle's ignition state. These are used to determine the charging mode of the backup battery. The vehicle terminal compares the backup battery voltage with a pre-configured voltage threshold. If the backup battery voltage is greater than the pre-configured voltage threshold, the vehicle terminal determines the backup battery charging mode to be trickle charging based on the number of changes in the vehicle's ignition state, the preset number of changes, and the preset duration. If the backup battery voltage is less than or equal to the pre-configured voltage threshold, the vehicle terminal determines the backup battery charging mode to be constant current charging. For example, when determining that the backup battery can be charged... In the case of battery charging, the voltage of the backup battery is obtained as 50% of the voltage of the backup battery when it is fully charged. The pre-configured voltage condition threshold is 80% of the voltage of the backup battery when it is fully charged. Since the voltage of the backup battery is less than the pre-configured voltage condition threshold, the vehicle terminal determines that the charging mode of the backup battery is constant current mode. For example, if it is determined that the backup battery can be charged, the voltage of the backup battery is obtained as 90% of the voltage of the backup battery when it is fully charged. Since the voltage of the backup battery is greater than the pre-configured voltage condition threshold, the vehicle terminal determines that the charging mode of the backup battery is trickle charging mode based on the number of changes in the vehicle ignition state, the preset number of changes, and the preset duration.

[0072] The above embodiment determines the charging mode of the backup battery as trickle charging when the backup battery voltage is greater than a pre-configured voltage condition threshold, based on the number of changes in the vehicle ignition state, a preset number of changes, and a preset duration. When the backup battery voltage is less than or equal to the pre-configured voltage condition threshold, the charging mode of the backup battery is determined as constant current charging. This method of comparing the backup battery voltage with the pre-configured voltage condition threshold and further determining the backup battery charging mode based on the number of changes in the vehicle ignition state, a preset number of changes, and a preset duration, uses different charging modes for the backup battery, avoiding continuous constant current charging of the backup battery and helping to reduce the performance loss of the backup battery.

[0073] In one embodiment, such as Figure 4 As shown, based on the number of changes in vehicle ignition state, the preset number of changes, and the preset duration, the charging mode for the backup battery is determined to be trickle charging mode, including:

[0074] S642, if the number of changes in the vehicle's ignition state is greater than the preset number of changes within a preset duration, then the charging mode of the backup battery is determined to be trickle charging mode.

[0075] S644, if the vehicle ignition status does not change, the lifespan of the backup battery is obtained, and it is determined whether the lifespan of the backup battery meets the preset conditions; if the lifespan of the backup battery meets the preset conditions, the charging mode of the backup battery is determined to be trickle charging mode.

[0076] In this embodiment, the lifespan of the backup battery refers to its remaining lifespan. A backup battery that has not undergone charging or discharging has a lifespan of 100%. As the number of times the backup battery is charged and discharged increases, its capacity gradually decreases, and its lifespan gradually diminishes until it approaches zero, at which point charging will cease. Within a preset duration, if the number of changes in the vehicle's ignition state exceeds a preset number of changes, the vehicle terminal determines the backup battery's charging mode to be trickle charging. The preset number of changes is greater than or equal to zero. If the vehicle's ignition state does not change, the vehicle terminal obtains the backup battery's lifespan and determines whether the lifespan meets the preset conditions. For example, if the preset duration is 8 hours and the preset number of changes is 1, then within 8 hours, if the number of changes in the vehicle's ignition state exceeds one, the vehicle terminal determines the backup battery's charging mode to be trickle charging. If the vehicle's ignition state does not change, the vehicle terminal obtains the backup battery's lifespan and determines whether the lifespan meets the preset conditions. The preset conditions are conditions pre-set for the lifespan of the backup battery. For example, the preset condition can be greater than 20%. If the vehicle's ignition state remains unchanged and the on-board terminal obtains a backup battery lifespan of 30%, and the backup battery lifespan meets the preset conditions, the on-board terminal determines that the backup battery charging mode is trickle charging. If the backup battery lifespan does not meet the preset conditions, the on-board terminal determines to stop charging the backup battery.

[0077] The solution described above determines the charging mode of the backup battery as trickle charging by comparing the number of changes in the vehicle's ignition state with a preset number of changes within a preset time period. If the number of changes in the vehicle's ignition state exceeds the preset number of changes, the charging mode is directly determined to be trickle charging. If the vehicle's ignition state remains unchanged, the battery's lifespan is determined, and the charging mode is determined to be trickle charging by assessing whether the battery's lifespan meets a preset condition. This method, which determines the charging mode of the backup battery as trickle charging by comparing the number of changes in the vehicle's ignition state with the battery's lifespan within a preset time period, takes into account the battery's lifespan and further reduces battery performance degradation, thus improving the battery's lifespan.

[0078] In one embodiment, such as Figure 5 As shown, based on the charging mode and a pre-configured temperature range, it determines whether to stop charging the backup battery, including:

[0079] S820, if the charging mode is trickle charging mode, the trickle charging mode is used to control the charging of the backup battery for a first calibration time. After the first calibration time, it is determined whether the current temperature of the backup battery is within the pre-configured temperature condition range. If the current temperature of the backup battery is within the pre-configured temperature condition range, the process returns to the step of using trickle charging mode to control the charging of the backup battery for a first calibration time. If the current temperature of the backup battery is not within the pre-configured temperature condition range, it is determined to stop charging the backup battery.

[0080] S840, if the charging mode is constant current mode, then the constant current mode is used to control the charging of the backup battery for a second calibration time. After the second calibration time, it is determined whether the current temperature of the backup battery is within the pre-configured temperature range. If the current temperature of the backup battery is within the pre-configured temperature range, the charging time in constant current mode is obtained, and it is determined whether the charging time is greater than the pre-configured charging time. If the charging time is less than or equal to the pre-configured charging time, the process returns to the step of using constant current mode to control the charging of the backup battery for a second calibration time. If the charging time is greater than the pre-configured charging time, the charging mode is adjusted to trickle mode, and the process returns to the step of using trickle mode to control the charging of the backup battery for a first calibration time. If the current temperature of the backup battery is not within the pre-configured temperature range, then it is determined to stop charging the backup battery.

[0081] In this embodiment, when the charging mode is trickle charging, the vehicle terminal determines whether to stop charging the backup battery based on the pre-configured temperature range and the first calibration time. Specifically, when the charging mode is trickle charging, the vehicle terminal uses trickle charging to control the vehicle battery to charge the backup battery for the first calibration time. After the first calibration time, the vehicle terminal determines whether the current temperature of the backup battery is within the pre-configured temperature range. Since the backup battery temperature may rise due to trickle charging, if the current temperature of the backup battery is within the pre-configured temperature range, the process returns to the step of using trickle charging to control the backup battery to charge for the first calibration time. The vehicle terminal continues to use trickle charging to control the vehicle battery to charge the backup battery for the first calibration time until the current temperature of the backup battery is no longer within the pre-configured temperature range. Then, the vehicle terminal determines that the vehicle battery should stop charging the backup battery. When the charging mode is constant current mode, the vehicle terminal determines whether the vehicle battery should stop charging the backup battery based on pre-configured temperature conditions and a second calibration time. Specifically, in constant current mode, the vehicle terminal uses constant current mode to control the vehicle battery to charge the backup battery for the second calibration time. After the second calibration time, the vehicle terminal determines whether the current temperature of the backup battery is within the pre-configured temperature range. Since the backup battery temperature may rise due to constant current charging, if the current temperature of the backup battery is within the pre-configured temperature range, the vehicle terminal obtains the charging duration in constant current mode. The charging duration in constant current mode is the time from the start of constant current mode control of charging the backup battery to the determination of whether the current temperature of the backup battery is within the pre-configured temperature range. The vehicle terminal determines whether the charging time is greater than the pre-configured charging time. If the charging time is less than or equal to the pre-configured charging time, it returns to the step of using constant current mode to control the charging of the backup battery for the second calibrated time. The vehicle terminal continues to use constant current mode to control the vehicle battery to charge the backup battery for the second calibrated time until the charging time exceeds the pre-configured charging time. Then, it adjusts the charging mode to trickle mode and returns to the step of using trickle mode to control the charging of the backup battery for the first calibrated time. The vehicle terminal continues to use trickle mode to control the vehicle battery to charge the backup battery for the first calibrated time. As the backup battery is charged with constant current, the temperature of the backup battery may continue to rise. If the current temperature of the backup battery is not within the pre-configured temperature range, the vehicle terminal determines that the vehicle battery should stop charging the backup battery.

[0082] The above-described embodiment provides a method for determining whether to stop charging the backup battery based on preset temperature conditions, a first calibration time, and a second calibration time under different charging modes. This provides a judgment condition for stopping the charging of the backup battery, further reducing the performance loss of the backup battery and improving its service life.

[0083] In one embodiment, such as Figure 6 As shown, the vehicle's initial ignition state includes ignition or ignition off; based on the vehicle's initial ignition state, the initial temperature of the backup battery, and the pre-configured temperature range, it is determined whether the backup battery can be charged, including:

[0084] S220: If the vehicle's initial ignition state is off, it is determined that the backup battery cannot be charged; if the vehicle's initial ignition state is on, it is determined whether the initial temperature of the backup battery is within the pre-configured temperature range.

[0085] S240: If the initial temperature of the backup battery is not within the pre-configured temperature range, it is determined that the backup battery cannot be charged; if the initial temperature of the backup battery is within the pre-configured temperature range, it is determined that the backup battery can be charged.

[0086] In this embodiment, the vehicle terminal determines the initial ignition state of the vehicle. If the initial ignition state is off, the vehicle terminal determines that the vehicle battery cannot charge the backup battery. If the initial ignition state is on, the vehicle terminal further determines whether the initial temperature of the backup battery is within the pre-configured temperature range. If the initial temperature of the backup battery is not within the pre-configured temperature range, the vehicle terminal determines that the vehicle battery cannot charge the backup battery. If the initial temperature of the backup battery is within the pre-configured temperature range, the vehicle terminal determines that the vehicle battery can charge the backup battery.

[0087] The above embodiment determines the initial conditions for charging the backup battery by judging the initial ignition state of the vehicle. If the initial ignition state of the vehicle is ignition, it further determines whether the initial temperature of the backup battery is within the pre-configured temperature range. This method of multiple judgments provides the conditions for judging whether the backup battery can be charged, which helps to protect the backup battery from being charged under feasible charging conditions and reduces the performance loss of the backup battery.

[0088] In one embodiment, the charging method further includes:

[0089] If the initial temperature of the backup battery is not within the pre-configured temperature range, wait for a preset time and return to the step of determining whether the initial temperature of the backup battery is within the pre-configured temperature range.

[0090] In this embodiment, if the initial temperature of the backup battery is determined to be outside the pre-configured temperature range, and the vehicle terminal controls the battery to charge the backup battery, it will cause a certain performance loss to the backup battery. After waiting for a preset time, the system returns to the step of determining whether the initial temperature of the backup battery is within the pre-configured temperature range. The process continues until the initial temperature of the backup battery is within the pre-configured temperature range, at which point the vehicle terminal determines that the vehicle battery can charge the backup battery.

[0091] The above embodiment's solution, when the initial temperature of the backup battery is not within the pre-configured temperature range, waits for a preset time and then returns to continue judging whether the initial temperature of the backup battery is within the pre-configured temperature range. This continues until the initial temperature of the backup battery is determined to be within the pre-configured temperature range. At this point, the vehicle terminal determines that the vehicle battery can charge the backup battery. The preset time can be adjusted according to actual conditions, avoiding frequent detection of the initial temperature of the backup battery, reducing performance loss of the backup battery, and improving the service life of the backup battery.

[0092] To illustrate the charging method and its effects in this solution in detail, a specific embodiment is described below. The pre-configured temperature range is 0 to 50°C, the preset duration is 5 minutes, the pre-configured voltage threshold is 5.35 volts, the preset duration is 8 hours, the preset number of changes is 1, the preset condition is greater than 10%, the first calibration time is 10 minutes, the second calibration time is 5 minutes, the pre-configured charging time is 8 hours, and the charging mode includes constant current mode or trickle charging mode. In constant current mode, the vehicle battery outputs a high level to charge the backup battery. In trickle charging mode, the vehicle battery outputs a low level for 58 seconds followed by a high level for 2 seconds to charge the backup battery.

[0093] After confirming the connection between the charging interfaces of the vehicle's main battery and the backup battery, the vehicle terminal acquires the vehicle's initial ignition status and the initial temperature of the backup battery. The vehicle's initial ignition status includes ignition or shutdown. Figure 7The diagram illustrates the charging method. If the vehicle's initial ignition state is off, it is determined that the onboard battery cannot charge the backup battery. If the vehicle's initial ignition state is on, it is determined whether the backup battery's initial temperature is within a pre-configured temperature range. If the backup battery's initial temperature is not within the pre-configured temperature range, it is determined that the onboard battery cannot charge the backup battery. If the backup battery's initial temperature is within the pre-configured temperature range, it is determined that the onboard battery can charge the backup battery. If the backup battery's initial temperature is not within the pre-configured temperature range, a preset time is waited before returning to the step of determining whether the backup battery's initial temperature is within the pre-configured temperature range. Once it is determined that the onboard battery can charge the backup battery... While the backup battery is charging, the system acquires the backup battery voltage and the number of times the vehicle ignition state changes. It then compares the backup battery voltage with a pre-configured voltage threshold. If the backup battery voltage is greater than the pre-configured voltage threshold, and the number of times the vehicle ignition state changes exceeds a preset number of changes within a preset time period, the backup battery charging mode is determined to be trickle charging. If the vehicle ignition state does not change, the system acquires the backup battery lifespan and determines whether it meets a preset condition. If the backup battery lifespan meets the preset condition, the backup battery charging mode is determined to be trickle charging. If the backup battery voltage is less than or equal to the pre-configured voltage threshold, the backup battery charging mode is determined to be constant current charging. The system selects a charging mode and controls the on-board battery to charge the backup battery according to the charging mode. If the charging mode is trickle charging, the system uses trickle charging to control the on-board battery to charge the backup battery for a first calibrated time. After the first calibrated time, it determines whether the current temperature of the backup battery is within the pre-configured temperature range. If the current temperature of the backup battery is within the pre-configured temperature range, it returns to the step of using trickle charging to control the charging of the backup battery for the first calibrated time. If the current temperature of the backup battery is not within the pre-configured temperature range, it determines that the on-board battery stops charging the backup battery. If the charging mode is constant current charging, the system uses constant current charging to control the charging of the on-board battery to charge the backup battery for a second calibrated time, and after the second calibrated time... The system determines whether the current temperature of the backup battery is within the pre-configured temperature range. If the current temperature of the backup battery is within the pre-configured temperature range, it obtains the charging time in constant current mode and determines whether the charging time is greater than the pre-configured charging time. If the charging time is less than or equal to the pre-configured charging time, it returns to the step of using constant current mode to control the vehicle battery to charge the backup battery for a second calibrated time. If the charging time is greater than the pre-configured charging time, it adjusts the charging mode to trickle mode and returns to the step of using trickle mode to control the vehicle battery to charge the backup battery for a first calibrated time. If the current temperature of the backup battery is not within the pre-configured temperature range, it determines that the vehicle battery stops charging the backup battery.

[0094] The aforementioned charging method, after establishing a connection with the backup battery's charging interface, provides conditions for determining whether charging is feasible based on the vehicle's initial ignition state, the backup battery's initial temperature, and a pre-configured temperature range. This helps ensure the backup battery is charged under feasible conditions. When charging is deemed possible, the method determines the backup battery's charging mode based on its voltage, a pre-configured voltage threshold, and the duration of vehicle ignition. Charging is then controlled according to this mode. This method of using different charging modes to control charging under different backup battery voltage conditions and vehicle ignition durations avoids continuous constant-current charging, reducing performance degradation. Furthermore, the method provides conditions for stopping charging based on the charging mode and a pre-configured temperature range, further reducing performance degradation and extending the backup battery's lifespan.

[0095] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0096] Based on the same inventive concept, this application also provides a charging device for implementing the charging method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more charging device embodiments provided below can be found in the limitations of the charging method described above, and will not be repeated here.

[0097] In one embodiment, such as Figure 8 As shown, a charging device 100 is provided, including: a condition determination module 120, a data acquisition module 140, a charging control module 160, and a charging stop determination module 180, wherein:

[0098] The condition determination module 120 is used to determine whether the backup battery can be charged after the connection to the charging interface of the backup battery is established, based on the initial ignition state of the vehicle, the initial temperature of the backup battery, and the pre-configured temperature condition range.

[0099] The data acquisition module 140 is used to acquire the voltage of the backup battery and the duration of the vehicle ignition state when it is determined that the backup battery can be charged.

[0100] The charging control module 160 is used to determine the charging mode of the backup battery based on the voltage of the backup battery, a pre-configured voltage condition threshold, and the duration of the vehicle ignition state, and to control the charging of the backup battery according to the charging mode, which includes constant current mode or trickle mode.

[0101] The charging stop determination module 180 is used to determine whether to stop charging the backup battery based on the charging mode and a pre-configured temperature range.

[0102] The aforementioned charging device, after establishing a connection with the backup battery's charging interface, provides conditions for determining whether charging is possible based on the vehicle's initial ignition state, the backup battery's initial temperature, and a pre-configured temperature range. This helps ensure the backup battery is charged under feasible conditions. When charging is determined, the device determines the backup battery's charging mode based on its voltage, a pre-configured voltage threshold, and the duration of vehicle ignition. Charging is then controlled according to this mode. This method of using different charging modes to control charging under different backup battery voltage conditions and vehicle ignition durations avoids continuous constant-current charging, reducing performance degradation. Furthermore, the device provides conditions for stopping charging based on the charging mode and a pre-configured temperature range, further reducing performance degradation and extending the backup battery's lifespan.

[0103] In one embodiment, in determining the charging mode of the backup battery based on the backup battery voltage, a pre-configured voltage condition threshold, and the duration of the vehicle ignition state, the charging control module 160 is further configured to: compare the backup battery voltage with the pre-configured voltage condition threshold; if the backup battery voltage is greater than the pre-configured voltage condition threshold, determine the backup battery charging mode as a trickle charge mode based on the number of vehicle ignition state changes, a preset number of changes, and a preset duration; if the backup battery voltage is less than or equal to the pre-configured voltage condition threshold, determine the backup battery charging mode as a constant current mode.

[0104] In one embodiment, in determining the charging mode of the backup battery as trickle charging mode based on the number of changes in the vehicle ignition state, a preset number of changes, and a preset duration, the charging control module 160 is further configured to: if the number of changes in the vehicle ignition state is greater than the preset number of changes within the preset duration, then determine that the charging mode of the backup battery is trickle charging mode; if the vehicle ignition state does not change, then obtain the lifespan of the backup battery and determine whether the lifespan of the backup battery meets a preset condition; if the lifespan of the backup battery meets the preset condition, then determine that the charging mode of the backup battery is trickle charging mode.

[0105] In one embodiment, regarding determining whether to stop charging the backup battery based on the charging mode and a pre-configured temperature range, the stop-charging determination module 180 is further configured to: if the charging mode is trickle charging, control the charging of the backup battery using trickle charging for a first calibration time, and after the first calibration time, determine whether the current temperature of the backup battery is within the pre-configured temperature range; if the current temperature of the backup battery is within the pre-configured temperature range, control the stop-charging determination module 180 to re-execute the operation of controlling the charging of the backup battery using trickle charging for the first calibration time; if the current temperature of the backup battery is not within the pre-configured temperature range, determine to stop charging the backup battery; if the charging mode is constant current charging, control the charging of the backup battery using constant current charging for a second calibration time. After the second calibration time, it is determined whether the current temperature of the backup battery is within the pre-configured temperature range. If the current temperature of the backup battery is within the pre-configured temperature range, the charging time in constant current mode is obtained, and it is determined whether the charging time is greater than the pre-configured charging time. If the charging time is less than or equal to the pre-configured charging time, the charging stop determination module 180 is controlled to re-execute the operation of charging the backup battery for the second calibration time using constant current mode. If the charging time is greater than the pre-configured charging time, the charging mode is adjusted to trickle mode, and the charging stop determination module 180 is controlled to re-execute the operation of charging the backup battery for the first calibration time using trickle mode. If the current temperature of the backup battery is not within the pre-configured temperature range, it is determined to stop charging the backup battery.

[0106] In one embodiment, the initial ignition state of the vehicle includes ignition or ignition off. Regarding determining whether the backup battery can be charged based on the initial ignition state of the vehicle, the initial temperature of the backup battery, and a pre-configured temperature condition range, the condition determination module 120 is further configured to: if the initial ignition state of the vehicle is ignition off, determine that the backup battery cannot be charged; if the initial ignition state of the vehicle is ignition, determine whether the initial temperature of the backup battery is within the pre-configured temperature condition range; if the initial temperature of the backup battery is not within the pre-configured temperature condition range, determine that the backup battery cannot be charged; if the initial temperature of the backup battery is within the pre-configured temperature condition range, determine that the backup battery can be charged.

[0107] In one embodiment, the charging device 100 is further configured to: if the initial temperature of the backup battery is not within the pre-configured temperature condition range, wait for a preset time, and then control the condition determination module 120 to re-execute the operation of determining whether the initial temperature of the backup battery is within the pre-configured temperature condition range.

[0108] Each module in the aforementioned charging device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.

[0109] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 9 As shown, this computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores the vehicle's initial ignition state, the initial temperature of the backup battery, a pre-configured temperature range, the backup battery voltage, the duration of the vehicle ignition state, and pre-configured voltage thresholds. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communication with external terminals via a network connection. When executed by the processor, the computer program implements a charging method.

[0110] Those skilled in the art will understand that Figure 9The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0111] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0112] After confirming that the charging interface of the backup battery has been connected, it is determined whether the backup battery can be charged based on the vehicle's initial ignition status, the initial temperature of the backup battery, and the pre-configured temperature range.

[0113] If it is determined that the backup battery can be charged, the voltage of the backup battery and the number of changes in the vehicle's ignition state are obtained.

[0114] The charging mode of the backup battery is determined based on the voltage of the backup battery, the pre-configured voltage condition threshold, and the number of changes in the vehicle's ignition state. The backup battery is then charged according to the charging mode, which includes constant current mode or trickle mode.

[0115] Determine whether to stop charging the backup battery based on the charging mode and the pre-configured temperature range.

[0116] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0117] The voltage of the backup battery is compared with the pre-configured voltage condition threshold. If the voltage of the backup battery is greater than the pre-configured voltage condition threshold, the charging mode of the backup battery is determined to be trickle charging mode based on the number of changes in the vehicle ignition state, the preset number of changes, and the preset duration. If the voltage of the backup battery is less than or equal to the pre-configured voltage condition threshold, the charging mode of the backup battery is determined to be constant current mode.

[0118] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0119] If the number of changes in the vehicle's ignition state exceeds the preset number of changes within a preset duration, the charging mode of the backup battery is determined to be trickle charging mode; if the vehicle's ignition state does not change, the lifespan of the backup battery is obtained, and it is determined whether the lifespan of the backup battery meets the preset conditions; if the lifespan of the backup battery meets the preset conditions, the charging mode of the backup battery is determined to be trickle charging mode.

[0120] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0121] If the charging mode is trickle charging, the trickle charging mode is used to control the charging of the backup battery for a first calibrated time. After the first calibrated time, it is determined whether the current temperature of the backup battery is within the pre-configured temperature range. If the current temperature of the backup battery is within the pre-configured temperature range, the process returns to the step of using trickle charging mode to control the charging of the backup battery for the first calibrated time. If the current temperature of the backup battery is not within the pre-configured temperature range, charging of the backup battery is stopped. If the charging mode is constant current charging, the constant current charging mode is used to control the charging of the backup battery for a second calibrated time. After the second calibrated time, it is determined whether the current temperature of the backup battery is within the pre-configured temperature range. If the current temperature of the backup battery is within the pre-configured temperature range, the charging time in constant current mode is obtained, and it is determined whether the charging time is greater than the pre-configured charging time. If the charging time is less than or equal to the pre-configured charging time, the process returns to the step of using constant current mode to control the charging of the backup battery for the second calibrated time. If the charging time is greater than the pre-configured charging time, the charging mode is adjusted to trickle mode, and the process returns to the step of using trickle mode to control the charging of the backup battery for the first calibrated time. If the current temperature of the backup battery is not within the pre-configured temperature range, the process determines to stop charging the backup battery.

[0122] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0123] If the vehicle's initial ignition state is off, it is determined that the backup battery cannot be charged. If the vehicle's initial ignition state is on, it is determined whether the initial temperature of the backup battery is within the pre-configured temperature range. If the initial temperature of the backup battery is not within the pre-configured temperature range, it is determined that the backup battery cannot be charged. If the initial temperature of the backup battery is within the pre-configured temperature range, it is determined that the backup battery can be charged.

[0124] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0125] If the initial temperature of the backup battery is not within the pre-configured temperature range, wait for a preset time and return to the step of determining whether the initial temperature of the backup battery is within the pre-configured temperature range.

[0126] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0127] After confirming that the charging interface of the backup battery has been connected, it is determined whether the backup battery can be charged based on the vehicle's initial ignition status, the initial temperature of the backup battery, and the pre-configured temperature range.

[0128] If it is determined that the backup battery can be charged, the voltage of the backup battery and the number of changes in the vehicle's ignition state are obtained.

[0129] The charging mode of the backup battery is determined based on the voltage of the backup battery, the pre-configured voltage condition threshold, and the number of changes in the vehicle's ignition state. The backup battery is then charged according to the charging mode, which includes constant current mode or trickle mode.

[0130] Determine whether to stop charging the backup battery based on the charging mode and the pre-configured temperature range.

[0131] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0132] The voltage of the backup battery is compared with the pre-configured voltage condition threshold. If the voltage of the backup battery is greater than the pre-configured voltage condition threshold, the charging mode of the backup battery is determined to be trickle charging mode based on the number of changes in the vehicle ignition state, the preset number of changes, and the preset duration. If the voltage of the backup battery is less than or equal to the pre-configured voltage condition threshold, the charging mode of the backup battery is determined to be constant current mode.

[0133] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0134] If the number of changes in the vehicle's ignition state exceeds the preset number of changes within a preset duration, the charging mode of the backup battery is determined to be trickle charging mode; if the vehicle's ignition state does not change, the lifespan of the backup battery is obtained, and it is determined whether the lifespan of the backup battery meets the preset conditions; if the lifespan of the backup battery meets the preset conditions, the charging mode of the backup battery is determined to be trickle charging mode.

[0135] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0136] If the charging mode is trickle charging, the trickle charging mode is used to control the charging of the backup battery for a first calibrated time. After the first calibrated time, it is determined whether the current temperature of the backup battery is within the pre-configured temperature range. If the current temperature of the backup battery is within the pre-configured temperature range, the process returns to the step of using trickle charging mode to control the charging of the backup battery for the first calibrated time. If the current temperature of the backup battery is not within the pre-configured temperature range, charging of the backup battery is stopped. If the charging mode is constant current charging, the constant current charging mode is used to control the charging of the backup battery for a second calibrated time. After the second calibrated time, it is determined whether the current temperature of the backup battery is within the pre-configured temperature range. If the current temperature of the backup battery is within the pre-configured temperature range, the charging time in constant current mode is obtained, and it is determined whether the charging time is greater than the pre-configured charging time. If the charging time is less than or equal to the pre-configured charging time, the process returns to the step of using constant current mode to control the charging of the backup battery for the second calibrated time. If the charging time is greater than the pre-configured charging time, the charging mode is adjusted to trickle mode, and the process returns to the step of using trickle mode to control the charging of the backup battery for the first calibrated time. If the current temperature of the backup battery is not within the pre-configured temperature range, the process determines to stop charging the backup battery.

[0137] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0138] If the vehicle's initial ignition state is off, it is determined that the backup battery cannot be charged. If the vehicle's initial ignition state is on, it is determined whether the initial temperature of the backup battery is within the pre-configured temperature range. If the initial temperature of the backup battery is not within the pre-configured temperature range, it is determined that the backup battery cannot be charged. If the initial temperature of the backup battery is within the pre-configured temperature range, it is determined that the backup battery can be charged.

[0139] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0140] If the initial temperature of the backup battery is not within the pre-configured temperature range, wait for a preset time and return to the step of determining whether the initial temperature of the backup battery is within the pre-configured temperature range.

[0141] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:

[0142] After confirming that the charging interface of the backup battery has been connected, it is determined whether the backup battery can be charged based on the vehicle's initial ignition status, the initial temperature of the backup battery, and the pre-configured temperature range.

[0143] If it is determined that the backup battery can be charged, the voltage of the backup battery and the number of changes in the vehicle's ignition state are obtained.

[0144] The charging mode of the backup battery is determined based on the voltage of the backup battery, the pre-configured voltage condition threshold, and the number of changes in the vehicle's ignition state. The backup battery is then charged according to the charging mode, which includes constant current mode or trickle mode.

[0145] Determine whether to stop charging the backup battery based on the charging mode and the pre-configured temperature range.

[0146] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0147] The voltage of the backup battery is compared with the pre-configured voltage condition threshold. If the voltage of the backup battery is greater than the pre-configured voltage condition threshold, the charging mode of the backup battery is determined to be trickle charging mode based on the number of changes in the vehicle ignition state, the preset number of changes, and the preset duration. If the voltage of the backup battery is less than or equal to the pre-configured voltage condition threshold, the charging mode of the backup battery is determined to be constant current mode.

[0148] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0149] If the number of changes in the vehicle's ignition state exceeds the preset number of changes within a preset duration, the charging mode of the backup battery is determined to be trickle charging mode; if the vehicle's ignition state does not change, the lifespan of the backup battery is obtained, and it is determined whether the lifespan of the backup battery meets the preset conditions; if the lifespan of the backup battery meets the preset conditions, the charging mode of the backup battery is determined to be trickle charging mode.

[0150] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0151] If the charging mode is trickle charging, the trickle charging mode is used to control the charging of the backup battery for a first calibrated time. After the first calibrated time, it is determined whether the current temperature of the backup battery is within the pre-configured temperature range. If the current temperature of the backup battery is within the pre-configured temperature range, the process returns to the step of using trickle charging mode to control the charging of the backup battery for the first calibrated time. If the current temperature of the backup battery is not within the pre-configured temperature range, charging of the backup battery is stopped. If the charging mode is constant current charging, the constant current charging mode is used to control the charging of the backup battery for a second calibrated time. After the second calibrated time, it is determined whether the current temperature of the backup battery is within the pre-configured temperature range. If the current temperature of the backup battery is within the pre-configured temperature range, the charging time in constant current mode is obtained, and it is determined whether the charging time is greater than the pre-configured charging time. If the charging time is less than or equal to the pre-configured charging time, the process returns to the step of using constant current mode to control the charging of the backup battery for the second calibrated time. If the charging time is greater than the pre-configured charging time, the charging mode is adjusted to trickle mode, and the process returns to the step of using trickle mode to control the charging of the backup battery for the first calibrated time. If the current temperature of the backup battery is not within the pre-configured temperature range, the process determines to stop charging the backup battery.

[0152] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0153] If the vehicle's initial ignition state is off, it is determined that the backup battery cannot be charged. If the vehicle's initial ignition state is on, it is determined whether the initial temperature of the backup battery is within the pre-configured temperature range. If the initial temperature of the backup battery is not within the pre-configured temperature range, it is determined that the backup battery cannot be charged. If the initial temperature of the backup battery is within the pre-configured temperature range, it is determined that the backup battery can be charged.

[0154] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0155] If the initial temperature of the backup battery is not within the pre-configured temperature range, wait for a preset time and return to the step of determining whether the initial temperature of the backup battery is within the pre-configured temperature range.

[0156] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0157] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0158] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0159] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A charging method, characterized in that, The method includes: After confirming that the charging interface of the backup battery has been connected, it is determined whether the backup battery can be charged based on the vehicle's initial ignition state, the initial temperature of the backup battery, and the pre-configured temperature range. If it is determined that the backup battery can be charged, the voltage of the backup battery and the number of changes in the vehicle ignition state are obtained. The charging mode of the backup battery is determined based on the voltage of the backup battery, a pre-configured voltage condition threshold, and the number of changes in the vehicle ignition state. The backup battery is then charged according to the charging mode, which includes a constant current mode or a trickle mode. Based on the charging mode and the pre-configured temperature range, determine whether to stop charging the backup battery; The step of determining the charging mode of the backup battery based on the voltage of the backup battery, a pre-configured voltage condition threshold, and the number of changes in the vehicle ignition state includes: Compare the voltage of the backup battery with the value of the pre-configured voltage condition threshold; If the voltage of the backup battery is greater than the pre-configured voltage condition threshold, then the charging mode of the backup battery is determined to be the trickle mode based on the number of changes in the vehicle ignition state, the preset number of changes, and the preset duration. If the voltage of the backup battery is less than or equal to the pre-configured voltage condition threshold, then the charging mode of the backup battery is determined to be the constant current mode.

2. The method according to claim 1, characterized in that, The step of determining the charging mode of the backup battery as the trickle charging mode based on the number of changes in the vehicle ignition state, a preset number of changes, and a preset duration includes: If the number of changes in the vehicle ignition state is greater than the preset number of changes within the preset duration, then the charging mode of the backup battery is determined to be the trickle charging mode. If the vehicle ignition state does not change, the lifespan of the backup battery is obtained, and it is determined whether the lifespan of the backup battery meets the preset conditions; if the lifespan of the backup battery meets the preset conditions, the charging mode of the backup battery is determined to be trickle charging mode.

3. The method according to claim 1, characterized in that, The step of determining whether to stop charging the backup battery based on the charging mode and the pre-configured temperature range includes: If the charging mode is the trickle charging mode, the trickle charging mode is used to control the charging of the backup battery for a first calibrated time. After the first calibrated time, it is determined whether the current temperature of the backup battery is within the pre-configured temperature range. If the current temperature of the backup battery is within the pre-configured temperature range, the process returns to the step of using the trickle charging mode to control the charging of the backup battery for the first calibrated time. If the current temperature of the backup battery is not within the pre-configured temperature range, it is determined to stop charging the backup battery. If the charging mode is constant current mode, then the constant current mode is used to control the charging of the backup battery for a second calibration time. After the second calibration time, it is determined whether the current temperature of the backup battery is within the pre-configured temperature range. If the current temperature of the backup battery is within the pre-configured temperature range, then the charging duration in constant current mode is obtained, and it is determined whether the charging duration is greater than the pre-configured charging duration. If the charging duration is less than or equal to the pre-configured charging duration, then the step of using the constant current mode to control the charging of the backup battery for a second calibration time is returned. If the charging duration is greater than the pre-configured charging duration, then the charging mode is adjusted to trickle charging mode, and the step of using the trickle charging mode to control the charging of the backup battery for a first calibration time is returned. If the current temperature of the backup battery is not within the pre-configured temperature range, then it is determined to stop charging the backup battery.

4. The method according to any one of claims 1-3, characterized in that, The initial ignition state of the vehicle includes ignition or ignition off; determining whether the backup battery can be charged based on the initial ignition state, the initial temperature of the backup battery, and a pre-configured temperature range includes: If the vehicle's initial ignition state is "off", then it is determined that the backup battery cannot be charged. If the vehicle's initial ignition state is "on", then it is determined whether the initial temperature of the backup battery is within the pre-configured temperature range. If the initial temperature of the backup battery is not within the pre-configured temperature range, it is determined that the backup battery cannot be charged; if the initial temperature of the backup battery is within the pre-configured temperature range, it is determined that the backup battery can be charged.

5. The method according to claim 4, characterized in that, The method further includes: If the initial temperature of the backup battery is not within the pre-configured temperature range, wait for a preset time and return to the step of determining whether the initial temperature of the backup battery is within the pre-configured temperature range.

6. A charging device, characterized in that, The device includes: The condition determination module is used to determine whether the backup battery can be charged after the connection to the charging interface of the backup battery is established, based on the initial ignition state of the vehicle, the initial temperature of the backup battery, and the pre-configured temperature condition range. The data acquisition module is used to acquire the voltage of the backup battery and the number of changes in the vehicle ignition state when it is determined that the backup battery can be charged. The charging control module is used to determine the charging mode of the backup battery based on the voltage of the backup battery, a pre-configured voltage condition threshold, and the number of changes in the vehicle ignition state, and to control the charging of the backup battery according to the charging mode, wherein the charging mode includes constant current mode or trickle mode. A stop-charging determination module is used to determine whether to stop charging the backup battery based on the charging mode and the pre-configured temperature range. The charging control module is further configured to compare the voltage of the backup battery with the pre-configured voltage condition threshold; if the voltage of the backup battery is greater than the pre-configured voltage condition threshold, the charging mode of the backup battery is determined to be the trickle charging mode based on the number of changes in the vehicle ignition state, the preset number of changes, and the preset duration; if the voltage of the backup battery is less than or equal to the pre-configured voltage condition threshold, the charging mode of the backup battery is determined to be the constant current mode.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 5.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.

9. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.