A Bluetooth pairing method, device, equipment and storage medium

By introducing a method of batch processing of Bluetooth pairing records in the Bluetooth pairing system, the existing Bluetooth pairing quantity detection and inefficiency problem is solved, and a faster and more efficient testing process is achieved.

CN115884146BActive Publication Date: 2025-03-18CHINA AUTOMOTIVE INNOVATION CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211528413.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-30
Publication Date
2025-03-18
Estimated Expiration
2042-11-30

AI Technical Summary

Technical Problem

The existing Bluetooth pairing quantity detection test time is long and the testing efficiency is inefficient, mainly due to the tedious process of manual pairing and deleting pairing records.

Method used

Provides a Bluetooth pairing method, which batches Bluetooth pairing records through the client operation interface, including obtaining Bluetooth pairing information from the target database, writing or deleting Bluetooth configuration files, and controlling the target vehicle to restart to make the configuration take effect.

Benefits of technology

The test time of Bluetooth pairing quantity detection has been greatly shortened, the testing efficiency has been improved, and the professional requirements for operators have been reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115884146B_ABST
    Figure CN115884146B_ABST
Patent Text Reader

Abstract

The present invention discloses a Bluetooth pairing method, device, equipment and storage medium, which are applied to the server of a Bluetooth pairing system, and the method includes: in response to the selection operation of the first device button among the multiple device buttons of the client operation interface, the Bluetooth pairing information of the first device associated with the first device button is obtained from the historical Bluetooth pairing information of the target database; the Bluetooth pairing information includes the Bluetooth link key information of the first device and the target vehicle computer and the device information of the first device; in response to the selection operation of the first operation button used by the client to create a connection, the device information and the Bluetooth link key information of the first device are written into the Bluetooth pairing file of the target vehicle computer; in response to the selection operation of the confirmation button of the client, the target vehicle computer is controlled to restart, and the Bluetooth connection is established with the first device using the Bluetooth link key information. The above scheme can greatly shorten the test time of Bluetooth pairing quantity detection and improve the test efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicle-machine Bluetooth pairing quantity detection, and in particular to a Bluetooth pairing method, device, equipment and storage medium. Background Art

[0002] Android Auto is a car networking function designed for cars launched by Google, which requires a mobile phone connection. The goal of Android Auto is to replace the local car networking system of automakers, realize Android applications and access Android phone content. The Android Auto certification test content includes a Bluetooth pairing quantity test, namely IBTSL07. Its purpose is to detect when the number of paired Bluetooth devices reaches the maximum value supported by the car computer, and connect a mobile phone that supports the Android Auto function through a wired connection, and check whether the car computer meets the requirements for the processing of the currently connected Android Auto device and the devices in the pairing record at this time, that is, to ensure that the car computer automatically connects to the Bluetooth of the Android Auto device while deleting a connection record to ensure that the maximum number of pairings of the car computer remains unchanged.

[0003] The existing test method can only manually pair multiple devices to create multiple Bluetooth device pairing records; manually delete a pairing record or delete unnecessary Bluetooth device pairing records by restoring factory settings. However, the Bluetooth function of the car computer was not perfect in the early stage of development. There were problems such as difficulty in connecting Bluetooth devices, a large maximum number of pairings that the car computer needed to support, a long time to collect mobile devices that support the Android Auto function, cumbersome and time-consuming mobile phone connection to the car computer, and many items that needed to be tested in parallel, resulting in a long test time and low test efficiency. Summary of the invention

[0004] The present invention provides a Bluetooth pairing method, device, equipment and storage medium, which solve the problems of long test time and low test efficiency in the existing Bluetooth pairing quantity detection.

[0005] In order to achieve the above object, the present invention adopts the following technical scheme:

[0006] In a first aspect, the present invention provides a Bluetooth pairing method, which is applied to a server of a Bluetooth pairing system, wherein the Bluetooth pairing system further includes a client, and the method includes:

[0007] In response to a selection operation on a first device button among a plurality of device buttons on the client operation interface, obtaining Bluetooth pairing information of a first device associated with the first device button from historical Bluetooth pairing information in a target database; the Bluetooth pairing information includes Bluetooth link key information between the first device and the target vehicle computer, and device information of the first device; the number of the first device button is at least one;

[0008] In response to a selection operation on a first operation button for establishing a connection on the client, writing the device information of the first device and the Bluetooth link key information into a Bluetooth pairing file of the target vehicle machine;

[0009] In response to a selection operation of a confirmation button of the client, the target vehicle computer is controlled to restart, so that the target vehicle computer obtains device information of the first device and establishes a Bluetooth connection with the first device by using the Bluetooth link key information.

[0010] In a possible implementation manner, before acquiring the Bluetooth pairing information of the first device associated with the button of the first device from the target database, the method further includes:

[0011] When it is determined that the target vehicle computer enters the read-write mode, a Bluetooth configuration file of the target vehicle computer is obtained; the Bluetooth configuration file includes historical Bluetooth pairing information of multiple devices and the target vehicle computer;

[0012] Parse the Bluetooth configuration file to obtain Bluetooth link key information between the device and the target vehicle computer, and device information of the device; the device information at least includes: a device identifier;

[0013] storing the Bluetooth link key information and the device information as Bluetooth pairing information in a target database;

[0014] Each of the device identifiers is correspondingly associated with a plurality of device buttons on the client operation interface.

[0015] In a possible implementation, the method further includes:

[0016] In response to a selection operation on a second device button among a plurality of device buttons on the client operation interface, obtaining Bluetooth pairing information of a second device associated with the second device button from historical Bluetooth pairing information in a target database; the number of the second device button is at least one;

[0017] In response to a selection operation on a second operation button for deleting a connection on the client, deleting the device information of the second device and the Bluetooth link key information from a Bluetooth pairing file of the target vehicle computer;

[0018] The target vehicle computer is controlled to restart, so that the target vehicle computer obtains the device information of the second device, and uses the Bluetooth link key information to disconnect the Bluetooth connection with the second device.

[0019] In a possible implementation, the customer operation interface further includes a third operation button for selecting all devices; and the method further includes:

[0020] In response to a selection operation on the third operation button on the client operation interface, Bluetooth pairing information of devices associated with all device buttons on the client operation interface is acquired from historical Bluetooth pairing information in a target database.

[0021] In a possible implementation, the client operation interface further includes a first input box for inputting a quantity; and the method further includes:

[0022] In response to a first input to the first input box of the client operation interface, obtaining a target quantity included in the content of the first input; the target quantity is N, where N is a natural number;

[0023] The Bluetooth pairing information of N devices associated with the first N device buttons in the client operation interface is obtained from the historical Bluetooth pairing information in the target database.

[0024] In a possible implementation, after each of the device identifiers is associated with a plurality of device buttons on the client operation interface, the method further includes:

[0025] The name of each device button is changed to the name of the device corresponding to the device identifier associated with it.

[0026] In a possible implementation, after determining that the target vehicle computer enters the read-write mode, before obtaining the Bluetooth configuration file of the target vehicle computer, wherein the Bluetooth configuration file includes historical Bluetooth pairing information of multiple devices with the target vehicle computer, the method further includes:

[0027] After detecting that the Bluetooth pairing system establishes a connection with the target vehicle computer, the target vehicle computer is controlled to enter a read-write mode.

[0028] In a second aspect, the present invention provides a Bluetooth pairing device, which is applied to a server of a Bluetooth pairing system, wherein the Bluetooth pairing system further includes a client; the device includes:

[0029] a first execution module, configured to, in response to a selection operation on a first device button among a plurality of device buttons on the client operation interface, obtain Bluetooth pairing information of a first device associated with the first device button from historical Bluetooth pairing information in a target database; the Bluetooth pairing information includes Bluetooth link key information between the first device and a target vehicle computer, and device information of the first device; and the number of the first device button is at least one;

[0030] A second execution module, configured to write the device information of the first device and the Bluetooth link key information into a Bluetooth pairing file of the target vehicle computer in response to a selection operation of a first operation button for establishing a connection by the client;

[0031] The third execution module is used to control the target vehicle computer to restart in response to the selection operation of the confirmation button of the client, so that the target vehicle computer obtains the device information of the first device and establishes a Bluetooth connection with the first device using the Bluetooth link key information.

[0032] In a third aspect, the present invention provides an electronic device, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement any of the above-mentioned Bluetooth pairing methods.

[0033] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement any of the Bluetooth pairing methods described above.

[0034] The Bluetooth pairing method, device, equipment and storage medium provided by the embodiment of the present invention are applied to the server of the Bluetooth pairing system, and in response to the selection operation of the first device button of the client operation interface, the Bluetooth pairing information of the first device associated with the first device button is obtained from the historical Bluetooth pairing information of the target database; wherein the Bluetooth pairing information includes the Bluetooth link key information of the first device and the target vehicle computer and the device information of the first device; thereafter, in response to the selection operation of the first operation button used by the client to create a connection, the device information and the Bluetooth link key information of the first device are written into the Bluetooth configuration file of the target vehicle computer; finally, in response to the selection operation of the confirmation button of the client, the target vehicle computer is controlled to restart, so that the target vehicle computer obtains the device information of the first device, and establishes a Bluetooth connection with the first device using the Bluetooth link key information. The present invention realizes batch operation of Bluetooth connection between multiple devices and the target vehicle computer through the Bluetooth pairing system, which saves the time of the test personnel to collect multiple test devices and pair multiple test devices with the target vehicle computer in turn, thereby greatly shortening the test time of Bluetooth pairing quantity detection and improving the test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A flowchart of the steps of a first Bluetooth pairing method provided by an embodiment of the present invention;

[0036] Figure 2 A schematic diagram of the structure of the client operation interface in the Bluetooth pairing method provided in an embodiment of the present invention;

[0037] Figure 3 A flowchart of the steps of a second Bluetooth pairing method provided by an embodiment of the present invention;

[0038] Figure 4 This is a structural block diagram of a Bluetooth pairing device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0039] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0040] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present disclosure, unless otherwise specified, "multiple" means two or more. In addition, the use of "based on" or "according to" means openness and inclusiveness, because the process, steps, calculations or other actions "based on" or "according to" one or more of the conditions or values ​​may be based on additional conditions or values ​​beyond the described values ​​in practice.

[0041] In order to solve the problem of long test time and low test efficiency in the existing Bluetooth pairing quantity detection, the embodiments of the present invention provide a Bluetooth pairing method, apparatus, device and storage medium.

[0042] In a first aspect, an embodiment of the present invention provides a Bluetooth pairing method.

[0043] Figure 1 This is a flowchart of the steps of a first Bluetooth pairing method provided by an embodiment of the present invention.

[0044] like Figure 1 As shown, in a first possible implementation manner, the Bluetooth pairing method is applied to a server of a Bluetooth pairing system, the Bluetooth pairing system also includes a client, and the method includes:

[0045] Step 101, in response to a selection operation on a first device button among multiple device buttons on a client operation interface, obtain Bluetooth pairing information of a first device associated with the first device button from historical Bluetooth pairing information in a target database; the Bluetooth pairing information includes Bluetooth link key information between the first device and the target vehicle computer, and device information of the first device; the number of first device buttons is at least one.

[0046] Bluetooth pairing is an essential part of the Bluetooth connection process. The purpose of Bluetooth pairing is to create a link key (Link Key) shared by the two devices that need to be connected. The link key is used for authentication when the two devices are connected and encrypts the data interacting with each other, making Bluetooth technology more secure. The link key can be used not only in the current connection between the two devices, but also in the subsequent reconnection process of the two devices.

[0047] The Android Auto certification test includes a test on the number of Bluetooth pairings, namely IBTSL07. Its purpose is to detect when the number of paired Bluetooth devices reaches the maximum value supported by the vehicle, and to connect a mobile phone that supports the Android Auto function via a wired connection to check whether the vehicle meets the requirements for the processing of the currently connected Android Auto device and the devices in the pairing record, that is, to ensure that the vehicle automatically connects to the Bluetooth of the Android Auto device while deleting a connection record to ensure that the maximum number of pairings of the vehicle remains unchanged.

[0048] The existing test method can only manually pair multiple devices to create multiple Bluetooth device pairing records; manually delete a pairing record or delete unnecessary Bluetooth device pairing records by restoring factory settings. However, the Bluetooth function of the car computer was not perfect in the early stage of development. There were problems such as difficulty in connecting Bluetooth devices, a large maximum number of pairings that the car computer needed to support, a long time to collect mobile devices that supported the Android Auto function, cumbersome and time-consuming mobile phone connection to the car computer, and many items that needed to be tested in parallel, resulting in a long test time and low test efficiency. For example: the maximum number of Bluetooth pairings for the car computer to be tested is 20. Using the existing test method, it takes more than one hour to perform the IBTSL07 test on the car computer. The test takes too long, so there is an urgent need to improve the efficiency and flexibility of this test.

[0049] The Bluetooth pairing method provided by the present invention specifically provides a technology for batch processing Bluetooth pairing records in the Android Auto certification test of the smart cockpit central control entertainment system, that is, an application for batch processing the Bluetooth pairing records of the vehicle computer by modifying the Bluetooth configuration of the vehicle computer through option buttons such as icons and texts in a visual interface.

[0050] Figure 2 A schematic diagram of the structure of a client operation interface in a Bluetooth pairing method provided by an embodiment of the present invention.

[0051] like Figure 2 As shown, the client operation interface includes: multiple device buttons 201.

[0052] After the tester selects multiple device buttons 201 in the client operation interface, the server of the Bluetooth pairing system obtains the Bluetooth pairing information of the devices associated with the selected multiple device buttons 201 from the historical Bluetooth pairing information stored in the preset target database.

[0053] In an embodiment of the present invention, the Bluetooth link key information refers to the link key shared by two devices when they are paired via Bluetooth; the first device refers to the device that the tester wants to establish Bluetooth connections with the target vehicle in batches; the first device button refers to the device button associated with the first device in the client operation interface.

[0054] Specifically, after the tester checks the first device button associated with the first devices that need to establish Bluetooth connections with the target vehicle computers in batches in the client operation interface, the server of the Bluetooth pairing system obtains the Bluetooth pairing information of the first device associated with the checked first device button from the historical Bluetooth pairing information saved in the preset target database.

[0055] Step 102: In response to a selection operation on a first operation button for establishing a connection on the client, device information and Bluetooth link key information of the first device are written into a Bluetooth pairing file of the target vehicle computer.

[0056] like Figure 2 As shown, the client operation interface includes: a first operation button 202.

[0057] The first operation button 202 is a button for creating a pairing record.

[0058] When the tester selects the first operation button 202 in the client operation interface, the server of the Bluetooth pairing system writes the device information and Bluetooth link key information of the first device into the Bluetooth configuration file of the target vehicle computer.

[0059] Specifically, after the tester selects the first operation button in the client operation interface, the server of the Bluetooth pairing system writes the device information and Bluetooth link key information of the first device into the Bluetooth configuration file of the target vehicle computer.

[0060] like Figure 2 As shown, the client operation interface also includes a third operation button 205 for selecting all devices and a first input box 206 for inputting a quantity.

[0061] When the tester needs to perform a selection operation on all device buttons on the customer operation interface, the tester can check the third operation button 205 .

[0062] In response to the selection operation of the third operation button 205 on the client operation interface, the server of the Bluetooth pairing system obtains the Bluetooth pairing information of the devices associated with all the device buttons on the client operation interface from the historical Bluetooth pairing information in the target database.

[0063] When the tester needs to perform a selection operation on the first N device buttons on the customer operation interface, the tester can input the number N in the first input box 206 .

[0064] The server of the Bluetooth pairing system responds to the first input of the first input box 206 of the client operation interface, and obtains the target number included in the content of the first input; the target number is N, and N is a natural number;

[0065] Afterwards, the server of the Bluetooth pairing system responds by acquiring the Bluetooth pairing information of N devices associated with the first N device buttons in the client operation interface from the historical Bluetooth pairing information in the target database.

[0066] Step 103 : In response to the selection operation of the confirmation button of the client, the target vehicle computer is controlled to restart, so that the target vehicle computer obtains the device information of the first device and establishes a Bluetooth connection with the first device by using the Bluetooth link key information.

[0067] like Figure 2 As shown, the client operation interface also includes a confirmation button 203.

[0068] When the tester selects the confirmation button 203 in the client operation interface, the server of the Bluetooth pairing system controls the target vehicle computer to restart, and loads and makes the changed Bluetooth configuration file effective during the restart process.

[0069] Specifically, after the tester selects the OK button in the client operation interface, the server of the Bluetooth pairing system controls the target vehicle to restart. During the restart process, the target vehicle loads the Bluetooth pairing file and, based on the device information and Bluetooth link key information in the Bluetooth pairing file, enables all devices corresponding to the Bluetooth pairing records in the Bluetooth pairing file to establish a Bluetooth connection with the target vehicle.

[0070] The Bluetooth pairing method provided by the embodiment of the present invention is applied to the server of the Bluetooth pairing system, and in response to the selection operation of the first device button of the client operation interface, the Bluetooth pairing information of the first device associated with the first device button is obtained from the historical Bluetooth pairing information of the target database; wherein the Bluetooth pairing information includes the Bluetooth link key information of the first device and the target vehicle machine and the device information of the first device; thereafter, in response to the selection operation of the first operation button used by the client to create a connection, the device information and the Bluetooth link key information of the first device are written into the Bluetooth configuration file of the target vehicle machine; finally, in response to the selection operation of the confirmation button of the client, the target vehicle machine is controlled to restart, so that the target vehicle machine obtains the device information of the first device, and establishes a Bluetooth connection with the first device using the Bluetooth link key information. The present invention enables testers to batch process the Bluetooth pairing records of test devices simply and intuitively through the client operation interface, which not only saves the time for testers to collect multiple test devices and pair multiple test devices with the target vehicle machine in turn, thereby greatly shortening the test time of Bluetooth pairing quantity detection and improving the test efficiency; and the operation is simple, reducing the professional requirements for operators.

[0071] Figure 3 This is a flowchart of the steps of a second Bluetooth pairing method provided by an embodiment of the present invention.

[0072] like Figure 3 As shown, in a second possible implementation, the Bluetooth pairing method is applied to a server of a Bluetooth pairing system, the Bluetooth pairing system also includes a client, and the method includes:

[0073] Step 301: After detecting that the Bluetooth pairing system has established a connection with the target vehicle computer, the target vehicle computer is controlled to enter a read-write mode.

[0074] Specifically, the Bluetooth pairing system can be installed in the form of an application software on a mobile phone that supports the Android Auto function, or it can be directly installed on the target vehicle. After the Bluetooth pairing system is started and a connection is established with the target vehicle, the server of the Bluetooth pairing system obtains the read and write permissions of the target vehicle, and puts the target vehicle into read and write mode.

[0075] Step 302: after determining that the target vehicle computer enters the read-write mode, obtain the Bluetooth configuration file of the target vehicle computer; the Bluetooth configuration file includes historical Bluetooth pairing information of multiple devices and the target vehicle computer.

[0076] The historical Bluetooth pairing information between multiple devices and the target vehicle refers to the Bluetooth pairing information between the devices and the target vehicle stored in the Bluetooth configuration file of the target vehicle before the Bluetooth pairing number detection starts. For example: before the Bluetooth pairing number detection starts, manually connect multiple devices to the target vehicle through Bluetooth to create the required number of Bluetooth pairing records; the number of Bluetooth pairing records must be greater than the maximum number of pairings of the target vehicle Bluetooth. That is, when the maximum number of pairings of the target vehicle Bluetooth is 20, the number of Bluetooth pairing records created is at least 21.

[0077] Specifically, after the target vehicle enters the read-write mode, the server of the Bluetooth pairing system automatically obtains the Bluetooth configuration file in the target vehicle computer.

[0078] Step 303: parse the Bluetooth configuration file to obtain Bluetooth link key information between the device and the target vehicle computer, and device information of the device; the device information at least includes: a device identifier.

[0079] Among them, the Bluetooth link key information refers to the link key shared by two devices when pairing with Bluetooth; the device information includes the device name and the device address; the device identifier can be either the device name or the device address.

[0080] The parsing of the Bluetooth configuration file can be achieved through a batch file preset in the server of the Bluetooth pairing system.

[0081] Step 304: store the Bluetooth link key information and device information as Bluetooth pairing information in the target database.

[0082] The Bluetooth pairing information includes the device name, device address and link key. The Bluetooth pairing information is sequentially stored in the target database. The corresponding Bluetooth pairing information can be found and retrieved from the target database through a unique device identifier, such as the device name.

[0083] Step 305: associate each device identifier with a plurality of device buttons on the client operation interface.

[0084] Among them, each device button is associated with a device identifier. After the tester checks a device button in the client operation interface, the server of the Bluetooth pairing system obtains the Bluetooth pairing information of the device associated with the checked device button from the historical Bluetooth pairing information saved in the preset target database according to the device identifier.

[0085] Step 306: Change the name of each device button to the name of the device corresponding to the device identifier associated with it.

[0086] In this embodiment, the device buttons 201 include 30, and the names of the device buttons 201 are respectively represented by device 1, device 2, device 3, etc. After the device button is associated with the corresponding device through the device identifier, the name of the device button 201 is changed to the name of the device corresponding to the device identifier associated with it. For example, when the device associated with the first device button 201 is a Huawei P50 Pro mobile phone, "Device 1" is changed to "Huawei P50 Pro" to facilitate the tester to intuitively operate the corresponding device according to the device button.

[0087] Step 307, in response to the selection operation of the first device button among the multiple device buttons on the client operation interface, obtain the Bluetooth pairing information of the first device associated with the first device button from the historical Bluetooth pairing information of the target database; the Bluetooth pairing information includes the Bluetooth link key information between the first device and the target vehicle computer, and the device information of the first device; the number of the first device button is at least one.

[0088] In the embodiment of the present invention, step 307 may refer to step 101 and will not be described in detail here.

[0089] Step 308: In response to the selection operation of the first operation button for establishing a connection on the client, the device information and Bluetooth link key information of the first device are written into the Bluetooth pairing file of the target vehicle computer.

[0090] In the embodiment of the present invention, step 308 may refer to step 102 and will not be described in detail here.

[0091] Step 309 : In response to the selection operation of the confirmation button of the client, the target vehicle computer is controlled to restart, so that the target vehicle computer obtains the device information of the first device and establishes a Bluetooth connection with the first device using the Bluetooth link key information.

[0092] In the embodiment of the present invention, step 309 may refer to step 103 and will not be described in detail here.

[0093] Step 310: In response to a selection operation on a second device button among multiple device buttons on the client operation interface, obtain Bluetooth pairing information of a second device associated with the second device button from historical Bluetooth pairing information in a target database; the number of the second device button is at least one.

[0094] Among them, the second device refers to the device corresponding to the Bluetooth pairing record that the tester wants to delete in batches from the Bluetooth pairing file; the second device button refers to the device button associated with the second device in the client operation interface.

[0095] Specifically, after the tester checks the second device button of the second device corresponding to the Bluetooth pairing records that need to be deleted in batches from the Bluetooth pairing file in the client operation interface, the server of the Bluetooth pairing system obtains the Bluetooth pairing information of the second device associated with the checked second device button from the historical Bluetooth pairing information saved in the preset target database.

[0096] Step 311: In response to a selection operation on a second operation button for deleting a connection on the client, the device information and Bluetooth link key information of the second device are deleted from a Bluetooth pairing file of the target vehicle computer.

[0097] like Figure 2 As shown, the client operation interface also includes a second operation button 204

[0098] The second operation button 204 is a button for deleting pairing records.

[0099] After the tester selects the second operation button 204 in the client operation interface, the server of the Bluetooth pairing system deletes the device information and the Bluetooth link key information of the second device from the Bluetooth configuration file.

[0100] Specifically, after the tester selects the second operation button in the client operation interface, the server of the Bluetooth pairing system deletes the device information and Bluetooth link key information of the second device from the Bluetooth configuration file.

[0101] Step 312: Control the target vehicle computer to restart, so that the target vehicle computer obtains the device information of the second device, and disconnects the Bluetooth connection with the second device using the Bluetooth link key information.

[0102] Specifically, the target vehicle computer is restarted by controlling the server of the Bluetooth pairing system. The target vehicle computer reloads the Bluetooth pairing file during the restart process, and establishes a Bluetooth connection with the target vehicle computer based on the device information and Bluetooth link key information in the Bluetooth pairing file.

[0103] The Bluetooth pairing method provided in the embodiment of the present invention needs to manually connect multiple devices to the target vehicle computer through Bluetooth before batch controlling the Bluetooth connection between multiple devices and the target vehicle computer, and create a Bluetooth pairing record greater than the maximum pairing number of the target vehicle computer Bluetooth as the historical Bluetooth pairing information. Afterwards, not only can the Bluetooth pairing records be written in batches in the Bluetooth pairing file by checking multiple device buttons and the first operation button, but also the Bluetooth pairing records can be deleted in batches from the Bluetooth pairing file by checking multiple device buttons and the second operation button, and finally the target vehicle computer is restarted to make the modified Bluetooth pairing file effective, and the Bluetooth connection between multiple devices and the target vehicle computer is controlled in batches. That is to say, after obtaining the historical Bluetooth pairing information, the present invention can batch create the Bluetooth pairing records between multiple test devices and the target vehicle computer in the Bluetooth pairing file or delete them from the Bluetooth pairing file by checking the operation in the client operation interface, which not only saves the time for the test personnel to collect multiple test devices and pair multiple test devices with the target vehicle computer in turn, thereby greatly shortening the test time of the Bluetooth pairing number detection and improving the test efficiency; and reducing the cost of manual testing by the test personnel, reducing the requirement for the number of test devices during the test, reducing the test difficulty, and making the test work more flexible and convenient.

[0104] In the Bluetooth pairing method provided in the embodiment of the present invention, the Bluetooth pairing system is integrated in a mobile phone device supporting the Android Auto function in the form of application software, or installed in the vehicle computer in the form of an apk installation package, providing users with a visual and user-friendly operation interface. The Bluetooth pairing system supports three selection methods: manually checking each device button, selecting all device buttons, and selecting the required model of devices according to the specified number input; erasing the Bluetooth pairing record in the Bluetooth pairing file in the vehicle computer to be tested by checking the Delete Pairing Record button; writing the required Bluetooth pairing record to the Bluetooth pairing file of the vehicle computer to be tested by checking the Create Pairing Record button, and restarting the vehicle computer to be tested after successful writing, so that the data in the Bluetooth pairing file takes effect.

[0105] The Bluetooth pairing method provided in the embodiment of the present invention enables the IBTSL07 test to be performed with only a mobile phone device that supports the Android Auto application, and batch operation of Bluetooth pairing records can be easily achieved through a simple and easy-to-understand human-computer interaction interface.

[0106] In a second aspect, an embodiment of the present invention provides a Bluetooth pairing device, which is applied to a server of a Bluetooth pairing system, and the Bluetooth pairing system also includes a client.

[0107] Figure 4 This is a structural block diagram of a Bluetooth pairing device provided by an embodiment of the present invention.

[0108] like Figure 4 As shown, the device also includes:

[0109] The first execution module 401 is used for, in response to a selection operation of a first device button among a plurality of device buttons on a client operation interface, obtaining Bluetooth pairing information of a first device associated with the first device button from historical Bluetooth pairing information in a target database; the Bluetooth pairing information includes Bluetooth link key information between the first device and the target vehicle computer, and device information of the first device; the number of the first device button is at least one;

[0110] A second execution module 402 is used to write the device information and Bluetooth link key information of the first device into the Bluetooth pairing file of the target vehicle machine in response to the selection operation of the first operation button for establishing the connection by the client;

[0111] The third execution module 403 is used to control the target vehicle computer to restart in response to the selection operation of the confirmation button of the client, so that the target vehicle computer obtains the device information of the first device and establishes a Bluetooth connection with the first device using the Bluetooth link key information.

[0112] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0113] In a third aspect, an embodiment of the present invention provides an electronic device.

[0114] The electronic device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement any of the above-mentioned Bluetooth pairing methods.

[0115] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium.

[0116] The storage medium stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement any of the above-mentioned Bluetooth pairing methods.

[0117] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.

[0118] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A Bluetooth pairing method, characterized in that: The method is applied to a server of a Bluetooth pairing system, wherein the Bluetooth pairing system further comprises a client. The method comprises: In response to a selection operation on a first device button among a plurality of device buttons on the client operation interface, obtaining Bluetooth pairing information of a first device associated with the first device button from historical Bluetooth pairing information in a target database; the Bluetooth pairing information includes Bluetooth link key information between the first device and the target vehicle computer, and device information of the first device; the number of the first device button is at least one; In response to a selection operation on a first operation button for establishing a connection on the client, writing the device information of the first device and the Bluetooth link key information into a Bluetooth pairing file of the target vehicle machine; In response to a selection operation of a confirmation button of the client, the target vehicle computer is controlled to restart, so that the target vehicle computer obtains device information of the first device and establishes a Bluetooth connection with the first device by using the Bluetooth link key information.

2. The method according to claim 1, characterized in that Before acquiring the Bluetooth pairing information of the first device associated with the button of the first device from the target database, the method further includes: When it is determined that the target vehicle computer enters the read-write mode, a Bluetooth configuration file of the target vehicle computer is obtained; the Bluetooth configuration file includes historical Bluetooth pairing information of multiple devices and the target vehicle computer; Parse the Bluetooth configuration file to obtain Bluetooth link key information between the device and the target vehicle computer, and device information of the device; the device information at least includes: a device identifier; storing the Bluetooth link key information and the device information as Bluetooth pairing information in a target database; Each of the device identifiers is correspondingly associated with a plurality of device buttons on the client operation interface.

3. The method according to claim 1, characterized in that The method further comprises: In response to a selection operation on a second device button among a plurality of device buttons on the client operation interface, obtaining Bluetooth pairing information of a second device associated with the second device button from historical Bluetooth pairing information in a target database; the number of the second device button is at least one; In response to a selection operation on a second operation button for deleting a connection on the client, deleting the device information of the second device and the Bluetooth link key information from a Bluetooth pairing file of the target vehicle computer; The target vehicle computer is controlled to restart, so that the target vehicle computer obtains the device information of the second device, and uses the Bluetooth link key information to disconnect the Bluetooth connection with the second device.

4. The method according to claim 1, characterized in that: The client operation interface also includes a third operation button for selecting all devices; the method also includes: In response to a selection operation on the third operation button on the client operation interface, Bluetooth pairing information of devices associated with all device buttons on the client operation interface is acquired from historical Bluetooth pairing information in a target database.

5. The method according to claim 1, characterized in that: The client operation interface also includes a first input box for inputting a quantity; the method also includes: In response to a first input to the first input box of the client operation interface, obtaining a target quantity included in the content of the first input; the target quantity is N, where N is a natural number; The Bluetooth pairing information of N devices associated with the first N device buttons in the client operation interface is obtained from the historical Bluetooth pairing information in the target database.

6. The method according to claim 2, characterized in that After each of the device identifiers is associated with a plurality of device buttons on the client operation interface, the method further includes: The name of each device button is changed to the name of the device corresponding to the device identifier associated with it.

7. The method according to claim 2, characterized in that After determining that the target vehicle computer enters the read-write mode, before obtaining the Bluetooth configuration file of the target vehicle computer, wherein the Bluetooth configuration file includes historical Bluetooth pairing information of multiple devices and the target vehicle computer, the method further includes: After detecting that the Bluetooth pairing system establishes a connection with the target vehicle computer, the target vehicle computer is controlled to enter a read-write mode.

8. A Bluetooth pairing device, characterized in that: The device is applied to a server of a Bluetooth pairing system, wherein the Bluetooth pairing system further comprises a client; the device comprises: a first execution module, configured to, in response to a selection operation on a first device button among a plurality of device buttons on the client operation interface, obtain Bluetooth pairing information of a first device associated with the first device button from historical Bluetooth pairing information in a target database; the Bluetooth pairing information includes Bluetooth link key information between the first device and a target vehicle computer, and device information of the first device; and the number of the first device button is at least one; A second execution module, configured to write the device information of the first device and the Bluetooth link key information into a Bluetooth pairing file of the target vehicle computer in response to a selection operation of a first operation button for establishing a connection by the client; The third execution module is used to control the target vehicle computer to restart in response to the selection operation of the confirmation button of the client, so that the target vehicle computer obtains the device information of the first device and establishes a Bluetooth connection with the first device using the Bluetooth link key information.

9. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the Bluetooth pairing method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the Bluetooth pairing method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Method and device for processing bluetooth pairing information

    CN103228059A

  • Intelligent terminal and method for controlling bluetooth device via intelligent terminal

    CN103312864A