Bluetooth connection method, device, equipment, vehicle, system and storage medium
By dynamically adjusting the connection mode and authentication protocol through the Bluetooth link layer connection and heartbeat request interaction between the vehicle-side controller and the mobile terminal, the security issues of the Bluetooth connection between the vehicle and the mobile terminal are solved, achieving higher communication security and data protection.
Patent Information
- Application Number
- CN202510969681.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-15
- Publication Date
- 2025-10-03
- Estimated Expiration
- 2045-07-15
AI Technical Summary
In the existing technology, the Bluetooth connection between the vehicle and the mobile terminal has low security and has not undergone application layer security certification, which poses the risk of uncertified Bluetooth communication connection.
By turning on Bluetooth broadcast in the vehicle-side controller, establishing a Bluetooth link layer connection with the mobile terminal, and obtaining a response result by generating a heartbeat request, the connection method is determined based on the response result, and the corresponding security authentication protocol is executed for Bluetooth connection, including private protocols, standard protocols and HID connections, to ensure communication security.
The security of the Bluetooth connection between the vehicle and the mobile terminal is improved. Through the continuous interaction of heartbeat requests and response results, the connection mode and authentication protocol are dynamically adjusted, thereby enhancing the security and reliability of data transmission.
Smart Images

Figure CN120475386B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle technology, and in particular to a Bluetooth connection method, device, equipment, vehicle, system and storage medium. Background Art
[0002] With the popularization of digital keys, users can carry mobile terminals such as mobile phones and automatically establish a Bluetooth connection between the vehicle and the mobile terminal by approaching the vehicle, thereby realizing keyless entry and keyless start of the vehicle based on the Bluetooth key of the mobile terminal.
[0003] In the existing technology, users can establish a Bluetooth key connection between the vehicle and the mobile terminal by searching for the name of the vehicle's Bluetooth module through a mobile terminal equipped with a Bluetooth key and selecting the vehicle's Bluetooth module to connect. However, this method may cause the Bluetooth communication connection to proceed without security authentication, which reduces the security of the Bluetooth connection.
[0004] Another method is to establish a Bluetooth connection between the vehicle's Human Interface Device (HID) and the mobile terminal. However, in this method, the connection is only encrypted at the Bluetooth communication link layer and does not undergo application layer security authentication, which also reduces the security of the Bluetooth connection. Summary of the Invention
[0005] One of the objects of the present invention is to provide a Bluetooth connection method that can improve the security of the Bluetooth connection between a vehicle and a mobile terminal; the second object is to provide a Bluetooth connection device; the third object is to provide a vehicle-side controller; the fourth object is to provide a vehicle; the fifth object is to provide a Bluetooth key system; the sixth object is to provide a computer-readable storage medium; and the seventh object is to provide a computer program product.
[0006] In order to achieve the above object, the technical solution adopted by the present invention is as follows:
[0007] A Bluetooth connection method is applied to a vehicle-side controller in a Bluetooth key system; the Bluetooth key system also includes a mobile terminal; the method includes:
[0008] Enable Bluetooth broadcasting and establish a Bluetooth link layer connection with the mobile terminal;
[0009] Generate and send at least one heartbeat request to the mobile terminal according to a preset period; wherein the heartbeat request is used to generate a corresponding response result;
[0010] Receiving a response result sent by the mobile terminal, and determining a pending connection mode corresponding to the mobile terminal according to the response result sent by the mobile terminal; wherein the pending connection mode is a connection mode of a Bluetooth connection to be established between the mobile terminal and the mobile terminal;
[0011] Execute a Bluetooth connection operation with the mobile terminal according to a security authentication protocol corresponding to the to-be-connected mode.
[0012] Furthermore, determining the connection mode corresponding to the mobile terminal according to the response result sent by the mobile terminal includes:
[0013] If it is determined that the response result sent by the mobile terminal received within the preset time period is the first preset result, determining that the to-be-connected mode corresponding to the mobile terminal is a private protocol connection;
[0014] If it is determined that the response result sent by the mobile terminal received within the preset time period is the second preset result, it is determined that the to-be-connected mode corresponding to the mobile terminal is a standard protocol connection.
[0015] Furthermore, the method further comprises:
[0016] If no response result sent by the mobile terminal is received within the preset time period, it is determined that the to-be-connected mode corresponding to the mobile terminal is a human interface device HID connection.
[0017] Furthermore, after performing the Bluetooth connection operation with the mobile terminal, the method further includes:
[0018] If it is determined that a HID connection is established with the mobile terminal, obtaining Bluetooth key information corresponding to the mobile terminal;
[0019] If it is determined that the Bluetooth key information corresponding to the mobile terminal is valid, determining the connection time and connection number of the current HID connection established with the mobile terminal;
[0020] If it is determined that the connection time is within a preset time range, and / or if it is determined that the number of connections is less than or equal to a preset number of connections, then determining that the current HID connection with the mobile terminal is valid;
[0021] According to the preset authority information, the vehicle operation corresponding to the preset authority information is executed.
[0022] Furthermore, the Bluetooth key system further includes a mobile terminal cloud system; after determining to establish a HID connection with the mobile terminal, the method further includes:
[0023] If it is determined that the current Bluetooth connection between the mobile terminal and the mobile terminal is switched from the HID connection to the standard protocol connection, an authentication request is sent to the mobile terminal cloud system; wherein the authentication request is used to request standard security authentication processing;
[0024] According to the security authentication protocol corresponding to the standard protocol connection, a standard protocol connection operation is performed with the mobile terminal; and Bluetooth key information is updated.
[0025] Furthermore, after establishing a Bluetooth link layer connection with the mobile terminal, the method further includes:
[0026] Calling and sending application layer data to the mobile terminal; and receiving the application layer data sent by the mobile terminal; wherein the application layer data includes device identification information and Bluetooth key information;
[0027] Performing a standard security authentication operation with the mobile terminal based on the application layer data sent by the mobile terminal to obtain a Bluetooth pairing key sent by the mobile terminal;
[0028] Performing Bluetooth secure pairing with the mobile terminal according to the Bluetooth pairing key;
[0029] If it is determined that the Bluetooth pairing with the mobile terminal is successful, establishing a standard protocol connection with the mobile terminal according to the Bluetooth pairing key;
[0030] Generate and store Bluetooth pairing information; wherein the Bluetooth pairing information includes a correspondence between the Bluetooth key information, the Bluetooth pairing key and the device identification information.
[0031] Furthermore, the method further comprises:
[0032] In response to the Bluetooth key expiration signal, the Bluetooth pairing information is deleted, and the Bluetooth connection with the mobile terminal is disconnected.
[0033] Furthermore, the Bluetooth key system also includes a vehicle cloud system; the method further includes:
[0034] Receiving key update information sent by the car cloud system; wherein the key update information is generated based on the status update signal of the created Bluetooth key;
[0035] Identify the Bluetooth key to be deleted according to the key update information sent by the car cloud system;
[0036] If it is determined that the Bluetooth key to be deleted is the HID connection object currently connected to the mobile terminal, the key information of the Bluetooth key to be deleted is deleted, and the Bluetooth connection with the mobile terminal is disconnected.
[0037] Furthermore, the Bluetooth key system also includes a vehicle cloud system; the method further includes:
[0038] Receiving a remote command sent by the vehicle cloud system through the telematics processor TBOX; wherein the remote command includes the created Bluetooth key;
[0039] The Bluetooth key in the remote command is installed, and key information of the Bluetooth key is stored.
[0040] A Bluetooth connection device, the device is a vehicle-side controller in a Bluetooth key system; the Bluetooth key system also includes a mobile terminal; the device includes:
[0041] A first connection module, configured to enable Bluetooth broadcasting and establish a Bluetooth link layer connection with the mobile terminal;
[0042] A sending module, configured to generate and send at least one heartbeat request to the mobile terminal according to a preset period; wherein the heartbeat request is used to generate a corresponding response result;
[0043] a determination module, configured to receive a response result sent by the mobile terminal and determine a pending connection mode corresponding to the mobile terminal according to the response result sent by the mobile terminal; wherein the pending connection mode is a connection mode of a Bluetooth connection to be established between the mobile terminal and the mobile terminal;
[0044] The second connection module is configured to perform a Bluetooth connection operation with the mobile terminal according to a security authentication protocol corresponding to the to-be-connected mode.
[0045] Furthermore, the determination module is specifically used to: if it is determined that the response result sent by the mobile terminal received within the preset time period is the first preset result, then determine that the corresponding connection mode of the mobile terminal is a private protocol connection; if it is determined that the response result sent by the mobile terminal received within the preset time period is the second preset result, then determine that the corresponding connection mode of the mobile terminal is a standard protocol connection.
[0046] Furthermore, the determining module is further specifically configured to: if no response result sent by the mobile terminal is received within a preset time period, determine that the to-be-connected mode corresponding to the mobile terminal is a human interface device HID connection.
[0047] Furthermore, after the second connection module is used to perform a Bluetooth connection operation with the mobile terminal, the device is also used to: if it is determined that a HID connection is established with the mobile terminal, obtain the Bluetooth key information corresponding to the mobile terminal; if it is determined that the Bluetooth key information corresponding to the mobile terminal is valid, determine the connection time and number of connections for establishing the HID connection with the mobile terminal; if it is determined that the connection time is within a preset time range, and / or if it is determined that the number of connections is less than or equal to the preset number of connections, determine that the current HID connection with the mobile terminal is valid; and according to the preset authority information, execute the vehicle operation corresponding to the preset authority information.
[0048] Furthermore, the Bluetooth key system also includes a mobile terminal cloud system; in the second connection module, after determining that a HID connection is established with the mobile terminal, the device is also used to: if it is determined that the current Bluetooth connection with the mobile terminal is switched from a HID connection to a standard protocol connection, send an authentication request to the mobile terminal cloud system; wherein, the authentication request is used to request standard security authentication processing; according to the security authentication protocol corresponding to the standard protocol connection, execute the standard protocol connection operation with the mobile terminal; and update the Bluetooth key information.
[0049] Furthermore, after the first connection module is used to establish a Bluetooth link layer connection with the mobile terminal, the device is also used to: call and send application layer data to the mobile terminal; and receive the application layer data sent by the mobile terminal; wherein the application layer data includes device identification information and Bluetooth key information; according to the application layer data sent by the mobile terminal, perform a standard security authentication operation with the mobile terminal to obtain the Bluetooth pairing key sent by the mobile terminal; according to the Bluetooth pairing key, perform Bluetooth security pairing with the mobile terminal; if it is determined that the Bluetooth pairing with the mobile terminal is successful, establish a standard protocol connection with the mobile terminal according to the Bluetooth pairing key; generate and store Bluetooth pairing information; wherein the Bluetooth pairing information includes the correspondence between the Bluetooth key information, the Bluetooth pairing key and the device identification information.
[0050] Furthermore, the device is further configured to: in response to a Bluetooth key expiration signal, delete the Bluetooth pairing information and disconnect the Bluetooth connection with the mobile terminal.
[0051] Furthermore, the Bluetooth key system also includes a car cloud system; the device is also used to: receive key update information sent by the car cloud system; wherein, the key update information is generated based on the status update signal of the created Bluetooth key; according to the key update information sent by the car cloud system, identify the Bluetooth key to be deleted; if it is determined that the Bluetooth key to be deleted is the HID connection object currently with the mobile terminal, delete the key information of the Bluetooth key to be deleted, and disconnect the Bluetooth connection with the mobile terminal.
[0052] Furthermore, the Bluetooth key system also includes a vehicle cloud system; the device is also used to: receive remote instructions sent by the vehicle cloud system through the telematics processor TBOX; wherein the remote instructions include the created Bluetooth key; install the Bluetooth key in the remote instructions, and store the key information of the Bluetooth key.
[0053] A vehicle-side controller includes: a memory, a processor;
[0054] The memory stores computer-executable instructions;
[0055] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect.
[0056] A vehicle comprising a vehicle-side controller; the vehicle-side controller is used to execute the first aspect and / or various possible implementation methods of the first aspect as described above.
[0057] A Bluetooth key system includes a vehicle-side controller and a mobile terminal in a vehicle; the vehicle-side controller is used to execute the first aspect and / or various possible implementation methods of the first aspect as described above.
[0058] A computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the above first aspect and / or various possible implementations of the first aspect.
[0059] A computer program product includes a computer program, which, when executed by a processor, implements the above first aspect and / or various possible implementations of the first aspect.
[0060] Beneficial effects of the present invention:
[0061] The present invention continuously sends heartbeat requests to the mobile terminal. The vehicle-side controller determines the connection mode of the Bluetooth connection to be established between the vehicle and the mobile terminal based on the response result sent by the mobile terminal, and executes the Bluetooth connection operation between the vehicle and the mobile terminal according to the security authentication protocol corresponding to the connection mode, thereby improving the communication security of the Bluetooth connection between the vehicle and the mobile terminal. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] Figure 1 The process of the Bluetooth connection method provided by an embodiment of the present invention Figure 1 ;
[0063] Figure 2 The process of the Bluetooth connection method provided by an embodiment of the present invention Figure 2 ;
[0064] Figure 3 This is a diagram of the Bluetooth key system architecture provided by one embodiment of the present invention;
[0065] Figure 4 A schematic diagram of the first connection process of a Bluetooth key provided by an embodiment of the present invention;
[0066] Figure 5 A diagram showing a vehicle-side Bluetooth key storage data structure according to an embodiment of the present invention;
[0067] Figure 6 A schematic diagram of a vehicle-side Bluetooth connection state switching process provided by an embodiment of the present invention;
[0068] Figure 7 A schematic diagram of a Bluetooth connection validity security policy determination process according to an embodiment of the present invention;
[0069] Figure 8 A schematic structural diagram of a Bluetooth connection device provided in one embodiment of the present invention;
[0070] Figure 9 A schematic structural diagram of a vehicle-side controller provided in one embodiment of the present invention. DETAILED DESCRIPTION
[0071] The following describes the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art will readily appreciate the other advantages and benefits of the present invention from the disclosure herein. The present invention may also be implemented or applied through various other specific embodiments, and the various details in this specification may be modified or altered based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are intended only to illustrate the present invention and are not intended to limit the scope of protection of the present invention.
[0072] It should be noted that the illustrations provided in the following embodiments are merely schematic illustrations of the basic concept of the present invention. Therefore, the illustrations only show components related to the present invention and are not drawn according to the number, shape, and size of components in actual implementation. In actual implementation, the type, quantity, and proportion of each component may be changed arbitrarily, and the component layout may also be more complex.
[0073] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the present invention are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards, and corresponding operation entrances must be provided for users to choose to authorize or refuse.
[0074] The technical solution of the present invention is described in detail below through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0075] Figure 1 The process of the Bluetooth connection method provided by an embodiment of the present invention Figure 1 ,like Figure 1 As shown, the method includes:
[0076] 101. Turn on Bluetooth broadcasting and establish a Bluetooth link layer connection with the mobile terminal.
[0077] For example, the execution entity of this embodiment may be a vehicle-side controller of a Bluetooth key system; the Bluetooth key system also includes a mobile terminal. Through the vehicle-side controller, a Bluetooth key can be installed in a vehicle, thereby obtaining a vehicle-side Bluetooth key. The vehicle-side controller activates Bluetooth broadcasting for the vehicle-side Bluetooth key, i.e., sends a connection request to the mobile terminal via a broadcast channel, enabling the mobile terminal to discover and identify the vehicle-side Bluetooth key. At this point, the mobile terminal can send a connection request to the vehicle-side controller. The vehicle-side controller receives and processes the connection request, responds to it, and then establishes a physical link connection with the other party.
[0078] For example, the vehicle controller activates Bluetooth broadcasting and periodically sends broadcast signals. The mobile terminal begins scanning for nearby Bluetooth devices and monitors the vehicle controller's broadcast signals. Once the mobile terminal discovers the vehicle controller, it can send a connection request to it. This connection request typically includes information such as the mobile terminal's address, clock offset, and frequency hopping mode. Upon receiving the connection request, the vehicle controller establishes a Bluetooth link layer connection with the mobile terminal based on the information in the connection request. Once the link layer connection is established, the devices can begin transmitting data packets on the link layer. These packets can be control information or user data.
[0079] 102. Generate and send at least one heartbeat request to the mobile terminal according to a preset period; wherein the heartbeat request is used to generate a corresponding response result.
[0080] For example, after the vehicle-side controller establishes a Bluetooth link layer connection with the mobile terminal, the vehicle-side controller generates multiple heartbeat requests and actively and continuously sends the generated multiple heartbeat requests to the mobile terminal according to a preset period. The mobile terminal generates a response result corresponding to each heartbeat request based on the heartbeat request and its own application running status; the mobile terminal also feeds back each generated response result to the vehicle-side controller.
[0081] Among them, there may be multiple scenarios for the user vehicle application (Application, referred to as APP) in the mobile terminal, including the APP being killed by the system after normal connection, being reactivated or actively opened, etc. The heartbeat request received in each scenario corresponds to each response result.
[0082] 103. Receive a response result sent by the mobile terminal, and determine a pending connection mode corresponding to the mobile terminal according to the response result sent by the mobile terminal; wherein the pending connection mode is a connection mode of a Bluetooth connection to be established between the mobile terminal and the mobile terminal.
[0083] Exemplarily, the vehicle-side controller receives each response result sent by the mobile terminal, and identifies the response result sent by the mobile terminal based on a preset identification method to obtain the response type corresponding to the mobile terminal's behavior of actively sending a heartbeat request to the vehicle-side controller. Based on the connection mode of each Bluetooth connection corresponding to each response type, the connection mode of the Bluetooth connection corresponding to the response type corresponding to the mobile terminal can be determined as the connection mode of the Bluetooth connection to be established between the mobile terminal and the mobile terminal, that is, the connection mode to be established corresponding to the mobile terminal is obtained.
[0084] Among them, according to the reception time of each response result sent by the mobile terminal received by the vehicle-side controller, it can be judged whether the reception time of each response result is in one of the preset time ranges among multiple preset time ranges, and then according to the correspondence between each preset time range and each preset response type, the preset response type corresponding to the preset time range in which the reception time of each response result is located can be determined as the response type corresponding to the behavior of the mobile terminal actively sending a heartbeat request to the vehicle-side controller.
[0085] In addition, the signal characteristics of the response signal in each response result sent by the mobile terminal received by the vehicle-side controller, such as the high and low level characteristics and other data, can be used to identify the response type corresponding to the mobile terminal's active sending of a heartbeat request to the vehicle-side controller.
[0086] 104. Execute a Bluetooth connection operation with the mobile terminal according to a security authentication protocol corresponding to the connection method.
[0087] Exemplarily, after the vehicle-side controller determines the corresponding connection mode of the mobile terminal, it determines the preset security authentication protocol corresponding to the determined connection mode as the security authentication protocol currently needed based on the one-to-one mapping relationship between each connection mode and each preset security authentication protocol. According to the security authentication protocol, the vehicle-side controller controls the security authentication between the vehicle (or vehicle-side) and the mobile terminal. When the authentication between the vehicle and the mobile terminal is completed, the Bluetooth connection operation with the mobile terminal can be executed. At this time, the vehicle and the mobile terminal switch from the Bluetooth link layer connection to the corresponding Bluetooth connection mode under the security authentication protocol, so that when data is transmitted between the vehicle and the mobile terminal through the Bluetooth connection, data can be transmitted in accordance with the corresponding security scheme under the security authentication protocol, such as data encryption method, to improve the security of the Bluetooth connection between the vehicle and the mobile terminal.
[0088] In this embodiment, a Bluetooth connection method is provided. Based on the vehicle-side heartbeat update method, the Bluetooth connection method is refreshed through the preset response of the mobile terminal, and the Bluetooth connection operation between the mobile terminal is performed according to the security authentication protocol corresponding to the connection method, which can improve the security of the Bluetooth connection between the vehicle and the mobile terminal.
[0089] Figure 2 The process of the Bluetooth connection method provided by an embodiment of the present invention Figure 2 ,like Figure 2 As shown, the method includes:
[0090] 201. Receive a remote command sent by the vehicle cloud system through the telematics processor TBOX; wherein the remote command includes the created Bluetooth key.
[0091] For example, Figure 3 This is a diagram of the Bluetooth key system architecture provided by an embodiment of the present invention, such as Figure 3As shown, the Bluetooth key system consists of a vehicle-to-cloud system, a mobile terminal-to-cloud system (e.g., a mobile terminal key cloud), a vehicle-side Bluetooth key controller (i.e., a vehicle-side controller), and a mobile terminal. When a Bluetooth key is created, the vehicle-to-cloud system simultaneously pushes remote commands to both the mobile terminal and the vehicle. The vehicle forwards the remote commands from the vehicle-to-cloud system via a remote monitoring terminal or telematics box (TBOX) via the controller area network (CAN) to the vehicle-side controller. The vehicle-side controller receives the remote commands from the vehicle-to-cloud system, which include the created Bluetooth key and instructs installation of the Bluetooth key. Simultaneously, the mobile terminal receives remote commands from the vehicle-to-cloud system for processing.
[0092] 202. Install the Bluetooth key in the remote command and store the key information of the Bluetooth key.
[0093] For example, the vehicle-side controller installs the Bluetooth key requested by the remote command locally, obtaining the vehicle-side Bluetooth key, namely the Bluetooth Low Energy (BLE) module in the vehicle, and saves the key information of the vehicle-side Bluetooth key, including the key ID, expiration date, and the Bluetooth Media Access Control Address (MAC address) of the mobile terminal. Simultaneously, the mobile terminal receives the Bluetooth key sent by the vehicle-cloud system and installs it locally, obtaining the mobile-side Bluetooth key, namely the BLE module in the mobile terminal, and recording the MAC address, authentication key, and other information of the vehicle-side Bluetooth key.
[0094] 203. Start Bluetooth broadcasting and establish a Bluetooth link layer connection with the mobile terminal.
[0095] For example, this step may refer to step 101 and will not be described in detail here.
[0096] 204. Call and send application layer data to the mobile terminal; and receive the application layer data sent by the mobile terminal; wherein the application layer data includes device identification information and Bluetooth key information.
[0097] For example, Figure 4 A schematic diagram of the first connection process of a Bluetooth key provided by an embodiment of the present invention is shown as follows: Figure 4As shown in the figure, when a user first connects to a vehicle after registering and downloading a Bluetooth key, the vehicle-side controller controls the establishment of a Bluetooth link layer connection between the BLE in the vehicle and the BLE in the mobile terminal based on the corresponding vehicle-side features. Through the interconnected Bluetooth link layer, the vehicle-side controller can receive application layer data transmitted from the mobile terminal via the Bluetooth link layer. The application layer data includes device identification information and key information.
[0098] 205. Perform a standard security authentication operation with the mobile terminal according to the application layer data sent by the mobile terminal to obtain a Bluetooth pairing key sent by the mobile terminal.
[0099] For example, in combination Figure 4 The vehicle-side controller performs standard authentication on the application layer data sent by the mobile terminal according to the preset standard authentication protocol to complete the standard security authentication operation between the vehicle-side and the mobile terminal. At this time, after the standard security authentication is passed, the vehicle-side controller records the device identification information and key information of the mobile terminal from the application layer data, and saves the Bluetooth pairing long-term key (Long Term Key, abbreviated as LTK), which is the Bluetooth pairing key sent by the mobile terminal. After the authentication is passed, the mobile terminal marks the vehicle-side as a HID device, indicating that the vehicle-side can perform Bluetooth positioning of the mobile device without going through standard security authentication when the mobile device is connected in the future, and notify the various controllers in the vehicle to perform functions such as keyless unlocking of the vehicle.
[0100] Among them, the standard security authentication operation is performed based on the preset standard protocol.
[0101] 206. Perform Bluetooth security pairing with the mobile terminal according to the Bluetooth pairing key.
[0102] For example, in combination Figure 4 The vehicle-side controller performs Bluetooth secure pairing with the mobile terminal based on the retained Bluetooth pairing key, that is, performs authentication based on the pairing key, and obtains the authentication results of the vehicle-side controller and the mobile terminal to ensure that the connected mobile terminal is trustworthy, and then completes the Bluetooth secure pairing operation between the mobile terminal.
[0103] 207. If it is determined that the Bluetooth pairing with the mobile terminal is successful, a standard protocol connection is established with the mobile terminal according to the Bluetooth pairing key.
[0104] For example, in combination Figure 4After the vehicle-side controller controls the successful pairing between the vehicle-side BLE and the mobile terminal's BLE, it stores the pairing key and establishes a security authentication state. That is, based on the pairing key, it controls the establishment of a standard protocol connection between the vehicle-side BLE and the mobile terminal's BLE, such as an encrypted connection, so that the pairing key is used to encrypt subsequent communications to protect the confidentiality and integrity of data transmission.
[0105] In addition, after the first pairing between the vehicle-side BLE and the mobile terminal's BLE is completed, if the user's vehicle APP on the mobile terminal is killed or not activated by the system, the mobile terminal's system will control the mobile terminal's Bluetooth to automatically initiate a HID Bluetooth connection to the vehicle-side controller.
[0106] 208. Generate and store Bluetooth pairing information; wherein the Bluetooth pairing information includes a correspondence between Bluetooth key information, Bluetooth pairing key, and device identification information.
[0107] Exemplarily, the vehicle-side controller controls the secure pairing between the vehicle-side BLE and the mobile terminal's BLE. Both parties generate based on common rules, or one party generates and transmits to the other party, and generates rules to associate Bluetooth key information, such as key ID, key validity period, vehicle-side physical MAC address and other vehicle-side or device-side information. The vehicle-side controller generates and stores Bluetooth pairing information, and the Bluetooth pairing information includes the correspondence between Bluetooth key information, Bluetooth pairing key and device identification information.
[0108] For example, Figure 5 This is a diagram of the vehicle-side Bluetooth key storage data structure provided by an embodiment of the present invention, such as Figure 5 As shown in the figure, after the pairing between the BLE on the vehicle side and the BLE on the mobile terminal is completed, the vehicle-side controller establishes the corresponding relationship of "key identifier (ID) - key validity period - pairing key LTK - device-side physical MAC".
[0109] 209. Generate and send at least one heartbeat request to the mobile terminal according to a preset period; wherein the heartbeat request is used to generate a corresponding response result.
[0110] For example, this step may refer to step 102 and will not be described in detail here.
[0111] 210. Receive a response result sent by the mobile terminal, and determine a pending connection mode corresponding to the mobile terminal according to the response result sent by the mobile terminal; wherein the pending connection mode is a connection mode of a Bluetooth connection to be established between the mobile terminal and the mobile terminal.
[0112] For example, this step may refer to step 103 and will not be described in detail here.
[0113] In one example, step 210 includes: if it is determined that the response result sent by the mobile terminal received within the preset time period is the first preset result, then determining that the corresponding connection mode of the mobile terminal is a private protocol connection; if it is determined that the response result sent by the mobile terminal received within the preset time period is the second preset result, then determining that the corresponding connection mode of the mobile terminal is a standard protocol connection.
[0114] Exemplarily, the vehicle-side controller determines, based on the received response result, whether the time of receiving the response result is within a preset time period, and identifies the signal type of the response result to determine whether the signal type of the response result is within a first preset result. If it is determined that the response result sent by the mobile terminal received within the preset time period is the first preset result, for example, the response signal in the response result is a high-level signal, then it is determined that the connection mode of the Bluetooth connection to be established between the current vehicle-side BLE and the mobile terminal's BLE is a private protocol connection, that is, it is necessary to use the security solution corresponding to the preset private protocol to achieve security authentication between the vehicle-side and the mobile terminal. If it is determined that the response result sent by the mobile terminal received within the preset time period is the second preset result, for example, the response signal in the response result is a low-level signal, then it is determined that the connection mode of the Bluetooth connection to be established between the current vehicle-side BLE and the mobile terminal's BLE is a standard protocol connection, that is, it is necessary to use the security solution corresponding to the preset standard protocol to achieve security authentication between the vehicle-side and the mobile terminal. Among them, standard protocols can include car key-vehicle-mobile terminal protocols, mandatory authentication protocols, vehicle-machine interconnection protocols, etc.
[0115] In one example, step 210 further includes: if no response result sent by the mobile terminal is received within a preset time period, determining that the to-be-connected mode corresponding to the mobile terminal is a human interface device HID connection.
[0116] Exemplarily, the vehicle-side controller determines whether the time of receiving the response result is within a preset time period based on the received response result, and identifies the signal type of the response result to determine whether the signal type of the response result is within the first preset result. If the vehicle-side controller does not receive the response result sent by the mobile terminal within the preset time period, the mobile terminal has an APP killed or pulled to life situation. At this time, it is necessary to switch the Bluetooth connection mode, and the vehicle-side controller determines that the corresponding connection mode of the mobile terminal is a human-machine interface device HID connection. That is, it is necessary to use the security solution corresponding to the preset HID protocol to achieve security authentication between the vehicle and the mobile terminal. Among them, the HID connection can be that after the vehicle-side controller determines that the Bluetooth link layer connection with the mobile terminal is successful, the vehicle-side controller sends a broadcast notification of the successful Bluetooth connection to the HID controller; the HID controller obtains the Bluetooth address of the mobile terminal through the vehicle-side controller, and then calls the preset interface to establish a HID connection with the mobile terminal.
[0117] For example, Figure 6 A schematic diagram of a vehicle-side Bluetooth connection state switching process provided by an embodiment of the present invention is shown as follows: Figure 6 As shown, after the vehicle-side controller controls the establishment of a Bluetooth link layer connection between the BLE in the vehicle-side and the BLE in the mobile terminal by corresponding to the vehicle-side characteristics, both parties maintain the establishment of a Bluetooth link layer connection between the BLE in the vehicle-side and the BLE in the mobile terminal based on the recorded Bluetooth pairing key LTK. The vehicle-side actively sends a heartbeat to monitor the type of the current Bluetooth connection. Different response tags execute different protocol judgments, and the security solutions of different protocols are executed through the preset responses of the vehicle-side to different protocols. Specifically, when the vehicle-side controller sends N consecutive heartbeat cycles and the mobile terminal does not respond, it is determined that the current Bluetooth is a HID connection, and the preset security policy corresponding to the HID connection is executed, that is, the vehicle-side controller performs security authentication with both the mobile terminal and the corresponding security authentication protocol, and executes the Bluetooth connection operation between the mobile terminal, so that a HID connection is established between the BLE in the vehicle-side and the BLE in the mobile terminal. When the response result received by the vehicle-side controller is Tag1, it determines that the current connection is a private protocol connection and executes the preset security policy corresponding to the private protocol connection. That is, the vehicle-side controller exchanges application-layer data with the mobile terminal according to the corresponding security authentication protocol (preset private protocol) to complete standard security authentication; the vehicle-side establishes a security authentication state, turns on sensorless positioning and ranging, and performs a Bluetooth connection operation with the mobile terminal, so that a private protocol connection is established between the BLE in the vehicle and the BLE in the mobile terminal. When the response result received by the vehicle-side controller is Tag2, it determines that the current connection is a standard protocol connection and executes the preset security policy corresponding to the standard protocol connection. That is, the vehicle-side controller exchanges application-layer data with the mobile terminal according to the corresponding security authentication protocol (preset standard protocol) to complete standard security authentication; the vehicle-side establishes a security authentication state, turns on sensorless positioning and ranging, and performs a Bluetooth connection operation with the mobile terminal, so that a standard protocol connection is established between the BLE in the vehicle and the BLE in the mobile terminal.
[0118] Furthermore, there may be various scenarios for the user's vehicle APP. For example, if the APP is killed by the system after normal connection, the vehicle side switches from standard connection to HID connection. If the vehicle APP is reactivated or actively opened at this time, the vehicle side can switch to standard connection to improve the security of Bluetooth; on the other hand, if the standard protocol is adopted, the vehicle side should identify the current mobile terminal protocol connection standard and switch it to improve the system experience.
[0119] 211. Execute a Bluetooth connection operation with the mobile terminal according to a security authentication protocol corresponding to the connection method.
[0120] For example, this step may refer to step 104 and will not be described in detail here.
[0121] In one example, after step 211, the following steps are included:
[0122] The first step is to obtain the Bluetooth key information corresponding to the mobile terminal if it is determined to establish an HID connection with the mobile terminal.
[0123] In the second step, if it is determined that the Bluetooth key information corresponding to the mobile terminal is valid, the connection time and the number of connections for establishing the HID connection with the mobile terminal are determined.
[0124] In the third step, if it is determined that the connection time is within the preset time range, and / or if it is determined that the number of connections is less than or equal to the preset number of connections, then it is determined that the current HID connection with the mobile terminal is valid.
[0125] The fourth step is to execute the vehicle operation corresponding to the preset authority information according to the preset authority information.
[0126] For example, through the digital key permission configuration, you can choose whether HID Bluetooth quick connect technology can be used to unlock or start the vehicle, and prohibit the execution of specific operations such as automatic unlocking; and through the vehicle-side preset system configuration, you can set the effective time range or effective connection number of the HID connection, such as allowing the HID connection time to be X hours or allowing Y connections. Figure 7 A schematic diagram of a Bluetooth connection validity security policy determination process according to an embodiment of the present invention is shown in FIG. Figure 7As shown, if a HID connection is established with a mobile terminal, the vehicle-side controller first queries the Bluetooth key's LTK stored on the vehicle to obtain the Bluetooth key information corresponding to the mobile terminal, including the Bluetooth key's key ID and key validity period corresponding to the mobile terminal's device MAC address. The vehicle-side controller then analyzes the Bluetooth key information to determine whether the Bluetooth key information is valid, such as whether the Bluetooth key's validity period has expired or whether the LTK is valid. If the vehicle-side controller determines that the Bluetooth key information is valid, it then obtains the connection time and number of connections to establish the HID connection with the mobile terminal. The number of connections is the cumulative number of HID connections established with the mobile terminal, i.e., the preset HID usage count. If the Bluetooth key information is determined to be invalid, the Bluetooth connection is disconnected and the vehicle-side key data, including the Bluetooth key's key ID, device MAC address, and other data, is deleted. The vehicle-side controller compares the determined connection time with a preset time range, i.e., a preset effective time range, and compares the determined number of connections with a preset number of connections, i.e., a preset number of effective connections, to determine whether the preset HID usage times or the time limit corresponding to the preset time range are met. If it is determined that the connection time is within the preset time range, and / or if it is determined that the number of connections is less than or equal to the preset number of connections, then it is determined that the current HID connection with the mobile terminal is valid. At this time, the preset permission information corresponding to the mobile terminal is obtained. The preset permission information indicates whether the mobile terminal has the permission to control the vehicle to perform vehicle operations through the Bluetooth connection. If it is determined that the mobile terminal has the permission to control the vehicle to perform vehicle operations through the Bluetooth connection, then the vehicle is controlled to perform the corresponding vehicle operations; for example, keyless entry and exit and active vehicle control functions are realized for the entire vehicle. If the preset number of HID usage times or the time limit corresponding to the preset time range are not met, the Bluetooth connection is disconnected and the vehicle-side secret key data is deleted.
[0127] Furthermore, by configuring the digital key permissions, you can choose whether HID Bluetooth quick connect technology can be used to unlock or start the vehicle, or by setting the valid time or number of valid connections of the HID connection, you can further improve the security of the system.
[0128] In one example, combining Figure 3 The Bluetooth key system also includes a mobile terminal cloud system; after determining that a HID connection is established with the mobile terminal, it also includes:
[0129] Step 1: If it is determined that the current Bluetooth connection with the mobile terminal is switched from the HID connection to the standard protocol connection, an authentication request is sent to the mobile terminal cloud system; wherein the authentication request is used to request standard security authentication processing.
[0130] Step 2: Connect to the corresponding security authentication protocol according to the standard protocol, perform the standard protocol connection operation with the mobile terminal; and update the Bluetooth key information.
[0131] Exemplarily, the Bluetooth connection mode is identified and switched through heartbeat monitoring. When the vehicle-side controller determines that the current Bluetooth connection with the mobile terminal has switched from an HID connection to a standard protocol connection, for example, the vehicle APP is reactivated, or the user actively opens the APP, or the mobile phone manufacturer's cloud APP is pulled up by the system, the vehicle-side needs to re-perform standard security authentication. Specifically, the vehicle-side controller sends an authentication request to the mobile terminal cloud system; wherein, the authentication request is used to request standard security authentication processing. At this time, the vehicle-side controller connects to the corresponding security authentication protocol according to the standard protocol, and performs security authentication with the mobile terminal. When the security authentication passes, the standard protocol connection operation with the mobile terminal is executed. At the same time, the vehicle-side controller updates the stored Bluetooth key information according to the connected mobile terminal. The Bluetooth key information includes key ID, key validity period, vehicle-side physical MAC, etc., as well as information such as the LTK pairing key bound to the above information.
[0132] Among them, based on the security authentication protocol corresponding to the standard protocol connection, the two parties exchange encryption keys to establish a secure connection. Among them, the long-term key LTK can be exchanged for subsequent encrypted connections; other keys can also be generated, such as the Connection Signature Resolving Key (CSRK) and the Identity Resolving Key (IRK); the vehicle-side controller can use the service discovery protocol to query the services available on the mobile terminal, and the mobile terminal responds to the query of the vehicle-side controller and provides a list of services it supports (such as audio, file transfer, etc.); or, select a specific service channel for data transmission (such as audio streaming, file transfer, etc.) as needed.
[0133] Furthermore, when it is determined that the Bluetooth connection has switched from an HID connection to a standard connection, the vehicle-side controller needs to re-perform standard security authentication to establish a more secure Bluetooth security channel and respond to the user's keyless entry and exit and active vehicle control functions.
[0134] 212. In response to the Bluetooth key expiration signal, delete the Bluetooth pairing information and disconnect the Bluetooth connection with the mobile terminal.
[0135] For example, in combination Figure 3 、 Figure 7When the vehicle-side controller receives the Bluetooth key expiration signal from the Bluetooth key in the vehicle, the vehicle-side controller responds and obtains the validity period information saved when the Bluetooth key is first connected. Through the validity period information and the stored corresponding relationship data structure, the corresponding Bluetooth key ID and LTK and other information are matched. According to the Bluetooth key ID and LTK and other information, the Bluetooth pairing information stored in the vehicle is actively deleted; wherein, the Bluetooth pairing information includes the correspondence between "key ID-key validity period-pairing key LTK-device-side physical MAC", and the Bluetooth connection between the mobile terminal is disconnected to realize the automatic expiration of the vehicle-side Bluetooth key.
[0136] In one example, combining Figure 3 The Bluetooth key system also includes a car cloud system; after step 211, the following steps are also included:
[0137] Step 1: Receive key update information sent by the car cloud system; wherein the key update information is generated based on the status update signal of the created Bluetooth key.
[0138] Step 2: Identify the Bluetooth key to be deleted based on the key update information sent by the car cloud system.
[0139] Step 3: If it is determined that the Bluetooth key to be deleted is the HID connection object currently connected to the mobile terminal, the key information of the Bluetooth key to be deleted is deleted, and the Bluetooth connection with the mobile terminal is disconnected.
[0140] For example, when the vehicle owner actively revokes and the shared user returns the Bluetooth key, the vehicle-cloud system generates a status update signal corresponding to the created Bluetooth key, instructing the Bluetooth key information to be updated. Based on the Bluetooth key status update signal, the vehicle-cloud system updates the key information of the Bluetooth key, obtains the key update information, packages the Bluetooth key update information into a remote control command, and transmits it to the vehicle-side controller. The vehicle-side controller receives the remote control command sent by the vehicle-cloud system and obtains the key update information contained therein. Based on the key update information, such as the key ID, the vehicle-side controller identifies the Bluetooth key corresponding to the key update information as the Bluetooth key to be deleted. The vehicle-side controller then identifies the connection status of the Bluetooth key to be deleted. If it determines that the Bluetooth key to be deleted is the HID connection object between the vehicle and the mobile terminal, the vehicle-side controller deletes the key information of the Bluetooth key to be deleted and disconnects the Bluetooth connection with the mobile terminal, thereby actively deactivating the Bluetooth key.
[0141] Among them, when the Bluetooth key is updated (including active scenarios such as sharing, recycling, and return by the shared user by the car owner; passive scenarios such as key expiration), the car cloud pushes the key information update command to the car and mobile terminals through the above-mentioned remote command channel to complete information synchronization.
[0142] In this embodiment, based on the above embodiments, on the one hand, after the mobile terminal Bluetooth key completes a standard connection and pairing, the vehicle side saves the Bluetooth pairing information and associates it with the validity of the Bluetooth key, and subsequent connections do not rely on the APP running in the background of the mobile phone; on the other hand, in terms of security, the Bluetooth connection LTK pairing key of the vehicle side is managed by remotely sending key information instructions from the digital key cloud to the vehicle side for synchronization; at the same time, the vehicle side authentication protocol is automatically switched to reduce the frequency of use of non-secure HID connections, and increase permission restrictions and the update frequency of LTK pairing keys, thereby further improving the security of the Bluetooth key system.
[0143] Figure 8 A schematic diagram of the structure of a Bluetooth connection device provided by an embodiment of the present invention is shown in FIG. Figure 8 As shown, the vehicle-side controller in the Bluetooth key system is installed; the Bluetooth key system also includes a mobile terminal; the device includes:
[0144] The first connection module 401 is used to start Bluetooth broadcasting and establish a Bluetooth link layer connection with the mobile terminal;
[0145] The sending module 402 is configured to generate and send at least one heartbeat request to the mobile terminal according to a preset period; wherein the heartbeat request is used to generate a corresponding response result;
[0146] The determination module 403 is configured to receive the response result sent by the mobile terminal and determine the pending connection mode corresponding to the mobile terminal according to the response result sent by the mobile terminal; wherein the pending connection mode is the connection mode of the Bluetooth connection to be established between the mobile terminal and the mobile terminal;
[0147] The second connection module 404 is configured to perform a Bluetooth connection operation with the mobile terminal according to a security authentication protocol corresponding to the to-be-connected mode.
[0148] Furthermore, the determination module 403 is specifically used to: if it is determined that the response result sent by the mobile terminal received within the preset time period is the first preset result, then determine that the corresponding connection mode of the mobile terminal is a private protocol connection; if it is determined that the response result sent by the mobile terminal received within the preset time period is the second preset result, then determine that the corresponding connection mode of the mobile terminal is a standard protocol connection.
[0149] Furthermore, the determining module 403 is further specifically configured to: if no response result sent by the mobile terminal is received within a preset time period, determine that the to-be-connected mode corresponding to the mobile terminal is a human interface device HID connection.
[0150] Furthermore, in the second connection module 404, after executing the Bluetooth connection operation with the mobile terminal, the device is also used to: if it is determined that a HID connection is established with the mobile terminal, obtain the Bluetooth key information corresponding to the mobile terminal; if it is determined that the Bluetooth key information corresponding to the mobile terminal is valid, determine the connection time and number of connections for establishing the HID connection with the mobile terminal; if it is determined that the connection time is within a preset time range, and / or if it is determined that the number of connections is less than or equal to the preset number of connections, determine that the current HID connection with the mobile terminal is valid; and according to the preset authority information, execute the vehicle operation corresponding to the preset authority information.
[0151] Furthermore, the Bluetooth key system also includes a mobile terminal cloud system; in the second connection module 404, after determining that a HID connection is established with the mobile terminal, the device is also used to: if it is determined that the current Bluetooth connection with the mobile terminal is switched from a HID connection to a standard protocol connection, send an authentication request to the mobile terminal cloud system; wherein the authentication request is used to request standard security authentication processing; according to the security authentication protocol corresponding to the standard protocol connection, execute the standard protocol connection operation with the mobile terminal; and update the Bluetooth key information.
[0152] Furthermore, after the first connection module 401 is used to establish a Bluetooth link layer connection with the mobile terminal, the device is also used to: call and send application layer data to the mobile terminal; and receive application layer data sent by the mobile terminal; wherein the application layer data includes device identification information and Bluetooth key information; according to the application layer data sent by the mobile terminal, perform standard security authentication operations with the mobile terminal to obtain the Bluetooth pairing key sent by the mobile terminal; according to the Bluetooth pairing key, perform Bluetooth security pairing with the mobile terminal; if it is determined that the Bluetooth pairing with the mobile terminal is successful, establish a standard protocol connection with the mobile terminal according to the Bluetooth pairing key; generate and store Bluetooth pairing information; wherein the Bluetooth pairing information includes the correspondence between the Bluetooth key information, the Bluetooth pairing key and the device identification information.
[0153] Furthermore, the device is also used to: in response to a Bluetooth key expiration signal, delete the Bluetooth pairing information and disconnect the Bluetooth connection with the mobile terminal.
[0154] Furthermore, the Bluetooth key system also includes a car cloud system; the device is also used to: receive key update information sent by the car cloud system; wherein the key update information is generated based on the status update signal of the created Bluetooth key; according to the key update information sent by the car cloud system, identify the Bluetooth key to be deleted; if it is determined that the Bluetooth key to be deleted is the HID connection object currently with the mobile terminal, delete the key information of the Bluetooth key to be deleted, and disconnect the Bluetooth connection with the mobile terminal.
[0155] Furthermore, the Bluetooth key system also includes a vehicle cloud system; the device is also used to: receive remote instructions sent by the vehicle cloud system through the remote information processor TBOX; wherein the remote instructions include the created Bluetooth key; install the Bluetooth key in the remote instructions, and store the key information of the Bluetooth key.
[0156] The device of this embodiment can execute the technical solution in the above method. Its specific implementation process and technical principles are the same and will not be repeated here.
[0157] Figure 9 This is a schematic diagram of the structure of a vehicle-side controller provided by an embodiment of the present invention. Figure 9 As shown, the vehicle-side controller may include: a memory 501 and at least one processor 502.
[0158] The memory 501 is used to store programs. Specifically, the programs may include program codes, and the program codes include computer-executable instructions.
[0159] The memory 501 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory.
[0160] Processor 502 is configured to execute computer-executable instructions stored in memory 501 to implement the method described in the aforementioned method embodiment. Processor 502 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention.
[0161] Optionally, the vehicle-side controller may also include a receiver 503 and a transmitter 504. In a specific implementation, if the receiver 503, transmitter 504, memory 501, and processor 502 are implemented independently, the receiver 503, transmitter 504, memory 501, and processor 502 may be interconnected via a bus and communicate with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be divided into address buses, data buses, control buses, etc., but this does not mean that there is only one bus or one type of bus.
[0162] Optionally, in a specific implementation, if the receiver 503, transmitter 504, memory 501 and processor 502 are integrated into a module, the receiver 503, transmitter 504, memory 501 and processor 502 can communicate through an internal interface.
[0163] The present invention also provides a vehicle, comprising a vehicle-side controller; the vehicle-side controller is used to execute the method in the above embodiment.
[0164] The present invention also provides a Bluetooth key system, which includes a vehicle-side controller and a mobile terminal in a vehicle; the vehicle-side controller is used to execute the method in the above embodiment.
[0165] The present invention also provides a computer-readable storage medium, in which computer program instructions are stored. When a processor executes the computer program instructions, the solution in the above embodiment is implemented.
[0166] The present invention also provides a computer program product, including a computer program, which implements the solution in the above embodiment when executed by a processor.
[0167] The computer-readable storage medium described above can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The computer-readable storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.
[0168] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be an integral part of the processor. The processor and the readable storage medium can be located in an application-specific integrated circuit.
[0169] Those skilled in the art will appreciate that all or part of the steps in the above-described method embodiments can be implemented using hardware associated with program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps in the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0170] Finally, it should be noted that the above embodiments are only preferred embodiments for fully illustrating the present invention, and the scope of protection of the present invention is not limited thereto. Equivalent substitutions or modifications made by those skilled in the art based on the present invention are all within the scope of protection of the present invention.
Claims
1. A Bluetooth connection method, characterized in that: The method is applied to a vehicle-side controller of a Bluetooth key system; the Bluetooth key system also includes a mobile terminal; the method includes: Enable Bluetooth broadcasting and establish a Bluetooth link layer connection with the mobile terminal; Generate and send at least one heartbeat request to the mobile terminal according to a preset period; wherein the heartbeat request is used to generate a corresponding response result; Receiving a response result sent by the mobile terminal, and determining a pending connection mode corresponding to the mobile terminal according to the response result sent by the mobile terminal; wherein the pending connection mode is a connection mode of a Bluetooth connection to be established between the mobile terminal and the mobile terminal; Executing a Bluetooth connection operation with the mobile terminal according to a security authentication protocol corresponding to the to-be-connected mode; The Bluetooth key system further includes a mobile terminal cloud system, and the method further includes: If it is determined that the current Bluetooth connection between the mobile terminal and the mobile terminal is switched from the HID connection to the standard protocol connection, an authentication request is sent to the mobile terminal cloud system; wherein the authentication request is used to request standard security authentication processing; According to the security authentication protocol corresponding to the standard protocol connection, a standard protocol connection operation is performed with the mobile terminal; and Bluetooth key information is updated.
2. The method according to claim 1, characterized in that The determining, according to the response result sent by the mobile terminal, a corresponding connection mode of the mobile terminal includes: If it is determined that the response result sent by the mobile terminal received within the preset time period is the first preset result, determining that the to-be-connected mode corresponding to the mobile terminal is a private protocol connection; If it is determined that the response result sent by the mobile terminal received within the preset time period is the second preset result, it is determined that the to-be-connected mode corresponding to the mobile terminal is a standard protocol connection.
3. The method according to claim 2, characterized in that The method further comprises: If no response result sent by the mobile terminal is received within the preset time period, it is determined that the to-be-connected mode corresponding to the mobile terminal is a human interface device HID connection.
4. The method according to claim 1, wherein After performing the Bluetooth connection operation with the mobile terminal, the method further includes: If it is determined that a HID connection is established with the mobile terminal, obtaining Bluetooth key information corresponding to the mobile terminal; If it is determined that the Bluetooth key information corresponding to the mobile terminal is valid, determining the connection time and connection number of the current HID connection established with the mobile terminal; If it is determined that the connection time is within a preset time range, and / or if it is determined that the number of connections is less than or equal to a preset number of connections, then determining that the current HID connection with the mobile terminal is valid; According to the preset authority information, the vehicle operation corresponding to the preset authority information is executed.
5. The method according to claim 1, wherein After establishing a Bluetooth link layer connection with the mobile terminal, the method further includes: Calling and sending application layer data to the mobile terminal; and receiving the application layer data sent by the mobile terminal; wherein the application layer data includes device identification information and Bluetooth key information; Performing a standard security authentication operation with the mobile terminal based on the application layer data sent by the mobile terminal to obtain a Bluetooth pairing key sent by the mobile terminal; Performing Bluetooth secure pairing with the mobile terminal according to the Bluetooth pairing key; If it is determined that the Bluetooth pairing with the mobile terminal is successful, establishing a standard protocol connection with the mobile terminal according to the Bluetooth pairing key; Generate and store Bluetooth pairing information; wherein the Bluetooth pairing information includes a correspondence between the Bluetooth key information, the Bluetooth pairing key and the device identification information.
6. The method according to claim 5, characterized in that The method further comprises: In response to the Bluetooth key expiration signal, the Bluetooth pairing information is deleted, and the Bluetooth connection with the mobile terminal is disconnected.
7. The method according to any one of claims 1 to 6, characterized in that The Bluetooth key system also includes a car-cloud system; the method further includes: Receiving key update information sent by the car cloud system; wherein the key update information is generated based on the status update signal of the created Bluetooth key; Identify the Bluetooth key to be deleted according to the key update information sent by the car cloud system; If it is determined that the Bluetooth key to be deleted is the HID connection object currently connected to the mobile terminal, the key information of the Bluetooth key to be deleted is deleted, and the Bluetooth connection with the mobile terminal is disconnected.
8. The method according to any one of claims 1 to 6, characterized in that The Bluetooth key system also includes a car-cloud system; the method further includes: Receiving a remote command sent by the vehicle cloud system through the telematics processor TBOX; wherein the remote command includes the created Bluetooth key; The Bluetooth key in the remote command is installed, and key information of the Bluetooth key is stored.
9. A Bluetooth connection device, characterized in that: The device is applied to a vehicle-side controller of a Bluetooth key system; the Bluetooth key system also includes a mobile terminal; the device includes: A first connection module, configured to enable Bluetooth broadcasting and establish a Bluetooth link layer connection with the mobile terminal; A sending module, configured to generate and send at least one heartbeat request to the mobile terminal according to a preset period; wherein the heartbeat request is used to generate a corresponding response result; a determination module, configured to receive a response result sent by the mobile terminal and determine a pending connection mode corresponding to the mobile terminal according to the response result sent by the mobile terminal; wherein the pending connection mode is a connection mode of a Bluetooth connection to be established between the mobile terminal and the mobile terminal; A second connection module is configured to perform a Bluetooth connection operation with the mobile terminal according to a security authentication protocol corresponding to the to-be-connected mode; The Bluetooth key system further includes a mobile terminal cloud system, and the second connection module is further configured to send an authentication request to the mobile terminal cloud system if it is determined that the current Bluetooth connection between the mobile terminal and the mobile terminal is switched from a HID connection to a standard protocol connection; wherein the authentication request is used to request standard security authentication processing; According to the security authentication protocol corresponding to the standard protocol connection, a standard protocol connection operation is performed with the mobile terminal; and Bluetooth key information is updated.
10. A vehicle-side controller, characterized in that: include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 8.
11. A vehicle, characterized in that: The vehicle includes a vehicle-side controller; the vehicle-side controller is used to execute the method as described in any one of claims 1-8.
12. A Bluetooth key system, characterized in that: The Bluetooth key system includes a vehicle-side controller and a mobile terminal in the vehicle; the vehicle-side controller is used to execute the method as described in any one of claims 1-8.
13. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 8 when executed by a processor.
14. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 8 when executed by a processor.
Citation Information
Patent Citations
Non-contact vehicle unlocking method and device
CN115782814A
Convenient connection method for automobile Bluetooth key
CN116142130A
Vehicle digital key communication method and device, terminal equipment and storage medium
CN119052351A
UWB digital key management method and device
CN120075763A