Method for testing connection stability of Bluetooth headset

By installing specific applications on computers and mobile phones, the Bluetooth headset connection stability test is automated, and the problem of test time and data inaccurate in the existing technology is solved, ensuring the accuracy and reliability of the test.

CN119485090APending Publication Date: 2025-02-18RISUNTEK INC
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411333435.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-24
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

The connection stability test of existing Bluetooth headphones in an environment with high WIFI interference takes a long time and relies on manual operation, resulting in inaccurate and unreliable test data.

Method used

By installing the first application on the computer and the second application on the mobile phone, an automated Bluetooth connection, disconnection and return connection are achieved, counting the number of successful connections and disconnection successes, and calculating the ratio of the connection stability meets the standard.

Benefits of technology

It realizes automation of Bluetooth headset connection stability testing, reduces manual operation time, ensures the accuracy and reliability of test data, and is suitable for any Bluetooth headset.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119485090A_ABST
    Figure CN119485090A_ABST
Patent Text Reader

Abstract

The invention relates to a method for testing the connection stability of a Bluetooth headset, which comprises the following steps: step 1 to step 16, in the step 1, a first application program is installed on a computer, and the first application program is used for acquiring the Bluetooth state, the number of Bluetooth connection success times, the number of Bluetooth disconnection success times and the number of connection failure times of the current to-be-tested Bluetooth headset; a second application program matched with the first application program is installed on the mobile phone; step 16, calculating whether the ratio of the sum of the number of successful Bluetooth connection times and the number of successful Bluetooth disconnection times to the total number of connection times reaches a preset value, if so, determining that the connection stability of the to-be-tested Bluetooth headset reaches the standard, otherwise, determining that the connection stability of the to-be-tested Bluetooth headset does not reach the standard; the whole testing mode is high in automation degree, manual testing is not needed, working hours of manual operation are reduced, accuracy and reliability of testing data are ensured, and the method is high in universality and suitable for any Bluetooth headset.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Bluetooth headsets, and in particular to a method for testing the connection stability of a Bluetooth headset. Background Art

[0002] Bluetooth headsets are hands-free headsets that apply Bluetooth technology to them, allowing users to avoid the entanglement of annoying wires and easily communicate in a variety of ways, allowing them to operate a computer while maintaining a conversation.

[0003] In addition, the most widely used application of Bluetooth technology in daily life is in mobile phone communication devices that support Bluetooth, such as mobile phone Bluetooth headsets. Bluetooth makes driving safer.

[0004] For existing Bluetooth headsets, since their Bluetooth operating frequency band is the same as WIFI, it is necessary to test the connection stability of Bluetooth headsets in an environment with large WIFI interference.

[0005] Currently, the stability of Bluetooth headsets is basically tested by manual testing and observation, such as manually clicking on the list on the mobile phone's Bluetooth settings to connect and disconnect. When doing extreme multiple tests, it will consume a lot of time and manpower.

[0006] Therefore, in the patent application of the present invention, the applicant carefully studied a method for testing the connection stability of Bluetooth headsets to solve the above problems. Summary of the invention

[0007] The present invention aims to overcome the shortcomings of the above-mentioned prior art and its main purpose is to provide a method for testing the connection stability of a Bluetooth headset. The entire testing method has a high degree of automation, does not require manual testing, reduces the working hours of manual operation, ensures the accuracy and reliability of the test data, and has strong versatility and is applicable to any Bluetooth headset.

[0008] To achieve the above-mentioned purpose, the present invention adopts the following technical scheme:

[0009] A method for testing the connection stability of a Bluetooth headset comprises the following steps:

[0010] Step 1: prepare a computer, a Bluetooth headset to be tested, and a mobile phone, connect the computer and the mobile phone via a data cable, and at the same time, put the Bluetooth headset to be tested into pairing mode so that the Bluetooth headset to be tested can be searched and successfully paired; wherein,

[0011] A first application is installed on the computer, and the first application is used to obtain the Bluetooth status, the number of successful Bluetooth connections, the number of successful Bluetooth disconnections, and the number of failed connections of the Bluetooth headset to be tested;

[0012] A second application program cooperating with the first application program is installed on the mobile phone, wherein the second application program is used to obtain the Bluetooth status of the mobile phone itself and control its Bluetooth function, receive instructions from the first application program, and report the Bluetooth status of the mobile phone to the first application program;

[0013] Step 2, connect the mobile phone to the Bluetooth headset to be tested through Bluetooth, and the second application program reports the status that the Bluetooth headset to be tested has been successfully connected to the first application program on the computer, and then execute step 3;

[0014] Step 3, determining whether the computer receives information that the tested Bluetooth headset has been successfully connected as reported by the second application program of the mobile phone within the first preset time, if so, executing step 4, otherwise, accumulating the number of connection failures and returning to step 10;

[0015] Step 4, the first application on the computer will accumulate the number of successful Bluetooth connections, and then proceed to step 5;

[0016] Step 5, the first application of the computer sends a command to disconnect the Bluetooth connection to the mobile phone, and then executes step 6;

[0017] Step 6, determining whether the mobile phone receives a command to disconnect the Bluetooth connection from the first application program on the computer within a second preset time, if so, executing step 7, otherwise, accumulating the number of connection failures and returning to step 5;

[0018] Step 7, the mobile phone disconnects the Bluetooth connection with the Bluetooth headset to be tested, and reports the state that the Bluetooth headset to be tested has been disconnected from the Bluetooth connection to the first application of the computer through the second application, and then executes step 8;

[0019] Step 8, determining whether the computer receives information reported by the second application program of the mobile phone that the tested Bluetooth headset has disconnected the Bluetooth connection within a third preset time, if so, executing step 9, otherwise, accumulating the number of connection failures and returning to step 5;

[0020] Step 9, the first application on the computer will accumulate the number of successful Bluetooth disconnections, and then proceed to step 10;

[0021] Step 10, the first application on the computer sends a Bluetooth connection instruction to the mobile phone, and then executes step 11;

[0022] Step 11, determining whether the mobile phone receives a Bluetooth connection reconnection instruction issued by the first application program on the computer within a fourth preset time, if so, executing step 12, otherwise, accumulating the number of connection failures and returning to step 10;

[0023] Step 12, the mobile phone is connected to the Bluetooth headset to be tested again, and the second application reports the status that the Bluetooth headset to be tested has been successfully connected to the first application on the computer, and then, step 13 is executed;

[0024] Step 13, determining whether the computer receives information that the tested Bluetooth headset has been successfully connected as reported by the second application program of the mobile phone within the fifth preset time, if so, executing step 14, otherwise, accumulating the number of connection failures and returning to step 10;

[0025] Step 14, the first application on the computer will accumulate the number of successful Bluetooth connections and the number of test reconnections, and then execute step 15;

[0026] Step 15, determine whether the number of test reconnections reaches a preset number, if yes, execute step 16, otherwise, loop step 5 to step 14 until the preset number of reconnections is reached and execute step 16;

[0027] Step 16, calculate whether the ratio of the sum of the number of successful Bluetooth connections and the number of successful Bluetooth disconnections to the total number of connections reaches a preset value. If so, the connection stability of the Bluetooth headset to be tested meets the standard; otherwise, the connection stability of the Bluetooth headset to be tested does not meet the standard.

[0028] As a preferred solution, in step 15, the preset number of times is 1000.

[0029] As a preferred solution, the first preset time, the second preset time, the third preset time, the fourth preset time and the fifth preset time are all 15 seconds.

[0030] Compared with the prior art, the present invention has obvious advantages and beneficial effects. Specifically, it mainly realizes Bluetooth connection, disconnection and reconnection between a mobile phone and a Bluetooth headset to be tested by communicating with each other through a first application and a second application of a computer, and counts whether the ratio of the sum of the number of successful connections and the number of successful Bluetooth disconnections to the total number of connections reaches a preset value, thereby knowing whether the connection stability of the Bluetooth headset to be tested meets the standard. The entire test method has a high degree of automation, does not require manual testing, reduces the working hours of manual operation, ensures the accuracy and reliability of the test data, and has strong versatility and is suitable for any Bluetooth headset.

[0031] In order to more clearly illustrate the structural features and effects of the present invention, it is described in detail below in conjunction with the accompanying drawings and specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 It is a general flow chart of an embodiment of the present invention. DETAILED DESCRIPTION

[0033] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments.

[0034] like Figure 1 As shown, a method for testing the connection stability of a Bluetooth headset includes the following steps:

[0035] Step 1: prepare a computer, a Bluetooth headset to be tested, and a mobile phone, connect the computer and the mobile phone via a data cable, and at the same time, put the Bluetooth headset to be tested into pairing mode so that the Bluetooth headset to be tested can be searched and successfully paired; wherein,

[0036] A first application is installed on the computer, and the first application is used to obtain the Bluetooth status, the number of successful Bluetooth connections, the number of successful Bluetooth disconnections, and the number of failed connections of the Bluetooth headset to be tested;

[0037] The mobile phone is installed with a second application that cooperates with the first application. The second application is used to obtain the Bluetooth status of the mobile phone itself and control its Bluetooth function, receive instructions from the first application, and report the Bluetooth status of the mobile phone to the first application. It should be noted that in the second application, it can be determined whether the mobile phone and the Bluetooth headset to be tested are successfully connected by checking the three protocols of HFP, A2DP, and AVRCP. Preferably, it can be determined by checking whether it is connected to the mobile phone audio and connected to the media audio.

[0038] It should be noted that the pairing mode is to pre-connect and disconnect the Bluetooth headset to be tested with the mobile phone. After the Bluetooth headset to be tested is pre-connected with the mobile phone, a pairing record will be retained so that the Bluetooth headset to be tested can be searched and successfully paired later. Step 2: Connect the mobile phone to the Bluetooth headset to be tested through Bluetooth. The second application program reports the successful connection status of the Bluetooth headset to be tested to the first application program on the computer. Then, step 3 is executed.

[0039] Step 3, determine whether the computer receives the information reported by the second application of the mobile phone that the tested Bluetooth headset has been successfully connected within the first preset time. If so, execute step 4; otherwise, accumulate the number of connection failures and return to step 10; in this embodiment, the first preset time is 15 seconds.

[0040] Step 4, the first application on the computer will accumulate the number of successful Bluetooth connections, and then proceed to step 5;

[0041] Step 5, the first application of the computer sends a command to disconnect the Bluetooth connection to the mobile phone, and then executes step 6;

[0042] Step 6, determine whether the mobile phone receives an instruction to disconnect the Bluetooth connection from the first application on the computer within the second preset time. If so, execute step 7; otherwise, accumulate the number of connection failures and return to step 5; in this embodiment, the second preset time is 15 seconds.

[0043] Step 7, the mobile phone disconnects the Bluetooth connection with the Bluetooth headset to be tested, and reports the state that the Bluetooth headset to be tested has been disconnected from the Bluetooth connection to the first application of the computer through the second application, and then executes step 8;

[0044] Step 8, determine whether the computer receives the information reported by the second application of the mobile phone that the tested Bluetooth headset has disconnected the Bluetooth connection within the third preset time. If so, execute step 9; otherwise, accumulate the number of connection failures and return to step 5; in this embodiment, the third preset time is 15 seconds.

[0045] Step 9, the first application on the computer will accumulate the number of successful Bluetooth disconnections, and then proceed to step 10;

[0046] Step 10, the first application on the computer sends a Bluetooth connection instruction to the mobile phone, and then executes step 11;

[0047] Step 11, determine whether the mobile phone receives the instruction to reconnect to the Bluetooth connection sent by the first application on the computer within the fourth preset time. If so, execute step 12, otherwise, accumulate the number of connection failures and return to step 10; in this embodiment, the fourth preset time is 15 seconds.

[0048] Step 12, the mobile phone is connected to the Bluetooth headset to be tested again, and the second application reports the status that the Bluetooth headset to be tested has been successfully connected to the first application on the computer, and then, step 13 is executed;

[0049] Step 13, determine whether the computer receives the information reported by the second application of the mobile phone that the tested Bluetooth headset has been successfully connected within the fifth preset time. If so, execute step 14; otherwise, accumulate the number of connection failures and return to step 10; in this embodiment, the fifth preset time is 15 seconds.

[0050] Step 14, the first application on the computer will accumulate the number of successful Bluetooth connections and the number of test reconnections, and then execute step 15;

[0051] Step 15, determine whether the number of test reconnections reaches a preset number, if yes, execute step 16, otherwise, loop step 5 to step 14 until the preset number of reconnections is reached and execute step 16. In this embodiment, in step 15, the preset number is 1000.

[0052] Step 16, calculate whether the ratio of the sum of the number of successful Bluetooth connections and the number of successful Bluetooth disconnections to the total number of connections reaches a preset value, if so, the connection stability of the Bluetooth headset to be tested meets the standard, otherwise, the connection stability of the Bluetooth headset to be tested does not meet the standard. In this embodiment, the preset value is 99%.

[0053] The key point of the design of the present invention is that it mainly realizes Bluetooth connection, disconnection and reconnection between a mobile phone and a Bluetooth headset to be tested by communicating with each other through a first application and a second application of a computer, and counts whether the ratio of the sum of the number of successful connections and the number of successful Bluetooth disconnections to the total number of connections reaches a preset value, thereby knowing whether the connection stability of the Bluetooth headset to be tested meets the standard. The entire test method has a high degree of automation, does not require manual testing, reduces the working hours of manual operation, ensures the accuracy and reliability of the test data, and has strong versatility and is suitable for any Bluetooth headset.

[0054] The above description is only a preferred embodiment of the present invention and does not limit the technical scope of the present invention. Therefore, any slight modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention are still within the scope of the technical solution of the present invention.

Claims

1. A method for testing the connection stability of a Bluetooth headset, characterized in that: The steps include: Step 1: prepare a computer, a Bluetooth headset to be tested, and a mobile phone, connect the computer and the mobile phone via a data cable, and at the same time, put the Bluetooth headset to be tested into pairing mode so that the Bluetooth headset to be tested can be searched and successfully paired; wherein, A first application is installed on the computer, and the first application is used to obtain the Bluetooth status, the number of successful Bluetooth connections, the number of successful Bluetooth disconnections, and the number of failed connections of the Bluetooth headset to be tested; A second application program cooperating with the first application program is installed on the mobile phone, wherein the second application program is used to obtain the Bluetooth status of the mobile phone itself and control its Bluetooth function, receive instructions from the first application program, and report the Bluetooth status of the mobile phone to the first application program; Step 2, connect the mobile phone to the Bluetooth headset to be tested through Bluetooth, and the second application program reports the status that the Bluetooth headset to be tested has been successfully connected to the first application program on the computer, and then execute step 3; Step 3, determining whether the computer receives information that the tested Bluetooth headset has been successfully connected as reported by the second application program of the mobile phone within the first preset time, if so, executing step 4, otherwise, accumulating the number of connection failures and returning to step 10; Step 4, the first application on the computer will accumulate the number of successful Bluetooth connections, and then proceed to step 5; Step 5, the first application of the computer sends a command to disconnect the Bluetooth connection to the mobile phone, and then executes step 6; Step 6, determining whether the mobile phone receives a command to disconnect the Bluetooth connection from the first application program on the computer within a second preset time, if so, executing step 7, otherwise, accumulating the number of connection failures and returning to step 5; Step 7, the mobile phone disconnects the Bluetooth connection with the Bluetooth headset to be tested, and reports the state that the Bluetooth headset to be tested has been disconnected from the Bluetooth connection to the first application of the computer through the second application, and then executes step 8; Step 8, determining whether the computer receives information reported by the second application program of the mobile phone that the tested Bluetooth headset has disconnected the Bluetooth connection within a third preset time, if so, executing step 9, otherwise, accumulating the number of connection failures and returning to step 5; Step 9, the first application on the computer will accumulate the number of successful Bluetooth disconnections, and then proceed to step 10; Step 10, the first application on the computer sends a Bluetooth connection instruction to the mobile phone, and then executes step 11; Step 11, determining whether the mobile phone receives a Bluetooth connection reconnection instruction issued by the first application program on the computer within a fourth preset time, if so, executing step 12, otherwise, accumulating the number of connection failures and returning to step 10; Step 12, the mobile phone is connected to the Bluetooth headset to be tested again, and the second application reports the status that the Bluetooth headset to be tested has been successfully connected to the first application on the computer, and then, step 13 is executed; Step 13, determining whether the computer receives information that the tested Bluetooth headset has been successfully connected as reported by the second application program of the mobile phone within the fifth preset time, if so, executing step 14, otherwise, accumulating the number of connection failures and returning to step 10; Step 14, the first application on the computer will accumulate the number of successful Bluetooth connections and the number of test reconnections, and then execute step 15; Step 15, determine whether the number of test reconnections reaches a preset number, if yes, execute step 16, otherwise, loop step 5 to step 14 until the preset number of reconnections is reached and execute step 16; Step 16, calculate whether the ratio of the sum of the number of successful Bluetooth connections and the number of successful Bluetooth disconnections to the total number of connections reaches a preset value. If so, the connection stability of the Bluetooth headset to be tested meets the standard; otherwise, the connection stability of the Bluetooth headset to be tested does not meet the standard.

2. The method for testing the connection stability of a Bluetooth headset according to claim 1, characterized in that: In step 15, the preset number of times is 1000.

3. The method for testing the connection stability of a Bluetooth headset according to claim 1, characterized in that: The first preset time, the second preset time, the third preset time, the fourth preset time and the fifth preset time are all 15 seconds.

Citation Information

Cited By

  • Automatic test method of Bluetooth device and electronic device

    CN120034272A

  • Automatic testing method for bluetooth device and electronic device

    CN120034272B