Bluetooth test equipment, test method, device, control equipment, storage medium and program product

By providing a Bluetooth test device containing multiple Bluetooth components, the problem of long time-consuming testing of Bluetooth communication equipment is solved, automated testing is realized, and testing efficiency and coverage are improved.

CN118764104APending Publication Date: 2024-10-11SPREADTRUM COMMUNICATION (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410979630.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

During the development process of Bluetooth communication equipment, testers need to manually adjust various Bluetooth function scenarios of the device under test, which causes the test to take a long time and reduces the testing efficiency of iterative versions.

Method used

A Bluetooth test device is provided. The device includes multiple Bluetooth components and is capable of connecting to a control device and a device under test, automatically testing Bluetooth components of different device types or device information, and executing test instructions and returning results by receiving commands from the control device. , to achieve automated Bluetooth function testing.

Benefits of technology

It shortens the test time, improves the efficiency of iterative version testing of the device under test, and realizes automated testing of multiple Bluetooth function scenarios, with wider coverage and higher flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764104A_ABST
    Figure CN118764104A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a Bluetooth test device, a test method, a device, a control device, a storage medium and a program product, the Bluetooth test device is connected with the control device and a to-be-tested device, the Bluetooth test device comprises a plurality of Bluetooth components, and the device types or device information of the plurality of Bluetooth components are different; wherein the Bluetooth test equipment is used for receiving a first control command sent by the control equipment, determining a first execution result corresponding to the first control command based on the plurality of Bluetooth components, and sending the first execution result to the control equipment; the control device is also used for receiving a second control command sent by the control device, sending the second control command to the to-be-tested device, receiving a second execution result corresponding to the second control command sent by the to-be-tested device, and sending the second execution result to the control device; and the control device determines a Bluetooth test result of the to-be-tested device according to the first execution result and the second execution result. The equipment is beneficial for improving the Bluetooth test efficiency of the equipment to be tested.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a Bluetooth test device, a test method, an apparatus, a control device, a storage medium, and a program product. Background Art

[0002] During the development of Bluetooth communication devices, testers need to quickly verify the iterative versions of the device under test to resolve program errors (bugs) in the version development process of the device under test and ensure the product quality of the device under test. The device under test can be a Bluetooth communication device that supports Bluetooth function.

[0003] During the version test of the device under test, each Bluetooth function scenario of the device under test needs to be tested. In the related art, the control device can control the device under test to connect with various Bluetooth devices (such as headphones, speakers, mice and keyboards, etc.) to test whether each Bluetooth function of the device under test is normal.

[0004] However, when the Bluetooth function scenario switches, the tester needs to manually adjust the Bluetooth device corresponding to the Bluetooth function scenario to which the device under test is connected each time, resulting in a long test time for multiple Bluetooth function scenarios of the device under test, thereby resulting in low testing efficiency of iterative versions of the device under test. Summary of the invention

[0005] The embodiments of the present application provide a Bluetooth test device, a test method, an apparatus, a control device, a storage medium and a program product, which are used to solve the problem in the related art that it takes a long time to test various Bluetooth function scenarios of the device to be tested, resulting in low testing efficiency of iterative versions of the device to be tested.

[0006] In a first aspect, an embodiment of the present application provides a Bluetooth test device, wherein the Bluetooth test device is connected to a control device and a device to be tested respectively, and the Bluetooth test device includes multiple Bluetooth components, and the device types or device information of the multiple Bluetooth components are different; wherein:

[0007] The Bluetooth test device is used to receive a first control command sent by the control device, determine a first execution result corresponding to the first control command based on the multiple Bluetooth components, and send the first execution result to the control device;

[0008] The Bluetooth test device is also used to receive a second control command sent by the control device and send the second control command to the device under test, as well as to receive a second execution result corresponding to the second control command sent by the device under test and send the second execution result to the control device, so that the control device determines the Bluetooth test result of the device under test based on the first execution result and the second execution result.

[0009] In a possible implementation, the Bluetooth test device includes a controller, and the controller is used to connect each Bluetooth component and the control device; and determining the first execution result corresponding to the first control command based on the multiple Bluetooth components includes:

[0010] Determining, by the controller, a target Bluetooth component from among the multiple Bluetooth components according to the target component identifier in the first control command;

[0011] Determine, by the controller, a target execution instruction corresponding to the first control command, and send the target execution instruction to the target Bluetooth component;

[0012] The target execution instruction is executed by the target Bluetooth component to obtain the first execution result, and the first execution result is sent to the controller.

[0013] In a possible implementation, the Bluetooth test device further includes an audio storage component and an audio test interface component, the multiple Bluetooth components include an audio component, and the audio component is respectively connected to the controller, the audio storage component and the audio test interface component, wherein:

[0014] The audio component is used to send Bluetooth audio data to the audio storage component in response to the audio output instruction of the controller;

[0015] The audio storage component is also connected to the controller, and the audio storage component is used to store the Bluetooth audio data sent by the audio component in response to the audio control instruction of the controller, and send the Bluetooth audio data to the control device;

[0016] The audio test interface component is used to provide an audio speaker interface and a microphone interface of the audio component.

[0017] In a possible implementation, the Bluetooth test device further includes a first interface and an interface extension component, the first interface is connected to the control device and the interface extension component respectively, and the interface extension component is also used to connect the controller and the device under test, wherein:

[0018] The first interface is used to receive the first control command and the second control command sent by the control device, and send the first control command and the second control command to the interface extension component;

[0019] The first interface is further used to receive the first execution result and the second execution result sent by the interface extension component, and send the first execution result and the second execution result to the control device;

[0020] The interface extension component is used to receive the first control command and the second control command sent by the first interface, and send the first control command to the controller, and send the second control command to the device under test;

[0021] The interface extension component is further used to receive the first execution result sent by the controller, receive the second execution result sent by the device under test, and send the first execution result and the second execution result to the first interface.

[0022] In a possible implementation manner, the Bluetooth test device further includes a test machine interface component, wherein:

[0023] The test machine interface component includes a plurality of second interfaces, and the test machine interface component is used to connect a plurality of devices under test through the plurality of second interfaces;

[0024] The test machine interface component is also connected to the interface extension component, and the interface extension component is used to send the second control command to the device under test through the test machine interface component, and receive the second execution result sent by the device under test through the test machine interface component.

[0025] In a possible implementation manner, the Bluetooth test device further includes a power supply component, and the power supply component is used to supply power to the Bluetooth test device.

[0026] In a possible implementation, the Bluetooth test device further includes a charging component and a switch control component, the charging component is connected to the power supply component and the switch control component respectively, and the switch control component is also connected to the control device and the device under test respectively, wherein:

[0027] The charging component is used to charge the device under test through the switch control component in response to a charging control instruction;

[0028] The switch control component is used to control the charging component to charge the device under test in response to a first switch control instruction, wherein the first switch control instruction is used to indicate whether to charge the device under test;

[0029] The switch control component is further used to control the control device to send a second control command to the device under test in response to a second switch control instruction, wherein the second switch control instruction is used to indicate whether to send the second control command to the device under test.

[0030] In a possible implementation, the Bluetooth test device includes a motherboard and a daughterboard, the motherboard and the daughterboard are connected by plugging and unplugging, and the communication method between the motherboard and the daughterboard includes at least one of the following: a general purpose input and output port GPIO, a universal asynchronous receiver and transmitter UART, an integrated circuit bus IIC, and an Internet information service IIS, wherein:

[0031] The motherboard is used to control the daughterboard;

[0032] The motherboard is provided with a plurality of Bluetooth components, and the daughterboard is used for performing expansion processing on the plurality of Bluetooth components.

[0033] In a second aspect, an embodiment of the present application provides a test method, which is applied to a control device, wherein the control device is connected to a device to be tested and a Bluetooth test device respectively, and the Bluetooth test device includes multiple Bluetooth components, and the device types or device information of the multiple Bluetooth components are different; the method includes:

[0034] Sending a first control command to the Bluetooth test device, and sending a second control command to the device under test;

[0035] Receiving a first execution result corresponding to the first control command sent by the Bluetooth test device, and receiving a second execution result corresponding to the second control command, wherein the first execution result is determined by the Bluetooth test device based on the multiple Bluetooth components;

[0036] A Bluetooth test result of the device under test is determined according to the first execution result and the second execution result.

[0037] In a possible implementation manner, sending a second control command to the device under test includes:

[0038] The second control command is sent to the device under test through the Bluetooth test device.

[0039] In a possible implementation manner, receiving a second execution result corresponding to the second control command includes:

[0040] receiving the second execution result sent by the device under test; or,

[0041] The second execution result sent by the Bluetooth test device is received, where the second execution result is transmitted from the device under test to the Bluetooth test device.

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

[0043] Receiving Bluetooth audio data corresponding to an audio test case sent by the Bluetooth test device, wherein the audio test case is used to test the audio playback quality of the device under test;

[0044] Initial audio data is determined in the audio test case, and a sound quality test result corresponding to the audio test case is determined based on the initial audio data and the Bluetooth audio data.

[0045] In a third aspect, an embodiment of the present application provides a test device, which is applied to a control device, wherein the control device is connected to a device to be tested and a Bluetooth test device respectively, wherein the Bluetooth test device includes multiple Bluetooth components, and the device types or device information of the multiple Bluetooth components are different; including:

[0046] A sending module, used for sending a first control command to the Bluetooth test device, and sending a second control command to the device under test;

[0047] A receiving module, configured to receive a first execution result corresponding to the first control command sent by the Bluetooth test device, and receive a second execution result corresponding to the second control command, wherein the first execution result is determined by the Bluetooth test device based on the multiple Bluetooth components;

[0048] A determination module is used to determine a Bluetooth test result of the device under test according to the first execution result and the second execution result.

[0049] In a possible implementation manner, the sending module is specifically configured to:

[0050] The second control command is sent to the device under test through the Bluetooth test device.

[0051] In a possible implementation manner, the receiving module is specifically configured to:

[0052] receiving the second execution result sent by the device under test; or,

[0053] The second execution result sent by the Bluetooth test device is received, where the second execution result is transmitted from the device under test to the Bluetooth test device.

[0054] In a possible implementation, the receiving module is further used to receive Bluetooth audio data corresponding to an audio test case sent by the Bluetooth test device, where the audio test case is used to test the audio playback quality of the device under test;

[0055] The determination module is further used to determine initial audio data in the audio test case, and determine a sound quality test result corresponding to the audio test case based on the initial audio data and the Bluetooth audio data.

[0056] In a fourth aspect, the present application provides a chip having a computer program stored thereon, wherein when the computer program is executed by the chip, the method as described in any one of the second aspects is implemented.

[0057] In a fifth aspect, the present application provides a chip module having a computer program stored thereon, and when the computer program is executed by the chip module, the method as described in any one of the second aspects is implemented.

[0058] In a sixth aspect, an embodiment of the present application provides a control device, including:

[0059] at least one processor; and

[0060] a memory communicatively connected to the at least one processor; wherein,

[0061] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute any method described in the second aspect.

[0062] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method described in any one of the second aspects.

[0063] In an eighth aspect, an embodiment of the present application provides a computer program product, including a computer program, which implements any method in the second aspect when executed by a processor.

[0064] The Bluetooth test device, test method, apparatus, control device, storage medium and program product provided by the embodiments of the present application can include multiple Bluetooth components, and the device types or device information of the multiple Bluetooth components are different, so that the Bluetooth test device can be flexibly applied to various Bluetooth function test scenarios of the device under test, so that the Bluetooth test coverage of the Bluetooth test device is wider, which is conducive to improving the flexibility of the application of the Bluetooth test device. The Bluetooth test device is connected to the control device and the device under test respectively. The Bluetooth test device can control multiple Bluetooth components in the Bluetooth test device to determine the first execution result of the first control command based on the first control instruction sent by the control device; it can also forward the second control command sent by the control device to the device under test, and receive the second execution result corresponding to the second control command sent by the device under test; the Bluetooth test device can also send the first execution result and the second execution result to the control device, so that the control device can quickly determine the Bluetooth test result of the device under test based on the first execution result and the second execution result. In the above process, the control device can realize automated testing of various Bluetooth function scenarios of the device under test based on the Bluetooth test device. During the test process, batch testing of Bluetooth components of different device types or device information can be realized. During the test process, the tester does not need to manually adjust the Bluetooth device to which the device under test is connected each time, which shortens the test time and is conducive to improving the test efficiency of the iterative version of the device under test. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0066] Figure 1 A schematic diagram of an application scenario provided in an embodiment of the present application;

[0067] Figure 2 A schematic diagram of the structure of the Bluetooth test device provided in the embodiment of the present application Figure 1 ;

[0068] Figure 3 A schematic diagram of the structure of the Bluetooth test device provided in the embodiment of the present application Figure 2 ;

[0069] Figure 4 A schematic diagram of the structure of the Bluetooth test device provided in the embodiment of the present application Figure 3 ;

[0070] Figure 5 A schematic diagram of the structure of the Bluetooth test device provided in the embodiment of the present application Figure 4 ;

[0071] Figure 6 A schematic diagram of the structure of the Bluetooth test device provided in the embodiment of the present application Figure 5 ;

[0072] Figure 7 A flow chart of a testing method provided in an embodiment of the present application;

[0073] Figure 8 A schematic diagram of the structure of a testing device provided in an embodiment of the present application;

[0074] Fig. 9 A schematic diagram of the structure of a control device provided in an embodiment of the present application.

[0075] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0076] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0077] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0078] First, the terms related to the embodiments of the present application are explained.

[0079] Sniff Interval: Also known as "listening time", the Bluetooth sniff interval refers to the time interval for the device to listen to the Bluetooth channel in sniff mode (Sniff). If the sniff interval is short, it means that the Bluetooth channel is scanned more frequently, which can increase the probability of capturing data packets, but will increase the power consumption and processor load of the device; if the sniff interval is long, it means that the Bluetooth channel is scanned less frequently, which can reduce the power consumption and processor load of the device, but will reduce the probability of capturing data packets. In actual applications, when determining the sniff interval, it is necessary to comprehensively consider the capture probability of capturing data packets and the resource consumption of the device.

[0080] At present, with the rapid development of mobile communication technology and the popularization of smart devices (including smart phones, smart computers and smart homes, etc.), Bluetooth communication devices are widely used in life. Bluetooth communication devices can include but are not limited to the following types: Bluetooth data transmission devices (including Bluetooth audio transmission devices), Bluetooth location service devices and Bluetooth network devices. For example, Bluetooth data transmission devices can be used in the fields of household appliances and fitness sensors; Bluetooth location service devices can be used in the fields of landmark information and item tracking; Bluetooth network devices can be used in the fields of home automation and commercial lighting.

[0081] During the research and development of Bluetooth communication equipment, it is necessary to quickly test the iterative versions of the Bluetooth communication equipment, and during the version testing of the equipment to be tested, it is necessary to test each Bluetooth functional scenario of the equipment to be tested.

[0082] In the related art, the control device can control the device under test to connect to various Bluetooth devices (e.g., headphones, speakers, mice, keyboards, etc.) to test whether the various Bluetooth functions of the device under test are normal. The Bluetooth function scenario may include but is not limited to at least one of the following Bluetooth device function scenarios: Bluetooth headphones, Bluetooth speakers, Bluetooth keyboards, Bluetooth mice, Bluetooth bracelets, Bluetooth car functions, and various Bluetooth Low Energy (BLE) devices.

[0083] However, when testing the above-mentioned Bluetooth function scenarios, when the Bluetooth function scenarios are switched, the tester still needs to manually adjust the Bluetooth device corresponding to the Bluetooth function scenario that the device under test is connected to each time, resulting in a long time spent testing multiple Bluetooth function scenarios of the device under test, thereby resulting in low testing efficiency of the iterative version of the device under test.

[0084] In view of this, an embodiment of the present application provides a Bluetooth test device, which may include multiple Bluetooth components. The device types or device information of the multiple Bluetooth components are different, so that the Bluetooth test device can be flexibly applied to various Bluetooth function test scenarios of the device under test, so that the Bluetooth test coverage of the Bluetooth test device is wider, which is conducive to improving the flexibility of the application of the Bluetooth test device. The Bluetooth test device is connected to a control device and a device under test respectively. The Bluetooth test device can control multiple Bluetooth components in the Bluetooth test device to determine a first execution result of the first control command based on a first control instruction sent by the control device; it can also send a second control command sent by the control device to the device under test, and receive a second execution result corresponding to the second control command sent by the device under test; the Bluetooth test device can also send a first execution result and a second execution result to the control device, so that the control device can quickly determine the Bluetooth test result of the device under test based on the first execution result and the second execution result. In the above process, the control device can realize automated testing of various Bluetooth function scenarios of the device under test based on the Bluetooth test device. During the test process, batch testing of Bluetooth components of different device types or device information can be realized. During the test process, the tester does not need to manually adjust the Bluetooth device to which the device under test is connected each time, which shortens the test time and is conducive to improving the test efficiency of the iterative version of the device under test.

[0085] Next, combine Figure 1 , the application scenarios provided by the embodiments of the present application are described.

[0086] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present application. Figure 1 , including a Bluetooth test device 10, a control device 11 and a device under test 12, and the Bluetooth test device 10 is connected to the control device 11 and the device under test 12 respectively.

[0087] In some examples, the control device may be referred to as a personal computer (PC).

[0088] The device under test may be a Bluetooth communication device that supports Bluetooth function. The Bluetooth communication device may include but is not limited to smart phones, tablets, watches, IoT devices, speakers, TVs, smart homes, car computers, chip modules and other devices.

[0089] The Bluetooth test equipment may include but is not limited to at least one of the following Bluetooth devices: Bluetooth headsets, Bluetooth speakers, keyboards and mice, bracelets, car computers, remote controls, handles, various BLE devices and other Bluetooth modules.

[0090] The device under test can implement multiple Bluetooth functions, and the control device can test and verify each Bluetooth function of the device under test through the Bluetooth test device. For example, the Bluetooth test device may include a Bluetooth headset module, and the Bluetooth test device may simulate a Bluetooth headset based on the Bluetooth headset module. The control device may control the device under test to establish a Bluetooth connection with the Bluetooth headset module in the Bluetooth test device, and control the device under test to make a Bluetooth call or play music based on the Bluetooth headset module to test whether the Bluetooth audio function of the device under test is normal. For example, the Bluetooth audio function may include the Bluetooth audio transmission model agreement (Advanced Audio Distribution Profile, A2DP) function and the hands-free protocol (Hands-Free Profile, HFP) function.

[0091] It should be noted that the Bluetooth test equipment, test method, apparatus, control equipment, storage medium and program product provided in the embodiments of the present application can be applied to the Bluetooth test scenarios of Bluetooth communication devices that support Bluetooth functions, and can also be applied to any scenarios other than the above-mentioned Bluetooth test scenarios. The embodiments of the present application do not limit the application scenarios of the Bluetooth test equipment, test method, apparatus, control equipment, storage medium and program products.

[0092] The structure of the Bluetooth test device shown in the present application is described below through specific embodiments. It should be noted that the following embodiments can exist independently or in combination with each other, and the same or similar contents will not be described repeatedly in different embodiments.

[0093] Figure 2 A schematic diagram of the structure of the Bluetooth test device provided in the embodiment of the present application Figure 1 . See Figure 2 The Bluetooth test device 10 is connected to the control device 11 and the device under test 12 respectively, wherein the number of the device under test 12 may be one or more.

[0094] The Bluetooth test device 10 may include multiple Bluetooth components 100, which can be used to simulate Bluetooth devices. The multiple Bluetooth components 100 may include an audio component 1001 and a non-audio component 1002. The audio component 1001 can be used to simulate a Bluetooth audio device. The audio component 1001 may include but is not limited to an earphone component, a speaker component, a microphone component, a speaker component, an amplifier component, and a sound card component. In an optional manner, the audio component 1001 may also provide a microphone interface, a microphone interface, an amplifier interface, and a sound card interface, and the audio component 1001 is connected to a microphone, a microphone, a power amplifier, and a sound card through these interfaces.

[0095] The non-audio component 1002 may be a Bluetooth component other than the audio component, and the non-audio component 1002 may include but is not limited to: a mouse component, a keyboard component, a bracelet component, a remote control component, a handle component, and various BLE devices. In actual application, developers can expand the Bluetooth component based on their own design requirements.

[0096] The device types or device information of the multiple Bluetooth components 100 are different, wherein the device types may include but are not limited to: headphones, speakers, keyboards, mice, bracelets, remote controls, handles, vehicle equipment, BLE devices. The device information may include device model information and device manufacturer information.

[0097] The Bluetooth Qualification Program (BQB) test can be referred to, and the tests based on the Bluetooth test equipment include but are not limited to the following tests: function, performance and compatibility.

[0098] In actual applications, multiple Bluetooth components can be set up in the following two situations:

[0099] The first case: these multiple Bluetooth component device types are different.

[0100] Assume that there are three Bluetooth components, and the device types of these three Bluetooth components are different, namely: headphones, speakers, and bracelets. In this case, the control device can synchronously implement the test of the Bluetooth functions of the device under test on the Bluetooth components of different device types based on the Bluetooth test device, which is conducive to speeding up the test efficiency of the device under test on the Bluetooth components of different device types.

[0101] The second situation: the device information of these multiple Bluetooth components is different.

[0102] Assume that there are M Bluetooth components, and the device types of these M Bluetooth components are the same, but the device information (device model or device manufacturer information) of each Bluetooth component is different, where M is an integer greater than 1. In this case, the control device can implement compatibility testing of the Bluetooth function of the device under test with Bluetooth components with different device information based on the Bluetooth test device, so as to avoid the incompatibility problem of the Bluetooth function of the device under test with Bluetooth components with different device information, and ensure the device performance of the device under test.

[0103] The Bluetooth test device 10 can be used to receive a first control command sent by the control device 11 , determine a first execution result corresponding to the first control command based on multiple Bluetooth components, and send the first execution result to the control device 11 .

[0104] The communication method between the control device 11 and the Bluetooth test device 10 may include but is not limited to Universal Asynchronous Receiver / Transmitter (UART). The control device 11 may send a first control instruction to the Bluetooth test device 10 based on the UART protocol, and the Bluetooth test device 10 may feed back a first execution result to the control device 11 based on the UART protocol.

[0105] The first control instruction may include a target component identifier, and the Bluetooth test device 10 may determine a target Bluetooth component from multiple Bluetooth components based on the target component identifier. The Bluetooth test device 10 may control the target Bluetooth component to execute the first control instruction and obtain a first execution result.

[0106] Exemplarily, the first control instruction may be: turning on the pairing function of Bluetooth headset #1, wherein the identifier of the target component is Bluetooth headset #1.

[0107] Optionally, the Bluetooth test device 10 may store a mapping relationship, which may include multiple component identifiers and the Bluetooth component corresponding to each component identifier. The Bluetooth test device 10 may determine the target Bluetooth component from the multiple Bluetooth components based on the target component identifier and the mapping relationship, and the target Bluetooth component may be one or more. For example, the multiple Bluetooth components include 5 headphone components, and when the target component identifier is a Bluetooth headphone, the target Bluetooth component may be the 5 headphone components.

[0108] The first execution result may include execution success and execution failure.

[0109] The Bluetooth test device 10 can also be used to receive a second control command sent by the control device 11, and send the second control command to the device under test 12, as well as receive a second execution result corresponding to the second control command sent by the device under test 12, and send the second execution result to the control device 11, so that the control device 11 determines the Bluetooth test result of the device under test 12 based on the first execution result and the second execution result.

[0110] Optionally, the second control command may include, but is not limited to, an Android Debug Bridge (ADB) command, a Secure Shell (SSH) protocol, and a Serial communication protocol. The second control command may be used to instruct the device under test to establish a connection with the target Bluetooth component, so as to verify and test the Bluetooth function of the device under test.

[0111] The second execution result may include execution success and execution failure.

[0112] It should be noted that the Bluetooth test device 10 of the embodiment of the present application can establish Bluetooth communication with the device under test 12 through each Bluetooth component. When testing the Bluetooth function of the device under test 12 based on each Bluetooth component, the Bluetooth test device 10 can perform Bluetooth communication interaction with the device under test 12 based on the Bluetooth component.

[0113] The Bluetooth test device provided in the embodiment of the present application may include multiple Bluetooth components. The device types or device information of these multiple Bluetooth components are different, so that the Bluetooth test device can be applied to various Bluetooth function test scenarios of the device under test, thereby expanding the test coverage so that the control device can realize automated testing of various Bluetooth function scenarios of the device under test based on the Bluetooth test device. During the test, there is no need for the tester to manually adjust the Bluetooth device to which the device under test is connected each time, which shortens the test time and is conducive to improving the test efficiency of the iterative version of the device under test.

[0114] Figure 3 A schematic diagram of the structure of the Bluetooth test device provided in the embodiment of the present application Figure 2 . See Figure 3 ,exist Figure 2 Based on the structure of the Bluetooth test device 10 shown, the Bluetooth test device 10 may further include a controller 101 , which is used to connect each Bluetooth component and the control device 11 .

[0115] In one implementation, the controller 101 may be a single chip microcomputer or a field programmable gate array (FPGA). In some examples, the single chip microcomputer may also be referred to as a microcontroller unit (MCU).

[0116] The Bluetooth test device 10 can determine the first execution result corresponding to the first control command based on the controller 101 and multiple Bluetooth components 100. Specifically, the Bluetooth test device 10 can be used to: determine the target Bluetooth component among multiple Bluetooth components 100 through the controller 101 according to the target component identifier in the first control command; determine the target execution instruction corresponding to the first control command through the controller 101, and send the target execution instruction to the target Bluetooth component; execute the target execution instruction through the target Bluetooth component to obtain the first execution result, and send the first execution result to the controller 101. The controller can store the correspondence between the control command and the execution instruction, and the controller can determine the target execution command based on the correspondence and the first control instruction.

[0117] Currently, when testing the Bluetooth function of a device under test, developers may need to collect various finished Bluetooth components and perform tests based on the collected finished Bluetooth components. However, when testing, since each finished Bluetooth component has relatively few user functions open to the outside, the developer's test scope when performing Bluetooth testing based on each finished Bluetooth component is limited.

[0118] In response to this problem, the Bluetooth test device provided by the present application can store multiple execution instructions in the controller. These multiple execution instructions can be control instructions for the Bluetooth functions of each Bluetooth component developed by the developer based on the test requirements. These multiple execution instructions must comply with the Bluetooth protocol, and these multiple execution instructions include target execution instructions. Developers can customize multiple execution instructions based on the test requirements, and store these multiple execution instructions in the controller of the Bluetooth test device to implement the functional configuration and development of each Bluetooth component in the Bluetooth test device, so that the Bluetooth test device can simulate multiple Bluetooth functions of multiple Bluetooth components, thereby enabling the Bluetooth test device to achieve a wider coverage of Bluetooth testing. For example, when it is necessary to test the influence of some incorrect configuration parameters of each Bluetooth component on the Bluetooth communication between each Bluetooth component and the device under test, the developer can input multiple execution instructions into the Bluetooth test device. These multiple execution instructions may include multiple incorrect configuration parameters, and these multiple execution instructions are used to test the influence of these multiple incorrect configuration parameters on the Bluetooth communication between each Bluetooth component and the device under test.

[0119] Optionally, the multiple execution instructions can be used to implement multiple Bluetooth functions, which may include but are not limited to: setting whether the Bluetooth component is the master, and setting the sampling frequency, codec format, single and dual channels, sniff interval, Bluetooth audio and video transmission protocol (Advanced Audio Distribution Profile, A2DP), Bluetooth hands-free protocol (Hands-Free Profile, HFP) and related operations of the Bluetooth component. Exemplarily, the execution instruction may include an attention (AT) instruction.

[0120] It is understandable that different Bluetooth components may have different Bluetooth functions, and the controller may implement control of the Bluetooth functions of each Bluetooth component based on the execution instruction. Below, the Bluetooth functions of each Bluetooth component implemented by the controller based on the execution instruction are exemplarily described. It should be noted that the Bluetooth test device of the present application may be used to implement multiple Bluetooth components including but not limited to those shown below, and the Bluetooth functions of each Bluetooth component.

[0121] For Bluetooth headsets and speakers, Bluetooth functions may include but are not limited to: pairing and connection functions, A2DP codec setting functions, module-side control of play and pause functions, music switching functions, volume adjustment functions, and answering and hanging up calls functions.

[0122] For a Bluetooth keyboard, the Bluetooth functions may include but are not limited to: an up, down, left, and right switching function and a character input function of the Bluetooth keyboard.

[0123] For a Bluetooth mouse, the Bluetooth functions may include but are not limited to: left-click, right-click and scroll wheel functions of the Bluetooth mouse.

[0124] For a Bluetooth bracelet, the Bluetooth function may include but is not limited to: synchronization of health data (eg, heart rate, etc.) and synchronization of steps.

[0125] For Bluetooth car machine modules, Bluetooth functions may include but are not limited to: synchronization of call information (including call records, contacts, text messages, etc.) in the device under test, as well as music and call control functions.

[0126] For Bluetooth remote controllers and handle modules, Bluetooth functions may include but are not limited to: up, down, left, and right movement functions, selection functions, and exit functions.

[0127] For BLE devices, Bluetooth functions may include, but are not limited to, connection functions and data transmission functions of protocols such as Serial Port Profile (SPP) and Generic Attribute (GATT).

[0128] The Bluetooth test device provided in the embodiment of the present application may include a controller, which can control multiple Bluetooth components based on multiple execution instructions to implement testing of multiple Bluetooth functions of the device under test. Developers can update (add, modify or delete) the multiple execution instructions based on different test requirements to customize the Bluetooth functions required by different test requirements, which is conducive to improving the flexibility of testing the device under test.

[0129] Figure 4 A schematic diagram of the structure of the Bluetooth test device provided in the embodiment of the present application Figure 3 . See Figure 4 ,exist Figure 3 Based on the structure of the Bluetooth test device 10 shown in the figure, the Bluetooth test device 10 may further include a first interface 102, an interface extension component 103 and a tester interface component 104, wherein:

[0130] The first interface 102 is connected to the control device 11 and the interface extension component 103 respectively. The first interface 102 can be used to receive the first control command and the second control command sent by the control device 11, and send the first control command and the second control command to the interface extension component 103; the first interface 102 can also be used to receive the first execution result and the second execution result sent by the interface extension component 103, and send the first execution result and the second execution result to the control device 11.

[0131] The interface extension component 103 is also used to connect the controller 101 and the device under test 12. The interface extension component 103 can be used to expand the first interface into multiple interfaces to facilitate subsequent connection of different types of components. The interface extension component 103 can be used to receive the first control command and the second control command sent by the first interface 102, and send the first control command to the controller 101, and send the second control command to the device under test 12; the interface extension component 103 is also used to receive the first execution result sent by the controller 101 and the second execution result sent by the device under test 12, and send the first execution result and the second execution result to the first interface 102.

[0132] The Bluetooth test device 10 can expand the first interface based on the interface extension component, and divert the control commands of the control device received by the first interface to avoid multiple first interfaces between the Bluetooth test device 10 and the control device 11, making the connection method between the Bluetooth test device 10 and the control device 11 simpler.

[0133] Optionally, the control device 11 can be connected to the first interface 102 via a bus, and the first interface 102 and the interface expansion component 103 need to meet the bus transmission protocol. Exemplarily, the bus can be a Universal Serial Bus (USB), the first interface 102 can be a USB interface card, and the interface expansion component 103 can be a USB extender.

[0134] In one implementation, the Bluetooth test device 10 may also include a tester interface component 104, which may be used to connect to the device under test 12, and the tester interface component 104 may include multiple second interfaces, and the tester interface component 104 is also used to connect multiple devices under test through multiple second interfaces. Through the tester interface component, each Bluetooth test device can be connected to multiple devices under test, so as to facilitate synchronous testing of different devices under test to improve the test efficiency of the devices under test. The tester interface component 104 is also connected to the interface extension component 103, and the interface extension component 103 is used to send a second control command to the device under test 12 through the tester interface component 104, and receive a second execution result sent by the device under test 12 through the tester interface component 104.

[0135] Figure 5 A schematic diagram of the structure of the Bluetooth test device provided in the embodiment of the present application Figure 4 . See Figure 5 ,exist Figure 4 Based on the structure of the Bluetooth test device 10 shown, the Bluetooth test device 10 may further include a power supply component 105, a charging component 106 and a switch control component 107, wherein:

[0136] The power supply component 105 is used to supply power to the Bluetooth test device 10 . The power supply component 105 can be connected to each component in the Bluetooth test device 10 to supply power to each component.

[0137] When testing the Bluetooth function of a device under test, it is possible that the power consumption of the device under test is greater than the charging state. This may cause the device under test to suddenly shut down due to excessive power consumption during the test, resulting in test interruption.

[0138] In order to avoid this situation, the Bluetooth test device 10 provided in the embodiment of the present application may further include a charging component 106 and a switch control component 107, wherein:

[0139] The charging component 106 is connected to the power component 105 and the switch control component 107 respectively. The power component 105 is also connected to the controller 101. During the test, the controller 101 can control the power component 105 to supply power to the device under test through the charging component 106, the switch control component 107 and the tester interface component 104. The controller 101 can be used to control whether the power component 105 charges the charging component 106, and the voltage or power at which the power component 105 charges the charging component 106.

[0140] The switch control component 107 is also connected to the control device 11 and the device under test 12. The switch control component 107 can be connected to the control device 11 through the interface expansion component 103 and the first interface 102, and connected to the device under test 12 through the tester interface component 104.

[0141] The charging component 106 is used to charge the device under test 12 through the switch control component 107 in response to the charging control instruction. The charging component 106 can be connected to the controller 101, and the charging component 106 can receive the charging control instruction sent by the controller 101. The charging component 106 can also be used to convert the voltage or power output by the power supply component 105 according to the charging control instruction so that the voltage or power meets the charging requirements of the subsequent device under test. For example, when it is determined that the charging mode of the device under test is the fast charging mode, the controller 101 can control the charging component 106 to increase the power to charge the switch control component 107.

[0142] The switch control component 107 is used to control the charging component 106 to charge the device under test 12 in response to a first switch control instruction, and the first switch control instruction is used to indicate whether to charge the device under test. The switch control component 107 is also used to control the control device 11 to send a second control command to the device under test 12 in response to a second switch control instruction, and the second switch control instruction is used to indicate whether to send the second control command to the device under test.

[0143] The switch control component 107 can be used to control whether to charge the device under test 12 or send a second control command through the tester interface component 104. When there are multiple devices under test, the switch control component 107 can be used to independently control the charging state of each device under test and independently control whether to send a second control command to each device under test.

[0144] The working state of the switch control component 107 may include an open state and a closed state. The controller 101 may be used to control the working state of the switch control component 107 .

[0145] It can be understood that when the working state of the switch control component 107 is the open state, the interface extension component 103 can send the second control command to the device under test through the switch control component 107 and the tester interface component 104, and the charging component 106 can charge the device under test through the switch control component 107 and the tester interface component 104. When the working state of the switch control component 107 is the closed state, the interface extension component 103 cannot send the second control command to the device under test through the switch control component 107, and the charging component 106 cannot charge the device under test through the switch control component 107.

[0146] The Bluetooth test device provided in the embodiment of the present application may also include a power supply component, a charging component and a switch control component, so that the Bluetooth test device can flexibly charge the device under test based on the power supply component, the charging component and the switch control component, so as to avoid the device under test from losing power during the test of the device under test, which is conducive to ensuring the stability of the test of the device under test. In addition, through the switch control component, the Bluetooth test device can flexibly send a second control command to the device under test with a test requirement, and charge the device under test with a charging requirement, so as to avoid unnecessary losses.

[0147] Figure 6 A schematic diagram of the structure of the Bluetooth test device provided in the embodiment of the present application Figure 5 . See Figure 6 ,exist Figure 5Based on the structure of the Bluetooth test device 10 shown, the Bluetooth test device 10 may further include an audio storage component 108 and an audio test interface component 109. The multiple Bluetooth components 100 in the Bluetooth test device may include an audio component 1001, and the audio component 1001 is respectively connected to the controller 101, the audio storage component 108 and the audio test interface component 109, wherein:

[0148] The audio component 1001 is used to send Bluetooth audio data to the audio storage component 108 in response to the audio output instruction of the controller 101;

[0149] The audio storage component 108 is also connected to the controller 101, and the audio storage component 108 is used to store the Bluetooth audio data sent by the audio component 1001 in response to the audio control instruction of the controller 101, and send the Bluetooth audio data to the control device 11;

[0150] The audio test interface component 109 is used to provide an audio speaker interface and a microphone interface of the audio component. The audio test interface component 109 can be connected to the controller 101 so that the controller 101 can control the audio test interface component 109 .

[0151] The audio storage component 108 may be a memory, and for example, may be a synchronous dynamic random access memory (SDRAM). The storage format of the Bluetooth audio data by the audio storage component 108 may include but is not limited to waveform audio files (wav) and Moving Picture Experts Group Audio Layer III (MP3).

[0152] Optionally, the audio storage component 108 can be connected to the audio component 1001 via an integrated circuit built-in audio bus (Inter-IC Sound, I2S) interface. The controller 101 can also be used to control the audio component 1001 to send the Bluetooth audio data to the audio storage component 108 in real time based on I2S when the audio component 1001 outputs Bluetooth audio data, and control the audio storage component 108 to send the Bluetooth audio data to the control device 11 in real time, so that the control device can evaluate the sound quality of the Bluetooth audio data of the device under test, which is conducive to improving the accuracy of the control device's Bluetooth sound quality detection of the device under test, so as to avoid the phenomenon of Bluetooth sound quality damage in the device under test during actual use, so as to achieve more accurate testing of Bluetooth sound quality related issues of the device under test during the development process.

[0153] The tester can set the number of external speaker interfaces and MIC interfaces in the audio test interface component 109 based on the test requirements. Exemplarily, the audio test interface component 109 can be provided with 3 external speaker interfaces. When the device under test performs a Bluetooth audio function test, the audio component in the Bluetooth test device can be connected through the audio test interface component 109, so that the tester can intuitively understand the sound quality of the Bluetooth audio played by the audio component.

[0154] In a possible implementation, the Bluetooth test device 10 may also include a motherboard 110 and a daughterboard 111. The motherboard 110 and the daughterboard 111 are connected by plugging and unplugging. The communication method between the motherboard 110 and the daughterboard 111 may include at least one of the following: general-purpose input / output (GPIO), universal asynchronous receiver / transmitter UART, integrated circuit bus (Inter-Integrated Circuit, IIC) or Internet Information Services (Internet Information Services, IIS). In some other examples, the motherboard 110 and the daughterboard 111 may also communicate using other communication methods. This application does not limit the communication method between the motherboard 110 and the daughterboard 111.

[0155] The motherboard 110 is used to control the daughterboard 111; a plurality of Bluetooth components are arranged on the motherboard 110, and the daughterboard 111 is used to perform expansion processing on the plurality of Bluetooth components.

[0156] See also Figure 6 , the motherboard 110 may include multiple Bluetooth components 100, a controller 101, a first interface 102, an interface extension component 103, a tester interface component 104, a power component 105, a charging component 106, a switch control component 107, an audio storage component 108 and an audio test interface component 109; the daughterboard 111 may include multiple extended Bluetooth components 112. It can be understood that when verifying the compatibility test of the device under test with multiple Bluetooth components of different device types and multiple Bluetooth components of the same device type but different device information, multiple extended Bluetooth components can be added based on the daughterboard to improve the test efficiency.

[0157] The power supply component 105 in the motherboard can be used to supply power to the daughterboard 111 , and the controller 101 in the motherboard can be used to control each extended Bluetooth component in the daughterboard 111 .

[0158] The multiple extended Bluetooth components 112 may include an extended audio component 1121, and the audio storage component 108 may be connected to the extended audio component 1121, so as to store the Bluetooth audio data in real time when the extended audio component 1121 generates Bluetooth audio data. Specifically, the audio storage component 108 may be provided with a switch switching circuit, in which one path is fixedly connected to the audio component 1001 in the motherboard 110, and the other paths are switched and respectively connected to the extended audio components 1121 in the daughterboard 111.

[0159] Similar to the audio storage component, the audio test interface component 109 can also be connected to the extended Bluetooth component 112 based on a switch switching circuit, so that the tester can intuitively understand the sound quality of the Bluetooth audio played by the extended audio component.

[0160] By setting a switch circuit in the Bluetooth test equipment, the application process of the audio storage component and the audio test interface component can be made more flexible.

[0161] The Bluetooth test device provided in the embodiment of the present application can be in the form of a motherboard and a daughterboard. The daughterboard can be plugged in and out according to the test requirements, and the daughterboard can be configured according to the test requirements, so as to simply and quickly implement the expansion of multiple Bluetooth components in the motherboard, making the application of the Bluetooth test device more flexible, and thus allowing the control device to realize automated testing of various Bluetooth function scenarios of the device to be tested based on the Bluetooth test device. During the test process, batch testing of Bluetooth components of different device types or device information can be realized, which shortens the test time, facilitates developers to configure and develop Bluetooth components, expands the Bluetooth test range, and is conducive to improving the test efficiency of the device to be tested.

[0162] Next, combine Figure 7 , the test method provided in the embodiments of the present application is described in detail.

[0163] Figure 7 A flow chart of a test method provided in an embodiment of the present application. Figure 7 , the method specifically comprises:

[0164] S701: A control device sends a first control command to a Bluetooth test device.

[0165] In a possible implementation, the control device may send a first control command to the Bluetooth test device and a second control command to the device under test in response to an execution instruction of the test case.

[0166] A plurality of test cases may be stored in the control device, each of which may be used to perform a test task of a Bluetooth function of the device under test, and each of which may include a first control command and a second control command. It should be noted that the number of the first control command and the second control command may be one or more. The control device may respond to the execution instruction of the test case and send the first control command and the second control command to the Bluetooth test device in sequence according to the execution order of each first control command and the second control command in the test case.

[0167] S702: The Bluetooth testing device determines a first execution result corresponding to a first control command based on multiple Bluetooth components.

[0168] The Bluetooth test device may receive the first control command through the first interface 102 and the interface extension component 103 , and determine a first execution result based on the controller 101 and the plurality of Bluetooth components 100 .

[0169] In one possible implementation, the Bluetooth testing device can determine the first execution result in the following manner: according to the target component identifier in the first control command, determine the target Bluetooth component among multiple Bluetooth components through the controller; determine the target execution instruction corresponding to the first control command through the controller, and send the target execution instruction to the target Bluetooth component; execute the target execution instruction through the target Bluetooth component to obtain the first execution result, and send the first execution result to the controller.

[0170] Exemplarily, the first control command is “turn on the pairing function of the Bluetooth headset”, the target AT instruction may be “turn on the pairing switch of the Bluetooth headset”, and the first execution result may be “turned on” or “not turned on”.

[0171] It should be noted that each Bluetooth component in the Bluetooth test device can establish a Bluetooth connection with the device under test and exchange information based on the Bluetooth communication method. For example, each Bluetooth component can implement the following steps based on the Bluetooth communication method: receive a pairing request initiated by each device under test and send a pairing result to each device under test.

[0172] S703: The control device receives a first execution result corresponding to a first control command sent by the Bluetooth test device.

[0173] The first execution result is determined by the Bluetooth test device based on multiple Bluetooth components.

[0174] S704: The control device sends a second control command to the device under test.

[0175] The control device may be directly connected to the device under test. In this connection mode, the control device may directly send the second control command to the device under test.

[0176] The control device can also be connected to the device under test through a Bluetooth test device. In this connection mode, the control device can send a second control command to the device under test through the Bluetooth test device. Optionally, the Bluetooth test device can receive the second control command through the first interface 102, and send the second control command to the device under test through the interface extension component 103, the switch control component 107 and the tester interface component 104.

[0177] S705: The control device receives a second execution result corresponding to the second control command.

[0178] The device under test can execute the second control command, obtain a second execution result, and send the second execution result to the Bluetooth test device. The control device can receive the second execution result in the following two ways:

[0179] Mode 1: receiving the second execution result sent by the device under test;

[0180] Mode 2: receiving the second execution result sent by the Bluetooth test device, the second execution result is transmitted from the device under test to the Bluetooth test device. Optionally, the Bluetooth test device can receive the second execution result sent by the device under test through the tester interface component 104, and send the second execution result to the control device through the switch control component 107, the interface extension component 103 and the first interface 102.

[0181] Exemplarily, the second control command is “turn on Bluetooth”, and the second execution result may be “turned on” or “turning on failed”.

[0182] It should be noted that steps S701 to S703 and steps S704 and S705 may be executed simultaneously, or steps S701 to S703 may be executed before steps S704 and S705, or steps S704 and S705 may be executed before steps S701 to S703.

[0183] S706: The control device determines a Bluetooth test result of the device under test according to the first execution result and the second execution result.

[0184] Optionally, the control device can determine whether the device under test has established a Bluetooth connection relationship with the target Bluetooth component in the Bluetooth test device based on the first execution result and the second execution result; if it is determined that the Bluetooth connection relationship has been established, the control device can also continue to send control commands to the Bluetooth test device and the device under test based on the test case, and the Bluetooth test device and the device under test can control the target Bluetooth component based on the control command to implement the test of the Bluetooth function of the device under test.

[0185] For example, the control device can send a first control command to the Bluetooth test device, and the Bluetooth test device can respond to the first control command to control the working state of the target Bluetooth component to be turned on, and the Bluetooth test device can send a first execution result to the control device, and the first execution result is that the target Bluetooth component is turned on. At the same time, the control device can send a second control command to the device under test, and the device under test can respond to the second control command to control the Bluetooth function of the device under test to be turned on, and the device under test can send a second execution result to the control device, and the second execution result is that the Bluetooth function is turned on. In some examples, the device under test can also scan the target Bluetooth components that are online in the surrounding environment, and the device under test can initiate a Bluetooth pairing request to the target Bluetooth component through Bluetooth communication; the target Bluetooth component can determine whether to pair with the device under test based on the Bluetooth pairing request.

[0186] The control device can also test the sound quality of the Bluetooth audio function of the device under test based on the Bluetooth test device. The Bluetooth audio function may include a Bluetooth call function and a Bluetooth music playback function.

[0187] The control device can control the Bluetooth test device to collect Bluetooth audio data of the device under test based on the audio test case. Optionally, the control device can control the Bluetooth test device through a first control command, and control the device under test through a second control command, to implement the following steps: control the device under test to establish a Bluetooth connection with an audio component in the Bluetooth test device; when the audio component in the Bluetooth test device generates Bluetooth audio data, control the Bluetooth storage component in the Bluetooth test device to store the Bluetooth audio data in real time, and control the Bluetooth storage component to transmit the Bluetooth audio data to the control device in real time.

[0188] The control device can also: receive Bluetooth audio data corresponding to an audio test case sent by a Bluetooth test device, where the audio test case is used to test the audio playback quality of the device under test; determine initial audio data in the audio test case, and determine the sound quality test result corresponding to the audio test case based on the initial audio data and the Bluetooth audio data.

[0189] The initial audio data may be entertainment audio data or call audio data pre-stored in the control device or the device under test. For example, the entertainment audio data may be the audio data of a song, video, or e-book, and the call audio data may be the audio data generated by a mobile phone call. In some examples, the control device or the device under test includes a MIC, and the call audio data may be transmitted to the control device or the device under test through the MIC by means of an artificial mouth; or, the collected call audio data may be transmitted to the control device or the device under test by means of an interface command.

[0190] The Bluetooth audio data is the audio data output by the audio component after the device under test is connected to the audio component. For example, the Bluetooth audio data can be the audio data output by the earphone after the mobile phone is connected to the earphone.

[0191] Optionally, the control device may use two evaluation methods including but not limited to the following when performing Bluetooth sound quality evaluation:

[0192] Method 1: Mos scoring method.

[0193] The control device can compare the initial audio data and Bluetooth audio data corresponding to the audio test case and score them by the method of objective speech quality evaluation (PESQ), and judge whether the Bluetooth sound quality of the device under test is normal based on the scoring result. For example, the Bluetooth sound quality evaluation results corresponding to different scores can be shown in Table 1:

[0194] Table 1

[0195]

[0196] Method 2: Deep learning scoring method.

[0197] The control device can construct an initial data set based on multiple audio data, and preprocess and extract features for each audio data in the initial data set to obtain a training data set. Based on the training data set, an initial model (for example, a deep learning model) is trained to obtain an audio detection model, and the audio detection model is used to evaluate the sound quality of subsequently acquired Bluetooth audio data.

[0198] It can be understood that when using method 1 to evaluate Bluetooth sound quality, the finer the score range, the more accurate the evaluation result of Bluetooth sound quality; when using method 2 to evaluate Bluetooth sound quality, the more data volume and the richer the data types of the selected training data set, the higher the prediction accuracy of the trained audio detection model, and the higher the accuracy of the Bluetooth sound quality evaluation.

[0199] The test method provided in the embodiment of the present application can control the Bluetooth test device and the device under test based on the control device to obtain Bluetooth audio data, and test the Bluetooth sound quality of the Bluetooth audio function of the device under test based on the Bluetooth audio data, which is beneficial to improving the accuracy of the control device in detecting the Bluetooth sound quality of the device under test, so as to avoid the phenomenon of Bluetooth sound quality being damaged in the actual use of the device under test.

[0200] Figure 8A schematic diagram of the structure of a test device provided in an embodiment of the present application. The test device can be a chip or a chip module, and the test device can be applied to the control device in the above embodiment, the control device is connected to the device under test and the Bluetooth test device respectively, and the Bluetooth test device includes multiple Bluetooth components, and the device types or device information of the multiple Bluetooth components are different. Please refer to Figure 8 , the testing device 20 may include:

[0201] A sending module 21, configured to send a first control command to the Bluetooth test device, and send a second control command to the device under test;

[0202] A receiving module 22, configured to receive a first execution result corresponding to the first control command sent by the Bluetooth test device, and receive a second execution result corresponding to the second control command, wherein the first execution result is determined by the Bluetooth test device based on the multiple Bluetooth components;

[0203] The determination module 23 is used to determine the Bluetooth test result of the device under test according to the first execution result and the second execution result.

[0204] In a possible implementation, the sending module 21 is specifically configured to:

[0205] The second control command is sent to the device under test through the Bluetooth test device.

[0206] In a possible implementation, the receiving module 22 is further configured to:

[0207] receiving the second execution result sent by the device under test; or,

[0208] The second execution result sent by the Bluetooth test device is received, where the second execution result is transmitted from the device under test to the Bluetooth test device.

[0209] In a possible implementation, the receiving module 22 is further used to receive Bluetooth audio data corresponding to an audio test case sent by the Bluetooth test device, where the audio test case is used to test the audio playback quality of the device under test;

[0210] The determination module 23 is further used to determine initial audio data in the audio test case, and determine a sound quality test result corresponding to the audio test case according to the initial audio data and the Bluetooth audio data.

[0211] The testing device provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.

[0212] Fig. 9 This is a schematic diagram of the structure of the control device provided in the embodiment of the present application. Fig. 9 The control device 11 may include: a memory 111 and a processor 112. Exemplarily, the memory 111 and the processor 112 are interconnected via a bus 113.

[0213] The memory 111 is used to store program instructions;

[0214] The processor 112 is used to execute the program instructions stored in the memory, so as to enable the control device 11 to execute the method shown in the above method embodiment.

[0215] It is understood that the control device may include at least one processor and a memory connected to the at least one processor in communication. The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method shown in the above embodiment.

[0216] The control device provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.

[0217] An embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the above-mentioned testing method.

[0218] The embodiment of the present application may also provide a computer program product, including a computer program, which can implement the above-mentioned testing method when executed by a processor.

[0219] All or part of the steps of the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a readable memory. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned memory (storage medium) includes: read-only memory (ROM), random access memory (RAM), flash memory, hard disk, solid state drive, magnetic tape, floppy disk, optical disc and any combination thereof.

[0220] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0221] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0222] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0223] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

[0224] In the present application, the term "include" and its variations may refer to non-restrictive inclusion; the term "or" and its variations may refer to "and / or". The terms "first", "second", etc. in the present application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. In the present application, "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previously associated objects are in an "or" relationship.

Claims

1. A Bluetooth test device, It is characterized in that The Bluetooth test device is connected to the control device and the device to be tested respectively, and the Bluetooth test device includes multiple Bluetooth components, and the device types or device information of the multiple Bluetooth components are different; wherein: The Bluetooth test device is used to receive a first control command sent by the control device, determine a first execution result corresponding to the first control command based on the multiple Bluetooth components, and send the first execution result to the control device; The Bluetooth test device is also used to receive a second control command sent by the control device and send the second control command to the device under test, as well as to receive a second execution result corresponding to the second control command sent by the device under test and send the second execution result to the control device, so that the control device determines the Bluetooth test result of the device under test based on the first execution result and the second execution result.

2. The Bluetooth test device according to claim 1, It is characterized in that The Bluetooth test device includes a controller, and the controller is used to connect each Bluetooth component and the control device; and determining a first execution result corresponding to the first control command based on the multiple Bluetooth components includes: Determining, by the controller, a target Bluetooth component from among the multiple Bluetooth components according to the target component identifier in the first control command; Determine, by the controller, a target execution instruction corresponding to the first control command, and send the target execution instruction to the target Bluetooth component; The target execution instruction is executed by the target Bluetooth component to obtain the first execution result, and the first execution result is sent to the controller.

3. The Bluetooth test device according to claim 2, It is characterized in that The Bluetooth test device further includes an audio storage component and an audio test interface component, wherein the multiple Bluetooth components include an audio component, and the audio component is connected to the controller, the audio storage component and the audio test interface component respectively, wherein: The audio component is used to send Bluetooth audio data to the audio storage component in response to the audio output instruction of the controller; The audio storage component is also connected to the controller, and the audio storage component is used to store the Bluetooth audio data sent by the audio component in response to the audio control instruction of the controller, and send the Bluetooth audio data to the control device; The audio test interface component is used to provide an audio speaker interface and a microphone interface of the audio component.

4. The Bluetooth test device according to claim 2 or 3, It is characterized in that The Bluetooth test device further includes a first interface and an interface extension component, wherein the first interface is connected to the control device and the interface extension component respectively, and the interface extension component is also used to connect the controller and the device under test, wherein: The first interface is used to receive the first control command and the second control command sent by the control device, and send the first control command and the second control command to the interface extension component; The first interface is further used to receive the first execution result and the second execution result sent by the interface extension component, and send the first execution result and the second execution result to the control device; The interface extension component is used to receive the first control command and the second control command sent by the first interface, and send the first control command to the controller, and send the second control command to the device under test; The interface extension component is further used to receive the first execution result sent by the controller, receive the second execution result sent by the device under test, and send the first execution result and the second execution result to the first interface.

5. The Bluetooth test device according to claim 4, It is characterized in that The Bluetooth test device also includes a test machine interface component, wherein: The test machine interface component includes a plurality of second interfaces, and the test machine interface component is used to connect a plurality of devices under test through the plurality of second interfaces; The test machine interface component is also connected to the interface extension component, and the interface extension component is used to send the second control command to the device under test through the test machine interface component, and receive the second execution result sent by the device under test through the test machine interface component.

6. The Bluetooth test device according to any one of claims 1 to 5, It is characterized in that The Bluetooth test device further includes a power supply component, and the power supply component is used to supply power to the Bluetooth test device.

7. The Bluetooth test device according to claim 6, It is characterized in that The Bluetooth test device further includes a charging component and a switch control component, wherein the charging component is connected to the power supply component and the switch control component respectively, and the switch control component is also connected to the control device and the device under test respectively, wherein: The charging component is used to charge the device under test through the switch control component in response to a charging control instruction; The switch control component is used to control the charging component to charge the device under test in response to a first switch control instruction, wherein the first switch control instruction is used to indicate whether to charge the device under test; The switch control component is further used to control the control device to send a second control command to the device under test in response to a second switch control instruction, wherein the second switch control instruction is used to indicate whether to send the second control command to the device under test.

8. The Bluetooth test device according to any one of claims 1 to 7, It is characterized in that The Bluetooth test device includes a motherboard and a daughterboard, the motherboard and the daughterboard are connected by plugging and unplugging, and the communication mode between the motherboard and the daughterboard includes at least one of the following: a general purpose input and output port GPIO, a universal asynchronous receiver and transmitter UART, an integrated circuit bus IIC or an Internet information service IIS, wherein: The motherboard is used to control the daughterboard; The motherboard is provided with a plurality of Bluetooth components, and the daughterboard is used for performing expansion processing on the plurality of Bluetooth components.

9. A testing method, It is characterized in that Applied to a control device, the control device is connected to a device under test and a Bluetooth test device respectively, the Bluetooth test device includes multiple Bluetooth components, and the device types or device information of the multiple Bluetooth components are different; the method includes: Sending a first control command to the Bluetooth test device, and sending a second control command to the device under test; Receiving a first execution result corresponding to the first control command sent by the Bluetooth test device, and receiving a second execution result corresponding to the second control command, wherein the first execution result is determined by the Bluetooth test device based on the multiple Bluetooth components; A Bluetooth test result of the device under test is determined according to the first execution result and the second execution result.

10. The method according to claim 9, It is characterized in that Sending a second control command to the device under test includes: The second control command is sent to the device under test through the Bluetooth test device.

11. The method according to claim 9 or 10, It is characterized in that Receiving a second execution result corresponding to the second control command includes: receiving the second execution result sent by the device under test; or, The second execution result sent by the Bluetooth test device is received, where the second execution result is transmitted from the device under test to the Bluetooth test device.

12. The method according to any one of claims 9 to 11, It is characterized in that The method further comprises: Receiving Bluetooth audio data corresponding to an audio test case sent by the Bluetooth test device, wherein the audio test case is used to test the audio playback quality of the device under test; Initial audio data is determined in the audio test case, and a test result corresponding to the audio test case is determined based on the initial audio data and the Bluetooth audio data.

13. A testing device, It is characterized in that Applied to a control device, the control device is connected to a device under test and a Bluetooth test device respectively, the Bluetooth test device includes multiple Bluetooth components, and the device types or device information of the multiple Bluetooth components are different; including: A sending module, used for sending a first control command to the Bluetooth test device, and sending a second control command to the device under test; A receiving module, configured to receive a first execution result corresponding to the first control command sent by the Bluetooth test device, and receive a second execution result corresponding to the second control command, wherein the first execution result is determined by the Bluetooth test device based on the multiple Bluetooth components; A determination module is used to determine a Bluetooth test result of the device under test according to the first execution result and the second execution result.

14. A control device, It is characterized in that include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 9 to 12.

15. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 9 to 12 when executed by a processor.

16. A computer program product, It is characterized in that The invention comprises a computer program, which implements the method according to any one of claims 9 to 12 when being executed by a processor.