Bluetooth equipment testing method and device, computer equipment and storage medium
By connecting Bluetooth devices via network cable and radio frequency cable, and using a comprehensive tester for parallel testing, the problems of low testing efficiency and resource waste in existing technologies are solved, and efficient Bluetooth device testing is achieved.
Patent Information
- Application Number
- CN202310234807.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-03
- Publication Date
- 2024-09-06
AI Technical Summary
In existing technologies, testing Bluetooth devices using the CMW500 is inefficient and resource-intensive, especially in parallel testing of two devices, which requires two USB ports and two GP IB cables, resulting in wasted resources and low testing efficiency.
A communication connection is established with the integrated tester via a network cable, a Bluetooth device is connected via an RF cable, and test commands are sent through the integrated tester to perform parallel testing, generating device test data and results.
It reduced the investment in equipment resources, improved testing efficiency and equipment utilization, reduced the testing workload, and realized a one-to-many testing mode.
Smart Images

Figure CN118611786A
Abstract
Description
Technical Field
[0001] The present application relates to the field of testing technology, and in particular to a method, apparatus, computer equipment and storage medium for testing a Bluetooth device. Background Art
[0002] CMW500 (Broadband Radio Communication Tester, also called Comprehensive Tester) is a general test platform suitable for RF integration and protocol development. CMW500 has two GPIB (General-Purpose Interface Bus, GPIB, a bus that connects a device to a computer) ports, and each GPIB port can control two RF COM ports (radio frequency interfaces) of the comprehensive tester. At present, the industry uses CMW500 to test Bluetooth devices. For example, when testing Bluetooth headsets, USB (Universal Serial Bus, USB) is used to transfer GPIB communication, and the Bluetooth device needs to establish a connection with the comprehensive tester first. This will result in low test efficiency. For example, when performing a one-to-two parallel test, the computer needs to occupy two USB ports, connect two GPIB lines, and control two RF COM ports respectively to perform a one-to-two test. In addition to low test efficiency, it will also occupy more resources. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a Bluetooth device testing method, apparatus, computer equipment and storage medium to solve the problem of low testing efficiency of Bluetooth devices by a comprehensive tester.
[0004] In order to solve the above technical problems, the present application provides a method for testing a Bluetooth device, which adopts the following technical solution:
[0005] Establishing a communication connection with a comprehensive tester via a network cable, wherein the comprehensive tester is also connected to at least one Bluetooth device via a radio frequency cable;
[0006] Sending a test instruction for the at least one Bluetooth device to the comprehensive tester, so as to test the at least one Bluetooth device through the comprehensive tester to obtain device test data;
[0007] Generate a Bluetooth device test result based on the device test data.
[0008] In order to solve the above technical problems, the embodiment of the present application further provides a Bluetooth device testing device, which adopts the following technical solution:
[0009] A connection establishment module, used to establish a communication connection with the comprehensive tester via a network cable, wherein the comprehensive tester is also connected to at least one Bluetooth device via a radio frequency line;
[0010] A device testing module, used for sending a test instruction for the at least one Bluetooth device to the comprehensive tester, so as to test the at least one Bluetooth device through the comprehensive tester and obtain device test data;
[0011] The result generating module is used to generate a Bluetooth device test result based on the device test data.
[0012] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution:
[0013] Establishing a communication connection with a comprehensive tester via a network cable, wherein the comprehensive tester is also connected to at least one Bluetooth device via a radio frequency cable;
[0014] Sending a test instruction for the at least one Bluetooth device to the comprehensive tester, so as to test the at least one Bluetooth device through the comprehensive tester to obtain device test data;
[0015] Generate a Bluetooth device test result based on the device test data.
[0016] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:
[0017] Establishing a communication connection with a comprehensive tester via a network cable, wherein the comprehensive tester is also connected to at least one Bluetooth device via a radio frequency cable;
[0018] Sending a test instruction for the at least one Bluetooth device to the comprehensive tester, so as to test the at least one Bluetooth device through the comprehensive tester to obtain device test data;
[0019] Generate a Bluetooth device test result based on the device test data.
[0020] Compared with the prior art, the embodiments of the present application mainly have the following beneficial effects: the computer establishes a communication connection with the comprehensive tester through a network cable, and the number of network cables is only one, which reduces the resource investment of the equipment; the comprehensive tester is connected to at least one Bluetooth device through a radio frequency cable; the computer sends a test instruction for each Bluetooth device to the comprehensive tester, so that each Bluetooth device is tested in parallel through the comprehensive tester to obtain device test data, and the device test data is evaluated to generate Bluetooth device test results; the comprehensive tester can realize one-to-many testing of Bluetooth devices, thereby improving equipment utilization and test efficiency and reducing testing workload. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0022] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;
[0023] Figure 2 is a flow chart of an embodiment of a method for testing a Bluetooth device according to the present application;
[0024] Figure 3 is a structural schematic diagram of an embodiment of a Bluetooth device testing device according to the present application;
[0025] Figure 4 It is a structural diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION
[0026] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0027] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0028] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0029] like Figure 1As shown, the system architecture 100 may include a computer 101, a comprehensive tester 102, and Bluetooth devices 103 and 104. The computer 101 is installed with an operating system, and may be, but not limited to, various industrial computers, personal computers, and laptop computers. The model of the comprehensive tester 102 may be CMW500. The Bluetooth devices 103 and 104 may be Bluetooth headsets, Bluetooth speakers, and other equipment with Bluetooth functions.
[0030] It should be noted that the Bluetooth device testing method provided in the embodiment of the present application is generally executed by a computer, and accordingly, the Bluetooth device testing apparatus is generally set in the computer.
[0031] Continue to refer Figure 2 , shows a flow chart of an embodiment of a method for testing a Bluetooth device according to the present application. The method for testing a Bluetooth device comprises the following steps:
[0032] Step S201, establishing a communication connection with a comprehensive tester via a network cable, and the comprehensive tester is also connected to at least one Bluetooth device via a radio frequency line.
[0033] Specifically, the LAN port (Local Area Network, a network port for realizing a local area network) of the computer is connected to the comprehensive tester CMW500 through a network cable, and the computer can also establish a NI network device. The comprehensive tester is connected to at least one Bluetooth device, and can be connected to the Bluetooth device through a radio frequency line.
[0034] The comprehensive tester in this application adopts CMW500, which has two modules, each module has two ports. When using signaling test, the comprehensive tester can achieve one-to-four tests at most.
[0035] Step S202: sending a test instruction for at least one Bluetooth device to the comprehensive tester, so as to test at least one Bluetooth device through the comprehensive tester to obtain device test data.
[0036] Specifically, the computer sends a test instruction for each Bluetooth device to the integrated tester. After receiving the test instruction, the integrated tester tests each connected Bluetooth device to obtain device test data; wherein the device test data is data with multiple indicator dimensions.
[0037] In the present application, the integrated tester is controlled by a computer, and the integrated tester controls the Bluetooth device; the computer is provided with test software, which supports GP IB and network port testing. At the same time, network port communication is more stable than GP IB communication; the test software can realize one-to-many testing, and can perform parallel testing on each Bluetooth device connected to the integrated tester, without the need to frequently connect and disconnect, thereby improving the test efficiency; the one-to-many parallel testing improves the utilization rate of the integrated tester, and replaces two USB to GP IB cables with an Internet cable, thereby reducing the resource investment of the equipment; the one-to-many test software reduces the workload of the testers.
[0038] Step S203: Generate a Bluetooth device test result based on the device test data.
[0039] Specifically, the device test data is evaluated to generate a Bluetooth device test result, which can indicate whether the Bluetooth device has passed the test.
[0040] In this embodiment, the computer establishes a communication connection with the comprehensive tester through a network cable, and the number of network cables is only one, which reduces the resource investment of the equipment; the comprehensive tester is connected to at least one Bluetooth device through a radio frequency cable; the computer sends a test instruction for each Bluetooth device to the comprehensive tester, so that each Bluetooth device is tested in parallel through the comprehensive tester to obtain device test data, and the device test data is evaluated to generate Bluetooth device test results; the comprehensive tester can realize one-to-many testing of Bluetooth devices, improves equipment utilization and test efficiency, and reduces testing workload.
[0041] Furthermore, the above-mentioned step of establishing a communication connection with the integrated tester via a network cable may include: establishing a communication connection with the integrated tester via a network cable, and registering the integrated tester to control the integrated tester, the model of the integrated tester being CMW500; obtaining the network address of the integrated tester and the network address of the current device; when the network address of the integrated tester and the network address of the current device are in the same subnet, sending a test instruction for at least one Bluetooth device to the integrated tester, so as to test at least one Bluetooth device through the integrated tester and obtain device test data.
[0042] Specifically, the computer establishes a communication connection with the comprehensive tester through a network cable, and registers the comprehensive tester into the test software to control the comprehensive tester.
[0043] After establishing a communication connection with the comprehensive tester, the computer can set initialization parameters for the comprehensive tester.
[0044] In this application, it is necessary to set a network address in the same subnet for the computer and the comprehensive tester; the network address can be set by the tester. The computer obtains the network address of the comprehensive tester and its own network address; if the network address of the comprehensive tester and its own network address are in the same subnet, a test instruction for at least one Bluetooth device can be sent to the comprehensive tester, so that at least one Bluetooth device can be tested by the comprehensive tester to obtain device test data.
[0045] In this embodiment, a communication connection is established with the comprehensive tester through a network cable, and the comprehensive tester is registered to control the comprehensive tester; the network address of the comprehensive tester and itself is obtained. When the network address is in the same subnet, it indicates that the test preparation has been completed, ensuring the smooth progress of the test.
[0046] Furthermore, before the above step S202, the method may further include: searching for Bluetooth devices through a comprehensive tester, and establishing a signaling connection with at least one Bluetooth device found through the comprehensive tester.
[0047] Specifically, in this application, when a Bluetooth device performs a signaling test, it is necessary to adjust the Bluetooth device to the signaling mode in advance. Then the tester puts the Bluetooth device into a frequency blocking box and turns off the frequency blocking box to prevent interference. After the frequency blocking box is turned off, the test software in the computer starts working, instructing the comprehensive tester to search for Bluetooth devices (the search can be performed based on the MAC address of the Bluetooth device, i.e., the physical address), and instructs the comprehensive tester to establish a signaling connection with at least one Bluetooth device that has been searched.
[0048] In this embodiment, the comprehensive tester searches for Bluetooth devices to obtain at least one Bluetooth device and establishes a signaling connection to ensure smooth progress of subsequent tests.
[0049] Furthermore, the above step S202 may include: sending a test instruction for at least one Bluetooth device to the integrated tester; based on the test instruction, performing a transmission test on at least one Bluetooth device through the integrated tester to obtain transmission test data, and performing a reception test on at least one Bluetooth device through the integrated tester to obtain reception test data; and generating device test data based on the transmission test data and the reception test data.
[0050] Specifically, the computer sends a test instruction for each Bluetooth device to the comprehensive tester, and the test instruction is sent to the comprehensive tester through a network cable, and the comprehensive tester tests each Bluetooth device according to the test instruction.
[0051] The test of Bluetooth device includes transmission test TX and reception test RX. The transmission test is used to test the transmission capability of Bluetooth device, and the transmission test data is obtained after the transmission test. The reception test is used to test the reception capability of Bluetooth device, and the reception test data is obtained after the reception test. The transmission test data and the reception test data constitute the device test data.
[0052] In this embodiment, after the computer sends a test instruction to the comprehensive tester, the comprehensive tester performs a transmission test on each Bluetooth device to obtain transmission test data, and performs a reception test on each Bluetooth device to obtain reception test data, thereby testing the transmission and reception capabilities of the Bluetooth device.
[0053] Furthermore, the above-mentioned steps of performing a transmission test on at least one Bluetooth device through an integrated tester to obtain transmission test data, and performing a reception test on at least one Bluetooth device through an integrated tester to obtain reception test data may include: instructing at least one Bluetooth device to transmit a first test signal on each preset channel through the integrated tester, and receiving the first test signal sent by at least one Bluetooth device on each preset channel through the integrated tester to obtain transmission test data; transmitting a second test signal to at least one Bluetooth device on each preset channel through the integrated tester, and receiving the second test signal on each preset channel through at least one Bluetooth device to obtain reception test data.
[0054] Specifically, data transmission requires channels. The present application pre-sets multiple channels, and it is necessary to test the transmission capability and receiving capability of each Bluetooth device on each preset channel.
[0055] When performing a transmission test, the comprehensive tester controls each Bluetooth device to transmit a first test signal on each preset channel, receives the first test signals, and generates transmission test data of each Bluetooth device according to the reception of the first test signals. The comprehensive tester then sends the transmission test data to the computer.
[0056] When performing a reception test, the integrated tester transmits a second test signal to each Bluetooth device on each preset channel. Each Bluetooth device receives the second test signal and generates reception test data of each Bluetooth device according to the reception of the second test signal. Each Bluetooth device sends the reception test data generated by itself to the integrated tester, which then sends it to the computer.
[0057] Before performing the transmission test and the reception test, the computer can make targeted adjustments to the parameters of the integrated tester according to the transmission test and the reception test to be performed, so that the subsequent transmission test and the reception test can meet the requirements. In the transmission test, the test software in the computer controls the switching of channels and sets the relevant instrument parameters by calling the Bluetooth Measurement module instruction of the integrated tester. In the reception test, the test software can control the switching of channels and set the relevant instrument parameters by calling the Bluetooth Signaling RX Measurement module instruction of the integrated tester.
[0058] In this embodiment, through the integrated tester, each Bluetooth device is controlled to transmit a first test signal on each preset channel, and the first test signal sent by each Bluetooth device on each preset channel is received by the integrated tester to obtain transmission test data; the second test signal is transmitted to each Bluetooth device on each preset channel by the integrated tester, and the second test signal is received by each device on each preset channel to obtain reception test data, thereby achieving comprehensive testing of each Bluetooth device and ensuring the rationality and accuracy of the test.
[0059] Furthermore, the above-mentioned step S203 may include: obtaining a plurality of preset transmission index values and a plurality of reception index values; comparing the plurality of transmission index values with the transmission measurement values in the transmission test data, and comparing the plurality of reception index values with the reception measurement values in the reception test data, and generating a Bluetooth device test result based on the comparison result.
[0060] Specifically, for each Bluetooth device, their transmission test data and reception test data on each preset channel can be data with multiple indicator dimensions, that is, on each preset channel, the capabilities of the Bluetooth device are described and characterized by multiple indicators. For example, the transmission test data may include indicators such as power and frequency deviation, and the reception test data may include bit error rate BER, etc.
[0061] Obtain multiple preset transmission index values and multiple reception index values, where the transmission index value is the standard value of a certain transmission index dimension of the Bluetooth device on each preset channel, and the reception index value is the standard value of a certain reception index dimension of the Bluetooth device on each preset channel. Match the transmission index value with the transmission measurement value in the transmission test data according to the channel dimension and the index dimension (for example, the frequency deviation on channel A in the transmission index value is matched with the frequency deviation on channel A in the transmission measurement value), and then compare; match the reception index value with the reception measurement value in the reception test data according to the channel dimension and the index dimension, and then compare.
[0062] A Bluetooth device test result can be generated based on the comparison result. The Bluetooth device test result can reflect whether the transmission index and the receiving index of the Bluetooth device meet the requirements on each preset channel.
[0063] In this embodiment, multiple preset transmission index values and multiple reception index values are obtained; the multiple transmission index values are compared with each transmission measurement value in the transmission test data, and the multiple reception index values are compared with each reception measurement value in the reception test data, so as to determine whether the transmission index of the Bluetooth device on each preset channel meets the requirements and whether the reception index meets the requirements, and generate a Bluetooth device test result.
[0064] Furthermore, after the step of generating the Bluetooth device test result according to the comparison result, the method may further include: when it is determined according to the Bluetooth device test result that there is a Bluetooth device that fails the test, retesting the Bluetooth device.
[0065] Specifically, if on a certain channel, the transmission measurement value of the Bluetooth device does not match the corresponding transmission index value (for example, the transmission measurement value is greater than or less than the transmission index value, or the difference between the transmission measurement value and the transmission index value is greater than or equal to a preset difference threshold), or the reception measurement value does not match the corresponding reception index value (for example, the reception measurement value is greater than or less than the reception index value, or the difference between the reception measurement value and the reception index value is greater than or equal to the preset difference threshold), then the Bluetooth device test results will show that a certain transmission indicator / reception indicator of the Bluetooth device on the channel does not meet the requirements and the test fails.
[0066] To avoid test failures caused by inaccurate measurements during the test, the Bluetooth device needs to be retested. Specifically, if the Bluetooth device fails in the transmission test on a certain channel, it only needs to re-test the transmission on that channel; if the Bluetooth device fails in the reception test on a certain channel, it only needs to re-test the reception on that channel.
[0067] This application sets a failure count threshold. If, based on the Bluetooth device test results, it is determined that the number of Bluetooth device test failures reaches the failure count threshold, the Bluetooth device is judged to have a defect and the test is terminated.
[0068] In this embodiment, when it is determined according to the test results of the Bluetooth devices that there is a Bluetooth device that has failed the test, the Bluetooth device is retested to avoid test failure caused by inaccurate measurement, thereby ensuring the accuracy of the test.
[0069] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0070] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0071] Further references Figure 3 , as a response to the above Figure 2 The present application provides an embodiment of a Bluetooth device testing device, and the device embodiment is Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0072] like Figure 3 As shown, the Bluetooth device testing apparatus 300 described in this embodiment includes: a connection establishment module 301, a device testing module 302 and a result generation module 303, wherein:
[0073] The connection establishing module 301 is used to establish a communication connection with the comprehensive tester through a network cable. The comprehensive tester is also connected to at least one Bluetooth device through a radio frequency line.
[0074] The device testing module 302 is used to send a test instruction for at least one Bluetooth device to the comprehensive tester, so as to test the at least one Bluetooth device through the comprehensive tester to obtain device test data.
[0075] The result generating module 303 is used to generate a Bluetooth device test result based on the device test data.
[0076] In this embodiment, the computer establishes a communication connection with the comprehensive tester through a network cable, and the number of network cables is only one, which reduces the resource investment of the equipment; the comprehensive tester is connected to at least one Bluetooth device through a radio frequency cable; the computer sends a test instruction for each Bluetooth device to the comprehensive tester, so that each Bluetooth device is tested in parallel through the comprehensive tester to obtain device test data, and the device test data is evaluated to generate Bluetooth device test results; the comprehensive tester can realize one-to-many testing of Bluetooth devices, improves equipment utilization and test efficiency, and reduces testing workload.
[0077] In some optional implementations of this embodiment, the connection establishment module 301 may include: a connection establishment submodule and an address acquisition submodule, wherein:
[0078] The connection establishment submodule is used to establish a communication connection with the comprehensive tester through a network cable, and to register the comprehensive tester to control the comprehensive tester. The model of the comprehensive tester is CMW500.
[0079] The address acquisition submodule is used to obtain the network address of the comprehensive tester and the network address of the current device.
[0080] The device testing module 302 is also used to send a test instruction for at least one Bluetooth device to the comprehensive tester when the network address of the comprehensive tester and the network address of the current device are in the same subnet, so as to test at least one Bluetooth device through the comprehensive tester and obtain device testing data.
[0081] In this embodiment, a communication connection is established with the comprehensive tester through a network cable, and the comprehensive tester is registered to control the comprehensive tester; the network address of the comprehensive tester and itself is obtained. When the network address is in the same subnet, it indicates that the test preparation has been completed, ensuring the smooth progress of the test.
[0082] In some optional implementations of this embodiment, the Bluetooth device testing apparatus 300 may further include a device search module, which is used to search for Bluetooth devices through an integrated tester, and establish a signaling connection with at least one searched Bluetooth device through the integrated tester.
[0083] In this embodiment, the comprehensive tester searches for Bluetooth devices to obtain at least one Bluetooth device and establishes a signaling connection to ensure smooth progress of subsequent tests.
[0084] In some optional implementations of this embodiment, the device testing module 302 may include: an instruction sending submodule, a device testing submodule, and a data generating submodule, wherein:
[0085] The instruction sending submodule is used to send a test instruction for at least one Bluetooth device to the comprehensive tester.
[0086] The device test submodule is used to perform a transmission test on at least one Bluetooth device through a comprehensive tester based on a test instruction to obtain transmission test data, and to perform a reception test on at least one Bluetooth device through a comprehensive tester to obtain reception test data.
[0087] The data generation submodule is used to generate device test data according to the transmission test data and the reception test data.
[0088] In this embodiment, after the computer sends a test instruction to the comprehensive tester, the comprehensive tester performs a transmission test on each Bluetooth device to obtain transmission test data, and performs a reception test on each Bluetooth device to obtain reception test data, thereby testing the transmission and reception capabilities of the Bluetooth device.
[0089] In some optional implementations of this embodiment, the device test submodule may include: a transmission test unit and a reception test unit, wherein:
[0090] The transmission test unit is used to instruct at least one Bluetooth device to transmit a first test signal on each preset channel through a comprehensive tester, and receive the first test signal sent by at least one Bluetooth device on each preset channel through the comprehensive tester to obtain transmission test data.
[0091] The receiving test unit is used to transmit a second test signal to at least one Bluetooth device on each preset channel through a comprehensive tester, and receive the second test signal on each preset channel through at least one Bluetooth device to obtain receiving test data.
[0092] In this embodiment, through the integrated tester, each Bluetooth device is controlled to transmit a first test signal on each preset channel, and the first test signal sent by each Bluetooth device on each preset channel is received by the integrated tester to obtain transmission test data; the second test signal is transmitted to each Bluetooth device on each preset channel by the integrated tester, and the second test signal is received by each device on each preset channel to obtain reception test data, thereby achieving comprehensive testing of each Bluetooth device and ensuring the rationality and accuracy of the test.
[0093] In some optional implementations of this embodiment, the result generation module 303 may include: an indicator value receiving submodule and a comparison submodule, wherein:
[0094] The index value receiving submodule is used to obtain a plurality of preset transmission index values and a plurality of reception index values.
[0095] The comparison submodule is used to compare multiple transmission index values with each transmission measurement value in the transmission test data, compare multiple reception index values with each reception measurement value in the reception test data, and generate a Bluetooth device test result according to the comparison result.
[0096] In this embodiment, multiple preset transmission index values and multiple reception index values are obtained; the multiple transmission index values are compared with each transmission measurement value in the transmission test data, and the multiple reception index values are compared with each reception measurement value in the reception test data, so as to determine whether the transmission index of the Bluetooth device on each preset channel meets the requirements and whether the reception index meets the requirements, and generate a Bluetooth device test result.
[0097] In some optional implementations of this embodiment, the Bluetooth device testing apparatus 300 may further include a retesting module, which is used to retest the Bluetooth device when it is determined according to the Bluetooth device test result that there is a Bluetooth device that fails the test.
[0098] In this embodiment, when it is determined according to the test results of the Bluetooth devices that there is a Bluetooth device that has failed the test, the Bluetooth device is retested to avoid test failure caused by inaccurate measurement, thereby ensuring the accuracy of the test.
[0099] To solve the above technical problems, the present application also provides a computer device. Figure 4 , Figure 4 This is a basic structural block diagram of the computer device in this embodiment.
[0100] The computer device 4 includes a memory 41, a processor 42, and a network interface 43 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 4 with components 41-43, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital processors (DSPs), embedded devices, etc.
[0101] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.
[0102] The memory 41 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 41 can be an internal storage unit of the computer device 4, such as a hard disk or memory of the computer device 4. In other embodiments, the memory 41 can also be an external storage device of the computer device 4, such as a plug-in hard disk equipped on the computer device 4, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. Of course, the memory 41 can also include both the internal storage unit of the computer device 4 and its external storage device. In this embodiment, the memory 41 is generally used to store the operating system and various application software installed on the computer device 4, such as computer-readable instructions of a Bluetooth device testing method, etc. In addition, the memory 41 can also be used to temporarily store various types of data that have been output or are to be output.
[0103] The processor 42 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 42 is generally used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is used to run the computer-readable instructions stored in the memory 41 or process data, such as computer-readable instructions for running the Bluetooth device testing method.
[0104] The network interface 43 may include a wireless network interface or a wired network interface. The network interface 43 is generally used to establish a communication connection between the computer device 4 and other electronic devices.
[0105] The computer device provided in this embodiment can execute the above-mentioned Bluetooth device testing method. Here, the Bluetooth device testing method can be the Bluetooth device testing method of each of the above-mentioned embodiments.
[0106] In this embodiment, the computer establishes a communication connection with the comprehensive tester through a network cable, and the number of network cables is only one, which reduces the resource investment of the equipment; the comprehensive tester is connected to at least one Bluetooth device through a radio frequency line; the computer sends a test instruction for each Bluetooth device to the comprehensive tester, so that each Bluetooth device is tested in parallel through the comprehensive tester, and the test results are obtained.
[0107] Equipment test data, evaluate the equipment test data to generate Bluetooth device test results; the comprehensive tester can achieve one-to-many testing for Bluetooth devices, improve equipment utilization and test efficiency, and reduce testing workload.
[0108] The present application also provides another implementation, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions can be executed by at least one processor to enable the at least one processor to perform the steps of the Bluetooth device testing method as described above.
[0109] In this embodiment, the computer establishes a communication connection with the comprehensive tester through a network cable, and the number of network cables is only one, which reduces the resource investment of the equipment; the comprehensive tester is connected to at least one Bluetooth device through a radio frequency cable; the computer sends a test instruction for each Bluetooth device to the comprehensive tester, so that each Bluetooth device is tested in parallel through the comprehensive tester to obtain device test data, and the device test data is evaluated to generate Bluetooth device test results; the comprehensive tester can realize one-to-many testing of Bluetooth devices, improves equipment utilization and test efficiency, and reduces testing workload.
[0110] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0111] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.
Claims
1. A Bluetooth device testing method, characterized in that: The steps include: Establishing a communication connection with a comprehensive tester via a network cable, wherein the comprehensive tester is also connected to at least one Bluetooth device via a radio frequency cable; Sending a test instruction for the at least one Bluetooth device to the comprehensive tester, so as to test the at least one Bluetooth device through the comprehensive tester to obtain device test data; Generate a Bluetooth device test result based on the device test data.
2. The Bluetooth device testing method according to claim 1, characterized in that: The step of establishing a communication connection with the comprehensive tester via a network cable comprises: Establishing a communication connection with a comprehensive tester through a network cable, and registering the comprehensive tester to control the comprehensive tester, the model of the comprehensive tester is CMW500; Obtaining the network address of the comprehensive tester and the network address of the current device; When the network address of the comprehensive tester and the network address of the current device are in the same subnet, the step of sending a test instruction for the at least one Bluetooth device to the comprehensive tester is executed to test the at least one Bluetooth device through the comprehensive tester to obtain device test data.
3. The Bluetooth device testing method according to claim 1, characterized in that: Before the step of sending a test instruction for the at least one Bluetooth device to the comprehensive tester so as to test the at least one Bluetooth device through the comprehensive tester to obtain device test data, the step further includes: The integrated tester is used to search for Bluetooth devices, and the integrated tester is used to establish a signaling connection with at least one Bluetooth device that is searched.
4. The method for testing a Bluetooth device according to claim 1, wherein: The step of sending a test instruction for the at least one Bluetooth device to the comprehensive tester to test the at least one Bluetooth device through the comprehensive tester to obtain device test data includes: Sending a test instruction for the at least one Bluetooth device to the comprehensive tester; Based on the test instruction, performing a transmission test on the at least one Bluetooth device by the comprehensive tester to obtain transmission test data, and performing a reception test on the at least one Bluetooth device by the comprehensive tester to obtain reception test data; Device test data is generated based on the transmission test data and the reception test data.
5. The method for testing a Bluetooth device according to claim 4, characterized in that: The step of performing a transmission test on the at least one Bluetooth device by the comprehensive tester to obtain transmission test data, and performing a reception test on the at least one Bluetooth device by the comprehensive tester to obtain reception test data comprises: Instructing the at least one Bluetooth device to transmit a first test signal on each preset channel respectively through the comprehensive tester, and receiving the first test signal sent by the at least one Bluetooth device on each preset channel through the comprehensive tester to obtain transmission test data; The integrated tester transmits a second test signal to the at least one Bluetooth device on each preset channel, and the at least one Bluetooth device receives the second test signal on each preset channel to obtain reception test data.
6. The method for testing a Bluetooth device according to claim 5, characterized in that: The step of generating a Bluetooth device test result based on the device test data comprises: Obtaining preset multiple transmission index values and multiple reception index values; The multiple transmission index values are compared with the transmission measurement values in the transmission test data, the multiple reception index values are compared with the reception measurement values in the reception test data, and a Bluetooth device test result is generated according to the comparison result.
7. The method for testing a Bluetooth device according to claim 1, wherein: After the step of generating a Bluetooth device test result based on the device test data, the method further includes: When it is determined according to the Bluetooth device test result that there is a Bluetooth device that has failed the test, the Bluetooth device is retested.
8. A Bluetooth device testing device, characterized in that: include: A connection establishment module, used to establish a communication connection with the comprehensive tester via a network cable, wherein the comprehensive tester is also connected to at least one Bluetooth device via a radio frequency line; A device testing module, used for sending a test instruction for the at least one Bluetooth device to the comprehensive tester, so as to test the at least one Bluetooth device through the comprehensive tester and obtain device testing data; The result generating module is used to generate a Bluetooth device test result based on the device test data.
9. A computer device, comprising a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the Bluetooth device testing method according to any one of claims 1 to 7 when executing the computer-readable instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the steps of the Bluetooth device testing method according to any one of claims 1 to 7 are implemented.
