Mode control method, device, vehicle and computer readable storage mediumTechnical Field
Embodiments of the present disclosure relate to the field of vehicle engineering technologies, and in particular, to a mode control method and apparatus, a vehicle, and a computer-readable storage medium.
Background
With the rapid development of the technical field of vehicle engineering, vehicles are more and more commonly used, and the vehicles become important vehicles in people's lives.
At present, when the user need park and carry out short break, in order to guarantee the travelling comfort of break, the user generally can open the air conditioner of vehicle, because the operation of air conditioner generally relies on the engine, the vibrations of vehicle can be caused in the work of engine, still can generate carbon monoxide simultaneously, vibrations and carbon monoxide all can lead to the environment that the user had a break not comfortable enough to influence user's short break.
Disclosure of Invention
Embodiments of the present disclosure provide a mode control method, apparatus, vehicle, and computer-readable storage medium to solve the problem in the prior art that a comfort level of a rest environment provided by a vehicle is low.
In a first aspect, an embodiment of the present disclosure provides a mode control method applied to a vehicle including a battery, the method including:
under the trigger of the rest mode trigger information, controlling the vehicle to enter a preset rest mode;
Controlling the vehicle to exit the preset rest mode under the condition that the time length of the vehicle in the preset rest mode reaches a target time length;
wherein in the preset rest mode, the battery supplies power to an air conditioner of the vehicle, and the state of the vehicle includes at least one of: the light emitting device of the vehicle is in an off state; the door of the vehicle is in a locked state; the seat of the vehicle is in a preset lying rest position; the screen brightness of the display screen of the vehicle is lower than the preset brightness; the audio of the vehicle is in a stop playing state.
In some embodiments, said controlling said vehicle to enter a preset rest mode comprises:
determining a target seat of the vehicle; wherein the target seat is in an occupancy-sensing state;
and controlling the target seat to be adjusted to a preset lying rest position.
In some embodiments, the determining a target seat of the vehicle comprises:
obtaining a detection signal of a seat sensor of the vehicle;
and determining a target seat of the vehicle according to the detection signal.
In some embodiments, said controlling said target seat to adjust to a preset recumbent rest position comprises:
Acquiring images of passengers of the target seat by calling a camera;
obtaining user information of the occupant according to the image;
determining a preset lying and resting position corresponding to the user information;
and controlling the target seat to be adjusted to the determined preset lying and resting position.
In some embodiments, the seat behind the target seat is in a non-occupancy sensing state.
In some embodiments, the method further comprises:
and outputting a rest awakening prompt under the condition that the time length of the vehicle in the preset rest mode reaches the target time length.
In some embodiments, the method further comprises:
before entering a preset rest mode, calculating the operable time of the vehicle in the preset rest mode according to the air conditioner operation condition data of the vehicle and the residual electric quantity of the battery;
determining a target duration of the preset rest mode; wherein the target duration is less than or equal to the operational duration.
In some embodiments, the determining the target duration of the preset rest mode comprises:
displaying the operable duration and the duration setting control on a display screen of the vehicle;
receiving input operation of a user on the duration setting control;
And taking the time length indicated by the input operation as the target time length of the preset rest mode.
In some embodiments, said entering a preset rest mode comprises:
and entering a preset rest mode under the condition that the road section where the vehicle is located is a preset safe road section and the gear of the vehicle is a parking gear.
In a second aspect, an embodiment of the present disclosure provides a mode control apparatus applied to a vehicle including a battery, the apparatus including:
the first control module is used for controlling the vehicle to enter a preset rest mode under the triggering of the rest mode triggering information;
the second control module is used for controlling the vehicle to exit the preset rest mode under the condition that the time length of the vehicle in the preset rest mode reaches the target time length;
wherein in the preset rest mode, the battery supplies power to an air conditioner of the vehicle, and the state of the vehicle includes at least one of: the light emitting device of the vehicle is in an off state; the door of the vehicle is in a locked state; the seat of the vehicle is in a preset lying rest position; the screen brightness of the display screen of the vehicle is lower than the preset brightness; the audio of the vehicle is in a stop playing state.
In some embodiments, the first control module comprises:
a first determination unit for determining a target seat of the vehicle; wherein the target seat is in an occupancy-sensing state;
and the first control unit is used for controlling the target seat to be adjusted to a preset lying and resting position.
In some embodiments, the first determining unit includes:
a first obtaining subunit configured to obtain a detection signal of a seat sensor of the vehicle;
a first determining subunit, configured to determine a target seat of the vehicle according to the detection signal.
In some embodiments, the first control unit comprises:
the calling subunit is used for calling a camera to acquire the image of the passenger of the target seat;
a second obtaining subunit configured to obtain user information of the occupant from the image;
the second determining subunit is used for determining a preset lying and resting position corresponding to the user information;
and the control subunit is used for controlling the target seat to be adjusted to the determined preset lying and resting position.
In some embodiments, the seat behind the target seat is in a non-occupancy sensing state.
In some embodiments, the apparatus further comprises:
And the output module is used for outputting a rest awakening prompt under the condition that the time length of the vehicle in the preset rest mode reaches the target time length.
In some embodiments, the apparatus further comprises:
the calculation module is used for calculating the operable time of the vehicle in the preset rest mode according to the air conditioner operation condition data of the vehicle and the residual electric quantity of the battery before entering the preset rest mode;
the determining module is used for determining the target duration of the preset rest mode; wherein the target duration is less than or equal to the operational duration.
In some embodiments, the determining module comprises:
the display unit is used for displaying the operable time length and the time length setting control on a display screen of the vehicle;
the receiving unit is used for receiving the input operation of the user on the duration setting control;
and the second determination unit is used for taking the time length indicated by the input operation as the target time length of the preset rest mode.
In some embodiments, the first control module is specifically configured to:
and controlling the vehicle to enter a preset rest mode under the condition that the road section where the vehicle is located is a preset safe road section and the gear of the vehicle is a parking gear.
In a third aspect, embodiments of the present disclosure provide a vehicle comprising a processor, a memory, a computer program stored on the memory and operable on the processor, the computer program, when executed by the processor, implementing the steps of the mode control method described above.
In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having stored thereon a computer program, which when executed by a processor, implements the steps of the mode control method described above.
In the embodiment of the disclosure, under the trigger of the rest mode trigger information, the vehicle can enter the preset rest mode, and under the preset rest mode, the battery can supply power to the air conditioner so as to keep the proper temperature in the vehicle. In addition, the vehicle can also take some other measures, for example, can close light emitting device, lock the car, adjust the seat to the position that suits the rest, reduce display screen luminance, stop playing audio frequency etc. to build more comfortable rest environment, thereby guarantee user's rest effect better. Under the condition that the duration in the preset rest mode reaches the target duration, the vehicle can exit the preset rest mode, that is to say, the vehicle can automatically and intelligently exit the preset rest mode, which is helpful for waking up the user, and therefore, in the embodiment of the disclosure, the intelligent degree of the vehicle is higher.
Drawings
FIG. 1 is a flow chart of a mode control method provided by an embodiment of the present disclosure;
FIG. 2 is an interface schematic of a display screen of a vehicle;
fig. 3 is a block diagram of a mode control apparatus provided in an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a vehicle provided by an embodiment of the present disclosure.
Detailed Description
Technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is apparent that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
The mode control method provided by the embodiment of the present disclosure is first explained below.
It should be noted that the mode control method provided by the embodiment of the present disclosure is applied to a vehicle, and the vehicle includes a battery. Specifically, the vehicle referred to in the embodiments of the present disclosure may be an electric vehicle or a hybrid electric vehicle.
Referring to fig. 1, a flowchart of a mode control method provided by an embodiment of the present disclosure is shown. As shown in fig. 1, the method comprises the steps of:
Step 101, under the trigger of the rest mode trigger information, controlling a vehicle to enter a preset rest mode; wherein, in a preset rest mode, the battery supplies power for an air conditioner of the vehicle, and the state of the vehicle includes at least one of: the light emitting device of the vehicle is in an off state; the door of the vehicle is in a locked state; a seat of the vehicle is in a preset lying rest position; the screen brightness of a display screen of the vehicle is lower than the preset brightness; the audio of the vehicle is in a stop playing state.
Here, the preset rest mode may be a mode for the user to take a short rest, and the preset rest mode may also be referred to as a nap mode.
Here, the light emitting device of the vehicle may include a light source outside the vehicle, such as a headlamp, a double flash lamp, or the like; the seat of the vehicle can only comprise a driving seat of the vehicle, and can also comprise the driving seat and other seats of the vehicle; when the screen brightness of the display screen is lower than the preset brightness, the brightness of the display screen can be the lowest brightness; the audio of the vehicle may include in-vehicle media sounds, system sounds, and the like.
It should be noted that the rest mode trigger information is various in types, and the following description is given by way of example.
In one case, the rest mode trigger information includes a rest mode activation instruction input by the user. Here, the rest mode start instruction may be input in a manner of voice, touch, or the like, and when the user inputs the rest mode start instruction, the user may be considered to need to have a short rest, and at this time, the vehicle may be controlled to enter the preset rest mode in response to the rest mode start instruction.
In another case, the rest mode trigger information includes detection data satisfying a preset rest mode start condition. Here, the detection data may be fatigue detection data of a user (e.g., a driver), such as the number of yawns, the eye-closing time, or a combination of the number of yawns and the eye-closing time; the yawning number is used for representing the yawning number of the driver in a unit time (for example, 1 minute), and the eye closing duration is used for representing the eye closing duration of the driver in the unit time. The preset rest mode starting condition may be: the yawning times of the passengers are larger than the preset times, or the eye closing time of the passengers is larger than the preset eye closing time, or the yawning times of the passengers are larger than the preset times and the eye closing time is larger than the preset eye closing time. Specifically, the vehicle can collect fatigue detection data of the driver at regular time or irregular time, and under the condition that the collected fatigue detection data represent that the yawning times of the driver in unit time is greater than the preset times, the collected detection data can be determined to meet the starting condition of the preset rest mode.
And 102, controlling the vehicle to exit the preset rest mode under the condition that the time length of the vehicle in the preset rest mode reaches the target time length.
Here, the target duration may be a preset duration; alternatively, the target duration may be a duration determined according to a certain policy, and for clarity of layout, the policy is described in the following by way of example.
It should be noted that, starting from the initial time when the vehicle enters the preset rest mode, the time length of the vehicle in the preset rest mode can be determined at regular time or at irregular time, and the recorded time length is compared with the target time length.
If the recorded duration does not reach the target duration, the vehicle can be kept in the preset rest mode, at this time, the battery can continuously supply power to the air conditioner, the light-emitting device of the vehicle is kept closed, the door of the vehicle is kept in a locked state, the seat of the vehicle is kept in the preset lying rest position (which can be regarded as a position suitable for rest), the display screen of the vehicle is kept at the lowest brightness, and the audio frequency of the vehicle stops playing.
If the recorded duration reaches the target duration, the preset rest mode can be exited, the vehicle returns to the state before entering the preset rest mode or the light-emitting device of the vehicle can be turned on again, the seat of the vehicle can be adjusted to the original position, the display screen of the vehicle can be restored to the original brightness, and the audio frequency of the vehicle can be restored to play, so that the vehicle can enter the normal working state.
In the embodiment of the disclosure, under the trigger of the rest mode trigger information, the vehicle can enter the preset rest mode, and under the preset rest mode, the battery can supply power to the air conditioner so as to keep the proper temperature in the vehicle. In addition, the vehicle can also take some other measures, for example, can close light emitting device, lock the car, adjust the seat to the position that suits the rest, reduce display screen luminance, stop playing audio frequency etc. to build more comfortable rest environment, thereby guarantee user's rest effect better. Under the condition that the duration in the preset rest mode reaches the target duration, the vehicle can exit the preset rest mode, that is to say, the vehicle can automatically and intelligently exit the preset rest mode, which is helpful for waking up the user, and therefore, in the embodiment of the disclosure, the intelligent degree of the vehicle is higher.
In some embodiments, controlling the vehicle to enter a preset rest mode comprises:
determining a target seat of the vehicle; wherein the target seat is in an occupancy sensing state;
and controlling the target seat to be adjusted to a preset lying rest position.
Here, in the case where any one of the seats is in the occupancy sensing state, it can be considered that an occupant is present on the seat; in the case where any one of the seats is not in the occupancy-sensitive state (i.e., in the case where any one of the seats is in the non-occupancy-sensitive state), it can be considered that the occupant is not present in the seat.
In one embodiment, determining a target seat for a vehicle comprises:
obtaining a detection signal of a seat sensor of a vehicle;
and determining a target seat of the vehicle according to the detection signal.
It should be noted that, through the detection signal of the seat sensor of the vehicle, the pressure borne by each seat in the vehicle can be obtained, and the total number of passengers in the vehicle can be identified accordingly. It can be understood that, in the two cases of the presence and absence of the passenger on the seat, the pressure applied to the seat is not consistent, so that the pressure applied to each seat in the vehicle can be compared with a preset pressure, and if the pressure applied to any seat is greater than the preset pressure, the seat can be considered to be in the occupancy sensing state; otherwise, the seat is in an unoccupied sensing state.
Therefore, the seats in the occupation sensing states can be determined very conveniently according to the detection signals of the seat sensors, and each seat in the occupation sensing states can be used as a target seat. Of course, the manner of determining the seat in the occupancy-sensing state is not limited thereto, and the determination may be performed by an infrared manner, for example, and is not listed here.
After the target seat is determined, only the target seat can be controlled to be adjusted to a position suitable for rest, and the positions of other seats can be kept unchanged, so that unnecessary resource consumption and power consumption can be saved.
In some embodiments, controlling the target seat to adjust to the preset lying rest position includes:
calling a camera to acquire an image of a passenger of a target seat;
obtaining user information of the passenger according to the image;
determining a preset lying and resting position corresponding to the user information;
and controlling the target seat to be adjusted to the determined preset lying and resting position.
For convenience of understanding, only the case where the target seat is the driving seat is described as an example, then the occupant of the target seat is specifically the driver, and the user information of the driver may be information that can identify the driver, such as facial feature information, iris feature information, and the like of the driver.
It should be noted that, the vehicle may be stored with a corresponding relationship between the user information and the preset lying and resting position in advance. Specifically, in the correspondence relationship, the facial feature information 1 may correspond to a preset lying rest position 1, the facial feature information 2 may correspond to a preset lying rest position 2, and the facial feature information 3 may correspond to a preset lying rest position 3.
After the image of the driver is acquired by calling the camera, the user information of the driver can be obtained according to the image of the driver, for example, facial recognition is carried out according to the image of the driver to obtain the facial feature information of the driver. Assuming that the obtained facial feature information is facial feature information 2, according to the corresponding relationship, it can be determined that the corresponding preset lying rest position is the preset lying rest position 2, and then, the driving seat of the vehicle can be controlled to be adjusted to the preset lying rest position 2, so that the adjusted position of the driving seat is matched with the current driver.
Therefore, the embodiment of the disclosure can better ensure that the adjusted position of the seat is matched with the passenger, thereby ensuring the resting effect of the passenger.
In some embodiments, the seat behind the target seat is in a non-occupancy sensing state.
In the embodiment of the present disclosure, when determining the target seat, it is necessary to determine whether or not the seat located behind the target seat is in the occupancy sensing state, in addition to determining whether or not the seat itself is in the occupancy sensing state. For any seat, if the seat is in an occupancy sensing state and the seat behind the seat is in a non-occupancy sensing state, the position adjustment of the seat does not interfere with the occupant behind the seat, and therefore the seat can be determined as a target seat; otherwise, it is not determined as the target seat.
Therefore, the problem that seat adjustment interferes with an occupant can be effectively solved through the embodiment of the disclosure.
In some embodiments, the method further comprises:
and outputting a rest awakening prompt under the condition that the time length of the vehicle in the preset rest mode reaches the target time length.
Here, the rest wake-up prompt may be a voice prompt, a light prompt, or the like. Specifically, the sound prompt may be an alarm clock ringing prompt, music playing, and the like; wherein, the alarm clock ringing prompt can be output by an alarm clock control in the vehicle.
In the embodiment of the disclosure, when the duration of the vehicle in the preset rest mode reaches the target duration, the rest awakening prompt can be automatically output, and the better awakening effect can be achieved through the rest awakening prompt so as to awaken the user in the sleep state.
In some embodiments, the method further comprises:
before entering a preset rest mode, calculating the operable time of the vehicle in the preset rest mode according to the air conditioner operation condition data of the vehicle and the residual electric quantity of the battery;
determining a target duration of a preset rest mode; wherein the target time length is less than or equal to the operable time length.
It should be noted that, the vehicle may be stored with a corresponding relationship between the air conditioner operation condition data and the power consumption amount per unit time in advance. Before entering a preset rest mode, the current air conditioner operation condition data of the vehicle and the residual electric quantity of the battery can be acquired; the air conditioner operation condition data may include ambient temperatures inside and outside the vehicle. Next, the vehicle may determine power consumption per unit time corresponding to the acquired air conditioner operation condition data according to a pre-stored correspondence, and calculate a maximum opening duration of the preset rest mode according to the determined power consumption per unit time and the acquired battery remaining capacity, for example, a ratio of the acquired battery remaining capacity to the determined power consumption per unit time may be used as the maximum opening duration.
After the maximum opening time length is calculated, the vehicle can directly take the maximum opening time length as the operable time length of the vehicle in a preset rest mode; alternatively, the vehicle may calculate the product of the maximum opening time and a preset first time coefficient (which may be 0.6, 0.7, 0.8, etc.), and use the calculated product as the operable time of the vehicle in the preset rest mode, so as to ensure that the electric quantity of the battery is not completely consumed.
After the operational duration is obtained, a target duration of the preset rest mode may be determined. It should be noted that, specific implementation forms for determining the target duration of the preset rest mode are various, and the following description is given by way of example.
In one implementation form, determining a target duration of a preset rest mode includes:
displaying an operable time length and a time length setting control on a display screen of the vehicle;
receiving input operation of a user on a duration setting control;
and taking the time length indicated by the input operation as the target time length of the preset rest mode.
Here, as shown in fig. 2, the duration setting control displayed on the display screen of the vehicle may include aduration bar 200 and an adjustingcontrol 210, the adjustingcontrol 210 is disposed on theduration bar 200, and the user may pull the adjustingcontrol 210 left or right (the operation of pulling the adjustingcontrol 210 left or right may be used as an input operation to the duration setting control) to change the position of the adjustingcontrol 210 on theduration bar 200, so as to change the value of the target duration. Specifically, the farther to the right theadjustment control 210 is, the larger the value of the target duration may be; the farther to the left theadjustment control 210 is, the smaller the value of the target duration may be.
Of course, the specific form of the duration setting control, and the input operation to the duration setting control are not limited to the case shown in fig. 2, for example, the duration setting control may include a duration increase button and a duration decrease button, and the user may perform setting of the target duration by clicking the duration increase button or the duration decrease button, which is also possible.
Therefore, in the implementation form, the operable time length can be presented to the user in a visual mode, and the user can conveniently set the target time length based on the time length setting control.
Of course, the target time period may not be set by the user but determined by the vehicle itself, and it is also possible that the vehicle calculates a product of the operable time period and a preset second time coefficient (which may be 0.6, 0.7, 0.8, etc.), for example, and determines the calculated product as the target time period. It should be noted that the first time factor and the second time factor may be the same or different.
Therefore, in the embodiment of the disclosure, the target duration of the preset rest mode can be determined very conveniently.
In some embodiments, entering a preset rest mode comprises:
and entering a preset rest mode under the condition that the road section where the vehicle is located is a preset safe road section and the gear of the vehicle is a parking gear.
Here, the preset safe section is a section with high safety, for example, a section other than a section unsuitable for parking and resting, such as a highway section, an urban area ring line section, and the like; the parking range may also be referred to as P range.
In the embodiment of the disclosure, a Global Positioning System (GPS) module of a vehicle and a map application of a Human Machine Interface (HMI) can be simultaneously invoked to determine a road section where the vehicle is currently located; a Head Unit (HU) module of the vehicle may also be invoked to determine the current gear of the vehicle.
In the concrete implementation, the vehicle may be stored with the position information of the highway section, the urban area loop circuit section, and the like in advance. After the road section where the vehicle is located is determined, the determined road section may be compared with the pre-stored position information, and it is determined whether the road section where the vehicle is located is the preset safe road section. Under the condition that the current road section is the preset safe road section and the current gear of the vehicle is the parking gear, the vehicle can be considered to be suitable for parking and rest at present, and then the vehicle can enter the preset rest mode. When at least one of the two conditions that the current road section is the preset safe road section and the current gear of the vehicle is the parking gear is not satisfied, the vehicle is considered to be not suitable for parking and resting, and then the vehicle is prohibited from entering the preset resting mode.
Therefore, in the embodiment of the disclosure, the vehicle enters the preset rest mode only under the condition that the vehicle is suitable for parking and resting at present, so that the safety in the rest process can be better ensured.
In conclusion, a whole set of linkage control strategy is provided for a rest mode in the embodiment of the disclosure, so that a comfortable rest environment can be provided for a user, and the threat of carbon monoxide to the life safety of the user is avoided.
The mode control device provided by the embodiment of the present disclosure is explained below.
Referring to fig. 3, a block diagram of amode control apparatus 300 according to an embodiment of the present disclosure is shown. As shown in fig. 3, themode control device 300 is applied to a vehicle including a battery, and themode control device 300 includes:
thefirst control module 301 is configured to control the vehicle to enter a preset rest mode under the trigger of the rest mode trigger information;
thesecond control module 302 is used for controlling the vehicle to exit the preset rest mode when the time length of the vehicle in the preset rest mode reaches the target time length;
wherein, in a preset rest mode, the battery supplies power for an air conditioner of the vehicle, and the state of the vehicle includes at least one of: the light emitting device of the vehicle is in an off state; the door of the vehicle is in a locked state; a seat of the vehicle is in a preset lying rest position; the screen brightness of a display screen of the vehicle is lower than the preset brightness; the audio of the vehicle is in a stop playing state.
In some embodiments, thefirst control module 301, comprises:
a first determination unit for determining a target seat of the vehicle; wherein the target seat is in an occupancy sensing state;
And the first control unit is used for controlling the target seat to be adjusted to a preset lying rest position.
In some embodiments, the first determination unit comprises:
a first obtaining subunit configured to obtain a detection signal of a seat sensor of a vehicle;
and the first determining subunit is used for determining a target seat of the vehicle according to the detection signal.
In some embodiments, a first control unit comprises:
the calling subunit is used for calling the camera to acquire the image of the passenger of the target seat;
a second obtaining subunit configured to obtain user information of the occupant based on the image;
the second determining subunit is used for determining a preset lying rest position corresponding to the user information;
and the control subunit is used for controlling the target seat to be adjusted to the determined preset lying and resting position.
In some embodiments, the seat behind the target seat is in a non-occupancy sensing state.
In some embodiments, themode control apparatus 300 further comprises:
and the output module is used for outputting a rest awakening prompt under the condition that the time length of the vehicle in the preset rest mode reaches the target time length.
In some embodiments, themode control apparatus 300 further comprises:
the calculation module is used for calculating the operable time of the vehicle in the preset rest mode according to the air conditioner operation condition data of the vehicle and the residual electric quantity of the battery before entering the preset rest mode;
The determining module is used for determining the target duration of a preset rest mode; wherein the target time length is less than or equal to the operable time length.
In some embodiments, the determining module comprises:
the display unit is used for displaying the operable time length and the time length setting control on a display screen of the vehicle;
the receiving unit is used for receiving the input operation of the user on the duration setting control;
and the second determination unit is used for taking the time length indicated by the input operation as the target time length of the preset rest mode.
In some embodiments, thefirst control module 301 is specifically configured to:
and entering a preset rest mode under the condition that the road section where the vehicle is located is a preset safe road section and the gear of the vehicle is a parking gear.
In the embodiment of the disclosure, under the trigger of the rest mode trigger information, the vehicle can enter the preset rest mode, and under the preset rest mode, the battery can supply power to the air conditioner so as to keep the proper temperature in the vehicle. In addition, the vehicle can also take some other measures, for example, can close light emitting device, lock the car, adjust the seat to the position that suits the rest, reduce display screen luminance, stop playing audio frequency etc. to build more comfortable rest environment, thereby guarantee user's rest effect better. Under the condition that the duration in the preset rest mode reaches the target duration, the vehicle can exit the preset rest mode, that is to say, the vehicle can automatically and intelligently exit the preset rest mode, which is helpful for waking up the user, and therefore, in the embodiment of the disclosure, the intelligent degree of the vehicle is higher.
The following describes a vehicle provided by an embodiment of the present disclosure.
Referring to fig. 4, a schematic structural diagram of avehicle 400 provided by an embodiment of the disclosure is shown. As shown in fig. 4, thevehicle 400 includes: aprocessor 401, atransceiver 402, amemory 403, auser interface 404 and a bus interface.
Thevehicle 400 includes a battery; aprocessor 401, configured to read the program in thememory 403, and execute the following processes:
under the trigger of the rest mode trigger information, controlling the vehicle to enter a preset rest mode;
controlling the vehicle to exit the preset rest mode under the condition that the time length of the vehicle in the preset rest mode reaches the target time length;
wherein, in a preset rest mode, the battery supplies power for an air conditioner of the vehicle, and the state of the vehicle includes at least one of: the light emitting device of the vehicle is in an off state; the door of the vehicle is in a locked state; a seat of the vehicle is in a preset lying rest position; the screen brightness of a display screen of the vehicle is lower than the preset brightness; the audio of the vehicle is in a stop playing state.
In FIG. 4, the bus architecture may include any number of interconnected buses and bridges, with one or more processors, represented byprocessor 401, and various circuits, represented bymemory 403, being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface. Thetransceiver 402 may be a number of elements including a transmitter and a receiver that provide a means for communicating with various other apparatus over a transmission medium. For different user devices, theuser interface 404 may also be an interface capable of interfacing with a desired device, including but not limited to a keypad, display, speaker, microphone, joystick, etc.
Theprocessor 401 is responsible for managing the bus architecture and general processing, and thememory 403 may store data used by theprocessor 401 in performing operations.
In some embodiments, theprocessor 401 is specifically configured to:
determining a target seat of the vehicle; wherein the target seat is in an occupancy sensing state;
and controlling the target seat to be adjusted to a preset lying rest position.
In some embodiments, theprocessor 401 is specifically configured to:
obtaining a detection signal of a seat sensor of a vehicle;
and determining a target seat of the vehicle according to the detection signal.
In some embodiments, theprocessor 401 is specifically configured to:
calling a camera to acquire an image of a passenger of a target seat;
obtaining user information of the passenger according to the image;
determining a preset lying and resting position corresponding to the user information;
and controlling the target seat to be adjusted to the determined preset lying and resting position.
In some embodiments, the seat behind the target seat is in a non-occupancy sensing state.
In some embodiments, theprocessor 401 is further configured to:
and outputting a rest awakening prompt under the condition that the time length of the vehicle in the preset rest mode reaches the target time length.
In some embodiments, theprocessor 401 is further configured to:
Before entering a preset rest mode, calculating the operable time of the vehicle in the preset rest mode according to the air conditioner operation condition data of the vehicle and the residual electric quantity of the battery;
determining a target duration of a preset rest mode; wherein the target time length is less than or equal to the operable time length.
In some embodiments, theprocessor 401 is specifically configured to:
displaying an operable time length and a time length setting control on a display screen of the vehicle;
receiving input operation of a user on a duration setting control;
and taking the time length indicated by the input operation as the target time length of the preset rest mode.
In some embodiments, theprocessor 401 is specifically configured to:
and entering a preset rest mode under the condition that the road section where the vehicle is located is a preset safe road section and the gear of the vehicle is a parking gear.
In the embodiment of the disclosure, under the trigger of the rest mode trigger information, thevehicle 400 can enter the preset rest mode, and under the preset rest mode, the battery can supply power to the air conditioner so as to keep the proper temperature in thevehicle 400. In addition, thevehicle 400 may also take some other measures, for example, the light emitting device may be turned off, the vehicle may be locked, the seat may be adjusted to a position suitable for rest, the brightness of the display screen may be reduced, the audio may be stopped playing, etc., so as to create a more comfortable rest environment, thereby better ensuring the rest effect of the user. In the case that the duration in the preset rest mode reaches the target duration, thevehicle 400 may exit the preset rest mode, that is, thevehicle 400 may automatically and intelligently exit the preset rest mode, which is helpful for waking up the user, and therefore, in the embodiment of the present disclosure, the degree of intelligence of thevehicle 400 is higher.
The embodiment of the present disclosure further provides a vehicle, including aprocessor 401, amemory 403, and a computer program stored in thememory 403 and capable of running on theprocessor 401, where the computer program, when executed by theprocessor 401, implements each process in the above embodiment of the mode control method and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
Embodiments of the present disclosure further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by theprocessor 401, the computer program implements each process in the above-mentioned mode control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
The above description is only for the specific embodiments of the present disclosure, but the scope of the present disclosure is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present disclosure, and all the changes or substitutions should be covered within the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.