Vehicle control method, control device, and vehicle
By detecting the distance between the Bluetooth key and the vehicle and the change in the signal angle, the problem of misoperation caused by signal strength interference in Bluetooth key control is solved, accurate control of vehicle unlocking or locking is achieved, and user experience and safety are improved.
Patent Information
- Application Number
- CN202410971756.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2025-10-03
- Estimated Expiration
- 2044-07-19
AI Technical Summary
In the prior art, when a Bluetooth key is used to control unlocking or locking of a vehicle, the signal strength is easily interfered with, resulting in erroneous operation and inability to accurately control unlocking or locking of the vehicle.
By detecting whether the target distance between the target device and the vehicle is less than a preset distance threshold and obtaining the change in signal strength and target angle within a preset time period, the vehicle is controlled to be unlocked or locked based on the change in signal strength and target angle.
Ensure accurate control of vehicle unlocking or locking when the target device position changes, avoid misoperation caused by unstable signal strength, and improve control accuracy and safety.
Smart Images

Figure CN118876896B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicles, and more particularly, to a vehicle control method, a control device, and a vehicle in the field of vehicles. Background Art
[0002] In the prior art, when using a Bluetooth key to control the unlocking or locking of a vehicle, the user's movement direction is usually determined by the signal strength value (RSSI value) of the Bluetooth key, thereby controlling the unlocking or locking of the vehicle; however, the signal strength is easily interfered with, resulting in the triggering of erroneous control instructions; therefore, how to accurately control the unlocking or locking of the vehicle when using a Bluetooth key is a technical problem that needs to be solved at present. Summary of the Invention
[0003] The present application provides a vehicle control method, a control device, and a vehicle. When the method determines that the target distance is less than a preset distance threshold, the method controls the vehicle to perform vehicle unlocking or vehicle locking based on the change in signal strength and target angle during a preset period of time; thereby ensuring that the vehicle can be accurately unlocked or locked.
[0004] In a first aspect, a vehicle control method is provided, the control method comprising:
[0005] If a target device is detected, determining whether a target distance between the target device and the vehicle is less than a preset distance threshold;
[0006] If the target distance is less than the preset distance threshold, obtaining the signal strength of the target device and the change in the target angle between the target device and the vehicle within a preset time period; wherein the target angle is used to indicate the angle between a first direction line and a second direction line; the first direction line is used to indicate a line between the target device and a first preset position of the vehicle; and the second direction line is used to indicate a line between the target device and a second preset position of the vehicle;
[0007] Based on the signal strength and the change in the target angle, the vehicle is controlled to execute vehicle unlocking or vehicle locking.
[0008] In an embodiment of the present application, if the target distance between the target device and the vehicle is detected to be less than a preset distance threshold, the target device's signal strength and the change in the target angle are obtained within a preset time period, and based on the change in signal strength and target angle, the vehicle is controlled to unlock or lock. Compared to the prior art method of controlling vehicle unlocking or locking based on signal strength, this solution controls vehicle unlocking or locking based on two factors: signal strength and the change in target angle. Therefore, it can ensure that the vehicle is unlocked or locked even if the position of the target device changes, avoid erroneous unlocking or locking operations caused by unstable signal strength, and ensure accurate control of vehicle unlocking or locking.
[0009] In conjunction with the first aspect, in certain implementations of the first aspect, controlling the vehicle to unlock or lock the vehicle based on the change in the signal strength and the target angle includes:
[0010] Determining a change trend of the signal strength based on the signal strength within the preset time period;
[0011] If the change trend of the signal strength meets a preset change trend and the change amount of the target angle is greater than a preset threshold, the vehicle is controlled to execute the vehicle unlocking or the vehicle locking based on the change trend of the signal strength.
[0012] In an embodiment of the present application, if the changing trend of the signal strength meets the preset changing trend and the change in the target angle is greater than the preset threshold, it indicates that the current target device is in a moving state, that is, the current change in signal strength is not a change in signal strength caused by signal interference, but a change in signal strength caused by the movement of the target device; therefore, based on the changing trend of the signal strength, the vehicle is controlled to execute vehicle unlocking or vehicle locking; ensuring that the vehicle can be accurately unlocked or locked.
[0013] In combination with the first aspect and the above implementations, in certain implementations of the first aspect, controlling the vehicle to unlock or lock the vehicle based on the changing trend of the signal strength includes:
[0014] Based on the change trend of the signal strength and the target control signal received from the target device, the vehicle is controlled to execute the vehicle unlocking or the vehicle locking; wherein the target control signal is an encrypted signal.
[0015] In an embodiment of the present application, the vehicle is controlled to perform vehicle unlocking or vehicle locking based on the changing trend of the signal strength and the target control signal received from the target device; since the target device and the vehicle are in a communication connection state, the vehicle can receive the target control signal sent by the target device and control the vehicle to unlock or lock based on the target control signal and the changing trend of the signal strength.
[0016] In combination with the first aspect and the above implementations, in some implementations of the first aspect, the method further includes:
[0017] generating a target key based on a physical address of the target device and a vehicle identification code of the vehicle;
[0018] The controlling the vehicle to unlock or lock the vehicle based on the change trend of the signal strength and the target control signal received from the target device includes:
[0019] decrypting the target control signal based on the target key to obtain target information;
[0020] If the change trend of the signal strength is signal strengthening and the target information indicates that the vehicle is unlocked, controlling the vehicle to execute the vehicle unlocking;
[0021] If the change trend of the signal strength is signal weakening and the target information indicates that the vehicle is locked, the vehicle is controlled to execute the vehicle locking.
[0022] In an embodiment of the present application, since the physical addresses of different devices are different, the vehicle identification codes of different vehicles are different; the target key generated based on the physical identification of the target device and the vehicle identification code of the vehicle corresponds to the target device and the vehicle; therefore, other devices except the target device and the vehicle cannot decrypt the target control signal, thereby ensuring the security of the target control signal; if the trend of the signal strength change is signal enhancement, and the target information indicates that the vehicle is unlocked, the vehicle is controlled to execute vehicle unlocking; if the trend of the signal strength change is signal weakening, and the target information indicates that the vehicle is locked, the vehicle is controlled to execute vehicle locking; ensuring that the vehicle can be unlocked or locked based on the trend of the signal strength change and the target control signal.
[0023] In combination with the first aspect and the above implementations, in some implementations of the first aspect, the method further includes:
[0024] Acquiring position information of the target device relative to the vehicle;
[0025] If the change trend of the signal strength is signal enhancement and the target information indicates that the vehicle is unlocked, controlling the vehicle to execute the vehicle unlocking includes:
[0026] If the change trend of the signal strength is signal strengthening, the target information indicates that the vehicle is unlocked, and determining whether the direction information indicates that the target device is located behind the vehicle;
[0027] If the target device is located behind the vehicle and it is detected that the target device has been stationary for a period longer than a first preset period, the vehicle is controlled to unlock the doors and the trunk.
[0028] In an embodiment of the present application, the position information of the target device relative to the vehicle is obtained. When controlling the unlocking of the vehicle, if the position information indicates that the target device is located behind the vehicle and the duration is greater than the first preset duration, it indicates that the current user has a need to open the trunk; therefore, the vehicle is controlled to execute door unlocking and trunk unlocking; manual operation by the user is avoided, thereby improving the user experience.
[0029] In combination with the first aspect and the above implementations, in some implementations of the first aspect, the method further includes:
[0030] If there is an abnormal signal value in the signal strength within the preset time period, data removal processing is performed on the abnormal signal value in the signal strength; wherein the abnormal signal value is the signal strength value corresponding to the outlier in the signal strength;
[0031] The determining the change trend of the signal strength based on the signal strength within the preset time period includes:
[0032] The change trend of the signal strength is determined based on the signal strength within the preset time period after data elimination.
[0033] In an embodiment of the present application, if there are abnormal signal values in the signal strength within a preset time period, the abnormal signal values are subjected to data elimination processing; and based on the signal strength after data elimination processing, the changing trend of the signal strength is determined; since the presence of abnormal signal values in the signal strength will interfere with the determination of the changing trend of the signal strength; therefore, the outliers in the signal strength within the preset time period are treated as abnormal signal values for elimination processing, and based on the signal strength after elimination processing, the changing trend of the signal strength is determined; ensuring that the changing trend of the signal strength can be obtained more accurately, thereby accurately controlling the vehicle to execute vehicle unlocking or vehicle locking.
[0034] In combination with the first aspect and the above-mentioned implementation methods, in some implementation methods of the first aspect, the first preset position is located on the antenna of the vehicle; the second preset position is located on the body of the vehicle; wherein, the first preset position and the second preset position are installed with Bluetooth communication modules, and the Bluetooth communication modules are used to receive signals transmitted by the target device.
[0035] In an embodiment of the present application, the first preset position is located on the antenna of the vehicle, and the second preset position is located on the body of the vehicle; ensuring that the target angle between the target device and the vehicle can be determined through signals received at different positions.
[0036] In combination with the first aspect and the above implementations, in some implementations of the first aspect, after controlling the vehicle to perform the vehicle unlocking, the method further includes:
[0037] If it is detected that the door of the vehicle is in an unopened state, determining a duration for which the door is in the unopened state;
[0038] If the duration is longer than a second preset duration, the vehicle is controlled to execute the vehicle locking.
[0039] In an embodiment of the present application, after the vehicle is controlled to be unlocked, if it is detected that the vehicle door is in an unlocked state and the duration is greater than a second preset time duration, it means that after the vehicle is unlocked, the vehicle door is in an unlocked but not opened state for a long time; therefore, the vehicle is controlled to execute vehicle locking to ensure the safety of the vehicle.
[0040] In a second aspect, a vehicle control device is provided, the control device comprising:
[0041] a determination module, configured to, if a target device is detected, determine whether a target distance between the target device and the vehicle is less than a preset distance threshold;
[0042] an acquisition module, configured to acquire, within a preset time period, the signal strength of the target device and a change in a target angle between the target device and the vehicle if the target distance is less than the preset distance threshold; wherein the target angle is used to indicate the angle between a first direction line and a second direction line; the first direction line is used to indicate a line between the target device and a first preset position of the vehicle; and the second direction line is used to indicate a line between the target device and a second preset position of the vehicle;
[0043] The control module is configured to control the vehicle to unlock or lock the vehicle based on the change in the signal strength and the target angle.
[0044] In a third aspect, a vehicle is provided, comprising a memory and a processor, wherein 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 control method in the above-mentioned first aspect or any possible implementation of the first aspect.
[0045] 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 control method in the above-mentioned first aspect or any possible implementation of the first aspect.
[0046] In a fifth aspect, a computer-readable storage medium is provided, which stores instructions. When the instructions are executed on an electronic device, the electronic device executes the control method in the above-mentioned first aspect or any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 This is a schematic diagram of a scenario provided by an embodiment of the present application;
[0048] Figure 2 This is another scenario diagram provided by an embodiment of the present application;
[0049] Figure 3 is a schematic flow chart of a vehicle control method provided in an embodiment of the present application;
[0050] Figure 4 is a schematic flow chart of another vehicle control method provided in an embodiment of the present application;
[0051] Figure 5 is a structural schematic diagram of a vehicle control device provided in an embodiment of the present application;
[0052] Figure 6 It is a structural schematic diagram of a vehicle provided in an embodiment of the present application. DETAILED DESCRIPTION
[0053] The following will clearly and thoroughly describe the technical solutions in this application in conjunction with the accompanying drawings. In the description of the embodiments of this 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 this application, "multiple" means two or more than two.
[0054] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.
[0055] In the prior art, when using a Bluetooth key to control the unlocking or locking of a vehicle, the user's movement direction is usually determined by the signal strength value (RSSI value) of the Bluetooth key, thereby controlling the unlocking or locking of the vehicle; for example, when the Bluetooth key and the vehicle are connected, when the signal strength increases, it indicates that the user is approaching the vehicle, and the vehicle is automatically unlocked; when the signal weakens, it indicates that the user is moving away from the vehicle, and the vehicle is automatically locked.
[0056] However, the Bluetooth signal between the vehicle and the Bluetooth key is easily interfered with, which can lead to misjudgment of the signal strength and triggering of erroneous control instructions. Therefore, how to accurately control the unlocking or locking of the vehicle when using the Bluetooth key is a technical problem that needs to be solved.
[0057] In view of this, the present application provides a vehicle control method, a control device and a vehicle. Through the embodiments of the present application, when it is determined that the target distance is less than a preset distance threshold, the vehicle is controlled to execute vehicle unlocking or vehicle locking based on the change in signal strength and target angle during a preset time period; thereby ensuring that the vehicle can be accurately controlled to be unlocked or locked.
[0058] Figure 1 This is a scenario diagram provided in an embodiment of the present application.
[0059] For example, Figure 1 The scene 100 shown includes a vehicle 110 , a target device 120 , a first preset position 111 , and a second preset position 112 .
[0060] The target device 120 is a Bluetooth key that has the ability to send Bluetooth signals. For example, the Bluetooth key can be a mobile phone. The target device 120 is connected to the vehicle 110 through Bluetooth signals.
[0061] The first preset position 111 and the second preset position 112 are located at different locations in the vehicle; for example, the first preset position may be located on the vehicle's antenna, and the second preset position may be located on the vehicle's body. Bluetooth communication modules are installed at the first preset position 111 and the second preset position 112, and the Bluetooth communication modules are configured to receive Bluetooth signals transmitted by the target device 120.
[0062] It should be noted that the first preset position and the second preset position can be any two different positions in the vehicle, for example, the vehicle door position, the vehicle window position, etc. Figure 1 The first preset position and the second preset position shown are for illustration only.
[0063] For example, if the target device is connected to the vehicle and the target device is moving in the 130-degree direction, that is, the user is moving the target device in the direction approaching the vehicle, the vehicle is controlled to be automatically unlocked; if the target device is moving in the 140-degree direction, that is, the user is moving the target device in the direction away from the vehicle, the vehicle is controlled to be automatically locked.
[0064] Exemplarily, the vehicle determines the moving direction of the target device by detecting the changing trend of the signal strength; that is, determines the moving direction of the user carrying the target device. If the changing trend of the signal strength is that the signal strength is increasing, it means that the moving direction of the user carrying the target device is towards the vehicle; if the changing trend of the signal strength is that the signal strength is decreasing, it means that the moving direction of the user carrying the target device is away from the vehicle.
[0065] It should be noted that if there is a signal blocker near the target device 120, it will interfere with the signal strength; that is, the changing trend of the signal strength cannot be accurately determined; or if the user moves the target device from behind to in front of the user while using the target device; although the user's position has not changed, the signal strength has changed; therefore, it may lead to misjudgment of the signal strength and trigger an erroneous control instruction.
[0066] Figure 2 This is another scenario diagram provided in an embodiment of the present application.
[0067] For example, Figure 2 The scene 200 shown includes a vehicle 110 , a target device 120 , a first preset position 111 , a second preset position 112 , and positions 1 and 2 of the target device after it moves.
[0068] Exemplarily, if the position of the target device changes, the target angle will change; wherein the target angle is the angle between the line connecting the first preset position and the target device, and the angle between the line connecting the second preset position and the target position;
[0069] For example, if the target device 120 moves to position 1, the target angle changes from angle 1 to angle 2; if the target device 120 moves to position 2, the target angle changes from angle 1 to angle 3.
[0070] It should be noted that if the change in target angle exceeds a preset threshold, it can be determined that the target device is in motion, that is, the user is in motion. Therefore, it can be determined that the current change in signal strength is caused by user movement, thus eliminating the possibility that the change in signal strength is caused by signal interference.
[0071] Below Figures 3 and 4 The vehicle control method provided in the embodiment of the present application is described in detail.
[0072] Figure 3 It is a schematic flow chart of a vehicle control method provided in an embodiment of the present application.
[0073] For example, Figure 3 The control method 300 shown may be executed by a vehicle; or may be executed by a central control system in a vehicle; or may be executed by a processor or chip in a vehicle.
[0074] like Figure 3 As shown, the vehicle control method 300 includes S310 to S330, and S310 to S330 are described in detail below.
[0075] S310: If a target device is detected, determine whether a target distance between the target device and the vehicle is less than a preset distance threshold.
[0076] The target device is a Bluetooth key; for example, the target device may be a mobile phone with a Bluetooth key function.
[0077] Exemplarily, the vehicle's Bluetooth communication module detects the Bluetooth signal sent by the target device and determines whether the target distance between the target device and the vehicle is less than a preset distance threshold; wherein the preset distance threshold is used to indicate the maximum distance at which the vehicle and the target device can establish a stable communication connection; if the target distance is less than the preset distance threshold, it indicates that the target device can establish a communication connection with the vehicle, thereby realizing signal transmission between the target device and the vehicle.
[0078] For example, the target preset distance is 10m; if the target distance between the Bluetooth key and the vehicle is detected to be 8m, a communication connection between the Bluetooth key and the vehicle is established; if the distance between the Bluetooth key and the vehicle is detected to be 15m, which is greater than the preset distance threshold, it means that a stable communication connection cannot be established between the Bluetooth key and the vehicle.
[0079] S320: If the target distance is less than the preset distance threshold, obtain the signal strength of the target device and the change in the target angle between the target device and the vehicle within a preset time period.
[0080] Among them, the target angle is used to indicate the angle between the first direction line and the second direction line; the first direction line is used to represent the line between the target device and the first preset position of the vehicle; the second direction line is used to represent the line between the target device and the second preset position of the vehicle.
[0081] Exemplarily, the first preset position and the second preset position are located at different positions in the vehicle; Bluetooth communication modules are installed at the first preset position and the second preset position, and the Bluetooth communication modules are used to receive Bluetooth signals sent by the target device.
[0082] In one implementation, the first preset position is located on the antenna of the vehicle; the second preset position is located on the body of the vehicle; wherein, Bluetooth communication modules are installed at the first preset position and the second preset position, and the Bluetooth communication modules are used to receive signals transmitted by the target device.
[0083] Exemplarily, the first preset position is located on the vehicle's antenna (eg Figure 1 The second preset position is located on the vehicle body, such as the position of the vehicle center console (as shown in 111); Figure 1 112 in FIG).
[0084] Optionally, the second preset position can be located on the vehicle's antenna, and the first preset position is located at the vehicle's center console; if there are at least two antennas in the vehicle, the first preset position and the second preset position are located on different antennas of the vehicle, or at different positions of the vehicle's antenna.
[0085] It should be noted that, since the antenna is located on the top of the vehicle, the Bluetooth signal of the target device received at the antenna is not easily blocked, and thus the Bluetooth signal transmitted by the target device can be better received.
[0086] S330: Based on the signal strength and the change in the target angle, control the vehicle to unlock or lock the vehicle.
[0087] In one implementation, based on the signal strength within a preset time period, a changing trend of the signal strength is determined; if the changing trend of the signal strength meets the preset changing trend and the change in the target angle is greater than a preset threshold, the vehicle is controlled to execute vehicle unlocking or vehicle locking based on the changing trend of the signal strength.
[0088] For example, during a preset period of time while establishing a communication connection with a target device, the signal strength and target angle are continuously monitored to determine a trend in signal strength and a change in the target angle. If the signal strength trend meets a preset trend and the change in the target angle exceeds a preset threshold, it indicates a change in the target device's location. Based on the signal strength trend, the vehicle is controlled to unlock or lock. Signal strength trends include increasing and decreasing signal strength.
[0089] For example, if the preset threshold of the target angle is 10 degrees; if the change in the target angle within the preset time period is 20 degrees, which is greater than the preset threshold, it means that the target device is in a moving state; that is, the user is moving towards or away from the vehicle; therefore, based on the changing trend of the signal strength within the preset time period, the vehicle is controlled to unlock or lock the vehicle.
[0090] In an embodiment of the present application, if the changing trend of the signal strength meets the preset changing trend and the change in the target angle is greater than the preset threshold, it indicates that the current target device is in a moving state, that is, the current change in signal strength is not a signal strength change caused by signal interference; therefore, based on the changing trend of the signal strength, the vehicle is controlled to execute vehicle unlocking or vehicle locking; ensuring that the vehicle can be accurately unlocked or locked.
[0091] In one implementation, if there are abnormal signal values in the signal strength within a preset time period, data elimination processing is performed on the abnormal signal values in the signal strength; wherein the abnormal signal values are signal strength values corresponding to outliers in the signal strength; based on the signal strength within the preset time period after the data elimination processing, the changing trend of the signal strength is determined.
[0092] For example, when determining the changing trend of signal strength, if there are outliers among multiple signal strength values, the signal strength values corresponding to the outliers are treated as abnormal signal values for data elimination, and the changing trend of signal strength is determined based on the signal strength after data elimination.
[0093] Exemplarily, the changing trend of the signal strength within the preset time period conforms to the preset changing trend, but the signal strength at a certain moment does not conform to the preset changing trend; for example, from moment T1 to moment T2, the signal strength shows a trend of increasing signal strength; but the signal strength at moment T3 between moment T1 and moment T2 is less than the signal strength at moment T1; then the signal strength at moment T3 is treated as an abnormal signal value for data elimination.
[0094] It should be noted that the above is an example of the preset time period and signal strength, and this application does not limit this.
[0095] In an embodiment of the present application, if there are abnormal signal values in the signal strength within a preset time period, the abnormal signal values are subjected to data elimination processing; and based on the signal strength after data elimination processing, the changing trend of the signal strength is determined; since the presence of abnormal signal values in the signal strength will interfere with the determination of the changing trend of the signal strength; therefore, the outliers in the signal strength within the preset time period are treated as abnormal signal values for elimination processing, and based on the signal strength after elimination processing, the changing trend of the signal strength is determined; ensuring that the changing trend of the signal strength can be obtained more accurately, thereby accurately controlling the vehicle to execute vehicle unlocking or vehicle locking.
[0096] In one implementation, based on the changing trend of the signal strength and the target control signal received from the target device, the vehicle is controlled to execute vehicle unlocking or vehicle locking; wherein the target control signal is an encrypted signal.
[0097] Among them, the target control signal is used to indicate whether the vehicle is unlocked or locked; the target control signal is a signal encrypted using a target key; the target device generates a target key based on the physical address of the target device and the vehicle identification code of the vehicle, and uses the target key to encrypt the target control signal, and sends the encrypted target control signal to the vehicle.
[0098] The physical address of the target device, also known as the Media Access Control Address (MAC) of the target device, is used to identify and locate network devices during network communications. When data needs to be transmitted on the network, the sender will encapsulate the MAC address of the target device in the header of the data frame so that the network device can address and forward it based on the MAC address. The Vehicle Identification Number (VIN) is used to identify the vehicle. The VIN can be affixed to the vehicle via a label or stored in an unchangeable manner in the memory of the electronic control unit to ensure that the electronic data meets the requirements of the relevant standards is stored.
[0099] In an embodiment of the present application, the vehicle is controlled to perform vehicle unlocking or vehicle locking based on the changing trend of the signal strength and the target control signal received from the target device; since the target device and the vehicle are in a communication connection state, the vehicle can receive the target control signal sent by the target device and control the vehicle to unlock or lock based on the target control signal and the changing trend of the signal strength.
[0100] Optionally, the user determines the target key through the vehicle identification code and the physical address of the target device, which can ensure a one-to-one correspondence between the vehicle and the target device; at the same time, the correspondence between the vehicle and the target device and the target key are stored in the server. If the target device is lost, the target device corresponding to the above physical address can be deactivated through the server background to avoid the problem of vehicle theft caused by the loss of the target device.
[0101] The following describes in detail the process of controlling the vehicle to unlock or lock the vehicle based on the changing trend of the signal strength and the target control signal.
[0102] In one implementation, a target key is generated based on the physical address of the target device and the vehicle identification code of the vehicle; the target control signal is decrypted based on the target key to obtain target information; if the trend of the signal strength change is signal enhancement and the target information indicates vehicle unlocking, the vehicle is controlled to execute vehicle unlocking; if the trend of the signal strength change is signal weakening and the target information indicates vehicle locking, the vehicle is controlled to execute vehicle locking.
[0103] Exemplarily, the vehicle obtains the physical address of the target device and the vehicle identification code of the vehicle, and generates a target key to decrypt the target control signal to obtain the target information; if the trend of the signal strength change is signal enhancement, it means that the distance between the target device and the vehicle is gradually decreasing, and the target information indicates that the vehicle is unlocked, and the vehicle is controlled to execute vehicle unlocking; if the trend of the signal strength change is signal weakening, it means that the distance between the target device and the vehicle is gradually increasing, and the target information indicates that the vehicle is locked, and the vehicle is controlled to execute vehicle locking.
[0104] Exemplarily, the vehicle decrypts the target control signal using a target key and converts the target control signal into a Controller Area Network (CAN) signal. The vehicle's Passive Entry Passive Start (PEPS) system is then awakened via the CAN signal, where the CAN signal includes target information for instructing the vehicle to unlock or lock. The vehicle is unlocked or locked via the PEPS system.
[0105] Optionally, before controlling the vehicle to unlock or lock, the vehicle sends a prompt message to the target device; wherein the prompt message is used to prompt the vehicle of the operation to be performed; for example, if the trend of the signal strength change is signal enhancement, and the target information indicates that the vehicle is unlocked, the vehicle sends a prompt message to the target device "The vehicle is being controlled to unlock, do you want to cancel the unlocking operation"; if the user does not trigger the cancel operation button on the target device, the vehicle is controlled to unlock after a preset time (for example, 2 seconds); if the user clicks the cancel operation button, the vehicle will no longer perform the unlocking operation.
[0106] In an embodiment of the present application, a prompt message is sent to the target device to ensure that the user can be informed of the unlocking or locking status of the vehicle in a timely manner; and based on the user's operation on the prompt message, the vehicle unlocking or locking strategy is adjusted to improve the user experience.
[0107] In an embodiment of the present application, since the physical addresses of different devices are different and the vehicle identification codes of different vehicles are different, the target key generated based on the physical identification of the target device and the vehicle identification code of the vehicle corresponds to the target device and the vehicle; ensuring the security of the target control signal; if the trend of the signal strength change is signal enhancement, and the target information indicates that the vehicle is unlocked, the vehicle is controlled to execute vehicle unlocking; if the trend of the signal strength change is signal weakening, and the target information indicates that the vehicle is locked, the vehicle is controlled to execute vehicle locking; ensuring that the vehicle can be unlocked or locked based on the trend of the signal strength change and the target control signal.
[0108] In one implementation, the position information of the target device relative to the vehicle is obtained; if the trend of the signal strength change is signal enhancement, the target information indicates that the vehicle is unlocked, and it is determined whether the position information indicates that the target device is located behind the vehicle; if the target device is located behind the vehicle, and it is detected that the target device has been stationary for longer than a first preset time, the vehicle is controlled to execute door unlocking and trunk unlocking.
[0109] The orientation information is used to indicate the position of the target device relative to the vehicle; for example, the target device is located in front of the vehicle, the target device is located to the side of the vehicle, the target device is located behind the vehicle, etc.
[0110] For example, when controlling the vehicle to unlock the vehicle, if the position information indicates that the target device is located behind the vehicle, and the time the target device is located behind the vehicle is greater than the first preset time, it means that the current user is moving toward the vehicle and stays behind the vehicle for a time greater than the first preset time, and it is inferred that the user has a need to open the trunk of the vehicle; therefore, when controlling the vehicle to unlock the vehicle, the vehicle is controlled to unlock the doors and the trunk.
[0111] It should be understood that whether the user stays behind the vehicle is determined by the first preset time; if the target device's stationary time is less than or equal to the preset time, it means that the user passed behind the vehicle without staying; therefore, the vehicle's trunk is not controlled to be unlocked to avoid additional power consumption caused by frequent unlocking; if the target device's stationary time is greater than the preset time, it means that the user has a need to open the vehicle's trunk; therefore, the vehicle's trunk is controlled to be unlocked.
[0112] In an embodiment of the present application, the position information of the target device relative to the vehicle is obtained. When controlling the unlocking of the vehicle, if the position information indicates that the target device is located behind the vehicle and the duration is greater than the first preset duration, it indicates that the current user may have a need to open the trunk; therefore, the vehicle is controlled to execute door unlocking and trunk unlocking; manual operation by the user is avoided, thereby improving the user experience.
[0113] In one implementation, after controlling the vehicle to execute vehicle unlocking, if it is detected that the vehicle door is in an unlocked state, the duration of the door being in the unlocked state is determined; if the duration is greater than a second preset duration, controlling the vehicle to execute vehicle locking.
[0114] For example, after the vehicle is controlled to be unlocked, if it is detected that the vehicle's door is in an unlocked state and the duration is greater than a second preset time duration, it means that after the vehicle is unlocked, the vehicle's door is in an unlocked but not opened state for a long time; therefore, the vehicle is controlled to execute vehicle locking to ensure the safety of the vehicle.
[0115] For example, the second preset time length is 10 seconds; after controlling the vehicle to execute vehicle unlocking, the vehicle door status is monitored in real time; if the vehicle door is in an unopened state, determine the duration of the door being in the unopened state, and if the duration reaches 10 seconds, control the vehicle to execute vehicle locking.
[0116] It should be noted that the above is an example of the second preset time length, and this application does not limit it.
[0117] In one possible implementation, if the target distance is less than a preset distance threshold, the change in the signal strength of the target device and the change in the target angle between the target device and the vehicle are obtained within a preset time period; if the change in the target angle is greater than the preset threshold, the change in signal strength is greater than a second threshold, and the trend of change in signal strength meets the preset trend, based on the trend of change in signal strength, the vehicle is controlled to execute vehicle unlocking or vehicle locking.
[0118] Exemplarily, when the change in the target angle is greater than a preset threshold and the change in signal strength is greater than a second threshold, it is determined that the position of the target device has changed; therefore, according to the changing trend of the signal strength, the vehicle is controlled to execute vehicle unlocking or vehicle locking; ensuring that it is possible to more accurately judge whether the user is in a moving state; and when the user is in a moving state, the vehicle is controlled to execute vehicle unlocking or vehicle locking according to the changing trend of the signal strength.
[0119] In the above embodiment, if the target distance between the target device and the vehicle is detected to be less than a preset distance threshold, the target device's signal strength and the change in the target angle are obtained within a preset time period, and the vehicle is controlled to unlock or lock based on the change in signal strength and target angle. Compared to the prior art method of controlling vehicle unlocking or locking based on signal strength, this solution controls vehicle unlocking or locking based on two factors: signal strength and the change in target angle. Therefore, it ensures that the vehicle is unlocked or locked even if the position of the target device changes, avoids erroneous unlocking or locking operations caused by unstable signal strength, and ensures accurate control of vehicle unlocking or locking.
[0120] Figure 4 It is a schematic flowchart of another vehicle control method provided in an embodiment of the present application.
[0121] For example, Figure 4 The control method 400 shown may be executed by a vehicle; or may be executed by a central control system in a vehicle; or may be executed by a processor or chip in a vehicle.
[0122] like Figure 4As shown, the vehicle control method 400 includes S401 to S408, and S401 to S408 are described in detail below.
[0123] S401: If a target device is detected, a target distance between the target device and the vehicle is obtained.
[0124] Optionally, the implementation of S401 can refer to Figure 3 The relevant description of S310 is omitted here.
[0125] S402, determine whether the target distance is less than a preset distance threshold; if so, execute S403.
[0126] Exemplarily, the preset distance threshold is used to indicate the maximum distance at which a vehicle and a target device can establish a stable communication connection; if the target distance is less than the preset distance threshold, it indicates that the target device can establish a communication connection with the vehicle, thereby realizing signal transmission between the target device and the vehicle.
[0127] S403: Obtain the signal strength and target angle of the target device within a preset time period.
[0128] Exemplarily, the signal strength is the signal strength of the Bluetooth signal transmitted by the target device received by the vehicle; the target angle is used to indicate the angle between the first direction line and the second direction line; the first direction line is used to represent the line between the target device and the first preset position of the vehicle; the second direction line is used to represent the line between the target device and the second preset position of the vehicle.
[0129] Optionally, the implementation of S403 can refer to Figure 3 The relevant description in S320 is omitted here.
[0130] S404: If the change in the target angle is greater than a preset threshold, determine a change trend of the signal strength according to the signal strength in a preset time period.
[0131] For example, when the change in the target angle is greater than a preset threshold, it indicates that the current target device is in a moving state, that is, the current change in signal strength is not a change in signal strength caused by signal interference; therefore, based on the changing trend of the signal strength, the vehicle is controlled to execute vehicle unlocking or vehicle locking; ensuring that the vehicle can be accurately unlocked or locked.
[0132] S405, determine whether the target control signal is received; if so, execute S406.
[0133] Exemplarily, it is determined whether a target control signal is received, and if the target control signal is received, the target control signal is decrypted. The target control signal is a control signal generated by a target device and sent to the vehicle.
[0134] S406: Decrypt the target control signal to obtain target information.
[0135] Exemplarily, the target control signal is encrypted using symmetric encryption, meaning the same key is used to encrypt and decrypt the target control signal. In an embodiment of the present application, the target control signal is decrypted and encrypted using a target key generated based on the target device's physical address and the vehicle's vehicle identification code. This ensures that the target control signal cannot be accessed by devices other than the vehicle and the target device, thereby improving the security of the signal transmission process.
[0136] S407 : If the signal strength change trend is a signal enhancement and the target information indicates vehicle unlocking, the vehicle is controlled to execute vehicle unlocking.
[0137] For example, if the signal strength change trend is signal enhancement, and the target information indicates vehicle unlocking, it means that the distance between the target device and the vehicle is gradually decreasing, so the vehicle is controlled to execute vehicle unlocking.
[0138] Optionally, the implementation of S407 can refer to Figure 3 The relevant description of S330 is not repeated here.
[0139] S408: If the signal strength change trend is a signal weakening and the target information indicates vehicle locking, control the vehicle to execute vehicle locking.
[0140] For example, if the signal strength variation trend is signal weakening and the target information indicates vehicle locking, it means that the distance between the target device and the vehicle is gradually increasing, and therefore the vehicle is controlled to execute vehicle locking.
[0141] Optionally, the implementation of S408 can refer to Figure 3 The relevant description of S330 is not repeated here.
[0142] In an embodiment of the present application, when the target distance between the target device and the vehicle is less than a preset distance threshold, the signal strength and target angle of the target device are obtained; and when the rate of change of the target angle is greater than the preset threshold, the vehicle is controlled to perform vehicle unlocking or vehicle locking according to the changing trend of the signal strength and the received target control signal; ensuring that the vehicle can be controlled according to the changing trend of the signal strength and the received target control signal when the position of the target device changes; thereby ensuring that the vehicle can be accurately controlled to be unlocked or locked.
[0143] Combined with the above Figures 1 to 4 The vehicle control method provided by the embodiment of the present application is described in detail; Figure 5 and Figure 6The device embodiments of the present application are described in detail. It should be understood that the devices in the embodiments of the present application can execute the various methods of the aforementioned embodiments of the present application, that is, the specific working processes of the following various products can refer to the corresponding processes in the aforementioned method embodiments.
[0144] Figure 5 It is a structural schematic diagram of a vehicle control device provided in an embodiment of the present application.
[0145] For example, Figure 5 As shown, the vehicle control device 500 includes:
[0146] A determination module 510 is configured to determine whether a target distance between the target device and the vehicle is less than a preset distance threshold if a target device is detected;
[0147] An acquisition module 520 is configured to acquire, within a preset time period, the signal strength of the target device and a change in a target angle between the target device and the vehicle if the target distance is less than a preset distance threshold; wherein the target angle is used to indicate the angle between a first direction line and a second direction line; the first direction line is used to indicate a line connecting the target device and a first preset position of the vehicle; and the second direction line is used to indicate a line connecting the target device and a second preset position of the vehicle;
[0148] The control module 530 is configured to control the vehicle to unlock or lock the vehicle based on the change in the signal strength and the target angle.
[0149] Optionally, as an embodiment, the control module 530 is specifically configured to:
[0150] Based on the signal strength within a preset time period, a changing trend of the signal strength is determined; if the changing trend of the signal strength meets the preset changing trend and the change in the target angle is greater than a preset threshold, the vehicle is controlled to execute vehicle unlocking or vehicle locking based on the changing trend of the signal strength.
[0151] Optionally, as an embodiment, the control module 530 is specifically configured to:
[0152] Based on the changing trend of the signal strength and the target control signal received from the target device, the vehicle is controlled to execute vehicle unlocking or vehicle locking; wherein the target control signal is an encrypted signal.
[0153] Optionally, as an embodiment, a generation module is further included, and the generation module is specifically configured to:
[0154] Generate a target key based on the physical address of the target device and the vehicle identification code of the vehicle;
[0155] The control module 530 is specifically used to: decrypt the target control signal based on the target key to obtain the target information; if the trend of the signal strength change is signal enhancement and the target information indicates vehicle unlocking, control the vehicle to execute vehicle unlocking; if the trend of the signal strength change is signal weakening and the target information indicates vehicle locking, control the vehicle to execute vehicle locking.
[0156] Optionally, as an embodiment, the acquisition module 520 is further configured to: acquire position information of the target device relative to the vehicle;
[0157] The control module 530 is specifically used to: if the trend of the signal strength change is signal enhancement, the target information indicates that the vehicle is unlocked, and determine whether the direction information indicates that the target device is located behind the vehicle; if the target device is located behind the vehicle, and it is detected that the target device is stationary for a time period greater than a first preset time period, control the vehicle to execute door unlocking and trunk unlocking.
[0158] Optionally, as an embodiment, a processing module is further included, the processing module being specifically configured to: if there is an abnormal signal value in the signal strength within a preset time period, perform data removal processing on the abnormal signal value in the signal strength; wherein the abnormal signal value is a signal strength value corresponding to an outlier in the signal strength;
[0159] The determination module is specifically used to determine a change trend of the signal strength based on the signal strength within a preset time period after the data elimination process.
[0160] Optionally, as an embodiment, the control module 530 is further used to: if it is detected that the vehicle door is in an unlocked state, determine the duration of the door being in the unlocked state; if the duration is greater than a second preset duration, control the vehicle to execute vehicle locking.
[0161] It should be noted that the above-mentioned vehicle control device is embodied in the form of a functional unit. The term "module" here can be implemented in the form of software and / or hardware, and is not specifically limited to this.
[0162] For example, a "module" may be a software program, a hardware circuit, or a combination of the two that implements the aforementioned functionality. The hardware circuit may include an application specific integrated circuit (ASIC), an electronic circuit, a processor (e.g., a shared processor, a dedicated processor, or a group of processors) and memory for executing one or more software or firmware programs, combined logic circuits, and / or other suitable components that support the described functionality.
[0163] Therefore, the units of each example described in the embodiments of this application can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0164] Figure 6 It is a structural schematic diagram of a vehicle provided in an embodiment of the present application.
[0165] Exemplarily, vehicle 600 includes a processor 610 , a memory 620 , and executable program code 630 .
[0166] Exemplarily, the vehicle 600 includes one or more processors 610, which can support the vehicle 600 in implementing the vehicle control method in the method embodiment. The processor 610 can be a general-purpose processor or a special-purpose processor. For example, the processor 610 can be a central processing unit (CPU), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, such as discrete gates, transistor logic devices, or discrete hardware components.
[0167] For example, the processor 610 can be used to control the vehicle 600, execute software programs, and process data of the software programs. The vehicle 600 can also include a communication unit to implement signal input (reception) and output (transmission).
[0168] Exemplarily, the vehicle 600 may include one or more memories 620 on which executable program code 630 is stored. The executable program code 630 can be executed by the processor 610 to generate instructions so that the processor 610 executes the vehicle control method described in the above method embodiment according to the instructions.
[0169] Optionally, data may be stored in the memory 620. Optionally, the processor 610 may read data stored in the memory 620. The data may be stored at the same storage address as the executable program code 630, or may be stored at a different storage address from the executable program code 630.
[0170] Exemplarily, the processor 610 and the memory 620 may be provided separately or integrated together, for example, integrated on a system on chip (SOC) of the terminal device.
[0171] Exemplarily, the memory 620 can be used to store relevant programs of the vehicle control method provided in the embodiment of the present application, and the processor 620 can be used to call the executable program code 630 stored in the memory 620 when controlling the vehicle to execute the vehicle control method of the embodiment of the present application; for example, if a target device is detected, determine whether the target distance between the target device and the vehicle is less than a preset distance threshold; if the target distance is less than the preset distance threshold, obtain the signal strength of the target device and the change in the target angle between the target device and the vehicle within a preset time period; wherein the target angle is used to indicate the angle between the first direction line and the second direction line; the first direction line is used to represent the line between the target device and the first preset position of the vehicle; the second direction line is used to represent the line between the target device and the second preset position of the vehicle; based on the signal strength and the change in the target angle, control the vehicle to perform vehicle unlocking or vehicle locking.
[0172] The present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the vehicle control method of any of the aforementioned embodiments.
[0173] Among them, computer-readable storage media may include, but are not limited to, any type of disk, including floppy disks, optical disks, Digital Video Discs (DVDs), Compact Disc Read-Only Memory (CD-ROMs), microdrives and magneto-optical disks, Read-Only Memory (ROMs), Random Access Memory (RAMs), Erasable Programmable Read-Only Memory (EPROMs), Electrically Erasable Programmable Read-Only Memory (EEPROMs), Dynamic Random Access Memory (DRAMs), Video Random Access Memory (VRAMs), flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of medium or device suitable for storing instructions and / or data.
[0174] The present application also provides a computer program product. When the computer program product is run on a computer, it enables the computer to execute the above-mentioned related steps to implement a vehicle control method in the above-mentioned embodiment.
[0175] In addition, the electronic device provided in the embodiments of the present application can specifically be a chip, component or module, and the electronic device may include a connected processor and memory; wherein the memory is used to store instructions, and when the electronic device is running, the processor can call and execute the instructions so that the chip executes a vehicle control method in the above embodiment.
[0176] Among them, the electronic device, computer-readable storage medium, computer program product or chip provided in this application are all used to execute the corresponding vehicle control method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding vehicle control method provided above, and will not be repeated here.
[0177] 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 distributed and completed by 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.
[0178] In the embodiments provided in this 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 merely schematic. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, 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.
[0179] The above content is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A vehicle control method, characterized in that: The control method includes: If a target device is detected, determining whether a target distance between the target device and the vehicle is less than a preset distance threshold; If the target distance is less than the preset distance threshold, obtaining the signal strength of the target device and the change in the target angle between the target device and the vehicle within a preset time period; wherein the target angle is used to indicate the angle between a first direction line and a second direction line; the first direction line is used to indicate a line between the target device and a first preset position of the vehicle; and the second direction line is used to indicate a line between the target device and a second preset position of the vehicle; Determining a change trend of the signal strength based on the signal strength within the preset time period; If the change trend of the signal strength meets a preset change trend, and the change amount of the target angle is greater than a preset threshold, controlling the vehicle to perform the vehicle unlocking or the vehicle locking based on the change trend of the signal strength; Wherein, controlling the vehicle to unlock or lock the vehicle based on the change trend of the signal strength includes: Based on the change trend of the signal strength and the target control signal received from the target device, the vehicle is controlled to execute the vehicle unlocking or the vehicle locking; wherein the target control signal is an encrypted signal.
2. The method according to claim 1, characterized in that Also includes: generating a target key based on a physical address of the target device and a vehicle identification code of the vehicle; The controlling the vehicle to unlock or lock the vehicle based on the change trend of the signal strength and the target control signal received from the target device includes: decrypting the target control signal based on the target key to obtain target information; If the change trend of the signal strength is signal strengthening and the target information indicates that the vehicle is unlocked, controlling the vehicle to execute the vehicle unlocking; If the change trend of the signal strength is signal weakening and the target information indicates that the vehicle is locked, the vehicle is controlled to execute the vehicle locking.
3. The method according to claim 2, characterized in that Also includes: Acquiring position information of the target device relative to the vehicle; If the change trend of the signal strength is signal enhancement and the target information indicates that the vehicle is unlocked, controlling the vehicle to execute the vehicle unlocking includes: If the change trend of the signal strength is signal strengthening, the target information indicates that the vehicle is unlocked, and determining whether the direction information indicates that the target device is located behind the vehicle; If the target device is located behind the vehicle and it is detected that the target device has been stationary for a period longer than a first preset period, the vehicle is controlled to unlock the doors and the trunk.
4. The method according to claim 1, wherein Also includes: If there is an abnormal signal value in the signal strength within the preset time period, data removal processing is performed on the abnormal signal value in the signal strength; wherein the abnormal signal value is the signal strength value corresponding to the outlier in the signal strength; The determining the change trend of the signal strength based on the signal strength within the preset time period includes: The change trend of the signal strength is determined based on the signal strength within the preset time period after data elimination.
5. The method according to any one of claims 1 to 4, characterized in that The first preset position is located on the antenna of the vehicle; the second preset position is located on the body of the vehicle; wherein, Bluetooth communication modules are installed at the first preset position and the second preset position, and the Bluetooth communication modules are used to receive signals transmitted by the target device.
6. The method according to any one of claims 1 to 4, characterized in that After controlling the vehicle to unlock the vehicle, the method further includes: If it is detected that the door of the vehicle is in an unopened state, determining a duration for which the door is in the unopened state; If the duration is longer than a second preset duration, the vehicle is controlled to execute the vehicle locking.
7. A vehicle control device, characterized in that: The control device comprises: a determination module, configured to, if a target device is detected, determine whether a target distance between the target device and the vehicle is less than a preset distance threshold; an acquisition module, configured to acquire, within a preset time period, the signal strength of the target device and a change in a target angle between the target device and the vehicle if the target distance is less than the preset distance threshold; wherein the target angle is used to indicate the angle between a first direction line and a second direction line; the first direction line is used to indicate a line between the target device and a first preset position of the vehicle; and the second direction line is used to indicate a line between the target device and a second preset position of the vehicle; a control module configured to determine a change trend of the signal strength based on the signal strength within the preset time period; and if the change trend of the signal strength satisfies a preset change trend and the change in the target angle is greater than a preset threshold, controlling the vehicle to unlock or lock the vehicle based on the change trend of the signal strength; The control module is specifically used to control the vehicle to execute the vehicle unlocking or the vehicle locking based on the change trend of the signal strength and the target control signal received from the target device; wherein the target control signal is an encrypted signal.
8. A vehicle, characterized in that: The vehicle comprises: a memory for storing executable program code; A processor is configured to call and run the executable program code from the memory so that the vehicle executes the control method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Vehicle positioning method and device, electronic equipment and storage medium
CN113022494A
Vehicle control method and device, vehicle and storage medium
CN118107504A