Vehicle control method and device, vehicle and storage medium
By automatically detecting that no one is inside the vehicle after it is parked and turning off the lights and windows, the problem of users forgetting to turn off the lights and windows is solved, reducing energy consumption and improving user experience and safety.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-25
- Publication Date
- 2026-03-27
AI Technical Summary
Users may forget to turn off the headlights and windows when getting out of the car, leading to vehicle energy consumption and property safety issues.
After the vehicle is parked and the doors are locked, the system uses cameras, radar, or seat pressure sensors to detect whether there is a user inside the vehicle. If no user is found, the system automatically turns off the headlights and windows and sends a notification message if necessary.
This avoids energy consumption and property safety issues caused by users forgetting to turn off lights and windows, thus improving user experience and safety.
Smart Images

Figure CN119502829B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of vehicle control, and more particularly, to a vehicle control method and device, a vehicle and a storage medium. BACKGROUND
[0002] Generally, when the user gets off the vehicle, the user needs to manually turn off the vehicle light and the vehicle window, and lock the vehicle door to ensure the safety of the vehicle. However, the user may forget to turn off the vehicle light and the vehicle window, and directly lock the vehicle door through a remote key or other operations, which may cause problems of energy consumption of the vehicle and safety of property of the user. SUMMARY
[0003] The present application provides a vehicle control method, device, vehicle and storage medium, which can timely control the vehicle light and the vehicle window to be turned off, and improve the user experience.
[0004] In a first aspect, a vehicle control method is provided, which includes:
[0005] obtaining a running state of the vehicle and a state of the vehicle door;
[0006] in a case where 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;
[0007] if there is no user in the vehicle, controlling the vehicle light and the vehicle window of the vehicle to be turned off.
[0008] In the above technical solution, in a case where it is determined that the vehicle is in a parking state and the vehicle door is locked, if there is no user in the vehicle, it indicates that the user has left the vehicle, and at this time, the vehicle light and the vehicle window are timely controlled to be turned off, which can avoid the problems of energy consumption of the vehicle and safety of property of the user caused by the user forgetting to turn off the light and the window, reduce the energy consumption of the vehicle, ensure the safety of property of the user, and further improve the user experience.
[0009] In combination with the first aspect, in some possible implementation manners, in a case where 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:
[0010] in a case where 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 to detect whether there is a user in the vehicle, the target sensor including any one or a combination of a camera, a radar and a seat pressure sensor;
[0011] if the target sensor does not detect that there is a user in the vehicle within a preset time length, it is determined that there is no user in the vehicle.
[0012] With reference to the first aspect and the above implementation manners, in some possible implementation manners, the vehicle lamp includes an interior lamp and an exterior lamp, and in a case where the environment in which the vehicle is located is a dark environment, the vehicle lamp and the vehicle window are controlled to be closed, including:
[0013] if no user is present in the vehicle, the interior lamp and the vehicle window are controlled to be closed;
[0014] in a case where no user is present in the vehicle, if it is detected that a user is present within a preset distance outside the vehicle, the exterior lamp is controlled to be turned on until it is detected that no user is present within the preset distance outside the vehicle, and then the exterior lamp is controlled to be turned off.
[0015] With reference to the first aspect and the above implementation manners, in some possible implementation manners, after the vehicle lamp and the vehicle window are controlled to be closed, the method further includes:
[0016] generating first prompt information, the first prompt information being used to prompt the user that the vehicle lamp and the vehicle window are closed.
[0017] With reference to the first aspect and the above implementation manners, in some possible implementation manners, the method further includes:
[0018] in a case where the running state is a driving state, if a vehicle door unlocking instruction is detected, and the vehicle speed is greater than a preset threshold, the state of the vehicle door is controlled to be a locked state.
[0019] With reference to the first aspect and the above implementation manners, in some possible implementation manners, the method further includes:
[0020] if a power failure accident occurs in the vehicle, and it is detected that the vehicle is powered on after the power failure accident, the motor in the vehicle door lock is controlled to be reset.
[0021] With reference to the first aspect and the above implementation manners, in some possible implementation manners, in a case where the motor in the vehicle door lock is controlled to be reset, the method further includes:
[0022] detecting whether the motor has current;
[0023] if the motor has no current, second prompt information is generated, the second prompt information being used to indicate that the motor is faulty;
[0024] the second prompt information is sent to a terminal of the user.
[0025] With reference to the first aspect and the above implementation manners, in some possible implementation manners, the method further includes:
[0026] if the vehicle speed is less than or equal to the preset threshold, in response to the vehicle door unlocking instruction, states of a pawl switch and a ratchet switch in the vehicle door lock are detected, the pawl switch and the ratchet switch being used to unlock or lock the vehicle door;
[0027] In a case where it is detected that the pawl switch and the ratchet switch are both in the on state, it is determined that the vehicle door is unlocked.
[0028] In a second aspect, a vehicle control apparatus is provided, which comprises:
[0029] an acquisition module configured to acquire a running state of the vehicle and a state of the vehicle door;
[0030] a detection module configured to, in a case where the running state is a parking state and the state of the vehicle door is a locked state, detect whether a user is present in the vehicle;
[0031] a control module configured to, if the user is not present in the vehicle, control a vehicle light and a vehicle window of the vehicle to be closed.
[0032] With reference to the second aspect, in some possible implementation manners, the detection module is specifically configured to:
[0033] in the case where the running state is the parking state and the state of the vehicle door is the locked state, control a target sensor in the vehicle to work to detect whether the user is present in the vehicle, the target sensor comprising any one or a combination of a camera, a radar, and a seat pressure sensor;
[0034] if the target sensor does not detect that the user is present in the vehicle within a preset time length, it is determined that the user is not present in the vehicle.
[0035] With reference to the second aspect and the foregoing implementation manners, in some possible implementation manners, the vehicle light comprises an interior light and an exterior light, and in a case where an environment in which the vehicle is located is a dark environment, the control module is specifically configured to:
[0036] if the user is not present in the vehicle, control the interior light and the vehicle window to be closed;
[0037] in a case where the user is not present in the vehicle, if it is detected that a user is present within a preset distance outside the vehicle, control the exterior light to be turned on until it is detected that the user is not present within the preset distance outside the vehicle, and then control the exterior light to be turned off.
[0038] With reference to the second aspect and the foregoing implementation manners, in some possible implementation manners, the apparatus further comprises:
[0039] a generation module configured to generate first prompt information, the first prompt information being used to prompt the user that the vehicle light and the vehicle window of the vehicle are closed.
[0040] With reference to the second aspect and the foregoing implementation manners, in some possible implementation manners, the control module is specifically configured to:
[0041] in a case where the running state is a driving state, when a vehicle door unlocking instruction is detected, if a vehicle speed of the vehicle is greater than a preset threshold, control the state of the vehicle door to be the locked state.
[0042] With reference to the second aspect and the preceding implementation manners, in a possible implementation manner, the control module is specifically configured to:
[0043] If the vehicle is powered off, and the vehicle is powered on after the power-off accident, the motor in the door lock is reset.
[0044] With reference to the second aspect and the preceding implementation manners, in a possible implementation manner, the control module is specifically configured to:
[0045] Detect whether the motor has current;
[0046] If the motor has no current, generate second prompt information, the second prompt information being used to indicate that the motor is faulty;
[0047] Send the second prompt information to the terminal of the user.
[0048] With reference to the second aspect and the preceding implementation manners, in a possible implementation manner, 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, detect 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;
[0050] In a case where it is detected that the pawl switch and the ratchet switch are both in an on state, determine that the door is unlocked.
[0051] In a third aspect, a vehicle is provided, including a memory and a processor. The memory is configured to store executable program code, and the processor is configured 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 manner of the first aspect.
[0052] In a fourth aspect, a computer program product is provided, which includes computer program code. When the computer program code is run on a computer, the computer executes the method in the first aspect or any possible implementation manner of the first aspect.
[0053] In a fifth aspect, a computer readable storage medium is provided, which stores computer program code. When the computer program code is run on a computer, the computer executes the method in the first aspect or any possible implementation manner of the first aspect. BRIEF DESCRIPTION OF DRAWINGS
[0054] Figure 1 is a schematic flowchart of a vehicle control method provided by an embodiment of the present application;
[0055] Figure 2 is a schematic flowchart of a vehicle light control method provided by an embodiment of the present application.
[0056] Figure 3 is a schematic flowchart of a vehicle window control method provided by an embodiment of the present application.
[0057] Figure 4 is a structural schematic diagram of a vehicle control device provided by an embodiment of the present application.
[0058] Figure 5 is a structural schematic diagram of a vehicle provided by an embodiment of the present application. DETAILED DESCRIPTION
[0059] The technical solutions in the present application will be described in detail below with reference to the drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " represents the meaning of or, for example, A / B can represent A or B: "and / or" in the text only describes the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which means that there are three cases of A alone, A and B together, and B alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0060] Hereinafter, the terms "first" and "second" are used only for descriptive purposes and cannot be understood as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with "first" and "second" can explicitly or implicitly include one or more of the features.
[0061] Before explaining the vehicle control method provided by the embodiments of the present application in detail, the application scenarios provided by the embodiments of the present application are introduced.
[0062] When the vehicle is in a parked state and the door is locked, if the user forgets to turn off the vehicle light and the vehicle window, it may cause waste of vehicle energy and safety problems of the user's person and property. In this scenario, the user needs to unlock the vehicle and then manually operate to turn off the vehicle light and the vehicle window, which is relatively cumbersome and further reduces the user's experience of the vehicle.
[0063] Based on the above problems, the embodiments of the present application provide a vehicle control method, which can timely control the vehicle light and the vehicle window to be turned off 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 flowchart of a vehicle control method provided by an embodiment of the present application. The method can be exemplarily applied to the vehicle controller of the vehicle, as shown in Figure 1 The method comprises the following steps.
[0065] Step 101: Obtain the running state of the vehicle and the state of the vehicle door.
[0066] The running state of the vehicle indicates the current state of the vehicle, and the state of the vehicle door indicates the current state of the vehicle door. After obtaining the current running state of the vehicle and the current state of the vehicle door, the vehicle controller can further operate according to the current running state of the vehicle and the current state of the vehicle door, which will not be described here.
[0067] Specifically, the vehicle controller can obtain a running state signal of the vehicle, and determine the current running state of the vehicle according to the running state signal. The running state of the vehicle may, for example, include two states: a driving state and a parking state. In this scenario, the running state signal of the vehicle can carry 0x0 or 0x1, where 0x0 represents driving (Drive) and 0x1 represents parking (Parking). When the vehicle controller obtains the running state signal of the vehicle carrying 0x1, it can be determined that the current running state of the vehicle is the parking state. Moreover, the vehicle door controller can collect the current state of the vehicle door and send the collected current state of the vehicle door to the vehicle controller, so that the vehicle controller can obtain the current state of the vehicle door. The state of the vehicle door may, for example, include a locked state and an unlocked state.
[0068] The vehicle controller can obtain the running state signal of the vehicle and the running state of the vehicle door through a bus such as a Controller Area Network (CAN), a Local Interconnect Network (LIN), or an independent analog signal, which is not limited in the embodiments of the present application.
[0069] Step 102: In the case where the running state is the parking state and the state of the vehicle door is the locked state, detecting whether there is a user in the vehicle.
[0070] Generally, when the vehicle is in the parking state and the vehicle door is locked, the vehicle windows and lights need to be turned off in time after the user gets off the vehicle 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 parking state and the current state of the vehicle 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 a target sensor in the vehicle to work to detect whether there is a user in the vehicle in the case where the running state is the parking state and the state of the vehicle door is the locked state, the target sensor including any one or a combination of a camera, a radar, and a seat pressure sensor.
[0072] It should be understood that the vehicle is in a parking state and the state that the vehicle door is closed is usually a scenario in which the user wants to get off the vehicle and no longer uses the vehicle, and therefore, in this scenario, to reduce the energy consumption of the vehicle, the vehicle controller can only control the target sensor and the vehicle light controller and the vehicle window controller to work so as to detect whether the user is present in the vehicle through the target sensor and control the vehicle light to be turned off through the vehicle light controller and control the vehicle window to be closed through the vehicle window controller in a case where it is determined that the user is not present in the vehicle.
[0073] In the embodiment of the present application, the vehicle controller can set in advance which sensors in the vehicle can be used to detect whether the user is present in the vehicle, and the sensors are used as the target sensor. In a case where the current running state of the vehicle is the parking state and the current state of the vehicle door is the closed state, the target sensor is controlled to work to detect whether the user is present in the vehicle through the target sensor.
[0074] It should be noted that the target sensor in the embodiment of the present application is not limited to the camera, the radar and the seat pressure sensor, and can also include other types of sensors, which are not limited in the embodiment of the present application.
[0075] In a case where the target sensor includes the camera, specifically, in a case where the current running state of the vehicle is the parking state and the current state of the vehicle door is the closed state, the vehicle controller wakes up the camera, the camera collects the vehicle image, and the vehicle image is sent to the vehicle controller. The vehicle controller determines whether the user is present in the vehicle according to the vehicle image when the vehicle image is received. If the user is not present in the vehicle image, the vehicle controller determines that the user is not present in the vehicle.
[0076] In the embodiment of the present application, the vehicle controller can set in advance which sensors in the vehicle can be used to detect whether the user is present in the vehicle, and the sensors are used as the target sensor. In a case where the current running state of the vehicle is the parking state and the current state of the vehicle door is the closed state, the target sensor is controlled to work to detect whether the user is present in the vehicle through the target sensor.
[0077] Optionally, the camera can also judge whether the user is present in the vehicle after the vehicle image is collected, and the judgment result is sent to the vehicle controller, and the vehicle controller can directly determine whether the user is present in the vehicle according to the judgment result.
[0078] In addition, the camera in the above description can be one camera for collecting the overall image inside the vehicle, but there can be a visual blind area directly below the camera, so multiple cameras can also be installed inside the vehicle, such as one camera installed above each of the left and right positions of the vehicle, and each of the left and right positions corresponds to one camera, i.e. the left camera is used to collect the image of the right position, and the right camera is used to collect the image of the left position, which can greatly reduce the visual blind area. The camera can be a visible light camera or an infrared camera, and the type of camera is not limited in the embodiments of the present application. Furthermore, a camera can also be installed above each position of the vehicle, and the number of cameras is not limited in the embodiments of the present application.
[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 vehicle door is a closed state, the radar is woken up by the vehicle controller, the radar can detect the breathing amplitude of the object with vital signs, and then determine whether there is a user in the vehicle through an algorithm. For example, the breathing frequency of the object with vital signs can be detected by detecting the chest fluctuation amplitude of the object with vital signs through the radar, so as to obtain the breathing amplitude of the object, and then determine whether there is a user in the vehicle, and send the determination result to the vehicle controller. The determination result can include two results: there is a user in the vehicle and there is no user in the vehicle. The vehicle controller receives the determination result to determine whether there is a user in the vehicle. For example, the radar can be a millimeter wave radar, an ultrasonic radar, etc., and the type of radar is not limited in the present application.
[0080] In the case where the target sensor includes a seat pressure sensor, a seat pressure sensor can be arranged below each position of the vehicle. Specifically, when the current running state of the vehicle is a parking state and the current state of the vehicle door is a closed state, the seat pressure sensor is woken up by the vehicle controller, each seat pressure sensor obtains the pressure information borne by the corresponding seat, when the seat is subjected to external pressure, a trigger signal is generated, the seat pressure sensor obtains the external pressure signal, and according to the pressure value of the pressure signal and the signal fluctuation in the pressure distribution diagram, the seat pressure sensor determines whether the seat bearing object is a user or an object, to 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. Alternatively, the target sensor can also be any combination of a camera, a radar, and a seat pressure sensor. In the case where the target sensor includes a combination of sensors, to avoid detection errors of a certain sensor, the vehicle controller can determine that there is no user in the vehicle when it receives a determination result from each sensor in the sensor combination and each determination result shows that there is no user in the vehicle.
[0082] In addition, in some embodiments, if the target sensor does not detect a user in the vehicle within a preset time period, the vehicle controller determines that there is no user in the vehicle.
[0083] The preset time period can be pre-set, and an example of the preset time period can be set to 5 minutes. The present embodiment does not limit this.
[0084] That is, the target sensor detects in real time whether there is a user in the vehicle and sends the detection result (determination result) to the vehicle controller. The vehicle controller determines that there is no user in the vehicle when the determination result received within a preset time period after the current time is that there is no user in the vehicle. This can avoid the case where the user temporarily leaves the vehicle.
[0085] Step 103: If there is no user in the vehicle, control the vehicle lights and windows to be closed.
[0086] When it is determined that there is no user in the vehicle, the vehicle controller considers that the user has gotten off the vehicle and no longer uses the vehicle, so it can directly control the vehicle lights and windows to be closed. This 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 user property safety, and further improve user experience.
[0087] It can be understood that the vehicle includes a plurality of vehicle lights and a plurality of vehicle windows. The plurality of vehicle lights can be controlled by one vehicle light controller or by a plurality of vehicle light controllers, i.e., one vehicle light controller controls one vehicle light. Correspondingly, the plurality of vehicle windows can be controlled by one vehicle window controller or by a plurality of vehicle window controllers, i.e., one vehicle window controller controls one vehicle window. The following describes an example in which one vehicle light controller controls a plurality of vehicle lights and one vehicle window controller controls a plurality of vehicle windows. For ease of description, the following vehicle lights and vehicle windows refer to all vehicle lights and vehicle windows in the vehicle.
[0088] Specifically, the vehicle controller can send a vehicle light control instruction to the vehicle light controller. Upon receiving the vehicle light control instruction, the vehicle light controller can acquire the current state of all vehicle lights. If the current state of a vehicle light is an open state (also referred to as an on state), the vehicle light controller controls the vehicle light to be closed. If the current state of a vehicle light is a closed state (also referred to as an off state), the vehicle light controller does not operate the vehicle light. The vehicle light controller performs the above operation on all vehicle lights, thereby controlling all vehicle lights to be closed. Correspondingly, the vehicle controller can send a vehicle window control instruction to the vehicle window controller. Upon receiving the vehicle window control instruction, the vehicle window controller can acquire the current state of all vehicle windows. If the current state of a vehicle window is an open state, the vehicle window controller controls the vehicle window to be closed. If the current state of a vehicle window is a closed state, the vehicle window controller does not operate the vehicle window. The vehicle window controller performs the above operation on all vehicle windows, thereby controlling all vehicle windows to be closed.
[0089] The above describes a scenario in which the user leaves the vehicle after parking and the vehicle door is locked, but may forget to turn off the vehicle light and the vehicle window. It can be understood that the user may directly leave the vehicle after parking and forget to turn off the light and the window. Therefore, in the embodiments of the present application, the vehicle controller can also detect whether there is a user in the vehicle when the current running state of the vehicle is a parking state and the state of the vehicle door is an unlocked state, and control the vehicle door to be locked and the vehicle light and the vehicle window to be turned off when there is no user in the vehicle.
[0090] In addition, in some embodiments, the vehicle controller can also generate first prompt information after controlling the vehicle light and the vehicle window to be turned off, the first prompt information being used to prompt the user that the vehicle light and the vehicle window of the vehicle are turned off, and send the first prompt information to the terminal of the user. In this way, the user can timely know the information that the vehicle light and the vehicle window are turned off. The vehicle controller sends the first prompt information to the terminal of the user in the form of, for example, a short message, an email, etc., which is not limited in the embodiments of the present application.
[0091] In the scenario in which the vehicle controller controls the vehicle door to be locked and controls the vehicle light and the vehicle window to be turned off, the first prompt information is used to prompt the user that the vehicle door of the vehicle is locked and the vehicle light and the vehicle window are turned off.
[0092] The vehicle light control method provided in the embodiments of the present application will be further described below with reference to the vehicle light control method shown in Figure 2 FIG. 1. Figure 2 is a schematic flowchart of a vehicle light control method provided in the embodiments of the present application. As shown in FIG. 1, the vehicle light control method includes the following steps. Figure 2As shown in FIG. 1, when the running state of the vehicle is the parking state and the state of the vehicle door is the closed 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 vehicle lamp is acquired. If the current state of the vehicle lamp is the on state, the vehicle lamp is controlled to be turned off, and the user terminal is sent the prompt information that the vehicle lamp is turned off. If there is a user in the vehicle, it indicates that the user is still using the vehicle, and the vehicle controller does not perform the operation.
[0093] The following takes Figure 3 the vehicle controller controlling the vehicle window to be closed in the embodiment of the present application as an example to further illustrate the scheme. Figure 3 is a schematic flow chart of a vehicle window control method provided by the embodiment of the present application. As shown in FIG. 2, when the running state of the vehicle is the parking state and the state of the vehicle door is the closed 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 vehicle window is acquired. If the current state of the vehicle window is the open state, the vehicle window is controlled to be closed, and the user terminal is sent the prompt information that the vehicle window is closed. If there is a user in the vehicle, it indicates that the user is still using the vehicle, and the vehicle controller does not perform the operation. Figure 3
[0094] In addition, the vehicle lamp includes the interior lamp and the exterior lamp. In the case that the environment where the vehicle is located is the dark environment, the implementation process of the vehicle controller controlling the vehicle lamp and the vehicle window to be closed can further be: if there is no user in the vehicle, the interior lamp and the vehicle window are controlled to be closed; in the case that there is no user in the vehicle, if it is detected that there is a user within the preset distance outside the vehicle, the exterior lamp is controlled to be turned on until it is detected that there is no user within the preset distance outside the vehicle, and then the exterior lamp is controlled to be turned off. The user here refers to the user of the vehicle.
[0095] The preset distance can be set in advance. The preset distance can be exemplarily the distance that the exterior lamp can irradiate. The embodiment of the present application does not limit this.
[0096] Specifically, the light sensor can be installed on the vehicle, and the light sensor is used to collect the light outside the vehicle. The working principle of the light sensor is that when there is light in the sensing range of the light sensor, that is, the light enters the light sensor, the photoelectric element inside the light sensor will generate an electric signal. The light sensor sends the collected electric signal to the vehicle controller, and the vehicle controller can determine that there is light outside the vehicle. That is, the vehicle controller can determine the environment where the vehicle is located according to whether the electric signal sent by the light sensor can be received.
[0097] Therefore, in the case that the current operating state of the vehicle is the parking state and the current state of the vehicle door is the closed state, the vehicle controller can also control the light sensor to work. During the working of the light sensor, if the vehicle controller does not receive the electrical signal sent by the light sensor, it is determined that the environment in which the vehicle is located is a dark environment. If the vehicle controller receives the electrical signal sent by the light sensor, it is determined that the environment in which the vehicle is located has light and is not a dark environment.
[0098] When the vehicle controller determines that the environment in which the vehicle is located is a dark environment and there is no user in the vehicle, it can send a vehicle interior light off instruction to the vehicle lamp controller and a vehicle window closing instruction to the vehicle window controller. When the vehicle lamp controller receives the vehicle interior light off instruction, it can obtain the current state of all vehicle interior lights and control the vehicle interior lights in a state other than the off state to be turned off. When the vehicle window controller receives the vehicle window closing instruction, it can obtain the current state of all vehicle windows and control the vehicle windows in a state other than the closed state to be closed.
[0099] Moreover, in the case that there is no user in the vehicle, the vehicle controller can also control the camera installed outside the vehicle to work 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, and the vehicle controller can determine whether there is a user of the vehicle within a preset distance outside the vehicle according to the images outside the vehicle. The camera can be an infrared camera, and the embodiments of the present application are not limited in this regard.
[0100] The vehicle controller can determine whether there is a user of the vehicle within a preset distance outside the vehicle according to the images outside the vehicle in the following manner. The vehicle controller can pre-store a face image of the vehicle owner. When the infrared camera sends the collected images outside the vehicle to the vehicle controller, the vehicle controller can detect whether there is a “face” image in the images outside the vehicle, and further determine whether the “face” is the vehicle owner in the case that there is a “face” image, i.e., match the face image of the vehicle owner with the “face” image. If the matching is successful, it is determined that there is a vehicle owner within a preset distance outside the vehicle.
[0101] In addition, there can also be a case that the vehicle owner lends the vehicle to other users. In this case, the vehicle controller also needs to pre-store the face image of the user, which leads to a cumbersome user identity verification process. Therefore, another way to verify the identity of the user can be to detect the identity of the user through a remote key carried by the user. When it is detected that there is an object within a preset distance outside the vehicle, the vehicle controller can also detect whether there is a remote key within the preset distance outside the vehicle. If the remote key is detected, it is determined that there is a user of the vehicle 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 further detect whether there is a remote key of the vehicle within the preset distance outside the vehicle when detecting that there is an object within the preset distance outside the vehicle, to determine whether there is a user of the vehicle within the preset distance outside the vehicle.
[0103] In the case that the environment where the vehicle is located is a dark environment, that is, the states of the vehicle exterior lights are all closed, therefore, if there is no user of the vehicle within the preset distance outside the vehicle, the vehicle controller can not operate.
[0104] If there is a user of the vehicle within the preset distance outside the vehicle, the vehicle controller can send a vehicle exterior light opening instruction to the vehicle light controller, and the vehicle light controller can control all vehicle exterior lights to open upon receiving the vehicle exterior light opening instruction. Until it is detected that there is no user of the vehicle within the preset distance outside the vehicle, a vehicle exterior light closing instruction is sent to the vehicle light controller, and the vehicle light controller controls all vehicle exterior lights to close upon receiving the vehicle exterior light closing instruction. Therefore, the embodiment of the present application can open the vehicle exterior lights to illuminate the user of the vehicle outside the vehicle when the user of the vehicle is outside the vehicle, and timely close the vehicle exterior lights when there is no user of the vehicle outside the vehicle, so as to reduce the energy consumption of the vehicle.
[0105] It should be understood that the vehicle exterior lights include a plurality of lights such as headlamps, front and rear fog lamps, license plate lamps, reversing lamps, brake lamps, etc., which are located at different positions of the vehicle, such as the headlamps and the front fog lamps are located at the head of the vehicle, and the rear fog lamps, the license plate lamps, and the reversing lamps are located at the tail of the vehicle. Based on this, the embodiment of the present application can also control the vehicle exterior lights corresponding to the position where the user of the vehicle is located to open according to the position where the user of the vehicle is located. For example, if the position where the user of the vehicle is located is within the preset distance in front of the vehicle, the vehicle controller can control the vehicle exterior lights located at the head of the vehicle such as the headlamps to open to illuminate the user of the vehicle in front of the vehicle.
[0106] In this scenario, the vehicle body domain controller can further determine the position where the user of the vehicle is located in the case that there is a user of the vehicle within the preset distance outside the vehicle, and send a target vehicle exterior light opening instruction to the vehicle light controller according to the position where the user of the vehicle is located, the target vehicle exterior light indicating the vehicle exterior light corresponding to the position where the user of the vehicle outside the vehicle is located on the vehicle. The vehicle light controller controls the target vehicle exterior light to open upon receiving the target vehicle exterior light opening instruction.
[0107] Optionally, to reduce the energy consumption of the vehicle, the embodiments of the present application can also only control one of the exterior lights to be turned on to illuminate the user of the vehicle. In this scenario, for example, the vehicle controller can send a front light turning-on instruction to the vehicle light controller when detecting that there is a user of the vehicle in front of the vehicle, and the vehicle light controller can control the front light to be turned on to illuminate the user of the vehicle in front of the vehicle when receiving the front light turning-on instruction.
[0108] The above are all in the case where the running state of the vehicle is the parking state, and the operation of the vehicle controller is opposite to the running state of the vehicle. It can be understood that when the vehicle is in the running state, the doors of the vehicle are usually closed. When the speed of the vehicle is high, the doors are automatically locked to ensure the safety of the user in the vehicle.
[0109] In this scenario, in some possible implementation manners, when the current running state of the vehicle is the running state and the door unlocking instruction is detected, if the speed of the vehicle is greater than a preset threshold, the state of the door is controlled to be the locked state.
[0110] The preset threshold can be preset, and the preset threshold can be 5 km / h, for example, which is not limited in the embodiments of the present application.
[0111] For example, the triggering manner of the door unlocking instruction can include: generating the door unlocking instruction when detecting that the user presses the outer handle of the door; or generating the door unlocking instruction when detecting that the user touches the inner handle of the door.
[0112] Specifically, when the user presses the outer handle of the door, the outer handle of the door detects the user operation, triggers the door control instruction, and sends the door control instruction to the vehicle controller, where the door control instruction can include the door unlocking instruction or the door locking instruction. Correspondingly, when the user touches the inner handle of the door, the inner handle of the door also detects the user operation, triggers the door control instruction, and sends the door control instruction to the vehicle controller. The vehicle controller can control the door to be unlocked or locked according to the door control instruction when receiving the door control instruction.
[0113] Moreover, the vehicle controller can have a memory function and automatically save the state of the door control instruction triggered by the last user operation. For example, the vehicle controller saves the last user control operation on the door as the door locking operation, that is, the state of the door is the locked state at this time. When the user presses the outer handle of the door or touches the inner handle of the door again, the outer handle of the door or the inner handle of the door generates the door control instruction based on the user operation and sends the door control instruction to the vehicle controller. The vehicle controller determines that the user wants to unlock the door, that is, determines that the door unlocking instruction is received.
[0114] When the vehicle controller detects a door unlocking instruction, the vehicle controller can obtain the current vehicle speed. If the current vehicle speed is greater than a preset threshold, it is considered that the vehicle speed is high at this time. When the vehicle is driving at high speed, opening the door can pose a great threat to the personal safety of the user in the vehicle. Therefore, in this scenario, the vehicle controller can control the state of the door to be a locked state, that is, the door unlocking instruction is not executed, and the door remains closed.
[0115] If the current vehicle speed is less than or equal to the preset threshold, the vehicle controller can consider that the vehicle speed is low. At this time, opening the door will not affect the personal safety of the user. Therefore, in this scenario, the vehicle controller can execute the door unlocking instruction to control the door to open.
[0116] In a possible implementation, if the vehicle speed is less than or equal to the preset threshold, in response to the door unlocking instruction, the states of the pawl switch and the ratchet switch in the door lock are detected, the pawl switch and the ratchet switch are used to unlock or lock the door; and in a case where it is detected that the pawl switch and the ratchet switch are both in an 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, the vehicle controller can send a motor driving instruction to the door lock to drive the motor in the door lock to rotate, so as to release the locking effect of the pawl on the ratchet. The ratchet rotates and opens under the action of the return spring, and the door is opened. The pawl and the ratchet are both provided with a switch, including a pawl switch and a ratchet switch. When the locking effect of the pawl on the ratchet is released, that is, the pawl and the ratchet do not contact, the pawl switch is in an on state. When the ratchet rotates and opens under the action of the return spring, the ratchet switch is in an on state. Therefore, after the vehicle controller drives the motor to rotate, the vehicle controller can detect the states of the pawl switch and the ratchet switch. When the pawl switch and the ratchet switch are both in an on state, the vehicle controller can determine that the door is unlocked at this time.
[0118] Moreover, the door state switch of the vehicle can also indicate the current state of the door. However, the on state of the door state switch does not mean that the door is open. It is possible that the door is shaking, but the door is still not unlocked. At this time, if the user does not touch the door handle, the door cannot be opened. In this case, the door state switch is also in an on state. Therefore, in the case where the door state switch exists, when the pawl switch, the ratchet switch, and the door state switch are all in an on state, the vehicle controller can determine that the door is unlocked.
[0119] In addition, after determining that the door is unlocked, the vehicle controller can also control the motor in the door lock to reset. Specifically, after the motor completes the rotating work, the motor will continue to rotate for a period of time due to inertia. The rotation of the motor will cause energy consumption of the vehicle. Therefore, after determining that the door is unlocked, the vehicle controller timely controls the motor to reset, which can reduce the energy consumption of the vehicle.
[0120] In a possible implementation, if the vehicle is powered off and then powered on, the motor in the vehicle door lock is controlled to reset.
[0121] If the vehicle is powered off and then powered on again, in order to protect the motor in the vehicle door lock, the vehicle controller can send a motor reset instruction to the vehicle door lock, and the motor is controlled to reset after the vehicle door lock receives the motor reset instruction. For example, if the vehicle is powered off and then powered on again when the vehicle controller drives the motor in the vehicle door lock to rotate in response to a vehicle door unlocking instruction, 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 the motor is controlled to reset, the vehicle controller can also detect whether the motor has current, generate a second prompt information if the motor does not have current, and send the second prompt information to the terminal of the user. In this way, the user can learn the information that the motor has failed in time. The vehicle controller can send the second prompt information to the terminal of the user in the form of a short message, an email or the like, which is not limited in the embodiment of the application.
[0123] Specifically, the vehicle controller supplies power to the motor, detects whether the motor has current, and if the motor has current, it indicates that the motor has action after being powered on. If the motor does not have current, it indicates that the motor may have failed, and the vehicle controller is not sure whether the motor has action or not after being powered on. Therefore, the vehicle controller can generate a second prompt information and send the second prompt information to the terminal of the user to prompt the user that the battery has failed.
[0124] To sum up, the embodiment of the application provides a vehicle control method. If there is no user in the vehicle when it is determined that the vehicle is in a parking state and the vehicle door is locked, it indicates that the user has left the vehicle. At this time, the vehicle light and the vehicle window are controlled to close in time, which can avoid the problems of vehicle energy consumption and user property safety caused by the user forgetting to turn off the light and the vehicle window, and also avoids the problem that the user needs to manually turn off the light and the vehicle window in this case, reduces user operation, and further improves user experience.
[0125] Moreover, if the vehicle speed is greater than the preset threshold value when the vehicle door unlocking instruction is detected, it indicates that the vehicle speed is low, at this time, the vehicle door unlocking instruction is not executed, that is, the vehicle door is controlled to be in the locked state, which can avoid the accident that the user is thrown out of the vehicle due to the opening of the vehicle door, and ensures the personal safety of the user. If the vehicle speed is less than or equal to the preset threshold value, the vehicle door is controlled to be one-key electrically unlocked, which is more light and 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 combine the use scene of the vehicle, especially considering the situation that the new energy vehicle is out of power and stuck in the nest. After the vehicle is powered off and powered on again, the motor is controlled to be reset, so as to avoid the failure of the door lock function after the power supply is restored, and to avoid the embarrassing situation of the user facing the situation of no power and unable to open the door, thereby improving the quality of the whole vehicle and the user experience.
[0126] All the optional technical solutions described above can be combined to form optional embodiments of the present application, and the embodiments of the present application will not be described one by one.
[0127] Figure 4 is a structural schematic diagram of a vehicle control device provided by an embodiment of the present application. As shown in the example of Figure 4 , the device comprises:
[0128] The acquisition module 401 is configured to acquire the running state of the vehicle and the state of the vehicle door.
[0129] The detection module 402 is configured to detect whether there is a user in the vehicle in the case that the running state is the parking state and the state of the vehicle door is the locked state.
[0130] The control module 403 is configured to control the vehicle light and the vehicle window to be closed if there is no user in the vehicle.
[0131] Optionally, the detection module 402 is specifically configured to:
[0132] In the case that the running state is the parking state and the state of the vehicle door is the locked state, control a target sensor in the vehicle to work to detect whether there is a user in the vehicle, the target sensor comprising any one or a combination of a camera, a radar and a seat pressure sensor.
[0133] If the target sensor does not detect that there is a user in the vehicle within a preset time length, it is determined that there is no user in the vehicle.
[0134] Optionally, the vehicle light comprises an interior light and an exterior light, and in the case that the environment in which the vehicle is located is a dark environment, the control module 403 is specifically configured to:
[0135] If there is no user in the vehicle, control the interior light and the vehicle window to be closed.
[0136] In the case where there is no user in the vehicle, if it is detected that there is a user within a preset distance outside the vehicle, the control module 403 controls the exterior light to be turned on until it is detected that there is no user within the preset distance outside the vehicle, and then controls the exterior light to be turned off.
[0137] Optionally, the apparatus further comprises:
[0138] The generating module is configured to generate first prompt information, the first prompt information being used to prompt the user to close the vehicle light and the vehicle window.
[0139] Optionally, the control module 403 is specifically configured to:
[0140] In the case where the running state is the driving state, when the vehicle door unlocking instruction is detected, if the vehicle speed is greater than a preset threshold, the control module 403 controls the state of the vehicle door to be the locked state.
[0141] Optionally, the control module 403 is specifically configured to:
[0142] If the vehicle is powered off, and it is detected that the vehicle is powered on after the power-off accident, the control module 403 controls the motor in the vehicle door lock to be reset.
[0143] Optionally, the control module 403 is specifically configured to:
[0144] Detect whether the motor has current;
[0145] If the motor has no current, the control module 403 generates second prompt information, the second prompt information being used to indicate that the motor is faulty;
[0146] The control module 403 sends the second prompt information to the terminal of the user.
[0147] Optionally, the control module 403 is specifically configured to:
[0148] If the vehicle speed is less than or equal to the preset threshold, in response to the vehicle door unlocking instruction, the control module 403 detects the states of the pawl switch and the ratchet switch in the vehicle door lock, the pawl switch and the ratchet switch being used to unlock or lock the vehicle door;
[0149] In the case where it is detected that the pawl switch and the ratchet switch are both in the on state, the control module 403 determines that the vehicle door is unlocked.
[0150] In the embodiment of the application, in the case where it is determined that the vehicle is in the parking state and the vehicle door is locked, if there is no user in the vehicle, it indicates that the user has left the vehicle, and at this time, the vehicle light and the vehicle window are timely controlled to be closed, so that the problem of vehicle energy consumption and user property safety caused by the user forgetting to close the light and the vehicle window can be avoided, the vehicle energy consumption is reduced, the personal property safety of the user is ensured, and the user experience is further improved.
[0151] It should be noted that the vehicle control device provided in the above embodiments is only illustrated by the division of the above functional modules when controlling a 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 and the vehicle control method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0152] Figure 5 This is a schematic diagram of the structure of a vehicle provided in an embodiment of this application.
[0153] For example, such as Figure 5 As shown, the vehicle 500 includes a memory 501 and a processor 502. The memory 501 stores 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] This embodiment can divide the vehicle into functional modules according to the above method example. For example, each function can be assigned to a separate module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware. It should be noted that the module division in this embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.
[0155] When each functional module is divided according to its corresponding function, the vehicle may include: an acquisition module, a detection module, and a control module. It should be noted that all relevant content of each step involved in the above method embodiments can be referenced from the functional descriptions of the corresponding functional modules, and will not be repeated here.
[0156] The vehicle provided in this embodiment is used to execute the vehicle control method described above, and therefore can achieve the same effect as the above implementation method.
[0157] When using integrated units, the vehicle may include a processing module and a storage module. The processing module is used to control and manage the vehicle's actions. The storage module supports the vehicle in executing program code and data.
[0158] The processing module may be a processor or a controller, which can implement or execute various exemplary logic blocks, modules, and circuits as disclosed in this application. The processor may also be a combination of computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and microprocessors, etc., and the storage module may be a memory.
[0159] The embodiment further provides a computer readable storage medium, which stores computer program codes, and when the computer program codes are run on a computer, the computer is caused to execute the above related method steps to realize the vehicle control method in the above embodiment.
[0160] The embodiment further provides a computer program product, which, when run on a computer, causes the computer to execute the above related steps to realize the vehicle control method in the above embodiment.
[0161] In addition, the vehicle provided by the embodiment of the application can include a processor and a memory connected to each other; the memory is used for storing instructions; when the vehicle is running, the processor can invoke and execute the instructions to enable the vehicle to execute the vehicle control method in the above embodiment.
[0162] The vehicle, the computer readable storage medium, the computer program product or the chip provided by the embodiment can be used to execute the corresponding method provided above, and thus the beneficial effects achieved thereby can refer to the beneficial effects of the corresponding method provided above, which will not be described herein again.
[0163] Through the above description of the embodiments, those skilled in the art can understand that, for the convenience and brevity of description, only the division of the above functional modules is taken as an example for illustration, and in actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
[0164] In the embodiments provided by the present application, it should be understood that the disclosed device and method can be implemented by other ways. For example, the device embodiments described above are only schematic, and for the convenience of description, the division of the modules or units is only a logical function division, and there can be another division way in actual implementation, for example, a plurality of units or components can be combined or integrated into another device, or some features can be ignored or not executed. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection between units can be indirect coupling or communication connection through some interfaces, devices or units, and can be electrical, mechanical or other forms.
[0165] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical range disclosed by the present application, which should be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A vehicle control method, characterized in that, The method includes: Obtain the vehicle's operating status and the status of the doors; When the vehicle is in a parked state and the doors are locked, the system detects whether a user is inside the vehicle. If the user is not in the vehicle, then control the vehicle's lights and windows to close. The vehicle lights include interior lights and exterior lights. When the vehicle is in a dark environment, controlling the vehicle lights and windows to close includes: If the user is not in the vehicle, control the interior lights and windows to close. If the user is not inside the vehicle, but the user is detected within a preset distance outside the vehicle, the location of the user is determined, and the exterior lights are turned on according to the user's location. This continues until the user is detected to be outside the preset distance, at which point the exterior lights are turned off. The exterior lights are lights corresponding to the location of the user.
2. The method according to claim 1, characterized in that, When the vehicle is in a parked state and the doors are locked, detecting whether a user is inside the vehicle includes: When the vehicle is in a parked state and the doors are locked, the target sensors in the vehicle are controlled to operate to detect whether there is a user inside the vehicle. The target sensors include any one or a combination of a camera, radar, and seat pressure sensor. 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 or 2, characterized in that, After controlling the vehicle's lights and windows to close, the method further includes: Generate a first prompt message, which is used to prompt the user to close the vehicle's lights and windows; The first prompt message is sent to the user's terminal.
4. The method according to claim 1 or 2, characterized in that, The method further includes: When the vehicle is in a driving state, if a door unlocking command is detected and the vehicle speed is greater than a preset threshold, the door will be locked.
5. The method according to claim 1 or 2, characterized in that, The method further includes: If the vehicle experiences a power outage, and power is detected to be restored after the power outage, the motor in the door lock is reset.
6. The method according to claim 5, characterized in that, When resetting the motor in the door lock, the method further includes: Detect whether there is current in the motor; If the motor has no current, a second prompt message is generated, which indicates that the motor has malfunctioned. The second prompt message is sent to the user's terminal.
7. The method according to claim 4, characterized in that, The method further includes: If the vehicle speed is less than or equal to the preset threshold, then in response to the door unlocking command, the state of the pawl switch and the ratchet switch in the door lock is detected. The pawl switch and the ratchet switch are used to unlock or lock the door. If both the pawl switch and the ratchet switch are detected to be in the ON state, the door is determined to be unlocked.
8. A vehicle control device, characterized in that, The device includes: The acquisition module is used to acquire the vehicle's operating status and the status of the doors; The detection module is used to detect whether there is a user inside the vehicle when the operating state is a parked state and the vehicle door is locked. The control module is used to control the vehicle's lights and windows to close if there is no user inside the vehicle. The vehicle lights include interior lights and exterior lights. When the vehicle is in a dark environment, the control module is specifically used to control the interior lights and windows to close if the user is not inside the vehicle; if the user is detected within a preset distance outside the vehicle when the user is not inside the vehicle, the control module determines the user's location and controls the exterior lights to turn on based on the user's location, until the user is detected to be outside the preset distance, at which point the exterior lights are turned off. The exterior lights are lights corresponding to the user's location.
9. A vehicle, characterized in that, The vehicles include: Memory, used to store executable program code; A processor for calling and running the executable program code from the memory, causing the vehicle to perform the method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed, implements the method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
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