In-vehicle rest mode control method and device, computer equipment and storage medium

By detecting the vehicle status and environmental status in the vehicle rest mode, predicting the usage time, and deciding whether to start the range extender to generate power, the problem of users' difficulty in predicting the balance between energy consumption and available energy is solved, and the safety and usage time of the rest mode are improved.

CN120116744APending Publication Date: 2025-06-10CHONGQING SOKON POWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510485881.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-17
Publication Date
2025-06-10

AI Technical Summary

Technical Problem

In the rest mode in the car, it is difficult for users to accurately predict the balance between energy consumption and available energy, resulting in safety hazards such as power outage in the vehicle, air conditioning failure or even over-discharge of the battery.

Method used

By responding to the rest mode activation command initiated by the user, we obtain the target rest time, the current environmental status and the current vehicle status, detect whether the vehicle is in a confined space, calculate the predicted use time of the vehicle in the rest mode, and decide whether to start the range extender to generate power based on the sealed detection results, environmental status and duration comparison results.

Benefits of technology

It improves the safety after the rest mode in the car is turned on, extends the vehicle's usage time, avoids safety hazards such as power outages, air conditioning failure and battery overloading, and improves the harm of power generation to personnel safety in inappropriate scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120116744A_ABST
    Figure CN120116744A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of vehicle control, in particular to an in-vehicle rest mode control method and device, computer equipment and a storage medium. The method comprises the following steps: in response to a rest mode starting instruction initiated by a user, obtaining a target rest duration, a current environment state and a current vehicle state; detecting whether the vehicle is in a closed space or not to obtain a closed detection result; according to the current environment state and the current vehicle state, the predicted use duration of the vehicle in a rest mode is calculated, the target rest duration and the predicted use duration are compared, and a duration comparison result is obtained; according to the airtight detection result, the current environment state and the duration comparison result, whether a range extender is started for power generation or not is determined. By adopting the method, the safety after the in-vehicle rest mode is started can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of vehicle control, and particularly to a control method, device, computer device and storage medium for in-vehicle rest mode. Background Art

[0002] In recent years, with the rapid development of new energy vehicles and intelligent cockpit technologies, the "in-vehicle rest mode" (such as camping mode, napping mode) of vehicles in the parked state has gradually become a function that users pay attention to. In the in-vehicle rest mode, users can maintain a comfortable environment inside the vehicle through the air conditioning system, entertainment equipment, etc., but the resulting energy consumption problem has become increasingly prominent. The remaining battery power directly determines the sustainable duration of the rest mode. If users cannot accurately predict the balance relationship between energy consumption and available energy, it may lead to safety hazards such as the vehicle losing power midway, the air conditioner failing, or even the battery being over-discharged. Summary of the Invention

[0003] Based on this, in view of the above technical problems, it is necessary to provide a control method, device, computer device and storage medium for in-vehicle rest mode to improve the safety after the in-vehicle rest mode is turned on.

[0004] In a first aspect, a control method for in-vehicle rest mode is provided. The method includes:

[0005] Respond to the rest mode start instruction initiated by the user, and obtain the target rest duration, the current environmental state, and the current vehicle state;

[0006] Detect whether the vehicle is in an enclosed space to obtain an enclosed detection result;

[0007] According to the current environmental state and the current vehicle state, calculate the predicted usage duration of the vehicle in the rest mode, compare the target rest duration and the predicted usage duration, and obtain a duration comparison result;

[0008] According to the enclosed detection result, the current environmental state, and the duration comparison result, determine whether to start the range extender to generate electricity.

[0009] Combined with the first aspect, in the first first feasible implementation manner of the first aspect, the current environmental state includes the current environmental temperature, the current environmental humidity, and the current sunlight intensity; the current vehicle state includes the current available power and the current range extender operating state;

[0010] According to the current environmental state and the current vehicle state, calculating the predicted usage duration of the vehicle in the rest mode includes:

[0011] Obtain a preset energy consumption comparison table, where the energy consumption comparison table records the energy consumption per unit time corresponding to different ambient temperatures, ambient humidities, sunlight intensities, and range extender operating states, and the range extender operating states include the range extender being in the start state and the range extender being in the off state;

[0012] Search for the current ambient temperature, the current ambient humidity, the current sunlight intensity, and the current range extender operating state in the energy consumption comparison table to determine the target energy consumption per unit time;

[0013] Calculate the predicted usage duration of the vehicle in the rest mode according to the current available power and the target energy consumption per unit time.

[0014] Combined with the first aspect, in the second implementable manner of the first aspect, the current environmental state includes the current ambient temperature, the current ambient humidity, and the current sunlight intensity; the current vehicle state includes the current available power and the current range extender operating state;

[0015] Calculating the predicted usage duration of the vehicle in the rest mode according to the current environmental state and the current vehicle state includes:

[0016] Obtain a preset usage duration comparison table, where the usage duration comparison table records the usage duration per unit power corresponding to different ambient temperatures, ambient humidities, sunlight intensities, and range extender operating states, and the range extender operating states include the range extender being in the start state and the range extender being in the off state;

[0017] Search for the current ambient temperature, the current ambient humidity, the current sunlight intensity, and the current range extender operating state in the usage duration comparison table to determine the target usage duration per unit power;

[0018] Calculate the predicted usage duration of the vehicle in the rest mode according to the current available power and the target usage duration per unit power.

[0019] Combined with the first implementable manner or the second implementable manner of the first aspect, in the third implementable manner of the first aspect, the vehicle state information further includes the current battery temperature, the cumulative number of battery cycles, and a preset discharge efficiency coefficient; the steps for obtaining the current available power include:

[0020] Obtain the current remaining power;

[0021] Determine the temperature attenuation coefficient corresponding to the current battery temperature according to a preset temperature attenuation curve;

[0022] Calculate the aging attenuation coefficient according to the cumulative number of battery cycles and a preset attenuation coefficient per unit number;

[0023] Based on the temperature attenuation coefficient, the aging attenuation coefficient, and the discharge efficiency coefficient, correct the current remaining power to obtain the current available power.

[0024] Combined with the first aspect, in the fourth implementable manner of the first aspect, determining whether to start the range extender to generate electricity according to the airtight detection result, the current environmental state, and the duration comparison result includes:

[0025] When the airtight detection result indicates that the vehicle is in an airtight space, prohibit starting the range extender to generate electricity;

[0026] When the airtight detection result indicates that the vehicle is not in an airtight space, determine whether the current environmental temperature included in the current environmental state is less than a preset low temperature threshold;

[0027] If so, start the range extender to generate electricity and heat the passenger compartment with the waste heat of the range extender;

[0028] If not, determine whether the duration comparison result indicates that the target rest duration is greater than the predicted usage duration;

[0029] If so, start the range extender to generate electricity;

[0030] If not, do not start the range extender.

[0031] Combined with the fourth implementable manner of the first aspect, in the fifth implementable manner of the first aspect, when the airtight detection result indicates that the vehicle is in an airtight space, the method further includes:

[0032] If the duration comparison result indicates that the target rest duration is greater than the predicted usage duration, provide a usage duration suggestion to the user according to the predicted usage duration;

[0033] In response to a duration shortening instruction initiated by the user, where the duration shortening instruction indicates shortening the target rest duration to be equal to or less than the predicted usage duration, when the running duration of the rest mode reaches the shortened target rest duration, turn off the rest mode.

[0034] Combined with the fourth implementable manner of the first aspect, in the sixth implementable manner of the first aspect, when the airtight detection result indicates that the vehicle is in an airtight space, the method further includes:

[0035] If the duration comparison result indicates that the target rest duration is greater than the predicted usage duration, shorten the target rest duration to be equal to or less than the predicted usage duration, and display the shortened target rest duration on the in-vehicle interaction interface.

[0036] In a second aspect, a control device for in-vehicle rest mode is provided. The device includes:

[0037] A response module, configured to obtain a target rest duration, a current environmental state, and a current vehicle state in response to a rest mode start instruction initiated by a user;

[0038] A detection module, configured to detect whether the vehicle is in an enclosed space and obtain an enclosed detection result;

[0039] A processing module, configured to calculate a predicted usage duration of the vehicle in the rest mode according to the current environmental state and the current vehicle state, compare the target rest duration with the predicted usage duration, and obtain a duration comparison result;

[0040] A control module, configured to determine whether to start the range extender to generate electricity according to the enclosed detection result, the current environmental state, and the duration comparison result.

[0041] In a third aspect, a computer device is provided, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the steps of the in-vehicle rest mode control method according to any one of the first aspect or the first to sixth implementable embodiments of the first aspect are implemented.

[0042] In a fourth aspect, 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 of the in-vehicle rest mode control method according to any one of the first aspect or the first to sixth implementable embodiments of the first aspect are implemented.

[0043] The above in-vehicle rest mode control method, device, computer device, and storage medium obtain a target rest duration, the current environmental state, and the current vehicle state by responding to a rest mode activation instruction initiated by a user; detect whether the vehicle is in an enclosed space to obtain an enclosed detection result; calculate the predicted usage duration of the vehicle in the rest mode based on the current environmental state and the current vehicle state, compare the target rest duration with the predicted usage duration to obtain a duration comparison result; and determine whether to start the range extender to generate electricity based on the enclosed detection result, the current environmental state, and the duration comparison result. It can be seen that the in-vehicle rest mode control method of the present application can determine whether to start the range extender to generate electricity by combining the spatial state of the vehicle, the environmental state, and the relationship between the predicted usage duration that the vehicle can achieve and the target rest duration set by the user. This can not only increase the overall vehicle usage duration, improve problems such as power outage, air conditioner failure, and even over-discharge of the battery during the operation of the vehicle in the rest mode, but also improve the problem of generating electricity in inappropriate scenarios and causing harm to personnel safety. Therefore, compared with the related technologies, the present application can improve the safety after the in-vehicle rest mode is activated. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 FIG. is an application environment diagram of the in-vehicle rest mode control method in an embodiment;

[0045] Figure 2 FIG. is a flowchart of the in-vehicle rest mode control method in an embodiment;

[0046] Figure 3 FIG. is a structural block diagram of the in-vehicle rest mode control device in an embodiment;

[0047] Figure 4 FIG. is an internal structure diagram of a computer device in an embodiment. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0048] In order to make the objectives, technical solutions, and advantages of the present application clearer, the present application will be further described in detail below with reference to 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.

[0049] It should be noted that the diagrams provided in this embodiment only illustrate the basic concept of the present application schematically. Therefore, only the components related to the present application are shown in the diagrams, rather than being drawn according to the number, shape, and size of the components in actual implementation. The types, quantities, and proportions of the components in actual implementation can be arbitrarily changed, and the component layout type may also be more complex.

[0050] The structures, proportions, sizes, etc. shown in the drawings of this specification are only used to cooperate with the content disclosed in the specification for those skilled in this technology to understand and read, and are not used to limit the implementation conditions of this application. Therefore, they do not have any technical substance. Any modification of the structure, change of the proportional relationship, or adjustment of the size, without affecting the efficacy that this application can produce and the purpose that can be achieved, should still fall within the scope that the technical content disclosed in this application can cover.

[0051] The orientation or positional relationship indicated by terms such as "upper", "lower", "left", "right", "middle", "longitudinal", "transverse", "horizontal", "inner", "outer", "radial", "circumferential", etc. cited in this specification is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of simplified description, rather than indicating or implying that the device or component referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it cannot be understood as a limitation to this application. In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.

[0052] With the rapid development of new energy vehicles and intelligent cockpit technologies, the "in-vehicle rest mode" when the vehicle is parked, such as the nap mode and the camping mode, has gradually become a function that users are concerned about. In the in-vehicle rest mode, users can provide a relatively comfortable in-vehicle environment through the air conditioning system, entertainment equipment, and cockpit system, etc. For example, turning on the air conditioner, playing white noise, reclining the seat, and releasing aromatherapy, etc., for users to rest. This has led to the problem of energy consumption. Especially for electric vehicles, the remaining battery power directly determines the sustainable duration of the rest mode. And it is difficult for users to accurately predict the balance relationship between energy consumption and available energy, which may lead to safety hazards such as power-off, air conditioner failure, and even over-discharge of the battery during the operation of the rest mode. Some related technologies usually rely on users to manually set the rest duration and only provide low-battery warnings, lacking dynamic assessment between real-time energy consumption and energy supply; some related technologies only control the start and stop of the range extender according to the evaluation result between predicted energy consumption and available energy, without considering the environment and space where the vehicle is located. For example, when the vehicle is in an enclosed space, starting the range extender to generate electricity may cause carbon monoxide poisoning to users. Therefore, there are still problems with relatively low safety in related technologies.

[0053] Therefore, this application proposes a control method for the in-vehicle rest mode, which can be applied to, for example Figure 1In the application environment shown, the vehicle-mounted terminal 102 is respectively communicatively connected to the central processor and the vehicle controller; the sensor module includes various sensors for sensing the environmental state of the vehicle; the central processor is respectively communicatively connected to the sensor module and the vehicle controller, and is used for processing the data detected by the sensor module and sending the processing result to the vehicle controller for decision-making. The vehicle controller is also communicatively connected to the range extender to control the turning on and off of the range extender.

[0054] Based on the application environment as Figure 1 shown, when the user clicks the rest mode through the vehicle-mounted terminal 102, the vehicle-mounted terminal 102 generates a rest mode start instruction and sends it to the vehicle sensors and the central processor. The vehicle sensors respond to the rest mode start instruction initiated by the user and control the operation of related functional devices, such as the air conditioning system, the seat system, the audio-visual entertainment system, and the vehicle body system, etc.; the central processor obtains the target rest duration set by the user and the current vehicle state, obtains the current environmental state through the sensor module, and detects whether the vehicle is in an enclosed space to obtain an enclosed detection result. According to the current environmental state and the current vehicle state, calculates the predicted usage duration of the vehicle, compares the target rest duration with the predicted usage duration to obtain a duration comparison result; the vehicle controller controls the turning on or off of the range extender according to the enclosed detection result, the current environmental state, and the duration comparison result, which can not only increase the overall vehicle usage duration, improve phenomena such as power failure, air conditioning failure, and even over-discharge of the battery during the journey, but also improve the problem of generating electricity in inappropriate scenarios and causing harm to personnel safety. Therefore, compared with the prior art, the present application can improve the safety after the in-vehicle rest mode is turned on.

[0055] Next, the present application will be introduced in detail through the following embodiments.

[0056] In one embodiment, as Figure 2 shown, a method for controlling the in-vehicle rest mode is provided. Taking the example that this method is applied to the application scenario as Figure 1 shown, it includes the following steps:

[0057] Step 202, in response to the rest mode start instruction initiated by the user, obtain the target rest duration, the current environmental state, and the current vehicle state.

[0058] Exemplarily, the in-vehicle rest mode usually has the following functions: the air conditioning system, which keeps the temperature in the vehicle suitable and provides a comfortable temperature environment. To ensure safety, the external circulation is usually adopted; the lighting system, which can dim or turn off the lights to provide a suitable light environment; the entertainment device, which provides light music or movie playback to help the user relax; the seat adjustment system, which adjusts the seat to a semi-reclined or flat angle and raises the leg rest, etc.; the fragrance system, which provides a pleasant fragrance.

[0059] The user can create a personal account on the in-vehicle terminal, set function items according to their preferences to form a customized rest mode, and then associate the customized rest mode with the personal account. When the user wants to rest in the vehicle, they only need to select the rest mode on the in-vehicle terminal. After the vehicle control unit receives the rest mode activation command, it obtains the customized rest mode associated with the personal account and operates according to the customized rest mode, that is, controls the corresponding functional devices to start working.

[0060] When the user activates the rest mode, they can also select the target rest duration, so that the rest mode automatically exits after the running duration reaches the target rest duration.

[0061] Among them, the current environmental state refers to the environmental state of the vehicle at the current moment. When running the same rest mode in different environments, the air-conditioning load is different. For example, in a high-temperature environment, the air-conditioning cooling power consumption increases significantly, and in a low-temperature environment, the air-conditioning heating power consumption is also high, and the corresponding total vehicle energy consumption is also different. Therefore, in order to more accurately evaluate the energy consumption corresponding to the rest mode and then more accurately evaluate the relationship between energy consumption and energy supply, the current environmental state is obtained through the sensor module, including but not limited to the current environmental temperature, the current environmental humidity, and the solar radiation intensity of the current environment. Among them, the current environmental temperature, the current environmental humidity, and the solar radiation intensity can be collected through a temperature sensor, a humidity sensor, and a solar radiation sensor respectively.

[0062] When running the same rest mode in different vehicle states, the available usage duration of the vehicle is different. For example, when the battery level is high, the usage duration is longer, and when the battery level is low, the usage duration is shorter. Another example is that when the range extender is in the on state, after the power consumption corresponding to the rest mode and the power generation of the range extender offset each other, the total vehicle energy consumption is lower, and then the usage duration will also be extended. Therefore, in order to evaluate the vehicle's energy supply capacity, it is also necessary to obtain the current vehicle state, including but not limited to the current available battery level and the current range extender operating state.

[0063] Step 204, detect whether the vehicle is in an enclosed space to obtain the enclosed detection result.

[0064] Exemplarily, the central processing unit can detect whether the vehicle is in an enclosed space through multi-sensor data fusion. For example, it can detect the change in ambient light intensity through a light sensor; detect the satellite signal strength through a satellite module; detect the air pressure change through a barometer; detect the mobile communication signal strength through a mobile communication module; and detect obstacles around the vehicle through an ultrasonic sensor or a radar sensor. Since in an enclosed space (such as a tunnel or an underground garage), the light is usually low, the satellite signal may be lost or significantly weakened, the air pressure is high, the mobile communication signal attenuates significantly, and there are walls around the vehicle. Therefore, when the light is lower than the preset threshold, the satellite signal strength is lower than the preset threshold, the air pressure is higher than the preset threshold, the mobile communication signal strength is lower than the preset threshold, and there are walls around the vehicle, it is considered that the vehicle is in an enclosed space; otherwise, it is considered that the vehicle is not in an enclosed space. Among them, the specific values of each threshold can be measured in enclosed spaces such as tunnels and garages and determined according to the measured data.

[0065] Step 206: Calculate the predicted usage duration of the vehicle in the rest mode according to the current environmental state and the current vehicle state, and compare the target rest duration with the predicted usage duration to obtain a duration comparison result.

[0066] After obtaining the current environmental state and the current vehicle state, the central processing unit can calculate the predicted usage duration corresponding to the rest mode. Exemplarily, according to the current environmental state and the current vehicle state, calculate the energy consumption per unit time or the operating duration per unit power corresponding to the rest mode, and then calculate how long the vehicle can support the operation of the rest mode under the current vehicle state, that is, the predicted usage duration.

[0067] Among them, the energy consumption per unit time refers to the sum of the energy consumption corresponding to the operation of each system per unit time in the rest mode, such as the sum of the energy consumption of basic equipment and air conditioning. Basic equipment refers to equipment such as sensors, processors, and controllers that ensure the basic functions of the vehicle; the operating duration per unit power refers to the duration that the unit power can support the normal operation of each system in the rest mode, which can be determined according to the quotient of the unit power divided by the energy consumption per unit time. The energy consumption per unit time and the operating duration per unit power can be determined through actual vehicle tests.

[0068] Step 208: Determine whether to start the range extender to generate electricity according to the enclosed space detection result, the current environmental state, and the duration comparison result.

[0069] When the vehicle is in a confined space, if the range extender is turned on to generate electricity, the air quality may deteriorate due to poor air circulation, causing discomfort or even carbon monoxide poisoning to the user. When the ambient temperature of the vehicle is lower than a certain temperature, the compressor of the air conditioning system will fail. At this time, the range extender needs to be started to generate electricity, and the waste heat generated by the range extender is used to heat the passenger compartment. When the predicted usage duration is less than the target rest duration, it means that the vehicle's battery power is not sufficient to meet the user's rest duration requirement. If the rest mode is controlled to operate according to the target rest duration, the battery will be depleted or even over-discharged, posing a safety hazard. Therefore, the vehicle controller comprehensively determines whether to start the range extender to generate electricity based on the airtightness detection result, the current environmental state, and the duration comparison result, which can not only extend the vehicle's usage duration, improve safety hazards such as power failure, air conditioning failure, and even battery over-discharge during the journey, but also improve the problem of generating electricity in inappropriate scenarios and endangering personnel safety.

[0070] Among them, the airtightness detection result determines whether starting the range extender will pose a hazard to user safety. The current environmental state determines whether the compressor fails and whether the passenger compartment can be heated, thus determining the user's comfort level. The duration comparison result determines whether the remaining energy of the vehicle is sufficient to meet the usage, and determines the vehicle's energy consumption. In some embodiments, different priorities can be preset for the airtightness detection result, the current environmental state, and the duration comparison result. The vehicle controller determines whether to start the range extender to generate electricity based on the order of priorities, based on the airtightness detection result, the current environmental state, and the duration comparison result. Exemplarily, the airtightness detection result has the highest priority, the current environmental state has the second highest priority, and the duration comparison result has the lowest priority.

[0071] The above-mentioned in-vehicle rest mode control method, after responding to the rest mode initiated by the user, combines the space state, environmental state of the vehicle, and the comparison relationship between the target rest duration set by the user and the predicted usage duration that the vehicle can meet, and comprehensively considers whether to start the range extender to generate electricity. It can not only increase the vehicle's endurance, improve safety hazards such as power failure, air conditioning failure, and even battery over-discharge during the journey, but also improve the problem of generating electricity in inappropriate scenarios and endangering personnel safety. Therefore, compared with the related technologies, the present application can improve the safety after the in-vehicle rest mode is turned on.

[0072] In one embodiment, the current environmental state includes the current environmental temperature, the current environmental humidity, and the current sunlight intensity; the current vehicle state includes the current available power and the current range extender operation state; according to the current environmental state and the current vehicle state, calculating the predicted usage duration of the vehicle in the rest mode specifically includes the following steps: obtaining a preset energy consumption comparison table, wherein the energy consumption comparison table records the corresponding energy consumption per unit time under different environmental temperatures, environmental humidities, sunlight intensities, and range extender operation states, and the range extender operation state includes the range extender being in the start state and the range extender being in the off state; searching for the current environmental temperature, the current environmental humidity, the current sunlight intensity, and the current range extender operation state in the energy consumption comparison table to determine the target energy consumption per unit time; calculating the predicted usage duration of the vehicle in the rest mode according to the current available power and the target energy consumption per unit time.

[0073] Among them, the energy consumption per unit time refers to: when the rest mode is started under the given environmental state and vehicle state, after the duration reaches the unit time (such as 1 hour), the sum of the energy consumed by systems such as basic equipment, air conditioners, lighting, and seats. The basic equipment refers to equipment such as sensors, processors, and controllers that ensure the basic functions of the vehicle. The unit of the energy consumption per unit time is kWh / h. The central processing unit divides the current available power by the energy consumption per unit time to obtain the predicted usage duration of the vehicle in the rest mode.

[0074] In another embodiment, the current environmental state includes the current environmental temperature, the current environmental humidity, and the current sunlight intensity; the current vehicle state includes the current available power and the current range extender operation state; according to the current environmental state and the current vehicle state, calculating the predicted usage duration of the vehicle in the rest mode includes: obtaining a preset usage duration comparison table, wherein the usage duration comparison table records the corresponding usage duration per unit power under different environmental temperatures, environmental humidities, sunlight intensities, and range extender operation states, and the range extender operation state includes the range extender being in the start state and the range extender being in the off state; searching for the current environmental temperature, the current environmental humidity, the current sunlight intensity, and the current range extender operation state in the usage duration comparison table to determine the target usage duration per unit power; calculating the predicted usage duration of the vehicle in the rest mode according to the current available power and the target usage duration per unit power.

[0075] Among them, the operation duration per unit power refers to: when the rest mode is started under the given environmental state and vehicle state, the duration that each system can operate normally with a unit of power (such as the remaining energy corresponding to a battery SOC of 20%, 10 kWh). The operation duration per unit power can be obtained by dividing the unit power by the energy consumption per unit time, and the unit is hour. The central processing unit divides the current available power by the unit power and then multiplies by the operation duration per unit power to obtain the predicted usage duration of the vehicle in the rest mode.

[0076] The preset energy consumption comparison table and usage duration comparison table can be determined through in-vehicle tests. Taking the function items of the vehicle's rest mode, including the air-conditioning mode and the seat mode, as an example, it is described as follows:

[0077] (1) Set the environmental conditions in the simulation chamber, including environmental temperature, environmental humidity, and light intensity; (2) Set the operating state of the range extender to on; (3) When the environmental temperature is greater than a certain temperature, such as 26 °C, set the rest mode to cooling, adjust the seat to a semi-reclined angle, and set the rest duration; (4) Turn on the rest mode until the continuous duration reaches the set rest duration, record the energy consumption generated by the vehicle during this period, divide the energy consumption by the rest duration to obtain the energy consumption per unit time with the range extender in the on state; (5) Set the unit power, such as the power corresponding to a battery SOC of 20%, 10 kw / h, divide the unit power by the energy consumption per unit time to obtain the operating duration per unit power with the range extender in the on state; (6) Set the operating state of the range extender to off, repeat steps (4)-(5) to obtain the energy consumption per unit time and the operating duration per unit power with the range extender in the off state; (7) Change the environmental temperature, environmental humidity, and light intensity. When the environmental temperature is less than a certain temperature, such as 15 °C, set the air-conditioning mode to heating, and repeat steps (2)-(6) to obtain the energy consumption per unit time under different environmental temperatures, environmental humidities, light intensities, and range extender operating states.

[0078] For exemplary illustration, as shown in Table 1 for the power consumption comparison table in different scenarios, this power consumption comparison table includes an energy consumption comparison table and a usage duration comparison table. The values therein are only used for exemplifying the energy consumption comparison table and the usage duration comparison table, and are not used to limit the energy consumption comparison table and the usage duration comparison table.

[0079] Power consumption comparison table in different scenarios shown in Table 1

[0080]

[0081] To improve interactivity, in some embodiments, the central processing unit sends the calculated predicted usage duration to the in-vehicle terminal, and the in-vehicle terminal displays the predicted usage duration on the in-vehicle interactive screen for the user to understand the relationship between energy consumption and vehicle energy supply.

[0082] In one embodiment, the vehicle state information further includes the current battery temperature, the cumulative number of battery cycles, and a preset discharge efficiency coefficient; the step of obtaining the current available power includes: obtaining the current remaining power; determining the temperature attenuation coefficient corresponding to the current battery temperature according to a preset temperature attenuation curve; calculating an aging attenuation coefficient according to the cumulative number of battery cycles and a preset attenuation coefficient per unit cycle; and correcting the current remaining power according to the temperature attenuation coefficient, the aging attenuation coefficient, and the discharge efficiency coefficient to obtain the current available power.

[0083] Among them, the current remaining power refers to the total remaining energy corresponding to the current state of charge of the battery, and the current available power refers to the available power corresponding to the current remaining power after deducting the loss. Both low temperature and high temperature will cause a decrease in the available capacity of the battery. An increase in the cumulative number of battery cycles will also cause a permanent attenuation of the available capacity of the battery. The natural energy loss caused by the battery discharge efficiency (such as internal resistance heating, etc.) will also cause a decrease in the available capacity of the battery. Therefore, the central processing unit corrects the current remaining power according to the temperature attenuation coefficient, the aging attenuation coefficient, and the discharge efficiency coefficient to obtain the current available power, so as to improve the evaluation accuracy of the available power of the battery, and further more accurately evaluate the relationship between energy consumption and available energy.

[0084] Among them, the temperature attenuation curve represents the mapping relationship between different battery temperatures and the temperature attenuation coefficient, which can be determined by experimentally calibrating the available capacity of the battery at different temperatures. Taking a complete charge and discharge of the battery as one cycle, the attenuation coefficient per unit cycle refers to the available capacity of the battery after one cycle, which can be determined by experimental calibration; read the cumulative value of the number of battery cycles from the battery management system, that is, the cumulative number of battery cycles, calculate the product of the attenuation coefficient per unit cycle multiplied by the cumulative number of battery cycles, and subtract this product from 1 to obtain the aging attenuation coefficient. The discharge efficiency coefficient is a preset value set at the factory. Exemplarily, it is usually 95% - 98%. The central processing unit multiplies the current remaining power, the temperature attenuation coefficient, the aging attenuation coefficient, and the discharge efficiency coefficient to obtain the current available power.

[0085] In one embodiment, according to the airtight detection result, the current environmental state, and the duration comparison result, it is determined whether to start the range extender to generate electricity, which specifically includes the following steps: when the airtight detection result indicates that the vehicle is in an airtight space, it is prohibited to start the range extender to generate electricity; when the airtight detection result indicates that the vehicle is not in an airtight space, it is determined whether the current environmental temperature included in the current environmental state is less than a preset low temperature threshold; if so, start the range extender to generate electricity and heat the passenger compartment with the waste heat of the range extender; if not, it is determined whether the duration comparison result indicates that the target rest duration is greater than the predicted usage duration; if so, start the range extender to generate electricity; if not, do not start the range extender.

[0086] When the vehicle is in a confined space and the range extender is turned on to generate electricity, the carbon monoxide content in the air may increase due to poor air circulation, causing discomfort or even carbon monoxide poisoning to the user. That is, the confined space detection result determines whether starting the range extender will pose a hazard to the user's safety; when the ambient temperature of the vehicle is lower than the preset low temperature threshold, the compressor of the air conditioning system will fail and cannot heat the passenger compartment. In this case, it is necessary to start the range extender to generate electricity and use the waste heat generated by the range extender to heat the passenger compartment. That is, the current environmental state determines whether the compressor can heat the passenger compartment, and thus determines the user's comfort level; when the predicted usage duration is less than the target rest duration, it means that the vehicle's battery is not sufficient to meet the user's rest duration requirement. If the rest mode is controlled according to the target rest duration, the battery power may be exhausted or even over-discharged, reducing the battery life and even posing a safety hazard. That is, the duration comparison result determines whether the remaining energy of the vehicle is sufficient to meet the usage, and determines the energy consumption of the vehicle. Therefore, different priorities can be set for the confined space detection result, the current environmental state, and the duration comparison result. The central processing unit determines whether to start the range extender to generate electricity based on the order of priorities, the confined space detection result, the current environmental state, and the duration comparison result.

[0087] Exemplarily, the priority of personnel safety, the priority of user experience, and the priority of energy consumption gradually decrease. Therefore, the priority of the confined space detection result is the highest, the priority of the current environmental state is the second, and the priority of the duration comparison result is the lowest. That is: the vehicle control unit determines whether the confined space detection result indicates that the vehicle is in a confined space; if the confined space detection result indicates that the vehicle is in a confined space, there is no need to consider the current environmental state and the duration comparison result, and the range extender startup is directly prohibited; if the confined space detection result indicates that the vehicle is not in a confined space, it is determined whether the current environmental temperature included in the current environmental state is lower than the preset low temperature threshold, such as -5°C; if so, in order to ensure heating of the passenger compartment and guarantee the user experience, the range extender is started to generate electricity to heat the passenger compartment with the waste heat of the range extender; if not, it is determined whether the duration comparison result indicates that the target rest duration is greater than the predicted usage duration; if so, it means that the battery power cannot meet the target rest duration of the rest mode operation, and the range extender needs to be started to generate electricity to avoid phenomena such as power interruption, air conditioning failure, and over-discharge during operation as much as possible, improving safety and the user experience; if not, it means that the battery power can meet the target rest duration of the rest mode operation, and there is no need to start the range extender to generate electricity.

[0088] The above steps can adopt serial timing or parallel timing, that is: in the order of priority, first obtain the airtight detection result and determine whether to start the range extender power generation based on the airtight detection result, then obtain the current environmental state and determine whether to start the range extender power generation based on the current environmental state, and finally obtain the duration comparison result and determine whether to start the range extender power generation based on the duration comparison result; or the airtight detection result, the current environmental state and the duration comparison result can be obtained simultaneously, and then in the order of priority, determine whether to start the range extender power generation based on the airtight detection result, the current environmental state and the duration comparison result in sequence. The present application does not make any limitation in this regard.

[0089] In one embodiment, when the airtight detection result indicates that the vehicle is in an airtight space, if the duration comparison result indicates that the target rest duration is greater than the predicted usage duration, a usage duration warning is sent to the user through the in-vehicle terminal, such as: the current battery power of the vehicle cannot meet the target rest duration, please charge in time or modify the target rest duration, so as to improve the vehicle use safety.

[0090] In one embodiment, a minimum protection power is set, and the remaining charge state of the battery is monitored in real time. When the remaining charge state drops to a preset threshold, such as 10%, the vehicle controller issues a command to forcibly exit the rest mode, and each functional device related to the rest mode stops operating, so as to improve the problem that the battery will age faster when it is depleted and then recharged, and extend the service life of the battery.

[0091] In one embodiment, in the case where the airtight detection result indicates that the vehicle is in an airtight space, the method further includes: if the duration comparison result indicates that the target rest duration is greater than the predicted usage duration, providing a usage duration suggestion to the user according to the predicted usage duration; in response to a duration shortening instruction initiated by the user, where the duration shortening instruction indicates shortening the target rest duration to be equal to or less than the predicted usage duration, when the running duration of the rest mode reaches the shortened target rest duration, the rest mode is turned off.

[0092] Wherein, the usage duration suggestion is used to prompt the user of the predicted usage duration that the current battery power of the vehicle can provide, and suggest the user to modify the target rest duration. After receiving the usage duration suggestion, the user can modify the target rest duration on the in-vehicle interactive screen, shorten the target rest duration to the predicted usage duration or lower than the predicted usage duration, obtain the shortened target rest duration, and then the vehicle controller controls the rest mode to automatically exit after running the shortened target rest duration, improving the problem that the battery is over-discharged, which may lead to shortening of the battery service life or even potential safety hazards.

[0093] In one embodiment, when the enclosed detection result indicates that the vehicle is in an enclosed space, the method further includes: if the duration comparison result indicates that the target rest duration is greater than the predicted usage duration, shortening the target rest duration to be equal to or less than the predicted usage duration, and displaying the shortened target rest duration on the in-vehicle interaction interface. The difference between this embodiment and the previous embodiment is that this embodiment uses the method of forcibly shortening the target rest duration, which can further ensure that the vehicle battery will not be over-discharged.

[0094] It should be understood that although Figure 2 the steps in the flowchart of Figure 2 are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise clearly stated in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover,

[0095] In one embodiment, as Figure 3 shown, a control device for the in-vehicle rest mode is provided, including: a response module, a detection module, a processing module, and a control module, where:

[0096] The response module is configured to obtain the target rest duration, the current environmental state, and the current vehicle state in response to a rest mode start instruction initiated by the user;

[0097] The detection module is configured to detect whether the vehicle is in an enclosed space and obtain an enclosed detection result;

[0098] The processing module is configured to calculate the predicted usage duration of the vehicle in the rest mode according to the current environmental state and the current vehicle state, compare the target rest duration with the predicted usage duration, and obtain a duration comparison result;

[0099] The control module is configured to determine whether to start the range extender to generate electricity according to the enclosed detection result, the current environmental state, and the duration comparison result.

[0100] Among them, the response module includes an environmental perception unit for obtaining the current environmental state.

[0101] In one embodiment, the current environmental state includes the current environmental temperature, the current environmental humidity, and the current sunlight intensity; the current vehicle state includes the current available power and the current range extender operation state; the processing module is configured to calculate the predicted usage duration of the vehicle in the rest mode according to the current environmental state and the current vehicle state, and specifically includes: obtaining a preset energy consumption comparison table, where the energy consumption comparison table records the energy consumption per unit time corresponding to different environmental temperatures, environmental humidities, sunlight intensities, and range extender operation states, and the range extender operation states include the range extender being in the start state and the range extender being in the off state; searching for the current environmental temperature, the current environmental humidity, the current sunlight intensity, and the current range extender operation state in the energy consumption comparison table to determine the target energy consumption per unit time; and calculating the predicted usage duration of the vehicle in the rest mode according to the current available power and the target energy consumption per unit time.

[0102] In one embodiment, the current environmental state includes the current environmental temperature, the current environmental humidity, and the current sunlight intensity; the current vehicle state includes the current available power and the current range extender operation state; the processing module is configured to calculate the predicted usage duration of the vehicle in the rest mode according to the current environmental state and the current vehicle state, and specifically includes: obtaining a preset usage duration comparison table, where the usage duration comparison table records the usage duration per unit power corresponding to different environmental temperatures, environmental humidities, sunlight intensities, and range extender operation states, and the range extender operation states include the range extender being in the start state and the range extender being in the off state; searching for the current environmental temperature, the current environmental humidity, the current sunlight intensity, and the current range extender operation state in the usage duration comparison table to determine the target usage duration per unit power; and calculating the predicted usage duration of the vehicle in the rest mode according to the current available power and the target usage duration per unit power.

[0103] Wherein, the environmental perception unit includes a temperature sensor, a humidity sensor, and a sunlight sensor, which are respectively configured to detect the current environmental temperature, the current environmental humidity, and the current sunlight intensity.

[0104] In one embodiment, the vehicle state information further includes the current battery temperature, the cumulative number of battery cycles, and a preset discharge efficiency coefficient; the response module is further configured to obtain the current available power, and specifically includes: obtaining the current remaining power; determining the temperature attenuation coefficient corresponding to the current battery temperature according to a preset temperature attenuation curve; calculating the aging attenuation coefficient according to the cumulative number of battery cycles and a preset attenuation coefficient per unit number; and correcting the current remaining power according to the temperature attenuation coefficient, the aging attenuation coefficient, and the discharge efficiency coefficient to obtain the current available power.

[0105] In one embodiment, the control module is configured to determine whether to start the range extender for power generation based on the airtight detection result, the current environmental state, and the duration comparison result, including: when the airtight detection result indicates that the vehicle is in an enclosed space, prohibiting the start of the range extender for power generation; when the airtight detection result indicates that the vehicle is not in an enclosed space, determining whether the current environmental temperature included in the current environmental state is less than a preset low temperature threshold; if so, starting the range extender for power generation and heating the passenger compartment with the waste heat of the range extender; if not, determining whether the duration comparison result indicates that the target rest duration is greater than the predicted usage duration; if so, starting the range extender for power generation; if not, not starting the range extender.

[0106] In one embodiment, when the airtight detection result indicates that the vehicle is in an enclosed space, the control module is further configured to: if the duration comparison result indicates that the target rest duration is greater than the predicted usage duration, provide a usage duration suggestion to the user according to the predicted usage duration; in response to a duration shortening instruction initiated by the user, where the duration shortening instruction indicates shortening the target rest duration to be equal to or less than the predicted usage duration, when the running duration of the rest mode reaches the shortened target rest duration, turn off the rest mode.

[0107] In one embodiment, when the airtight detection result indicates that the vehicle is in an enclosed space, the control module is further configured to: if the duration comparison result indicates that the target rest duration is greater than the predicted usage duration, shorten the target rest duration to be equal to or less than the predicted usage duration, and display the shortened target rest duration on the in-vehicle interaction interface.

[0108] For the specific limitations of the in-vehicle rest mode control device, reference can be made to the limitations of the in-vehicle rest mode control method in the foregoing text, which will not be elaborated here. Each module in the above in-vehicle rest mode control device can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory of the computer device in the form of software, so as to facilitate the processor to call and execute the operations corresponding to the above respective modules.

[0109] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as Figure 4As shown in the figure. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it implements a method for controlling the in-vehicle rest mode. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covered on the display screen, or a button, a trackball, or a touchpad set on the outer shell of the computer device, or an external keyboard, touchpad, or mouse, etc.

[0110] Those skilled in the art can understand that Figure 4 the structure shown in the figure is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.

[0111] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented:

[0112] In response to a rest mode start instruction initiated by the user, obtain the target rest duration, the current environmental state, and the current vehicle state;

[0113] Detect whether the vehicle is in a closed space to obtain a closed detection result;

[0114] According to the current environmental state and the current vehicle state, calculate the predicted usage duration of the vehicle in the rest mode, compare the target rest duration and the predicted usage duration, and obtain a duration comparison result;

[0115] According to the closed detection result, the current environmental state, and the duration comparison result, determine whether to start the range extender to generate electricity.

[0116] In one embodiment, the current environmental state includes the current environmental temperature, the current environmental humidity, and the current sunlight intensity; the current vehicle state includes the current available power and the current range extender operating state. When the processor executes the computer program, the following steps are also implemented:

[0117] Obtain a preset energy consumption comparison table, where the energy consumption comparison table records the energy consumption per unit time corresponding to different ambient temperatures, ambient humidities, sunlight intensities, and range extender operating states, and the range extender operating states include the range extender being in the start state and the range extender being in the off state;

[0118] Search for the current ambient temperature, the current ambient humidity, the current sunlight intensity, and the current range extender operating state in the energy consumption comparison table to determine the target energy consumption per unit time;

[0119] Calculate the predicted usage duration of the vehicle in the rest mode according to the current available power and the target energy consumption per unit time.

[0120] In one embodiment, the current environmental state includes the current ambient temperature, the current ambient humidity, and the current sunlight intensity; the current vehicle state includes the current available power and the current range extender operating state; when the processor executes the computer program, the following steps are further implemented:

[0121] Obtain a preset usage duration comparison table, where the usage duration comparison table records the usage duration per unit power corresponding to different ambient temperatures, ambient humidities, sunlight intensities, and range extender operating states, and the range extender operating states include the range extender being in the start state and the range extender being in the off state;

[0122] Search for the current ambient temperature, the current ambient humidity, the current sunlight intensity, and the current range extender operating state in the usage duration comparison table to determine the target usage duration per unit power;

[0123] Calculate the predicted usage duration of the vehicle in the rest mode according to the current available power and the target usage duration per unit power.

[0124] In one embodiment, the vehicle state information further includes the current battery temperature, the cumulative number of battery cycles, and a preset discharge efficiency coefficient; when the processor executes the computer program, the following steps are further implemented:

[0125] Obtain the current remaining power;

[0126] Determine the temperature attenuation coefficient corresponding to the current battery temperature according to a preset temperature attenuation curve;

[0127] Calculate the aging attenuation coefficient according to the cumulative number of battery cycles and a preset attenuation coefficient per unit cycle;

[0128] Correct the current remaining power according to the temperature attenuation coefficient, the aging attenuation coefficient, and the discharge efficiency coefficient to obtain the current available power.

[0129] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0130] When the enclosed detection result indicates that the vehicle is in an enclosed space, starting the range extender to generate electricity is prohibited;

[0131] When the enclosed detection result indicates that the vehicle is not in an enclosed space, determining whether the current ambient temperature included in the current ambient state is less than a preset low temperature threshold;

[0132] If so, the range extender is started to generate electricity and the passenger cabin is heated by the waste heat of the range extender;

[0133] If not, determining whether the duration comparison result indicates that the target rest duration is greater than the predicted usage duration;

[0134] If so, start the range extender to generate electricity;

[0135] If not, the range extender is not started.

[0136] In one embodiment, when the confined space detection result indicates that the vehicle is in a confined space, the processor further implements the following steps when executing the computer program:

[0137] If the duration comparison result indicates that the target rest duration is greater than the predicted usage duration, providing a usage duration suggestion to the user according to the predicted usage duration;

[0138] In response to a duration shortening instruction initiated by the user, wherein the duration shortening instruction indicates shortening the target rest duration to be equal to or less than the predicted usage duration, when the operating duration of the rest mode reaches the shortened target rest duration, turning off the rest mode.

[0139] In one embodiment, when the confined space detection result indicates that the vehicle is in a confined space, the processor further implements the following steps when executing the computer program:

[0140] If the duration comparison result indicates that the target rest duration is greater than the predicted usage duration, the target rest duration is shortened to be equal to or less than the predicted usage duration, and the shortened target rest duration is displayed on the in-vehicle interactive interface.

[0141] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0142] In response to a rest mode start instruction initiated by a user, obtaining a target rest duration, a current environment state, and a current vehicle state;

[0143] Detect whether the vehicle is in an enclosed space to obtain an enclosed detection result;

[0144] According to the current environmental state and the current vehicle state, calculate the predicted usage duration of the vehicle in the rest mode, compare the target rest duration and the predicted usage duration to obtain a duration comparison result;

[0145] Determine whether to start the range extender to generate electricity according to the enclosed detection result, the current environmental state, and the duration comparison result.

[0146] In one embodiment, the current environmental state includes the current environmental temperature, the current environmental humidity, and the current sunlight intensity; the current vehicle state includes the current available battery power and the current range extender operating state; when the computer program is executed by the processor, the following steps are further implemented:

[0147] Obtain a preset energy consumption comparison table, where the energy consumption comparison table records the energy consumption per unit time corresponding to different environmental temperatures, environmental humidities, sunlight intensities, and range extender operating states, and the range extender operating state includes the range extender being in the start state and the range extender being in the off state;

[0148] Search for the current environmental temperature, the current environmental humidity, the current sunlight intensity, and the current range extender operating state in the energy consumption comparison table to determine the target energy consumption per unit time;

[0149] Calculate the predicted usage duration of the vehicle in the rest mode according to the current available battery power and the target energy consumption per unit time.

[0150] In one embodiment, the current environmental state includes the current environmental temperature, the current environmental humidity, and the current sunlight intensity; the current vehicle state includes the current available battery power and the current range extender operating state; when the computer program is executed by the processor, the following steps are further implemented:

[0151] Obtain a preset usage duration comparison table, where the usage duration comparison table records the usage duration per unit battery power corresponding to different environmental temperatures, environmental humidities, sunlight intensities, and range extender operating states, and the range extender operating state includes the range extender being in the start state and the range extender being in the off state;

[0152] Search for the current environmental temperature, the current environmental humidity, the current sunlight intensity, and the current range extender operating state in the usage duration comparison table to determine the target usage duration per unit battery power;

[0153] Calculate the predicted usage duration of the vehicle in the rest mode according to the current available battery power and the target usage duration per unit battery power.

[0154] In one embodiment, the vehicle state information further includes the current battery temperature, the cumulative number of battery cycles, and a preset discharge efficiency coefficient; when the computer program is executed by a processor, the following steps are further implemented:

[0155] Obtain the current remaining power;

[0156] According to a preset temperature decay curve, determine the temperature decay coefficient corresponding to the current battery temperature;

[0157] According to the cumulative number of battery cycles and a preset decay coefficient per unit number, calculate the aging decay coefficient;

[0158] According to the temperature decay coefficient, the aging decay coefficient, and the discharge efficiency coefficient, correct the current remaining power to obtain the current available power.

[0159] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0160] When the airtight detection result indicates that the vehicle is in an airtight space, prohibit starting the range extender to generate electricity;

[0161] When the airtight detection result indicates that the vehicle is not in an airtight space, determine whether the current ambient temperature included in the current ambient state is less than a preset low temperature threshold;

[0162] If so, start the range extender to generate electricity and heat the passenger compartment with the waste heat of the range extender;

[0163] If not, determine whether the duration comparison result indicates that the target rest duration is greater than the predicted usage duration;

[0164] If so, start the range extender to generate electricity;

[0165] If not, do not start the range extender.

[0166] In one embodiment, when the airtight detection result indicates that the vehicle is in an airtight space, when the computer program is executed by a processor, the following steps are further implemented:

[0167] If the duration comparison result indicates that the target rest duration is greater than the predicted usage duration, provide a usage duration suggestion to the user according to the predicted usage duration;

[0168] In response to a duration shortening instruction initiated by the user, where the duration shortening instruction indicates shortening the target rest duration to be equal to or less than the predicted usage duration, when the running duration of the rest mode reaches the shortened target rest duration, turn off the rest mode.

[0169] In one embodiment, when the computer program is executed by a processor in the case that the enclosed detection result indicates that the vehicle is in an enclosed space, the following steps are further implemented:

[0170] If the duration comparison result indicates that the target rest duration is greater than the predicted usage duration, then shorten the target rest duration to be equal to or less than the predicted usage duration, and display the shortened target rest duration on the in-vehicle interaction interface.

[0171] Those of ordinary skill in the art can understand that all or part of the processes of implementing the methods in the above embodiments can be completed by instructing relevant hardware through a computer program. 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 various methods. Among them, any reference to a memory, storage, database, or other medium used in the various embodiments provided in the present application can include non-volatile and / or volatile memories. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and Rambus dynamic RAM (RDRAM), etc.

[0172] The technical features of the above embodiments can be combined arbitrarily. For the sake of concise description, 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, it should be considered as the scope described in this specification.

[0173] The above-described embodiments merely represent several implementation manners of the present application. Their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application should be subject to the appended claims.

Claims

1. A method for controlling a rest mode in a vehicle, characterized in that: The method comprises: In response to a rest mode start instruction initiated by a user, obtaining a target rest duration, a current environment state, and a current vehicle state; Detect whether the vehicle is in a confined space and obtain the confined space detection result; Calculating a predicted usage time of the vehicle in a rest mode according to the current environmental state and the current vehicle state, and comparing the target rest time with the predicted usage time to obtain a time comparison result; Whether to start the range extender to generate electricity is determined according to the airtightness detection result, the current environmental state and the duration comparison result.

2. The in-vehicle rest mode control method according to claim 1, characterized in that: The current environmental state includes the current ambient temperature, the current ambient humidity and the current sunshine intensity; the current vehicle state includes the current available power and the current range extender operation state; Calculating a predicted usage time of the vehicle in a rest mode according to the current environmental state and the current vehicle state includes: Obtaining a preset energy consumption comparison table, wherein the energy consumption comparison table records the corresponding energy consumption per unit time under different ambient temperatures, ambient humidity, sunshine intensity and range extender operating states, wherein the range extender operating state includes the range extender being in a start state and the range extender being in a shut down state; Searching the current ambient temperature, the current ambient humidity, the current sunshine intensity and the current range extender operation state in the energy consumption comparison table to determine the target energy consumption per unit time; The predicted usage time of the vehicle in the rest mode is calculated based on the current available power and the target energy consumption per unit time.

3. The in-vehicle rest mode control method according to claim 1, characterized in that: The current environmental state includes the current ambient temperature, the current ambient humidity and the current sunshine intensity; the current vehicle state includes the current available power and the current range extender operation state; Calculating a predicted usage time of the vehicle in a rest mode according to the current environmental state and the current vehicle state includes: Obtaining a preset usage time comparison table, wherein the usage time comparison table records the corresponding unit power usage time under different ambient temperatures, ambient humidity, sunshine intensity and range extender operating states, wherein the range extender operating state includes the range extender being in an on state and the range extender being in an off state; The current ambient temperature, the current ambient humidity, the current sunshine intensity and the current range extender operation state are searched in the usage time comparison table to determine the target unit power usage time; The predicted usage time of the vehicle in the rest mode is calculated based on the current available power and the target unit power usage time.

4. The in-vehicle rest mode control method according to claim 2 or 3, characterized in that: The vehicle status information also includes the current battery temperature, the cumulative number of battery cycles and a preset discharge efficiency coefficient; The step of obtaining the current available power includes: Get the current remaining power; Determining a temperature attenuation coefficient corresponding to the current battery temperature according to a preset temperature attenuation curve; Calculating an aging attenuation coefficient according to the cumulative number of battery cycles and a preset unit number attenuation coefficient; The current remaining power is corrected according to the temperature attenuation coefficient, the aging attenuation coefficient and the discharge efficiency coefficient to obtain the current available power.

5. The in-vehicle rest mode control method according to claim 1, characterized in that: Determining whether to start the range extender to generate electricity according to the airtight detection result, the current environmental state, and the duration comparison result includes: When the enclosed detection result indicates that the vehicle is in an enclosed space, starting the range extender to generate electricity is prohibited; When the enclosed detection result indicates that the vehicle is not in an enclosed space, determining whether the current ambient temperature included in the current ambient state is less than a preset low temperature threshold; If so, the range extender is started to generate electricity and the passenger cabin is heated by the waste heat of the range extender; If not, determining whether the duration comparison result indicates that the target rest duration is greater than the predicted usage duration; If so, start the range extender to generate electricity; If not, the range extender is not started.

6. The in-vehicle rest mode control method according to claim 5, characterized in that: When the confined space detection result indicates that the vehicle is in a confined space, the method further includes: If the duration comparison result indicates that the target rest duration is greater than the predicted usage duration, providing a usage duration suggestion to the user according to the predicted usage duration; In response to a duration shortening instruction initiated by the user, wherein the duration shortening instruction indicates shortening the target rest duration to be equal to or less than the predicted usage duration, when the operating duration of the rest mode reaches the shortened target rest duration, turning off the rest mode.

7. The in-vehicle rest mode control method according to claim 5, characterized in that: When the confined space detection result indicates that the vehicle is in a confined space, the method further includes: If the duration comparison result indicates that the target rest duration is greater than the predicted usage duration, the target rest duration is shortened to be equal to or less than the predicted usage duration, and the shortened target rest duration is displayed on the in-vehicle interactive interface.

8. A vehicle rest mode control device, characterized in that: The device comprises: A response module, used to respond to a rest mode start instruction initiated by a user, and obtain a target rest time, a current environment state, and a current vehicle state; A detection module is used to detect whether the vehicle is in a confined space and obtain a confined space detection result; a processing module, configured to calculate a predicted usage time of the vehicle in a rest mode according to the current environmental state and the current vehicle state, and compare the target rest time with the predicted usage time to obtain a time comparison result; The control module is used to determine whether to start the range extender to generate electricity according to the airtight detection result, the current environmental state and the duration comparison result.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the in-vehicle rest mode control method according to any one of claims 1 to 7 are implemented.

10. 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 in-vehicle rest mode control method according to any one of claims 1 to 7 are implemented.