Control method and device of vehicle, electronic equipment and storage medium
By determining the relative distance between the Bluetooth key and the vehicle and employing a control strategy based on the number of unlocks or the duration of unlocks, the problem of frequent locking and unlocking caused by interference with Bluetooth keys is solved, thus improving the user experience and control accuracy.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUANGZHOU AUTOMOBILE GROUP CO LTD
- Filing Date
- 2023-11-28
- Publication Date
- 2026-04-28
AI Technical Summary
Bluetooth keys are easily interfered with when near the vehicle, leading to frequent locking and unlocking, which affects the user experience.
By determining the relative distance between the Bluetooth key and the vehicle and comparing it with multiple distance thresholds, the distance relationship is determined, and a control strategy based on the number of unlocks or the duration of unlocking is adopted to avoid frequent unlocking or locking.
It effectively avoids the frequent locking and unlocking issues caused by Bluetooth interference, improves the user experience, and ensures the accuracy and safety of vehicle control.
Smart Images

Figure CN117789335B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of automotive control technology, and more specifically, to a vehicle control method, device, electronic device, and storage medium. Background Technology
[0002] With the rapid development of automotive technology, cars are becoming increasingly common in people's daily lives. Users need to carry a key to unlock their car doors. Currently, vehicles can be actively locked and unlocked via Bluetooth keys. This is typically done by locating the Bluetooth key's position based on the Bluetooth RSSI signal strength. However, due to Bluetooth's susceptibility to interference and its tendency to fluctuate, and the non-linear nature of its signal strength with distance, the vehicle may frequently unlock and lock when the user activates the Bluetooth key near the vehicle, resulting in a poor user experience. Therefore, how to avoid frequent unlocking and locking during Bluetooth key-based vehicle unlocking and locking has become a pressing issue. Summary of the Invention
[0003] In view of this, embodiments of this application propose a vehicle control method, apparatus, electronic device, and storage medium to improve the above-mentioned problems.
[0004] According to a first aspect of the embodiments of this application, a vehicle control method is provided, the method comprising: determining a relative distance between a Bluetooth key of the vehicle and the vehicle; determining a distance relationship between the relative distance and a plurality of distance thresholds; determining a control strategy for the vehicle based on the distance relationship, wherein the control strategy includes an unlock control strategy based on the number of unlocks or an unlock control strategy based on unlock duration, the unlock duration being the time from unlocking the vehicle to receiving a locking command from the Bluetooth key; if the control strategy is determined to be the unlock control strategy based on the number of unlocks, then determining a first magnitude relationship between the number of unlocks and a first number threshold, and performing unlock control on the vehicle according to the first magnitude relationship and the distance relationship; if the control strategy is determined to be the unlock control strategy based on unlock duration, then determining a second magnitude relationship between the unlock duration and a duration threshold, and performing unlock control on the vehicle according to the second magnitude relationship and the distance relationship.
[0005] According to a second aspect of the embodiments of this application, a vehicle control device is provided, the device comprising: a relative distance determination module, configured to determine the relative distance between a Bluetooth key of the vehicle and the vehicle; a distance relationship determination module, configured to determine the distance relationship between the relative distance and a plurality of distance thresholds; a control strategy determination module, configured to determine a control strategy for the vehicle based on the distance relationship, wherein the control strategy includes an unlocking control strategy based on the number of unlocks or an unlocking control strategy based on unlocking duration, the unlocking duration being the time from unlocking the vehicle to receiving a locking command from the Bluetooth key; a first control module, configured to, if the control strategy is determined to be the unlocking control strategy based on the number of unlocks, determine a first magnitude relationship between the number of unlocks of the vehicle and a first number threshold, and perform unlocking control on the vehicle according to the first magnitude relationship and the distance relationship; and a second control module, configured to, if the control strategy is determined to be the unlocking control strategy based on unlocking duration, determine a second magnitude relationship between the unlocking duration of the vehicle and a duration threshold, and perform unlocking control on the vehicle according to the second magnitude relationship and the distance relationship.
[0006] According to a third aspect of the present application, an electronic device is provided, comprising: a processor; and a memory storing computer-readable instructions, wherein when executed by the processor, the computer-readable instructions implement the vehicle control method described above.
[0007] According to a fourth aspect of the embodiments of this application, a computer-readable storage medium is provided that stores computer-readable instructions thereon, which, when executed by a processor, implement the vehicle control method described above.
[0008] In this application, the relative distance between the Bluetooth key and the vehicle is first determined. This facilitates comparison of the relative distance with multiple distance thresholds to determine the distance relationship between the relative distance and the sog distance threshold. Based on this distance relationship, a vehicle control strategy can be determined. The vehicle control strategy includes either an unlocking control strategy based on the number of unlocks or an unlocking control strategy based on the unlocking duration. This allows for vehicle control based on a first relationship between the number of unlocks and the first unlock threshold, and a distance relationship; or a second relationship between the unlocking duration and a duration threshold, and a distance relationship. This application can control the vehicle based on the number of unlocks or the unlocking duration, thereby avoiding the frequent unlocking and locking issues triggered when the user is stationary outside the vehicle with the Bluetooth key due to the susceptibility to interference and frequent changes in Bluetooth connectivity. This greatly improves the user experience and facilitates user travel.
[0009] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit the invention. Attached Figure Description
[0010] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.
[0011] Figure 1 This is an application scenario of a vehicle control method shown in an embodiment of this application.
[0012] Figure 2 This is a schematic flowchart illustrating a vehicle control method according to an embodiment of this application.
[0013] Figure 3 This is a schematic flowchart illustrating a vehicle control method according to another embodiment of this application.
[0014] Figure 4 This is a schematic flowchart illustrating a vehicle control method according to another embodiment of this application.
[0015] Figure 5 This is a schematic flowchart illustrating a vehicle control method according to another embodiment of this application.
[0016] Figure 6 This is a block diagram of a vehicle control device according to an embodiment of this application.
[0017] Figure 7 This is a hardware structure diagram of an electronic device according to an embodiment of this application.
[0018] The accompanying drawings have illustrated specific embodiments of the present invention, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the inventive concept in any way, but rather to illustrate the concept of the invention to those skilled in the art through specific embodiments. Detailed Implementation
[0019] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, they are provided to make this application more comprehensive and complete, and to fully convey the concept of the exemplary embodiments to those skilled in the art.
[0020] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0021] Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a thorough understanding of embodiments of this application. However, those skilled in the art will recognize that the technical solutions of this application can be practiced without one or more of the specific details, or other methods, apparatuses, steps, etc., can be employed. In other instances, well-known methods, apparatuses, implementations, or operations are not shown or described in detail to avoid obscuring various aspects of this application.
[0022] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices. The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily have to be performed in the described order. For example, some operations / steps can be decomposed, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.
[0023] Figure 1This application scenario illustrates a vehicle control method according to an embodiment of this application. The scenario includes a vehicle 110 and a Bluetooth key 120. The Bluetooth key 120 can be a virtual key on an electronic device communicatively connected to the vehicle 120, or a physical key with Bluetooth functionality. Optionally, the electronic processing unit of the vehicle 110 or a cloud server communicatively connected to the vehicle can determine the relative distance between the Bluetooth key 120 and the vehicle 110 based on the Bluetooth signals sent by the Bluetooth key 120 and received by the vehicle 120. Then, it determines the distance relationship between the relative distance and multiple distance thresholds, and further determines the control strategy for the vehicle 110 based on this distance relationship. Thus, after determining the control strategy for the vehicle 110, the vehicle 110 can be controlled based on the Bluetooth signals received by the vehicle 110 from the Bluetooth key 120 and the determination of the vehicle to be controlled.
[0024] Please see Figure 2 , Figure 2 This application illustrates a vehicle control method according to an embodiment of the present application. In a specific embodiment, the vehicle control method can be applied to, for example... Figure 6 The vehicle control device 600 and the electronic device 700 equipped with the vehicle control device 600 are shown. Figure 7 The specific process of this embodiment will be described below. Of course, it is understood that this method can be executed by a cloud server with computing power. The following will focus on... Figure 2 The process shown will be described in detail. The vehicle control method may specifically include the following steps:
[0025] Step 210: Determine the relative distance between the vehicle's Bluetooth key and the vehicle.
[0026] One approach is to first determine the duration of the unlock or lock command sent by the Bluetooth key, and then determine the duration of the Bluetooth signal transmission received by the vehicle. Based on this, the relative distance between the Bluetooth key and the vehicle can be determined. Optionally, the Bluetooth key can be a client device on an electronic device connected to the vehicle.
[0027] Optionally, the relative distance between the Bluetooth key and the vehicle can be determined by obtaining the vehicle's location information and the Bluetooth key's location information. The vehicle's location information refers to its coordinates in a world coordinate system, which can be determined through the vehicle's positioning system or an electronic device connected to the vehicle. Optionally, the Bluetooth key's location information can refer to the Bluetooth key's coordinates in a world coordinate system; alternatively, the Bluetooth key's location information can be determined using the vehicle's LiDAR.
[0028] Step 220: Determine the distance relationship between the relative distance and multiple distance thresholds.
[0029] One approach is to pre-set multiple distance thresholds based on the signal range of the Bluetooth key for unlocking and locking the vehicle. These thresholds may include distance thresholds for unlocking the vehicle, locking the vehicle, and disconnecting the vehicle. Optionally, these distance thresholds may be related to the signal transmission capabilities of the Bluetooth key. Therefore, the Bluetooth key can be pre-calibrated to determine these thresholds. Alternatively, the distance thresholds can be user-defined and saved to the Bluetooth key, allowing them to be retrieved directly from the Bluetooth key or from a cloud server connected to the Bluetooth key and the vehicle.
[0030] Optionally, since the Bluetooth key's unlocking or locking control of the vehicle is based on the change in the relative distance between the Bluetooth key and the vehicle, for example, when the Bluetooth key enters the area where the Bluetooth key can unlock the vehicle, the Bluetooth key sends an unlocking command to the vehicle. The vehicle wakes up the vehicle network according to the unlocking command sent by the Bluetooth key, thereby unlocking the vehicle. Therefore, the distance relationship between the relative distance between the Bluetooth key and the vehicle and multiple distance thresholds can be determined first, and then the vehicle can be unlocked or locked based on this distance relationship.
[0031] Step 230: Determine the control strategy of the vehicle based on the distance relationship, wherein the control strategy includes an unlock control strategy based on the number of unlocks or an unlock control strategy based on the unlock duration, wherein the unlock duration is the time from unlocking the vehicle to receiving the locking command from the Bluetooth key.
[0032] As one approach, distance relationships include relative distances less than the smallest of multiple distance thresholds, relative distances greater than the largest of multiple distance thresholds, and relative distances located between two of multiple distance thresholds.
[0033] Optionally, since the distance relationship indicates the relative distance between the Bluetooth key and the vehicle and the magnitude of multiple distance thresholds, it is possible to determine whether the Bluetooth key has entered the range for unlocking or locking the vehicle based on the distance relationship, thereby determining the vehicle's control strategy, ensuring the accuracy of the vehicle's control strategy, and also ensuring the accuracy of vehicle control.
[0034] Optionally, a control strategy based on the number of unlock attempts could be a strategy to limit the number of times the vehicle can be unlocked to prevent frequent unlocking attempts when the Bluetooth key is in an unavailable position. A control strategy based on the unlock duration could be a strategy to limit the number of times the vehicle can be locked within a certain timeframe after unlocking the vehicle using the Bluetooth key.
[0035] Step 240: If the control strategy is determined to be the unlock control strategy based on the number of unlocks, then a first size relationship between the number of unlocks of the vehicle and the first unlock threshold is determined, and the vehicle is unlocked according to the first size relationship and the distance relationship.
[0036] As one approach, to avoid frequent vehicle unlocking, the vehicle can be unlocked based on the number of times it has been unlocked. This means that the vehicle can be unlocked using an unlocking control strategy based on the number of unlocks.
[0037] Optionally, the unlock count refers to the number of times the vehicle unlocks based on the unlock command issued by the Bluetooth key while the Bluetooth key and the vehicle are connected. The relationship between the unlock count and the first-time count threshold includes unlock counts greater than the first-time count threshold, unlock counts equal to the first-time count threshold, and unlock counts less than the first-time count threshold.
[0038] Optionally, the number of times the vehicle can be unlocked while the Bluetooth key is connected to the vehicle can be preset, i.e., a first-time threshold can be set, so that the vehicle can be unlocked based on the first relationship between the number of unlocks and the first-time threshold and the distance relationship.
[0039] Optionally, the connection channels between the vehicle and different Bluetooth keys are independent, and the number of unlocking attempts made by each Bluetooth key to unlock the vehicle are also counted independently and are not accumulated.
[0040] In some embodiments, step 240 includes: if the control strategy is determined to be the unlock control strategy based on the number of unlocks, then determining the number of unlocks to be performed on the vehicle, and determining a first size relationship between the number of unlocks and the first number threshold; if the first size relationship is that the number of unlocks is greater than or equal to the first number threshold and the distance relationship is that the relative distance is greater than the first distance threshold and less than the second distance threshold, then stopping the unlock control on the vehicle; if the first size relationship is that the number of unlocks is less than the first number threshold and the distance relationship is that the relative distance is greater than the first distance threshold and less than the second distance threshold, then performing unlock control on the vehicle.
[0041] As one approach, to avoid frequent vehicle unlocking when the relative distance between the Bluetooth key and the vehicle is between a first distance threshold and a second distance threshold, the vehicle can be unlocked based on the number of unlocks. This means that the vehicle can be unlocked using an unlocking control strategy based on the number of unlocks.
[0042] Optionally, if the Bluetooth key disconnects from the vehicle, the unlock count is reset to zero, and the count restarts after the Bluetooth key reconnects to the vehicle. If the vehicle door is opened while the Bluetooth key is connected to the vehicle, the unlock count for all Bluetooth key connection channels is reset to zero, and the count restarts when the vehicle is in sleep mode. If the vehicle's network is activated, the unlock count for all Bluetooth key connection channels is reset to zero. If the vehicle is still in sleep mode and the Bluetooth key is connected to the vehicle, the unlock count is incremented.
[0043] Optionally, before unlocking the vehicle according to the unlock control strategy based on the number of unlock attempts, the position of the Bluetooth key in the corresponding channel can be detected, and it can be determined whether the Bluetooth key has entered the unlock area from the locking area based on the position of the Bluetooth key, thereby triggering the vehicle's proximity unlock function. The locking area can be the region between a second distance threshold and a third distance threshold, and the unlock area can be the region from the vehicle's position to the second distance threshold. The unlock and locking areas can be set according to actual needs and are not specifically limited here.
[0044] Step 250: If the control strategy is determined to be the unlocking control strategy based on unlocking duration, then a second size relationship between the unlocking duration of the vehicle and the duration threshold is determined, and the vehicle is unlocked according to the second size relationship and the distance relationship.
[0045] As a method, to avoid locking the vehicle immediately after unlocking based on the locking command sent by the Bluetooth key, the decision to lock the vehicle can be made based on the duration of unlocking.
[0046] Optionally, after determining that the user is moving away from the vehicle with the Bluetooth key and attempts to unlock the vehicle, the time when the vehicle receives the locking command and the time when the vehicle is unlocked are determined, thereby determining the vehicle's unlocking duration. Optionally, this unlocking duration can be 3 seconds or other durations, which can be set according to actual needs and are not specifically limited here. The relationship between the unlocking duration and the duration threshold includes unlocking duration greater than the duration threshold, unlocking duration equal to the duration threshold, and unlocking duration less than the duration threshold.
[0047] In some embodiments, step 250 includes: determining the unlocking duration of the vehicle, the unlocking duration being the time from unlocking the vehicle to receiving the locking command from the Bluetooth key; if the unlocking duration is greater than a duration threshold and the relative distance is greater than a second distance threshold, then controlling the vehicle to perform a locking operation according to the locking command; or if the unlocking duration is less than or equal to the duration threshold and the relative distance is greater than the second distance threshold, then not controlling the vehicle to perform a locking operation.
[0048] As a method, to avoid locking the vehicle immediately after unlocking based on the locking command sent by the Bluetooth key, the decision to lock the vehicle can be made based on the duration of unlocking.
[0049] Optionally, after determining that the user is moving away from the vehicle with the Bluetooth key and attempts to unlock the vehicle, the time it takes for the vehicle to receive the locking command and the time it takes to unlock the vehicle are determined, thereby determining the vehicle's unlocking duration. Optionally, this unlocking duration can be 3 seconds or other durations, which can be set according to actual needs and are not specifically limited here.
[0050] Optionally, if the unlocking time exceeds the duration threshold but the relative distance is less than the second distance threshold, the vehicle can be locked according to the locking command sent by the Bluetooth key received by the vehicle; if the unlocking time is less than or equal to the duration threshold but the relative distance is less than the second distance threshold, the vehicle will not be locked.
[0051] In the embodiments of this application, the relative distance between the Bluetooth key and the vehicle is first determined. This facilitates comparison of the relative distance with multiple distance thresholds to determine the distance relationship between the relative distance and the sog distance threshold. The vehicle control strategy can then be determined based on this distance relationship. The vehicle control strategy includes an unlocking control strategy based on the number of unlocks or an unlocking control strategy based on the unlocking duration. This allows for vehicle control based on a first relationship between the number of unlocks and the first unlock threshold, and a distance relationship; or it allows for vehicle control based on a second relationship between the unlocking duration and the duration threshold, and a distance relationship. This application can control the vehicle based on the number of unlocks or the unlocking duration, thereby avoiding the frequent unlocking and locking phenomena triggered when the user is stationary outside the vehicle while carrying the Bluetooth key due to the susceptibility to interference and frequent changes in Bluetooth connectivity. This greatly improves the user experience and facilitates user travel.
[0052] Please see Figure 3 , Figure 3 This application illustrates a vehicle control method according to an embodiment of the present application. The following will focus on... Figure 3The process shown is described in detail. The multiple distance thresholds include a first distance threshold, a second distance threshold, and a third distance threshold. The vehicle control method may specifically include the following steps:
[0053] Step 310: Determine the relative distance between the vehicle's Bluetooth key and the vehicle.
[0054] Step 320: Determine the distance relationship between the relative distance and multiple distance thresholds.
[0055] For a detailed description of steps 310 and 320, please refer to steps 210 and 220, which will not be repeated here.
[0056] Step 330: If the distance relationship indicates that the relative distance is greater than a first distance threshold and less than a second distance threshold, then the control strategy is determined to be an unlocking control strategy, and the vehicle is unlocked according to the unlocking control strategy.
[0057] As one approach, when the relative distance is determined to be greater than a first distance threshold and less than a second distance threshold, it can be determined that the Bluetooth key is within the range corresponding to unlocking the vehicle. Within this range, the control strategy for the vehicle can be determined as an unlocking control strategy. Under this unlocking control strategy, the vehicle can wake up its network via the unlock command sent by the received Bluetooth key, and then the vehicle can be unlocked while it is awake. The first distance threshold can be a very close distance to the vehicle, and the second distance threshold can be a user-defined distance threshold for the Bluetooth key to unlock the vehicle.
[0058] Optionally, to prevent users from unlocking the vehicle by carrying the Bluetooth key from inside the vehicle to outside the vehicle and moving close to the unlocking area of the Bluetooth key, the vehicle will not be unlocked when the user carries the Bluetooth key from inside the vehicle to outside the vehicle and moves between the first distance threshold and the second distance threshold.
[0059] Step 340: If the distance relationship indicates that the relative distance is greater than the second distance threshold and less than the third distance threshold, then the control strategy is determined to be a locking control strategy, and the vehicle is locked according to the locking control strategy.
[0060] As one approach, when the relative distance is determined to be greater than a second distance threshold and less than a third distance threshold, it can be determined that the Bluetooth key is within the range corresponding to locking the vehicle. Within this range, the control strategy for the vehicle can be determined to be a locking control strategy. Furthermore, under this locking control strategy, the vehicle can control its network to enter sleep mode via the locking command sent by the received Bluetooth key, thereby locking the vehicle while it is in sleep mode. The third distance threshold can be a user-defined distance threshold for the Bluetooth key to lock the vehicle.
[0061] Optionally, to prevent users from locking the vehicle by carrying the Bluetooth key from the second distance threshold to the first distance threshold and from the unlocking area inside the vehicle, the vehicle will not be locked when the user leaves the area of the third distance threshold outside the vehicle while carrying the Bluetooth key and moves between the second distance threshold and the first distance threshold.
[0062] In some embodiments, after step 310, the method includes: if the relative distance indicates that the Bluetooth key is moving towards the vehicle within the second distance threshold range, then controlling the vehicle not to perform a locking operation; if the relative distance indicates that the Bluetooth key is moving away from the vehicle, then controlling the vehicle not to perform an unlocking operation.
[0063] In one approach, after determining the relative distance between the Bluetooth key and the vehicle, the direction of movement of the Bluetooth key can be determined to determine whether the vehicle's proximity unlocking function is triggered. The vehicle's proximity unlocking function refers to the function of unlocking the vehicle when the Bluetooth key enters a designated area and approaches the vehicle.
[0064] Optionally, when the relative distance indicates that the Bluetooth key is moving towards the vehicle within the second distance threshold range, it can be determined that the Bluetooth key leaves the area corresponding to the locking control and moves towards the vehicle until the Bluetooth key enters the vehicle. At this time, in order to avoid the Bluetooth key frequently performing unlocking and locking control on the vehicle during this process, it can be determined that there is no need to control the vehicle to perform locking operation, which can be achieved by ignoring the Bluetooth commands sent by the Bluetooth key.
[0065] In other embodiments, if the relative distance indicates that the Bluetooth key moves away from the vehicle as it approaches the vehicle, and the relative distance is greater than a third distance threshold, then the vehicle is controlled to perform a locking operation according to the locking command sent by the Bluetooth command.
[0066] Optionally, when the relative distance indicates that the Bluetooth key is moving towards the vehicle, it can be determined that the user is carrying the Bluetooth key from inside the vehicle to outside the vehicle and away from the vehicle. Therefore, it can be determined that the user does not need to enter the vehicle again during this process. In this case, in order to avoid the Bluetooth key frequently controlling the vehicle to perform unlocking and locking operations, it can be determined that it is not necessary to control the vehicle to perform unlocking operations according to the unlocking command sent by the Bluetooth key. This can be achieved by ignoring the Bluetooth command sent by the Bluetooth key.
[0067] In other embodiments, if the relative distance indicates that the Bluetooth key is moving back towards the vehicle while moving away from it, and the relative distance is less than or equal to a second distance threshold, then the vehicle is controlled to unlock according to the unlock command sent by the Bluetooth command.
[0068] In this embodiment, the vehicle control strategy is determined by comparing the relative distance between the Bluetooth key and the vehicle with a first distance threshold, a second distance threshold, and a third distance threshold. This allows the vehicle to be controlled as an unlocking strategy when the relative distance is greater than the first distance threshold but less than the second distance threshold, and as a locking strategy when the relative distance is greater than the second distance threshold but less than the third distance threshold. This enables the vehicle to be unlocked or locked based on the unlocking strategy, avoiding inaccurate positioning due to Bluetooth characteristics and improving the accuracy of vehicle control.
[0069] Please see Figure 4 , Figure 4 This application illustrates a vehicle control method according to an embodiment of the present application. The following will focus on... Figure 4 The process shown will be described in detail. The vehicle control method may specifically include the following steps:
[0070] Step 410: Determine the relative distance between the vehicle's Bluetooth key and the vehicle.
[0071] For a detailed description of step 410, please refer to step 210, which will not be repeated here.
[0072] Step 420: Determine whether the Bluetooth key is within the target range based on the relative distance. The target range is the range corresponding to the farthest distance between the Bluetooth key and the vehicle when they are in a connected state.
[0073] As one approach, the target range can be a range greater than the third distance threshold. To ensure the vehicle can receive the locking or unlocking commands sent by the Bluetooth key, the Bluetooth key and the vehicle must be connected. Therefore, determining whether the relative distance between the Bluetooth key and the vehicle is within the target range can confirm the connection between them. Optionally, the Bluetooth key can be pre-calibrated to determine the target range.
[0074] Step 430: If the Bluetooth key is not within the target range, then the number of times the vehicle is locked is controlled to be less than the second threshold.
[0075] As one approach, when it is determined that the Bluetooth key is not within the target range, it can be determined that the Bluetooth key is disconnected from the vehicle. At this point, it can be determined that the user is no longer near the vehicle and does not need to use it. Therefore, it can be determined that the vehicle needs to be locked. However, the number of times the vehicle is locked should be less than the second threshold. Thus, when it is determined that the Bluetooth key is not within the target range, the number of times the vehicle is locked can be controlled to be less than the second threshold. The second threshold can be 1 or other values, and can be set according to actual needs.
[0076] In this embodiment, the unlocking or locking control of the vehicle is determined by determining whether the relative distance between the vehicle and the Bluetooth key is within the target range corresponding to the farthest distance between the Bluetooth key and the vehicle when they are connected. This ensures the number of times the Bluetooth key controls the vehicle to lock from the connected state to the disconnected state, thereby achieving the number of locking operations during the period from when the user moves away from the vehicle to when the Bluetooth key disconnects, ensuring vehicle security and improving user experience.
[0077] Please see Figure 5 , Figure 5 This application illustrates a vehicle control method according to an embodiment of the present application. The following will focus on... Figure 5 The process shown will be described in detail. The vehicle control method may specifically include the following steps:
[0078] Step 510: Determine the relative distance between the vehicle's Bluetooth key and the vehicle.
[0079] Step 520: Determine the distance relationship between the relative distance and multiple distance thresholds.
[0080] For a detailed description of steps 510 and 520, please refer to steps 210 and 220, which will not be repeated here.
[0081] Step 530: Determine the control strategy of the vehicle based on the distance relationship, and obtain the operating parameters of the vehicle.
[0082] As one approach, to ensure that the vehicle can be controlled according to a predetermined control strategy, it is necessary to determine the vehicle's operating parameters. Control of the vehicle can only proceed according to the predetermined control strategy when these operating parameters meet preset conditions. Optionally, the operating parameters may include the vehicle's power supply parameters, driving parameters, door control parameters, and mode parameters, etc.
[0083] Step 540: Determine the vehicle's overall power status, the vehicle's operating mode, and the vehicle's door status based on the operating parameters.
[0084] As one method, the vehicle's overall power status includes vehicle power-off, vehicle power-on, and power supply only to the entertainment system, etc., and the vehicle door status includes open and closed. The vehicle's operating modes include driving mode, transport mode, leisure mode, and sleep mode. Among them, transport mode refers to the mode in which the vehicle is placed on the transport vehicle while being transported to various shops. When the vehicle is in transport mode, in order to ensure vehicle safety, the vehicle cannot be unlocked or locked, avoiding safety issues caused by unlocking or locking the vehicle during transportation.
[0085] Step 550: If it is determined that the door status indicates that all doors of the vehicle are closed, the vehicle power status indicates that the vehicle is powered down, or the operating mode is non-transportation mode, then the vehicle is controlled according to the control strategy.
[0086] In one approach, to ensure the safety of vehicle unlocking or locking operations, it is possible to determine whether the vehicle's operating parameters meet preset conditions. If the operating parameters meet the preset conditions, the vehicle can be controlled according to a predetermined vehicle control strategy.
[0087] Optionally, when it is determined that all doors of the vehicle are closed, the CAN network controlling the vehicle can be put into sleep mode; when it is determined that the vehicle's power supply is in a state of vehicle power-off, the CAN network controlling the vehicle's power supply can be put into sleep mode; when it is determined that the vehicle's operating mode is in non-transportation mode, the vehicle can be unlocked or locked at this time.
[0088] Optionally, the vehicle's armed status can be determined based on the vehicle's operating parameters. The armed status includes being disarmed and being armed. When the vehicle is determined to be disarmed, the vehicle can be locked according to the locking command sent by the Bluetooth key. If the vehicle is determined to be armed, the vehicle can be unlocked according to the unlocking command sent by the Bluetooth key.
[0089] Optionally, if the vehicle's control strategy is determined to be an unlock control strategy, it can be determined whether the vehicle's door status has switched from the intention to open door to all doors being closed. If so, the vehicle can be controlled to perform unlock or lock operations based on the unlock or lock commands sent by the received Bluetooth key.
[0090] In this embodiment, the vehicle's overall power status, operating mode, and door status are determined based on the acquired vehicle operating parameters to determine whether they meet preset conditions. Thus, when the vehicle's overall power status is in a power-off state, the vehicle's operating mode is in a non-transportation mode, and all vehicle doors are closed, the vehicle is controlled according to the determined vehicle control strategy, thereby ensuring the safety of vehicle control.
[0091] Figure 6 This is a block diagram of a vehicle control device according to an embodiment of this application, such as... Figure 6 As shown, the vehicle control device 600 includes: a relative distance determination module 610, a distance relationship determination module 620, a control strategy determination module 630, a first control module 640, and a second control module 650.
[0092] A relative distance determination module 610 is used to determine the relative distance between the vehicle's Bluetooth key and the vehicle; a distance relationship determination module 620 is used to determine the distance relationship between the relative distance and multiple distance thresholds; a control strategy module 630 is used to determine the vehicle's control strategy based on the distance relationship, wherein the control strategy includes an unlocking control strategy based on the number of unlocks or an unlocking control strategy based on the unlocking duration, the unlocking duration being the time from unlocking the vehicle to receiving a locking command from the Bluetooth key; a first control module 640 is used to, if the control strategy is determined to be the unlocking control strategy based on the number of unlocks, determine a first relationship between the number of unlocks and a first unlock threshold, and perform unlocking control on the vehicle based on the first relationship and the distance relationship; a second control module 650 is used to, if the control strategy is determined to be the unlocking control strategy based on the unlocking duration, determine a second relationship between the unlocking duration and a duration threshold, and perform unlocking control on the vehicle based on the second relationship and the distance relationship.
[0093] In some embodiments, the plurality of distance thresholds includes a first distance threshold, a second distance threshold, and a third distance threshold. The control strategy determination module 630 includes: an unlock control unit, configured to determine the control strategy as an unlock control strategy if the distance relationship indicates that the relative distance is greater than the first distance threshold and less than the second distance threshold; or a lock control unit, configured to determine the control strategy as a lock control strategy if the distance relationship indicates that the relative distance is greater than the second distance threshold and less than the third distance threshold.
[0094] In some embodiments, the first control module 640 includes: an unlock count determination unit, configured to determine the number of times to unlock the vehicle if the control strategy is determined to be the unlock control strategy based on the number of unlock counts, and to determine a first size relationship between the number of unlock counts and a first count threshold; a first control unit, configured to stop unlocking the vehicle if the first size relationship is that the number of unlock counts is greater than or equal to the first count threshold and the distance relationship is that the relative distance is greater than the first distance threshold and less than the second distance threshold; or a second control unit, configured to unlock the vehicle if the first size relationship is that the number of unlock counts is less than the first count threshold and the distance relationship is that the relative distance is greater than the first distance threshold and less than the second distance threshold.
[0095] In some embodiments, the second control module 650 includes: an unlock duration determination unit, configured to determine the unlock duration of the vehicle and determine a second size relationship between the unlock duration and the duration threshold if the control strategy is determined to be the unlock control strategy based on the unlock duration; a third control unit, configured to control the vehicle to perform a locking operation according to the locking command if the second size relationship is that the unlock duration is greater than the duration threshold and the distance relationship is that the relative distance is greater than the second distance threshold; or a fourth control unit, configured to not control the vehicle to perform a locking operation if the second size relationship is that the unlock duration is less than or equal to the duration threshold and the distance relationship is that the relative distance is greater than the second distance threshold.
[0096] In other embodiments, the control strategy determination module 630 further includes: a fifth control unit, configured to control the vehicle not to perform a locking operation if the relative distance indicates that the Bluetooth key is moving towards the vehicle within the second distance threshold range; and a sixth control unit, configured to control the vehicle not to perform an unlocking operation if the relative distance indicates that the Bluetooth key is moving away from the vehicle.
[0097] In some embodiments, the vehicle control device 600 further includes: a determining module, configured to determine whether the Bluetooth key is within a target range based on the relative distance, wherein the target range is the range corresponding to the furthest distance between the Bluetooth key and the vehicle in a connected state; and a locking control module, configured to control the number of times the locking operation is performed on the vehicle to be less than a second threshold if the Bluetooth key is not within the target range.
[0098] In some embodiments, the control module 630 further includes: an operating parameter determination unit, configured to determine the control strategy of the vehicle based on the distance relationship and acquire the operating parameters of the vehicle; a determination unit, configured to determine the vehicle's overall power status, the vehicle's operating mode, and the vehicle's door status based on the operating parameters; and a fifth control unit, configured to control the vehicle according to the control strategy if the door status indicates that all doors of the vehicle are closed, the vehicle power status indicates that the vehicle is in a power-off state, or the operating mode is a non-transportation mode.
[0099] According to one aspect of the embodiments of this application, an electronic device is also provided, such as... Figure 7 As shown, the vehicle 700 includes a processor 710 and one or more memories 720. The one or more memories 720 are used to store program instructions executed by the processor 710. When the processor 710 executes the program instructions, it implements the vehicle control method described above.
[0100] Furthermore, the processor 710 may include one or more processing cores. The processor 710 runs or executes instructions, programs, code sets, or instruction sets stored in the memory 720, and retrieves data stored in the memory 720. Optionally, the processor 710 may be implemented using at least one hardware form selected from Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 710 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor and may be implemented using a separate communication chip.
[0101] According to one aspect of this application, a computer-readable storage medium is also provided, which may be included in the electronic device described in the above embodiments; or it may exist independently and not assembled into the electronic device. The computer-readable storage medium carries computer-readable instructions that, when executed by a processor, implement the methods in any of the above embodiments.
[0102] It should be noted that the computer-readable medium shown in the embodiments of this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such transmitted data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.
[0103] The units described in the embodiments of this application can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself.
[0104] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0105] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein.
[0106] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A method for controlling a vehicle, characterized in that, The method includes: Determine the relative distance between the vehicle's Bluetooth key and the vehicle; Determine the distance relationship between the relative distance and multiple distance thresholds; The control strategy of the vehicle is determined based on the distance relationship, wherein the control strategy includes an unlocking control strategy based on the number of unlocks or a locking control strategy based on the unlocking duration, wherein the unlocking duration is the time from when the vehicle is unlocked to when it receives the locking command from the Bluetooth key; If the control strategy is determined to be the unlock control strategy based on the number of unlocks, then a first size relationship between the number of unlocks of the vehicle and the first unlock threshold is determined, and the vehicle is unlocked according to the first size relationship and the distance relationship; If the control strategy is determined to be the locking control strategy based on unlocking time, then a second size relationship between the unlocking time of the vehicle and the time threshold is determined, and the vehicle is locked according to the second size relationship and the distance relationship. The plurality of distance thresholds includes a first distance threshold, a second distance threshold, and a third distance threshold. Determining the vehicle control strategy based on the distance relationship includes: If the distance relationship indicates that the relative distance is greater than a first distance threshold and less than a second distance threshold, then the control strategy is determined to be an unlocking control strategy; or If the distance relationship indicates that the relative distance is greater than the second distance threshold and less than the third distance threshold, then the control strategy is determined to be a lockout control strategy.
2. The method according to claim 1, characterized in that, If the control strategy is determined to be the unlock control strategy based on the number of unlocks, then a first size relationship is determined between the number of unlocks and the first unlock threshold of the vehicle, and the vehicle is controlled according to the first size relationship and the distance relationship, including: If the control strategy is determined to be the unlock control strategy based on the number of unlocks, then the number of unlocks to unlock the vehicle is determined, and a first size relationship is determined between the number of unlocks and the first number threshold. If the first size relationship is that the number of unlocks is greater than or equal to the first number threshold and the distance relationship is that the relative distance is greater than the first distance threshold and less than the second distance threshold, then the unlocking control of the vehicle is stopped; or If the first size relationship is that the number of unlocks is less than the first number threshold and the distance relationship is that the relative distance is greater than the first distance threshold and less than the second distance threshold, then the vehicle is unlocked.
3. The method according to claim 1, characterized in that, If the control strategy is determined to be the locking control strategy based on unlocking duration, then determining the second magnitude relationship between the vehicle's unlocking duration and the duration threshold, and performing locking control on the vehicle according to the second magnitude relationship and the distance relationship includes: If the control strategy is determined to be the locking control strategy based on unlocking duration, then the unlocking duration of the vehicle is determined, and a second size relationship between the unlocking duration and the duration threshold is determined; If the second size relationship is that the unlocking duration is greater than the duration threshold and the distance relationship is that the relative distance is greater than the second distance threshold, then the vehicle is controlled to perform a locking operation according to the locking command; or If the second size relationship is that the unlocking time is less than or equal to the time threshold and the distance relationship is that the relative distance is greater than the second distance threshold, then the vehicle is not controlled to perform a locking operation.
4. The method according to claim 1, characterized in that, Determining the vehicle control strategy based on the distance relationship includes: If the relative distance indicates that the Bluetooth key is moving towards the vehicle within the second distance threshold range, then the vehicle is controlled not to perform a locking operation. If the relative distance indicates that the Bluetooth key is moving away from the vehicle, then the vehicle is controlled not to unlock.
5. The method according to any one of claims 1-4, characterized in that, After determining the relative distance between the vehicle's Bluetooth key and the vehicle, the method further includes: The relative distance is used to determine whether the Bluetooth key is within the target range, where the target range is the range corresponding to the farthest distance between the Bluetooth key and the vehicle when they are in a connected state. If the Bluetooth key is not within the target range, the number of times the vehicle is locked is less than the second threshold.
6. The method according to any one of claims 1-4, characterized in that, Determining the vehicle control strategy based on the distance relationship includes: The control strategy for the vehicle is determined based on the distance relationship, and the operating parameters of the vehicle are obtained. The vehicle's overall power status, operating mode, and door status are determined based on the operating parameters. If it is determined that the door status indicates that all doors of the vehicle are closed, the vehicle power status indicates that the vehicle is powered down, or the operating mode is non-transportation mode, then the vehicle is controlled according to the control strategy.
7. A vehicle control device, characterized in that, The device includes: A relative distance determination module is used to determine the relative distance between the vehicle's Bluetooth key and the vehicle. A distance relationship determination module is used to determine the distance relationship between the relative distance and multiple distance thresholds; A control strategy determination module is used to determine the control strategy of the vehicle based on the distance relationship, wherein the control strategy includes an unlocking control strategy based on the number of unlocks or a locking control strategy based on the unlocking duration, wherein the unlocking duration is the time from unlocking the vehicle to receiving the locking command from the Bluetooth key; The first control module is configured to, if the control strategy is determined to be the unlock control strategy based on the number of unlocks, determine a first size relationship between the number of unlocks of the vehicle and the first unlock threshold, and perform unlock control on the vehicle according to the first size relationship and the distance relationship; The second control module is used to determine a second size relationship between the unlocking time and the time threshold of the vehicle if the control strategy is determined to be the locking control strategy based on unlocking time, and to perform locking control on the vehicle according to the second size relationship and the distance relationship. The plurality of distance thresholds includes a first distance threshold, a second distance threshold, and a third distance threshold. Determining the vehicle control strategy based on the distance relationship includes: If the distance relationship indicates that the relative distance is greater than a first distance threshold and less than a second distance threshold, then the control strategy is determined to be an unlocking control strategy; or If the distance relationship indicates that the relative distance is greater than the second distance threshold and less than the third distance threshold, then the control strategy is determined to be a lockout control strategy.
8. An electronic device, characterized in that, The electronic device includes: processor; A memory storing computer-readable instructions that, when executed by the processor, implement the method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium contains program code that, when invoked by a processor, causes the processor to perform the method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Keyless entry system and control method thereof
CN111674358A
Electronic lock control method of socket type charging pile, charging pile and charging device
CN114792913A