Charging method and device for battery in vehicle, vehicle and computer readable storage medium
By using photovoltaic panels to charge the battery when the vehicle is off, and through intelligent battery management strategies, the problem of insufficient power when the state of charge of the power battery is low is solved, ensuring stable power supply to the vehicle and improving reliability and safety.
Patent Information
- Application Number
- CN202511331100.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-17
- Publication Date
- 2025-12-23
AI Technical Summary
When the vehicle's power battery has a low state of charge, it cannot meet the vehicle's power demand, resulting in limited system functions and affecting user safety experience and vehicle performance.
The introduction of photovoltaic panels converts solar energy into electrical energy when the vehicle is off, prioritizing the charging of the first battery. Through intelligent battery management strategies, the charging strategy is determined based on the state of charge of the first and second batteries, ensuring that the second battery does not become depleted due to prolonged inactivity and providing additional power support when the power battery is activated.
Ensuring a stable power supply for vehicles under all conditions reduces reliance on power batteries, improves vehicle reliability and safety, reduces the risk of battery depletion, and enhances energy efficiency and user experience.
Smart Images

Figure CN121192883A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle technology, and more specifically, to a method, apparatus, vehicle, and computer-readable storage medium for charging a battery in a vehicle. Background Technology
[0002] In the field of vehicle technology, especially in electric and hybrid vehicles, the operation of low-voltage electrical systems and the maintenance of Sentry Mode both rely on the energy supply from the high-voltage battery. This process typically involves voltage level conversion via a DC / DC converter. When the vehicle is parked, to ensure it can start smoothly after prolonged inactivity, the low-voltage battery draws power from the high-voltage battery through the DC / DC converter. However, in this mode, the battery's State of Charge (SOC) must be maintained above a certain threshold to ensure it can support the operation of these critical functions. Once the battery's SOC drops to a critical point, system functions will be limited, Sentry Mode may fail to start or continue operating, and the vehicle's starting ability and electrical system health will be compromised, increasing the risk of battery depletion and impacting overall user safety and vehicle performance.
[0003] There is currently no good solution to the above problems. Summary of the Invention
[0004] This application provides a method, apparatus, vehicle, and computer-readable storage medium for charging a battery in a vehicle, to at least solve the technical problem in the related art that the power battery cannot meet the vehicle's power demand when the battery's state of charge is low.
[0005] According to one aspect of the embodiments of this application, a method for charging a battery in a vehicle is provided, comprising: determining the operating state of a photovoltaic panel in the vehicle in response to the vehicle being in a powered-off state, wherein the photovoltaic panel is used to convert solar energy into electrical energy in an operating mode; controlling the photovoltaic panel to charge a first battery in the vehicle in response to an operating state indication that the photovoltaic panel is in an operating mode, wherein the first battery is used to supply power to electrical devices in the vehicle in a powered-off state; detecting the state of charge (SOC) of the first battery and the SOC of a second battery in the vehicle during the charging process of the photovoltaic panel to the first battery, wherein the second battery is used to supply power to a function controller in the vehicle; determining a battery charging strategy for the vehicle based on the SOC of the first battery and the SOC of the second battery, wherein the battery charging strategy is used to indicate rules for charging the second battery; and charging the second battery according to the battery charging strategy.
[0006] Furthermore, based on the state of charge (SOC) of the first battery and the SOC of the second battery, a battery charging strategy for the vehicle is determined, including: when the SOC of the first battery indicates that the ratio of the remaining charge of the first battery to the total charge of the first battery is greater than or equal to a first charge ratio, and the SOC of the second battery indicates that the ratio of the remaining charge of the second battery to the total charge of the second battery is less than or equal to the first charge ratio, the battery charging strategy is determined to be to control the photovoltaic panel to switch from charging the first battery to charging the second battery; and charging the second battery according to the battery charging strategy.
[0007] Furthermore, the method also includes: detecting the state of charge of the second battery during the charging process of the second battery; in response to the state of charge of the second battery indicating that the ratio of the remaining charge of the second battery to the total charge of the second battery is greater than a second charge ratio, determining that the battery charging strategy is to control the photovoltaic panel to switch from charging the second battery to charging the first battery, wherein the second charge ratio is greater than the first charge ratio.
[0008] Furthermore, the method also includes: detecting the state of charge of the second battery in response to the second battery being continuously charged for a first period of time; waking up the vehicle's power battery in response to the state of charge of the second battery indicating that the ratio of the remaining charge of the second battery to the total charge of the second battery is less than a second charge ratio; and controlling the power battery to charge the second battery.
[0009] Furthermore, in response to an operating status indication that the photovoltaic panel is in an operating mode, the method also includes controlling the photovoltaic panel to supply power to electrical equipment in the vehicle.
[0010] Furthermore, the method further includes: in response to the state of charge of the first battery indicating that the ratio of the remaining charge of the first battery to the total charge of the first battery is less than a third charge ratio, and the continuous discharge duration of the first battery is greater than a second duration, controlling the first battery to prohibit it from supplying power to electrical equipment in the vehicle, wherein the third charge ratio is less than the first charge ratio.
[0011] Furthermore, the method further includes: responding to the state of charge indicator of the power battery in the vehicle indicating that the ratio of the remaining charge of the power battery to the total charge of the power battery is less than a fourth charge ratio, and the photovoltaic panel is in a working mode, controlling the photovoltaic panel to supply power to the vehicle's detection system, wherein the vehicle's detection system is used to detect environmental information within a preset range around the vehicle in sentry mode; or, responding to the state of charge indicator of the power battery indicating that the ratio of the remaining charge of the power battery to the total charge of the power battery is less than a fourth charge ratio, the state of charge indicator of the first battery indicating that the ratio of the remaining charge of the first battery to the total charge of the first battery is greater than a first charge ratio, and the photovoltaic panel is in a non-working mode, controlling the first battery to supply power to the vehicle's detection system, wherein the fourth charge ratio is lower than a third charge ratio.
[0012] According to another aspect of the embodiments of this application, a charging device for a battery in a vehicle is also provided, comprising: a first determining unit, configured to determine the operating state of a photovoltaic panel in the vehicle in response to the vehicle being in a powered-off state, wherein the photovoltaic panel is used to convert solar energy into electrical energy in an operating mode; a control unit, configured to control the photovoltaic panel to charge a first battery in the vehicle in response to an operating state indication that the photovoltaic panel is in an operating mode, wherein the first battery is used to supply power to electrical devices in the vehicle when the vehicle is powered-off; a detection unit, configured to detect the state of charge of the first battery and the state of charge of a second battery in the vehicle during the process of the photovoltaic panel charging the first battery, wherein the second battery is used to supply power to a function controller in the vehicle; a second determining unit, configured to determine a battery charging strategy for the vehicle based on the state of charge of the first battery and the state of charge of the second battery, wherein the battery charging strategy is used to indicate rules for charging the second battery; and a charging unit, configured to charge the second battery according to the battery charging strategy.
[0013] According to another aspect of the embodiments of this application, a vehicle is also provided, including: a memory storing an executable program; and a processor for running the program, wherein the program executes the methods in various embodiments of this application when it runs.
[0014] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored executable program, wherein, when the executable program is running, it controls the device where the computer-readable storage medium is located to perform the methods of various embodiments of this application.
[0015] According to another aspect of the embodiments of this application, a computer program product is also provided, including a computer program that, when executed by a processor, implements the methods of various embodiments of this application.
[0016] According to another aspect of the embodiments of this application, a computer program product is also provided, including a non-volatile computer-readable storage medium storing a computer program that, when executed by a processor, implements the methods in various embodiments of this application.
[0017] According to another aspect of the embodiments of this application, a computer program is also provided, which, when executed by a processor, implements the methods of the various embodiments of this application.
[0018] In this embodiment, in response to the vehicle being in a powered-off state, the operating state of the photovoltaic panel in the vehicle is determined, wherein the photovoltaic panel is used to convert solar energy into electrical energy in the operating mode; in response to the operating state indication that the photovoltaic panel is in the operating mode, the photovoltaic panel is controlled to charge the first battery in the vehicle, wherein the first battery is used to supply power to the electrical equipment in the vehicle when the vehicle is powered-off; during the process of the photovoltaic panel charging the first battery, the state of charge of the first battery and the state of charge of the second battery in the vehicle are detected, wherein the second battery is used to supply power to the function controller in the vehicle; based on the state of charge of the first battery and the state of charge of the second battery, a battery charging strategy for the vehicle is determined, wherein the battery charging strategy is used to indicate the rules for charging the second battery; and the second battery is charged according to the battery charging strategy. In other words, this application embodiment introduces a photovoltaic panel. When the vehicle is off, the operating status of the photovoltaic panel is determined. If the photovoltaic panel's operating status indicates that it is in working mode, it means that the photovoltaic panel can convert solar energy into electrical energy. In this case, the photovoltaic panel can be prioritized to charge the vehicle's first battery, enabling the first battery to supply power to the vehicle's electrical equipment, supporting the operation of the vehicle's electrical equipment when the vehicle is off. During the process of supplying power to the first battery, the power supply strategy for the second battery can also be determined based on the state of charge of the first and second batteries to avoid the risk of the second battery running out of power due to prolonged inactivity. This ensures that the vehicle can start smoothly at any time, improving the vehicle's reliability and safety. That is, in this application, by introducing a photovoltaic panel and an intelligent battery management strategy, the dependence on the vehicle's power battery is reduced, ensuring that the vehicle has a stable power supply in any state, thereby solving the technical problem in related technologies where the power battery's state of charge is low and cannot meet the vehicle's power demand. Attached Figure Description
[0019] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0020] Figure 1 This is a flowchart of a battery charging method in a vehicle according to an embodiment of this application;
[0021] Figure 2 This is a schematic diagram of a battery charging system in a vehicle according to an embodiment of this application;
[0022] Figure 3 This is a schematic diagram of a battery charging device in a vehicle according to an embodiment of this application. Detailed Implementation
[0023] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present application.
[0024] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0025] According to an embodiment of this application, an embodiment of a method for charging a battery in a vehicle is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0026] This embodiment provides a method for charging a battery in a vehicle. Figure 1 This is a flowchart of a battery charging method in a vehicle according to an embodiment of this application, such as... Figure 1 As shown, the process includes the following steps:
[0027] Step S101: In response to the vehicle being in a turned-off state, determine the working status of the photovoltaic panels in the vehicle.
[0028] In the technical solution provided in step S101 of this application, the photovoltaic panel is used to convert solar energy into electrical energy in the working mode. That is, when the vehicle is off, if the photovoltaic panel can effectively capture solar energy and convert it into electrical energy, it indicates that the photovoltaic panel is in the working mode.
[0029] In this embodiment, the operational status of the onboard photovoltaic panels can be assessed when the vehicle enters a shutdown state, i.e., the engine stops running and the vehicle control system switches to a low-power mode. This feature is designed to utilize external solar energy resources to provide power to the vehicle's low-voltage electrical and electronic equipment, thereby reducing reliance on and consumption of the main battery pack.
[0030] Optionally, the vehicle's central processing unit (CPU) or vehicle control unit (VCU) receives signals from the ignition switch, engine management system, or other sensors to confirm that the vehicle has entered a shut-off state. This confirmation triggers subsequent energy management system operations. Afterward, sensors on the photovoltaic panels or an integrated monitoring module can determine whether the photovoltaic panels are in operating mode. Operating mode means that the photovoltaic panels can effectively capture sunlight and convert it into electrical energy.
[0031] Optionally, the operating status of a photovoltaic (PV) panel can be determined by multiple factors, including but not limited to: light intensity, PV panel temperature, and conversion circuit status. For example, a light sensor measures the current light intensity to determine if there is sufficient sunlight for the PV panel to output enough power. A temperature sensor monitors the surface temperature of the PV panel, as extremely hot or cold conditions can affect the conversion efficiency of the PV panel. The connections and operating status between the PV panel and its connected conversion circuit (e.g., charge controller) are checked to ensure there is no physical damage or system malfunction. If all these factors meet the operating conditions of the PV panel, the operating status is determined, indicating that the PV panel is in operating mode.
[0032] Optionally, if the photovoltaic panel cannot receive sufficient light intensity, or the photovoltaic panel temperature is abnormal, or the conversion circuit is abnormal, the photovoltaic panel's operating status is determined to be in a non-operating mode.
[0033] Step S102: In response to the working status indicator that the photovoltaic panel is in working mode, control the photovoltaic panel to charge the first battery in the vehicle.
[0034] In the technical solution provided by step S102 of this application, if the working status of the photovoltaic panel indicates that the photovoltaic panel is in working mode, it means that the photovoltaic panel can convert solar energy into electrical energy and charge the battery in the vehicle.
[0035] In this embodiment, after the photovoltaic panel is in working mode and converts solar energy into electrical energy, the electrical energy generated by the photovoltaic panel can be input to the first battery in the vehicle through the solar charging conversion controller to charge the first battery. The first battery can be an uninterruptible power supply (UPS) lead-acid battery, which is used to power the electrical equipment in the vehicle, including but not limited to: car refrigerator, car TV, audio system and some low-voltage loads.
[0036] Optionally, when the vehicle is off, the first battery (UPS uninterruptible lead-acid battery) is used to power the electrical equipment in the vehicle. When the photovoltaic panels begin charging the first battery, priority is given to ensuring that the state of charge (SOC) of the first battery is maintained above a certain level to meet the power needs of electrical equipment such as in-vehicle refrigerators and in-vehicle televisions.
[0037] Optionally, the first battery, when fully charged, can support the operation of the vehicle refrigerator for 12 hours, and the first battery can support continuous and uninterrupted charging.
[0038] This step ensures that solar energy can be used as a reliable power source to charge the vehicle's primary battery when the vehicle is off. This allows the primary battery to provide continuous power to the vehicle's electrical equipment, avoiding over-reliance on the main battery and reducing the risk of battery depletion during long-term parking. As a result, the overall energy efficiency of the vehicle and the user experience are improved.
[0039] Step S103: During the process of the photovoltaic panel charging the first battery, the state of charge of the first battery and the state of charge of the second battery in the vehicle are detected.
[0040] In the technical solution provided in step S103 of this application, during the process of the photovoltaic panel charging the first battery, the state of charge of the first battery and the state of charge of the second battery can be detected in real time by a battery sensor. The second battery can start the lead-acid battery to supply power to the functional controller in the vehicle, wherein the functional controller includes, but is not limited to, controllers related to vehicle functional safety, unlocking and starting functions.
[0041] In this embodiment, parameters such as voltage, current, and temperature of the first battery can be detected by a battery sensor. Combined with the characteristic curve of the first battery, the state of charge (SOC) of the first battery is determined. The SOC of the first battery reflects the degree of energy storage during the charging process, that is, the ratio of the remaining capacity of the first battery to its total capacity. Similarly, parameters such as voltage, current, and temperature of the second battery can be detected by a battery sensor. Combined with the characteristic curve of the second battery, the SOC of the second battery is determined. The SOC of the second battery reflects its capacity level in a static or standby state, that is, the ratio of the remaining capacity of the second battery to its total capacity.
[0042] Step S104: Determine the vehicle's battery charging strategy based on the state of charge of the first battery and the state of charge of the second battery.
[0043] In the technical solution provided in step S104 of this application, after obtaining the state of charge (SOC) of the first battery and the second battery, the SOC of the first battery reflects the ratio of its remaining charge to its total charge, i.e., its current charge level. The SOC of the second battery reflects the ratio of its remaining charge to its total charge, i.e., its current charge level. Based on this, a battery charging strategy for the vehicle can be determined according to the SOC of the first and second batteries, wherein the battery charging strategy is used to indicate the rules for charging the second battery.
[0044] In this embodiment, after determining the state of charge (SOC) of the first battery and the second battery, the ratio of the remaining charge of the first battery to the total charge can be determined based on the SOC of the first battery, and the ratio of the remaining charge of the second battery to the total charge can be determined based on the SOC of the second battery. If the ratio of the remaining charge of the first battery to the total charge is greater than or equal to the first ratio, while the ratio of the remaining charge of the second battery to the total charge is less than the first ratio, it indicates that the first battery currently has sufficient charge to support the power supply of electrical equipment in the vehicle, but the second battery's charge is insufficient to support the power supply of the vehicle's functional controllers. In this case, the vehicle's battery charging strategy can be determined to switch the photovoltaic panel from supplying power to the first battery to supply power to the second battery, thereby increasing the charge of the second battery and preventing it from running out of charge.
[0045] Optionally, if the ratio of the remaining charge of the first battery to the total charge is greater than or equal to the first charge ratio, and the ratio of the remaining charge of the second battery to the total charge is also greater than or equal to the first charge ratio, it indicates that the first battery currently has enough charge to support the power supply of electrical equipment in the vehicle, but the second battery also has enough charge to support the power supply of functional controllers in the vehicle. In this case, it can be determined that the vehicle's battery charging strategy is to control the photovoltaic panel to continue supplying power to the first battery, because the first battery allows uninterrupted charging.
[0046] Step S105: Charge the second battery according to the battery charging strategy.
[0047] In the technical solution provided in step S105 of this application, after determining the battery charging strategy, if the battery charging strategy is to control the photovoltaic panel to switch from supplying power to the first battery to supplying power to the second battery, then based on the battery charging strategy, the electrical energy generated by the photovoltaic panel is input to the second battery to charge the second battery.
[0048] In steps S101 to S105 above, a photovoltaic panel is introduced. When the vehicle is off, the operating state of the photovoltaic panel is determined. If the photovoltaic panel is in working mode, it means that the photovoltaic panel can convert solar energy into electrical energy. In this case, the photovoltaic panel can be prioritized to charge the first battery in the vehicle, so that the first battery can supply power to the electrical equipment in the vehicle, supporting the operation of the electrical equipment in the vehicle when the vehicle is off. During the process of supplying power to the first battery, the power supply strategy for the second battery can also be determined according to the state of charge of the first and second batteries to avoid the risk of the second battery being depleted due to prolonged inactivity, ensuring that the vehicle can start smoothly at any time, improving the reliability and safety of the vehicle. That is, in this application, by introducing a photovoltaic panel and an intelligent battery management strategy, the dependence on the vehicle's power battery is reduced, ensuring that the vehicle has a stable power supply in any state, thereby solving the technical problem in related technologies that the power battery cannot meet the vehicle's power demand when the state of charge of the power battery is low.
[0049] The charging method for the battery in the vehicle described in this application will be further described below.
[0050] As an optional implementation, step S104, based on the state of charge of the first battery and the state of charge of the second battery, determines the vehicle's battery charging strategy, including: in response to the state of charge of the first battery indicating that the ratio of the remaining charge of the first battery to the total charge of the first battery is greater than or equal to a first charge ratio, and the state of charge of the second battery indicating that the ratio of the remaining charge of the second battery to the total charge of the second battery is less than or equal to the first charge ratio, determining the battery charging strategy as controlling the photovoltaic panel to switch from charging the first battery to charging the second battery; and charging the second battery according to the battery charging strategy.
[0051] In this embodiment, after determining the state of charge (SOC) of the first battery and the second battery, the ratio of the remaining charge of the first battery to its total charge can be determined according to the SOC of the first battery, and the ratio of the remaining charge of the second battery to its total charge can be determined according to the SOC of the second battery. Then, the ratio of the remaining charge of the first battery to its total charge is compared with a first charge ratio to obtain a first comparison result. The ratio of the remaining charge of the second battery to its total charge is then compared with the first charge ratio to obtain a second comparison result. The first charge ratio is used to define the minimum SOC threshold for the first and second batteries, and this first charge ratio can be 60% or 65%, without specific limitation here.
[0052] Optionally, if the first comparison result indicates that the ratio of the remaining charge of the first battery to the total charge of the first battery is greater than or equal to the first charge ratio, and the second comparison result indicates that the ratio of the remaining charge of the second battery to the total charge of the second battery is less than or equal to the first charge ratio, then it indicates that the charge of the first battery is at a relatively safe and sufficient level, while the charge of the second battery may be close to the low charge warning threshold and needs to be replenished in time. In this case, the battery charging strategy can be determined to switch the photovoltaic panel from charging the first battery to charging the second battery, that is, to switch the charging priority of the photovoltaic panel from the first battery to the second battery. This means that the electricity generated by the photovoltaic panel will be used first to charge the second battery until its SOC reaches a preset safe level. The purpose of this is to ensure that the vehicle can start smoothly when needed and to maintain the normal operation of basic functions such as locking and unlocking.
[0053] In this step, by detecting the state of charge of the first battery and the state of charge of the second battery, it is possible to effectively address the imbalance of power between different batteries, ensuring that the vehicle can maintain sufficient power reserves at all times to support key functions and improve the user experience.
[0054] As an optional implementation, the method further includes: detecting the state of charge of the second battery during the charging process of the second battery; and determining the battery charging strategy to control the photovoltaic panel to switch from charging the second battery to charging the first battery in response to the state of charge of the second battery indicating that the ratio of the remaining charge of the second battery to the total charge of the second battery is greater than a second charge ratio.
[0055] In this embodiment, during the charging process of the second battery, in order to avoid overcharging, the state of charge of the second battery can be detected in real time, and based on the state of charge of the second battery, the charging process can be ensured to be both effective and not overcharged, thereby damaging the battery health.
[0056] Optionally, a battery sensor (e.g., a battery sensor) can be controlled to detect the state of charge (SOC) of the second battery in real time, and the ratio of the remaining charge of the second battery to the total charge can be determined based on the SOC of the second battery. After determining the ratio of the remaining charge of the second battery to the total charge, this ratio can be compared with a second charge ratio to obtain a third comparison result. If the third comparison result indicates that the ratio of the remaining charge of the second battery to the total charge of the second battery is greater than the second charge ratio, it is determined that the second battery is in a fully charged state, and its charge level far exceeds the minimum standard required to maintain the basic functions and safety of the vehicle. In this case, the vehicle's battery charging strategy can be adjusted. For example, the vehicle's battery charging strategy can be adjusted to switch the photovoltaic panel from charging the second battery to charging the first battery. Here, the second charge ratio is used to define the maximum SOC threshold of the second battery, and the second charge ratio can be 80% or 85%, without specific limitation.
[0057] In this step, during the charging process of the second battery, the state of charge of the second battery can be detected. After the state of charge of the second battery indicates that the battery capacity has reached the target, the battery charging strategy can be adjusted to control the photovoltaic panel to switch from charging the second battery to charging the first battery, so as to avoid overcharging the second battery.
[0058] As an optional implementation, the method further includes: detecting the state of charge of the second battery in response to the second battery being continuously charged for a first period of time; waking up the vehicle's power battery in response to the state of charge of the second battery indicating that the ratio of the remaining charge of the second battery to the total charge of the second battery is less than a second charge ratio; and controlling the power battery to charge the second battery.
[0059] In this embodiment, the first duration is a charging detection cycle. This first duration can be set based on a comprehensive consideration of charging efficiency, the power output capability of the photovoltaic panel, and the charging characteristics of the second battery. For example, the first duration could be 20 hours; no specific limitation is made here. During the charging process of the second battery using the photovoltaic panel, the charging process of the second battery can be continuously monitored. If the continuous charging time of the second battery reaches the first duration, the state of charge (SOC) of the second battery can be detected. If the SOC indicates that the ratio of the remaining charge of the second battery to its total charge is less than a second charge ratio, it means that after continuous charging by the photovoltaic panel, the charge of the second battery has not yet reached its expected safe operating range. In this case, the vehicle's power battery will be activated, providing additional charging power to the second battery to quickly increase its charge to a safe range. This mechanism ensures that even if the photovoltaic panel cannot provide sufficient charge to the second battery or the charging efficiency is low, the second battery can still be replenished in time, guaranteeing the vehicle's starting and basic function operation requirements.
[0060] Optionally, after the power battery is activated, a DC / DC converter can be used to convert the DC power output from the power battery into an input voltage suitable for the second battery, thereby efficiently charging the second battery. During the charging process, the state of charge (SOC) of the second battery can be continuously monitored until it reaches or approaches a certain charge ratio, ensuring that the vehicle can start quickly and safely in any environment, while also avoiding the risk of battery depletion that may occur during long-term parking.
[0061] In this step, through this series of charging management and power battery wake-up mechanisms, not only is energy utilization efficiency improved and the vehicle can respond immediately when needed, but the overall safety and reliability of the vehicle's energy system are also enhanced.
[0062] As an alternative implementation, in response to an operating status indicator that the photovoltaic panel is in an operating mode, the method further includes controlling the photovoltaic panel to supply power to electrical equipment in the vehicle.
[0063] In this embodiment, when the photovoltaic panel is in working mode, in addition to controlling the photovoltaic panel to charge the first battery and / or the second battery, the photovoltaic panel can also be controlled to directly supply power to the electrical equipment in the vehicle, thereby reducing the dependence of the electrical equipment in the vehicle on the power battery and the first battery and improving energy utilization efficiency.
[0064] As an optional implementation, the method further includes: in response to the state of charge of the first battery indicating that the ratio of the remaining charge of the first battery to the total charge of the first battery is less than a third charge ratio, and the continuous discharge duration of the first battery is greater than a second duration, controlling the first battery to prohibit it from supplying power to electrical equipment in the vehicle, wherein the third charge ratio is less than the first charge ratio.
[0065] In this embodiment, since the first battery is used to supply power to electrical devices in the vehicle, when there are many electrical devices in the vehicle, to avoid over-discharge of the first battery, the state of charge (SOC) of the first battery can be detected in real time. If the ratio of the remaining charge of the first battery to its total charge is less than a third charge ratio, and the continuous discharge duration of the first battery is greater than a second duration, the first battery is controlled to prevent supplying power to the electrical devices in the vehicle, thus avoiding over-discharge. The third charge ratio is used to measure the SOC threshold of the first battery; for example, it can be 20%, without specific limitation. The second duration is used to measure the over-discharge duration of the first battery. To avoid over-discharge of the second battery, the second duration can be set relatively short, for example, 30 seconds, without specific limitation.
[0066] As an optional implementation, the method further includes: responding to a state of charge indicator of the power battery in the vehicle indicating that the ratio of the remaining charge of the power battery to the total charge of the power battery is less than a fourth charge ratio, and the photovoltaic panel is in an operating mode, controlling the photovoltaic panel to supply power to the vehicle's detection system, wherein the vehicle's detection system is used to detect environmental information within a preset range around the vehicle in sentry mode; or, responding to a state of charge indicator of the power battery indicating that the ratio of the remaining charge of the power battery to the total charge of the power battery is less than a fourth charge ratio, a state of charge indicator of the first battery indicating that the ratio of the remaining charge of the first battery to the total charge of the first battery is greater than a first charge ratio, and the photovoltaic panel is in a non-operating mode, controlling the first battery to supply power to the vehicle's detection system, wherein the fourth charge ratio is lower than a third charge ratio.
[0067] In this embodiment, Sentinel Mode is an intelligent safety feature designed to monitor the surrounding environment when the vehicle is parked and promptly detect potential threats or anomalies. This mode typically requires the vehicle detection system (including sensors such as cameras and radar) to operate continuously, consuming power. Sentinel Mode usually relies on the vehicle's power battery for power. However, if the ratio of the remaining charge of the vehicle's power battery to its total charge is less than a fourth charge ratio, it indicates that the vehicle's power battery is low. In this case, to avoid the risk of over-discharge from the vehicle's power battery supplying power to the vehicle's detection system, the operation of the photovoltaic panel can be detected. If the photovoltaic panel is in operating mode, it can be controlled to supply power to the vehicle's detection system, thus fully utilizing solar energy, a renewable energy source. This ensures the normal operation of Sentinel Mode without consuming power from the power battery, extending the vehicle's independent operating time and reducing reliance on traditional charging. The fourth charge ratio is a threshold used to measure the power battery's discharge SOC, and this fourth charge ratio can be 15%, without specific limitations.
[0068] Optionally, if the state of charge indicator of the power battery shows that the ratio of the remaining charge of the power battery to the total charge of the power battery is less than a fourth charge ratio, the photovoltaic panel is in a non-operating mode. However, if the state of charge indicator of the first battery shows that the ratio of the remaining charge of the first battery to the total charge of the first battery is greater than the first charge ratio, this indicates that the first battery has sufficient charge. In this case, the first battery can be controlled to supply power to the vehicle's detection system, ensuring that the first battery can support the sentry mode even without solar energy input, while protecting the power battery from over-discharge and maintaining its long-term health.
[0069] In this step, when the power battery is low on power, the power supply can be automatically switched according to the external environmental conditions and the power levels of other batteries in the vehicle. The photovoltaic panel or the first battery will be used to power the vehicle's detection system first, so as to maintain the operation of the sentry mode while avoiding the risk of over-discharge of the power battery.
[0070] According to an embodiment of this application, a charging system for a battery in a vehicle is provided. It should be noted that the charging system for the battery in the vehicle is used to implement the above-described charging method for the battery in the vehicle.
[0071] Figure 2 This is a schematic diagram of a battery charging system in a vehicle according to an embodiment of this application, as shown below. Figure 2As shown, the battery charging system in this vehicle includes: a power battery 1, a DC-DC converter 2, a low-power controller 3, a first battery sensor 4, a solar charging conversion controller 5, a photovoltaic panel 6, a first battery (UPS lead-acid battery) 7, a second battery sensor 8, a second battery (starting lead-acid battery) 9, and low-voltage electrical equipment 10. Figure 2 As shown, the second battery 9 is connected to the power battery 1 via a DC-DC converter 2, jointly supporting the low-voltage electrical equipment 10. The second battery is connected to the vehicle's functional safety, unlocking, and starting controllers. The first battery sensor can monitor and calculate the second battery's SOC, temperature, current, and SOH. When the SOC of the second battery reaches the set lower limit, a warning signal is sent to the low-power controller 3, causing the low-power controller to disconnect other load circuits of the second battery, ensuring that the second battery meets the power requirements for vehicle functional safety, unlocking, and power supply. The first battery 7 is an energy storage power source, connected to the photovoltaic panel 6 via a solar charging conversion controller 5. The photovoltaic panel absorbs solar energy or LED light and converts it into electrical energy, which is then charged by the charging conversion controller 5 to supply power to some low-voltage electrical loads in the vehicle. When the photovoltaic panel is not working, the first battery 7 (UPS battery) can directly supply power to appliances such as the vehicle refrigerator.
[0072] Optionally, the first battery (UPS lead-acid battery) 7 is combined with the photovoltaic panel 6 to serve as an additional energy storage device. Under sunlight, the photovoltaic panel converts solar energy into electrical energy, which is then stored in the first battery via the solar charge conversion controller 5. When the solar panel is not in operation, such as at night or on cloudy or rainy days, the first battery can directly power low-voltage electrical loads such as vehicle refrigerators and vehicle televisions, supplementing the main power supply system and reducing reliance on the starting lead-acid battery and the main power battery.
[0073] Optionally, the first battery is designed to withstand continuous charging. When the SOC of the second battery is below 60%, the first battery can use the power of the solar panel to charge the second battery until the SOC of the second battery returns to a normal level, ensuring the vehicle's starting capability and the continuity of its overall functions.
[0074] Optionally, the second battery (starting lead-acid battery) 9 is connected to the power battery 1 via a DC / DC converter 2, jointly supplying power to the vehicle's low-voltage electrical loads. The DC / DC converter here serves as a voltage matcher, adjusting the power battery's output voltage to a suitable level for the low-voltage electrical appliances. This second battery not only handles the vehicle's basic starting task but is also closely related to the vehicle's overall functional safety, unlocking, and starting control systems, ensuring the vehicle can be safely started and operated when needed.
[0075] Optionally, the system can monitor key parameters of the second battery 9 in real time, such as SOC, temperature, and current, via the first battery sensor 4. Once the SOC of the second battery drops to a preset lower limit, the first battery sensor sends a signal to the low-power power controller 3, triggering the low-power power controller 3 to perform necessary load management operations. Upon receiving the signal from the first battery sensor 4, the low-power power controller 3 will disconnect non-critical electrical loads to prioritize protecting the second battery's charge level within a safe range, ensuring the normal operation of critical vehicle functions such as functional safety, unlocking, and power-on.
[0076] Optionally, the first and second batteries form a complementary power supply mechanism. The second battery focuses on ensuring the vehicle's safe starting and functional operation under all conditions, while the first battery emphasizes providing a continuous and stable power supply to the vehicle's non-core low-voltage electrical loads using ambient light conditions, especially in scenarios where the vehicle is stationary and exposed to sunlight. This dual-layer power management scheme effectively improves the vehicle's energy efficiency, enhances its adaptability and user experience in different usage scenarios, and reduces the risk of battery depletion when the vehicle is parked for extended periods.
[0077] The following section introduces the power management mechanism between the first battery (UPS lead-acid battery) and the photovoltaic panel.
[0078] Optionally, the first battery 7, as an energy storage unit, is designed to continuously accept charging, even when the vehicle is stationary. This provides it with the characteristic of being able to frequently charge and discharge without significantly affecting battery health and lifespan. This design is particularly suitable for continuous charging using solar energy in environments with ample sunlight. The second battery sensor 8 in the system continuously monitors the SOC of the first battery. When the SOC of the first battery drops below 60%, the second battery sensor sends this low-charge signal to the low-power controller 3. Upon receiving the low-charge signal, if the photovoltaic panel (solar photovoltaic panel 6) is operational (i.e., the vehicle is under sunlight), the low-power controller 3 will use solar energy to preferentially charge the first battery through the solar charging conversion controller 5 until its SOC recovers to 85%. This not only saves energy from the high-voltage power battery but also effectively extends the lifespan of the starting lead-acid battery.
[0079] Optionally, the battery management mechanism of the aforementioned first battery is a cyclical process. Its purpose is to ensure that the starting lead-acid battery's charge is maintained at a safe level through the coordination of solar power and the UPS uninterruptible power supply when the vehicle is stationary, while minimizing reliance on the main power battery. Once the system detects that the starting lead-acid battery's charge is too low or an abnormal wake-up occurs, it will initiate the above process, using solar power to charge the battery or waking up the high-voltage system for rapid recharging, and then return to a power-off state, awaiting the next monitoring or wake-up request.
[0080] The following section introduces the power management mechanism between the second battery (starting lead-acid battery) and the photovoltaic panel.
[0081] Optionally, the first battery sensor 4 is used to detect the SOC of the second battery and compare the detected SOC value with a preset normal operating range, which is set to 60%-85%. This range is designed to balance the performance and lifespan of the second battery, ensuring that it operates at a safe and efficient level. When the SOC of the second battery drops to 65%, the first battery sensor triggers the Central Electronics Module (CEM) to send a warning signal to the Onboard Module OX (TBOX). This mechanism aims to notify system administrators in advance that the second battery's charge is approaching its lower limit and that measures may need to be taken to avoid problems caused by low charge. Upon receiving the warning signal, the system automatically checks the SOC status of the second battery and the charging conditions of the solar photovoltaic panel. If the SOC of the second battery exceeds 60%, or if the photovoltaic panel receives sufficient light (sunlight or LED light), the photovoltaic panel will be used to charge the starting lead-acid battery to restore its charge to the set normal operating range.
[0082] Alternatively, by utilizing solar energy for charging instead of relying on high-voltage batteries or the power grid, the system reduces overall energy consumption while also improving the flexibility and efficiency of energy utilization. Reducing the number of times the starting lead-acid battery needs to be charged from the main high-voltage battery helps extend the lifespan of the main battery, as frequent charging and discharging can negatively impact battery health.
[0083] Optionally, the system design considers abnormal wake-up scenarios, such as failure to restore the second battery to its ideal SOC level within a specific timeframe, or an abnormally high number of recharging cycles (3 or more) detected within 24 hours. These conditions may indicate a system malfunction or abnormal power consumption. When these abnormal wake-up conditions are triggered, the vehicle's Central Electronic Management Module (CEM) detects the anomaly and sends a signal to the Onboard Communication Unit (TBOX). Upon receiving the signal, the TBOX further processes and coordinates the system, including waking up the vehicle's main battery to charge the second battery. After the main battery completes the necessary recharging, the TBOX returns the vehicle to a powered-down state to conserve energy.
[0084] Optionally, when the vehicle is stationary and in a sunny environment, the system automatically activates the solar photovoltaic panels to power onboard electrical loads, such as car refrigerators and car televisions, using solar energy. This mechanism allows the vehicle to utilize natural energy when not in operation, reducing reliance on the onboard battery. The system continuously monitors the State of Charge (SOC) of the first battery. When the SOC of the first battery drops below a preset lower limit of 20%, it indicates that the battery's charge is approaching its minimum safe level and can no longer provide stable power. Furthermore, the system also monitors the discharge current of the first battery. When the discharge current exceeds 20A and this state persists for more than 30 seconds, it usually means that the onboard electrical loads are consuming a large amount of power, potentially leading to over-discharge of the first battery.
[0085] Optionally, once the SOC of the first battery is detected to be below 20% and the discharge current exceeds the threshold, the power supply to low-voltage electrical appliances such as the car refrigerator will be automatically cut off, causing these appliances to enter a sleep mode. This means that the appliances will stop working to conserve the remaining battery power and prevent the first battery from excessively consuming power and entering a deep discharge state.
[0086] Optionally, for the operation of the vehicle's Sentry Mode, when the power battery (usually a high-voltage battery) is below 15% SOC, it indicates that the power battery is insufficient to support the vehicle's daily starting or running needs, but Sentry Mode still requires power to maintain its operation. In this case, the first battery needs to have enough power to support the operation of Sentry Mode.
[0087] Optionally, when the vehicle is powered off and the solar photovoltaic panels can receive sunlight, the panels convert sunlight into electrical energy, which is then used to charge the first battery or directly power the Sentry Mode operation via a charging conversion controller. This setup allows the vehicle to maintain the monitoring system's operation using natural energy sources when no external power source is available.
[0088] Optionally, if the solar photovoltaic panels cannot generate enough power at night or in cloudy weather, the first battery will independently power the Sentinel Mode. When fully charged, the first battery can support up to 10 hours of operation in Sentinel Mode, providing the vehicle with the ability to perform a degree of safety monitoring even without sunlight or charging opportunities.
[0089] In the battery charging system of the vehicle described in this application, intelligent energy scheduling is achieved by monitoring the status of the power battery and the first battery, combined with the availability of solar photovoltaic panels. This protects the minimum power requirements of the power battery while making full use of solar energy resources, thus improving the overall energy efficiency and environmental adaptability of the system. Even when the power battery charge is very low, the sentry mode can still receive an effective power supply, which greatly enhances the vehicle's safety protection capabilities, allowing users to remain vigilant about the vehicle's surroundings even when it is parked for a long time.
[0090] 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. Furthermore, the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation portals are provided for users to choose to authorize or refuse.
[0091] According to an embodiment of this application, an embodiment of a charging device for a battery in a vehicle is provided. It should be noted that the device can be used to perform the above-described charging method for a battery in a vehicle.
[0092] Figure 3 This is a schematic diagram of a battery charging device in a vehicle according to an embodiment of this application. Figure 3 As shown, the battery charging device 300 in the vehicle may include: a first determining unit 301, a control unit 302, a detection unit 303, a second determining unit 304, and a charging unit 305.
[0093] The first determining unit 301 is used to determine the working state of the photovoltaic panel in the vehicle in response to the vehicle being in a turned-off state, wherein the photovoltaic panel is used to convert solar energy into electrical energy in the working mode.
[0094] Control unit 302 is configured to control the photovoltaic panel to charge a first battery in the vehicle in response to an operating status indication that the photovoltaic panel is in an operating mode, wherein the first battery is used to supply power to electrical equipment in the vehicle when the vehicle is turned off.
[0095] The detection unit 303 is used to detect the state of charge of the first battery and the state of charge of the second battery in the vehicle during the process of the photovoltaic panel charging the first battery. The second battery is used to supply power to the function controller in the vehicle.
[0096] The second determining unit 304 is used to determine a battery charging strategy for the vehicle based on the state of charge of the first battery and the state of charge of the second battery, wherein the battery charging strategy is used to indicate the rules for charging the second battery.
[0097] The charging unit 305 is used to charge the second battery according to the battery charging strategy.
[0098] Optionally, the second determining unit 304 is further configured to: in response to the state of charge of the first battery indicating that the ratio of the remaining charge of the first battery to the total charge of the first battery is greater than or equal to a first charge ratio, and the state of charge of the second battery indicating that the ratio of the remaining charge of the second battery to the total charge of the second battery is less than or equal to the first charge ratio, determine the battery charging strategy as controlling the photovoltaic panel to switch from charging the first battery to charging the second battery; and charge the second battery according to the battery charging strategy.
[0099] Optionally, the device 300 is further configured to: detect the state of charge of the second battery during the charging process of the second battery; and determine the battery charging strategy to control the photovoltaic panel to switch from charging the second battery to charging the first battery in response to the state of charge of the second battery indicating that the ratio of the remaining charge of the second battery to the total charge of the second battery is greater than a second charge ratio.
[0100] Optionally, the device 300 is further configured to: detect the state of charge of the second battery in response to a first period of continuous charging of the second battery; wake up the vehicle's power battery in response to a state of charge indication of the second battery indicating that the ratio of the remaining charge of the second battery to the total charge of the second battery is less than a second charge ratio; and control the power battery to charge the second battery.
[0101] Optionally, the device 300 is also used to control the photovoltaic panels to supply power to electrical equipment in the vehicle.
[0102] Optionally, the device 300 is further configured to: in response to the state of charge indication of the first battery indicating that the ratio of the remaining charge of the first battery to the total charge of the first battery is less than a third charge ratio, and the continuous discharge duration of the first battery is greater than a second duration, control the first battery to prohibit it from supplying power to electrical equipment in the vehicle, wherein the third charge ratio is less than the first charge ratio.
[0103] Optionally, the device 300 is further configured to: in response to the state of charge (SBC) indicator of the power battery in the vehicle indicating that the ratio of the remaining charge of the power battery to the total charge of the power battery is less than a fourth charge ratio, and the photovoltaic panel is in operating mode, control the photovoltaic panel to supply power to the vehicle's detection system, wherein the vehicle's detection system is used to detect environmental information within a preset range around the vehicle in sentry mode; or, in response to the SBC indicator of the power battery indicating that the ratio of the remaining charge of the power battery to the total charge of the power battery is less than a fourth charge ratio, the SBC indicator of the first battery indicating that the ratio of the remaining charge of the first battery to the total charge of the first battery is greater than a first charge ratio, and the photovoltaic panel is in non-operating mode, control the first battery to supply power to the vehicle's detection system, wherein the fourth charge ratio is lower than a third charge ratio.
[0104] In the battery charging device of the vehicle described in this application, a photovoltaic panel is introduced. When the vehicle is off, the operating status of the photovoltaic panel is determined. If the photovoltaic panel is in working mode, it means that the photovoltaic panel can convert solar energy into electrical energy. In this case, the photovoltaic panel can be prioritized to charge the first battery in the vehicle, so that the first battery can supply power to the electrical equipment in the vehicle, supporting the operation of the electrical equipment in the vehicle when the vehicle is off. During the process of supplying power to the first battery, the power supply strategy for the second battery can also be determined according to the state of charge of the first and second batteries to avoid the risk of the second battery being depleted due to prolonged inactivity, ensuring that the vehicle can start smoothly at any time, improving the reliability and safety of the vehicle. That is, in this application, by introducing a photovoltaic panel and an intelligent battery management strategy, the dependence on the vehicle's power battery is reduced, ensuring that the vehicle has a stable power supply in any state, thereby solving the technical problem in related technologies that the power battery cannot meet the vehicle's power demand when the state of charge of the power battery is low.
[0105] Embodiments of this application also provide a vehicle, including: a memory storing an executable program; and a processor for running the program, wherein the program executes the methods described in various embodiments of this application when it runs.
[0106] Embodiments of this application also provide a computer-readable storage medium including a stored executable program, wherein, when the executable program is running, it controls the device where the computer-readable storage medium is located to perform the methods of various embodiments of this application.
[0107] Embodiments of this application also provide a computer program product, including a computer program that, when executed by a processor, implements the methods of various embodiments of this application.
[0108] Embodiments of this application also provide a computer program product, including a non-volatile computer-readable storage medium for storing a computer program that, when executed by a processor, implements the methods in various embodiments of this application.
[0109] Embodiments of this application also provide a computer program that, when executed by a processor, implements the methods described in the various embodiments of this application.
[0110] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0111] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.
[0112] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0113] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0114] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it 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 includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute 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, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0115] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A method of charging a battery in a vehicle, characterized by, The method comprises: determining, in response to the vehicle being in an engine-off state, an operating state of a photovoltaic panel in the vehicle, wherein the photovoltaic panel is configured to convert solar energy into electrical energy in an operating mode; controlling, in response to the operating state indicating that the photovoltaic panel is in the operating mode, the photovoltaic panel to charge a first battery in the vehicle, wherein the first battery is configured to supply power to electrical equipment in the vehicle when the vehicle is in the engine-off state; detecting, during the charging of the first battery by the photovoltaic panel, a state of charge of the first battery and a state of charge of a second battery in the vehicle, wherein the second battery is configured to supply power to a function controller in the vehicle; determining, based on the state of charge of the first battery and the state of charge of the second battery, a battery charging strategy for the vehicle, wherein the battery charging strategy is configured to indicate a rule for charging the second battery; charging the second battery according to the battery charging strategy.
2. The method of claim 1, wherein, The determining of the battery charging strategy based on the state of charge of the first battery and the state of charge of the second battery comprises: in response to the state of charge of the first battery indicating that a ratio of a remaining amount of the first battery to a total amount of the first battery is greater than or equal to a first amount ratio, and the state of charge of the second battery indicating that a ratio of a remaining amount of the second battery to a total amount of the second battery is less than or equal to the first amount ratio, determining the battery charging strategy as controlling the photovoltaic panel to switch from charging the first battery to charging the second battery; charging the second battery according to the battery charging strategy.
3. The method of claim 2, wherein, The method further comprises: detecting, during the charging of the second battery, the state of charge of the second battery; in response to the state of charge of the second battery indicating that the ratio of the remaining amount of the second battery to the total amount of the second battery is greater than a second amount ratio, determining the battery charging strategy as controlling the photovoltaic panel to switch from charging the second battery to charging the first battery, wherein the second amount ratio is greater than the first amount ratio.
4. The method of claim 2, wherein, The method further comprises: in response to the second battery being continuously charged for a first time duration, detecting the state of charge of the second battery; in response to the state of charge of the second battery indicating that the ratio of the remaining amount of the second battery to the total amount of the second battery is less than a second amount ratio, waking up a power battery of the vehicle; controlling the power battery to charge the second battery.
5. The method of claim 1, wherein, In response to the operating state indicating that the photovoltaic panel is in the operating mode, the method further comprises: controlling the photovoltaic panel to supply power to the electrical equipment in the vehicle.
6. The method of claim 1, wherein, The method further comprises: in response to the state of charge of the first battery indicating that the ratio of the remaining amount of the first battery to the total amount of the first battery is less than a third amount ratio, and a continuous discharging time duration of the first battery being greater than a second time duration, controlling the first battery to prohibit supplying power to the electrical equipment in the vehicle, wherein the third amount ratio is less than the first amount ratio.
7. The method of claim 1, wherein, The method further comprises: in response to the state of charge of the power battery indicating that a ratio of a remaining amount of the power battery to a total amount of the power battery is less than a fourth amount ratio, and the photovoltaic panel being in the working mode, controlling the photovoltaic panel to supply power to a detection system of the vehicle, wherein the detection system of the vehicle is configured to detect environmental information within a preset range around the vehicle in a sentinel mode, or, in response to the state of charge of the power battery indicating that the ratio of the remaining amount of the power battery to the total amount of the power battery is less than the fourth amount ratio, the state of charge of the first battery indicating that a ratio of a remaining amount of the first battery to a total amount of the first battery is greater than a first amount ratio, and the photovoltaic panel being in a non-working mode, controlling the first battery to supply power to the detection system of the vehicle, wherein the fourth amount ratio is lower than a third amount ratio.
8. A device for charging a battery in a vehicle, characterized in that The method comprises: a first determining unit configured to determine a working state of a photovoltaic panel in a vehicle in response to the vehicle being in an engine-off state, wherein the photovoltaic panel is configured to convert solar energy into electric energy in a working mode; a control unit configured to control the photovoltaic panel to charge a first battery in the vehicle in response to the working state indicating that the photovoltaic panel is in the working mode, wherein the first battery is configured to supply power to electrical equipment in the vehicle when the vehicle is in the engine-off state; a detection unit configured to detect a state of charge of the first battery and a state of charge of a second battery in the vehicle during the charging of the first battery by the photovoltaic panel, wherein the second battery is configured to supply power to a function controller in the vehicle; a second determining unit configured to determine a battery charging strategy of the vehicle based on the state of charge of the first battery and the state of charge of the second battery, wherein the battery charging strategy is configured to indicate a rule of charging the second battery; a charging unit configured to charge the second battery according to the battery charging strategy.
9. A vehicle characterized by comprising: The method comprises: a memory storing an executable program; a processor configured to run the program, wherein the program is configured to execute the method of any one of claims 1 to 7 when the program is run.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium comprises a stored executable program, wherein the executable program is configured to control a device in which the storage medium is located to execute the method of any one of claims 1 to 7 when the executable program is run.