Storage battery charging method and device, electronic equipment and computer readable storage medium

By switching the charging and wake-up mode according to the wake-up state of the battery sensor, using the discharge current or power to wake up the main controller, the problem of inaccurate power measurement and high passive wake-up cost in the prior art is solved, and the charging efficiency and Reduces wake-up costs.

CN119305425APending Publication Date: 2025-01-14SHANGHAI JUSHENG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310821722.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-05
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

The existing battery charging and wake-up method cannot accurately measure the power when the static power consumption is high, resulting in low charging efficiency and passive wake-up increases wake-up cost and vehicle power consumption.

Method used

By obtaining the wake-up state of the battery sensor, the main controller is awakened based on the discharge current when it is not awakened, or the main controller is awakened based on the power when it is awakened, the wake-up method is switched to improve charging efficiency and reduce costs.

Benefits of technology

It realizes charging and wake-up coverage in different scenarios, improves battery charging efficiency, and reduces wake-up costs and vehicle power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119305425A_ABST
    Figure CN119305425A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a storage battery charging method and device, electronic equipment and a computer readable storage medium, and the method comprises the steps: obtaining a wake-up state of a storage battery sensor, and waking up a main controller based on the discharge current of a storage battery in response to the wake-up state being non-wake-up, so as to charge the storage battery; or the main controller is awakened based on the electric quantity of the storage battery in response to the awakening state to charge the storage battery. Therefore, the main controller is awakened to charge the storage battery based on different modes when the storage battery sensor is in different awakening states, the charging efficiency of the storage battery can be improved, and the awakening cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle technology, and in particular to a battery charging method, device, electronic equipment and computer-readable storage medium. Background Art

[0002] As the level of intelligence of electric vehicles increases, the static consumption of the whole vehicle is also increasing. Therefore, how to timely charge and wake up the battery and realize intelligent charging is of great significance to the use and development of electric vehicles. The charging wake-up methods in the prior art often include two methods: active wake-up and passive wake-up. In active wake-up, the battery power is measured by the battery sensor, and the main controller is actively awakened to charge the battery when the battery power is detected to be in a low power state. In passive wake-up, the main controller is regularly awakened to check the voltage or power measured by the battery sensor, and the battery is charged when the voltage or power meets the conditions.

[0003] However, in active wake-up, most existing battery sensors need to be learned to ensure the accuracy of battery power measurement before they are officially used. However, battery sensor learning can only be completed when the static power consumption of the vehicle is lower than a certain value and lasts for a period of time. When the static power consumption is large, learning cannot be performed, which results in the failure of charging operations in low-power states. In passive wake-up, the multiple wake-ups caused by timed wake-up will increase the probability of being unable to sleep after wake-up, and is not conducive to the battery sensor's accurate judgment of the vehicle's power and battery status. At the same time, since the main controller with a timing function needs to be woken up regularly, the wake-up cost and vehicle power consumption will increase. Summary of the invention

[0004] In view of this, an object of the embodiments of the present invention is to provide a battery charging method, device, electronic device and computer-readable storage medium to improve the charging efficiency of the battery and reduce the wake-up cost.

[0005] In a first aspect, an embodiment of the present invention is intended to provide a battery charging method, the method comprising:

[0006] Acquire the wake-up state of the battery sensor, where the wake-up state includes wake-up state and non-wake-up state, where the non-wake-up state is used to indicate that the power measurement accuracy of the battery sensor does not reach a preset accuracy;

[0007] In response to the awakening state being non-awakenable, awakening the main controller based on the discharge current of the battery to charge the battery; or

[0008] In response to the awakening state being awakenable, the main controller is awakened based on the battery power to charge the battery.

[0009] Furthermore, the method further comprises:

[0010] The battery power and a learning state signal of the battery are obtained, wherein the learning state signal is used to indicate that the power measurement accuracy of the battery sensor reaches a preset accuracy.

[0011] Further, the method of waking up the main controller based on the discharge current of the battery includes:

[0012] In response to a discharge current of the battery reaching a current threshold, determining a charging state of the battery according to the battery power;

[0013] In response to the charging state being to be charged, the battery is charged.

[0014] Further, the battery-based wake-up current wake-up main controller also includes:

[0015] In response to a discharge current of the battery being less than a current threshold, the battery sensor is controlled to perform learning to determine a wake-up state of the battery sensor.

[0016] Furthermore, the method of waking up the main controller based on the discharge current of the battery also includes:

[0017] In response to the charging state being not charging, determining the wake-up state of the battery sensor;

[0018] In response to the awakening state being awakenable, the awakening mode of the main controller is switched from awakening based on discharge current to awakening based on battery power.

[0019] Furthermore, the switching of the awakening mode of the main controller from awakening based on discharge current to awakening based on battery power includes:

[0020] The current threshold of the battery is assigned an invalid value to switch the awakening mode of the main controller from awakening based on discharge current to awakening based on battery power.

[0021] Further, waking up the main controller based on the battery power to charge the battery includes:

[0022] Determining a charging state of the battery according to the battery charge;

[0023] In response to the charging state being to be charged, the battery is charged.

[0024] Further, determining the charging state of the battery according to the battery power includes:

[0025] In response to the battery power being lower than a power threshold, determining that the charging state of the battery is to be charged;

[0026] In response to the battery power not being lower than the power threshold, determining that the charging state of the battery is not charging.

[0027] Furthermore, the method further comprises:

[0028] In response to the battery charging being completed, the vehicle is controlled to go into sleep mode.

[0029] In a second aspect, an embodiment of the present invention is intended to provide a battery charging system, the system comprising:

[0030] A battery sensor is configured to obtain a discharge current and a battery power of the battery, and to perform charging wake-up based on the discharge current and the battery power of the battery;

[0031] A main controller is configured to obtain the wake-up state of the battery sensor, and in response to the wake-up state being non-wake-up, the sensor is awakened based on the discharge current of the battery to charge the battery; or in response to the wake-up state being wake-up, the sensor is awakened based on the battery power to charge the battery, wherein the wake-up state includes wake-up and non-wake-up, and the non-wake-up is used to characterize that the power measurement accuracy of the battery sensor does not reach a preset accuracy.

[0032] In a third aspect, an embodiment of the present invention is intended to provide a vehicle, the vehicle comprising:

[0033] the vehicle body; and

[0034] A battery charging system as described above.

[0035] In a fourth aspect, an embodiment of the present invention is intended to provide a battery charging device, the device comprising:

[0036] A state determination unit, used to obtain a wake-up state of the battery sensor, wherein the wake-up state includes wake-up state and non-wake-up state, wherein the non-wake-up state is used to indicate that the power measurement accuracy of the battery sensor does not reach a preset accuracy;

[0037] A first awakening unit, configured to awaken the main controller based on the discharge current of the battery in response to the awakening state being non-awakenable, so as to charge the battery;

[0038] The second awakening unit is used for waking up the main controller based on the battery power in response to the awakening state being awakenable, so as to charge the battery.

[0039] In a fifth aspect, an embodiment of the present invention aims to provide a computer program product, wherein the computer program product comprises a computer program / instructions, and when the computer program / instructions are executed by a processor, the method as described in any one of the above items is implemented.

[0040] In a sixth aspect, an embodiment of the present invention aims to provide a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps as described in any one of the above items are implemented.

[0041] The technical solution of the embodiment of the present invention obtains the wake-up state of the battery sensor, and in response to the wake-up state being non-wake-up, wakes up the main controller based on the discharge current of the battery, or in response to the wake-up state being wake-up, wakes up the main controller based on the battery power to charge the battery. Therefore, by waking up the main controller in different ways when the battery sensor is in different wake-up states to charge the battery, the charging wake-up coverage scenarios can be more comprehensive, meeting the charging requirements of different scenarios, thereby improving the charging efficiency of the battery. At the same time, the above method can avoid frequent wake-ups and reduce the wake-up cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The above and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:

[0043] Figure 1 is a schematic diagram of a battery charging system according to an embodiment of the present invention;

[0044] Figure 2 is a flow chart of a battery charging method according to an embodiment of the present invention;

[0045] Figure 3 is a flow chart of a current wake-up charging method according to an embodiment of the present invention;

[0046] Figure 4 is a flow chart of a method for waking up charging with a power level according to an embodiment of the present invention;

[0047] Figure 5 is a schematic diagram of switching between different charging wake-up methods according to an embodiment of the present invention;

[0048] Figure 6 is a flow chart of a vehicle main controller charging wake-up method according to an embodiment of the present invention;

[0049] Figure 7 is a flow chart of a battery charging process according to an embodiment of the present invention;

[0050] Figure 8 Schematic diagram of a battery charging device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0051] The present application is described below based on embodiments, but the present application is not limited to these embodiments. In the detailed description of the present application below, some specific details are described in detail. It is possible for those skilled in the art to fully understand the present application without the description of these details. In order to avoid confusing the essence of the present application, known methods, processes, flows, components and circuits are not described in detail.

[0052] In addition, persons of ordinary skill in the art will appreciate that the drawings provided herein are for illustration purposes and are not necessarily drawn to scale.

[0053] Unless the context clearly requires otherwise, the words "include", "comprising" and similar words throughout the application should be interpreted as including rather than exclusive or exhaustive; that is, the meaning is "including but not limited to".

[0054] In the description of this application, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of this application, unless otherwise specified, the meaning of "plurality" is two or more.

[0055] The solutions described in this specification and in the examples, if they involve the processing of personal information, will be processed on the premise of having a legal basis (such as obtaining the consent of the subject of personal information, or being necessary for the performance of a contract, etc.), and will only be processed within the scope of regulations or agreements. If a user refuses to process personal information other than the necessary information for basic functions, it will not affect the user's use of basic functions.

[0056] The names and uses of the terms used in this application are explained as follows.

[0057] BMS, battery management system controller, a controller used for power battery management.

[0058] DCDC, a DC conversion controller, is used to convert high voltage current into low voltage DC power (12V nominal).

[0059] BCM, body control unit, is responsible for monitoring the status of the front hood.

[0060] VDP, the vehicle domain controller, is responsible for intelligent charging and wake-up logic.

[0061] IBS, the battery sensor, is responsible for detecting battery information and waking up the main node when the battery is low.

[0062] CDP, cockpit domain controller, is responsible for display and data upload.

[0063] The battery capacity soc is an important indicator of battery charging. In practical applications, the battery capacity is often used to determine whether the battery needs to be charged. Taking the use of the battery in the vehicle as an example, before charging begins, the battery capacity is first measured by the battery sensor, and the main controller is actively awakened to charge the battery when the battery capacity is detected to be low; or the main controller is awakened regularly to check the voltage or capacity measured by the battery sensor, and the battery is charged when the voltage or capacity meets the conditions, so that the vehicle is awakened and the battery is charged through the power battery in the vehicle.

[0064] However, since the battery sensor cannot directly measure the battery power, it is necessary to convert and calculate the parameters such as voltage, current or battery temperature directly measured by the battery sensor to determine it. When the battery sensor is used in conjunction with the vehicle, it is necessary to first learn the process of measuring the power of the battery sensor to ensure that the battery power measured by the battery sensor is more accurate. However, the battery sensor can only complete learning after the static power consumption of the whole vehicle is lower than the learning threshold (for example, the static discharge current is lower than a few hundred milliamperes, and the learning thresholds of battery sensors produced by different manufacturers may be different) for a period of time (such as 4 hours), thereby ensuring the accuracy of measuring the battery power. When the discharge current is larger than the learning threshold, the battery sensor cannot complete learning, nor can it output the accurate battery power, and thus cannot wake up the main controller to charge the battery by active wake-up. In other words, the existing active wake-up method cannot perform charging wake-up when the static current is large, and cannot meet the vehicle charging needs. At the same time, the passive wake-up method will increase the probability of the scene that cannot be dormant after wake-up due to frequent wake-up, affecting the battery sensor's accurate judgment of the vehicle power or battery status, thereby affecting the charging efficiency. Moreover, the timed awakening of the battery sensor generally requires the main controller to have a timing function, which increases the cost of the main controller and increases the power consumption of the vehicle compared to active awakening. In view of this, the embodiment of the present invention aims to provide a battery charging method to improve the charging efficiency of the battery and reduce the awakening cost.

[0065] Figure 1 Schematic diagram of a battery charging system according to an embodiment of the present invention. Figure 1 As shown, the battery charging system in this embodiment includes a battery management system controller 1 (BMS), a DC conversion controller 2 (DCDC), a body controller 3 (BCM), a main controller 4 (VDP), a battery sensor 5 (IBS) and a cockpit domain controller 6 (CDP).

[0066] In this embodiment, the battery information (including battery discharge current, battery power and other information) is detected by the battery sensor 5, and the main controller 4 is awakened by the discharge current or battery power in the battery information when necessary. At the same time, in order to ensure the accuracy of the battery power measurement, in this embodiment, the battery sensor 5 continues to learn for a certain period of time when the discharge current is less than the current threshold, and sends a learning state signal to the main controller 4 after the learning is completed, so that the main controller 4 is awakened based on the battery power signal after receiving the learning state signal. And, when the learning of the battery sensor 5 is not completed, the main controller 4 is awakened based on the discharge current when the learning state signal is not received. Therefore, in this embodiment, the main controller can be awakened based on the battery power when the battery sensor learning is completed, and the main controller can be awakened based on the discharge current when the battery sensor learning is not completed, so that the awakening of the main controller can cover more scenes, thereby avoiding the occurrence of failure to wake up charging in scenes with large discharge currents and frequent awakening, which is conducive to improving charging efficiency and reducing awakening costs.

[0067] Optionally, in this embodiment, a communication connection is established between the main controller 4 and the battery sensor 5 via a LIN bus, the main controller 4 obtains battery information sent by the battery sensor via the LIN bus, and the battery sensor 5 wakes up the main controller via the LIN bus.

[0068] Furthermore, the main controller 4 in this embodiment can make the battery sensor wake up the main controller 4 according to the battery information and the wake-up threshold by assigning a wake-up threshold in advance. After being awakened by the battery sensor 5, the main controller 4 controls the battery management system controller 1 to charge the battery. When charging the battery, the battery management system controller 1 and the DC conversion controller 2 are awakened by the main controller 4, and the power battery is used as a power source to output electric energy to the battery. The DC conversion controller 2 converts the high voltage output of the power battery into low voltage electricity to charge the battery. At the same time, the power battery power and other information are sent to the main controller 4 through the battery management system controller 1, and the voltage conversion state information is sent to the main controller 4 through the DC conversion controller 2, so that the main controller 4 can monitor the charging state in real time. In addition, in order to ensure the safety of the charging process, when charging the battery, the main controller 4 will also wake up the body controller 3, detect the state of the vehicle front hood through the body controller 3, and charge the battery when the vehicle front hood is in a closed state. In addition, in this embodiment, the battery information and charging information uploaded by the main controller 4 are received by the cockpit domain controller 6, and the received battery information and charging information are intuitively displayed so that the user can quickly and timely understand the battery charging status, while ensuring the battery charging efficiency, improving the user's charging experience and vehicle use experience.

[0069] In another embodiment, the present invention provides a vehicle, the vehicle comprising a vehicle body and a battery charging system deployed on the vehicle body. The battery charging system is as described above. Figure 1 As shown in , I will not repeat it here.

[0070] Figure 2 FIG. 1 is a flow chart of a battery charging method according to an embodiment of the present invention. Figure 2 As shown, the battery charging method of this embodiment includes the following steps.

[0071] In step S100, the awakening state of the battery sensor is obtained, wherein the awakening state includes awakenable and non-awakenable, wherein non-awakenable is used to indicate that the battery sensor's power measurement accuracy does not reach a preset accuracy, and awakenable is used to indicate that the battery sensor's power measurement accuracy reaches a preset accuracy.

[0072] In this embodiment, the wake-up state of the battery sensor is determined by the power measurement learning result of the battery sensor. When the learning result is completed, the corresponding wake-up state is wakeable, and when the learning result is incomplete, the corresponding wake-up state is not wakeable.

[0073] Optionally, the battery sensor in this embodiment will send a learning status signal to the main controller after learning is completed (that is, the power measurement accuracy after learning reaches a preset accuracy), so that the main controller determines the wake-up state of the battery sensor based on whether it receives the learning status signal sent by the battery sensor.

[0074] In step S200, it is determined whether the wake-up state of the battery sensor is wake-up capable.

[0075] In this embodiment, the main controller determines that the wake-up state of the battery sensor is not wake-upable when the learning state signal sent by the battery sensor is not received, and determines that the wake-up state of the battery sensor is wake-upable after receiving the learning state signal sent by the battery sensor.

[0076] Further, in this embodiment, when it is determined that the wake-up state of the battery sensor is not wake-upable, step S300 is continued to be executed; when it is determined that the wake-up state of the battery sensor is wake-upable, step S400 is continued to be executed.

[0077] In step S300 , in response to the awakening state being non-awakenable, the main controller is awakened based on the discharge current of the battery to charge the battery.

[0078] In this embodiment, when the wake-up state of the battery sensor is not wakeable, it indicates that the battery power accuracy output by the battery sensor is lower than the preset accuracy, and the main controller cannot be awakened and the battery charging cannot be realized through the existing battery power active awakening method. Therefore, in order to realize timely charging of the battery and avoid damage to the battery due to power loss, in this embodiment, the main controller is awakened based on the discharge current of the battery to charge the battery.

[0079] Figure 3 FIG. 1 is a flow chart of a current wake-up charging method according to an embodiment of the present invention. Figure 3 As shown, in this embodiment, the main controller is awakened and the battery is charged through the following steps.

[0080] In step S210, the discharge current of the battery is obtained.

[0081] In this embodiment, the discharge current of the battery is detected by a battery sensor, thereby obtaining the discharge current of the battery.

[0082] In step S220, it is determined whether the discharge current reaches a current threshold.

[0083] In this embodiment, after obtaining the discharge current of the battery, the battery sensor determines whether the discharge current reaches the current threshold. When the discharge current reaches the current threshold, that is, the discharge current is greater than or equal to the current threshold, step S230 is executed; when the discharge current does not reach the current threshold, that is, the discharge current is less than the current threshold, step S230' is executed.

[0084] Optionally, the current threshold in this embodiment can be determined based on the battery usage experience when used for the first time, and then the main controller can calculate and adjust it based on the battery information in the historical charging process of the battery, and send it to the battery sensor through a bus (such as a LIN bus) for assignment. Among them, the current range corresponding to the current threshold must cover the current range that meets the learning conditions of the battery sensor, and leave a certain margin. For example, if the maximum current learned by the battery sensor is I, then the current threshold A1≥I.

[0085] In step S230 , in response to the discharge current reaching the current threshold, the main controller is awakened.

[0086] In this embodiment, when the battery sensor determines that the discharge current reaches the current threshold, it sends a wake-up signal to the main controller, so that the main controller wakes up based on the discharge current of the battery.

[0087] In step S240, the charging state of the battery is determined according to the battery power.

[0088] In this embodiment, after being awakened, the main controller obtains the battery power at the current moment by receiving the battery power detected by the battery sensor, and determines the battery charging state according to the battery power. Optionally, in this embodiment, when determining the battery charging state according to the battery power, the battery charging state is determined by comparing the measured battery power with a preset power threshold.

[0089] Further, in this embodiment, in response to the battery power being lower than the power threshold, that is, the battery power is less than the power threshold, the charging state of the battery is determined to be to be charged, and step S250 is continued to be executed; or in response to the battery power being not lower than the power threshold, that is, the battery power is greater than or equal to the power threshold, the charging state of the battery is determined to be not charging, and step S270 is continued to be executed.

[0090] It should be noted that although the battery power here may have an error with the actual power due to measurement accuracy, when the discharge current reaches the current threshold, the power consumption of the corresponding vehicle load is also large, and it can also be used as an important reference indicator to determine the charging state when charging is urgently needed. At the same time, the power threshold in this embodiment can be determined based on the battery usage experience when it is used for the first time, and then the main controller can calculate and adjust it based on the battery information in the historical charging process of the battery, and send it to the battery sensor through the bus (such as LIN bus) for assignment. For example, assuming that in the historical charging process, the battery power is mostly charged when it is soc1 (such as 30%), then soc1 can be used as the power threshold.

[0091] In step S250, in response to the charging state being to be charged, the battery is charged.

[0092] In this embodiment, when the battery is in the charging state of waiting to be charged, the main controller wakes up the power battery or other power source to intelligently charge the battery. When the power battery is charged, since the power battery provides high voltage power supply, it is necessary to wake up the voltage converter (DCDC) or other voltage conversion function module in the vehicle to convert the power output of the power battery into high and low voltage, and then charge the battery with the converted low voltage.

[0093] In step S260, it is determined whether the battery is fully charged.

[0094] In this embodiment, after charging the battery, the battery power is compared with the full-charge power to determine whether the battery power is fully charged. When the battery power reaches the full-charge power, it is determined that the battery is fully charged, and when the battery power is less than the full-charge power, it is determined that the battery is not fully charged.

[0095] Optionally, in this embodiment, the battery charge can be periodically detected by a battery sensor (the duration corresponding to the periodic detection time can be determined based on battery usage experience and adjusted based on actual usage scenarios), and when the battery charge is detected to have reached a full charge, it is determined whether the battery is fully charged, and a charging completion signal is sent to the main controller, so that the main controller determines that the battery is fully charged after receiving the charging completion signal; the battery charge detected by the battery sensor can also be periodically obtained by the main controller, and the battery is determined to be fully charged when the battery charge reaches a full charge.

[0096] Further, after determining that the battery is fully charged, continue to execute step S270 to end charging; after determining that the battery is not fully charged, return to execute step S250 to continue charging the battery.

[0097] In step S270, the charging function is exited.

[0098] In this embodiment, when the battery does not need to be charged (ie, the charging state is not charging) or the battery needs to be charged and is fully charged, the main controller controls the relevant functional modules to exit the charging function.

[0099] Optionally, when charging the storage battery through the power battery, this embodiment will also judge the high-voltage connection request in the vehicle before exiting the charging function. After determining that there is no high-voltage connection request, the power battery is released and the charging function is exited.

[0100] In step S230 ′, in response to the discharge current being less than the current threshold, the battery sensor is controlled to perform learning to determine the wake-up state of the battery sensor.

[0101] In this embodiment, when the battery sensor determines that the discharge current reaches the current threshold, it indicates that the battery sensor meets the learning conditions, and the measurement accuracy of the battery power can be improved through learning, thereby converting the wake-up state of the battery sensor from non-wake-up to wake-up. Further, the battery sensor in this embodiment is configured to start learning immediately after the discharge current is less than the current threshold. After the discharge current is less than the current threshold and the duration reaches a certain length of time, it indicates that the battery sensor has completed learning (that is, the power measurement accuracy after learning can reach the preset accuracy), and the corresponding battery sensor wake-up state can be converted from non-wake-up to wake-up.

[0102] In step S400 , in response to the wake-up state being wakeable, the main controller is woken up based on the battery power to charge the battery.

[0103] Figure 4 FIG. 1 is a flow chart of a method for waking up charging with a power level according to an embodiment of the present invention. Figure 4As shown, in this embodiment, the main controller is awakened and the battery is charged through the following steps.

[0104] In step S310, the battery power is obtained.

[0105] In this embodiment, the battery sensor obtains the battery power by detecting the battery power, so as to determine whether to wake up the main controller and charge the battery according to the battery power.

[0106] In step S320, it is determined whether the battery power is lower than a power threshold.

[0107] In this embodiment, after obtaining the battery power, the battery sensor determines whether to wake up the main controller and charge the battery by comparing the battery power with a preset power threshold to determine whether the battery power is lower than the power threshold.

[0108] Further, this embodiment continues to execute step S330 when it is determined that the battery power is lower than the power threshold, that is, the battery power is less than the power threshold; and continues to execute step S360 when it is determined that the battery power is not lower than the power threshold, that is, the battery power is greater than or equal to the power threshold.

[0109] In step S330 , in response to the battery power being lower than a power threshold, the main controller is awakened.

[0110] In this embodiment, when it is determined that the battery power is lower than the power threshold, that is, the battery power is less than the power threshold, it indicates that the battery power is low, and the main controller can be awakened by the battery sensor to charge the battery. Optionally, the battery sensor in this embodiment sends a wake-up signal to the main controller after determining that the battery power is lower than the power threshold, so that the main controller wakes up based on the battery power.

[0111] In step S340, the battery is intelligently charged.

[0112] In this embodiment, after being awakened, the main controller will continue to awaken the power battery or other power sources to intelligently charge the battery. When charging the battery through the power battery, since the power battery provides high voltage power supply, it is necessary to awaken the voltage converter (DCDC) or other voltage conversion function modules in the vehicle to convert the power output of the power battery into high and low voltage, and then charge the battery through the converted low voltage.

[0113] In step S350, it is determined whether the battery is fully charged.

[0114] In this embodiment, after charging the battery, the method for determining whether the battery is fully charged may be the same as the above method, which will not be described in detail here.

[0115] Further, after determining that the battery is fully charged, continue to execute step S360 to end charging; after determining that the battery is not fully charged, return to execute step S340 to continue charging the battery.

[0116] In step S360, the charging function is exited.

[0117] In this embodiment, the operation of exiting the charging function may occur before the main controller is awakened, or after the main controller is awakened. Before the main controller is awakened, in response to the battery power not being lower than the power threshold, that is, when the battery power is greater than or equal to the power threshold, it indicates that the battery power is sufficient, and there is no need to wake up the main controller to charge the battery, and the charging function can be exited. Alternatively, after the main controller is awakened and the battery power is fully charged, the charging function is exited.

[0118] The technical solution of the embodiment of the present invention obtains the wake-up state of the battery sensor, and in response to the wake-up state being non-wake-up, wakes up the main controller based on the discharge current of the battery, or in response to the wake-up state being wake-up, wakes up the main controller based on the battery power to charge the battery. Therefore, by waking up the main controller in different ways to charge the battery when the battery sensor is in different wake-up states, the charging efficiency of the battery can be improved and the wake-up cost can be reduced.

[0119] In the charging wake-up method based on the discharge current to wake up the main controller, there is no necessary relationship between the discharge current being greater than the current threshold and the battery charge being less than the charge threshold, that is, the battery charge when the discharge current is large is not necessarily low enough to require charging. Therefore, when the discharge current is greater than the current threshold and the main controller is awakened, it is not necessarily necessary to charge. The main controller will have an invalid wake-up situation, and the wake-up will generate some energy consumption. In the wake-up method based on the battery charge, the battery sensor will wake up the main controller when the charge is low, and immediately charge the battery through the main controller after the wake-up. Therefore, the method for charging wake-up based on the battery charge is simpler than the wake-up steps of the charging wake-up based on the change-point current, the wake-up is more effective, and the corresponding energy consumption is reduced, and the charging cost is lower. Therefore, in this embodiment, the battery charge wake-up is used as the mainstream wake-up method, and the discharge current wake-up is used as a supplementary wake-up method when the battery sensor cannot be awakened (that is, the battery sensor's charge measurement accuracy does not reach the preset accuracy). While making the charging wake-up cover more comprehensive scenarios, it can prevent the main controller from being awakened by the battery charge, and when the discharge current is too large, the battery consumes power too quickly, resulting in a power shortage but cannot be charged in time.

[0120] Figure 5 Schematic diagram of switching between different charging wake-up methods in an embodiment of the present invention. Figure 5As shown, in order to ensure smooth switching between different charging wake-up modes, the present embodiment provides a guarantee for switching between different charging wake-up modes by adopting a method of using current thresholds with different assignments in different scenarios. Optionally, in the present embodiment, the current wake-up threshold (i.e., current threshold) of the discharge current is set by default to an initial value FF (i.e., invalid value FF), so that when the battery sensor can be awakened, the main controller is awakened based on the battery power to charge the battery, and at the same time, the main controller can be prevented from being awakened based on the discharge current. Furthermore, when the battery power can be awakened, the discharge current change is monitored in real time in the present embodiment. When the discharge current is greater than the effective value A1 of the current threshold, the current state of the vehicle is recorded as a fault state, so as to facilitate understanding of the vehicle energy consumption according to the abnormal state of the discharge current.

[0121] At the same time, when the battery sensor cannot be awakened, in this embodiment, the current threshold corresponding to the discharge current is first set to the effective value A1, so as to wake up the main controller based on the discharge current, and then determine whether to continue to use the charging method after awakening with the battery replacement current or switch to the charging method after awakening with the battery power to charge the battery by judging the awakening state of the battery sensor after the main controller is awakened. Furthermore, after waking up the main controller based on the discharge current and judging that the battery sensor can be awakened, the current threshold is reassigned to the invalid value FF, the discharge current is stopped to wake up the main controller, and the vehicle is controlled to sleep, and then the main controller is awakened based on the battery power, and the main controller is awakened to charge the battery when the battery power is lower than the power threshold. Alternatively, after waking up the main controller based on the discharge current and judging that the battery sensor cannot be awakened, continue to judge whether the battery is charged based on the charging method corresponding to the discharge current awakening, and charge the battery when the battery power is lower than the power threshold.

[0122] Therefore, in this embodiment, it is possible to preferentially use the method of waking up the main controller based on the battery power to charge the battery, and judge the wake-up status of the battery sensor after waking up through the battery replacement current so that the battery sensor can wake up the main controller based on the battery power as soon as possible to charge the battery after waking up. While meeting the charging wake-up and charging requirements, it is beneficial to reduce the number of times the main controller is awakened without charging, thereby reducing vehicle energy consumption.

[0123] Figure 6 FIG. 1 is a flow chart of a method for waking up a vehicle main controller by charging according to an embodiment of the present invention. Figure 6 As shown, the vehicle main controller charging wake-up method in this embodiment includes the following steps.

[0124] In step S410, the entire vehicle goes into sleep mode.

[0125] In step S420, it is determined whether the battery sensor can be awakened.

[0126] In this embodiment, the battery sensor uses self-learning to make the battery power accuracy reach the preset accuracy. When the power measurement accuracy reaches the preset accuracy, the learning is completed. The corresponding battery sensor has the ability to wake up and can directly wake up the main controller when the battery power is low, that is, wake up the main controller based on the battery power. At the same time, in order to facilitate waking up the main controller, after learning is completed, the battery sensor will send a learning status signal to the main controller to let the main controller know that the battery sensor can be woken up.

[0127] Further, in this embodiment, when it is determined that the battery sensor cannot be awakened, step S430 is executed; when it is determined that the battery sensor can be awakened, step S460 is executed.

[0128] In step S430, it is determined whether the discharge current reaches a current threshold.

[0129] In this embodiment, the magnitude of the discharge current reflects the energy consumption of the vehicle. When the discharge current is large, it indicates that the vehicle consumes more energy and has a strong demand for charging. It is necessary to replenish the battery in time to avoid battery depletion. At the same time, since the battery sensor can learn the battery power measurement accuracy when the discharge current is less than the learning current limit, the learning can be completed when the learning time continues for a certain period of time, so that the battery sensor has the ability to wake up. Therefore, in this embodiment, the learning current limit of the battery sensor can be used as the current threshold for wake-up. When the battery sensor cannot be awakened, the discharge current is judged, and when it is determined that the discharge current is less than the learning current limit, step S440 is continued; when it is determined that the discharge current is not less than the learning current limit, step S450 is continued.

[0130] In step S440, in response to the discharge current being less than the current threshold, the battery sensor performs learning without waking up the main controller, waiting for the learning to be completed and having the ability to be awakened.

[0131] In this embodiment, the battery sensor can learn the battery power measurement accuracy when the discharge current is less than the learning current limit. The learning is completed when the learning time reaches a certain period of time, so that the battery sensor has the ability to be awakened.

[0132] In step S450 , in response to the discharge current being greater than or equal to the learned current limit value, the battery sensor wakes up the main controller through the discharge current, so that the main controller wakes up.

[0133] In step S460 , in response to the battery sensor being able to be awakened, the battery sensor continues to detect the battery power.

[0134] In this embodiment, since the purpose of waking up the main controller is to charge the battery, when the battery sensor can be awakened, the optimal charging time is determined by accurately and continuously detecting the battery power. This can ensure that the battery is charged in time and improve the charging efficiency while reducing the energy consumption caused by repeated awakening of the main controller and reducing the cost of waking up the main controller and charging the battery.

[0135] In step S470, it is determined whether the battery power is less than a power threshold.

[0136] In this embodiment, when it is determined that the battery power is less than the power threshold, step S480 is executed; when it is determined that the battery power is not greater than the power threshold, the execution returns to step S460.

[0137] In step S480, the battery sensor wakes up the main controller through the battery power.

[0138] In this embodiment, when the battery sensor detects that the battery power is less than the power threshold, it indicates that the battery power needs to be charged. At this time, the battery sensor will send a charging wake-up signal to the main controller to wake up the main controller, so that the main controller can charge the battery, so that the battery can continue to supply power to the vehicle load and ensure the normal use of the vehicle functions.

[0139] In step S490, the main controller is awakened.

[0140] In this embodiment, after the main controller is awakened, it controls the power battery or other power source to charge the battery to ensure that the battery has sufficient power to power the vehicle load, thereby ensuring the normal use of the vehicle functions and improving the user's vehicle experience.

[0141] The technical solution of this embodiment determines whether the battery sensor can be awakened and determines whether to wake up the main controller based on the battery power or the discharge current. It can wake up the main controller to charge the battery when the battery sensor is in different awakening states, meet the charging needs in different scenarios, and improve the battery charging efficiency. At the same time, by determining to wake up the main controller based on the battery power when the battery sensor can be awakened, and waking up the main controller to charge the battery when it is determined that the battery power is less than the power threshold, the battery sensor can be quickly awakened, and the battery can be quickly charged when the battery sensor can be awakened and the battery power is low, while improving the charging efficiency, reducing the awakening energy consumption, and reducing the awakening and charging costs. In addition, by determining to wake up the main controller based on the discharge current when the battery sensor cannot be awakened, waking up the main controller when the discharge current reaches the current threshold, and charging the battery through the awakened main controller when it is determined that the battery power is less than the power threshold, it can avoid the problem of battery power loss caused by excessive discharge current but unable to wake up the main controller to charge the battery in time, which is conducive to protecting the safe use of the battery and extending the battery life. Furthermore, by allowing the battery sensor to continue learning when the battery sensor cannot be awakened and the discharge current is lower than the current threshold, a learning opportunity can be provided for the battery sensor, so that the battery sensor can quickly acquire the ability to be awakened.

[0142] Figure 7 FIG. 1 is a flow chart of a battery charging process according to an embodiment of the present invention. Figure 7 As shown, the battery charging process in this embodiment is implemented through the following steps.

[0143] In step S510, the entire vehicle goes into sleep mode.

[0144] In step S520, the battery sensor detects the discharge current of the battery.

[0145] In this embodiment, in order to avoid battery depletion due to excessive discharge current, the battery sensor detects the vehicle discharge current (ie, the battery discharge current) once every preset time T1.

[0146] In step S530, it is determined whether the discharge current reaches a current threshold.

[0147] In this embodiment, when the discharge current reaches the current threshold, step S540 is executed; when the discharge current does not reach the current threshold, the process returns to step S520.

[0148] In step S540, the battery sensor wakes up the main controller.

[0149] In this embodiment, the battery sensor wakes up the main controller when detecting that the discharge current is greater than or equal to the current threshold.

[0150] In step S550, the main controller determines whether the battery meets the charging conditions.

[0151] In this embodiment, the main controller determines whether the battery meets the charging condition based on the battery power detected by the battery sensor, and the charging condition is that the battery power is lower than the power threshold. When it is determined that the battery power is lower than the power threshold, it is determined that the battery meets the charging condition, and step S551 is executed; when it is determined that the battery power is not lower than the power threshold, it is determined that the battery does not meet the charging condition, and step S560 is executed.

[0152] In step S551, the main controller wakes up the power battery to intelligently charge the storage battery.

[0153] In step S552, after charging is completed, the main controller controls the entire vehicle to sleep.

[0154] In step S560, the main controller determines whether the battery sensor can be awakened.

[0155] In this embodiment, when the main controller receives a learning status signal sent by the battery sensor indicating that the power measurement learning has been completed, it determines that the battery sensor can be awakened and continues to execute step S570; when the main controller does not receive a learning status signal sent by the battery sensor indicating that the power measurement learning has been completed, it determines that the battery sensor cannot be awakened and continues to execute step S561.

[0156] In step S561, the main controller assigns the current threshold of the battery sensor to the effective value A1.

[0157] In step S562, the main controller controls the entire vehicle to sleep and returns to execute step S520.

[0158] In step S570, the main controller assigns the current threshold of the battery sensor to an invalid value FF.

[0159] In this embodiment, after the battery sensor can be awakened, the main controller assigns an invalid value to the battery sensor (that is, the current wake-up threshold corresponding to the discharge current is assigned to FF), so that after the battery sensor has the ability to be awakened, the main controller is awakened based on the battery power to charge the battery, instead of being awakened by the discharge current.

[0160] In step S580, the main controller controls the entire vehicle to sleep.

[0161] In step S590, the battery sensor detects the battery power every preset time T2.

[0162] Optionally, in this embodiment, the time period T2 during which the battery sensor detects the battery power and the time period T1 during which the battery sensor detects the discharge current can be set to the same duration or different durations, which is not limited here.

[0163] In step S5100, it is determined whether the battery power is less than a power threshold.

[0164] In this embodiment, when it is determined that the battery power is less than the power threshold, step S5110 is continued to be executed, otherwise the execution returns to step S590.

[0165] In step S5110, the battery sensor wakes up the main controller through the battery power.

[0166] In step S5120, the main controller wakes up the power battery to intelligently replenish the storage battery.

[0167] In step S5130, after charging is completed, the main controller controls the entire vehicle to sleep.

[0168] The technical solution of the embodiment of the present invention detects the discharge current of the battery, wakes up the main controller when the discharge current is large, and charges the battery when the battery power is lower than the power threshold, so as to avoid the battery being depleted due to the continuous excessive discharge current. When the discharge current is small and the battery sensor is judged to be awakenable, the charging awakening mode is switched from wake-up based on the discharge current to wake-up based on the battery power, so as to ensure that the battery is charged in time when the battery power is low, thereby improving the battery charging efficiency and further reducing the charging awakening cost.

[0169] Figure 8 Schematic diagram of a battery charging device according to an embodiment of the present invention. Figure 8 As shown, the battery charging device in this embodiment includes a state determination unit 10, a first awakening unit 20 and a second awakening unit 30. Among them, the state determination unit 10 is used to obtain the awakening state of the battery sensor, and the awakening state includes awakenable and non-awakenable, and non-awakenable is used to characterize that the power measurement accuracy of the battery sensor does not reach the preset accuracy. The first awakening unit 20 is used to wake up the main controller based on the discharge current of the battery in response to the awakening state being non-awakenable, so as to charge the battery. The second awakening unit 30 is used to wake up the main controller based on the battery power in response to the awakening state being awakenable, so as to charge the battery.

[0170] Optionally, the state determination unit 10 in this embodiment is further used to obtain the battery power and a learning state signal of the battery, and the learning state signal is used to indicate that the power measurement accuracy of the battery sensor reaches a preset accuracy.

[0171] Optionally, when waking up the main controller based on the discharge current of the battery, the first wake-up unit 20 in this embodiment is used to determine the charging state of the battery according to the battery power in response to the discharge current of the battery reaching the current threshold; or in response to the discharge current of the battery being less than the current threshold, control the battery sensor to learn to determine the wake-up state of the battery sensor. Further, when determining the charging state of the battery according to the battery power, the first wake-up unit 20 in this embodiment is specifically used to determine that the charging state of the battery is to be charged in response to the battery power being lower than the power threshold; in response to the battery power not being lower than the power threshold, determine that the charging state of the battery is not charged. Further, the first wake-up unit 20 is also used to charge the battery in response to the charging state being to be charged; or, in response to the charging state being not charged, determine the wake-up state of the battery sensor; in response to the wake-up state being wake-upable, switch the wake-up mode of the main controller from wake-up based on discharge current to wake-up based on battery power. Furthermore, the first awakening unit 20 is specifically used to assign the discharge current of the battery to an invalid value, so as to switch the awakening mode of the main controller from awakening based on the discharge current to awakening based on the battery power.

[0172] Optionally, the second awakening unit 30 in this embodiment is used to determine the charging state of the battery according to the battery power when waking up the main controller based on the battery power to charge the battery, and in response to the charging state being to be charged, charge the battery. When determining the charging state of the battery according to the battery power, it is specifically used to determine that the charging state of the battery is to be charged in response to the battery power being lower than the power threshold; and to determine that the charging state of the battery is not charged in response to the battery power being not lower than the power threshold.

[0173] Optionally, the battery charging device in this embodiment further includes a sleep control unit 40. The sleep control unit 40 is used to control the vehicle to sleep in response to completion of battery charging.

[0174] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices (equipment) or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application may adopt a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0175] The present application is described with reference to flowcharts of methods, apparatuses (devices) and computer program products according to embodiments of the present application. It should be understood that each process in the flowchart can be implemented by computer program instructions.

[0176] These computer program instructions may be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device that implements the process Figure 1 A function specified in a process or multiple processes.

[0177] These computer program instructions may also be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce the instructions for implementing the process Figure 1 A device that specifies functions in a process or multiple processes.

[0178] Another embodiment of the present invention relates to a non-volatile storage medium for storing a computer-readable program, wherein the computer-readable program is used for a computer to execute part or all of the above method embodiments.

[0179] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by specifying relevant hardware through a program, and the program is stored in a storage medium, including several instructions for a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0180] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A battery charging method, characterized in that: The method comprises: Acquire the wake-up state of the battery sensor, where the wake-up state includes wake-up state and non-wake-up state, where the non-wake-up state is used to indicate that the power measurement accuracy of the battery sensor does not reach a preset accuracy; In response to the awakening state being non-awakenable, awakening the main controller based on the discharge current of the battery to charge the battery; or In response to the awakening state being awakenable, the main controller is awakened based on the battery power to charge the battery.

2. The method according to claim 1, characterized in that The method further comprises: The battery power and a learning state signal of the battery are obtained, wherein the learning state signal is used to indicate that the power measurement accuracy of the battery sensor reaches a preset accuracy.

3. The method according to claim 1, characterized in that The method of waking up the main controller based on the discharge current of the battery comprises: In response to a discharge current of the battery reaching a current threshold, determining a charging state of the battery according to the battery power; In response to the charging state being to be charged, the battery is charged.

4. The method according to claim 3, characterized in that The battery-based wake-up current wake-up main controller also includes: In response to a discharge current of the battery being less than a current threshold, the battery sensor is controlled to perform learning to determine a wake-up state of the battery sensor.

5. The method according to claim 3, characterized in that: The main controller awakened based on the discharge current of the battery also includes: In response to the charging state being not charging, determining the wake-up state of the battery sensor; In response to the awakening state being awakenable, the awakening mode of the main controller is switched from awakening based on discharge current to awakening based on battery power.

6. The method according to claim 5, characterized in that The step of switching the awakening mode of the main controller from awakening based on discharge current to awakening based on battery power comprises: The current threshold of the battery is assigned an invalid value to switch the awakening mode of the main controller from awakening based on discharge current to awakening based on battery power.

7. The method according to claim 1, characterized in that The method of waking up the main controller based on the battery power to charge the battery includes: Determining a charging state of the battery according to the battery charge; In response to the charging state being to be charged, the battery is charged.

8. The method according to claim 3 or 7, characterized in that: Determining the charging state of the battery according to the battery power includes: In response to the battery power being lower than a power threshold, determining that the charging state of the battery is to be charged; In response to the battery power not being lower than the power threshold, determining that the charging state of the battery is not charging.

9. The method according to claim 1, characterized in that: The method further comprises: In response to the battery charging being completed, the vehicle is controlled to go into sleep mode.

10. A battery charging system, characterized in that: The system comprises: A battery sensor is configured to obtain a discharge current and a battery power of the battery, and to perform charging wake-up based on the discharge current and the battery power of the battery; A main controller is configured to obtain the wake-up state of the battery sensor, and in response to the wake-up state being non-wake-up, the sensor is awakened based on the discharge current of the battery to charge the battery; or in response to the wake-up state being wake-up, the sensor is awakened based on the battery power to charge the battery, wherein the wake-up state includes wake-up and non-wake-up, and the non-wake-up is used to characterize that the power measurement accuracy of the battery sensor does not reach a preset accuracy.

11. A vehicle, characterized in that: The vehicle comprises: the vehicle body; and The battery charging system as claimed in claim 10.

12. A battery charging device, characterized in that: The device comprises: A state determination unit, used to obtain a wake-up state of the battery sensor, wherein the wake-up state includes wake-up state and non-wake-up state, wherein the non-wake-up state is used to indicate that the power measurement accuracy of the battery sensor does not reach a preset accuracy; A first awakening unit, configured to awaken the main controller based on the discharge current of the battery in response to the awakening state being non-awakenable, so as to charge the battery; The second awakening unit is used for waking up the main controller based on the battery power in response to the awakening state being awakenable, so as to charge the battery.

13. A computer program product, characterized in that The computer program product comprises a computer program / instructions, and when the computer program / instructions are executed by a processor, the method according to any one of claims 1 to 9 is implemented.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps of any one of claims 1 to 9 are implemented.