Bluetooth connection testing method and device

Through the mobile terminal and control device, and the switching of Bluetooth headphones is automatically controlled and tested using simulation equipment, the problem of high manual operation cost of traditional Bluetooth headphones is solved, and automated and efficient Bluetooth connection and audio transmission tests are realized.

CN114501286BActive Publication Date: 2025-08-19SHENZHEN GRANDSUN ELECTRONICS CO LTD +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111601512.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-24
Publication Date
2025-08-19
Estimated Expiration
2041-12-24

AI Technical Summary

Technical Problem

The Bluetooth connection test of traditional Bluetooth headsets requires manual operation, resulting in high labor costs and low efficiency.

Method used

Through the mobile terminal and control device, the power on and off commands are automatically sent, the Bluetooth headset is turned on and off, and the Bluetooth connection test is carried out, including audio transmission tests, and the operation of the human ear and mouth is simulated by using simulated ears and mouths, and the test results are automatically obtained.

Benefits of technology

It realizes automated testing of Bluetooth headsets, saves labor costs, improves testing efficiency, and accurately evaluates Bluetooth connection and audio transmission performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114501286B_ABST
    Figure CN114501286B_ABST
Patent Text Reader

Abstract

This application applies to the technical field of Bluetooth headset performance testing and provides a Bluetooth connection test method and apparatus. This method, applied to a mobile terminal, sends a power-on command to a control device, which is used to control the device to power on the Bluetooth headset under test; performs a Bluetooth connection test on the Bluetooth headset under test, obtaining a test result that describes the Bluetooth connection test status of the Bluetooth headset under test; and sends a power-off command to the control device, which is used to control the device to power off the Bluetooth headset under test. This method can automatically perform Bluetooth connection tests between the Bluetooth headset under test and the mobile terminal, saving labor costs.
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 headset performance testing, and in particular to a Bluetooth connection testing method and device. Background Art

[0002] Bluetooth headsets are hands-free headsets that utilize Bluetooth technology, allowing users to connect their headsets to devices without the hindrance of a cable. Their ease and convenience have made them increasingly popular since their introduction.

[0003] During the production process of Bluetooth headsets, they are required to undergo multiple performance tests. Among them, the Bluetooth connection test is the test of the connection process between the Bluetooth headset and the terminal device after powering on, to determine the consistency of the connection between the Bluetooth headset and the terminal device.

[0004] Traditional Bluetooth connection tests are all handled manually, which is cumbersome and wastes manpower costs. Summary of the Invention

[0005] The embodiments of the present application provide a Bluetooth connection testing method and device, which can automatically perform Bluetooth connection testing and save the manpower cost of Bluetooth connection testing.

[0006] In a first aspect, an embodiment of the present application provides a Bluetooth connection testing method, which is applied to a mobile terminal. The testing process includes:

[0007] Sending a power-on instruction to the control device, wherein the power-on instruction is used by the control device to control the Bluetooth headset to be tested to power on;

[0008] Performing a Bluetooth connection test on the Bluetooth headset to be tested to obtain a test result, wherein the test result is used to describe a Bluetooth connection test condition of the Bluetooth headset to be tested;

[0009] A shutdown instruction is sent to the control device, where the shutdown instruction is used by the control device to control the Bluetooth headset to be tested to shut down.

[0010] In the Bluetooth connection test method of the above embodiment, the mobile terminal sends a power-on command to the control device, which automatically powers on the Bluetooth headset under test according to the power-on command. After the Bluetooth headset under test automatically powers on, a Bluetooth connection test is performed on the Bluetooth headset under test. A power-off command is then sent to the control device, which powers off the Bluetooth headset under test according to the power-off command, thereby completing a Bluetooth connection test. The above Bluetooth connection test method can automatically power on and off the Bluetooth headset under test and automatically perform a Bluetooth connection test on the Bluetooth headset under test. Manual power-on and power-off operations and Bluetooth connection tests are unnecessary, thereby saving labor costs.

[0011] In a possible implementation of the first aspect, performing a Bluetooth connection test on the Bluetooth headset to be tested includes:

[0012] The mobile terminal is connected to the Bluetooth headset to be tested via Bluetooth;

[0013] If the Bluetooth connection is successful, controlling the control device to perform an audio transmission test on the Bluetooth headset to be tested to obtain a first test result, where the first test result is used to describe whether the audio transmission test is successful or failed;

[0014] If the Bluetooth connection fails, a second test result is determined, where the second test result is used to describe the failure of the Bluetooth connection; the test result includes the first test result or the second test result.

[0015] In a possible implementation of the first aspect, the audio transmission test includes a playback function test; the first test result includes the playback function test result, and the playback function test result is used to describe whether the playback function of the Bluetooth headset to be tested is normal or abnormal;

[0016] The controlling the control device to perform an audio transmission test on the Bluetooth headset to be tested to obtain a first test result includes:

[0017] Sending a play function test instruction to the control device, wherein the play function test instruction is used by the control device to control the artificial ear to start up;

[0018] Playing a first audio, and receiving a first recording file corresponding to the first audio sent by the control device, wherein the first recording file is obtained by the artificial ear collecting and recording audio at the earpiece position of the Bluetooth headset to be tested;

[0019] The first recording file is analyzed to obtain the playback function test result.

[0020] In a possible implementation of the first aspect, the mobile terminal is a mobile calling device; the audio transmission test further includes a hands-free function test; the first test result further includes a hands-free function test result, and the hands-free function test result is used to describe whether the hands-free function of the Bluetooth headset to be tested is normal or abnormal;

[0021] The controlling the control device to perform an audio transmission test on the Bluetooth headset to be tested to obtain a first test result further includes:

[0022] Sending a hands-free function test instruction to the control device, wherein the hands-free function test instruction is used by the control device to control the artificial mouth to turn on and play the second audio;

[0023] Recording the handset of the mobile communication device to obtain a second recording file corresponding to the second audio;

[0024] Analyze the second recording file to obtain the hands-free function test result

[0025] In a possible implementation of the first aspect, the testing process further includes:

[0026] Acquire process data of the Bluetooth connection; the test result also includes the process data.

[0027] In a possible implementation of the first aspect, the method further includes:

[0028] Repeat the test process N times to obtain N test results;

[0029] Determine a connection test result between the mobile terminal and the Bluetooth headset to be tested according to the N test results.

[0030] In a second aspect, an embodiment of the present application provides a Bluetooth connection test method, which is applied to a control device. The test process includes:

[0031] Receiving a power-on command sent by a mobile terminal;

[0032] Sending a first instruction to the Bluetooth headset to be tested according to the power-on instruction, wherein the first instruction is used to control the Bluetooth headset to be tested to power on;

[0033] receiving a shutdown instruction sent by the mobile terminal,

[0034] A second instruction is sent to the Bluetooth headset to be tested according to the shutdown instruction, where the second instruction is used to control the Bluetooth headset to be tested to shut down.

[0035] In a possible implementation of the second aspect, the testing process further includes:

[0036] Receiving an audio test instruction sent by a mobile terminal;

[0037] The control device is controlled according to the audio test instruction to perform an audio transmission test on the Bluetooth headset to be tested.

[0038] In a third aspect, an embodiment of the present application provides a Bluetooth connection test device, comprising:

[0039] A power-on instruction sending unit, configured to send a power-on instruction to a control device, wherein the power-on instruction is used by the control device to control the Bluetooth headset to be tested to start up;

[0040] A Bluetooth connection test unit is used to perform a Bluetooth connection test on the Bluetooth headset to be tested and obtain a test result, wherein the test result is used to describe the Bluetooth connection test status of the Bluetooth headset to be tested;

[0041] A shutdown instruction sending unit is used to send a shutdown instruction to the control device, where the shutdown instruction is used by the control device to control the Bluetooth headset to be tested to shut down.

[0042] In a fourth aspect, an embodiment of the present application provides a Bluetooth connection test device, comprising:

[0043] A power-on instruction receiving unit, configured to receive a power-on instruction sent by a mobile terminal;

[0044] A power-on control unit, configured to send a first instruction to the Bluetooth headset to be tested according to the power-on instruction, wherein the first instruction is used to control the Bluetooth headset to be tested to power on;

[0045] a shutdown instruction receiving unit, receiving a shutdown instruction sent by the mobile terminal,

[0046] A shutdown control unit sends a second instruction to the Bluetooth headset to be tested according to the shutdown instruction, where the second instruction is used to control the Bluetooth headset to be tested to shut down.

[0047] In the fifth aspect, an embodiment of the present application provides a detection device, which is configured to execute the content executed by the mobile terminal in the Bluetooth connection test method described in any one of the first aspects above, or is configured to execute the content executed by the control device in the Bluetooth connection test method described in any one of the second aspects above.

[0048] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the content executed by the mobile terminal in the Bluetooth connection test method described in any one of the first aspects or the content executed by the control device in the Bluetooth connection test method described in any one of the second aspects.

[0049] In the seventh aspect, an embodiment of the present application provides a computer program product. When the computer program product is running on a terminal device, the terminal device executes the content executed by the mobile terminal in the Bluetooth connection test method described in any one of the first aspects above or the content executed by the control device in the Bluetooth connection test method described in any one of the second aspects above.

[0050] It can be understood that the beneficial effects of the second to seventh aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0052] Figure 1 This is a schematic diagram of the structure of a Bluetooth connection test system provided in one embodiment of the present application;

[0053] Figure 2 This is a schematic diagram of the module structure of a control device provided in one embodiment of the present application;

[0054] Figure 3 This is a method flow chart of the testing process in the Bluetooth connection testing method provided in one embodiment of the present application;

[0055] Figure 4 This is a flow chart of a method for performing a Bluetooth connection test on a Bluetooth headset to be tested and obtaining a test result, provided in one embodiment of the present application;

[0056] Figure 5 This is an interactive diagram of the test process of the Bluetooth connection test method provided in one embodiment of the present application;

[0057] Figure 6 This is an interactive diagram of the test process of the playback function test provided by an embodiment of the present application;

[0058] Figure 7 This is an interactive diagram of the test process of the hands-free function test provided by an embodiment of the present application;

[0059] Figure 8 This is a structural block diagram of a Bluetooth connection test device provided in one embodiment of the present application;

[0060] Figure 9 This is a structural block diagram of a Bluetooth connection testing device provided in another embodiment of the present application. DETAILED DESCRIPTION

[0061] In the following description, specific details such as specific system structures and techniques are provided for purposes of illustration rather than limitation to facilitate a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obscuring the description of the present application with unnecessary detail.

[0062] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections thereof.

[0063] It will also be understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

[0064] As used in this specification and the appended claims, the term "if" can be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.

[0065] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0066] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.

[0067] The present application provides a Bluetooth connection test method, which can control the automatic power on and off of the Bluetooth headset to be tested, and can automatically perform a Bluetooth connection test on the Bluetooth headset to be tested; there is no need for manual power on and off and Bluetooth connection test operations, thereby saving labor costs.

[0068] See also Figure 1 , shows a schematic diagram of the structure of the Bluetooth connection test system provided by this application. Figure 1 As shown, the system includes a Bluetooth headset to be tested 10, a mobile terminal 20 and a control device 30, as shown in FIG. Figure 1The control device 30 is connected to the mobile terminal 20 for communication. The control device 30 is connected to the Bluetooth headset 10 to be tested. The mobile terminal 20 has a built-in Bluetooth module.

[0069] During use, the mobile terminal 20 sends a power-on command or a power-off command to the control device 30. The control device 30 controls the Bluetooth headset 10 to be tested to be powered on according to the received power-on command, and controls the Bluetooth headset 10 to be tested to be powered off according to the received power-off command; and the mobile terminal 20 performs a Bluetooth connection test on the Bluetooth headset 10 to be tested.

[0070] The Bluetooth connection test method provided in the embodiment of the present application mainly focuses on the Bluetooth connection between the Bluetooth headset to be tested and the mainstream mobile devices on the market during the production process; for example, the connection test includes testing the process of reconnecting the Bluetooth headset to the mobile device after powering on, as well as testing the basic audio transmission process after reconnection.

[0071] The Bluetooth headset 10 to be tested in the embodiment of the present application can be a head-mounted Bluetooth headset, a dual-ear independent Bluetooth headset, a common in-ear Bluetooth headset, a neck-hanging Bluetooth headset, etc., which is not limited here.

[0072] The mobile terminal 20 in the embodiment of the present application includes a Bluetooth module that can connect to other Bluetooth devices. For example, it can be a mobile phone with Bluetooth connection function, a notebook, a tablet computer, a car-mounted smart terminal, a smart wearable device, etc., which are not limited here.

[0073] In the actual production process of Bluetooth headsets, in order to ensure that the Bluetooth headsets have a wider range of applications when used in the future, it is often necessary to conduct Bluetooth connection tests on the Bluetooth headsets and mainstream mobile terminals on the market respectively, so as to determine the Bluetooth connection status between the Bluetooth headsets to be tested and different mobile terminals.

[0074] Optional, such as Figure 1 As shown, the Bluetooth connection test system may further include an artificial ear 40, which is connected to the control device 30. The control device 30 controls the power on and off of the artificial ear 40. When powered on, the artificial ear 40 is used to collect and record audio at the earpiece position of the Bluetooth headset 10 to be tested, and send the recorded audio file to the control device 30.

[0075] Optional, such as Figure 1 As shown, the Bluetooth connection test system may further include an artificial mouth 50, which is connected to the control device 30. The control device 30 controls the power on and off of the artificial mouth 50. When powered on, the artificial mouth 50 is used to play audio at the microphone position of the Bluetooth headset 10 to be tested.

[0076] Figure 2A schematic diagram of the module structure of a control device provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the control device 30 may include a processor 31, a memory 32, and a computer program 33 set in the memory 32. Figure 2 As shown, the control device 30 may further include a communication module 34 , wherein the communication module 34 is configured to communicate with the mobile terminal 20 .

[0077] The processor 31 is used to process information obtained from the mobile terminal 20. The processor 31 can be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.

[0078] In some embodiments, the memory 32 may be an internal storage unit of the control device 30, such as a hard disk or memory. In other embodiments, the memory 32 may also be an external storage device of the control device 30, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the control device 30. Furthermore, the memory 32 may include both an internal storage unit of the control device 30 and an external storage device. The memory 32 is used to store an operating system, application programs, a boot loader, data, and other programs, such as the program code of the computer program. The memory 32 may also be used to temporarily store data that has been output or is about to be output.

[0079] The communication module 34 is used to communicate with the mobile terminal 20. For example, the communication module 34 can provide communication solutions including wireless local area networks (WLAN) (such as Wi-Fi networks), Bluetooth, Zigbee, mobile communication networks, global navigation satellite systems (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc., which are applied to the control device 30. The communication module can be one or more devices that integrate at least one communication processing module. The communication module can include an antenna, which can have only one array element or an antenna array including multiple array elements. The communication module can receive electromagnetic waves through the antenna, frequency modulate and filter the electromagnetic wave signals, and send the processed signals to the processor. The communication module can also receive signals to be sent from the processor, frequency modulate and amplify them, and convert them into electromagnetic waves for radiation through the antenna.

[0080] The following is an exemplary description of a Bluetooth connection test method provided by the present application in conjunction with specific embodiments. For example, a test software may be installed on the mobile terminal, and the test software is used to execute the steps performed by the mobile terminal in the Bluetooth connection test method.

[0081] Figure 3 A flowchart of the test process of the Bluetooth connection test method provided in one embodiment of the present application is shown. The method is applied to a mobile terminal. As an example and not a limitation, the test process includes the following steps:

[0082] Step S301: Send a power-on instruction to a control device, where the power-on instruction is used by the control device to control the Bluetooth headset to be tested to power on.

[0083] In this embodiment, at the beginning of the test process, the control device is used to control the power on of the Bluetooth headset to be tested, replacing the manual power on process, thereby saving labor costs. It is understood that at the end of the test process, the control device is also used to control the power off of the Bluetooth headset, and the control method is similar to the power on control method.

[0084] As an example and not a limitation, the following specifically describes the process of controlling the power on and off of the Bluetooth headset to be tested by the control device in combination with different application scenarios of the Bluetooth connection test method and different types of Bluetooth headsets.

[0085] In one embodiment, the Bluetooth connection test method can be applied to the production process of a Bluetooth headset to test an unassembled Bluetooth headset. In this application scenario, the pin of the power button of the Bluetooth headset is exposed.

[0086] For example, when the Bluetooth headset to be tested is a head-mounted Bluetooth headset, the control device is connected to a control power supply, and the control power supply is connected to the exposed pins of the Bluetooth headset to be tested through a wire. The control device controls the card or shutdown of the Bluetooth headset to be tested by changing the output of the control power supply.

[0087] It is understandable that when the Bluetooth headset to be tested is a Bluetooth headset that is charged using a charging case, the control device can be connected to the Bluetooth headset through the charging contacts of the Bluetooth headset, thereby controlling the power on and off of the Bluetooth headset.

[0088] In another embodiment, the Bluetooth connection test method can be applied to the testing of assembled Bluetooth headsets. During the test, an operating device (e.g., a robotic arm) that can simulate human hand movements is required. The control device is connected to the operating device to control the operating device to simulate human hands to perform power on or off actions.

[0089] For example, when the power on / off mode of the Bluetooth headset to be tested is to touch or press the power button, the operating device performs a pressing or touching operation to realize the power on / off.

[0090] Optionally, when the Bluetooth headset to be tested is a Bluetooth headset with a charging compartment, the power on and off method may be achieved by taking the Bluetooth headset out of the charging compartment and putting it back. At this time, the operating device performs the taking out and putting back operations to achieve power on and off.

[0091] Those skilled in the art can design an operating device (such as a manipulator) based on existing technologies, which will not be described in detail here.

[0092] Step S302: Perform a Bluetooth connection test on the Bluetooth headset to be tested to obtain a test result, which is used to describe the Bluetooth connection test status of the Bluetooth headset to be tested.

[0093] In an embodiment, the Bluetooth connection test may include a test of connecting the Bluetooth headset to be tested to the mobile terminal after it is turned on. This test mainly detects whether the Bluetooth headset to be tested can successfully establish a Bluetooth connection with the mobile terminal device after it is turned on. Optionally, the Bluetooth connection test may also include an audio transmission test performed when the Bluetooth connection is successful. This test mainly detects whether audio transmission can be performed between the Bluetooth headset to be tested and the mobile terminal.

[0094] Step S303: Send a shutdown instruction to the control device, where the shutdown instruction is used by the control device to control the Bluetooth headset to be tested to shut down.

[0095] The Bluetooth connection test method in the above embodiment can control the power on and off of the Bluetooth headset to be tested by the control device, and can automatically perform a Bluetooth connection test on the Bluetooth headset to be tested, thereby saving labor costs.

[0096] Figure 4 This is a flow chart of a method for performing a Bluetooth connection test on a Bluetooth headset to be tested and obtaining a test result in an embodiment of the present application. Figure 4 The method for performing a Bluetooth connection test on the Bluetooth headset to be tested in this embodiment specifically includes the following steps:

[0097] Step S401: The mobile terminal establishes a Bluetooth connection with the Bluetooth headset to be tested.

[0098] Step S402: Determine whether the Bluetooth connection is successful.

[0099] In an embodiment, after the Bluetooth headset to be tested is turned on, the mobile terminal establishes a Bluetooth connection with the Bluetooth headset to be tested. For example, the mobile terminal is always in a state of searching for a pairable Bluetooth device. After the Bluetooth headset to be tested is turned on, if the mobile terminal searches for the Bluetooth headset to be tested, it initiates a connection request. If the Bluetooth connection is completed within a preset time period, the Bluetooth connection is determined to be successful. If the Bluetooth headset to be tested cannot be searched or the Bluetooth connection cannot be completed within the preset time period, the Bluetooth connection is determined to be unsuccessful.

[0100] Optionally, during the Bluetooth connection process, the mobile terminal may be allowed to initiate a maximum of a preset number of connection requests, that is, if the Bluetooth connection is not completed within a preset time period after initiating a connection request once, the connection request may be initiated repeatedly; if the Bluetooth connection still cannot be completed after initiating a preset number of connection requests, the Bluetooth connection is judged to have failed.

[0101] Step S403: If the Bluetooth connection is successful, control the control device to perform an audio transmission test on the Bluetooth headset to be tested to obtain a first test result.

[0102] Step S404: If the Bluetooth connection fails, determine a second test result; the test result includes the first test result or the second test result.

[0103] In this embodiment, the first test result is used to describe the success or failure of the audio transmission test, and the second test result is used to describe the failure of the Bluetooth connection. That is, regardless of whether the Bluetooth connection is successful or not, as long as the test result is finally obtained, the Bluetooth headset to be tested is turned off, thereby completing a Bluetooth connection test.

[0104] In one embodiment, the test process in the Bluetooth connection test method further includes: obtaining process data of the Bluetooth connection; and the test result also includes process data. In the embodiment, while obtaining the test result, the process data of the Bluetooth connection process is also obtained. The process data can provide R&D personnel with more data information about the Bluetooth connection, thereby facilitating the R&D personnel's analysis of the test result data. For example, if the test result is considered inaccurate, the R&D personnel can further revise the final test result by reviewing the process data. Exemplarily, the process data may include: the time when the Bluetooth connection request is initiated, the time when the connection is reconnected, the time taken to reconnect, the number of times the Bluetooth connection request is initiated, the reconnection success rate, etc.

[0105] In one embodiment, the Bluetooth connection test method further includes: repeatedly performing the test process N times to obtain N test results; and determining a connection test result between the mobile terminal and the Bluetooth headset to be tested according to the N test results.

[0106] In the embodiment, in order to ensure the stability of the Bluetooth connection test results, the test process is repeated N times, where N is set according to actual needs. It should be noted that in actual applications, one connection test result corresponds to one Bluetooth headset to be tested and one mobile terminal. For example, a Bluetooth headset to be tested needs to perform Bluetooth connection tests with multiple mobile devices respectively. If there are 5 mobile devices participating in the test, then the Bluetooth headset to be tested needs to perform N test processes with each mobile device to obtain 1 connection test result; therefore, the Bluetooth headset to be tested will correspond to 5 connection test results, and each connection test result corresponds to one mobile device.

[0107] In the embodiment, the connection test result between the mobile terminal and the Bluetooth headset to be tested is determined according to N test results. Specifically, the N test results are statistically analyzed to obtain the connection test result between the Bluetooth headset to be tested and the mobile terminal.

[0108] Exemplarily, statistical analysis uses N test results to calculate the percentage S1 of the first test result that is successful audio transmission, the percentage S2 of the first test result that is failed audio transmission, or the percentage S3 of the connection test result that is the second test result, etc.

[0109] Optionally, in the evaluation of the final connection test result, whether the Bluetooth connection test of the combination of the Bluetooth headset and the mobile terminal to be tested corresponding to the connection test result is qualified can be determined based on the comparison of the percentage S1 of successful audio transmission with a preset threshold.

[0110] For example, if the percentage S1 of successful audio transmission is greater than 95%, it is determined that the Bluetooth connection test of the combination of the Bluetooth headset and the mobile terminal to be tested corresponding to the connection test result is qualified; if the percentage S1 of successful audio transmission is less than 95%, it is determined that the Bluetooth connection test of the combination of the Bluetooth headset and the mobile terminal to be tested corresponding to the connection test result is unqualified.

[0111] For example, suppose that for a certain Bluetooth headset to be tested, we stipulate that a connection test result needs to be repeated 300 times. And it is necessary to perform Bluetooth connection tests on combination 1 (Bluetooth headset A to be tested-mobile terminal B) and combination 2 (Bluetooth headset A to be tested-mobile terminal C), respectively. Combination 1 and combination 2 correspond to 300 test results respectively. Statistical analysis is performed on the 300 test results corresponding to combination 1 to obtain connection test result X, and statistical analysis is performed on the 300 test results corresponding to combination 1 to obtain connection test result Y. The connection test result X includes S X1 、S X2 and S X3 , connection test result Y includes S Y1 、S Y2 and S Y3 .

[0112] In actual applications, in order to ensure the stability of the final connection test result, it is necessary to repeat the test process hundreds of times to obtain a connection test result. If all mainstream mobile devices on the market are tested, then it will need to be repeated thousands of times. Therefore, the workload of manual testing is very huge. The above embodiment adopts the Bluetooth connection test method of this application to automatically perform the test, which can save a lot of manpower and time costs.

[0113] In one embodiment, the Bluetooth connection test method further includes: the mobile terminal outputting the test result and the connection test result. The output method may be generating a report file including the test result and the connection test result, or displaying the test result and the connection test result in a preset display area.

[0114] In order to make the specific process of the test process in the Bluetooth connection test method in this application clearer, this application Figure 5 FIG2 shows an interactive diagram of a test process of a Bluetooth connection test method provided in an embodiment of the present application. As an example and not a limitation, the test process includes:

[0115] Step S501: The mobile terminal sends a power-on instruction to the control device.

[0116] Step S502: The control device sends a first instruction to the Bluetooth headset to be tested according to the power-on instruction.

[0117] Step S503: The Bluetooth headset to be tested is turned on according to the first instruction.

[0118] Step S504: The mobile terminal establishes a Bluetooth connection with the Bluetooth headset to be tested.

[0119] Step S505: The mobile terminal and the control terminal perform a Bluetooth connection test on the Bluetooth headset to be tested to obtain a test result, which is used to describe the Bluetooth connection test status of the Bluetooth headset to be tested.

[0120] Step S506: The mobile terminal sends a shutdown instruction to the control device.

[0121] Step S507: The control device sends a second instruction to the Bluetooth headset to be tested according to the shutdown instruction.

[0122] Step S508: The Bluetooth headset to be tested is turned off according to the second instruction.

[0123] In the embodiment, the control device sends a first instruction and a second instruction to the Bluetooth headset to be tested. The Bluetooth headset to be tested is turned on according to the first instruction and turned off according to the second instruction. After the Bluetooth headset is turned off, a test process is completed.

[0124] In one embodiment, the audio transmission test includes a playback function test, which primarily tests the A2DP (Advanced Audio Distribution Profile) of the Bluetooth headset under test. The playback function test is primarily used to test whether the Bluetooth headset under test can transmit audio played by a mobile terminal connected to it via Bluetooth to the earpiece of the Bluetooth headset under test. The first test result includes a playback function test result, which is used to describe whether the playback function of the Bluetooth headset under test is normal or abnormal.

[0125] Figure 6 The test process interaction diagram of the playback function test in one embodiment of the present application is shown as follows: Figure 6 As shown, the testing process specifically includes the following steps:

[0126] Step S601: The mobile terminal sends a play function test instruction to the control device.

[0127] Step S602: The control device sends a power-on instruction to the artificial ear according to the playback function test instruction.

[0128] Step S603: The artificial ear is powered on according to the power-on instruction.

[0129] Step S604: The mobile terminal plays the first audio.

[0130] Step S605: The artificial ear collects and records audio at the earpiece position of the Bluetooth headset to be tested to obtain a first recording file.

[0131] In this embodiment, the artificial ear is a device for measuring and calibrating the acoustic properties of headphones and speaker components. For example, the IEC318E610AA artificial ear consists of a CPI 6023 1 / 2-inch pressure field measurement microphone and a coupling cavity with characteristics close to the average human outer ear acoustic properties. Of course, other artificial ear models that meet the requirements of this embodiment are also applicable to this application and are not described in detail here.

[0132] Step S606: The artificial ear sends the first recording file to the control device.

[0133] Step S607: The control device sends the first recording file to the mobile terminal.

[0134] Step S608: The mobile terminal analyzes the first recording file to obtain a playback function test result.

[0135] In an embodiment, the analysis of the first recording file can be a simple analysis of the first recording file, such as identifying whether there is audio data in the first recording file: if audio data is identified in the first recording file, it is determined that the playback function test result is that the playback function of the Bluetooth headset to be tested is normal; if no audio data is identified in the first recording file, it is determined that the playback function test result is that the playback function of the Bluetooth headset to be tested is abnormal.

[0136] Optionally, analyzing the first recording file may be comparing the first recording file with the first audio played by the mobile terminal to determine whether the similarity between the first recording file and the first audio reaches a preset similarity threshold: if so, determining that the playback function test result is that the playback function of the tested Bluetooth headset is normal; if not, determining that the playback function test result is that the playback function of the tested Bluetooth headset is abnormal. Exemplarily, spectrum analysis can be performed on the first audio and the first recording file respectively, and determining whether the first recording file contains audio and whether the audio in the first recording file is the same as the first audio based on the spectrum analysis results of the two.

[0137] Step S609: The mobile terminal sends a play function test end instruction to the control device.

[0138] Step S610: The control device sends a shutdown command to the artificial ear according to the artificial ear shutdown command.

[0139] Step S611: The artificial ear is shut down according to the shutdown instruction.

[0140] In the above embodiment, by introducing an artificial ear and securing it near the earpiece of the Bluetooth headset to be tested, the action of a human ear receiving Bluetooth headset audio is simulated. This avoids the need for manual operation and the resulting human resource utilization, thus reducing labor costs. Furthermore, because the artificial ear automatically powers on and off in conjunction with the playback function test, while obtaining a first recording file corresponding to the first audio file in time, it avoids the waste of resources and the introduction of unnecessary noise caused by prolonged power-on.

[0141] In one embodiment, if the mobile terminal is a mobile communication device, such as a mobile phone, the audio transmission test also includes a hands-free function test, which is mainly a test of the HFP (Hands Free Profile) of the Bluetooth headset to be tested. The hands-free function test is mainly used to test whether the Bluetooth headset to be tested can transmit audio from the microphone of the Bluetooth headset to the Bluetooth-connected mobile terminal. In this case, the first test result includes a hands-free function test result, which is used to describe whether the hands-free function of the Bluetooth headset to be tested is normal or abnormal.

[0142] Figure 7 The test process interaction diagram of the hands-free function test in one embodiment of the present application is shown as follows: Figure 6 As shown, the testing process specifically includes the following steps:

[0143] Step S701: The mobile terminal sends a hands-free function test instruction to the control device.

[0144] Step S702: The control device sends a power-on instruction to the artificial mouth according to the hands-free function test instruction.

[0145] Step S703: The artificial mouth is powered on according to the power-on instruction and plays the second audio.

[0146] In this embodiment, the artificial mouth is a sound source used to simulate human mouth sounds. It can be used to measure acoustic parameters such as frequency response and distortion in transmission and communication products such as mobile phones, telephones, microphones, and Bluetooth speakers. The artificial mouth provides a standard sound source with stable, wide-band response, and low distortion.

[0147] Step S704: The mobile terminal records the receiver of the mobile terminal to obtain a second recording file corresponding to the second audio.

[0148] Step S705: The mobile terminal analyzes the second recording file to obtain a hands-free function test result.

[0149] In an embodiment, the analysis of the second recording file is similar to the analysis method of the first recording file, and can be a simple analysis of the second recording file, such as identifying whether there is audio data in the second recording file: if audio data is identified in the second recording file, it is determined that the hands-free function test result is that the hands-free function of the Bluetooth headset to be tested is normal; if no audio data is identified in the second recording file, it is determined that the hands-free function test result is that the hands-free function of the Bluetooth headset to be tested is abnormal.

[0150] Optionally, analyzing the second recording file may include comparing the second recording file with the second audio to determine whether the second recording file contains the same audio as the second audio: if so, determining that the hands-free function test result indicates that the hands-free function of the Bluetooth headset under test is normal; if not, determining that the hands-free function test result indicates that the hands-free function of the Bluetooth headset under test is abnormal. Exemplarily, spectrum analysis may be performed on the second audio and the second recording file, respectively, to determine whether the second recording file contains audio and whether the audio in the second recording file is the same as the second audio based on the spectrum analysis results of the two.

[0151] Step S706: The mobile terminal sends a hands-free function test instruction to the control device.

[0152] Step S707: The control device sends a shutdown instruction to the artificial mouth according to the hands-free function test instruction.

[0153] Step S708: The artificial mouth shuts down according to the shutdown instruction.

[0154] In the above embodiment, by introducing an artificial mouth and securing the artificial ear near the microphone of the Bluetooth headset under test, the action of a human mouth emitting the second audio frequency is simulated. This avoids the need for manual operation and the resulting human resources, thus reducing labor costs. Furthermore, because the artificial mouth automatically turns on and off in conjunction with the hands-free function test, a second recording file corresponding in time to the second audio frequency is obtained while avoiding the waste of resources and the introduction of unnecessary noise caused by prolonged operation.

[0155] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0156] Corresponding to the Bluetooth connection test method described in the above embodiment, Figure 8 A structural block diagram of a Bluetooth connection test device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0157] Reference Figure 8 , the Bluetooth connection test device 80 includes:

[0158] A power-on instruction sending unit 81 is used to send a power-on instruction to the control device, where the power-on instruction is used to control the device to power on the Bluetooth headset to be tested;

[0159] A Bluetooth connection test unit 82 is used to perform a Bluetooth connection test on the Bluetooth headset to be tested and obtain a test result, wherein the test result is used to describe the Bluetooth connection test status of the Bluetooth headset to be tested;

[0160] The shutdown instruction sending unit 83 is used to send a shutdown instruction to the control device, where the shutdown instruction is used by the control device to control the Bluetooth headset to be tested to shut down.

[0161] Optionally, when the Bluetooth connection test unit 82 is used to perform a Bluetooth connection test on the Bluetooth headset to be tested, it is specifically used to: establish a Bluetooth connection between the mobile terminal and the Bluetooth headset to be tested; if the Bluetooth connection is successful, control the control device to perform an audio transmission test on the Bluetooth headset to be tested to obtain a first test result, and the first test result is used to describe whether the audio transmission test is successful or failed; if the Bluetooth connection fails, determine the second test result, and the second test result is used to describe the failure of the Bluetooth connection; the test result includes the first test result or the second test result.

[0162] Optionally, the audio transmission test includes a playback function test; the first test result includes a playback function test result, and the playback function test result is used to describe whether the playback function of the Bluetooth headset to be tested is normal or abnormal; when the Bluetooth connection test unit 82 is used to control the control device to perform an audio transmission test on the Bluetooth headset to be tested and obtains the first test result, it is specifically used to: send a playback function test instruction to the control device, and the playback function test instruction is used to control the device to control the simulation ear to turn on; play the first audio, and receive a first recording file corresponding to the first audio sent by the control device, the first recording file is obtained by the simulation ear collecting and recording audio at the earpiece position of the Bluetooth headset to be tested; analyze the first recording file to obtain the playback function test result.

[0163] Optionally, when the Bluetooth connection test unit 82 is used to control the control device to perform an audio transmission test on the Bluetooth headset to be tested and obtain a first test result, it is also used to: send a playback function test end instruction to the control device, and the playback function test is ended for the control device to control the simulated ear to shut down.

[0164] Optionally, the mobile terminal is a mobile call device; the audio transmission test also includes a hands-free function test; the first test result also includes a hands-free function test result, and the hands-free function test result is used to describe whether the hands-free function of the Bluetooth headset to be tested is normal or abnormal; the Bluetooth connection test unit 82 is used to control the control device to perform an audio transmission test on the Bluetooth headset to be tested, and when the first test result is obtained, it is specifically used to: send a hands-free function test instruction to the control device, and the hands-free function test instruction is used to control the device to control the artificial mouth to turn on and play a second audio; record the earpiece of the mobile call device to obtain a second recording file corresponding to the second audio; analyze the second recording file to obtain the hands-free function test result.

[0165] Optionally, when the Bluetooth connection test unit 82 is used to control the control device to perform an audio transmission test on the Bluetooth headset to be tested and obtain a first test result, it is specifically used to: send a hands-free function test instruction to the control device, and the hands-free function test instruction is used to control the device to control the artificial mouth to shut down.

[0166] Optionally, the Bluetooth connection test unit 82 is further configured to obtain process data of the Bluetooth connection; the test result also includes the process data.

[0167] Optionally, the Bluetooth connection test method device 80 further includes a statistical unit, which is configured to determine a connection test result between the mobile terminal and the Bluetooth headset to be tested according to the N test results after the Bluetooth connection test unit 82 obtains N test results.

[0168] In another embodiment of the present application, another Bluetooth connection test device 90 is provided, and the Bluetooth connection test device 90 includes:

[0169] A power-on instruction receiving unit 91 is configured to receive a power-on instruction sent by a mobile terminal;

[0170] A power-on control unit 92 is configured to send a first instruction to the Bluetooth headset to be tested according to the power-on instruction, wherein the first instruction is configured to control the Bluetooth headset to be tested to power on;

[0171] The power-off instruction receiving unit 93 receives the power-off instruction sent by the mobile terminal.

[0172] The shutdown control unit 94 sends a second instruction to the Bluetooth headset to be tested according to the shutdown instruction, where the second instruction is used to control the Bluetooth headset to be tested to shut down.

[0173] Optionally, the Bluetooth connection testing device 90 further includes:

[0174] A test instruction receiving unit, configured to receive an audio test instruction sent by a mobile terminal;

[0175] The audio transmission test unit is used to control the control device to perform an audio transmission test on the Bluetooth headset to be tested according to the audio test instruction.

[0176] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of this application. Their specific functions and technical effects can be found in the method embodiment section and will not be repeated here.

[0177] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0178] An embodiment of the present application also provides a detection device, which may be the terminal device described in the above embodiment or the control device described in the above embodiment.

[0179] An embodiment of the present application further provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the steps performed by the mobile terminal 20 or the control device 30 in the above-mentioned various method embodiments are implemented.

[0180] An embodiment of the present application provides a computer program product. When the computer program product is run on a terminal device, the terminal device can implement the steps performed by the mobile terminal 20 or the control device 30 in the above-mentioned various method embodiments.

[0181] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, it can implement the steps of the above-mentioned various method embodiments. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying the computer program code to the device / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, a computer-readable medium cannot be an electric carrier signal or a telecommunication signal.

[0182] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.

[0183] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0184] In the embodiments provided in this application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely illustrative. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0185] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0186] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.

Claims

1. A Bluetooth connection testing method, characterized in that: Applied to mobile terminals, the testing process includes: Sending a power-on instruction to the control device, wherein the power-on instruction is used by the control device to control the Bluetooth headset to be tested to power on; Performing a Bluetooth connection test on the Bluetooth headset to be tested to obtain a test result, wherein the test result is used to describe a Bluetooth connection test condition of the Bluetooth headset to be tested; Sending a shutdown instruction to the control device, wherein the shutdown instruction is used by the control device to control the Bluetooth headset to be tested to shut down; The performing a Bluetooth connection test on the Bluetooth headset to be tested includes: The mobile terminal is connected to the Bluetooth headset to be tested via Bluetooth; If the Bluetooth connection is successful, controlling the control device to perform an audio transmission test on the Bluetooth headset to be tested to obtain a first test result, wherein the successful Bluetooth connection indicates that a Bluetooth connection is established between the mobile terminal and the Bluetooth headset to be tested, and the first test result is used to describe whether the audio transmission test is successful or failed; If the Bluetooth connection fails, a second test result is determined. The Bluetooth connection failure indicates that a Bluetooth connection cannot be established between the mobile terminal and the Bluetooth headset to be tested. The second test result is used to describe the Bluetooth connection failure. The test result includes the first test result or the second test result.

2. The method according to claim 1, characterized in that The audio transmission test includes a playback function test; the first test result includes the playback function test result, and the playback function test result is used to describe whether the playback function of the Bluetooth headset to be tested is normal or abnormal; The controlling the control device to perform an audio transmission test on the Bluetooth headset to be tested to obtain a first test result includes: Sending a play function test instruction to the control device, wherein the play function test instruction is used by the control device to control the artificial ear to start up; Playing a first audio, and receiving a first recording file corresponding to the first audio sent by the control device, wherein the first recording file is obtained by the artificial ear collecting and recording audio at the earpiece position of the Bluetooth headset to be tested; The first recording file is analyzed to obtain the playback function test result.

3. The method according to claim 2, characterized in that The mobile terminal is a mobile calling device; the audio transmission test also includes a hands-free function test; the first test result also includes a hands-free function test result, and the hands-free function test result is used to describe whether the hands-free function of the Bluetooth headset to be tested is normal or abnormal; The controlling the control device to perform an audio transmission test on the Bluetooth headset to be tested to obtain a first test result further includes: Sending a hands-free function test instruction to the control device, wherein the hands-free function test instruction is used by the control device to control the artificial mouth to turn on and play the second audio; Recording the handset of the mobile communication device to obtain a second recording file corresponding to the second audio; The second recording file is analyzed to obtain the hands-free function test result.

4. The method according to claim 1, wherein The testing process also includes: Acquire process data of the Bluetooth connection; the test result also includes the process data.

5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: Repeat the test process N times to obtain N test results; Determine a connection test result between the mobile terminal and the Bluetooth headset to be tested according to the N test results. 6 . A detection device, configured to execute the content executed by the mobile terminal in the Bluetooth connection test method according to claim 1 .

7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by the processor, the content executed by the mobile terminal in the Bluetooth connection testing method according to any one of claims 1 to 5 is implemented.

8. A Bluetooth connection test system, characterized in that: The Bluetooth connection test system includes: a Bluetooth headset to be tested, a mobile terminal, a control device, an artificial ear and an artificial mouth, the control device is communicatively connected to the mobile terminal, and the control device is respectively connected to the Bluetooth headset to be tested, the artificial ear and the artificial mouth, the mobile terminal has a built-in Bluetooth module, and the Bluetooth module is used to realize a Bluetooth connection between the mobile terminal and the Bluetooth headset to be tested; the mobile terminal is configured to perform the Bluetooth connection test method described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Bluetooth electroacoustic equipment measuring system based on handheld mobile terminal

    CN111526470A

  • Automatic test method and device based on Bluetooth and Bluetooth test terminal

    CN112996020A