Power shortage prevention method and device, electronic equipment and readable storage medium

By detecting the vehicle's ignition switch and sleep/wake status information, the system identifies and alerts users to the risk of power depletion, solving the technical challenge of preventing vehicle power depletion and improving vehicle reliability and user experience.

CN118906994APending Publication Date: 2024-11-08CHINA FAW CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411080358.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

When a vehicle's power supply fails to start, current technology typically only addresses the issue after the power loss has occurred, lacking timely preventative measures.

Method used

By acquiring information about the vehicle's ignition switch status and sleep/wake-up status, multiple abnormal conditions are detected, including improper user operation, abnormal vehicle network sleep, abnormal vehicle static current, and excessive parking time. The system then outputs alerts to prevent power depletion.

Benefits of technology

Timely detection and prevention of power depletion improve the vehicle user experience and reduce starting failures caused by power depletion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118906994A_ABST
    Figure CN118906994A_ABST
Patent Text Reader

Abstract

The invention relates to a power shortage prevention method and device, electronic equipment and a readable storage medium. The method comprises the steps that state information of an ignition switch in a vehicle and dormancy awakening state information of the vehicle are obtained; according to the state information of the ignition switch and the dormancy awakening state information, first detection is carried out on at least one abnormal condition in a plurality of abnormal conditions capable of causing the power shortage of the power supply in the vehicle, and prompt information used for indicating to process the abnormal condition detected by the first detection is output so as to prevent the power shortage of the power supply; acquiring electric quantity information of a power supply in the vehicle; and according to the sleep wake-up state information and the electric quantity information, carrying out second detection on abnormal conditions except the at least one abnormal condition in the plurality of abnormal conditions, and outputting prompt information for indicating to process the abnormal conditions detected by the second detection so as to prevent power shortage of the power supply. The method can prevent power shortage of the power supply.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of power failure, and in particular to a power failure prevention method, device, electronic device, computer-readable storage medium and computer program product. Background Art

[0002] With the increasing improvement of social economic level and people's material living standards, vehicles have been widely used in people's daily life scenes and have gradually become an indispensable means of transportation for people. However, power failure in the vehicle will cause the vehicle to fail to start, affecting the use of the vehicle. Although different OEMs have made strategic adjustments in the corresponding power supply management, the problem of power failure still exists.

[0003] In the traditional method, when power failure has occurred, the cause of power failure is usually checked based on the user's description. Therefore, there is an urgent need for a method to detect power failure in time to prevent power failure. Summary of the invention

[0004] Based on this, it is necessary to provide a power failure prevention method, device, electronic device, computer-readable storage medium and computer program product that can prevent power failure in response to the above technical problems.

[0005] In a first aspect, the present application provides a method for preventing power shortage, comprising: obtaining status information of an ignition switch in a vehicle and sleep / wake-up status information of the vehicle, the sleep / wake-up status information including at least one of time information when the vehicle is in sleep mode or time information when the vehicle is in wake-up mode; performing a first detection on at least one of multiple abnormal conditions that may cause power shortage in the vehicle based on the status information of the ignition switch and the sleep / wake-up status information, and outputting prompt information for instructing to handle the abnormal condition detected by the first detection, so as to prevent the power shortage; obtaining power supply information of the power supply in the vehicle; performing a second detection on abnormal conditions among the multiple abnormal conditions except for the at least one abnormal condition based on the sleep / wake-up status information and the power supply information, and outputting prompt information for instructing to handle the abnormal condition detected by the second detection, so as to prevent the power shortage.

[0006] In a second aspect, the present application also provides a power shortage prevention device, comprising: an information acquisition module, used to acquire status information of an ignition switch in a vehicle and sleep / wake-up status information of the vehicle, the sleep / wake-up status information including at least one of time information when the vehicle is in sleep mode or time information when the vehicle is in wake-up mode; an abnormal condition processing module, used to perform a first detection on at least one of multiple abnormal conditions that may cause power shortage in the vehicle according to the status information of the ignition switch and the sleep / wake-up status information, and output prompt information for indicating that processing is to be performed on the abnormal condition detected by the first detection, so as to prevent the power shortage; the information acquisition module is also used to acquire power quantity information of the power supply in the vehicle; the abnormal condition processing module is also used to perform a second detection on abnormal conditions among the multiple abnormal conditions except for the at least one abnormal condition according to the sleep / wake-up status information and the power quantity information, and output prompt information for indicating that processing is to be performed on the abnormal condition detected by the second detection, so as to prevent the power shortage.

[0007] In some embodiments, there is a first abnormal condition in the at least one abnormal condition, and the first abnormal condition is improper user operation. The abnormal condition processing module is also used to determine that the first abnormal condition is detected when it is determined based on the status information of the ignition switch and the sleep wake-up status information that the duration that the ignition switch is continuously in the off state reaches a first duration threshold, and determines that the wake-up frequency of the vehicle during the period when the ignition switch is continuously in the off state reaches a wake-up frequency threshold; when it is determined based on the status information of the ignition switch that the duration that the ignition switch is continuously in the on state reaches a second duration threshold, it is determined that the first abnormal condition is detected.

[0008] In some embodiments, there is a second abnormal condition in the at least one abnormal condition, and the second abnormal condition is a vehicle network dormancy abnormality. The abnormal condition processing module is also used to determine that the second abnormal condition is detected when, based on the status information of the ignition switch and the dormancy wake-up status information, it is determined that the duration for which the ignition switch has been continuously in the off state reaches a third duration threshold, and that no wake-up operation is generated for the vehicle during the period for which the ignition switch has been continuously in the off state, and the vehicle is in the wake-up state; obtain the status information of the switchable components in the vehicle; when, based on the dormancy wake-up status information and the status information of the switchable components, it is determined that the vehicle has switched from the dormant state to the wake-up state, and it is determined that the status of the switchable components in the vehicle has not changed when the vehicle is in the dormant state, it is determined that the second abnormal condition is detected.

[0009] In some embodiments, the vehicle status information includes the length of time the vehicle is in a dormant state, the power information includes the power of the power supply when the vehicle last entered the dormant state, and the abnormal conditions among the multiple abnormal conditions other than the at least one abnormal condition include a third abnormal condition, and the third abnormal condition is an abnormal static current of the entire vehicle; the abnormal condition processing module is also used to determine a first power of the power supply when the vehicle last entered the dormant state based on the dormant wake-up state information and the power information, and determine a second power of the power supply when switching from the dormant state last entered to the wake-up state; determine the static current value of the entire vehicle from the last time the vehicle entered the dormant state to the time it switched to the wake-up state based on the difference between the first power and the second power; when the static current value of the entire vehicle is greater than the static current value threshold of the entire vehicle, it is determined that the third abnormal condition is detected.

[0010] In some embodiments, the multiple abnormal conditions other than the at least one abnormal condition include a fourth abnormal condition, and the fourth abnormal condition is that the parking time is too long. The abnormal condition processing module is also used to determine the parking time of the vehicle based on the difference between the first power and the second power; when the proportion of the parked time of the vehicle to the parking time reaches a preset proportion, it is determined that the fourth abnormal condition is detected.

[0011] In some embodiments, the abnormal condition processing module is also used to obtain the capacity of the power supply; and determine the parking time of the vehicle based on the vehicle static current value threshold, the capacity, and the difference between the first power and the second power.

[0012] In a third aspect, the present application further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps in the above-mentioned power failure prevention method when executing the computer program.

[0013] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the above-mentioned power failure prevention method are implemented.

[0014] In a fifth aspect, the present application also provides a computer program product, including a computer program, which implements the steps in the above-mentioned power failure prevention method when executed by a processor.

[0015] The above-mentioned power failure prevention method, device, electronic device, computer-readable storage medium and computer program product obtain the status information of the ignition switch in the vehicle and the sleep-wake-up status information of the vehicle, the sleep-wake-up status information includes at least one of the time information when the vehicle is in the sleep state or the time information when the vehicle is in the wake-up state, and according to the status information of the ignition switch and the sleep-wake-up status information, perform a first detection on at least one abnormal condition among multiple abnormal conditions that may cause power failure in the vehicle, and output prompt information for indicating that the abnormal condition detected by the first detection is to be processed, so as to prevent power failure, obtain the power information of the power supply in the vehicle, and according to the sleep-wake-up status information and the power information, perform a second detection on abnormal conditions among multiple abnormal conditions except at least one abnormal condition, and output prompt information for indicating that the abnormal condition detected by the second detection is to be processed, so as to prevent power failure. Thus, power failure can be prevented by timely discovering the cause that may cause power failure. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 A diagram showing an application environment of a power failure prevention method in some embodiments;

[0018] Figure 2 A schematic diagram of a flow chart of a method for preventing power failure in some embodiments;

[0019] Figure 3 A schematic diagram of a flow chart for determining a third abnormal condition in some embodiments;

[0020] Figure 4 A schematic diagram of a flow chart of a power failure prevention method in other embodiments;

[0021] Figure 5 It is a structural block diagram of a power failure prevention device in some embodiments;

[0022] Figure 6 1 is a diagram of the internal structure of an electronic device in some embodiments. DETAILED DESCRIPTION

[0023] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0024] The power failure prevention method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. The application environment includes a vehicle and a terminal, and the power shortage prevention method provided in the present application can be executed by an electronic device in the vehicle. Specifically, the electronic device in the vehicle obtains the status information of the ignition switch in the vehicle and the sleep and wake-up status information of the vehicle, and the sleep and wake-up status information includes at least one of the time information when the vehicle is in a sleep state or the time information when the vehicle is in a wake-up state. According to the status information of the ignition switch and the sleep and wake-up status information, a first detection is performed on at least one abnormal condition among multiple abnormal conditions that may cause power shortage in the vehicle, and a prompt information for indicating that the abnormal condition detected by the first detection is to be processed is output to prevent power shortage, and the power information of the power supply in the vehicle is obtained. According to the sleep and wake-up status information and the power information, a second detection is performed on the abnormal conditions except at least one abnormal condition among multiple abnormal conditions, and a prompt information for indicating that the abnormal condition detected by the second detection is to be processed is output to prevent power shortage.

[0025] The vehicle may be any vehicle, such as a passenger car, bus, truck or tractor, a car, a sports utility vehicle, a truck or a bus, a fuel vehicle or a new energy vehicle, an unmanned vehicle, an automatic driving vehicle, a semi-automatic driving vehicle or a non-automatic driving vehicle. The electronic device includes but is not limited to a gateway in the vehicle. The terminal may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices and portable wearable devices. The IoT device may be a smart speaker, a smart TV, a smart air conditioner, a smart vehicle-mounted device, a projection device, etc. The portable wearable device may be a smart watch, a smart bracelet, a head-mounted device, etc. The head-mounted device may be a virtual reality (VR) device, an augmented reality (AR) device, smart glasses, etc.

[0026] In some embodiments, Figure 2 As shown, a method for preventing power failure is provided, which is applied to electronic devices in a vehicle, such as a gateway, and includes the following steps 202 to 208. Among them:

[0027] Step 202 : obtaining status information of an ignition switch in the vehicle and sleep / wake-up status information of the vehicle, wherein the sleep / wake-up status information includes at least one of time information when the vehicle is in a sleep state or time information when the vehicle is in a wake-up state.

[0028] Among them, the status information of the ignition switch and the sleep and wake-up status information of the vehicle reflect the vehicle status.

[0029] The ignition switch in the vehicle is the switch of the ignition system (usually using a key), which can freely open or close the main circuit of the ignition coil, and is also applicable to other electrical circuits. The ignition switch is commonly known as the master switch, master switch or master key, which is the main gate that controls the entire vehicle circuit system. The ignition switch is used to connect or disconnect the starter, ignition and electrical circuits. It ensures that the vehicle can start smoothly when needed and can safely shut down all electrical equipment when not needed.

[0030] The status information of the ignition switch includes the switch state and the duration of the switch state. The switch state of the ignition switch includes but is not limited to the IG OFF (i.e., high-voltage system power off) state and the IG ON (high-voltage system power on) state. The IG OFF state of the vehicle refers to the state in which the entire vehicle is not powered except for the normal fire (such as the memory function of the emergency light, clock, etc.). This is the lowest level of vehicle power supply, usually used when the vehicle is parked for a long time or for troubleshooting. The IG OFF state of the vehicle is the ignition power OFF mode. IG is the abbreviation of lgnition, which means "ignition". The IG ON state of the vehicle is the ignition power ON mode, which is a state of the vehicle's ignition gear. In the IG ON state, the vehicle's electronic systems, such as the instrument panel, audio, air conditioning, etc., can work normally, but the engine will not run. This provides the driver with an environment to prepare to start the engine, and can perform operations such as seat adjustment, rearview mirror adjustment, and navigation system setting.

[0031] Step 204, based on the status information of the ignition switch and the sleep-wake status information, perform a first detection on at least one of the multiple abnormal conditions that may cause power failure in the vehicle, and output prompt information for instructing to handle the abnormal condition detected by the first detection to prevent power failure.

[0032] The power source may be any device in the vehicle that provides electrical energy, and the power source is used to provide a stable working voltage for the electrical equipment of the vehicle. The power source includes but is not limited to a low-voltage battery in the vehicle. The low-voltage battery may be a 12V lead-acid battery used to start the vehicle.

[0033] The multiple abnormal conditions include a first abnormal condition, a second abnormal condition, a third abnormal condition and a fourth abnormal condition. The first abnormal condition is improper user operation, which includes but is not limited to frequent waking up of the vehicle. The second abnormal condition is abnormal vehicle network dormancy. The third abnormal condition is abnormal static current of the entire vehicle. Abnormal static current of the entire vehicle means that there is still current on the vehicle when the vehicle is in dormant state, and the current value exceeds the normal range. The fourth abnormal condition is too long parking time. The abnormal state detected by the first detection may be at least one of the first abnormal condition or the second abnormal condition.

[0034] Specifically, for each abnormal state detected by the first detection, the electronic device may send a prompt message to the user's terminal to instruct the user to handle the abnormal state detected by the first detection. Alternatively, the electronic device may display the prompt message on the instrument. For the first abnormal condition, the prompt message may be "Start the vehicle or do not frequently operate to wake up the vehicle" or "Please start the vehicle or the vehicle will be powered off in 3 minutes." For the second abnormal condition, the prompt message may be "The vehicle is abnormal, please return to the store for repair and inspection."

[0035] Step 206, obtaining power information of the power source in the vehicle.

[0036] The power information of the power source may include the power and capacity of the power source.

[0037] Specifically, electronic devices such as gateways can receive signal values ​​sent by various controllers of the vehicle and perform analysis and conversion. Taking the power source as a battery as an example, the information value may include battery voltage, battery current, battery SOC, vehicle static current, vehicle status, door status, hood status, trunk lid status, etc. Ignition switch status information, vehicle status information and power information of the power source. The SOC value of the battery, the full name of which is State of Charge, is also called the remaining power. It is used to reflect the remaining capacity of the battery. The SOC value is numerically defined as the ratio of the remaining capacity to the battery capacity, usually expressed as a percentage, and its value range is 0~1, i.e. 1%~100%.

[0038] Step 208, performing a second detection on abnormal conditions other than at least one abnormal condition among the multiple abnormal conditions according to the sleep / wake-up state information and the power information, and outputting prompt information for instructing to handle the abnormal condition detected by the second detection to prevent power shortage.

[0039] The abnormal state detected by the second detection may be at least one of the third abnormal condition or the fourth abnormal condition.

[0040] Specifically, for each abnormal state detected by the second detection, the electronic device may send a prompt message to the user's terminal to instruct the user to handle the abnormal state detected by the second detection. Alternatively, the electronic device may display the prompt message on the instrument. For the third abnormal condition, the prompt message may be "The vehicle is abnormal, please return to the store for repair and inspection." For the fourth abnormal condition, the prompt message may be "The vehicle is at risk of low power, please start the vehicle or charge it with an external power supply."

[0041] In the above-mentioned power failure prevention method, the state information of the ignition switch in the vehicle and the sleep-wake-up state information of the vehicle are obtained, and the sleep-wake-up state information includes at least one of the time information when the vehicle is in the sleep state or the time information when the vehicle is in the wake-up state. According to the state information of the ignition switch and the sleep-wake-up state information, at least one abnormal condition among multiple abnormal conditions that may cause power failure in the vehicle is first detected, and prompt information for indicating that the abnormal condition detected by the first detection is to be processed is output to prevent power failure. The power information of the power supply in the vehicle is obtained, and according to the sleep-wake-up state information and the power information, a second detection is performed on the abnormal conditions among multiple abnormal conditions except at least one abnormal condition, and prompt information for indicating that the abnormal condition detected by the second detection is to be processed is output to prevent power failure. Thus, power failure can be prevented by timely discovering the cause that may cause power failure.

[0042] In some embodiments, there is a first abnormal condition in at least one abnormal condition, and the first abnormal condition is improper user operation. According to the status information of the ignition switch and the sleep-wake-up status information, a first detection is performed on at least one abnormal condition among multiple abnormal conditions that may cause power shortage in the vehicle, including: when it is determined according to the status information of the ignition switch and the sleep-wake-up status information that the duration that the ignition switch is continuously in the off state reaches a first duration threshold, and it is determined that the wake-up frequency of the vehicle during the period when the ignition switch is continuously in the off state reaches a wake-up frequency threshold, it is determined that the first abnormal condition is detected; when it is determined according to the status information of the ignition switch that the duration that the ignition switch is continuously in the on state reaches a second duration threshold, it is determined that the first abnormal condition is detected.

[0043] Among them, improper user operation situations include: the vehicle is in the IG OFF state for a long time and the four doors and two lids and seats are frequently operated, causing the vehicle to be frequently awakened; or the vehicle is in the IG ON state for a long time without starting the engine or applying high pressure and using the comfort load on the vehicle.

[0044] The closed state refers to the IG OFF state. The open state refers to the IG ON state. The first duration threshold and the second duration threshold may be the same or different.

[0045] Specifically, when the user frequently operates to wake up the vehicle when the vehicle is in the IG OFF state, the gateway can prompt the user through the instrument to "start the vehicle or do not operate the vehicle frequently" to prevent the vehicle from further running out of power and being unable to start; if the user uses the comfort load for a long time when the vehicle is in the IG ON state, the instrument will prompt the user to "please start the vehicle, otherwise the power will be automatically cut off after 3 minutes" and turn off the comfort load function. If the user still fails to start the vehicle after 3 minutes, the vehicle state will be switched to the IGOFF state to prevent the vehicle from being unable to start due to high current load causing the power supply, such as the low-voltage battery, to run out of power.

[0046] In this embodiment, improper user operation is detected to prevent power failure, thereby improving the user experience of the vehicle.

[0047] In some embodiments, there is a second abnormal condition in at least one abnormal condition, and the second abnormal condition is a vehicle network dormancy abnormality. The method also includes: when it is determined based on the status information of the ignition switch and the dormancy wake-up status information that the duration for which the ignition switch has been continuously in the off state reaches a third duration threshold, and it is determined that no wake-up operation for the vehicle has been generated during the period for which the ignition switch has been continuously in the off state, and the vehicle is in the wake-up state, it is determined that the second abnormal condition has been detected; the method also includes: obtaining status information of switchable components in the vehicle; when it is determined based on the dormancy wake-up status information and the status information of the switchable components that the vehicle has switched from the dormant state to the wake-up state, and it is determined that the status of the switchable components in the vehicle has not changed when the vehicle is in the dormant state, it is determined that the second abnormal condition has been detected.

[0048] The third duration threshold can be set as needed, and the third duration threshold can be the same as or different from the first duration threshold. The third duration threshold can be the same as or different from the second duration threshold. The third duration threshold is, for example, 5 minutes.

[0049] The switchable parts refer to the four doors and two hoods of the vehicle. The four doors and two hoods of the vehicle refer to a specific combination of vehicle parts, including the hood, trunk lid, left front door, left rear door, right front door, and right rear door.

[0050] Abnormal vehicle network sleep conditions may include: if the vehicle remains awake after 5 minutes of no human operation in the IG OFF state, it is considered that the network has an unsleep problem; or if the vehicle is in a sleep state and there is no change in the status of the four doors and two lids but it suddenly wakes up, it is considered that the network has an abnormal wake-up problem.

[0051] Specifically, when an abnormality is detected in the vehicle network, such as abnormal vehicle network sleep and power supply is lower than the set limit, the electronic device can send an abnormal alarm to the user's terminal through T-BOX, suggesting that the user go to the store for inspection to prevent the vehicle from running out of power and being unable to start. T-BOX, the full name of Telematics Box, is an in-vehicle communication module used to connect the vehicle to the external network. It is an intelligent in-vehicle terminal in the Internet of Vehicles system and one of the main ways to collect data.

[0052] In this embodiment, power shortage is prevented by detecting network abnormalities, thereby improving the user experience of the vehicle.

[0053] In some embodiments, the vehicle status information includes the length of time the vehicle is in a dormant state, the power information includes the power of the power supply when the vehicle enters the dormant state most recently, and the abnormal conditions other than at least one abnormal condition among the multiple abnormal conditions include a third abnormal condition, and the third abnormal condition is abnormal static current of the entire vehicle; Figure 3 As shown, according to the sleep / wake-up state information and the power information, a second detection is performed on the abnormal conditions other than at least one abnormal condition among the multiple abnormal conditions, including:

[0054] Step 302, according to the sleep-wake-up state information and the power information, determine a first power level of the power supply when the sleep state is last entered, and determine a second power level of the power supply when the sleep state is last entered and switched to the wake-up state.

[0055] The first electric quantity and the second electric quantity can be represented by the SOC value of the battery.

[0056] Step 304: Determine the static current value of the vehicle from the last time the vehicle entered the sleep state to the time when it switched to the awake state according to the difference between the first power level and the second power level.

[0057] Specifically, the electronic device can determine the power SOC of the power supply when the vehicle was last dormant. t0 , the power SOC of the vehicle when it was last dormant t0 That is, the first power of the power supply when it enters the sleep state last time, so the first power is SOC t0 Electronic devices can determine the power supply SOC when waking up t1 , power supply SOC when waking up t1 That is, the second power of the power supply when switching to the wake-up state, so the second power is SOC t1 The electronic device can be configured to generate a first power SOC t0 and the second power SOC t1 The difference between the last sleep state and the wake-up state is used to determine the static current value of the vehicle. The static current value of the vehicle is expressed as I q Indicates. Vehicle static current value I q The calculation formula can be: q ×24×T+0.001×C×T=C×(SOC t0 -SOC t1 ). Among them, I q The unit is A (ampere). T represents the length of time the vehicle is parked, in days. C represents the capacity of the vehicle's power supply, in Ah (ampere-hour). Ah is the product of the discharge current (A) and the discharge time (h), indicating how long the battery can last when discharged at a certain current intensity. t0 It is a percentage, indicating the proportion of power supply capacity.t1 It is also a percentage, indicating the proportion of power supply capacity.

[0058] Step 306: When the static current value of the entire vehicle is greater than the static current value threshold of the entire vehicle, it is determined that a third abnormal condition is detected.

[0059] In some embodiments, when the vehicle static current value I q If the value is greater than the product of the preset coefficient and the vehicle static current value threshold, it is determined that the third abnormal condition is detected. The preset coefficient is greater than 1, for example, 1.15. The vehicle static current value threshold can also be called the vehicle static current design value, which is represented by I s , the unit is A. When I q Greater than 1.15*I s , it is determined that a third abnormal condition is detected.

[0060] In some embodiments, when the vehicle is stationary and dormant, an electronic device such as a gateway wakes up at regular intervals, for example, every 5 hours to check the power status of the power supply. If it is found that the power level of the power supply is lower than the set value and there is an abnormal static current, an abnormal alarm reminder is sent to the user's terminal through T-BOX, suggesting that the user go to the store for inspection to prevent the vehicle from running out of power and being unable to start.

[0061] In this embodiment, the static current value of the whole vehicle is detected to prevent power failure, thereby improving the user experience of the vehicle.

[0062] In some embodiments, the abnormal conditions other than at least one abnormal condition among the multiple abnormal conditions include a fourth abnormal condition, and the fourth abnormal condition is that the parking time is too long. The method also includes: determining the parking time of the vehicle based on the difference between the first power and the second power; when the proportion of the vehicle's parked time to the parking time reaches a preset proportion, it is determined that the fourth abnormal condition is detected.

[0063] Specifically, when the vehicle has been parked for a longer period of time than the product of the preset factor and the available parking time, it is determined that the fourth abnormal condition has been detected. The preset factor is less than 1 and greater than 0, for example, 0.85. That is, when the parked time T is greater than 0.85*T q , it is determined that a fourth abnormal condition is detected.

[0064] In this embodiment, the power supply is prevented from running out of power by detecting the condition that the parking time is too long, thereby improving the user experience of the vehicle.

[0065] In some embodiments, determining the parking time of the vehicle based on the difference between the first power level and the second power level includes: obtaining the capacity of the power source; and determining the parking time of the vehicle based on the vehicle's entire static current value threshold, capacity, and the difference between the first power level and the second power level.

[0066] Specifically, the parking time is Tq It can be obtained by formula I s ×24×T q +0.001×C×T q =C×(SOC t0 -SOC t1 ) is calculated. The parking time is T q The unit is day.

[0067] In some embodiments, there is monitoring software in the electronic device such as a gateway. The power failure prevention method provided in this application can be implemented based on the monitoring software. The abnormal condition can also be called the power failure cause. For different power failure causes, the electronic device can give prompts and record corresponding fault codes. Figure 4 As shown, for improper user operation, the instrument prompts the user to "start the vehicle or do not operate frequently to wake up the vehicle", and the gateway records the fault code. Alternatively, the instrument prompts the user to "please start the vehicle, otherwise the vehicle will be powered off after 3 minutes". If it is not started, the vehicle state is switched to IG OFF, and the gateway records the fault code. For abnormal vehicle network dormancy, the mobile phone APP (Application Program) prompts the user "the vehicle is abnormal, please return to the store for repair and troubleshooting", and the gateway records the fault code. For long parking time, the mobile phone APP prompts the user "the vehicle is at risk of low power, please start the vehicle or charge it with an external power supply", and the gateway records the fault code. Recording different fault codes for different reasons for low power can facilitate subsequent problem location and troubleshooting. Among them, for abnormal vehicle network dormancy, the gateway detects the network of the entire vehicle to determine the control that caused the abnormality, and carries the identification and message data of the determined controller on the fault code.

[0068] In some embodiments, a remaining power threshold is set in an electronic device such as a gateway, and the remaining power threshold is, for example, 60%, and the remaining power threshold is represented by soc. When the remaining power of a power source such as a battery is less than the remaining power threshold, the electronic device such as a gateway can remind the user of the risks and avoidance measures of the vehicle through an instrument or an APP text message. Among them, the remaining power threshold is greater than the critical remaining power, for example, the critical remaining power is 50%. When the remaining power is less than the critical remaining power, the vehicle may fail to start. Since the remaining power threshold is greater than the critical remaining power, when the remaining power is reduced to the remaining power threshold, the margin can be reduced. For example, if the remaining power threshold is 60% and the critical remaining power is 50%, the margin can be reduced to 10%. When the remaining power of a power source such as a battery is less than the remaining power threshold, the prompt will begin, so as not to directly cause the vehicle to fail to start.

[0069] Take the battery as an example: User A drives home to visit relatives during the winter and summer vacations. After arriving at the destination, he parked the vehicle and prepared to start the vehicle again to drive back a month later. During the one-month static time of the vehicle, the battery has been supplying power to the corresponding controller of the whole vehicle, causing the SOC value of the battery to gradually decrease. During this period, the battery sensor collects the SOC value of the battery in real time, and the gateway wakes up every 5 hours for analysis and judgment. If this is a network abnormality of the vehicle, the SOC is reduced from the initial 85% to 59%. At this time, the SOC value is less than the remaining power threshold soc, which is 60%. In this case, the gateway wakes up the whole vehicle and reminds the user of the risk of power shortage and vehicle handling measures through the instrument or APP. The gateway can record the fault code and send a text message reminder to the user APP through T-BOX, reminding the user to check the vehicle and charge the vehicle in time to prevent the vehicle from being unable to start the next time it is used due to power shortage. At the same time, the cause of power shortage can be quickly located, shortening the troubleshooting time and avoiding frequent power shortage problems.

[0070] In this embodiment, the parking time of the vehicle can be calculated quickly and accurately through the static current value threshold of the vehicle, the capacity, and the difference between the first power and the second power.

[0071] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0072] Based on the same inventive concept, the embodiment of the present application also provides a power failure prevention device for implementing the power failure prevention method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more power failure prevention device embodiments provided below can refer to the limitations of the power failure prevention method above, and will not be repeated here.

[0073] In some embodiments, Figure 5 As shown, a power failure prevention device is provided, including: an information acquisition module 502 and an abnormal condition processing module 504, wherein:

[0074] The information acquisition module 502 is used to acquire the status information of the ignition switch in the vehicle and the sleep / wake-up status information of the vehicle, wherein the sleep / wake-up status information includes at least one of the time information when the vehicle is in the sleep state or the time information when the vehicle is in the wake-up state.

[0075] The abnormal condition processing module 504 is used to perform a first detection on at least one abnormal condition among multiple abnormal conditions that may cause power failure in the vehicle based on the status information of the ignition switch and the sleep and wake-up status information, and output prompt information for instructing to handle the abnormal condition detected by the first detection to prevent power failure.

[0076] The information acquisition module 502 is also used to acquire the power information of the power source in the vehicle.

[0077] The abnormal condition processing module 504 is also used to perform a second detection on abnormal conditions other than at least one abnormal condition among multiple abnormal conditions based on the sleep and wake-up state information and the power information, and output prompt information for instructing to handle the abnormal condition detected by the second detection to prevent power shortage.

[0078] In some embodiments, there is a first abnormal condition in at least one abnormal condition, and the first abnormal condition is improper user operation. The abnormal condition processing module 504 is also used to determine that the first abnormal condition is detected when it is determined based on the status information of the ignition switch and the sleep wake-up status information that the duration that the ignition switch is continuously in the off state reaches a first duration threshold, and determines that the wake-up frequency of the vehicle during the period when the ignition switch is continuously in the off state reaches a wake-up frequency threshold; when it is determined based on the status information of the ignition switch that the duration that the ignition switch is continuously in the on state reaches a second duration threshold, it is determined that the first abnormal condition is detected.

[0079] In some embodiments, there is a second abnormal condition in at least one abnormal condition, and the second abnormal condition is a vehicle network sleep abnormality. The abnormal condition processing module 504 is also used to determine that the second abnormal condition is detected when, based on the status information of the ignition switch and the sleep wake-up status information, it is determined that the duration for which the ignition switch has been continuously in the off state reaches a third duration threshold, and that no wake-up operation is generated for the vehicle during the period for which the ignition switch has been continuously in the off state, and the vehicle is in the wake-up state; obtain the status information of the switchable components in the vehicle; when, based on the sleep wake-up status information and the status information of the switchable components, it is determined that the vehicle has switched from the sleep state to the wake-up state, and it is determined that the status of the switchable components in the vehicle has not changed when the vehicle is in the sleep state, it is determined that the second abnormal condition is detected.

[0080] In some embodiments, the vehicle status information includes the length of time the vehicle is in a sleep state, the power information includes the power of the power supply when the vehicle last entered the sleep state, and the abnormal conditions other than at least one abnormal condition among the multiple abnormal conditions include a third abnormal condition, and the third abnormal condition is the abnormal static current of the entire vehicle; the abnormal condition processing module 504 is also used to determine the first power of the power supply when the vehicle last entered the sleep state based on the sleep wake-up state information and the power information, and determine the second power of the power supply when switching from the sleep state last entered to the wake-up state; determine the static current value of the entire vehicle from the last time the vehicle entered the sleep state to the time it switched to the wake-up state based on the difference between the first power and the second power; when the static current value of the entire vehicle is greater than the static current value threshold of the entire vehicle, it is determined that the third abnormal condition is detected.

[0081] In some embodiments, the abnormal conditions other than at least one abnormal condition among the multiple abnormal conditions include a fourth abnormal condition, and the fourth abnormal condition is that the parking time is too long. The abnormal condition processing module 504 is also used to determine the parking time of the vehicle based on the difference between the first power and the second power; when the proportion of the vehicle's parked time to the parking time reaches a preset proportion, it is determined that the fourth abnormal condition is detected.

[0082] In some embodiments, the abnormal condition processing module 504 is also used to obtain the capacity of the power supply; and determine the parking time of the vehicle according to the vehicle's entire static current value threshold, capacity, and the difference between the first power and the second power.

[0083] Each module in the above power failure prevention device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in an electronic device in the form of hardware, or can be stored in a memory in the electronic device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0084] In some embodiments, an electronic device is provided, which may be a gateway, and its internal structure diagram may be as follows: Figure 6As shown. The electronic device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the electronic device is used to store data involved in the power failure prevention method. The input / output interface of the electronic device is used to exchange information between the processor and an external device. The communication interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a power failure prevention method is implemented.

[0085] Those skilled in the art will understand that Figure 6 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0086] In some embodiments, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0087] In some embodiments, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0088] In some embodiments, a computer program product is provided, including a computer program, which implements the steps in the above-mentioned method embodiments when executed by a processor.

[0089] 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, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0090] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0091] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0092] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for preventing power failure, characterized in that: The method comprises: Acquire status information of an ignition switch in a vehicle and sleep / wake-up status information of the vehicle, wherein the sleep / wake-up status information includes at least one of time information of the vehicle being in a sleep state or time information of the vehicle being in a wake-up state; According to the state information of the ignition switch and the sleep-wake state information, a first detection is performed on at least one abnormal condition among a plurality of abnormal conditions that may cause power failure in the vehicle, and prompt information for instructing to process the abnormal condition detected by the first detection to prevent the power failure is output; Acquiring power information of a power source in the vehicle; According to the sleep and wake-up state information and the power information, a second detection is performed on the abnormal conditions among the multiple abnormal conditions except for the at least one abnormal condition, and prompt information for instructing to handle the abnormal conditions detected by the second detection is output to prevent the power supply from running out of power.

2. The method according to claim 1, characterized in that The at least one abnormal condition includes a first abnormal condition, the first abnormal condition is an improper operation by a user, and the first detection of at least one abnormal condition among a plurality of abnormal conditions that may cause a power shortage in the vehicle according to the state information of the ignition switch and the sleep-wake-up state information includes: When it is determined, based on the state information of the ignition switch and the sleep-wake-up state information, that the duration for which the ignition switch is continuously in the off state reaches a first duration threshold, and it is determined that the wake-up frequency of the vehicle during the period for which the ignition switch is continuously in the off state reaches a wake-up frequency threshold, it is determined that a first abnormal condition is detected; When it is determined, based on the state information of the ignition switch, that the duration for which the ignition switch is continuously in the on state reaches a second duration threshold, it is determined that a first abnormal condition is detected.

3. The method according to claim 2, characterized in that There is also a second abnormal condition in the at least one abnormal condition, and the second abnormal condition is a vehicle network dormancy abnormality. The method further includes: When it is determined, based on the state information of the ignition switch and the sleep-wake-up state information, that the duration for which the ignition switch is continuously in the off state reaches a third duration threshold, and it is determined that no wake-up operation for the vehicle is generated during the period for which the ignition switch is continuously in the off state, and the vehicle is in the wake-up state, it is determined that the second abnormal condition is detected; The method further comprises: Acquiring status information of switchable components in the vehicle; When it is determined that the vehicle switches from the dormant state to the awakened state based on the dormant awakening state information and the state information of the switchable component, and it is determined that the state of the switchable component in the vehicle does not change when the vehicle is in the dormant state, it is determined that the second abnormal condition is detected.

4. The method according to any one of claims 1 to 3, characterized in that: The vehicle status information includes the duration of time the vehicle is in a dormant state, the power information includes the power of the power source when the vehicle enters the dormant state most recently, and the abnormal conditions other than the at least one abnormal condition among the multiple abnormal conditions include a third abnormal condition, and the third abnormal condition is abnormal static current of the entire vehicle; The performing a second detection on abnormal conditions other than the at least one abnormal condition among the multiple abnormal conditions according to the sleep / wake-up state information and the power information comprises: Determine, according to the sleep-wake-up state information and the power information, a first power level of the power source when the sleep state is last entered, and determine a second power level of the power source when the sleep state is last entered and switched to the wake-up state; Determining, according to the difference between the first electric quantity and the second electric quantity, a static current value of the entire vehicle during a period from the last time the vehicle entered a dormant state to when it switched to an awake state; When the whole vehicle static current value is greater than the whole vehicle static current value threshold, it is determined that a third abnormal condition is detected.

5. The method according to claim 4, characterized in that The abnormal conditions other than the at least one abnormal condition in the plurality of abnormal conditions include a fourth abnormal condition, and the fourth abnormal condition is that the parking time is too long. The method further includes: determining a parking time of the vehicle according to a difference between the first power level and the second power level; When the proportion of the parked time of the vehicle to the available parkable time reaches a preset proportion, it is determined that the fourth abnormal condition is detected.

6. The method according to claim 5, characterized in that The determining, according to the difference between the first power level and the second power level, the parking time of the vehicle includes: obtaining the capacity of the power source; The parking time of the vehicle is determined according to the vehicle static current value threshold, the capacity, and the difference between the first power and the second power.

7. A power failure prevention device, characterized in that: The device comprises: An information acquisition module, used to acquire status information of an ignition switch in a vehicle and sleep / wake-up status information of the vehicle, wherein the sleep / wake-up status information includes at least one of time information of the vehicle being in a sleep state or time information of the vehicle being in a wake-up state; an abnormal condition processing module, configured to perform a first detection on at least one abnormal condition among a plurality of abnormal conditions that may cause power failure in the vehicle according to the state information of the ignition switch and the sleep-wake state information, and output prompt information for instructing to process the abnormal condition detected by the first detection, so as to prevent the power failure; The information acquisition module is further used to acquire power information of the power supply in the vehicle; The abnormal condition processing module is also used to perform a second detection on the abnormal conditions among the multiple abnormal conditions except for the at least one abnormal condition based on the sleep and wake-up state information and the power information, and output prompt information for indicating the processing of the abnormal condition detected by the second detection to prevent the power supply from running out of power.

8. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.