Earphone test method, device and system, computer equipment and storage medium
By receiving and converting test instructions sent by the upper computer in the headset test box, the debugging cycle extension problem caused by the complexity of the TWS headset production line is solved, and the multi-protocol compatibility of the headset test box is realized, which simplifies production line debugging and guarantees the Product launch time.
Patent Information
- Application Number
- CN202310673044.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-07
- Publication Date
- 2024-12-10
AI Technical Summary
The TWS headphone production line testing station is complex, resulting in an extended production line debugging cycle and affecting the product launch time plan.
By receiving the test instructions sent by the upper computer, the serial communication protocol of the headset to be tested is converted into the target test instructions based on the serial communication protocol of the headset to be tested, and sent to the headset to receive feedback data, simplifying the protocol conversion of the headset test box, and achieving compatibility with multiple communication protocols sex.
It simplifies the debugging operation of the headphone production line, reduces the testing cost, improves the compatibility of the headphone test box, shortens the debugging cycle of the production line, and ensures the launch time plan of the product.
Smart Images

Figure CN119110233A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of headphone testing technology, and in particular to a headphone testing method, device, system, computer equipment and storage medium. Background Art
[0002] With the development of science and technology, the use of electronic devices is becoming more and more convenient. Among them, TWS (True Wireless Stereo) headphones have attracted widespread attention due to their wireless and convenient use. In order to bring people a higher auditory experience, TWS headphones need to be professionally and systematically tested before leaving the factory to ensure the quality of the products.
[0003] At present, the mass production of TWS headphones involves a relatively large number of test stations. Usually, each station requires the host computer to connect to a protocol conversion box through a serial port line. The protocol conversion box is then connected to the test headphones through the test points to run the test commands and interact with the headphones. Due to the different test items of the test stations, the general practice is to correspond to different protocol conversion boxes according to the requirements of the stations. In this way, a production line will use multiple protocol conversion boxes, which will cause great inconvenience to the engineering debugging of the production line, resulting in an extension of the production line debugging cycle, which in turn affects the product launch time plan. Summary of the invention
[0004] The purpose of the embodiments of the present application is to propose a headphone testing method, apparatus, system, computer equipment and storage medium to solve the technical problem in the prior art that the headphone production line is complicated and the production line debugging cycle is prolonged.
[0005] In order to solve the above technical problems, the embodiment of the present application provides an earphone testing method, which is applied to an earphone testing box and adopts the following technical solution:
[0006] Receive test instructions sent by the host computer through the serial port;
[0007] Based on the serial communication protocol of the headset to be tested, converting the test instruction into a target test instruction;
[0008] Sending the target test instruction to the headset to be tested;
[0009] Receiving test data fed back by the headset to be tested based on the target test instruction;
[0010] The test data is sent to the host computer.
[0011] Furthermore, the step of converting the test instruction into a target test instruction based on the serial communication protocol of the headset to be tested includes:
[0012] Parse the test instruction according to the protocol parsing package to obtain instruction content;
[0013] Based on the serial communication protocol for communicating with the headset to be tested, data conversion is performed on the instruction content to obtain a target test instruction that can be received by the headset to be tested.
[0014] Furthermore, before the step of receiving the test instruction sent by the host computer through the serial port, the method further includes:
[0015] Receiving a connection instruction sent by the host computer;
[0016] Connecting to the headset to be tested is performed according to the connection instruction.
[0017] Furthermore, before the step of receiving the connection instruction sent by the host computer, the method further includes:
[0018] Receiving the initialization instruction from the host computer or AD button;
[0019] The headset to be tested is controlled to start up based on the initialization instruction.
[0020] In order to solve the above technical problems, the embodiment of the present application provides a headset testing method, which is applied to a host computer and adopts the following technical solution:
[0021] Send the test command to the headphone test box through the serial port;
[0022] Receiving test data fed back by the headphone test box based on the test instruction;
[0023] The test data is analyzed to obtain test results.
[0024] In order to solve the above technical problems, the embodiment of the present application further provides a headphone testing device, which adopts the following technical solution:
[0025] The command receiving module is used to receive the test command sent by the host computer through the serial port;
[0026] A conversion module, used for converting the test instruction into a target test instruction based on the serial communication protocol of the headset to be tested;
[0027] A first instruction sending module, used for sending the target test instruction to the headset to be tested;
[0028] A feedback module, used for receiving test data fed back by the headset to be tested based on the target test instruction;
[0029] The data sending module is used to send the test data to the host computer.
[0030] In order to solve the above technical problems, the embodiment of the present application further provides a headphone testing device, which adopts the following technical solution:
[0031] A second instruction sending module, used for sending the test instruction to the earphone test box through the serial port;
[0032] A data receiving module, used for receiving the test data fed back by the earphone test box based on the test instruction;
[0033] The result analysis module is used to analyze the test data to obtain the test results.
[0034] In order to solve the above technical problems, the embodiment of the present application further provides a headphone testing system, which adopts the following technical solution:
[0035] The system comprises an earphone test box, a host computer and an earphone to be tested, wherein the earphone test box comprises the earphone test device as described above, and the host computer comprises the earphone test device as described above;
[0036] The host computer is connected to the earphone test box via a serial port; the earphone test box is connected to the earphone signal to be tested.
[0037] 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:
[0038] The computer device comprises a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the earphone testing method described above when executing the computer-readable instructions.
[0039] 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:
[0040] The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps of the headphone testing method described above are implemented.
[0041] Compared with the prior art, this application has the following beneficial effects:
[0042] The earphone testing method provided in the present application receives a test instruction sent by a host computer through a serial port; based on the serial port communication protocol of the earphone to be tested, converts the test instruction into a target test instruction; sends the target test instruction to the earphone to be tested; receives test data fed back by the earphone to be tested based on the target test instruction; and sends the test data to the host computer. The present application can receive test instructions from multiple workstations through one earphone test box, thereby simplifying the debugging operation of the earphone production line and reducing the testing cost. The earphone test box can realize testing scenarios of workstations using multiple application communication protocols, improve the compatibility of the earphone test box, standardize the production line testing, shorten the debugging cycle of the production line, and ensure the product launch time plan. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] 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.
[0044] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;
[0045] Figure 2 is a flow chart of an embodiment of a headphone testing method according to the present application;
[0046] Figure 3 is a flow chart of another embodiment of the headphone testing method according to the present application;
[0047] Figure 4 is a structural schematic diagram of an embodiment of an earphone testing device according to the present application;
[0048] Figure 5 is a structural schematic diagram of another embodiment of the earphone testing device according to the present application;
[0049] Figure 6 is a schematic diagram of the structure of a headphone testing system according to the present application;
[0050] Figure 7 It is a structural diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION
[0051] 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.
[0052] 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.
[0053] 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.
[0054] This application provides a headphone testing method that can be applied to Figure 1 In the system architecture 100 shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0055] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0056] Terminal devices 101, 102, 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, desktop computers, etc.
[0057] The server 105 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal devices 101 , 102 , and 103 .
[0058] It should be noted that the earphone testing method provided in the embodiment of the present application is generally executed by a server / terminal device, and accordingly, the earphone testing device is generally arranged in the server / terminal device.
[0059] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0060] Continue to refer Figure 2 , shows a flow chart of an embodiment of a method for testing headphones according to the present application, comprising the following steps:
[0061] Step S201, receiving a test instruction sent by a host computer through a serial port.
[0062] In this embodiment, the earphone test method is applied to an earphone test box, which can be a charging box that matches the earphone to be tested, or a test box that is specifically used for earphone testing. The earphone is tested through the earphone test box. A test environment is pre-built, and the test environment includes a host computer, an earphone test box, the earphone to be tested, and a serial line for connecting the host computer and the earphone test box.
[0063] The host computer issues a test command to trigger the test process; the headphone test box is used to respond to the test command of the host computer and convert the test command and send it to the headphone under test. The test command includes but is not limited to pairing test, response sensitivity test, current test, anti-interference test, endurance test, signal receiving distance test, etc.
[0064] The host computer is a device that issues test instructions, which can be a computer or a mobile terminal. The test instructions issued by the host computer can be test instructions entered on-site by the tester, or can be test instructions triggered when executing a pre-written test program. The host computer and the headphone test box can communicate directly through the serial port.
[0065] In this embodiment, the serial port may be a UART (Universal Asynchronous Receiver-Transmitter) interface.
[0066] Step S202: converting the test instruction into a target test instruction based on the serial port communication protocol of the headset to be tested.
[0067] In this embodiment, the headphone test box and the headphone to be tested support the serial port communication protocol (Serial Port Profile, SPP). The serial port communication protocol is a protocol for creating a serial port between the headphone test box and the headphone for data transmission. It defines the basic requirements and specifications of serial port communication, so that the headphone test box and the headphone can exchange data like a serial port, thereby realizing data transmission and control.
[0068] During the headphone testing process, you may receive test instructions transmitted by multiple test stations. Each test station uses a different communication protocol, so protocol conversion is required to convert the received test commands into a form that the headphones can receive.
[0069] Specifically, the test instruction is parsed according to the protocol parsing package to obtain the instruction content; based on the serial port communication protocol for communicating with the headset to be tested, the instruction content is converted into data to obtain the target test instruction that can be received by the headset to be tested.
[0070] The headset test box is provided with protocol parsing packages of various protocols to parse the received test instructions. After parsing, the parsed instruction content is encrypted according to the serial communication protocol to generate the target test instruction.
[0071] It should be noted that the premise of converting the test command is that the communication protocol of the test command is different from the serial port communication protocol. When the communication protocol of the test command is the same as the serial port communication protocol, the test command is directly sent to the headset to be tested.
[0072] The present application converts test instructions according to a serial communication protocol through an earphone test box, thereby improving the compatibility of the earphone test box, simplifying production line testing, and reducing testing costs.
[0073] Step S203: Send the target test instruction to the headset to be tested.
[0074] In this embodiment, the headphone test box and the headphone to be tested perform data transmission via the SPP protocol, that is, the target test instruction is sent to the headphone to be tested based on the SPP protocol.
[0075] The use of the SPP protocol can achieve data transmission and control without the need for a physical serial port line, making it more convenient and flexible.
[0076] Step S204, receiving test data fed back by the headset to be tested based on the target test instruction.
[0077] The headset to be tested receives the target test instruction sent by the headset test box, performs corresponding test operations according to the target test instruction, generates test data, and sends the test data to the headset test box to complete the test interaction.
[0078] In some embodiments, the earphone test box and the earphone to be tested are connected via a connector, wherein the connector uses a pogpin single-line serial port.
[0079] Step S205, sending the test data to the host computer.
[0080] In this embodiment, the test data is transmitted back to the host computer through the serial port, and the host computer analyzes the test data to obtain the test results.
[0081] Specifically, the test data is compared with a preset threshold. When the test data is within the preset threshold, it means that the test has passed and the headset meets the factory conditions; when the test data is within the preset threshold, it means that the test has failed and the headset does not meet the factory conditions.
[0082] In some embodiments, after the headset to be tested passes the test, the test data of the headset is uploaded to the background test database to facilitate subsequent product after-sales tracking.
[0083] The present application can receive test instructions from multiple workstations through one earphone test box, thereby simplifying the debugging operation of the earphone production line and reducing testing costs. The earphone test box can realize testing scenarios of workstations with different application communication protocols, improve the compatibility of the earphone test box, standardize production line testing, shorten the debugging cycle of the production line, and ensure the product's online time.
[0084] In some optional implementations, see Figure 3 As shown, before the step of receiving the test instruction sent by the host computer through the serial port, the following steps are also included:
[0085] Receive the connection command sent by the host computer;
[0086] Establish a connection with the headset to be tested according to the connection instruction.
[0087] Before testing the earphone to be tested, it is necessary to establish a connection between the earphone to be tested and the earphone test box. The host computer sends an SPP connection command to the earphone test box through the UART interface, so that the earphone test box establishes an SPP connection with the earphone to be tested.
[0088] In some optional implementations, see Figure 3 As shown, before the step of receiving the connection instruction sent by the host computer, the step also includes:
[0089] Receive initialization instructions from the host computer or AD buttons;
[0090] Control the headset to be tested to start up based on the initialization command.
[0091] Among them, the initialization instruction is a RESET instruction. The host computer sends the RESET instruction to the headphone test box through the UART interface, or the AD button directly sends the RESET instruction to the headphone test box. The headphone test box receives the RESET instruction and controls the headphone to be tested to start up according to the RESET instruction, so that the headphone to be tested enters a state ready for testing.
[0092] 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).
[0093] 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.
[0094] Further references Figure 4 , as a response to the above Figure 2 In order to realize the method shown in the figure, the present application provides an embodiment of a headphone testing device. Figure 2Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0095] like Figure 4 As shown, the earphone testing device 400 described in this embodiment includes: an instruction receiving module 401 , a conversion module 402 , a first instruction sending module 403 , a feedback module 404 and a data sending module 405 .
[0096] in:
[0097] The instruction receiving module 401 is used to receive the test instruction sent by the host computer through the serial port;
[0098] The conversion module 402 is used to convert the test instruction into a target test instruction based on the serial communication protocol of the headset to be tested;
[0099] The first instruction sending module 403 is used to send the target test instruction to the headset to be tested;
[0100] The feedback module 404 is used to receive the test data fed back by the headset under test based on the target test instruction;
[0101] The data sending module 405 is used to send the test data to the host computer.
[0102] Based on the above-mentioned earphone testing device, one earphone testing box can receive test instructions from multiple workstations, which can simplify the debugging operation of the earphone production line and reduce the testing cost. The earphone testing box can be used to implement testing scenarios of workstations with multiple applications and different communication protocols, improve the compatibility of the earphone testing box, standardize production line testing, shorten the debugging cycle of the production line, and ensure the product's online time.
[0103] In some embodiments, the earphone testing device 400 further includes a connection module, which is used to: receive a connection instruction sent by a host computer; and connect to the earphone to be tested according to the connection instruction.
[0104] In some embodiments, the headset testing device 400 further includes an initialization module, which is used to: receive an initialization instruction from a host computer or an AD button; and control the headset to be tested to power on based on the initialization instruction.
[0105] In some optional implementations of this embodiment, the conversion module 402 is further used to: parse the test instruction according to the protocol parsing package to obtain the instruction content; based on the serial port communication protocol for communicating with the headset under test, perform data conversion on the instruction content to obtain the target test instruction that can be received by the headset under test.
[0106] refer to Figure 5The present application also provides another headphone testing device 500, which is arranged in a host computer, a second instruction sending module 501, a data receiving module 502 and a result analysis module 503. Among them:
[0107] The second instruction sending module 501 is used to send the test instruction to the earphone test box through the serial port;
[0108] The data receiving module 502 is used to receive the test data fed back by the earphone test box based on the test instruction;
[0109] The result analysis module 503 is used to analyze the test data to obtain the test results.
[0110] This application also provides a headphone testing system, see Figure 6 As shown, the system includes an earphone test box 10, a host computer 20 and an earphone to be tested 30. The earphone test box 10 includes the earphone test device 400 as described above, and the host computer includes the earphone test device 500 as described above; the host computer is connected to the earphone test box through a serial port; and the earphone test box is signal-connected to the earphone to be tested.
[0111] Among them, the serial port can use the UART interface for communication connection and data transmission between the host computer and the headphone test box. The headphone to be tested is connected to the headphone test box through the pogpin single-line communication method. The host computer sends a test instruction through the UART interface, and the headphone test box responds to the test instruction of the host computer and converts the test instruction and sends it to the headphone to be tested. The headphone to be tested performs the corresponding test operation according to the test instruction, generates test data and feeds it back to the headphone test box, and the headphone test box sends the test data to the host computer for analysis.
[0112] The earphone testing system of the present application can meet the standardized testing requirements of the testing station for TWS earphone-type smart wearable products, simplify the engineering debugging process of the production line, and provide guarantees for shortening the mass production cycle of the product.
[0113] To solve the above technical problems, the present application also provides a computer device. Figure 7 , Figure 7 This is a basic structural block diagram of the computer device in this embodiment.
[0114] The computer device 7 includes a memory 71, a processor 72, and a network interface 73 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 7 with components 71-73, 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 (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.
[0115] 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.
[0116] The memory 71 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, magnetic disk, optical disk, etc. In some embodiments, the memory 71 can be an internal storage unit of the computer device 7, such as a hard disk or memory of the computer device 7. In other embodiments, the memory 71 can also be an external storage device of the computer device 7, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. equipped on the computer device 7. Of course, the memory 71 can also include both the internal storage unit of the computer device 7 and its external storage device. In this embodiment, the memory 71 is generally used to store the operating system and various application software installed on the computer device 7, such as computer-readable instructions of the headphone testing method, etc. In addition, the memory 71 can also be used to temporarily store various types of data that have been output or are to be output.
[0117] The processor 72 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 72 is generally used to control the overall operation of the computer device 7. In this embodiment, the processor 72 is used to run computer-readable instructions stored in the memory 71 or process data, such as computer-readable instructions for running the headphone testing method.
[0118] The network interface 73 may include a wireless network interface or a wired network interface. The network interface 73 is generally used to establish a communication connection between the computer device 7 and other electronic devices.
[0119] In this embodiment, the steps of the headphone testing method in the above embodiment are implemented when the processor executes the computer-readable instructions stored in the memory.
[0120] The present application also provides another embodiment, that is, 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 headphone testing method as described above.
[0121] 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.
[0122] 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 headphone testing method, applied to a headphone testing box, characterized in that: The steps include: Receive test instructions sent by the host computer through the serial port; Based on the serial communication protocol of the headset to be tested, converting the test instruction into a target test instruction; Sending the target test instruction to the headset to be tested; Receiving test data fed back by the headset to be tested based on the target test instruction; The test data is sent to the host computer.
2. The headphone testing method according to claim 1, characterized in that: The step of converting the test instruction into a target test instruction based on the serial communication protocol of the headset to be tested comprises: Parse the test instruction according to the protocol parsing package to obtain instruction content; Based on the serial communication protocol for communicating with the headset to be tested, data conversion is performed on the instruction content to obtain a target test instruction that can be received by the headset to be tested.
3. The headphone testing method according to claim 1, characterized in that: Before the step of receiving the test instruction sent by the host computer through the serial port, the method further includes: Receiving a connection instruction sent by the host computer; Connecting to the headset to be tested is performed according to the connection instruction.
4. The headphone testing method according to claim 3, characterized in that: Before the step of receiving the connection instruction sent by the host computer, the method further includes: Receiving the initialization instruction from the host computer or AD button; The headset to be tested is controlled to start up based on the initialization instruction.
5. A headphone testing method, applied to a host computer, characterized in that: The following steps are involved: Send the test command to the headphone test box through the serial port; Receiving test data fed back by the headphone test box based on the test instruction; The test data is analyzed to obtain test results.
6. A headphone testing device, characterized in that: include: The command receiving module is used to receive the test command sent by the host computer through the serial port; A conversion module, used for converting the test instruction into a target test instruction based on the serial communication protocol of the headset to be tested; A first instruction sending module, used for sending the target test instruction to the headset to be tested; A feedback module, used for receiving test data fed back by the headset to be tested based on the target test instruction; The data sending module is used to send the test data to the host computer.
7. An earphone testing device, characterized in that: include: A second instruction sending module, used for sending the test instruction to the earphone test box through the serial port; A data receiving module, used for receiving the test data fed back by the earphone test box based on the test instruction; The result analysis module is used to analyze the test data to obtain the test results.
8. A headphone testing system, characterized in that: It comprises an earphone test box, a host computer and an earphone to be tested, wherein the earphone test box comprises the earphone test device according to claim 6, and the host computer comprises the earphone test device according to claim 7; The host computer is connected to the earphone test box via a serial port; the earphone test box is connected to the earphone signal to be tested.
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 headphone testing method according to any one of claims 1 to 5 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 headphone testing method according to any one of claims 1 to 5 are implemented.
Citation Information
Cited By
Test method and system
CN120342510A
