Vehicle control method and device, vehicle and storage medium
By using the target sensor to detect whether there are users in the car while the vehicle is parked, and automatically close the lights and windows without users, the energy consumption and safety problems caused by the user forgetting to turn off the lights and windows are solved, and the user has been improved Experience.
Patent Information
- Application Number
- CN202311083791.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-25
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2043-08-25
AI Technical Summary
After the vehicle is parked, the user may forget to turn off the lights and windows, resulting in increased vehicle energy consumption and threatened user property safety.
When the vehicle is in a parked state and the door is locked, the target sensor (such as camera, radar, seat pressure sensor) is used to detect whether there is a user in the car. If there is no user in the car, the lights and windows are automatically controlled to close.
It effectively avoids vehicle energy consumption and property safety issues caused by users who forget to turn off the lights and windows, reduces vehicle energy consumption and improves user experience.
Smart Images

Figure CN119502829A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle control technology, and more specifically, to a vehicle control method, device, vehicle and storage medium in the field of vehicle control technology. Background Art
[0002] Usually when a user gets out of the vehicle, the user needs to manually turn off the lights and windows and lock the doors to ensure the safety of the vehicle. However, the user may forget to turn off the lights and windows and directly lock the doors with one key through the remote control key or other operations, which may cause problems with vehicle energy consumption and user property safety. Summary of the invention
[0003] The present application provides a vehicle control method, device, vehicle and storage medium, which can control the closing of vehicle lights and windows in a timely manner to improve user experience.
[0004] In a first aspect, a vehicle control method is provided, the method comprising:
[0005] Get the vehicle's operating status and door status;
[0006] When the running state is the parking state and the state of the door is the locked state, detecting whether there is a user in the vehicle;
[0007] If there is no user in the vehicle, the vehicle's lights and windows are controlled to close.
[0008] In the above technical solution, when it is determined that the vehicle is in a parked state and the doors are locked, if there is no user in the vehicle, it means that the user has left the vehicle. At this time, the lights and windows are controlled to be closed in time, which can avoid the problem of vehicle energy consumption and user property safety caused by the user forgetting to turn off the lights and windows, reduce vehicle energy consumption, ensure the user's property safety, and further improve the user experience.
[0009] In conjunction with the first aspect, in some possible implementations, when the running state is a parking state and the state of the door is a locked state, detecting whether there is a user in the vehicle includes:
[0010] When the running state is the parking state and the state of the door is the locked state, controlling the target sensor in the vehicle to work to detect whether there is a user in the vehicle, the target sensor includes any one of a camera, a radar, and a seat pressure sensor or a combination thereof;
[0011] If the target sensor does not detect the presence of a user in the vehicle within a preset time period, it is determined that there is no user in the vehicle.
[0012] In combination with the first aspect and the above implementations, in some possible implementations, the vehicle lights include interior lights and exterior lights, and when the vehicle is in a dark environment, controlling the vehicle lights and windows to close includes:
[0013] If there is no user in the vehicle, control the interior lights and windows to close;
[0014] When there is no user in the vehicle, if it is detected that there is a user within a preset distance outside the vehicle, the exterior lights are controlled to be turned on, until it is detected that there is no user within the preset distance outside the vehicle, then the exterior lights are controlled to be turned off.
[0015] In combination with the first aspect and the above implementations, in some possible implementations, after controlling the lights and windows of the vehicle to be closed, the method further includes:
[0016] A first prompt message is generated, where the first prompt message is used to prompt the user to close the lights and windows of the vehicle.
[0017] In combination with the first aspect and the above implementation manner, in some possible implementation manners, the method further includes:
[0018] When the operating state is the driving state, when a door unlocking command is detected, if the vehicle speed is greater than a preset threshold, the state of the door is controlled to be a locked state.
[0019] In combination with the first aspect and the above implementation manner, in some possible implementation manners, the method further includes:
[0020] If the vehicle loses power and it is detected that the vehicle is powered on after the power failure, the motor in the door lock is controlled to reset.
[0021] In combination with the first aspect and the above implementations, in some possible implementations, when controlling the motor in the door lock to reset, the method further includes:
[0022] Detect whether there is current in the motor;
[0023] If there is no current in the motor, a second prompt message is generated, and the second prompt message is used to indicate that a fault occurs in the motor;
[0024] The second prompt information is sent to the user's terminal.
[0025] In combination with the first aspect and the above implementation manner, in some possible implementation manners, the method further includes:
[0026] If the vehicle speed is less than or equal to a preset threshold, in response to a door unlocking instruction, the state of a pawl switch and a ratchet switch in the door lock is detected, the pawl switch and the ratchet switch being used to unlock or lock the door;
[0027] When it is detected that both the pawl switch and the ratchet switch are in the on state, it is determined that the door is unlocked.
[0028] In a second aspect, a vehicle control device is provided, the device comprising:
[0029] An acquisition module, used to acquire the running status of the vehicle and the status of the doors;
[0030] A detection module, used for detecting whether there is a user in the vehicle when the running state is the parking state and the state of the door is the locked state;
[0031] The control module is used for controlling the vehicle's lights and windows to close if there is no user in the vehicle.
[0032] In conjunction with the second aspect, in some possible implementations, the detection module is specifically configured to:
[0033] When the running state is the parking state and the state of the door is the locked state, controlling the target sensor in the vehicle to work to detect whether there is a user in the vehicle, the target sensor includes any one of a camera, a radar, and a seat pressure sensor or a combination thereof;
[0034] If the target sensor does not detect the presence of a user in the vehicle within a preset time period, it is determined that there is no user in the vehicle.
[0035] In combination with the second aspect and the above implementations, in some possible implementations, the vehicle lights include interior lights and exterior lights, and when the vehicle is in a dark environment, the control module is specifically configured to:
[0036] If there is no user in the vehicle, control the interior lights and windows to close;
[0037] When there is no user in the vehicle, if it is detected that there is a user within a preset distance outside the vehicle, the exterior lights are controlled to be turned on, until it is detected that there is no user within the preset distance outside the vehicle, then the exterior lights are controlled to be turned off.
[0038] In combination with the second aspect and the foregoing implementation manner, in some possible implementation manners, the device further includes:
[0039] The generating module is used to generate a first prompt message, and the first prompt message is used to prompt the user to close the lights and windows of the vehicle.
[0040] In combination with the second aspect and the above implementation, in some possible implementations, the control module is specifically configured to:
[0041] When the operating state is the driving state, when a door unlocking command is detected, if the vehicle speed is greater than a preset threshold, the state of the door is controlled to be a locked state.
[0042] In combination with the second aspect and the above implementation, in some possible implementations, the control module is specifically configured to:
[0043] If the vehicle loses power and it is detected that the vehicle is powered on after the power failure, the motor in the door lock is controlled to reset.
[0044] In combination with the second aspect and the above implementation, in some possible implementations, the control module is specifically configured to:
[0045] Detect whether there is current in the motor;
[0046] If there is no current in the motor, a second prompt message is generated, and the second prompt message is used to indicate that a fault occurs in the motor;
[0047] The second prompt information is sent to the user's terminal.
[0048] In combination with the second aspect and the above implementation, in some possible implementations, the control module is specifically configured to:
[0049] If the vehicle speed is less than or equal to a preset threshold, in response to a door unlocking instruction, the state of a pawl switch and a ratchet switch in the door lock is detected, the pawl switch and the ratchet switch being used to unlock or lock the door;
[0050] When it is detected that both the pawl switch and the ratchet switch are in the on state, it is determined that the door is unlocked.
[0051] In a third aspect, a vehicle is provided, comprising a memory and a processor. The memory is used to store executable program code, and the processor is used to call and run the executable program code from the memory, so that the vehicle executes the method in the first aspect or any possible implementation of the first aspect.
[0052] In a fourth aspect, a computer program product is provided, comprising: a computer program code, which, when executed on a computer, enables the computer to execute the method in the first aspect or any possible implementation of the first aspect.
[0053] In a fifth aspect, a computer-readable storage medium is provided, which stores a computer program code. When the computer program code runs on a computer, the computer executes the method in the above-mentioned first aspect or any possible implementation manner of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 is a schematic flow chart of a vehicle control method provided in an embodiment of the present application;
[0055] Figure 2 It is a schematic flow chart of a vehicle light control method provided in an embodiment of the present application.
[0056] Figure 3 It is a schematic flow chart of a vehicle window control method provided in an embodiment of the present application.
[0057] Figure 4 is a structural schematic diagram of a vehicle control device provided in an embodiment of the present application;
[0058] Figure 5 It is a structural schematic diagram of a vehicle provided in an embodiment of the present application. DETAILED DESCRIPTION
[0059] The technical solution in the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0060] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.
[0061] Before explaining in detail the vehicle control method provided in the embodiment of the present application, the application scenario provided in the embodiment of the present application is first introduced.
[0062] When the vehicle is parked and the doors are locked, if the user forgets to turn off the lights and windows, it may cause energy waste and personal and property safety issues. In this scenario, the user needs to unlock the vehicle and then manually turn off the lights and windows, which is a cumbersome operation and further reduces the user's experience of the vehicle.
[0063] Based on the above problems, an embodiment of the present application provides a vehicle control method, which can timely control the closing of vehicle lights and windows when the vehicle is parked and locked and there is no one in the vehicle, thereby improving the user experience.
[0064] Figure 1 is a schematic flow chart of a vehicle control method provided in an embodiment of the present application. The method can be exemplarily applied to a vehicle controller of a vehicle, such as Figure 1 As shown, the method includes the following steps.
[0065] Step 101: Obtain the running status of the vehicle and the status of the doors.
[0066] The vehicle's operating status indicates the vehicle's current status, and the door status indicates the door's current status. After the vehicle controller obtains the vehicle's current operating status and the door's current status, it can subsequently perform further operations based on the vehicle's current operating status and the door's current status, which will not be elaborated here.
[0067] Specifically, the vehicle controller can obtain the operating status signal of the vehicle and determine the current operating status of the vehicle according to the operating status signal. Among them, the operating status of the vehicle can include two states, driving state and parking state, for example. In this scenario, the operating status signal of the vehicle can carry 0x0 or 0x1, where 0x0 means driving (Drive) and 0x1 means parking (Parking). When the vehicle controller obtains that the vehicle operating status signal carries 0x1, it can be determined that the current operating state of the vehicle is the parking state. Moreover, the door controller can collect the current state of the door and send the collected current state of the door to the vehicle controller, so that the vehicle controller can obtain the current state of the door, and the state of the door can include a locked state and an unlocked state for example.
[0068] Among them, the vehicle controller can obtain the vehicle's operating status signal and the operating status of the door through buses such as the Controller Area Network (CAN) and the Local Interconnect Network (LIN) or independent analog signals, which is not limited in this embodiment of the present application.
[0069] Step 102: When the running state is the parking state and the state of the vehicle door is the locked state, detect whether there is a user in the vehicle.
[0070] Usually, when the vehicle is parked and the doors are locked, after all users get off the vehicle, the vehicle windows and lights need to be closed in time to ensure the safety of the vehicle and the user's property. Therefore, when the vehicle controller receives that the current running state of the vehicle is the parked state and the current state of the door is the locked state, it can continue to determine whether there is a user in the vehicle.
[0071] In some embodiments, the vehicle controller can control the target sensor in the vehicle to operate when the operating state is parking and the door state is locked to detect whether there is a user in the vehicle. The target sensor includes any one of a camera, a radar, and a seat pressure sensor or a combination thereof.
[0072] It should be understood that when the vehicle is parked and the doors are locked, it is usually a scenario where the user is getting off the vehicle and will no longer use it. Therefore, in this scenario, in order to reduce vehicle energy consumption, the vehicle controller can only control the target sensor, the light controller, and the window controller to detect whether there is a user in the vehicle through the target sensor, and when it is determined that there is no user in the vehicle, the light controller controls the lights to be turned off, and the window controller controls the windows to be closed.
[0073] The vehicle controller can pre-set which sensors in the vehicle can be used to detect whether there is a user in the vehicle, and use these sensors as target sensors. When the current running state of the vehicle is the parking state and the current state of the door is the locked state, the target sensor is controlled to work to detect whether there is a user in the vehicle through the target sensor.
[0074] It should be noted that the target sensors in the embodiments of the present application are not limited to cameras, radars, and seat pressure sensors, but may also include other types of sensors, which are not limited in the embodiments of the present application.
[0075] In the case where the target sensor includes a camera, specifically, when the current running state of the vehicle is a parking state and the current state of the door is a locked state, the vehicle controller wakes up the camera, the camera collects the image inside the vehicle, and sends the image inside the vehicle to the vehicle controller. When the vehicle controller receives the image inside the vehicle, it determines whether there is a user in the vehicle according to the image inside the vehicle. If there is no user in the image inside the vehicle, the vehicle controller determines that there is no user in the vehicle.
[0076] Among them, the vehicle controller can extract features of the in-vehicle image to obtain image features. It is judged whether there is a user in the vehicle based on the image features. For example, it is judged whether the image features include skin texture features, expression features (such as smiling, crying, etc.), limb features (such as clenching fists, raising hands, raising legs, etc.) and other image features related to the user (person) to determine whether there is a user in the vehicle. If the image features do not include skin texture features, expression features and limb features, the vehicle controller determines that there is no user in the vehicle. If the image features include any one of skin texture features, expression features and limb features, the vehicle controller determines that there is a user in the vehicle.
[0077] Optionally, after acquiring the in-car image, the camera can also judge whether there is a user in the car, and send the judgment result to the vehicle controller. The vehicle controller can directly determine whether there is a user in the vehicle based on the judgment result.
[0078] In addition, the camera mentioned above can be a camera, which is used to collect the overall image inside the car, but a camera may have a visual blind spot directly below it, so multiple cameras can also be installed inside the vehicle, such as installing a camera above each of the left and right sides of the vehicle, and each of the left and right sides corresponds to a camera, that is, the left camera is used to collect images at the right position, and the right camera is used to collect images at the left position, which can greatly reduce the visual blind spot. Among them, the camera can be a visible light camera or an infrared camera, and the embodiment of the present application does not limit the type of camera. Furthermore, a camera can be installed above each position of the vehicle, and the embodiment of the present application does not limit the number of cameras.
[0079] In the case where the target camera includes a radar, specifically, when the current running state of the vehicle is a parking state and the current state of the door is a locked state, the vehicle controller wakes up the radar, and the radar can detect the breathing amplitude of an object with vital signs, and then determine whether there is a user in the vehicle through an algorithm. For example, the respiratory frequency of an object with vital signs can be detected by radar by detecting the chest fluctuation amplitude of the object, thereby obtaining the breathing amplitude of the object, and then determining whether there is a user in the vehicle, and sending the judgment result to the vehicle controller. Among them, the judgment result may include two results: the user exists in the vehicle and the user does not exist in the vehicle. The vehicle controller receives the judgment result and can determine whether there is a user in the vehicle. By way of example, the radar can be a millimeter wave radar, an ultrasonic radar, etc., and the application does not limit the type of radar.
[0080] In the case where the target sensor includes a seat pressure sensor, a seat pressure sensor can be set under each position of the vehicle. Specifically, when the current running state of the vehicle is the parking state and the current state of the door is the locked state, the vehicle controller wakes up the seat pressure sensor, and each seat pressure sensor obtains the pressure information of the corresponding seat. When the seat is subjected to pressure from the outside, a trigger signal is generated. The seat pressure sensor obtains the external pressure signal and judges the seat load-bearing object according to the pressure value of the pressure signal and the signal fluctuation in the pressure distribution diagram to determine whether the seat is a user or an object. Usually, the pressure value generated by the user and the object and the signal fluctuation in the pressure distribution diagram are different. Therefore, when the seat pressure sensor senses the seat pressure, it can determine whether the seat load-bearing object is a user or an object, and send the judgment result to the vehicle controller. After receiving the judgment result, the vehicle controller can determine whether there is a user in the vehicle.
[0081] The above is a description of a single type of sensor included in the target sensor. Optionally, the target sensor may also be any combination of a camera, a radar, and a seat pressure sensor. In the case where the target sensor includes a sensor combination, in order to avoid a detection error in a certain sensor, the vehicle controller may determine that there is no user in the vehicle only when it receives the judgment result sent by each sensor in the sensor combination and determines that each judgment result shows that there is no user in the vehicle.
[0082] In addition, in some embodiments, if the target sensor does not detect the presence of a user in the vehicle within a preset time period, the vehicle controller determines that there is no user in the vehicle.
[0083] Among them, the preset time length can be set in advance, and the preset time length can be set to 5 minutes for example, which is not limited to this in the embodiment of the present application.
[0084] That is to say, the target sensor detects in real time whether there is a user in the vehicle and sends the detection result (judgment result) to the vehicle controller. The vehicle controller determines that within a preset time after the current time, if the received judgment results are all that there is no user in the vehicle, then it determines that there is no user in the vehicle. This can avoid the situation where the user temporarily leaves the vehicle.
[0085] Step 103: If there is no user in the vehicle, the vehicle lights and windows are controlled to be closed.
[0086] When it is determined that there is no user in the vehicle, the vehicle controller believes that the user has got off the vehicle and will no longer use the vehicle, so it can directly control the lights and windows to close. This can avoid vehicle energy consumption and user property safety problems caused by users forgetting to turn off the lights and windows, reduce vehicle energy consumption, ensure user property safety, and further improve user experience.
[0087] It is understandable that a vehicle includes multiple lights and multiple windows. The multiple lights can be controlled by one light controller or multiple light controllers, that is, one light controller controls one light. Correspondingly, multiple windows can be controlled by one window controller or multiple window controllers, that is, one window controller controls one window. The following is an example of one light controller controlling multiple lights and one window controller controlling multiple windows. For ease of description, the lights and windows below refer to all lights and windows in the vehicle.
[0088] Specifically, the vehicle controller can send a light off instruction to the light controller. When the light controller receives the light off instruction, it can obtain the current status of all lights. If the current status of a light is the on status (also called the lit status), the light controller will be controlled to be off. If the current status of a light is the off status (also called the extinguished status), the light controller will not operate the light. The light controller performs the above operations on all lights to control all lights to be off. Correspondingly, the vehicle controller can send a window control instruction to the window controller. When the window controller receives the window closing instruction, it can first obtain the current status of all windows. If the current status of a window is the on status, the window controller will be controlled to be closed. If the current status of a window is the closed status, the window controller will not operate the window. The window controller performs the above operations on all windows to control all windows to be closed.
[0089] The above is an explanation of the situation where the user leaves the vehicle but may forget to turn off the lights and windows when the vehicle is parked and the doors are locked. It is understandable that the user may leave the vehicle directly after parking and forget to turn off the lights, close the windows and lock the doors. Therefore, in the embodiment of the present application, the vehicle controller can also detect whether there is a user in the vehicle when the current operating state of the vehicle is the parking state and the state of the doors is the unlocked state, and control the doors to lock and control the lights and windows to close when there is no user in the vehicle.
[0090] In addition, in some embodiments, the vehicle controller may also generate a first prompt message after controlling the lights and windows to be closed, and the first prompt message is used to prompt the user that the lights and windows of the vehicle are closed; and the first prompt message is sent to the user's terminal. In this way, the user can promptly know that the lights and windows are closed. The vehicle controller may send the first prompt message to the user's terminal in the form of text messages, emails, etc., which are not limited in the embodiments of the present application.
[0091] In a scenario where the vehicle controller controls the doors to be locked and the lights and windows to be closed, the first prompt information is used to prompt the user that the vehicle doors are locked and the lights and windows are closed.
[0092] Below Figure 2 Taking this as an example, the solution of controlling the vehicle lights to be turned off by the vehicle controller in the embodiment of the present application is further explained. Figure 2 FIG. 1 is a schematic flow chart of a vehicle light control method provided in an embodiment of the present application. Figure 2As shown, when the vehicle is in the parking state and the door is in the locked state, it is detected whether there is a user in the vehicle. If there is no user in the vehicle, the current state of the headlights is obtained. If the current state of the headlights is on, the headlights are controlled to be turned off, and a prompt message of turning off the headlights is sent to the user terminal. If there is a user in the vehicle, it means that the user is still using the vehicle, and the vehicle controller does not perform any operation.
[0093] Below Figure 3 Taking this as an example, the solution of controlling the closing of the windows by the vehicle controller in the embodiment of the present application is further explained. Figure 3 is a schematic flow chart of a vehicle window control method provided in an embodiment of the present application. Figure 3 As shown, when the vehicle is in the parking state and the door is in the locked state, it is detected whether there is a user in the vehicle. If there is no user in the vehicle, the current state of the window is obtained. If the current state of the window is open, the window is controlled to be closed, and the user terminal is sent a prompt message that the window is closed. If there is a user in the vehicle, it means that the user is still using the vehicle, and the vehicle controller does not perform any operation.
[0094] In addition, the vehicle's lights include interior lights and exterior lights. When the vehicle is in a dark environment, the implementation process of controlling the vehicle's lights and windows to be closed in step 103 can also be: if there is no user in the vehicle, control the interior lights and windows to be closed; when there is no user in the vehicle, if a user is detected within a preset distance outside the vehicle, control the exterior lights to be turned on, until it is detected that there is no user within the preset distance outside the vehicle, then control the exterior lights to be turned off. The user here refers to the user of the vehicle.
[0095] The preset distance may be pre-set, and the preset distance may be, for example, the distance that the exterior lights of the vehicle can illuminate, which is not limited in the embodiment of the present application.
[0096] Specifically, a light sensor can be installed on the vehicle, and the light sensor is used to collect light outside the vehicle. The working principle of the light sensor is: when there is light within the sensing range of the light sensor, that is, when light enters the light sensor, the photoelectric element inside the light sensor will generate an electrical signal, and the light sensor will send the collected electrical signal to the vehicle controller, and the vehicle controller can determine that there is light outside the vehicle. In other words, the vehicle controller can determine the environment in which the vehicle is located based on whether it can receive the electrical signal sent by the light sensor.
[0097] Therefore, when the current operating state of the vehicle is the parking state and the current state of the door is the locked state, the vehicle controller can also control the operation of the light sensor. During the operation of the light sensor, if the vehicle working device does not receive the electrical signal sent by the light sensor, it is determined that the vehicle is in a dark environment. If the vehicle controller receives the electrical signal sent by the light sensor, it is determined that there is light in the vehicle's environment and it is not a dark environment.
[0098] When the vehicle controller determines that the vehicle is in a dark environment and there is no user in the vehicle, it can send an interior light off command to the light controller and a window closing command to the window controller. When the light controller receives the interior light off command, it can obtain the current state of all interior lights and control the interior lights that are not currently closed to be closed. When the window controller receives the window closing command, it can obtain the current state of all windows and control the windows that are not currently closed to be closed.
[0099] Moreover, when there is no user in the vehicle, the vehicle controller can also control the camera installed outside the vehicle to work, so as to collect environmental information outside the vehicle. The camera outside the vehicle can collect images outside the vehicle and send the images outside the vehicle to the vehicle controller, which determines whether there is a user of the vehicle within a preset distance outside the vehicle based on the images outside the vehicle. The camera can be an infrared camera, which is not limited in the embodiment of the present application.
[0100] Among them, the way in which the vehicle controller determines whether there is a vehicle user within a preset distance outside the vehicle based on the image outside the vehicle can be: the vehicle controller can pre-store the facial image of the vehicle owner, and when the infrared camera sends the collected image outside the vehicle to the vehicle controller, the vehicle controller can detect whether there is a "human face" image in the image outside the vehicle, and if there is a "human face" image, further determine whether the "human face" is the owner of the vehicle, that is, pair the facial image of the vehicle owner with the "human face" image. If the pairing is successful, it is determined that the owner of the vehicle exists within the preset distance outside the vehicle.
[0101] In addition, there may be a situation where the owner lends the vehicle to other users. In this case, the vehicle controller needs to store the user's facial image in advance, which makes the user identity verification process more troublesome. Therefore, another way to verify the user's identity can be: detect the user's identity through the remote control key carried by the user. When an object is detected within a preset distance outside the vehicle, the vehicle controller can also detect whether there is a remote control key within the preset distance outside the vehicle. If the remote control key is detected, it is determined that the user of the vehicle is within the preset distance outside the vehicle.
[0102] Moreover, if there is no "face" image in the image outside the vehicle, the vehicle controller can also further detect whether there is a remote control key of the vehicle within the preset distance outside the vehicle when detecting the existence of an object within the preset distance outside the vehicle, and determine whether there is a vehicle user within the preset distance outside the vehicle.
[0103] When the vehicle is in a dark environment, that is, the exterior lights of the vehicle are all turned off, so if there is no user of the vehicle within a preset distance outside the vehicle, the vehicle controller may not operate.
[0104] If there is a user of the vehicle within a preset distance outside the vehicle, the vehicle controller can send an exterior light turn-on instruction to the vehicle light controller, and the vehicle light controller can control all exterior lights to turn on when receiving the exterior light turn-on instruction. Until it is detected that there is no vehicle user within the preset distance outside the vehicle, an exterior light turn-off instruction is sent to the vehicle light controller, and the vehicle light controller controls all exterior lights to turn off when receiving the exterior light turn-off instruction. Therefore, the embodiment of the present application can turn on the exterior lights to illuminate the vehicle user outside the vehicle when the vehicle user is outside the vehicle, and turn off the exterior lights in time when there is no vehicle user outside the vehicle, so as to reduce the energy consumption of the vehicle.
[0105] It should be understood that the exterior lights include headlights, front and rear fog lights, license plate lights, reversing lights, brake lights and other lights, and these lights are located in different positions on the vehicle, such as headlights and front fog lights are located at the head of the vehicle, and rear fog lights, license plate lights, and reversing lights are located at the rear of the vehicle. Based on this, the embodiment of the present application can also control the exterior lights corresponding to the position of the vehicle user to turn on according to the position of the vehicle user. For example, if the position of the vehicle user is within a preset distance in front of the vehicle, the vehicle controller can control the exterior lights such as headlights located at the head of the vehicle to turn on to illuminate the vehicle user in front of the vehicle.
[0106] In this scenario, the body domain controller can further determine the location of the vehicle user when there is a vehicle user within a preset distance outside the vehicle, and send a target exterior light turn-on instruction to the vehicle light controller according to the location of the vehicle user. The target exterior light indicates the exterior light whose location on the vehicle corresponds to the location of the vehicle user outside the vehicle. After receiving the target exterior light turn-on instruction, the vehicle light controller controls the target exterior light to turn on.
[0107] Optionally, in order to reduce vehicle energy consumption, the embodiment of the present application can also control only one of the exterior lights to turn on to illuminate the user of the vehicle outside the vehicle. In this scenario, for example, when the vehicle controller detects that there is a user of the vehicle in front of the vehicle, it can send a headlight turn-on instruction to the headlight controller, and when the headlight controller receives the headlight turn-on instruction, it controls the headlight to turn on to illuminate the user of the vehicle in front of the vehicle.
[0108] The above are all operations of the vehicle controller when the vehicle is in the parking state. The opposite of the parking state is the driving state of the vehicle. It can be understood that when the vehicle is in the driving state, the vehicle doors are usually closed. And when the vehicle speed is high, the doors will automatically lock to ensure the safety of the users in the vehicle.
[0109] In this scenario, in some possible implementations, when the current operating state of the vehicle is the driving state, when a door unlocking command is detected, if the vehicle speed is greater than a preset threshold, the state of the door is controlled to be a locked state.
[0110] Among them, the preset threshold can be set in advance, and the preset threshold can be 5 kilometers per hour by way of example, which is not limited in the embodiment of the present application.
[0111] For example, the triggering method of the door unlocking command may include: generating the door unlocking command when detecting a user pressing an outer handle of the door; or generating the door unlocking command when detecting a user touching an inner handle of the door.
[0112] Specifically, when the user presses the outside door handle, the outside door handle detects the user operation, triggers the door control instruction, and sends the door control instruction to the vehicle controller, where the door control instruction may include a door unlock instruction or a door lock instruction. Correspondingly, when the user touches the inside door handle, the inside door handle detects the user operation, and also triggers the door control instruction, and sends the door control instruction to the vehicle controller. When the vehicle controller receives the door control instruction, it can control the door to unlock or lock according to the door control instruction.
[0113] Moreover, the vehicle controller may have a memory function, which will automatically save the state of the door control command triggered by the last user operation. For example, if the last user control operation on the door saved by the vehicle controller is a door locking operation, then the door is in a locked state. When the user presses the outside door handle or touches the inside door handle again, the outside door handle or the inside door handle generates a door control command based on the user operation, and sends the door control command to the vehicle controller. The vehicle controller determines that the user wants to unlock the door, that is, it determines that the door unlock command has been received.
[0114] When the vehicle controller detects the door unlock command, it can obtain the current speed of the vehicle. If the current speed is greater than the preset threshold, it is considered that the vehicle is traveling at a high speed. When the vehicle is traveling at high speed, opening the door may pose a great threat to the personal safety of the users in the vehicle. Therefore, in this scenario, the vehicle controller can control the state of the door to be locked, that is, the door unlock command is not executed and the door remains closed.
[0115] If the current speed of the vehicle is less than or equal to the preset threshold, the vehicle controller can assume that the vehicle speed is low, and opening the door at this time will not affect the user's personal safety. Therefore, in this scenario, the vehicle controller can execute the door unlocking command to control the door to open.
[0116] In one possible implementation, if the vehicle speed is less than or equal to a preset threshold, the status of a pawl switch and a ratchet switch in the door lock are detected in response to a door unlocking command, and the pawl switch and the ratchet switch are used to unlock or lock the door; when it is detected that both the pawl switch and the ratchet switch are in the on state, it is determined that the door is unlocked.
[0117] Specifically, when the vehicle controller receives the door unlocking instruction and determines that the door is unlocked, it can send a motor drive instruction to the door lock to drive the motor in the door lock to rotate, so as to release the stopping effect of the pawl on the ratchet. The ratchet rotates and bounces open under the action of the return spring, and the door is opened. The pawl and the ratchet are both provided with switches, including a pawl switch and a ratchet switch. When the stopping effect of the pawl on the ratchet is released, that is, the pawl and the ratchet are not in contact, the pawl switch is in the on state, and when the ratchet rotates and bounces open under the action of the return spring, the ratchet switch is in the on state. Therefore, after the driving motor rotates, the vehicle controller can detect the state of the pawl switch and the ratchet switch. When the pawl switch and the ratchet switch are both in the on state, the vehicle controller can determine that the door is unlocked at this time.
[0118] Moreover, the vehicle's door status switch can also indicate the current state of the door, but the door status switch being turned on does not mean that the door is open. It is possible that the door is swinging, but the door is still not unlocked. At this time, if the user does not touch the door handle, the door still cannot be opened. In this case, the door status switch is also turned on. Therefore, in the case of a door status switch, when the pawl switch, ratchet switch and door status switch are all turned on, the vehicle controller can determine that the door is unlocked.
[0119] In addition, after the vehicle controller determines that the door is unlocked, it can also control the motor in the door lock to reset. Specifically, after the motor completes its rotation, due to the existence of inertia, the motor will continue to rotate for a period of time, and the rotation of the motor will cause vehicle energy consumption. Therefore, after the vehicle controller determines that the door is unlocked, it can control the motor to reset in time to reduce vehicle energy consumption.
[0120] In a possible implementation, if a power failure occurs in the vehicle and it is detected that the vehicle is powered on after the power failure occurs, the motor in the door lock is controlled to reset.
[0121] If the vehicle is powered on again after a power outage, in order to protect the motor in the door lock, the vehicle controller can send a motor reset instruction to the door lock. When the door lock receives the motor reset instruction, it can control the motor to reset. For example, if the vehicle controller drives the motor in the door lock to rotate in response to the door unlock instruction, and a power outage suddenly occurs, and the vehicle is powered on again after the power outage, the vehicle controller does not know the action of the motor at this time, and should control the motor to reset in time to protect the motor and avoid motor failure.
[0122] In addition, in a possible implementation, when controlling the motor to reset, the vehicle controller can also detect whether there is current in the motor. If there is no current in the motor, a second prompt message is generated, and the second prompt message is used to indicate that the motor has failed, and the second prompt message is sent to the user's terminal. In this way, the user can promptly learn about the motor failure. Among them, the vehicle controller sends the second prompt message to the user's terminal in the form of text messages, emails, etc., which are not limited in the embodiments of the present application.
[0123] Specifically, the vehicle controller powers on the motor and detects whether there is current in the motor. If there is current in the motor, it means that the motor has moved after power-on. If there is no current in the motor, it means that the motor may be faulty, and the vehicle controller is not sure whether the motor has moved or not after power-on. Therefore, the vehicle controller can generate a second prompt message and send the second prompt message to the user's terminal to prompt the user that the battery has failed.
[0124] In summary, the embodiments of the present application provide a vehicle control method. When it is determined that the vehicle is in a parked state and the doors are locked, if there is no user in the vehicle, it means that the user has left the vehicle. At this time, the vehicle lights and windows are controlled to be closed in time, which can avoid the problems of vehicle energy consumption and user property safety caused by the user forgetting to turn off the lights and windows. It also avoids the problem that the user needs to manually turn off the lights and windows in this case, thereby reducing user operations and further improving user experience.
[0125] Moreover, when the door unlock command is detected, if the vehicle speed is greater than the preset threshold, it means that the vehicle speed is low. At this time, the door unlock command is not executed, that is, the door is controlled to be in a locked state, which can avoid accidents in which the user may be thrown out of the car due to the door opening, thereby ensuring the personal safety of the user. If the vehicle speed is less than or equal to the preset threshold, the door is controlled to be unlocked electrically with one button, which is lighter and more convenient than the traditional manual unlocking, and is more friendly to users with less strength such as the elderly, women, and children. In addition, the embodiments of the present application can also be combined with the use scenarios of the vehicle, especially considering the situation where new energy vehicles are out of power and break down. After the vehicle is powered off and then powered on, the motor is controlled to reset to avoid the failure of the door lock function after the power is restored, so that the user is faced with the embarrassing situation that the car is out of power and cannot open the door, thereby improving the quality of the whole vehicle and the user experience.
[0126] All the above optional technical solutions can be combined in any way to form optional embodiments of the present application, and the embodiments of the present application will not be described in detail one by one.
[0127] Figure 4 is a schematic diagram of the structure of a vehicle control device provided in an embodiment of the present application. For example, Figure 4 As shown, the device comprises:
[0128] The acquisition module 401 is used to acquire the running state of the vehicle and the state of the door;
[0129] A detection module 402, for detecting whether there is a user in the vehicle when the running state is the parking state and the state of the door is the locked state;
[0130] The control module 403 is used to control the vehicle's lights and windows to close if there is no user in the vehicle.
[0131] Optionally, the detection module 402 is specifically configured to:
[0132] When the running state is the parking state and the state of the door is the locked state, controlling the target sensor in the vehicle to work to detect whether there is a user in the vehicle, the target sensor includes any one of a camera, a radar, and a seat pressure sensor or a combination thereof;
[0133] If the target sensor does not detect the presence of a user in the vehicle within a preset time period, it is determined that there is no user in the vehicle.
[0134] Optionally, the vehicle lights include interior lights and exterior lights. When the vehicle is in a dark environment, the control module 403 is specifically configured to:
[0135] If there is no user in the vehicle, control the interior lights and windows to close;
[0136] When there is no user in the vehicle, if it is detected that there is a user within a preset distance outside the vehicle, the exterior lights are controlled to be turned on, until it is detected that there is no user within the preset distance outside the vehicle, then the exterior lights are controlled to be turned off.
[0137] Optionally, the device further comprises:
[0138] The generating module is used to generate a first prompt message, and the first prompt message is used to prompt the user to close the lights and windows of the vehicle.
[0139] Optionally, the control module 403 is specifically configured to:
[0140] When the running state is the driving state, when a door unlocking command is detected, if the vehicle speed is greater than a preset threshold, the state of the door is controlled to be a locked state.
[0141] Optionally, the control module 403 is specifically configured to:
[0142] If the vehicle loses power and it is detected that the vehicle is powered on after the power failure, the motor in the door lock is controlled to reset.
[0143] Optionally, the control module 403 is specifically configured to:
[0144] Detect whether there is current in the motor;
[0145] If there is no current in the motor, a second prompt message is generated, and the second prompt message is used to indicate that a fault occurs in the motor;
[0146] The second prompt information is sent to the user's terminal.
[0147] Optionally, the control module 403 is specifically configured to:
[0148] If the vehicle speed is less than or equal to a preset threshold, in response to a door unlocking instruction, the state of a pawl switch and a ratchet switch in the door lock is detected, the pawl switch and the ratchet switch being used to unlock or lock the door;
[0149] When it is detected that both the pawl switch and the ratchet switch are in the on state, it is determined that the door is unlocked.
[0150] In an embodiment of the present application, when it is determined that the vehicle is in a parked state and the doors are locked, if there is no user in the vehicle, it means that the user has left the vehicle. At this time, the lights and windows are controlled to be closed in time, which can avoid the problem of vehicle energy consumption and user property safety caused by the user forgetting to turn off the lights and windows, reduce vehicle energy consumption, ensure the personal and property safety of the user, and further improve the user experience.
[0151] It should be noted that: the vehicle control device provided in the above embodiment only uses the division of the above functional modules as an example to illustrate when controlling the vehicle. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the vehicle control device provided in the above embodiment and the vehicle control method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0152] Figure 5 It is a structural schematic diagram of a vehicle provided in an embodiment of the present application.
[0153] For example, Figure 5 As shown, the vehicle 500 includes: a memory 501 and a processor 502, wherein the memory 501 stores an executable program code 5011, and the processor 502 is used to call and execute the executable program code 5011 to perform a vehicle control method.
[0154] In this embodiment, the functional modules of the vehicle can be divided according to the above method example. For example, each functional module can be corresponded, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0155] In the case of dividing each functional module according to each function, the vehicle may include: an acquisition module, a detection module and a control module. It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, which will not be repeated here.
[0156] The vehicle provided in this embodiment is used to execute the above-mentioned vehicle control method, and thus can achieve the same effect as the above-mentioned implementation method.
[0157] In the case of an integrated unit, the vehicle may include a processing module and a storage module. The processing module may be used to control and manage the actions of the vehicle. The storage module may be used to support the vehicle to execute mutual program codes and data.
[0158] The processing module may be a processor or a controller, which may implement or execute various exemplary logic blocks, modules and circuits disclosed in the present application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module may be a memory.
[0159] This embodiment also provides a computer-readable storage medium, in which a computer program code is stored. When the computer program code is run on a computer, the computer executes the above-mentioned related method steps to implement a vehicle control method in the above-mentioned embodiment.
[0160] This embodiment also provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement a vehicle control method in the above-mentioned embodiment.
[0161] In addition, the vehicle provided in the embodiments of the present application may include a connected processor and a memory; wherein the memory is used to store instructions, and when the vehicle is running, the processor may call and execute the instructions so that the vehicle executes a vehicle control method in the above embodiments.
[0162] Among them, the vehicle, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above and will not be repeated here.
[0163] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0164] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0165] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A vehicle control method, characterized in that: The method comprises: Get the vehicle's operating status and door status; When the running state is a parking state and the state of the vehicle door is a locked state, detecting whether there is a user in the vehicle; If the user does not exist in the vehicle, the lights and windows of the vehicle are controlled to be closed.
2. The method according to claim 1, characterized in that When the running state is a parking state and the state of the vehicle door is a locked state, detecting whether there is a user in the vehicle includes: When the running state is a parking state and the state of the vehicle door is a locked state, controlling a target sensor in the vehicle to work so as to detect whether there is a user in the vehicle, the target sensor comprising any one of a camera, a radar, and a seat pressure sensor or a combination thereof; If the target sensor does not detect the presence of a user in the vehicle within a preset time period, it is determined that there is no user in the vehicle.
3. The method according to claim 1, characterized in that The vehicle lights include interior lights and exterior lights. When the environment in which the vehicle is located is a dark environment, controlling the vehicle lights and windows to be closed includes: If the user does not exist in the vehicle, controlling the interior lights and windows to close; In the case where the user does not exist in the vehicle, if the user is detected within a preset distance outside the vehicle, the exterior lights are controlled to be turned on, and until it is detected that the user does not exist within the preset distance outside the vehicle, the exterior lights are controlled to be turned off.
4. The method according to any one of claims 1 to 3, characterized in that: After controlling the vehicle lights and windows to close, the method further includes: Generate a first prompt message, wherein the first prompt message is used to prompt the user to turn off the lights and windows of the vehicle; The first prompt information is sent to a terminal of the user.
5. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: In the case where the operating state is the driving state, when a door unlocking instruction is detected, if the vehicle speed of the vehicle is greater than a preset threshold, the state of the door is controlled to be a locked state.
6. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: If a power failure occurs in the vehicle and it is detected that the vehicle is powered on after the power failure occurs, the motor in the door lock is controlled to reset.
7. The method according to claim 6, characterized in that In the case of controlling the motor in the door lock to reset, the method further includes: Detecting whether the motor has current; If there is no current in the motor, generating second prompt information, wherein the second prompt information is used to indicate that the motor has a fault; The second prompt information is sent to the user's terminal.
8. The method according to claim 5, characterized in that The method further comprises: If the vehicle speed is less than or equal to the preset threshold, in response to the door unlocking instruction, detecting the states of a pawl switch and a ratchet switch in the door lock, the pawl switch and the ratchet switch being used to unlock or lock the door; When it is detected that both the pawl switch and the ratchet switch are in the on state, it is determined that the vehicle door is unlocked.
9. A vehicle control device, characterized in that: The device comprises: An acquisition module, used to acquire the running status of the vehicle and the status of the doors; A detection module, used for detecting whether there is a user in the vehicle when the running state is a parking state and the state of the vehicle door is a locked state; The control module is used for controlling the lights and windows of the vehicle to close if there is no user in the vehicle.
10. A vehicle, characterized in that: The vehicle comprises: A memory for storing executable program codes; A processor, configured to call and run the executable program code from the memory, so that the vehicle executes the method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Vehicle, vehicle door lock control method and system of vehicle, and storage medium
CN108238003A
In-vehicle-retention-person safety control method and device and equipment
CN108749713A
A vehicle control method and related equipment
CN109094501A
Vehicle lamp control method, computer storage medium, vehicle lamp control system and vehicle
CN113212291A
Electric vehicle door control system and control method thereof
CN113482487A