Communication connection method and device for vehicle and digital key, equipment and storage medium
By dynamically adjusting the connection parameters and broadcast parameters between the vehicle Bluetooth device and the digital key, the problem of difficulty in connecting the vehicle and the digital key at a long distance is solved, and a stable Bluetooth connection and an optimized remote control operation experience is achieved.
Patent Information
- Application Number
- CN202411772958.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-04
- Publication Date
- 2025-03-07
- Estimated Expiration
- 2044-12-04
AI Technical Summary
It is difficult to connect the vehicle and the digital key at a long distance, which affects the user's remote control operation experience.
Optimize the connection distance by dynamic adjustment of the connection parameters and broadcast parameters between the on-board Bluetooth device and the digital key to ensure a stable communication connection while connected or unconnected.
The connection distance between the vehicle and the digital key is increased, the connection situation is optimized, and the stability of Bluetooth connection and the user's remote control operation experience is ensured.
Smart Images

Figure CN119580455A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle communication technology, and in particular to a method and device for communication connection between a vehicle and a digital key, an electronic device, and a storage medium. Background Art
[0002] With the popularity of digital car keys, the third generation of digital keys (NFC+BLE+UWB) has made great progress in smart cars. Among them, mobile phones, watches / bracelets as car keys are a kind of smart keys based on BLE (Bluetooth Low Energy) connection.
[0003] When the user approaches the vehicle with the key, the key needs to quickly establish a connection with the vehicle in order to measure the distance and realize operations such as key unlocking, locking, opening and closing the tailgate, etc. However, when the vehicle is far away from the user, for example, the user needs to remotely unlock the vehicle at home (more than a few floors), then the connection needs to be achieved at a longer distance. Summary of the invention
[0004] An embodiment of the present application provides a communication connection method between a vehicle and a digital key to solve the problem that it is difficult to connect the vehicle and the key at a long distance.
[0005] Correspondingly, an embodiment of the present application also provides a communication connection device between a vehicle and a digital key, an electronic device and a storage medium to ensure the implementation and application of the above method.
[0006] In order to solve the above problems, an embodiment of the present application discloses a communication connection method between a vehicle and a digital key, which is applied to a vehicle, wherein the vehicle includes an in-vehicle Bluetooth device, and the vehicle communicates with the digital key within a connection distance through the in-vehicle Bluetooth device. The method includes:
[0007] Determine the connection status between the vehicle-mounted Bluetooth device and the digital key;
[0008] When the connection state is connected, obtaining first target data according to connection parameters between the in-vehicle Bluetooth device and the digital key;
[0009] When the connection state is unconnected, obtaining second target data according to the broadcast parameters of the vehicle-mounted Bluetooth device;
[0010] The connection distance is adjusted according to the first target data so that the vehicle-mounted Bluetooth device and the digital key maintain a communication connection when they are connected; or, the connection distance is adjusted according to the second target data so that the vehicle-mounted Bluetooth device and the digital key establish a communication connection when they are not connected.
[0011] Optionally, the connection parameters include: initial connection power and initial connection interval between the in-vehicle Bluetooth device and the digital key; when the connection state is connected, obtaining the first target data according to the connection parameters between the in-vehicle Bluetooth device and the digital key includes:
[0012] When the connection state is connected, determining a connection field strength value and a preset connection field strength threshold between the in-vehicle Bluetooth device and the digital key, and a packet loss rate and a preset packet loss threshold of the digital key;
[0013] If the packet loss rate exceeds the preset packet loss threshold, calculating first data according to the connection field strength value, the preset connection field strength threshold, the packet loss rate and a first preset value;
[0014] Calculate the target connection power according to the first data and the initial connection power;
[0015] Calculate a target connection interval according to the first data and the initial connection interval;
[0016] The target connection power and the target connection interval are used as the first target data.
[0017] Optionally, when the connection state is not connected, obtaining the second target data according to the broadcast parameter of the vehicle-mounted Bluetooth device includes:
[0018] When the connection state is unconnected, transmitting a broadcast signal through the vehicle-mounted Bluetooth device, and monitoring whether the broadcast signal is scanned by the digital key;
[0019] If it is detected that the broadcast signal is scanned by the digital key, an initial scanning number is determined; the initial scanning number is the number of times the broadcast signal is scanned by the digital key within a preset time;
[0020] The second target data is obtained according to the initial scanning number and the broadcast parameter of the vehicle-mounted Bluetooth device.
[0021] Optionally, the broadcast parameters include: an initial broadcast power and an initial broadcast interval of the in-vehicle Bluetooth device; and obtaining the second target data according to the initial scan times and the broadcast parameters of the in-vehicle Bluetooth device includes:
[0022] Calculate second data according to the initial scanning number and the second preset value;
[0023] Calculating a target broadcast power according to the second data and the initial broadcast power;
[0024] Calculate a target broadcast interval according to the second data and the initial broadcast interval;
[0025] The target broadcast power and the target broadcast interval are used as the second target data.
[0026] The embodiment of the present application also discloses a communication connection method between a vehicle and a digital key, which is applied to a digital key, wherein the digital key includes a key Bluetooth device, and the digital key is communicated with the vehicle within a connection distance through the key Bluetooth device. The method includes:
[0027] When the key Bluetooth device is not connected to the vehicle, obtaining third target data according to a scanning parameter of the key Bluetooth device;
[0028] The connection distance is adjusted according to the third target data so that the key Bluetooth device establishes a communication connection with the vehicle.
[0029] Optionally, the scanning parameter includes an initial scanning window of the key Bluetooth device, and obtaining the third target data according to the scanning parameter of the key Bluetooth device when the key Bluetooth device is not connected to the vehicle includes:
[0030] When the key Bluetooth device is not connected to the vehicle, determining a scanning field strength value of the key Bluetooth device and a preset scanning field strength threshold;
[0031] Calculate third data according to the scanning field strength value and the preset scanning field strength threshold;
[0032] The third target data is calculated according to the third data and the initial scanning window.
[0033] The embodiment of the present application further discloses a communication connection device between a vehicle and a digital key, which is applied to a vehicle, wherein the vehicle includes an in-vehicle Bluetooth device, and the vehicle communicates with the digital key within a connection distance through the in-vehicle Bluetooth device, and the device includes:
[0034] A connection status determination module, used to determine the connection status between the vehicle-mounted Bluetooth device and the digital key;
[0035] A connected state module, used for obtaining first target data according to connection parameters between the vehicle-mounted Bluetooth device and the digital key when the connection state is connected;
[0036] An unconnected state module, used for obtaining second target data according to the broadcast parameters of the vehicle-mounted Bluetooth device when the connection state is unconnected;
[0037] A first adjustment module is used to adjust the connection distance according to the first target data so that the vehicle-mounted Bluetooth device and the digital key maintain a communication connection in a connected state; or a second adjustment module is used to adjust the connection distance according to the second target data so that the vehicle-mounted Bluetooth device and the digital key establish a communication connection in a disconnected state.
[0038] The embodiment of the present application further discloses a communication connection device between a vehicle and a digital key, which is applied to a digital key, wherein the digital key includes a key Bluetooth device, and the digital key is communicated with the vehicle within a connection distance through the key Bluetooth device, and the device includes:
[0039] A scanning parameter adjustment module, used for obtaining third target data according to the scanning parameters of the key Bluetooth device when the key Bluetooth device is not connected to the vehicle;
[0040] The second adjustment module is used to adjust the connection distance according to the third target data so that the key Bluetooth device establishes a communication connection with the vehicle.
[0041] An embodiment of the present application also discloses an electronic device, including: a processor; and a memory, on which executable code is stored. When the executable code is executed, the processor executes the communication connection method between a vehicle and a digital key as described in any one of the embodiments of the present application.
[0042] The embodiments of the present application also disclose one or more machine-readable media on which executable codes are stored. When the executable codes are executed, the processor executes the communication connection method between the vehicle and the digital key as described in any one of the embodiments of the present application.
[0043] Compared with the prior art, the embodiments of the present application have the following advantages:
[0044] In an embodiment of the present application, the connection status between the vehicle-mounted Bluetooth device and the digital key is determined; when the connection status is connected, first target data is obtained according to the connection parameters between the vehicle-mounted Bluetooth device and the digital key; when the connection status is disconnected, second target data is obtained according to the broadcast parameters of the vehicle-mounted Bluetooth device; the connection distance is adjusted according to the first target data so that the vehicle-mounted Bluetooth device and the digital key maintain a communication connection in the connected state; or, the connection distance is adjusted according to the second target data so that the vehicle-mounted Bluetooth device and the digital key establish a communication connection in the disconnected state. When the vehicle in the embodiment of the present application is connected to the digital key, the connection distance can be increased by adjusting the connection parameters between the vehicle-mounted Bluetooth device and the digital key, and the connection between the vehicle-mounted Bluetooth device and the digital key can be optimized, so that the user (digital key) can remain connected to the vehicle at a longer distance, thereby ensuring the stability of the Bluetooth connection; when not connected to the digital key, the connection distance can also be increased by adjusting the broadcast parameters of the vehicle-mounted Bluetooth device, so that the user (digital key) can be connected to the vehicle at a longer distance, thereby increasing the connection probability between the vehicle-mounted Bluetooth device and the digital key, and allowing the vehicle-mounted Bluetooth device and the digital key to be connected.
[0045] In the embodiment of the present application, when the key Bluetooth device is not connected to the vehicle, the third target data is obtained according to the scanning parameters of the key Bluetooth device; the connection distance is adjusted according to the third target data so that the key Bluetooth device and the vehicle establish a communication connection. In the embodiment of the present application, when the digital key is not connected to the vehicle, the scanning parameters of the digital key are adjusted to improve the scanning efficiency, increase the chance of detecting the vehicle broadcast signal, and thus increase the connection probability. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 It is a flowchart of a method for communication connection between a vehicle and a digital key according to an embodiment of the present application;
[0047] Figure 2 is a flowchart of another embodiment of a method for communication connection between a vehicle and a digital key of the present application;
[0048] Figure 3 It is a structural block diagram of an embodiment of a communication connection device between a vehicle and a digital key of the present application;
[0049] Figure 4 It is a structural block diagram of another embodiment of a communication connection device between a vehicle and a digital key of the present application;
[0050] Figure 5It is a schematic diagram of the structure of a device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0051] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0052] Reference Figure 1 , is a flowchart of a method for communication connection between a vehicle and a digital key of the present application, which is applied to a vehicle, wherein the vehicle includes an in-vehicle Bluetooth device, and the vehicle communicates with the digital key within a connection distance through the in-vehicle Bluetooth device, including the following steps:
[0053] Step 101, determining the connection status between the vehicle-mounted Bluetooth device and the digital key;
[0054] In an embodiment of the present application, it can be determined whether a connection is established with the digital key through the API or callback function of the vehicle-mounted Bluetooth device.
[0055] When the vehicle's in-vehicle Bluetooth device detects that the connection with the digital key has been established, it will return a connection status sign; when the vehicle's in-vehicle Bluetooth device detects that the connection with the digital key has not been established, it will return a disconnected status sign.
[0056] The connection status flag is usually represented by a Boolean value, for example, the connected state is True and the unconnected state is False.
[0057] Step 102: when the connection state is connected, obtaining first target data according to the connection parameters between the vehicle-mounted Bluetooth device and the digital key;
[0058] When the vehicle's on-board Bluetooth device detects that a connection with the digital key has been established, it will return a connection status sign. At this time, the vehicle will determine that it has established a connection with the digital key.
[0059] However, in actual application scenarios, although the vehicle and the digital key are connected, the connection may be unstable due to the long distance between the vehicle and the digital key.
[0060] Therefore, in the embodiment of the present application, it is also necessary to adjust the connection parameters between the vehicle-mounted Bluetooth device and the digital key, such as increasing the connection power and shortening the connection interval, so as to ensure a stable connection even at a longer connection distance, thereby improving the user's experience of remote control operation.
[0061] Step 103: when the connection state is unconnected, obtaining second target data according to the broadcast parameters of the vehicle-mounted Bluetooth device;
[0062] In actual application, as long as the vehicle's on-board Bluetooth device returns a connection status sign, the vehicle will default to not establishing a connection with the digital key, that is, it is in an unconnected state.
[0063] The principle of establishing a connection between the vehicle and the digital key is based on the broadcast signal emitted by the vehicle and the scanning of the digital key.
[0064] The vehicle's in-vehicle Bluetooth device will periodically send broadcast signals, and the digital key's key Bluetooth device will scan these broadcast signals. If the digital key's key Bluetooth device scans the broadcast signal sent by the vehicle, the digital key will try to establish a connection with the vehicle.
[0065] Therefore, in order to enable the digital key to establish a connection with the vehicle at a longer distance, in an embodiment of the present application, the broadcast parameters of the vehicle-mounted Bluetooth device can be adjusted, such as increasing the broadcast power and shortening the broadcast interval, to enhance the coverage and frequency of the broadcast signal, thereby increasing the scanning probability of the digital key and increasing the connection probability between the vehicle and the digital key, so that the vehicle and the digital key can also establish a communication connection at a longer distance.
[0066] Step 104: adjust the connection distance according to the first target data so that the vehicle-mounted Bluetooth device and the digital key maintain a communication connection when they are connected; or adjust the connection distance according to the second target data so that the vehicle-mounted Bluetooth device and the digital key establish a communication connection when they are not connected.
[0067] In an embodiment of the present application, the first target data is the adjusted connection parameters between the vehicle-mounted Bluetooth device and the digital key. Therefore, based on the first target data, when the vehicle and the digital key are connected, the connection distance between the vehicle and the digital key can be increased, making the communication connection between the two more stable.
[0068] The second target data is the adjusted broadcast parameters of the vehicle-mounted Bluetooth device. Therefore, based on the second target data, when the vehicle and the digital key are not connected, the scanning probability of the digital key can be increased by enhancing the broadcast signal, thereby increasing the connection distance for establishing a communication connection between the vehicle and the digital key, so that the vehicle and the digital key can also establish a communication connection at a longer distance.
[0069] In the connected state, the embodiment of the present application can improve the stability and reliability of the connection, reduce connection interruption and packet loss, and ensure that the user can perform remote control operations such as unlocking, locking, opening and closing the tailgate, etc. through the digital key by adjusting the connection parameters; in the unconnected state, the digital key can be more likely to detect the vehicle broadcast signal by adjusting the broadcast parameters, thereby improving the connection success rate and ensuring that the user can smoothly perform remote control operations within a longer connection distance.
[0070] When the vehicle in the embodiment of the present application is connected to the digital key, the connection distance can be increased by adjusting the connection parameters between the vehicle-mounted Bluetooth device and the digital key, and the connection between the vehicle-mounted Bluetooth device and the digital key can be optimized, so that the user (digital key) can remain connected to the vehicle at a longer distance, thereby ensuring the stability of the Bluetooth connection; when not connected to the digital key, the connection distance can also be increased by adjusting the broadcast parameters of the vehicle-mounted Bluetooth device, so that the user (digital key) can be connected to the vehicle at a longer distance, thereby increasing the connection probability between the vehicle-mounted Bluetooth device and the digital key, and allowing the vehicle-mounted Bluetooth device and the digital key to be connected.
[0071] In one embodiment of the present application, the connection parameters include: initial connection power and initial connection interval between the vehicle-mounted Bluetooth device and the digital key; step 102, when the connection state is connected, obtaining first target data according to the connection parameters between the vehicle-mounted Bluetooth device and the digital key, including:
[0072] When the connection state is connected, determine the connection field strength value and the preset connection field strength threshold between the vehicle-mounted Bluetooth device and the digital key, and the packet loss rate and the preset packet loss threshold of the digital key;
[0073] If the packet loss rate exceeds the preset packet loss threshold, calculating the first data according to the connection field strength value, the preset connection field strength threshold, the packet loss rate and the first preset value;
[0074] Calculating a target connection power according to the first data and the initial connection power;
[0075] Calculate a target connection interval according to the first data and the initial connection interval;
[0076] The target connection power and the target connection interval are used as the first target data.
[0077] When the vehicle and the digital key are connected, it is necessary to confirm the initial connection power p between the vehicle and the digital key. conn and the initial connection interval interval conn .
[0078] Connection power refers to the power used to establish a connection between the vehicle and the digital key. Connection interval refers to the time interval between connection events between the vehicle and the digital key. The shorter the connection interval, the more frequent the connection events.
[0079] In actual application scenarios, the vehicle and the digital key may be connected, but the connection is unstable due to the long distance between the vehicle and the digital key. Therefore, it is necessary to judge the stability of the connection between the vehicle and the digital key to avoid being connected at one moment and disconnected at the next moment.
[0080] Packet loss rate of digital key loss Refers to the proportion of data packets lost during the communication between the vehicle and the digital key. Packet loss rate is an important indicator to measure the communication quality. If the packet loss rate is high, it means that more data packets are lost during the communication process, and the communication quality is poor at this time. Therefore, by monitoring the packet loss rate of the digital key loss The problem of decreased communication quality between the vehicle and the digital key can be discovered in time, and appropriate measures should be taken to improve the communication quality.
[0081] Therefore, in the embodiment of the present application, the relationship between the preset packet loss threshold and the packet loss rate of the digital key is used as the adjustment condition of the connection parameters. For example, the preset packet loss threshold can be set to 5%.
[0082] The connection field strength value refers to the signal strength received by the vehicle during the wireless communication connection between the vehicle and the digital key, reflecting the signal strength level under a specific connection state. The connection field strength value is a key parameter in the wireless communication system and is used to evaluate and optimize communication quality.
[0083] In actual application, there are usually multiple vehicle areas around the vehicle based on the distance from the vehicle, including unlocking area, buffer area and locking area. In the unlocking area, the distance between the vehicle and the digital key is short, the signal strength is high, and the communication quality is good; in the buffer area, the distance between the vehicle and the digital key is moderate, the signal strength is moderate, and the communication quality is average; in the locking area, the distance between the vehicle and the digital key is far, the signal strength is low, and the communication quality is poor.
[0084] For example, 0-2 meters corresponds to the unlocking zone, 2-6 meters corresponds to the buffer zone, and 6-10 meters corresponds to the locking zone. Since the locking zone is a critical area for communication between the vehicle and the digital key, the connection field strength value of the locking zone will actually be a lower signal strength threshold, indicating that the signal is very weak and communication may not be possible or the communication quality is extremely poor.
[0085] The smaller the connection field strength value, the greater the distance between the vehicle and the digital key. At this time, the signal can be enhanced by increasing the connection power so that the digital key can maintain a stable connection state even when it is far away from the vehicle. The number of connection events between the digital key and the vehicle can also be increased by shortening the connection interval, making the communication between the digital key and the vehicle more frequent, thereby improving the stability and reliability of the connection.
[0086] Therefore, in the embodiment of the present application, the preset connection field strength threshold RSSI1 (connection field strength threshold of the locking area), the connection field strength value RSSI2 and the packet loss rate rate of the digital key are combined. loss , adjust the connection parameters between the vehicle and the digital key, and also reduce the packet loss rate of the digital key. If the packet loss rate of the digital key is still higher than the preset packet loss threshold, the connection parameters will continue to be adjusted until the packet loss rate of the digital key is lower than the preset packet loss threshold.
[0087] The first target data in the embodiment of the present application is obtained by the following formula (1) and formula (2):
[0088]
[0089] in, The target connection interval, interval conn is the initial connection interval, RSSI1 is the preset connection field strength threshold, RSSI2 is the connection field strength value, rate loss is the packet loss rate, is the target connection power, p conn is the initial connection power, 1 is the first preset value, or is the first data.
[0090] In an embodiment of the present application, although the vehicle and the digital key are connected, the connection is unstable due to the long distance. By monitoring the packet loss rate of the digital key, the problem of decreased communication quality between the vehicle and the digital key can be discovered in time. If the packet loss rate exceeds the preset packet loss threshold, it means that a large number of data packets are lost during the communication process and the communication quality is poor. Subsequently, the connection parameters are adjusted by using the connection field strength value, the preset connection field strength threshold and the packet loss rate of the digital key. This can avoid the situation where the connection is disconnected at the next moment and the connection is disconnected at the previous moment. At the same time, the packet loss rate of the digital key can be reduced, thereby improving the stability of communication.
[0091] In actual applications, the communication environment between the vehicle and the digital key may be very complex, with various interferences and obstacles. By dynamically adjusting the connection parameters between the vehicle and the digital key, it can better adapt to these complex environments and ensure stable communication in different locations and conditions.
[0092] In one embodiment of the present application, step 103, when the connection state is unconnected, obtaining the second target data according to the broadcast parameter of the vehicle-mounted Bluetooth device includes:
[0093] When the connection status is not connected, a broadcast signal is transmitted through the vehicle's Bluetooth device, and the broadcast signal is monitored to see whether it is scanned by the digital key;
[0094] If it is detected that the broadcast signal is scanned by the digital key, the initial scan number is determined; the initial scan number is the number of times the broadcast signal is scanned by the digital key within a preset time;
[0095] The second target data is obtained according to the initial scanning times and the broadcast parameters of the vehicle-mounted Bluetooth device.
[0096] In the embodiment of the present application, when the vehicle and the digital key are not connected, the vehicle will broadcast with the default broadcast parameters to try to establish a connection with the digital key. In order to enable the digital key to be connected even when it is far away from the vehicle, when the broadcast on the vehicle side is scanned by the digital key, the broadcast parameters of the vehicle need to be increased to increase the probability of the broadcast being scanned.
[0097] In the unconnected state, the in-vehicle Bluetooth device will transmit a broadcast signal and monitor whether the broadcast signal is scanned by the digital key. If it is monitored that the broadcast signal transmitted by the in-vehicle Bluetooth device is scanned by the digital key, the number of times the broadcast signal is scanned by the digital key within a preset time (initial scan number) is determined.
[0098] In an embodiment of the present application, after adjusting the broadcast parameters of the broadcast signal by the initial scanning number, the second target data is obtained, and the visibility and coverage of the broadcast signal can be improved through this second target data, thereby increasing the possibility of successful connection.
[0099] The wireless communication environment in actual applications may be very complex, with various interferences and obstacles. By monitoring the number of scans, the broadcast parameters can be dynamically adjusted to adapt to these complex environments, ensuring a stable connection in different locations and conditions. In addition, the distance between the digital key and the vehicle may change constantly, especially when the digital key approaches the vehicle from a distance. By monitoring the number of scans, the broadcast parameters can be adjusted in real time to adapt to the change in distance, ensuring a stable connection at different distances.
[0100] The number of initial scans reflects the visibility and coverage of the broadcast signal. The more scans, the easier it is for the digital key to detect the broadcast signal, and the higher the connection success rate. Conversely, the fewer scans, the harder it is for the digital key to detect the broadcast signal, and the lower the connection success rate.
[0101] In one embodiment of the present application, since the number of initial scans is associated with the probability of the broadcast signal being scanned, the embodiment of the present application can add an adjustment condition, that is, the broadcast parameters will only be adjusted when the number of initial scans is less than a certain threshold.
[0102] By adding adjustment conditions, frequent adjustments to broadcast parameters can be avoided when the initial scan number is high, thereby saving power consumption and reducing unnecessary adjustments. Emergency adjustments are only required when the initial scan number is low to improve the visibility and coverage of the broadcast signal.
[0103] In one embodiment of the present application, the broadcast parameters include: the initial broadcast power and the initial broadcast interval of the vehicle-mounted Bluetooth device; according to the initial scanning number and the broadcast parameters of the vehicle-mounted Bluetooth device, the second target data is obtained, including:
[0104] Calculate second data according to the initial scanning number and the second preset value;
[0105] calculating a target broadcast power according to the second data and the initial broadcast power;
[0106] calculating a target broadcast interval according to the second data and the initial broadcast interval;
[0107] The target broadcast power and the target broadcast interval are used as the second target data.
[0108] The initial broadcast power of the car Bluetooth device determines the coverage of the broadcast signal. A higher broadcast power can increase the coverage of the signal. The initial broadcast interval of the car Bluetooth device determines the frequency of the broadcast signal. A shorter broadcast interval can increase the frequency of the broadcast signal and improve the visibility of the broadcast signal.
[0109] Therefore, in the embodiment of the present application, it is necessary to dynamically adjust the broadcast power and broadcast interval to improve the visibility and coverage of the broadcast signal, thereby increasing the possibility of successful connection.
[0110] In the embodiments of the present application, the broadcast interval is shortened, the transmission frequency of the broadcast signal is increased, and the visibility of the broadcast signal is improved, thereby increasing the number of scans; the broadcast power is increased, the intensity of the broadcast signal is enhanced, and the visibility of the broadcast signal is improved, thereby increasing the number of scans.
[0111] The second target data (target broadcast power and target broadcast interval) in the embodiment of the present application is obtained by the following formula (3) and formula (4):
[0112]
[0113] in, The target broadcast interval, interval advis the initial broadcast interval, T is the initial scan times, is the target broadcast power, p adv is the initial broadcast power, 1 is the second preset value, or is the second data.
[0114] In the embodiment of the present application, the initial broadcast power and initial broadcast interval are low by default to save power consumption. Therefore, only when the broadcast signal is scanned, it is necessary to increase the broadcast power and shorten the broadcast interval to improve the connection success rate. This dynamic adjustment mechanism can optimize power consumption and performance while ensuring the quality of the connection. In addition, by dynamically adjusting the broadcast parameters at different distances and environments, the visibility and coverage of the broadcast signal can be improved, the stability of the connection can be ensured, thereby improving the response speed of the connection and enhancing the user experience.
[0115] When the vehicle in the embodiment of the present application is connected to the digital key, the connection distance can be increased by adjusting the connection parameters between the vehicle-mounted Bluetooth device and the digital key, and the connection between the vehicle-mounted Bluetooth device and the digital key can be optimized, so that the user (digital key) can remain connected to the vehicle at a longer distance, thereby ensuring the stability of the Bluetooth connection; when not connected to the digital key, the connection distance can also be increased by adjusting the broadcast parameters of the vehicle-mounted Bluetooth device, so that the user (digital key) can be connected to the vehicle at a longer distance, thereby increasing the connection probability between the vehicle-mounted Bluetooth device and the digital key, and allowing the vehicle-mounted Bluetooth device and the digital key to be connected.
[0116] Reference Figure 2 , is a flowchart of another embodiment of a method for communication connection between a vehicle and a digital key of the present application, which is applied to a digital key, the digital key includes a key Bluetooth device, and the digital key communicates with the vehicle within a connection distance through the key Bluetooth device, including the following steps:
[0117] Step 201: when the key Bluetooth device is not connected to the vehicle, obtain third target data according to the scanning parameters of the key Bluetooth device;
[0118] Since the principle of establishing a connection between the vehicle and the digital key is based on the broadcast signal emitted by the vehicle and the scanning of the digital key, in the aforementioned steps, the broadcast parameters of the vehicle have been adjusted to enhance the coverage and frequency of the broadcast signal, thereby increasing the scanning probability of the digital key, and increasing the connection probability between the vehicle and the digital key, so that the vehicle and the digital key can also establish a communication connection at a longer distance.
[0119] Therefore, in addition to improving the connection probability by adjusting the broadcast parameters of the vehicle, the embodiments of the present application can also further improve the connection probability by adjusting the scanning parameters of the digital key.
[0120] Step 202: Adjust the connection distance according to the third target data so that the key Bluetooth device establishes a communication connection with the vehicle.
[0121] In an embodiment of the present application, the third target data is the scanning parameter of the adjusted digital key. Therefore, based on the third target data, when the vehicle and the digital key are not connected, the probability of the digital key scanning the broadcast signal can be increased, thereby increasing the connection distance at which a communication connection can be established between the vehicle and the digital key, so that the vehicle and the digital key can also establish a communication connection at a longer distance.
[0122] In the embodiment of the present application, when the digital key is not connected to the vehicle, the scanning efficiency is improved by adjusting the scanning parameters of the digital key end, thereby increasing the chance of detecting the vehicle broadcast signal and thus increasing the connection probability.
[0123] In one embodiment of the present application, the scanning parameters include an initial scanning window of the key Bluetooth device. Step 301, when the key Bluetooth device is not connected to the vehicle, obtains the third target data according to the scanning parameters of the key Bluetooth device, including:
[0124] When the key Bluetooth device is not connected to the vehicle, determining a scanning field strength value and a preset scanning field strength threshold of the key Bluetooth device;
[0125] Calculate third data according to the scanning field strength value and a preset scanning field strength threshold;
[0126] The third target data is calculated according to the third data and the initial scanning window.
[0127] In the embodiment of the present application, the scanning parameter is the scanning window of the digital key. The scanning window refers to the time window when the digital key scans the broadcast signal. The size of the scanning window determines the length of time the digital key scans the broadcast signal per unit time. Therefore, a larger scanning window means that the digital key has more time to scan the broadcast signal per unit time, thereby increasing the probability of scanning.
[0128] In order to adjust the scanning window, it is necessary to determine the scanning field strength value and the preset scanning field strength threshold of the digital key. The scanning field strength value refers to the broadcast field strength value scanned in real time, and the preset scanning field strength threshold refers to the field strength threshold at the time of initiating the connection.
[0129] Therefore, the embodiment of the present application increases the scanning window by scanning the field strength value and the preset scanning field strength threshold, so that the digital key can scan within a larger time range. During the time when the scanning window is open, the possibility of the vehicle's broadcast signal being scanned will increase, and more broadcasts can be scanned at a faster speed, so that the vehicle and the digital key can establish a communication connection at a longer distance.
[0130] The third target data in the embodiment of the present application is obtained by the following formula (5):
[0131]
[0132] window * is the third target data, is the initial scanning window, RSSI3 is the scanning field strength value, RSSI4 is the preset scanning field strength threshold, The third data.
[0133] The wireless communication environment can be very complex, with various interferences and obstacles. By adjusting the size of the scanning window, you can better adapt to these complex environments and ensure a stable connection in different locations and conditions. In addition, the distance between the digital key and the vehicle may change constantly, especially when the digital key approaches the vehicle from a distance. By adjusting the size of the scanning window, you can adapt to the change in distance in real time and ensure a stable connection at different distances.
[0134] In the embodiment of the present application, when the digital key is not connected to the vehicle, the scanning efficiency is improved by adjusting the scanning parameters of the digital key end, thereby increasing the chance of detecting the vehicle broadcast signal and thus increasing the connection probability.
[0135] For the method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present application are not limited by the order of the actions described, because according to the embodiments of the present application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present application.
[0136] On the basis of the above embodiments, this embodiment further provides a communication connection device between a vehicle and a digital key, which is applied to electronic devices such as terminal devices and servers.
[0137] Reference Figure 3 , shows a structural block diagram of an embodiment of a communication connection device between a vehicle and a digital key of the present application, which is applied to a vehicle, the vehicle includes an in-vehicle Bluetooth device, and the vehicle communicates with the digital key within a connection distance through the in-vehicle Bluetooth device, and may include the following modules:
[0138] A connection status determination module 301 is used to determine the connection status between the vehicle-mounted Bluetooth device and the digital key;
[0139] A connected state module 302, configured to obtain first target data according to connection parameters between the vehicle-mounted Bluetooth device and the digital key when the connection state is connected;
[0140] The unconnected state module 303 is used to obtain the second target data according to the broadcast parameters of the vehicle-mounted Bluetooth device when the connection state is unconnected;
[0141] The first adjustment module 304 is used to adjust the connection distance according to the first target data so that the vehicle-mounted Bluetooth device and the digital key maintain a communication connection in a connected state; or, the second adjustment module is used to adjust the connection distance according to the second target data so that the vehicle-mounted Bluetooth device and the digital key establish a communication connection in a disconnected state.
[0142] Reference Figure 4 , shows a structural block diagram of another embodiment of a communication connection device between a vehicle and a digital key of the present application, which is applied to a digital key, the digital key includes a key Bluetooth device, and the digital key communicates with the vehicle within a connection distance through the key Bluetooth device, and may include the following modules:
[0143] A scanning parameter adjustment module 401, used to obtain third target data according to the scanning parameters of the key Bluetooth device when the key Bluetooth device is not connected to the vehicle;
[0144] The second adjustment module 402 is used to adjust the connection distance according to the third target data so that the key Bluetooth device can establish a communication connection with the vehicle.
[0145] The embodiment of the present application also provides a non-volatile readable storage medium, which stores one or more modules (programs). When the one or more modules are applied to a device, the device can execute instructions (instructions) of each method step in the embodiment of the present application.
[0146] The embodiments of the present application provide one or more machine-readable media on which instructions are stored, and when executed by one or more processors, the electronic device executes one or more methods in the above embodiments. In the embodiments of the present application, the electronic device includes various types of devices such as terminal devices, servers (clusters), etc.
[0147] The embodiments of the present disclosure may be implemented as a device configured as desired using any appropriate hardware, firmware, software, or any combination thereof, and the device may include electronic devices such as terminal devices and servers (clusters). Figure 5An exemplary apparatus 500 that can be used to implement various embodiments of the present application is schematically shown.
[0148] For one embodiment, Figure 5 An exemplary apparatus 500 is shown having one or more processors 502, a control module (chip set) 504 coupled to at least one of the processor(s) 502, a memory 506 coupled to the control module 504, a non-volatile memory (NVM) / storage device 508 coupled to the control module 504, one or more input / output devices 510 coupled to the control module 504, and a network interface 512 coupled to the control module 504.
[0149] The processor 502 may include one or more single-core or multi-core processors, and the processor 502 may include any combination of general-purpose processors or special-purpose processors (such as graphics processors, application processors, baseband processors, etc.). In some embodiments, the device 500 can be used as a terminal device, a server (cluster), and other devices in the embodiments of the present application.
[0150] In some embodiments, the apparatus 500 may include one or more computer-readable media (e.g., memory 506 or NVM / storage device 508) having instructions 514 and one or more processors 502 combined with the one or more computer-readable media and configured to execute the instructions 514 to implement a module to perform actions in the present disclosure.
[0151] For one embodiment, control module 504 may include any suitable interface controller to provide any suitable interface to at least one of processor(s) 502 and / or any suitable device or component in communication with control module 504 .
[0152] The control module 504 may include a memory controller module to provide an interface to the memory 506. The memory controller module may be a hardware module, a software module, and / or a firmware module.
[0153] The memory 506 may be used, for example, to load and store data and / or instructions 514 for the device 500. For one embodiment, the memory 506 may include any suitable volatile memory, such as a suitable DRAM. In some embodiments, the memory 506 may include double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).
[0154] For one embodiment, control module 504 may include one or more input / output controllers to provide an interface to NVM / storage device 508 and input / output device(s) 510 .
[0155] For example, NVM / storage 508 may be used to store data and / or instructions 514. NVM / storage 508 may include any suitable non-volatile memory (e.g., flash memory) and / or may include any suitable non-volatile storage device(s) (e.g., one or more hard disk drives (HDDs), one or more compact disk (CD) drives, and / or one or more digital versatile disk (DVD) drives).
[0156] NVM / storage device 508 may include storage resources that are physically part of the device on which apparatus 500 is installed, or it may be accessible to the device without being part of the device. For example, NVM / storage device 508 may be accessed via input / output device(s) 510 over a network.
[0157] (One or more) input / output devices 510 may provide an interface for the apparatus 500 to communicate with any other appropriate device, and the input / output device 510 may include a communication component, an audio component, a sensor component, etc. The network interface 512 may provide an interface for the apparatus 500 to communicate through one or more networks, and the apparatus 500 may wirelessly communicate with one or more components of a wireless network according to any of one or more wireless network standards and / or protocols, for example, accessing a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, etc., or a combination thereof for wireless communication.
[0158] For one embodiment, at least one of the processor(s) 502 may be packaged together with the logic of one or more controllers (e.g., a memory controller module) of the control module 504. For one embodiment, at least one of the processor(s) 502 may be packaged together with the logic of one or more controllers of the control module 504 to form a system-in-package (SiP). For one embodiment, at least one of the processor(s) 502 may be integrated on the same die with the logic of one or more controllers of the control module 504. For one embodiment, at least one of the processor(s) 502 may be integrated on the same die with the logic of one or more controllers of the control module 504 to form a system-on-chip (SoC).
[0159] In various embodiments, the apparatus 500 may be, but is not limited to, a terminal device such as a server, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.). In various embodiments, the apparatus 500 may have more or fewer components and / or a different architecture. For example, in some embodiments, the apparatus 500 includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an application-specific integrated circuit (ASIC), and a speaker.
[0160] Among them, the main control chip can be used as a processor or control module in the detection device, sensor data, location information, etc. are stored in a memory or NVM / storage device, the sensor group can be used as an input / output device, and the communication interface may include a network interface.
[0161] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0162] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0163] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable vehicle and digital key communication connection terminal device to produce a machine, so that the instructions executed by the processor of the computer or other programmable vehicle and digital key communication connection terminal device generate instructions for implementing the processes in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0164] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable vehicle and digital key communication connection terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which is implemented in the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0165] These computer program instructions can also be loaded onto a computer or other programmable terminal device that communicates with the digital key, so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable terminal device provide for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0166] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0167] Finally, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device that includes a series of elements includes not only those elements, but also other elements that are not explicitly listed, or also includes elements that are inherent to such process, method, article or terminal device. In the absence of further restrictions, an element defined by the statement "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or terminal device that includes the element.
[0168] The above is a detailed introduction to a method and device for communicating with a digital key, an electronic device and a storage medium provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A communication connection method between a vehicle and a digital key, characterized in that: Applied to a vehicle, the vehicle includes an in-vehicle Bluetooth device, the vehicle communicates with a digital key within a connection distance through the in-vehicle Bluetooth device, and the method includes: Determine the connection status between the vehicle-mounted Bluetooth device and the digital key; When the connection state is connected, obtaining first target data according to connection parameters between the in-vehicle Bluetooth device and the digital key; When the connection state is unconnected, obtaining second target data according to the broadcast parameters of the vehicle-mounted Bluetooth device; The connection distance is adjusted according to the first target data so that the vehicle-mounted Bluetooth device and the digital key maintain a communication connection when they are connected; or, the connection distance is adjusted according to the second target data so that the vehicle-mounted Bluetooth device and the digital key establish a communication connection when they are not connected.
2. The method according to claim 1, characterized in that The connection parameters include: initial connection power and initial connection interval between the vehicle-mounted Bluetooth device and the digital key; when the connection state is connected, obtaining the first target data according to the connection parameters between the vehicle-mounted Bluetooth device and the digital key includes: When the connection state is connected, determining a connection field strength value and a preset connection field strength threshold between the in-vehicle Bluetooth device and the digital key, and a packet loss rate and a preset packet loss threshold of the digital key; If the packet loss rate exceeds the preset packet loss threshold, calculating first data according to the connection field strength value, the preset connection field strength threshold, the packet loss rate and a first preset value; Calculate the target connection power according to the first data and the initial connection power; Calculate a target connection interval according to the first data and the initial connection interval; The target connection power and the target connection interval are used as the first target data.
3. The method according to claim 1, characterized in that The obtaining of the second target data according to the broadcast parameter of the vehicle-mounted Bluetooth device when the connection state is not connected includes: When the connection state is unconnected, transmitting a broadcast signal through the vehicle-mounted Bluetooth device, and monitoring whether the broadcast signal is scanned by the digital key; If it is detected that the broadcast signal is scanned by the digital key, an initial scanning number is determined; the initial scanning number is the number of times the broadcast signal is scanned by the digital key within a preset time; The second target data is obtained according to the initial scanning number and the broadcast parameter of the vehicle-mounted Bluetooth device.
4. The method according to claim 3, characterized in that The broadcast parameters include: the initial broadcast power and the initial broadcast interval of the vehicle-mounted Bluetooth device; the obtaining of the second target data according to the initial scan times and the broadcast parameters of the vehicle-mounted Bluetooth device includes: Calculate second data according to the initial scanning number and the second preset value; Calculating a target broadcast power according to the second data and the initial broadcast power; Calculate a target broadcast interval according to the second data and the initial broadcast interval; The target broadcast power and the target broadcast interval are used as the second target data.
5. A communication connection method between a vehicle and a digital key, characterized in that: Applied to a digital key, the digital key includes a key Bluetooth device, the digital key is communicated with the vehicle within a connection distance through the key Bluetooth device, and the method includes: When the key Bluetooth device is not connected to the vehicle, obtaining third target data according to a scanning parameter of the key Bluetooth device; The connection distance is adjusted according to the third target data so that the key Bluetooth device establishes a communication connection with the vehicle.
6. The method according to claim 5, characterized in that The scanning parameters include an initial scanning window of the key Bluetooth device, and obtaining the third target data according to the scanning parameters of the key Bluetooth device when the key Bluetooth device is not connected to the vehicle includes: When the key Bluetooth device is not connected to the vehicle, determining a scanning field strength value of the key Bluetooth device and a preset scanning field strength threshold; Calculate third data according to the scanning field strength value and the preset scanning field strength threshold; The third target data is calculated according to the third data and the initial scanning window.
7. A communication connection device between a vehicle and a digital key, characterized in that: Applied to a vehicle, the vehicle includes an in-vehicle Bluetooth device, the vehicle communicates with a digital key within a connection distance through the in-vehicle Bluetooth device, and the device includes: A connection status determination module, used to determine the connection status between the vehicle-mounted Bluetooth device and the digital key; A connected state module, used for obtaining first target data according to connection parameters between the vehicle-mounted Bluetooth device and the digital key when the connection state is connected; An unconnected state module, used for obtaining second target data according to the broadcast parameters of the vehicle-mounted Bluetooth device when the connection state is unconnected; A first adjustment module is used to adjust the connection distance according to the first target data so that the vehicle-mounted Bluetooth device and the digital key maintain a communication connection in a connected state; or a second adjustment module is used to adjust the connection distance according to the second target data so that the vehicle-mounted Bluetooth device and the digital key establish a communication connection in a disconnected state.
8. A communication connection device between a vehicle and a digital key, characterized in that: Applied to a digital key, the digital key includes a key Bluetooth device, the digital key is communicated with the vehicle within a connection distance through the key Bluetooth device, and the device includes: A scanning parameter adjustment module, used for obtaining third target data according to the scanning parameters of the key Bluetooth device when the key Bluetooth device is not connected to the vehicle; The second adjustment module is used to adjust the connection distance according to the third target data so that the key Bluetooth device establishes a communication connection with the vehicle.
9. An electronic device, characterized in that: include: processor; and A memory having executable code stored thereon, which, when executed, enables the processor to execute the communication connection method between a vehicle and a digital key as described in any one of claims 1-4 or 5-6.
10. One or more machine-readable media having executable codes stored thereon, which, when executed, enable a processor to execute the method for communication connection between a vehicle and a digital key as described in any one of claims 1-4 or 5-6.
Citation Information
Patent Citations
Bluetooth scanning method, Bluetooth scanning device, equipment and storage medium
CN109348431A
Method for controlling proximity sensing type deblocking-interlocking scanning of vehicle, electronic device, and computer readable storage medium
CN109606315A
Data transmission method for somatosensory device and terminal
CN115002834A
Bluetooth broadcast two-way communication method and device, electronic equipment and storage medium
CN115767445A
Head-mounted wireless earphone and communication method thereof
CN117044227A