Earphone testing method, earphone charging box testing method, testing device and medium
Through the automated control of relay modules and detection modules, the existing headphone testing methods are solved, and efficient automated testing of headphones and charging boxes is realized, suitable for long-term and high-frequency scenarios.
Patent Information
- Application Number
- CN202411232349.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-04
- Publication Date
- 2025-01-10
AI Technical Summary
Existing headphone testing methods rely on manual operations, resulting in high testing costs and low efficiency, making it difficult to achieve long-term or high-frequency automated testing.
The automatic control of the relay module and the detection module is adopted, and the switching status of the relay module is switched through the test command, test information is generated and compared with preset standards, and automated testing of the headphones and charging boxes is realized.
It improves the efficiency of headphones and charging box testing, reduces the testing cost, is suitable for long-term and high-frequency testing scenarios, and reduces the dependence on manual operations.
Smart Images

Figure CN119299941A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of earphone testing technology, and in particular to an earphone testing method, an earphone charging box testing method, a testing device and a medium. Background Art
[0002] During the development and production of headphones, it is often necessary to test the performance of the headphones and charging boxes. Current headphone testing usually uses manual testing, which is costly and inefficient. For example, it is difficult to perform long-term or high-frequency headphone function testing.
[0003] Therefore, how to improve the testing efficiency of earphones and charging boxes and reduce the testing cost has become a technical problem that needs to be solved urgently. Summary of the invention
[0004] The main purpose of the embodiments of the present application is to propose an earphone testing method, an earphone charging box testing method, a testing device and a medium, aiming to improve the testing efficiency of earphones and charging boxes, reduce testing costs, and realize automated testing.
[0005] To achieve the above object, a first aspect of an embodiment of the present application provides an earphone testing method, which is applied to a testing device, wherein the testing device includes a relay module, and the relay module is used to connect to a first detection module of a target earphone to be tested. The method includes:
[0006] Get the headphone test instruction;
[0007] Switching the first switch state of the relay module through the headset test instruction to control the first detection module so that the target headset generates first test information; wherein the first switch state is used to represent the connection state between the relay module and the first detection module;
[0008] The first test information is compared with preset first standard information to determine a first test state; wherein the first test state is used to characterize the test state of the target headset.
[0009] In some embodiments, the earphone test instruction includes an earphone touch test instruction, the first detection module includes an earphone touch detection module, the relay module includes a touch switch submodule, and the touch switch submodule is used to connect the earphone touch detection module;
[0010] The step of switching the first switch state of the relay module by the headset test instruction to control the first detection module so that the target headset generates first test information includes:
[0011] The touch switch state of the touch switch submodule is switched by the earphone touch test instruction to control the earphone touch detection module so that the target earphone generates touch test information; wherein the touch test information is used to characterize whether the touch state of the target earphone is a contact state or a non-contact state.
[0012] In some embodiments, the headphone test instruction further includes a headphone entry and exit box test instruction, the first detection module further includes a headphone entry and exit box detection module, the relay module further includes an entry and exit box switch submodule, and the entry and exit box switch submodule is used to connect the headphone entry and exit box detection module;
[0013] The step of switching the first switch state of the relay module by the headset test instruction to control the first detection module so that the target headset generates first test information further includes:
[0014] The in-and-out box switch state of the in-and-out box switch submodule is switched through the earphone in-and-out box test instruction to control the earphone in-and-out box detection module, so that the target earphone generates in-and-out box test information; wherein the in-and-out box test information is used to characterize whether the in-and-out box state of the target earphone is an out-of-box state or an in-box state.
[0015] In some embodiments, obtaining the headset test instruction includes:
[0016] Obtaining the earphone test instruction at every preset test cycle;
[0017] After causing the target headset to generate first test information, the method further includes:
[0018] If the number of the first test information is equal to the predetermined number of tests, comparing each of the first test information with the preset first standard information to determine the subtest status;
[0019] The states of the plurality of sub-test states are integrated to determine the stress test state.
[0020] To achieve the above object, a first aspect of an embodiment of the present application proposes a headphone charging box testing method, which is applied to a testing device, wherein the testing device includes a relay module, and the relay module is used to connect to a second detection module of a target charging box to be tested, and the target charging box is adapted to the target headphone described in the first aspect above, and the method includes:
[0021] Get the charging box test instruction;
[0022] Switching the second switch state of the relay module through the charging box test instruction to control the second detection module so that the target charging box generates second test information; wherein the second switch state is used to characterize the connection state between the relay module and the second detection module;
[0023] The second test information is compared with the preset second standard information to determine a second test state; wherein the second test state is used to characterize the test state of the target charging box.
[0024] In some embodiments, the charging box test instruction includes an opening and closing cover test instruction, the second detection module includes an opening and closing cover detection module, and the relay module further includes an opening and closing cover switch submodule, and the opening and closing cover switch submodule is used to connect the opening and closing cover detection module;
[0025] The step of switching the second switch state of the relay module by the charging box test instruction to control the second detection module so that the target charging box generates second test information includes:
[0026] The opening and closing cover switch state of the opening and closing cover switch submodule is switched through the opening and closing cover test instruction to control the opening and closing cover detection module, so that the target charging box generates opening and closing cover test information; wherein, the opening and closing cover test information is used to characterize the box cover state of the target charging box as an open cover state or a closed cover state.
[0027] In some embodiments, the cover opening and closing detection module is a Hall sensor;
[0028] The step of switching the cover opening and closing switch state of the cover opening and closing switch submodule by the cover opening and closing test instruction to control the cover opening and closing detection module so that the target charging box generates cover opening and closing test information includes:
[0029] The open and close cover switch state of the open and close cover switch submodule is switched by the open and close cover test instruction to control the Hall sensor so that the Hall sensor generates an open and close cover test level; wherein, if the open and close cover test level is greater than or equal to a preset level threshold, then the open and close cover test level is used to characterize that the cover state of the target charging box is an open cover state.
[0030] In some embodiments, the charging box test instruction further includes a key test instruction, the second detection module further includes a key detection module, the relay module further includes a key switch submodule, and the key switch submodule is used to connect the key detection module;
[0031] The method of switching the second switch state of the relay module by the charging box test instruction to control the second detection module so that the target charging box generates second test information further includes:
[0032] The button switch state of the button switch submodule is switched through the button test instruction to control the button detection module so that the target charging box generates button test information; wherein, the button test information is used to characterize whether the button state of the target charging box is pressed or released.
[0033] To achieve the above-mentioned purpose, the third aspect of an embodiment of the present application proposes a testing device, which includes a relay module, a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, it implements the earphone testing method described in the first aspect, or the earphone charging box testing method described in the second aspect.
[0034] To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present application proposes a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the earphone testing method described in the first aspect above, or the earphone charging box testing method described in the second aspect above.
[0035] The earphone test method, earphone charging box test method, test device and medium proposed in the present application, after obtaining the earphone test instruction, switch the first switch state of the relay module through the earphone test instruction to control the first detection module, so that the target earphone generates the first test information; and compare the first test information with the preset first standard information to determine the first test state. This method does not require manual switching of switches or manual sending of instructions, and can automatically test the target earphone and / or target charging box, thereby improving the test efficiency of the earphone and charging box, reducing the test cost, and is suitable for long-term and high-frequency test scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 is a flow chart of a headphone testing method provided in an embodiment of the present application;
[0037] Figure 2 This is provided by an embodiment of the present application Figure 1 Flowchart of step 102 in FIG.
[0038] Figure 3 Another embodiment of the present application provides Figure 1 Flowchart of step 102 in FIG.
[0039] Figure 4 is a flow chart of the headphone charging box testing method provided in an embodiment of the present application;
[0040] Figure 5 This is provided by an embodiment of the present application Figure 4 Flowchart of step 420 in;
[0041] Figure 6 Another embodiment of the present application provides Figure 4 Flowchart of step 420 in;
[0042] Figure 7 is a schematic diagram of the connection relationship between the test device and the target headset provided in an application example of the present application;
[0043] Figure 8 This is a schematic diagram of the connection relationship between the test device and the target charging box provided in an application example of the present application;
[0044] Fig. 9 This is a schematic diagram of the connection relationship between the test device, the target headset, and the target charging box provided in an application example of the present application;
[0045] Fig.10 Schematic diagram of the hardware structure of the test device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0047] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0048] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0049] The earphone testing method, earphone charging box testing method, testing device and medium provided in the embodiments of the present application are specifically illustrated through the following embodiments. First, the earphone testing method in the embodiments of the present application is described.
[0050] Figure 1This is an optional flow chart of the earphone testing method provided by the embodiment of the present application. The method is applied to a testing device, the testing device includes a relay module, and the relay module is used to connect to a first detection module of a target earphone to be tested. Figure 1 The method may include but is not limited to steps 101 to 103.
[0051] Step 101, obtaining a headset test instruction;
[0052] Step 102, switching a first switch state of the relay module through an earphone test instruction to control the first detection module so that the target earphone generates first test information; wherein the first switch state is used to represent a connection state between the relay module and the first detection module;
[0053] Step 103, comparing the first test information with preset first standard information to determine a first test state; wherein the first test state is used to characterize the test state of the target headset.
[0054] The beneficial effects of the embodiments of the present application include but are not limited to: after obtaining the headphone test instruction, the first switch state of the relay module is switched by the headphone test instruction to control the first detection module so that the target headphone generates the first test information; and the first test information is compared with the preset first standard information to determine the first test state. This method does not require manual switching of switches or manual sending of instructions, and can automatically test the target headphone, reducing the reliance on manual operations, thereby reducing the test cost, and improving the efficiency and accuracy of the headphone test method, which is suitable for long-term and high-frequency test scenarios.
[0055] In step 101 of some embodiments, the headphone test instruction may be obtained from the control module. The headphone test instruction may also be obtained in other ways, not limited thereto. Specifically, the control module may be a host computer, a PC (Personal Computer), a PLC (Programmable Logic Controller), or a controller.
[0056] In step 102 of some embodiments, the first switch state is an open state or an on state. It should be noted that the relay module has multiple ports, each port corresponds to a switch. Each port can be used to connect to the first detection module of the target headset. Each switch of the relay module can be controlled independently.
[0057] It should be noted that any one of the multiple ports of the relay module can be connected to the first detection module of the target earphone, thereby forming a complete current loop.
[0058] In some embodiments, it should be noted that by controlling the first switch state of the relay module, the disconnection state or the conduction state between the relay module and the first detection module can be switched, so that the first detection module detects different electrical signals, and the target headset generates the first test information. For example, the first switch state of the relay module can be controlled by the host computer; if the first switch state of the relay module is the conduction state, the first detection module of the target headset can detect a low-level signal, and the first detection module generates the first test information (such as an electrical signal); the host computer compares the first test information with the preset first standard information to determine whether the first test state is a normal state or an abnormal state.
[0059] It should be noted that the first test information may also be generated by other modules of the target headset. Specifically, the target headset may also include an information indication module, such as a headset indicator light; the first test information may also refer to the state of the headset indicator light, such as whether the light is on, off, or the color of the light, etc.
[0060] In step 103 of some embodiments, the first test state may be a normal state or an abnormal state, and the first test state reflects whether the function of the first detection module of the target headset is normal. It should be noted that if the first test information is the same as the first standard information, the first test state is a normal state. If the first test information is different from the first standard information, the first test state is an abnormal state. For example, the preset first standard information refers to the indicator light of the target headset emitting green light. If the first test information is used to characterize that the indicator light of the target headset emits green light, then the first test information is the same as the first standard information, and it can be determined that the first test state of the target headset is a normal state. If the first test information is used to characterize that the indicator light of the target headset emits red light or no light, then the first test information is different from the first standard information, and it can be determined that the first test state of the target headset is an abnormal state.
[0061] Specifically, the target headset can be a wireless Bluetooth headset, a bone conduction wireless headset, a noise reduction wireless headset, an AI (artificial intelligence) headset, a Dolby Bluetooth headset, etc., which is not limited in the embodiments of the present application.
[0062] See also Figure 2 In some embodiments, the headset test instruction includes a headset touch test instruction, the first detection module includes a headset touch detection module, the relay module includes a touch switch submodule, and the touch switch submodule is used to connect the headset touch detection module. Step 102 may include but is not limited to step 201:
[0063] Step 201, switching the touch switch state of the touch switch submodule through the earphone touch test instruction to control the earphone touch detection module so that the target earphone generates touch test information; wherein the touch test information is used to characterize whether the touch state of the target earphone is a contact state or a non-contact state.
[0064] The advantage of this embodiment is that the target headset can be controlled to generate touch test information through the headset touch test instruction, thereby testing whether the headset touch detection function of the target headset is normal. This method does not require manual switching of switches or manual sending of instructions, and can automatically test the target headset, thereby improving the efficiency of the headset test method and reducing the test cost.
[0065] In step 201 of some embodiments, the touch switch state indicates the switch state of the touch switch submodule, and the touch switch state is an off state or an on state. If the touch switch submodule is in an off state, the headset touch detection module detects a high level, thereby determining that the touch state of the target headset is a non-contact state, thereby generating corresponding touch test information. If the touch switch submodule is in an on state, the headset touch detection module detects a low level, thereby determining that the touch state of the target headset is a contact state.
[0066] Specifically, the earphone touch detection module may be a touch sensor, such as an infrared sensor, a capacitive touch sensor, and the like.
[0067] It should be noted that the touch state of the target earphone may refer to whether the target earphone is in contact with the user. For example, the user's finger touches the touch detection range of the target earphone, or the user wears the target earphone. In these cases, the touch state of the target earphone is in contact; when the user takes off the target earphone, the touch state of the target earphone is in non-contact. In addition, the touch state of the target earphone may also include any one of a single click, a double click, a triple click, and a long press. For example, the earphone touch test instruction represents a double click, and the touch switch state of the touch switch submodule may be switched through the earphone touch test instruction, so that the earphone touch detection module detects two low levels within a preset first time length, so that the earphone touch detection module generates touch test information, wherein the touch test information represents that the touch state of the target earphone is a double click.
[0068] In some embodiments, the first test information includes touch test information; the first standard information includes touch test standard information; the first test state includes the touch test state of the headset touch detection module; step 103 may include: comparing the touch test information with the touch test standard information to determine the touch test state of the headset touch detection module; wherein the touch test state is a normal state or an abnormal state. If the touch test information is the same as the touch test standard information, the touch test state is a normal state.
[0069] See also Figure 3 In some embodiments, the earphone test instruction further includes an earphone entry and exit box test instruction, the first detection module further includes an earphone entry and exit box detection module, the relay module further includes an entry and exit box switch submodule, and the entry and exit box switch submodule is used to connect to the earphone entry and exit box detection module;
[0070] Step 102 may also include but is not limited to step 301:
[0071] Step 301, switching the in-and-out box switch state of the in-and-out box switch submodule through the earphone in-and-out box test instruction to control the earphone in-and-out box detection module, so that the target earphone generates in-and-out box test information; wherein the in-and-out box test information is used to characterize the in-and-out box state of the target earphone as the out-of-box state or the in-box state.
[0072] The advantage of this embodiment is that, through the earphone in and out box test instruction, the target earphone can be controlled to generate in and out box test information, thereby testing whether the earphone in and out box detection function of the target earphone is normal. This method does not require manual switching of switches or manual sending of instructions, and can automatically test the target earphone, thereby improving the efficiency of the earphone test method and reducing the test cost.
[0073] In step 301 of some embodiments, the access box switch state indicates the switch state of the access box switch submodule, and the access box switch state is an off state or an on state. If the access box switch state is an off state, the headphone access box detection module detects a high level, thereby determining that the access box state of the target headphone is an out-of-box state, thereby generating corresponding access box test information.
[0074] Specifically, the earphone in and out box detection module may be a Hall element inside the target earphone, which is used to detect the magnetic connector in the target charging box, thereby detecting whether the target earphone is in the box. It should be noted that the target earphone is in the box state, which may refer to the Hall element of the target earphone being in contact with the magnetic connector of the target charging box. In another embodiment, the earphone in and out box detection module may also be connected to the magnetic connector of the target charging box through the charging contacts to perform the earphone charging operation. For example, when the target earphone is placed in the target charging box, the charging contacts on the target earphone are connected to the metal pins of the target charging box and charged.
[0075] In some embodiments, the first test information further includes in-and-out box test information; the first standard information further includes in-and-out box test standard information; the first test status further includes in-and-out box test status of the headphone in-and-out box detection module; step 103 may further include: comparing the in-and-out box test information with the in-and-out box test standard information to determine the in-and-out box test status of the headphone in-and-out box detection module; wherein the in-and-out box test status is a normal status or an abnormal status. If the in-and-out box test information is the same as the in-and-out box test standard information, the in-and-out box test status is a normal status.
[0076] In some embodiments, step 101 includes:
[0077] Obtaining headphone test instructions at every preset test cycle;
[0078] After step 102, the method further includes:
[0079] If the number of first test information is equal to the predetermined number of tests, comparing each first test information with the preset first standard information to determine the first sub-test state;
[0080] The states of the plurality of first sub-test states are integrated to determine a first stress test state.
[0081] The advantage of this embodiment is that, at every preset test cycle, the earphone test instruction is obtained, so that the first switch state of the relay module is switched by the earphone test instruction to control the first detection module, so that the target earphone generates multiple first test information; if the number of first test information is equal to the predetermined number of tests, each first test information is compared with the preset first standard information to determine the first sub-test state, so that the state of multiple first sub-test states is integrated to determine the first pressure test state, thereby realizing the pressure test of the target earphone. This method does not require manual switching of switches or manual sending of instructions, and can perform automated testing on the target earphone, thereby improving the efficiency of the earphone testing method, reducing the testing cost, and is suitable for long-term and high-frequency testing scenarios.
[0082] Specifically, the test period can be a pre-set time or a time specified by the tester, such as 30 seconds, 1 minute, 10 minutes, etc.
[0083] It should be noted that the first pressure test state is the pressure test state of the target headset, which may be a normal state or an abnormal state.
[0084] It should be noted that stress testing refers to frequent testing of the test object (such as the target earphone and the target charging box) within a certain period of time, so as to test the stability of the test object. In addition, the above-mentioned stress test method is also applicable to the target charging box, which will not be repeated here. Specifically, the switch state of the relay module can be controlled to switch frequently between closed or open, so as to test the various functions of the target earphone and / or the target charging box, for example, the earphone entry and exit box detection module of the target earphone is tested 10 times per minute, or the button detection module of the target charging box is tested 100 times per minute.
[0085] It should be noted that the state integration of multiple sub-test states to determine the stress test state can be specifically: if each of the multiple sub-test states represents a normal state, the stress test state is determined to be a normal stress test. If any sub-test state represents an abnormal state, the stress test state is determined to be an abnormal stress test; and the number of sub-test states representing abnormal states can be divided by the predetermined number of tests to calculate the abnormal test ratio.
[0086] Figure 4 It is an optional flow chart of the headphone charging box testing method provided in an embodiment of the present application. The method is applied to a testing device, the testing device includes a relay module, the relay module is used to connect to the second detection module of the target charging box to be tested, and the target charging box is adapted to the above-mentioned target headphone. Figure 4 The method may include but is not limited to steps 401 to 403.
[0087] Step 401, obtaining a charging box test instruction;
[0088] Step 402, switching the second switch state of the relay module through the charging box test instruction to control the second detection module so that the target charging box generates second test information; wherein the second switch state is used to characterize the connection state between the relay module and the second detection module;
[0089] Step 403, compare the second test information with the preset second standard information to determine the second test state; wherein the second test state is used to characterize the test state of the target charging box.
[0090] The beneficial effects of the embodiments of the present application include but are not limited to: after obtaining the charging box test instruction, the second switch state of the relay module is switched by the charging box test instruction to control the second detection module so that the target charging box generates second test information; and the second test information is compared with the preset second standard information to determine the second test state. This method does not require manual switching of switches or manual sending of instructions, and can perform automated testing on the target charging box, thereby improving the efficiency of the charging box test method, reducing the test cost, and is suitable for long-term and high-frequency test scenarios.
[0091] It should be noted that the target earphone and the target charging box can be tested independently by the same test device. Specifically, the relay module in the test device can be connected to the target earphone and the target charging box at the same time. The relay module has multiple switches, such as a first switch and a second switch, and each switch can be controlled independently. For example, the first switch is connected to the first detection module of the target earphone, and the second switch is connected to the second detection module of the target charging box; by controlling the disconnection or conduction of the first switch, the first switch state of the relay module can be switched, so that the first detection module in the target earphone is tested; by controlling the disconnection or conduction of the second switch, the second switch state of the relay module can be switched, so that the second detection module in the target charging box is tested. In another embodiment, the test device can also be connected only to the target earphone, so that the target earphone is tested by the test device; or, the test device can also be connected only to the target charging box, so that the target charging box is tested by the test device.
[0092] In step 401 of some embodiments, the charging box test instruction may be obtained from the control module. The charging box test instruction may also be obtained in other ways, not limited thereto.
[0093] In step 402 of some embodiments, the second switch state is an open state or an on state. It should be noted that the relay module has multiple ports, each port corresponds to a switch, and each port can be used to connect to the first detection module of the target headset, and can also be used to connect to the second detection module of the target charging box.
[0094] In step 403 of some embodiments, the second test state can be a normal state or an abnormal state, and the second test state reflects whether the function of the second detection module of the target charging box is normal. If the second test information is the same as the second standard information, the second test state is a normal state.
[0095] In some embodiments, step 401 includes:
[0096] At each preset test cycle, obtain the charging box test instruction;
[0097] After step 402, the method further includes:
[0098] If the number of second test information is equal to the predetermined number of tests, comparing each second test information with the preset second standard information to determine the second sub-test state;
[0099] The states of the plurality of second sub-test states are integrated to determine a second stress test state.
[0100] The advantage of this embodiment is that the charging box test instruction is obtained at each preset test cycle, so that the second switch state of the relay module is switched by the charging box test instruction to control the second detection module, so that the target charging box generates multiple second test information; if the number of second test information is equal to the predetermined number of tests, each second test information is compared with the preset second standard information to determine the second sub-test state, so as to integrate the multiple second sub-test states and determine the second pressure test state, thereby realizing the pressure test of the target charging box. This method does not require manual switching of switches or manual sending of instructions, and can perform automated testing on the target charging box, thereby improving the efficiency of the headphone charging box testing method, reducing the testing cost, and is suitable for long-term and high-frequency testing scenarios.
[0101] It should be noted that the second pressure test state refers to the pressure test state of the target charging box, specifically a normal state or an abnormal state.
[0102] See also Figure 5 In some embodiments, the charging box test instruction includes an opening and closing cover test instruction, the second detection module includes an opening and closing cover detection module, and the relay module further includes an opening and closing cover switch submodule, and the opening and closing cover switch submodule is used to connect to the opening and closing cover detection module;
[0103] Step 402 includes:
[0104] Step 501, switching the open and close cover switch state of the open and close cover switch submodule through the open and close cover test instruction to control the open and close cover detection module, so that the target charging box generates open and close cover test information; wherein, the open and close cover test information is used to characterize the box cover state of the target charging box as an open cover state or a closed cover state.
[0105] The advantage of this embodiment is that, through the cover opening and closing test instruction, the target charging box can be controlled to generate cover opening and closing test information, thereby testing whether the cover opening and closing function of the target charging box is normal. This method does not require manual switching of switches or manual sending of instructions, and can automatically test the target charging box, thereby improving the efficiency of the headphone charging box test method and reducing the test cost.
[0106] In some embodiments, the second test information includes cover opening and closing test information; the second standard information includes cover opening and closing test standard information; the second test status includes cover opening and closing test status of the cover opening and closing detection module; step 403 may include: comparing the cover opening and closing test information with the cover opening and closing test standard information to determine the cover opening and closing test status of the cover opening and closing detection module; wherein the cover opening and closing test status is a normal state or an abnormal state. If the cover opening and closing test information is the same as the cover opening and closing test standard information, the cover opening and closing test status is a normal state.
[0107] In some embodiments, the cover opening and closing detection module is a Hall sensor; step 501 includes:
[0108] The open and close cover switch state of the open and close cover switch submodule is switched through the open and close cover test instruction to control the Hall sensor so that the Hall sensor generates an open and close cover test level; wherein, if the open and close cover test level is greater than or equal to the preset level threshold, the open and close cover test level is used to characterize that the cover state of the target charging box is an open cover state.
[0109] The advantage of this embodiment is that the opening and closing cover test level is generated by the Hall sensor, so that it is possible to test whether the opening and closing cover function of the target charging box is normal, and the target charging box is automatically tested, which improves the efficiency of the headphone charging box testing method and reduces the testing cost.
[0110] See also Figure 6 In some embodiments, the charging box test instruction further includes a key test instruction, the second detection module further includes a key detection module, the relay module further includes a key switch submodule, and the key switch submodule is used to connect to the key detection module;
[0111] Step 402 also includes:
[0112] Step 601, switching the button switch state of the button switch submodule through the button test instruction to control the button detection module so that the target charging box generates button test information; wherein, the button test information is used to characterize the button state of the target charging box as being in a pressed state or a released state.
[0113] The advantage of this embodiment is that, through the key test instruction, the target charging box can be controlled to generate key test information, thereby testing whether the key of the target charging box is normal. This method does not require manual switching of switches or manual sending of instructions, and can automatically test the target charging box, thereby improving the efficiency of the headphone charging box test method and reducing the test cost.
[0114] In some embodiments, the second test information further includes key test information; the second standard information further includes key test standard information; the second test status further includes the key test status of the key detection module; step 403 may include: comparing the key test information with the key test standard information to determine the key test status of the key detection module; wherein the key test status is a normal state or an abnormal state. If the key test information is the same as the key test standard information, the key test status is a normal state.
[0115] In some embodiments, the charging box test instruction further includes a charging test instruction, the second detection module further includes a charging detection module, and the relay module further includes a charging switch submodule, and the charging switch submodule is used to connect to the charging detection module. Step 402 also includes: controlling the charging switch submodule to be disconnected or turned on through the charging test instruction to control the charging detection module so that the target charging box generates charging test information.
[0116] An embodiment of the present application also provides a testing device, which includes a relay module, a memory and a processor. The memory stores a computer program, and the processor implements the above-mentioned earphone testing method, or the above-mentioned earphone charging box testing method when executing the computer program.
[0117] The specific implementation of the testing device is basically the same as the specific implementation of the above-mentioned earphone testing method or the earphone charging box testing method, and will not be repeated here.
[0118] See also Figure 7 In an application example, the test device is connected to a target headset 40 . The processor 10 is connected to the memory 20 and the relay module 30 , and the relay module 30 is connected to the target headset 40 .
[0119] The relay module includes a touch switch submodule 31 and an access box switch submodule 32; the target headset 40 includes a headset touch detection module 41 and a headset access box detection module 42. The touch switch submodule 31 is connected to the headset touch detection module 41, and the access box switch submodule 32 is connected to the headset access box detection module 42.
[0120] It should be noted that the testing device of this application example is used to test whether the function of the earphone touch detection module 41 of the target earphone 40 is normal, and whether the function of the earphone entry and exit box detection module 42 is normal.
[0121] It should be noted that Figure 7 The touch switch submodule 31 and the headphone touch detection module 41 are connected by two lines, which means that the touch switch submodule 31 and the headphone touch detection module 41 form a complete current loop. Similarly, the access box switch submodule 32 and the headphone access box detection module 42 also form a current loop.
[0122] See also Figure 8 In an application example, the test device is connected to a target charging box 50 . The processor 10 is connected to the memory 20 and the relay module 30 , and the relay module 30 is connected to the target charging box 50 .
[0123] The relay module includes a cover opening and closing switch submodule 33 and a key switch submodule 34; the target charging box 50 includes a cover opening and closing detection module 51 and a key detection module 52. The cover opening and closing switch submodule 33 is connected to the cover opening and closing detection module 51, and the key switch submodule 34 is connected to the key detection module 52.
[0124] It should be noted that the test device of this application example is used to test whether the function of the opening and closing cover detection module 51 of the target charging box 50 is normal, and whether the function of the button detection module 52 is normal.
[0125] It should be noted that Figure 8 The cover switch submodule 33 and the cover detection module 51 are connected by two lines, which means that the cover switch submodule 33 and the cover detection module 51 form a complete current loop. Similarly, the key switch submodule 34 and the key detection module 52 also form a current loop.
[0126] See also Fig. 9 In an application example, the test device is connected to the target earphone 40 and the target charging box 50. The processor 10 is connected to the memory 20 and the relay module 30, and the relay module 30 is connected to the target earphone 40 and the target charging box 50.
[0127] The relay module includes a touch switch submodule 31, an entry and exit box switch submodule 32, an opening and closing cover switch submodule 33 and a button switch submodule 34; the target earphone 40 includes an earphone touch detection module 41 and an earphone entry and exit box detection module 42; the target charging box 50 includes an opening and closing cover detection module 51 and a button detection module 52.
[0128] The touch switch submodule 31 is connected to the headset touch detection module 41 , the access box switch submodule 32 is connected to the headset access box detection module 42 , the cover opening and closing switch submodule 33 is connected to the cover opening and closing detection module 51 , and the key switch submodule 34 is connected to the key detection module 52 .
[0129] It should be noted that the test device of this application example is used to test the target earphone 40 and the target charging box 50.
[0130] In some embodiments, it should be noted that the processor 10 and the memory 20 both belong to a PC (personal computer), and the PC can be connected to the relay module 30 via a USB interface.
[0131] In some embodiments, the relay module 30 also includes a charging switch submodule (not shown in the figure), the target earphone 40 also includes a first charging detection module (not shown in the figure), and the target charging box 50 also includes a second charging detection module (not shown in the figure); the charging switch submodule is used to connect the first charging detection module and the second charging detection module, so as to simultaneously detect the charging functions of the target earphone 40 and the target charging box 50.
[0132] See also Fig.10 , Fig.10 The hardware structure of a test device according to another embodiment is illustrated. The test device comprises: a processor 10 , a memory 20 , a relay module 30 , an input / output interface 60 , a communication interface 70 and a bus 80 .
[0133] The processor 10 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0134] The memory 20 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device or a random access memory (RAM). The memory 20 can store an operating system and other application programs. When the technical solution provided in the embodiments of this specification is implemented by software or firmware, the relevant program code is stored in the memory 20, and the processor 10 calls and executes the earphone test method, the earphone charging box test method and / or the earphone charging box test method of the embodiments of this application;
[0135] The relay module 30 may be a relay, an electronic switch, etc. The relay module may receive instructions (earphone test instructions and charging box test instructions) from the processor 10. These instructions may be electrical signals or digital signals for controlling the switch state of the relay module 30.
[0136] Input / output interface 60, used to implement information input and output;
[0137] Communication interface 70, used to realize communication interaction between the device and other devices, which can be realized by wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.);
[0138] A bus 80 that transmits information between the various components of the device (e.g., the processor 10, the memory 20, the input / output interface 60, and the communication interface 70);
[0139] The processor 10 , the memory 20 , the relay module 30 , the input / output interface 60 and the communication interface 70 are connected to each other in communication within the device via a bus 80 .
[0140] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the above-mentioned earphone testing method, or the above-mentioned earphone charging box testing method.
[0141] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0142] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0143] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0144] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0145] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0146] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0147] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0148] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. The mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0149] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0150] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0151] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0152] The preferred embodiments of the present application are described above with reference to the accompanying drawings, but the scope of the rights of the present application is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present application should be within the scope of the rights of the present application.
Claims
1. A headphone testing method, characterized in that: Applied to a test device, the test device includes a relay module, the relay module is used to connect to a first detection module of a target headset to be tested, the method includes: Get the headphone test instruction; Switching the first switch state of the relay module through the headset test instruction to control the first detection module so that the target headset generates first test information; wherein the first switch state is used to represent the connection state between the relay module and the first detection module; The first test information is compared with preset first standard information to determine a first test state; wherein the first test state is used to characterize the test state of the target headset.
2. The headphone testing method according to claim 1, characterized in that: The earphone test instruction includes an earphone touch test instruction, the first detection module includes an earphone touch detection module, the relay module includes a touch switch submodule, and the touch switch submodule is used to connect the earphone touch detection module; The step of switching the first switch state of the relay module by the headset test instruction to control the first detection module so that the target headset generates first test information includes: The touch switch state of the touch switch submodule is switched by the earphone touch test instruction to control the earphone touch detection module so that the target earphone generates touch test information; wherein the touch test information is used to characterize whether the touch state of the target earphone is a contact state or a non-contact state.
3. The headphone testing method according to claim 1, characterized in that: The earphone test instruction further includes an earphone entry and exit box test instruction, the first detection module further includes an earphone entry and exit box detection module, the relay module further includes an entry and exit box switch submodule, and the entry and exit box switch submodule is used to connect the earphone entry and exit box detection module; The step of switching the first switch state of the relay module by the headset test instruction to control the first detection module so that the target headset generates first test information further includes: The in-and-out box switch state of the in-and-out box switch submodule is switched through the earphone in-and-out box test instruction to control the earphone in-and-out box detection module, so that the target earphone generates in-and-out box test information; wherein the in-and-out box test information is used to characterize whether the in-and-out box state of the target earphone is an out-of-box state or an in-box state.
4. The headphone testing method according to any one of claims 1 to 3, characterized in that: The obtaining of the earphone test instruction comprises: Obtaining the earphone test instruction at every preset test cycle; After causing the target headset to generate first test information, the method further includes: If the number of the first test information is equal to the predetermined number of tests, comparing each of the first test information with the preset first standard information to determine the subtest status; The states of the plurality of sub-test states are integrated to determine the stress test state.
5. A method for testing an earphone charging box, characterized in that: Applied to a test device, the test device comprising a relay module, the relay module being used to connect to a second detection module of a target charging box to be tested, the target charging box being adapted to the target earphone according to any one of claims 1 to 4, the method comprising: Get the charging box test instruction; Switching the second switch state of the relay module through the charging box test instruction to control the second detection module so that the target charging box generates second test information; wherein the second switch state is used to characterize the connection state between the relay module and the second detection module; The second test information is compared with the preset second standard information to determine a second test state; wherein the second test state is used to characterize the test state of the target charging box.
6. The earphone charging box testing method according to claim 5, characterized in that: The charging box test instruction includes an opening and closing cover test instruction, the second detection module includes an opening and closing cover detection module, and the relay module also includes an opening and closing cover switch submodule, and the opening and closing cover switch submodule is used to connect the opening and closing cover detection module; The step of switching the second switch state of the relay module by the charging box test instruction to control the second detection module so that the target charging box generates second test information includes: The opening and closing cover switch state of the opening and closing cover switch submodule is switched through the opening and closing cover test instruction to control the opening and closing cover detection module, so that the target charging box generates opening and closing cover test information; wherein, the opening and closing cover test information is used to characterize the box cover state of the target charging box as an open cover state or a closed cover state.
7. The earphone charging box testing method according to claim 6, characterized in that: The cover opening and closing detection module is a Hall sensor; The step of switching the cover opening and closing switch state of the cover opening and closing switch submodule by the cover opening and closing test instruction to control the cover opening and closing detection module so that the target charging box generates cover opening and closing test information includes: The open and close cover switch state of the open and close cover switch submodule is switched by the open and close cover test instruction to control the Hall sensor so that the Hall sensor generates an open and close cover test level; wherein, if the open and close cover test level is greater than or equal to a preset level threshold, then the open and close cover test level is used to characterize that the cover state of the target charging box is an open cover state.
8. The earphone charging box testing method according to claim 5, characterized in that: The charging box test instruction also includes a button test instruction, the second detection module also includes a button detection module, the relay module also includes a button switch submodule, and the button switch submodule is used to connect the button detection module; The method of switching the second switch state of the relay module by the charging box test instruction to control the second detection module so that the target charging box generates second test information further includes: The button switch state of the button switch submodule is switched through the button test instruction to control the button detection module so that the target charging box generates button test information; wherein, the button test information is used to characterize whether the button state of the target charging box is pressed or released.
9. A testing device, characterized in that: The testing device includes a relay module, a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, it implements the earphone testing method according to any one of claims 1 to 4, or the earphone charging box testing method according to any one of claims 5 to 8.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, it implements the earphone testing method described in any one of claims 1 to 4, or the earphone charging box testing method described in any one of claims 5 to 8.