Vehicle bluetooth connection method, apparatus, and computer-readable storage medium
By using SBM to send random numbers between APP and STB for mutual verification, the connection mechanism is solved, and the Bluetooth connection instability caused by the change of MAC address after the screen of the mobile phone system is closed is achieved, and the stability and security of Bluetooth connection are improved, ensuring the connection between the legal APP and the STB.
Patent Information
- Application Number
- PCT/CN2024/088602
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-02-19
- Filing Date
- 2024-04-18
- Publication Date
- 2025-08-28
AI Technical Summary
Due to the change in the MAC address after the screen is off by the mobile phone system, the vehicle's Bluetooth sensor field strength is inaccurate, which affects the positioning accuracy.
After the connection authentication of the mobile terminal APP and the vehicle-side intelligent Bluetooth module SBM, the SBM sends a random number to the APP and the Bluetooth satellite module STB at the same time, and the APP and STB perform mutual verification. If the verification is passed, a Bluetooth connection will be established, and the two-way random number verification and vehicle identification information filtering ensure the security and stability of the connection.
Improves the stability and security of Bluetooth connections, ensuring that only legitimate APPs can establish connections with designated STBs, providing a better user experience.
Smart Images

Figure CN2024088602_28082025_PF_FP_ABST
Abstract
Description
Vehicle Bluetooth connection method, device and computer-readable storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to a Chinese patent application filed with the Patent Office of China on February 19, 2024, with application number 202410182577.2, entitled “A vehicle Bluetooth connection method, device and computer-readable storage medium”, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present invention relates to the field of intelligent driving technology, and in particular to a vehicle Bluetooth connection method, device, and computer-readable storage medium. Background Art
[0004] With the continuous advancement of intelligent and digital technologies, the number of Bluetooth sensors in vehicles continues to increase. One of the main functions of these Bluetooth sensors is to obtain positioning information from the driver's mobile phone app to provide more accurate vehicle location services. However, due to mobile phone compatibility issues, when the phone system is turned off and running in the background, the MAC address is prone to change, resulting in inaccurate Bluetooth sensor field strength received by the vehicle, causing positioning errors.
[0005] Summary of the Invention
[0006] The technical problem to be solved by the embodiments of the present invention is to provide a vehicle Bluetooth connection method, device and computer-readable storage medium to effectively improve the stability of the Bluetooth connection.
[0007] To solve the above technical problems, the present invention provides a vehicle Bluetooth connection method, comprising the following steps:
[0008] After the mobile terminal's application APP is successfully connected and authenticated with the vehicle's smart Bluetooth module SBM, the SBM sends a random number to both the APP and the Bluetooth satellite module STB.
[0009] The APP and the STB respectively receive the random number and perform mutual verification based on the random number; if the verification is successful, a Bluetooth connection is established between the APP and the STB.
[0010] Preferably, the random number includes a first random number and a second random number, the SBM sends the first random number to the STB, and sends the second random number to the APP after being encrypted.
[0011] Preferably, the APP and the STB respectively receive the random number and perform mutual verification based on the random number, specifically including:
[0012] The STB verifies whether the first random number obtained by the APP is consistent with the first random number obtained by the SBM;
[0013] The APP verifies whether the second random number transmitted by the STB is consistent with the second random number obtained by the SBM.
[0014] Preferably, if the random numbers are consistent after mutual verification, the Bluetooth connection between the APP and the STB is successful; if they are inconsistent, the Bluetooth connection fails, and the number of Bluetooth connection failures is recorded. When the number of Bluetooth connection failures exceeds a preset number, the Bluetooth connection between the APP and the STB is disconnected.
[0015] Preferably, after the connection authentication between the APP and the SBM is successful, the SBM wakes up the STB in the dormant state and generates the random number.
[0016] Preferably, after the APP is successfully connected and authenticated with the SBM, before being connected to the STB, the APP periodically collects the signal strength RSSI of the STB and transmits the RSSI to the SBM.
[0017] Preferably, if the APP is not successfully connected to all STBs, the RSSI of the unconnected STB is transmitted, and 0 is transmitted by default for the connected STB; if the APP is successfully connected to all STBs, the RSSI is no longer transmitted.
[0018] Preferably, the APP uses the vehicle identification information to filter the STB broadcast information that is not of the current vehicle.
[0019] Preferably, after the APP successfully connects and authenticates with multiple vehicle-side SBMs, the APP encrypts the collected RSSI of each vehicle-side STB into the second random number and transmits it to the corresponding vehicle-side SBM; the APP also encrypts the collected RSSI of the SBM into the first random number and transmits it to the corresponding vehicle-side STB, which then returns it to the SBM. The vehicle-side SBM performs positioning calculations based on the two sets of RSSIs received.
[0020] The present invention also provides a vehicle Bluetooth connection device, comprising:
[0021] one or more processors;
[0022] Memory;
[0023] One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the vehicle Bluetooth connection method.
[0024] The present invention also provides a vehicle Bluetooth connection device, comprising: an application APP on a mobile terminal, a smart Bluetooth module SBM on the vehicle side, and a Bluetooth satellite module STB. The SBM is used to send a random number to the APP and the STB at the same time after the APP is successfully connected and authenticated with it; the APP and STB respectively receive the random number and perform mutual verification based on the random number; if the verification is successful, a Bluetooth connection is established between the APP and the STB.
[0025] The present invention also provides a computer-readable storage medium, which includes a stored computer program; wherein, when the computer program is running, it controls the device where the computer-readable storage medium is located to execute the vehicle Bluetooth connection method.
[0026] The implementation of the present invention has the following beneficial effects: the embodiment of the present invention improves the connection mechanism. By using the random numbers sent simultaneously by the SBM between the APP and the STB for mutual verification, a closed-loop connection and verification process is formed between the APP, SBM and STB. Regardless of how the MAC address of the APP changes, the SBM and STB can share and verify the identity information of the APP, ensuring that only legitimate APPs can establish a connection with the designated STB, greatly improving the stability and security of the Bluetooth connection, and providing users with a better user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0028] FIG1 is a flow chart of a vehicle Bluetooth connection method according to an embodiment of the present invention.
[0029] FIG2 is a schematic diagram of a specific flow chart of a vehicle Bluetooth connection method according to an embodiment of the present invention.
[0030] FIG3 is a schematic diagram of sending random numbers in an embodiment of the present invention.
[0031] FIG4 is a schematic diagram of Bluetooth communication between a mobile phone and a vehicle in an embodiment of the present invention.
[0032] FIG5 is a schematic diagram of Bluetooth connection between a mobile phone and multiple vehicle terminals in an embodiment of the present invention. DETAILED DESCRIPTION
[0033] The following descriptions of the embodiments refer to the accompanying drawings to illustrate specific embodiments in which the present invention may be implemented.
[0034] As shown in FIG1 , a first embodiment of the present invention provides a vehicle Bluetooth connection method, including the following steps:
[0035] After the mobile terminal's application APP is successfully connected and authenticated with the vehicle's smart Bluetooth module SBM (Smart Ble Module), the SBM sends a random number to both the APP and the Bluetooth satellite module STB (Satellite Bluetooth Module).
[0036] The APP and the STB respectively receive the random number and perform mutual verification based on the random number; if the verification is successful, a Bluetooth connection is established between the APP and the STB.
[0037] As mentioned above, in the prior art, SBM connects to APP and STB respectively, but there is no direct connection between APP and STB. When the MAC address of APP changes, although SBM can recognize that it is a legitimate APP because it maintains a connection with APP, STB cannot recognize the APP, resulting in the inability to establish a connection between APP and STB. In order to solve this problem, the embodiment of the present invention improves the connection mechanism so that a closed-loop connection and verification process is formed between APP, SBM and STB, ensuring that a stable Bluetooth connection can be maintained under any circumstances. Specifically, the embodiment of the present invention uses the random numbers sent simultaneously by SBM between APP and STB for mutual verification. No matter how the MAC address of APP changes, SBM and STB can share and verify the identity information of APP, ensuring that only legitimate APP can establish a connection with the specified STB, greatly improving the stability and security of the Bluetooth connection, and providing users with a better user experience.
[0038] It should be noted that before the implementation of the present invention, it is necessary to ensure that there is a one-to-one correspondence between each vehicle and its unique vehicle VIN number, SBM and STB broadcast information. SBM and STB are components used to establish a Bluetooth connection in the embodiment of the present invention. SBM is responsible for connection authentication and random number generation with APP, while STB is responsible for broadcasting Bluetooth signals and connecting with APP. Each vehicle is equipped with an SBM and STB corresponding to its vehicle VIN number, that is, during the binding process, it is necessary to associate the vehicle VIN number with the corresponding SBM and STB, and ensure a one-to-one correspondence between them. In this way, when APP tries to establish a connection with the current vehicle, it can determine which SBM and STB it should communicate with by identifying the vehicle VIN number.
[0039] This one-to-one correspondence is established through a binding process, typically completed during vehicle production or sales. During this process, the manufacturer or distributor associates the vehicle's VIN number with the corresponding SBM and STB, storing this association in a database or system. When an app attempts to establish a connection with the vehicle, it retrieves the relevant information from the database to determine which SBM and STB it should communicate with.
[0040] Specifically, referring to Figures 2-4, in this embodiment of the present invention, before the SBM sends a random number to the app and STB, the app first authenticates the connection with the SBM, while the STB is in a dormant state. The app authenticates the SBM and confirms their identities, establishing a secure communication channel and ensuring a secure connection between the two. This ensures that only legitimate apps can establish a connection with the vehicle and perform subsequent operations.
[0041] After the APP successfully connects and authenticates the SBM, the SBM wakes up the STB. Furthermore, the SBM generates two sets of random numbers: the first random number Randn_STB_A and the second random number Randn_APP_B (encrypted by the security chip SE, they become Randn_STB_A1 and Randn_APP_B1, respectively). The SBM sends Randn_STB_A and Randn_APP_B to the STB, and sends Randn_STB_A1 and Randn_APP_B1 to the APP, then waits for the APP to connect to all STBs in parallel. The random number Randn_STB_A is used to prevent invalid devices from requesting to connect to the STB via the APP; the random number Randn_APP_B is used to prevent invalid devices from disguising themselves as STBs and connecting to the APP.
[0042] After the APP is successfully authenticated with the SBM, before it is connected to the STB, it is necessary to periodically (for example, every 500 milliseconds) collect the signal strength RSSI (Received Signal Strength Indication) of the STB and pass it to the SBM. If the APP is not successfully connected to all STBs, it is necessary to pass the RSSI of the unconnected STB, and the default transmission of 0 for the connected one; if the APP is successfully connected to all STBs, it is not necessary to pass the RSSI (in this case, the RSSI is collected by the connected STB and passed to the SBM). The transmission of RSSI is crucial to maintaining the positioning effect of the SBM. If the APP scans the STB but the connection takes a long time, the positioning effect of the SBM may be reduced. For example, if the user is close to the car door during the reconnection process, but the connection between the APP and the STB has not been established, the positioning information during this period may be inaccurate. Therefore, the embodiment of the present invention can avoid the aforementioned defects by transmitting RSSI through the APP.
[0043] Next, the APP uses vehicle identification information (such as VIN number) to filter out STB broadcast information that is not the current vehicle to ensure that the APP only communicates with the STB of the current vehicle. This is because there may be multiple vehicles in an area with STBs broadcasting, and the APP needs to use some method to determine which broadcast information is related to the current vehicle. After filtering, the APP only requests and connects to the specified STB. For example, the broadcast names of the four STBs of the current vehicle are ("VIN" + "D1"), ("VIN" + "P1"), ("VIN" + "R1") and ("VIN" + "R2"). The APP will identify these broadcast names related to the current vehicle and request to connect to these specified STBs.
[0044] When APP connects to a designated STB, it needs to send the first random number Randn_STB_A to the STB currently requesting the connection, and the STB simultaneously sends the second random number Randn_APP_B to APP for mutual verification: (1) STB verifies whether the first random number Randn_STB_A obtained by APP is consistent with the first random number Randn_STB_A obtained by SBM; (2) APP verifies whether the second random number Randn_APP_B transmitted by STB is consistent with the second random number Randn_APP_B obtained by SBM; if they are consistent, the connection is successful. This two-way verification mechanism ensures that the connection will only be successfully established when both devices hold the correct random number. If the verification is inconsistent, the connection fails, and it is necessary to retry connecting APP and STB, and record the number of Bluetooth connection failures n. If the number of Bluetooth connection failures n>N, the Bluetooth connection between APP and the STB is disconnected.
[0045] It should be noted that the SBM will generate different random numbers based on the number of STBs installed in the vehicle, so that each STB can independently connect and authenticate with the APP, ensuring the security and accuracy of the connection. For example, the vehicle shown in Figure 4 is equipped with four STBs (STB1 to STB4). The SBM will generate four different sets of random numbers - (Randn_STB_A1, Randn_APP_B1), (Randn_STB_A2, Randn_APP_B2), (Randn_STB_A3, Randn_APP_B3), and (Randn_STB_A4, Randn_APP_B4), corresponding to these four STBs respectively.
[0046] In the above process, the use of vehicle identification information to filter STB broadcasts, the use of bidirectional random codes to verify the authenticity of the connection, and the setting of a failure limit to prevent malicious connection attempts ensure that the Bluetooth connection between the vehicle and the app is both safe and reliable.
[0047] Referring again to Figure 5, in an embodiment of the present invention, the app can also simultaneously establish connections with multiple vehicle-side SBMs and STBs. For example, after authentication is successful, the app encrypts the collected RSSI of the STB into Randn_APP_B and transmits it to the SBM of vehicle 1. Simultaneously, the app also encrypts the collected RSSI of the SBM into Randn_STP_A and transmits it to the STB. The STB then returns it to the SBM. The SBM of vehicle 1 combines the two sets of RSSIs for positioning. Similarly, after authentication is successful, the app encrypts the collected RSSI of the STB into Randn_APP_D (equivalent to the second random number) and transmits it to the SBM of vehicle 2. Simultaneously, the app also encrypts the collected RSSI of the SBM into Randn_STP_C (equivalent to the first random number) and transmits it to the STB. The STB then returns it to the SBM. The SBM of vehicle 2 combines the two sets of RSSIs for positioning. In this way, multiple vehicles registered with the app can support seamless connections, ensuring security. Furthermore, the SBM of each vehicle can update the random number in real time, changing every N seconds, where N can depend on the number of connected vehicles. The update can be slower when there are many vehicles, and faster when there are few vehicles. Corresponding to the vehicle Bluetooth connection method described in the first embodiment of the present invention, the second embodiment of the present invention provides a vehicle Bluetooth connection device, comprising:
[0048] one or more processors;
[0049] Memory;
[0050] One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the vehicle Bluetooth connection method described in embodiment 1 of the present invention.
[0051] Corresponding to the vehicle Bluetooth connection method described in the aforementioned embodiment 1 of the present invention, embodiment 3 of the present invention provides a vehicle Bluetooth connection device, including: an application APP of a mobile terminal, a smart Bluetooth module SBM on the vehicle side, and a Bluetooth satellite module STB, the SBM being used to send a random number to the APP and the STB at the same time after the APP is successfully connected and authenticated therewith; the APP and STB respectively receive the random number and perform mutual verification based on the random number; if the verification is passed, a Bluetooth connection is established between the APP and the STB.
[0052] Corresponding to the vehicle Bluetooth connection method described in the aforementioned embodiment 1 of the present invention, embodiment 4 of the present invention provides a computer-readable storage medium, which includes a stored computer program; wherein, when the computer program is running, it controls the device where the computer-readable storage medium is located to execute the vehicle Bluetooth connection method described in embodiment 1 of the present invention.
[0053] Preferably, the computer program can be divided into one or more modules / units (e.g., computer program 1, computer program 2, ...), which are stored in the memory and executed by the processor to implement the present invention. The one or more modules / units can be a series of computer program instruction segments capable of implementing specific functions, and the instruction segments are used to describe the execution process of the computer program in the device.
[0054] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor. The processor is the control center of the device, and various parts of the device are connected using various interfaces and lines.
[0055] The memory mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc., and the data storage area can store related data, etc. In addition, the memory can be a high-speed random access memory, or a non-volatile memory, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, and a flash card, etc., or the memory can also be other volatile solid-state storage devices.
[0056] It should be noted that the above-mentioned device may include but is not limited to a processor and a memory, which can be understood by those skilled in the art.
[0057] For the working principle and process of the above embodiment, please refer to the description of the above embodiment of the present invention, which will not be repeated here.
[0058] From the above description, it can be seen that compared with the prior art, the beneficial effect of the present invention is that: the embodiment of the present invention improves the connection mechanism, and forms a closed-loop connection and verification process between the APP, SBM and STB by using the random numbers sent simultaneously by the SBM between the APP and the STB for mutual verification. Regardless of how the MAC address of the APP changes, the SBM and the STB can share and verify the identity information of the APP, ensuring that only legitimate APPs can establish a connection with the designated STB, greatly improving the stability and security of the Bluetooth connection, and providing users with a better user experience.
[0059] The above disclosure is merely a preferred embodiment of the present invention and certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.
Claims
1. A vehicle Bluetooth connection method, characterized in that: The following steps are involved: After the mobile terminal's application APP is successfully connected and authenticated with the vehicle's smart Bluetooth module SBM, the SBM sends a random number to both the APP and the Bluetooth satellite module STB. The APP and the STB respectively receive the random number and perform mutual verification based on the random number; If the verification is successful, a Bluetooth connection is established between the APP and the STB.
2. The method according to claim 1, characterized in that The random number includes a first random number and a second random number. The SBM sends the first random number to the STB and encrypts the second random number and sends it to the APP.
3. The method according to claim 2, characterized in that The APP and the STB respectively receive the random number and perform mutual verification according to the random number, specifically including: The STB verifies whether the first random number obtained by the APP is consistent with the first random number obtained by the SBM; The APP verifies whether the second random number transmitted by the STB is consistent with the second random number obtained by the SBM.
4. The method according to claim 3, characterized in that If the random numbers are consistent after mutual verification, the Bluetooth connection between the APP and the STB is successful; if they are inconsistent, the Bluetooth connection fails, and the number of Bluetooth connection failures is recorded. When the number of Bluetooth connection failures exceeds the preset number, the Bluetooth connection between the APP and the STB is disconnected.
5. The method according to claim 1, wherein After the APP is successfully connected and authenticated with the SBM, the SBM wakes up the STB in the dormant state and generates the random number.
6. The method according to claim 1, characterized in that After the APP is successfully connected to the SBM and authenticated, before connecting to the STB, the APP periodically collects the signal strength RSSI of the STB and transmits the RSSI to the SBM.
7. The method according to claim 6, characterized in that If the APP is not successfully connected to all STBs, the RSSI of the unconnected STB is transmitted, and the default value of the connected STB is 0. If the APP is successfully connected to all STBs, the RSSI is no longer transmitted.
8. The method according to claim 1, characterized in that The APP uses vehicle identification information to filter STB broadcast information that is not for the current vehicle.
9. The method according to claim 2, characterized in that After the APP successfully connects and authenticates with multiple vehicle-side SBMs, the APP encrypts the collected RSSIs of each vehicle-side STB into the second random number and transmits them to the corresponding vehicle-side SBM; the APP also encrypts the collected RSSIs of the SBMs into the first random number and transmits them to the corresponding vehicle-side STB. The STB then returns it to the vehicle-side SBM, and the vehicle-side SBM performs positioning calculations based on the two sets of RSSIs received.
10. A vehicle Bluetooth connection device, characterized in that: include: one or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the vehicle Bluetooth connection method according to any one of claims 1 to 9.
11. A vehicle Bluetooth connection device, characterized in that: include: The mobile terminal application APP, the vehicle-side smart Bluetooth module SBM and the Bluetooth satellite module STB, the SBM is used to send a random number to the APP and the STB at the same time after the APP is successfully connected and authenticated; the APP and STB respectively receive the random number and perform mutual verification based on the random number; If the verification is successful, a Bluetooth connection is established between the APP and the STB.
12. A computer-readable storage medium, characterized in that The computer-readable storage medium includes a stored computer program; wherein, when the computer program is run, it controls the device where the computer-readable storage medium is located to execute the vehicle Bluetooth connection method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Bluetooth key and vehicle connection method, vehicle Bluetooth system and Bluetooth key
CN113920615A
Bluetooth pairing method and system, vehicle-mounted Bluetooth equipment and mobile terminal
CN115314863A
Automobile Bluetooth key security management method, system, equipment and medium
CN115967920A
Authentication method and system, terminal equipment and Bluetooth equipment
CN116669027A
Vehicle-mounted terminal and mobile terminal pairing method and device and readable storage medium
CN117221897A