Methods, devices, equipment, and storage media for communication connection between vehicles and digital keys
By adjusting the connection and broadcast parameters between the in-vehicle Bluetooth device and the digital key, the problem of unstable connection between the vehicle and the digital key at long distances was solved, achieving stable Bluetooth connection and remote control operation.
Patent Information
- Application Number
- CN202411772958.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-04
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2044-12-04
AI Technical Summary
The vehicle and digital key have difficulty establishing a stable connection at long distances, making remote control operation inconvenient.
The communication connection is optimized by adjusting the connection parameters and broadcast parameters between the in-vehicle Bluetooth device and the digital key. This includes increasing connection power and shortening the interval when connected, and increasing the coverage and frequency of the broadcast signal when disconnected, in order to increase the connection distance and stability.
Maintaining a stable Bluetooth connection over long distances ensures users can perform remote control operations such as unlocking, locking, and opening/closing the tailgate, improving connection stability and success rate.
Smart Images

Figure CN119580455B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle communication technology, and in particular to a communication connection method and apparatus between a vehicle and a digital key, an electronic device, and a storage medium. Background Technology
[0002] With the widespread adoption of digital car keys, third-generation digital keys (NFC+BLE+UWB) have seen significant development in smart cars. Among them, mobile phones, watches / bracelets, as car keys, are a type of smart key based on BLE (Bluetooth Low Energy) connectivity.
[0003] When a user approaches the vehicle with the key, the key needs to quickly establish a connection with the vehicle to determine the distance and enable operations such as unlocking, locking, and opening / closing the tailgate. However, when the vehicle is far from the user, such as when the user is at home (above the floors) and needs to remotely lock or unlock the vehicle, a connection needs to be established at a greater distance. Summary of the Invention
[0004] This 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] Accordingly, embodiments of this application also provide 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] To address the aforementioned problems, this application discloses a communication connection method between a vehicle and a digital key, applied to a vehicle. The vehicle includes an in-vehicle Bluetooth device, and the vehicle communicates with the digital key within a connection distance via the in-vehicle Bluetooth device. The method includes:
[0007] Determine the connection status between the in-vehicle Bluetooth device and the digital key;
[0008] When the connection status is "connected", the first target data is obtained according to the connection parameters between the vehicle Bluetooth device and the digital key;
[0009] When the connection status is not connected, the second target data is obtained according to the broadcast parameters of the vehicle Bluetooth device;
[0010] The connection distance is adjusted according to the first target data so that the in-vehicle Bluetooth device and the digital key maintain a communication connection when they are already connected; or, the connection distance is adjusted according to the second target data so that the in-vehicle Bluetooth device and the digital key establish a communication connection when they are not connected.
[0011] Optionally, the connection parameters include: the initial connection power and initial connection interval between the vehicle Bluetooth device and the digital key; the step of obtaining first target data based on the connection parameters between the vehicle Bluetooth device and the digital key when the connection state is "connected" includes:
[0012] When the connection status is "connected", determine the connection field strength value and preset connection field strength threshold between the vehicle Bluetooth device and the digital key, as well as the packet loss rate and preset packet loss threshold of the digital key.
[0013] If the packet loss rate exceeds the preset packet loss threshold, then first data is calculated based on the connection field strength value, the preset connection field strength threshold, the packet loss rate, and the first preset value.
[0014] Calculate the target connection power based on the first data and the initial connection power;
[0015] Calculate the target connection interval based on 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, in the state where the connection is not established, obtaining the second target data based on the broadcast parameters of the vehicle Bluetooth device includes:
[0018] When the connection status is not connected, a broadcast signal is transmitted through the vehicle Bluetooth device, and it is monitored whether the broadcast signal is scanned by the digital key;
[0019] If the broadcast signal is detected to be scanned by the digital key, the initial scan count is determined; the initial scan count 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 based on the initial number of scans and the broadcast parameters of the vehicle Bluetooth device.
[0021] Optionally, the broadcast parameters include: the initial broadcast power and initial broadcast interval of the vehicle-mounted Bluetooth device; obtaining the second target data based on the initial scan count and the broadcast parameters of the vehicle-mounted Bluetooth device includes:
[0022] The second data is calculated based on the initial number of scans and the second preset value;
[0023] Calculate the target broadcast power based on the second data and the initial broadcast power;
[0024] Calculate the target broadcast interval based on 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] This application also discloses a communication connection method between a vehicle and a digital key, applied to a digital key, wherein 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. The method includes:
[0027] When the key Bluetooth device is not connected to the vehicle, third target data is obtained based on the scanning parameters of the key Bluetooth device;
[0028] The connection distance is adjusted based on the third target data to enable the key Bluetooth device to establish a communication connection with the vehicle.
[0029] Optionally, the scanning parameters include the initial scanning window of the key Bluetooth device, and the process of obtaining third target data based on the scanning parameters 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, determine the scanning field strength value and the preset scanning field strength threshold of the key Bluetooth device;
[0031] The third data is calculated based on the scanning field strength value and the preset scanning field strength threshold.
[0032] The third target data is calculated based on the third data and the initial scan window.
[0033] This application also discloses a communication connection device between a vehicle and a digital key, applied to a vehicle, the vehicle including an in-vehicle Bluetooth device, the vehicle communicating with the digital key within a connection distance via the in-vehicle Bluetooth device, the device comprising:
[0034] A connection status determination module is used to determine the connection status between the vehicle Bluetooth device and the digital key;
[0035] A connected status module is used to obtain first target data based on the connection parameters between the vehicle Bluetooth device and the digital key when the connection status is connected.
[0036] A disconnected state module is used to obtain second target data based on the broadcast parameters of the vehicle Bluetooth device when the connection state is disconnected.
[0037] A first adjustment module is used to adjust the connection distance according to the first target data so that the vehicle Bluetooth device and the digital key maintain a communication connection when they are already connected; or, a second adjustment module is used to adjust the connection distance according to the second target data so that the vehicle Bluetooth device and the digital key establish a communication connection when they are not connected.
[0038] This application also discloses a communication connection device between a vehicle and a digital key, 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. The device includes:
[0039] The scanning parameter adjustment module is used to obtain third target data based on 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 as to enable the key Bluetooth device to establish a communication connection with the vehicle.
[0041] This application also discloses an electronic device, including: a processor; and a memory storing executable code thereon, which, when executed, causes the processor to perform a vehicle-digital key communication connection method as described in any one of the embodiments of this application.
[0042] This application also discloses one or more machine-readable media storing executable code thereon, which, when executed, causes a processor to perform a vehicle-digital key communication connection method as described in any of the embodiments of this application.
[0043] Compared with the prior art, the embodiments of this application have the following advantages:
[0044] In this embodiment, the connection status between the vehicle Bluetooth device and the digital key is determined; when the connection status is connected, first target data is obtained based on the connection parameters between the vehicle Bluetooth device and the digital key; when the connection status is disconnected, second target data is obtained based on the broadcast parameters of the vehicle Bluetooth device; the connection distance is adjusted based on the first target data to maintain a communication connection between the vehicle Bluetooth device and the digital key when they are connected; or, the connection distance is adjusted based on the second target data to establish a communication connection between the vehicle Bluetooth device and the digital key when they are disconnected. In this embodiment, when the vehicle is connected to the digital key, adjusting the connection parameters between the in-vehicle Bluetooth device and the digital key can increase the connection distance, thereby optimizing the connection between the in-vehicle Bluetooth device and the digital key. This allows the user (digital key) to maintain a connection with the vehicle even at a greater distance, ensuring the stability of the Bluetooth connection. When the vehicle is not connected to the digital key, adjusting the broadcast parameters of the in-vehicle Bluetooth device can also increase the connection distance, allowing the user (digital key) to connect with the vehicle even at a greater distance. This increases the probability of connection between the in-vehicle Bluetooth device and the digital key, enabling them to connect.
[0045] In this embodiment, when the key Bluetooth device is not connected to the vehicle, third target data is obtained based on the scanning parameters of the key Bluetooth device; the connection distance is adjusted based on the third target data to establish a communication connection between the key Bluetooth device and the vehicle. In this embodiment, when the digital key is not connected to the vehicle, adjusting the scanning parameters at the digital key improves scanning efficiency, increases the chance of detecting vehicle broadcast signals, and thus increases the connection probability. Attached Figure Description
[0046] Figure 1 This is a flowchart illustrating the steps of an embodiment of a communication connection method between a vehicle and a digital key according to this application;
[0047] Figure 2 This is a flowchart illustrating the steps of another embodiment of the communication connection method between a vehicle and a digital key according to this application.
[0048] Figure 3 This is a structural block diagram of an embodiment of a communication connection device between a vehicle and a digital key according to this application;
[0049] Figure 4 This is a structural block diagram of another embodiment of the communication connection device between a vehicle and a digital key in this application;
[0050] Figure 5This is a schematic diagram of the structure of a device provided in an embodiment of this application. Detailed Implementation
[0051] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0052] Reference Figure 1 This is a flowchart illustrating the steps of an embodiment of a communication connection method between a vehicle and a digital key, applicable to a vehicle. The vehicle includes an in-vehicle Bluetooth device, and the vehicle establishes a communication connection with the digital key within a connection distance via the in-vehicle Bluetooth device, including the following steps:
[0053] Step 101: Determine the connection status between the vehicle's Bluetooth device and the digital key;
[0054] In this embodiment of the application, the API or callback function of the vehicle Bluetooth device can be used to determine whether a connection has been established with the digital key.
[0055] When the vehicle's Bluetooth device detects that a connection with the digital key has been established, it will return a connection status flag; when the vehicle's Bluetooth device detects that a connection with the digital key has not been established, it will return a disconnection status flag.
[0056] The connection status is usually indicated by a boolean value, for example, True for a connected state and False for a disconnected state.
[0057] Step 102: When the connection status is "connected", obtain the first target data based on the connection parameters between the vehicle Bluetooth device and the digital key;
[0058] When the vehicle's Bluetooth device detects that a connection has been established with the digital key, it will return a connection status indicator. At this point, the vehicle will be certain that it has established a connection with the digital key.
[0059] However, in real-world applications, although the vehicle and the digital key are connected, the connection may be unstable due to the excessive distance between them.
[0060] Therefore, in this embodiment, it is also necessary to adjust the connection parameters between the vehicle Bluetooth device and the digital key, such as increasing the connection power and shortening the connection interval, to ensure a stable connection even at a long connection distance and improve the user's remote control experience.
[0061] Step 103: When the connection status is not connected, obtain the second target data according to the broadcast parameters of the vehicle Bluetooth device;
[0062] In practical applications, as long as the vehicle's in-vehicle Bluetooth device does not return a connection status indicator, the vehicle will default to not having established a connection with the digital key, i.e., it is in an unconnected state.
[0063] The connection between a vehicle and a digital key is established based on the broadcast signals emitted by the vehicle and the scanning of the digital key.
[0064] The vehicle's Bluetooth system periodically sends broadcast signals, which the digital key's Bluetooth device scans for. If the digital key's Bluetooth device detects a broadcast signal from the vehicle, the digital key will attempt 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 greater distance, in this embodiment of the application, the broadcast parameters of the vehicle 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 still establish a communication connection at a greater distance.
[0066] Step 104: Adjust the connection distance according to the first target data so that the vehicle Bluetooth device and the digital key maintain a communication connection when they are already connected; or, adjust the connection distance according to the second target data so that the vehicle Bluetooth device and the digital key establish a communication connection when they are not connected.
[0067] In this embodiment, the first target data is the adjusted connection parameters between the vehicle Bluetooth device and the digital key. Therefore, based on the first target data, the connection distance between the vehicle and the digital key can be increased when the vehicle and the digital key are already connected, making the communication connection between the two more stable.
[0068] The second target data is the broadcast parameters of the adjusted in-vehicle Bluetooth device. Therefore, based on the second target data, the scanning probability of the digital key can be increased by enhancing the broadcast signal when the vehicle and the digital key are not connected. This increases the connection distance at which the vehicle and the digital key can establish a communication connection, allowing the vehicle and the digital key to establish a communication connection even at a greater distance.
[0069] In the connected state, this application embodiment can improve the stability and reliability of the connection by adjusting the connection parameters, reduce connection interruptions and packet loss, and ensure that users can perform remote control operations such as unlocking, locking, and opening / closing the tailgate by using the digital key. In the disconnected state, adjusting the broadcast parameters can increase the chance of the digital key detecting the vehicle's broadcast signal, thereby increasing the connection success rate and ensuring that users can perform remote control operations smoothly even at a greater connection distance.
[0070] In this embodiment, when the vehicle is connected to the digital key, adjusting the connection parameters between the in-vehicle Bluetooth device and the digital key can increase the connection distance, thereby optimizing the connection between the in-vehicle Bluetooth device and the digital key. This allows the user (digital key) to maintain a connection with the vehicle even at a greater distance, ensuring the stability of the Bluetooth connection. When the vehicle is not connected to the digital key, adjusting the broadcast parameters of the in-vehicle Bluetooth device can also increase the connection distance, allowing the user (digital key) to connect with the vehicle even at a greater distance. This increases the probability of connection between the in-vehicle Bluetooth device and the digital key, enabling them to connect.
[0071] In one embodiment of this application, the connection parameters include: the initial connection power and the initial connection interval between the vehicle Bluetooth device and the digital key; step 102, in the connected state, obtaining the first target data based on the connection parameters between the vehicle Bluetooth device and the digital key, including:
[0072] When the connection status is "connected", determine the connection field strength value and preset connection field strength threshold between the vehicle Bluetooth device and the digital key, as well as the packet loss rate and preset packet loss threshold of the digital key.
[0073] If the packet loss rate exceeds the preset packet loss threshold, the first data is calculated based on the connection field strength value, the preset connection field strength threshold, the packet loss rate, and the first preset value.
[0074] Calculate the target connection power based on the first data and the initial connection power;
[0075] Calculate the target connection interval based on the first data and the initial connection interval;
[0076] The target connection power and target connection interval are used as the first target data.
[0077] With the vehicle and digital key already connected, it is necessary to confirm the initial connection power p between the vehicle and digital key. conn and initial connection interval conn .
[0078] Connection power refers to the power required 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; a shorter connection interval indicates more frequent connection events.
[0079] In real-world applications, there may be situations where the vehicle and digital key are connected, but the connection becomes unstable due to the excessive distance between them. Therefore, it is necessary to assess the connection stability between the vehicle and digital key to avoid disconnection at the next moment.
[0080] Digital key packet loss rate loss Packet loss rate refers to the percentage of data packets lost during communication between the vehicle and the digital key. It's a crucial indicator of communication quality; a high packet loss rate means more data packets are lost during communication, resulting in poor communication quality. Therefore, monitoring the packet loss rate of the digital key is important. loss If a problem with the communication quality between the vehicle and the digital key is detected in a timely manner, then appropriate measures should be taken to improve the communication quality.
[0081] Therefore, in this embodiment, the relationship between the preset packet loss threshold and the packet loss rate of the digital key is used as an adjustment condition for the connection parameters. For example, the preset packet loss threshold can be set to 5%.
[0082] Connection strength 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. Connection strength is a key parameter in wireless communication systems used to evaluate and optimize communication quality.
[0083] In practical applications, multiple vehicle zones are typically defined around the vehicle based on its distance from the vehicle, including an unlocking zone, a buffer zone, and a locking zone. In the unlocking zone, the distance between the vehicle and the digital key is relatively short, resulting in high signal strength and good communication quality. In the buffer zone, the distance between the vehicle and the digital key is moderate, resulting in moderate signal strength and average communication quality. In the locking zone, the distance between the vehicle and the digital key is relatively long, resulting in low signal strength and poor communication quality.
[0084] For example, 0-2 meters corresponds to the unlocking zone, 2-6 meters to the buffer zone, and 6-10 meters to the locking zone. Since the locking zone is the critical area for communication between the vehicle and the digital key, the connection field strength value in the locking zone will be a low signal strength threshold in practice, indicating that the signal is very weak and communication may be impossible or of extremely poor quality.
[0085] The smaller the connection field strength value, the farther the distance between the vehicle and the digital key. In this case, the signal can be strengthened by increasing the connection power, so that the digital key can maintain a stable connection 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, so that the communication between the digital key and the vehicle is more frequent, thereby improving the stability and reliability of the connection.
[0086] Therefore, in this embodiment, the preset connection field strength threshold RSSI1 (connection field strength threshold of the locked area), the connection field strength value RSSI2, and the packet loss rate of the digital key are combined. loss The system adjusts the connection parameters between the vehicle and the digital key, which also reduces 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 this embodiment of the application is obtained by the following formulas (1) and (2):
[0088]
[0089] in, The target connection interval, interval conn The initial connection interval is defined as RSSI1, the preset connection field strength threshold is RSSI2, and the connection field strength value is rate. loss For packet loss rate, For the target connection power, p conn This represents the initial connection power, where 1 is the first preset value. or This is the first data point.
[0090] In this embodiment, although the vehicle and the digital key are connected, if the connection is unstable due to excessive distance, monitoring the packet loss rate of the digital key can promptly detect the problem of degraded communication quality between the vehicle and the digital key. If the packet loss rate exceeds a preset packet loss threshold, it indicates that a large number of data packets are lost during communication, resulting in poor communication quality. Subsequently, by adjusting the connection parameters based on the connection strength value, the preset connection strength threshold, and the packet loss rate of the digital key, the situation of connection failure at one moment and connection failure at the next moment can be avoided. At the same time, the packet loss rate of the digital key can be reduced, thereby improving the stability of communication.
[0091] In practical applications, the communication environment between the vehicle and the digital key can be very complex, with various interferences and obstacles. By dynamically adjusting the connection parameters between the vehicle and the digital key, it is possible to better adapt to these complex environments and ensure stable communication under different locations and conditions.
[0092] In one embodiment of this application, step 103, obtaining the second target data based on the broadcast parameters of the vehicle Bluetooth device when the connection status is not connected, includes:
[0093] When the connection status is not connected, a broadcast signal is transmitted through the vehicle's Bluetooth device, and the system monitors whether the broadcast signal is scanned by the digital key.
[0094] If the broadcast signal is detected to be scanned by the digital key, the initial scan count is determined; the initial scan count 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 based on the initial number of scans and the broadcast parameters of the vehicle's Bluetooth device.
[0096] In this embodiment, when the vehicle and digital key are not connected, the vehicle will broadcast with default broadcast parameters to attempt to establish a connection with the digital key. To enable the digital key to connect even when it is far from the vehicle, when the broadcast from the vehicle is scanned by the digital key, the vehicle's broadcast parameters need to be increased to increase the probability of the broadcast being scanned.
[0097] When not connected, the vehicle's Bluetooth device will emit a broadcast signal and monitor whether this broadcast signal is scanned by the digital key. If the broadcast signal emitted by the vehicle's Bluetooth device is detected to be scanned by the digital key, the number of times the broadcast signal is scanned by the digital key within a preset time (initial scan count) is determined.
[0098] In this embodiment of the application, after adjusting the broadcast parameters of the broadcast signal by the initial number of scans, second target data is obtained. This second target data can improve the visibility and coverage of the broadcast signal, thereby increasing the likelihood of a successful connection.
[0099] Real-world wireless communication environments can be highly complex, with various interferences and obstacles. By monitoring the number of scans, broadcast parameters can be dynamically adjusted to adapt to these complex environments, ensuring a stable connection under different locations and conditions. Furthermore, the distance between the digital key and the vehicle may constantly change, especially when the digital key approaches the vehicle from a distance. By monitoring the number of scans, broadcast parameters can be adjusted in real time to adapt to these distance variations, ensuring a stable connection at different distances.
[0100] The initial scan count reflects the visibility and coverage of the broadcast signal. More scans mean the broadcast signal is easier for the digital key to detect, resulting in a higher connection success rate. Conversely, fewer scans mean the broadcast signal is harder for the digital key to detect, leading to a lower connection success rate.
[0101] In one embodiment of this application, since the initial number of scans is related to the probability of the broadcast signal being scanned, this embodiment of the application can add an adjustment condition, that is, the broadcast parameters will only be adjusted when the initial number of scans is less than a certain number threshold.
[0102] By adding adjustment conditions, frequent adjustments to broadcast parameters can be avoided when the initial scan count is high, thereby saving power and reducing unnecessary adjustments. Emergency adjustments are only needed when the initial scan count is low to improve the visibility and coverage of the broadcast signal.
[0103] In one embodiment of this application, the broadcast parameters include: the initial broadcast power and initial broadcast interval of the vehicle-mounted Bluetooth device; and the second target data is obtained based on the initial number of scans and the broadcast parameters of the vehicle-mounted Bluetooth device, including:
[0104] The second data is calculated based on the initial number of scans and the second preset value;
[0105] Calculate the target broadcast power based on the second data and the initial broadcast power;
[0106] Calculate the target broadcast interval based on the second data and the initial broadcast interval;
[0107] The target broadcast power and target broadcast interval are used as the second target data.
[0108] The initial broadcast power of a vehicle-mounted Bluetooth device determines the coverage range of the broadcast signal; higher broadcast power increases the coverage range. The initial broadcast interval of a vehicle-mounted Bluetooth device determines the transmission frequency of the broadcast signal; shorter broadcast intervals increase the transmission frequency and improve the visibility of the broadcast signal.
[0109] Therefore, in this embodiment of the 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 likelihood of a successful connection.
[0110] In this embodiment, the number of scans is increased by shortening the broadcast interval, increasing the transmission frequency of the broadcast signal, and improving the visibility of the broadcast signal; the number of scans is also increased by increasing the broadcast power, enhancing the strength of the broadcast signal, and improving the visibility of the broadcast signal.
[0111] The second target data (target broadcast power and target broadcast interval) in this embodiment of the application are obtained by the following formulas (3) and (4):
[0112]
[0113] in, The target broadcast interval, interval advWhere T is the initial broadcast interval and T is the initial number of scans. For the target broadcast power, p adv 1 represents the initial broadcast power, and 1 represents the second preset value. or This is the second data point.
[0114] In this embodiment, the initial broadcast power and initial broadcast interval are low by default to save power. Therefore, the broadcast power is only increased and the broadcast interval is shortened when the broadcast signal is detected, in order to improve the connection success rate. This dynamic adjustment mechanism can optimize power consumption and performance while ensuring connection quality. Furthermore, by dynamically adjusting the broadcast parameters under different distances and environments, the visibility and coverage of the broadcast signal can be improved, ensuring connection stability, thereby improving connection response speed and enhancing user experience.
[0115] In this embodiment, when the vehicle is connected to the digital key, adjusting the connection parameters between the in-vehicle Bluetooth device and the digital key can increase the connection distance, thereby optimizing the connection between the in-vehicle Bluetooth device and the digital key. This allows the user (digital key) to maintain a connection with the vehicle even at a greater distance, ensuring the stability of the Bluetooth connection. When the vehicle is not connected to the digital key, adjusting the broadcast parameters of the in-vehicle Bluetooth device can also increase the connection distance, allowing the user (digital key) to connect with the vehicle even at a greater distance. This increases the probability of connection between the in-vehicle Bluetooth device and the digital key, enabling them to connect.
[0116] Reference Figure 2 This is a flowchart illustrating the steps of another embodiment of the communication connection method between a vehicle and a digital key, applicable to a digital key. The digital key includes a key Bluetooth device, and the digital key establishes a communication connection 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 the third target data based on the scanning parameters of the key Bluetooth device;
[0118] The connection between the vehicle and the digital key is established 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 the connection probability between the vehicle and the digital key. This allows the vehicle and the digital key to establish a communication connection even at greater distances.
[0119] Therefore, in addition to adjusting the vehicle's broadcast parameters, this application embodiment can further improve the connection probability by adjusting the digital key's scanning parameters.
[0120] Step 202: Adjust the connection distance according to the third target data to enable the key Bluetooth device to establish a communication connection with the vehicle.
[0121] In this embodiment, the third target data is the adjusted scanning parameters of the digital key. Therefore, based on the third target data, the probability of the digital key scanning the broadcast signal can be increased when the vehicle and the digital key are not connected. This increases the connection distance between the vehicle and the digital key, allowing them to establish a communication connection even at greater distances.
[0122] In this embodiment of the application, when the digital key is not connected to the vehicle, the scanning parameters at the digital key end are adjusted to improve scanning efficiency, increase the chance of detecting the vehicle's broadcast signal, and thus increase the connection probability.
[0123] In one embodiment of this application, the scanning parameters include the initial scanning window of the key Bluetooth device. Step 301, when the key Bluetooth device is not connected to the vehicle, obtains third target data based on the scanning parameters of the key Bluetooth device, including:
[0124] When the key Bluetooth device is not connected to the vehicle, determine the scanning field strength value and preset scanning field strength threshold of the key Bluetooth device.
[0125] The third data is calculated based on the scanning field strength value and the preset scanning field strength threshold.
[0126] The third target data is calculated based on the third data and the initial scan window.
[0127] In this embodiment, the scanning parameter refers to the scanning window of the digital key. The scanning window is the time window during which the digital key scans the broadcast signal, and its size determines the length of time the digital key spends scanning 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 a successful scan.
[0128] To adjust the scanning window, it is necessary to determine the scanning field strength value of the digital key and the preset scanning field strength threshold. 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 moment of initiating the connection.
[0129] Therefore, this application embodiment increases the scanning window by scanning field strength value and preset scanning field strength threshold, so that the digital key can scan over a larger time range. During the time the scanning window is open, the likelihood of the vehicle's broadcast signal being scanned increases, and more broadcasts can be scanned more quickly, so that the vehicle and digital key can establish a communication connection even at a greater distance.
[0130] The third target data in this application embodiment is obtained by the following formula (5):
[0131]
[0132] window * This is the third target data, the initial scan window, RSSI3 is the scan field strength value, and RSSI4 is the preset scan field strength threshold. This is the third data point.
[0133] Wireless communication environments can be highly complex, with various interferences and obstacles. Adjusting the size of the scanning window allows for better adaptation to these complex environments, ensuring a stable connection under different locations and conditions. Furthermore, the distance between the digital key and the vehicle may constantly change, especially when the digital key approaches the vehicle from a distance. Adjusting the scanning window size allows for real-time adaptation to these distance changes, ensuring a stable connection at varying distances.
[0134] In this embodiment of the application, when the digital key is not connected to the vehicle, the scanning parameters at the digital key end are adjusted to improve scanning efficiency, increase the chance of detecting the vehicle's broadcast signal, and thus increase the connection probability.
[0135] For the sake of simplicity, the method embodiments are described as a series of actions. However, those skilled in the art should understand that the embodiments of this application are not limited to the described order of actions, because according to the embodiments of this application, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of this application.
[0136] Based on the above embodiments, this embodiment also provides a communication connection device between a vehicle and a digital key, which is applied in electronic devices such as terminal devices and servers.
[0137] Reference Figure 3 This diagram illustrates a structural block diagram of an embodiment of a communication connection device between a vehicle and a digital key, applicable to a vehicle. The vehicle includes an in-vehicle Bluetooth device, and the vehicle communicates with the digital key within a connection distance via the in-vehicle Bluetooth device. The device may include the following modules:
[0138] The connection status determination module 301 is used to determine the connection status between the vehicle Bluetooth device and the digital key;
[0139] The connected status module 302 is used to obtain first target data based on the connection parameters between the vehicle Bluetooth device and the digital key when the connection status is connected.
[0140] The disconnected state module 303 is used to obtain the second target data based on the broadcast parameters of the vehicle Bluetooth device when the connection state is disconnected.
[0141] The first adjustment module 304 is used to adjust the connection distance according to the first target data so that the vehicle Bluetooth device and the digital key maintain a communication connection when they are already connected; or, the second adjustment module is used to adjust the connection distance according to the second target data so that the vehicle Bluetooth device and the digital key establish a communication connection when they are not connected.
[0142] Reference Figure 4 This diagram illustrates a structural block diagram of another embodiment of a vehicle-digital key communication connection device according to this application. The device is applied to a digital key, which includes a key Bluetooth device. The digital key communicates with the vehicle within a connection distance via the key Bluetooth device and may include the following modules:
[0143] The scanning parameter adjustment module 401 is used to obtain third target data based on 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] This application also provides a non-volatile readable storage medium storing one or more modules (programs). When these modules are applied to a device, they enable the device to execute the instructions for the method steps in this application.
[0146] This application provides one or more machine-readable media storing instructions that, when executed by one or more processors, cause an electronic device to perform one or more methods as described in the above embodiments. In this application, the electronic device includes various types of devices such as terminal devices and servers (clusters).
[0147] The embodiments of this disclosure can be implemented as an apparatus configured as desired using any suitable hardware, firmware, software, or any combination thereof, including electronic devices such as terminal devices, servers (clusters), etc. Figure 5An exemplary apparatus 500 is schematically shown that can be used to implement the various embodiments of this application.
[0148] In one embodiment, Figure 5 An exemplary device 500 is shown, which includes one or more processors 502, a control module (chipset) 504 coupled to at least one of the processors 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] Processor 502 may include one or more single-core or multi-core processors, and processor 502 may include any combination of general-purpose processors or special-purpose processors (e.g., graphics processors, application processors, baseband processors, etc.). In some embodiments, device 500 can serve as a terminal device, server (cluster), or other device in the embodiments of this application.
[0150] In some embodiments, 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 that are combined with the one or more computer-readable media and configured to execute the instructions 514 to implement the module and thus perform the actions in this disclosure.
[0151] In one embodiment, the control module 504 may include any suitable interface controller to provide any suitable interface to at least one of the processors 502 and / or any suitable device or component communicating with the 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] Memory 506 may be used, for example, to load and store data and / or instructions 514 for device 500. In one embodiment, memory 506 may include any suitable volatile memory, such as suitable DRAM. In some embodiments, memory 506 may include double data rate type quad synchronous dynamic random access memory (DDR4 SDRAM).
[0154] In one embodiment, the control module 504 may include one or more input / output controllers to provide an interface to the NVM / storage device 508 and (one or more) input / output devices 510.
[0155] For example, NVM / storage device 508 may be used to store data and / or instructions 514. NVM / storage device 508 may include any suitable non-volatile memory (e.g., flash memory) and / or may include any suitable (one or more) non-volatile storage devices (e.g., one or more hard disk drives (HDDs), one or more optical disc drives (CDs), and / or one or more digital universal optical disc (DVD) drives).
[0156] NVM / storage device 508 may include storage resources that are physically part of a device on which device 500 is mounted, or that can be accessed by the device without needing to be part of the device. For example, NVM / storage device 508 may be accessed via a network through one or more input / output devices 510.
[0157] One or more input / output devices 510 may provide an interface for device 500 to communicate with any other suitable device. Input / output devices 510 may include communication components, audio components, sensor components, etc. A network interface 512 may provide an interface for device 500 to communicate via one or more networks. Device 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, such as accessing wireless networks based on communication standards, such as WiFi, 2G, 3G, 4G, 5G, etc., or combinations thereof.
[0158] In one embodiment, at least one of the processors 502 may be logically packaged with one or more controllers (e.g., memory controller modules) of the control module 504. In one embodiment, at least one of the processors 502 may be logically packaged with one or more controllers of the control module 504 to form a system-in-package (SiP). In one embodiment, at least one of the processors 502 may be integrated with the logic of one or more controllers of the control module 504 on the same die. In one embodiment, at least one of the processors 502 may be integrated with the logic of one or more controllers of the control module 504 on the same die to form a system-on-a-chip (SoC).
[0159] In various embodiments, device 500 may be, but is not limited to, a terminal device such as a server, desktop computing device, or mobile computing device (e.g., laptop computing device, handheld computing device, tablet computer, netbook, etc.). In various embodiments, device 500 may have more or fewer components and / or different architectures. For example, in some embodiments, device 500 includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including a touchscreen display), a non-volatile memory port, multiple antennas, a graphics chip, an application-specific integrated circuit (ASIC), and a speaker.
[0160] The detection device can use a main control chip as a processor or control module, and sensor data, position information, etc. can be stored in a memory or NVM / storage device. The sensor group can be used as an input / output device, and the communication interface can include a network interface.
[0161] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.
[0162] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0163] This application describes embodiments with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable vehicle-to-digital key communication terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable vehicle-to-digital key communication terminal device, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0164] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable vehicle and digital key communication connection terminal device to operate in a specific manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0165] These computer program instructions can also be loaded onto a computer or other programmable vehicle-to-digital key communication terminal device, causing a series of operational steps to be executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal device for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0166] Although preferred embodiments of the present application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present application.
[0167] Finally, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes the element.
[0168] The foregoing has provided a detailed description of a communication connection method and apparatus for a vehicle and a digital key, an electronic device, and a storage medium provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for communication connection between a vehicle and a digital key, characterized in that, Applied to a vehicle, the vehicle including an in-vehicle Bluetooth device, the vehicle communicating with a digital key within a connection range via the in-vehicle Bluetooth device, the method comprising: Determine the connection status between the in-vehicle Bluetooth device and the digital key; When the connection status is "connected", the connection field strength value and preset connection field strength threshold between the vehicle Bluetooth device and the digital key are determined, as well as the packet loss rate of the digital key. First target data is obtained based on the connection parameters between the vehicle Bluetooth device and the digital key, the connection field strength value, the preset connection field strength threshold, and the packet loss rate. The connection parameters include the initial connection power and the initial connection interval, and the first target data includes the target connection power and the target connection interval. When the connection status is not connected, a broadcast signal is transmitted through the vehicle Bluetooth device, and it is monitored whether the broadcast signal is scanned by the digital key. If the broadcast signal is detected to be scanned by the digital key, the initial scan count is determined, and second target data is obtained according to the broadcast parameters of the vehicle Bluetooth device and the initial scan count. The initial scan count is the number of times the broadcast signal is scanned by the digital key within a preset time. The broadcast parameters include the initial broadcast power and the initial broadcast interval. The second target data includes the target broadcast power and the target broadcast interval. The connection distance is adjusted according to the first target data so that the vehicle Bluetooth device and the digital key maintain a communication connection when they are already connected; or, the connection distance is adjusted according to the second target data so that the vehicle Bluetooth device and the digital key establish a communication connection when they are not connected. The first target data is calculated using the following formula: in, The target connection interval, interval conn The initial connection interval is defined as RSSI1, the preset connection field strength threshold is defined as RSSI2, and the connection field strength value is defined as rate. loss The packet loss rate is... p is the target connection power. conn The initial connection power; The second target data is calculated using the following formula: in, The target broadcast interval, interval adv The initial broadcast interval is T, and the initial number of scans is T. p is the target broadcast power. adv The initial broadcast power is [value].
2. The method according to claim 1, characterized in that, The step of obtaining the first target data based on the connection parameters between the vehicle Bluetooth device and the digital key, the connection field strength value, the preset connection field strength threshold, and the packet loss rate includes: If the packet loss rate exceeds the preset packet loss threshold, then the first target data is obtained based on the connection parameters between the vehicle Bluetooth device and the digital key, the connection field strength value, the preset connection field strength threshold, and the packet loss rate.
3. The method according to claim 1, characterized in that, The step of obtaining the second target data based on the broadcast parameters of the vehicle-mounted Bluetooth device and the initial number of scans includes: If the initial number of scans is less than a preset threshold, then the second target data is obtained based on the broadcast parameters of the vehicle Bluetooth device and the initial number of scans.
4. A communication connection device between a vehicle and a digital key, characterized in that, Applied to a vehicle, the vehicle including an in-vehicle Bluetooth device, the vehicle communicating with a digital key within a connection range via the in-vehicle Bluetooth device, the device comprising: A connection status determination module is used to determine the connection status between the vehicle Bluetooth device and the digital key; A connected status module is used to determine the connection field strength value and a preset connection field strength threshold, as well as the packet loss rate of the digital key, when the connection status is "connected". It then obtains first target data based on the connection parameters between the vehicle Bluetooth device and the digital key, the connection field strength value, the preset connection field strength threshold, and the packet loss rate. The connection parameters include initial connection power and initial connection interval, and the first target data includes target connection power and target connection interval. A disconnected state module is used to transmit a broadcast signal through the vehicle Bluetooth device when the connection state is disconnected, and to monitor whether the broadcast signal is scanned by the digital key. If the broadcast signal is detected to be scanned by the digital key, an initial scan count is determined, and second target data is obtained based on the broadcast parameters of the vehicle Bluetooth device and the initial scan count. The initial scan count is the number of times the broadcast signal is scanned by the digital key within a preset time. The broadcast parameters include an initial broadcast power and an initial broadcast interval. The second target data includes a target broadcast power and a target broadcast interval. A first adjustment module is configured to adjust the connection distance according to the first target data so that the vehicle Bluetooth device and the digital key maintain a communication connection when they are already connected; or, a second adjustment module is configured to adjust the connection distance according to the second target data so that the vehicle Bluetooth device and the digital key establish a communication connection when they are not connected. The first target data is calculated using the following formula: in, The target connection interval, interval conn The initial connection interval is defined as RSSI1, the preset connection field strength threshold is defined as RSSI2, and the connection field strength value is defined as rate. loss The packet loss rate is... p is the target connection power. conn The initial connection power; The second target data is calculated using the following formula: in, The target broadcast interval, interval adv The initial broadcast interval is T, and the initial number of scans is T. p is the target broadcast power. adv The initial broadcast power is [value].
5. An electronic device, characterized in that, include: processor; and A memory having executable code stored thereon, which, when executed, causes the processor to perform the vehicle-to-digital key communication connection method as described in any one of claims 1-3.
6. One or more machine-readable media having executable code stored thereon, which, when executed, causes a processor to perform the vehicle-to-digital key communication connection method as described in any one of claims 1-3.
Citation Information
Patent Citations
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
Wireless communication method, wireless communication device, vehicle, and storage medium
CN117979239A
Bluetooth configuration method and Bluetooth device
CN118139025A