CN115103290A - Earphone testing method and device, electronic equipment and storage medium - Google Patents

Earphone testing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115103290A
CN115103290A CN202210828738.1A CN202210828738A CN115103290A CN 115103290 A CN115103290 A CN 115103290A CN 202210828738 A CN202210828738 A CN 202210828738A CN 115103290 A CN115103290 A CN 115103290A
Authority
CN
China
Prior art keywords
earphone
test
host
threshold value
computer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210828738.1A
Other languages
Chinese (zh)
Other versions
CN115103290B (en
Inventor
邓立军
程黎辉
关亚东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Longcheer Electronics Huizhou Co Ltd
Original Assignee
Longcheer Electronics Huizhou Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Longcheer Electronics Huizhou Co Ltd filed Critical Longcheer Electronics Huizhou Co Ltd
Priority to CN202210828738.1A priority Critical patent/CN115103290B/en
Publication of CN115103290A publication Critical patent/CN115103290A/en
Application granted granted Critical
Publication of CN115103290B publication Critical patent/CN115103290B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • H04R29/001Monitoring arrangements; Testing arrangements for loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements

Landscapes

  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The application relates to the technical field of earphone testing, in particular to an earphone testing method, an earphone testing device, electronic equipment and a storage medium, application and an upper computer, wherein the method comprises the following steps: after the host and the auxiliary machine in the earphone are successfully paired, sending a test instruction to the test fixture and sending an acquisition instruction to the host; the test instruction is used for instructing the test fixture to execute test operation corresponding to the function to be tested; the acquisition instruction is used for the host to forward to the auxiliary machine so that the host and the auxiliary machine acquire response values aiming at the test operation; receiving response values acquired by the main machine and the auxiliary machine, and judging whether the earphone passes the test or not by comparing the response values with predefined thresholds corresponding to functions; and if the test is passed, generating a threshold value suitable for the earphone according to the received response value and the predefined threshold value, and sending the threshold value to the earphone. Therefore, the host and the auxiliary machine can be simultaneously tested by one upper computer, the operation efficiency is improved, a new threshold value can be generated for the earphone to use, and the accuracy of determining the sensitivity of the earphone is improved.

Description

Earphone testing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of earphone testing technologies, and in particular, to an earphone testing method and apparatus, an electronic device, and a storage medium.
Background
A TWS (True Wireless headset) is a popular consumer electronics product, and when it is about to leave a factory, the TWS headset needs to be tested, and the testing usually needs to use a professional testing device to test the TWS headset to determine that the TWS headset is normal, where the in-ear key function testing of the TWS headset is an important performance testing of the TWS headset before leaving the factory.
In the prior art, the factory end basically determines the sensitivity of the keys of the earphones through earphone data uploaded by a capacitive proximity sensor of a single-ear test earphone, namely 2 stations are used for respectively testing the in-ear key functions of the left ear and the right ear of the earphone.
However, in the above manner, 2 workers are required to operate 2 stations simultaneously to complete the in-ear key function test of a pair of TWS earphones, so that the operation efficiency is low, and the accuracy of determining the sensitivity of the earphones is also low.
Disclosure of Invention
The application provides an earphone testing method, an earphone testing device, electronic equipment and a storage medium, a host and an auxiliary machine can be tested simultaneously only by one upper computer, the working efficiency is improved, the labor cost is saved, and the accuracy of determining the sensitivity of an earphone can be improved.
In a first aspect, the present application provides a method for testing an earphone, where the earphone includes a main unit and an auxiliary unit, and the earphone is placed on a test fixture; the method is applied to an upper computer and comprises the following steps:
after the host and the auxiliary machine are successfully matched, sending a test instruction to the test fixture, and sending an acquisition instruction to the host; the test instruction is used for indicating the test fixture to execute test operation corresponding to the function to be tested; the acquisition instruction is used for the host to forward to the auxiliary machine so that the host and the auxiliary machine acquire a response value aiming at the test operation according to the acquisition instruction;
receiving response values, which are acquired by the main machine and the auxiliary machine and aim at the test operation, and judging whether the earphone passes the test or not by comparing the response values with a predefined threshold corresponding to the function;
if the test is passed, generating a threshold value suitable for the earphone according to the received response value and the predefined threshold value, and sending the threshold value to the earphone; the threshold value is used for being compared with a response value of the earphone for the actual operation of the user, so as to determine whether the earphone executes the corresponding function according to the comparison result.
Optionally, the predefined threshold is a threshold stored in a lookup table in advance, and a threshold suitable for the headset is generated according to the received response value and the predefined threshold, and is sent to the headset, where the method includes:
acquiring a preset proportional coefficient, and calculating the product of the response value and the proportional coefficient to obtain a lower bound of a threshold value suitable for the earphone;
forming a threshold value applicable to the earphone based on the lower bound and the upper bound of the predefined threshold value, and sending the threshold value to the earphone; wherein the proportionality coefficient is a positive number less than 1.
Optionally, the threshold includes a first threshold and a second threshold; generating a threshold value suitable for the earphone and sending the threshold value to the earphone, wherein the threshold value comprises:
generating a first threshold value suitable for the host computer and a second threshold value suitable for the auxiliary computer, and sending the first threshold value and the second threshold value to the host computer;
after the host receives the first threshold and the second threshold, the host stores the first threshold to replace the last stored threshold;
and the host forwards the second threshold to the secondary machine so that the secondary machine stores the second threshold for replacing the last stored threshold.
Optionally, the method further includes:
responding to the operation of a user, and acquiring team formation information of the upper computer and the earphones; the team formation information is used for indicating whether the upper computer is connected with a host computer and an auxiliary computer which are successfully paired;
judging whether the upper computer and the earphones are successfully paired or not based on the team formation information;
and if the result is not successful, acquiring the formation information of the upper computer and the earphone again.
Optionally, the method further includes:
if the testing of the earphone fails, the team formation information of the upper computer and the earphone is obtained again, and testing is carried out again after the host computer and the auxiliary computer are successfully paired according to the team formation information.
Optionally, the method further includes:
when the earphone test fails, displaying prompt information to prompt the user that the response value of the host and/or the auxiliary machine is abnormal;
and if the frequency of the prompt message is larger than the preset threshold value, displaying warning information to remind a user that the main machine and/or the auxiliary machine are in failure.
In a second aspect, the present application provides a method for testing an earphone, where the earphone includes a main unit and an auxiliary unit, and the earphone is placed on a test fixture; the method is applied to a host, and comprises the following steps:
after the auxiliary machine is successfully paired, receiving an acquisition instruction sent by an upper computer, and acquiring a response value aiming at the test operation according to the acquisition instruction; the test operation is that the test fixture executes the operation corresponding to the function to be tested after receiving the test instruction sent by the upper computer;
forwarding the acquisition instruction to the auxiliary machine so that the auxiliary machine acquires a response value aiming at the test operation according to the acquisition instruction;
receiving a response value which is acquired by the auxiliary machine and aims at the test operation, and sending the response value of the auxiliary machine and the response value corresponding to the auxiliary machine to an upper computer so that the upper computer can judge whether the earphone passes the test or not by comparing the response values corresponding to the main machine and the auxiliary machine with a predefined threshold value corresponding to the function; if the test is passed, generating a threshold value suitable for the earphone according to the received response value and the predefined threshold value, and sending the threshold value to the earphone; the threshold is used for comparing with a response value of the earphone for actual operation of a user, so as to determine whether the earphone executes a corresponding function according to a comparison result.
In a third aspect, the present application provides an earphone testing apparatus, where the earphone includes a main unit and an auxiliary unit, and the earphone is placed on a testing fixture; the device is applied to the host computer, the device includes:
the sending module is used for sending a test instruction to the test fixture and sending an acquisition instruction to the host after the host and the auxiliary machine are successfully paired; the test instruction is used for indicating the test fixture to execute test operation corresponding to the function to be tested; the acquisition instruction is used for the host to forward to the auxiliary machine so that the host and the auxiliary machine acquire a response value aiming at the test operation according to the acquisition instruction;
the judgment module is used for receiving response values which are acquired by the host and the auxiliary machine and aim at the test operation, and judging whether the earphone passes the test or not by comparing the response values with a predefined threshold value corresponding to the function;
the processing module is used for generating a threshold value suitable for the earphone according to the received response value and the predefined threshold value and sending the threshold value to the earphone after the earphone test is passed; the threshold value is used for being compared with a response value of the earphone for the actual operation of the user, so as to determine whether the earphone executes the corresponding function according to the comparison result.
In a fourth aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer execution instructions;
the processor executes computer-executable instructions stored by the memory to implement the method of any of the first or second aspects.
In a fifth aspect, the present application provides a computer-readable storage medium storing computer-executable instructions for implementing the headset testing method according to any one of the first or second aspects when the computer-executable instructions are executed by a processor.
In summary, the present application provides an earphone testing method, an earphone testing device, an electronic device, and a storage medium, where the earphone includes a host and an auxiliary, and the earphone is placed on a testing fixture, and specifically, after the host and the auxiliary are successfully paired, the host sends a testing instruction to the testing fixture, and sends an acquisition instruction to the host; the test instruction is used for indicating the test fixture to execute test operation corresponding to the function to be tested; the acquisition instruction is used for the host to forward to the auxiliary machine so that the host and the auxiliary machine acquire a response value aiming at the test operation according to the acquisition instruction; further, the upper computer receives response values acquired by the main computer and the auxiliary computer, and judges whether the earphone passes the test or not by comparing the response values with predefined thresholds corresponding to functions; and if the judgment result shows that the test is passed, the upper computer generates a threshold value suitable for the earphone according to the received response value and the predefined threshold value and sends the threshold value to the earphone. Like this, an upper computer alright with in order to test host computer and auxiliary engine simultaneously, save the cost of labor, improve the operating efficiency, and can also generate new threshold value and supply the earphone to use, can be so that the earphone accuracy when artifical the use in the future is higher a little.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of an earphone testing method according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another testing method for an earphone according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart of a specific earphone testing method according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an earphone testing device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of another testing apparatus for earphones according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
In the embodiments of the present application, terms such as "first" and "second" are used to distinguish the same or similar items having substantially the same function and action. For example, the first device and the second device are only used for distinguishing different devices, and the sequence order thereof is not limited. Those skilled in the art will appreciate that the terms "first," "second," etc. do not denote any order or quantity, nor do the terms "first," "second," etc. denote any order or importance.
It is noted that, in the present application, words such as "exemplary" or "for example" are used to mean exemplary, illustrative, or descriptive. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In this application, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone, wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or multiple.
With the development of the bluetooth headset technology, the functions of the bluetooth headset are more and more increased, so that the test content of the bluetooth headset is more and more complex, and the in-ear key function test of the bluetooth headset is an important performance test before the bluetooth headset leaves a factory.
In order to realize the testing of the earphone, 2 stations can be utilized to respectively test the earphone key functions of the left and right ears of the earphone, and specifically, the sensitivity of the earphone key functions is determined by earphone data uploaded to an upper computer through a capacitive proximity sensor of the earphone.
Exemplarily, the manual work starts test computer and test board (be the host computer), and the yard rifle is swept in the host computer connection, and is further, utilize and sweep yard rifle and sweep yard to earphone (single) that awaits measuring, acquire the MAC of earphone that awaits measuring, and then the host computer can pass through bluetooth and the earphone establishment of awaiting measuring based on this MAC and be connected, wherein, on the earphone that awaits measuring was placed the test fixture, the people's ear silica gel model on the test fixture merges rapidly, the earphone that awaits measuring is the pleasant state of wearing, utilizes the test fixture to keep the rigidity of the earphone that awaits measuring.
Further, the upper computer sends a test instruction to the earphone to be tested and the test fixture, the test fixture executes a corresponding test operation after receiving the test instruction, the earphone to be tested can read a threshold value under the test instruction through the capacitive sensor due to the fact that the test fixture executes the corresponding test operation, the threshold value is uploaded to the upper computer to be judged (compared with a threshold value of previous big data statistics), whether the threshold value is normal or not is judged, if the threshold value is normal, the threshold value can be written into other same earphone devices to be applied, and further, the similar method is used for testing the other earphone in the double-ear earphone.
It should be noted that, when the test is started, the serial port connection of the earphone is normal, the serial port connection of the tester is normal, the air cylinder is reset, and the data in the upper computer is reset.
However, in the above test method, 2 workers need to operate 2 stations at the same time or one worker performs two operations at the same time to complete the in-ear key function test of a pair of earphones, so that the operation efficiency is low, and the accuracy rate for determining the sensitivity of the earphones is also low.
In order to solve the above problems, the present application provides an earphone testing method, which can establish connection with an upper computer after a host and an auxiliary computer in an earphone are successfully paired, and then the upper computer sends a corresponding test instruction to the host, and correspondingly, a test fixture of a control host can also receive the test instruction and execute a corresponding test operation based on the test instruction, further, after receiving the test instruction, the host forwards the test instruction to the auxiliary computer, after the test operation is completed by the test fixture of the host, a test value (i.e. a response value) is generated, after receiving the test instruction forwarded by the host, the test fixture of the auxiliary computer can also execute a corresponding test operation based on the test instruction, and similarly, the auxiliary computer can also generate a test value based on the test instruction and then feed back the test value to the host, and the host collects the test value of the auxiliary computer and the test value thereof and sends the test value to the upper computer, and the upper computer judges whether the test value corresponding to the host computer and the auxiliary computer is in the threshold interval, if so, a new threshold is generated based on a predefined algorithm and sent to the host computer and the auxiliary computer, so that the host computer and the auxiliary computer store the new threshold and apply the new threshold in the subsequent manual use. Wherein, the main machine and the auxiliary machine are placed on the test fixture. Like this, this application only need an host computer alright with in order to test host computer and auxiliary engine simultaneously, improve the operating efficiency, save the cost of labor, and this application can also generate new threshold value interval and supply host computer and auxiliary engine to use, can be so that the earphone accuracy when artifical the use in the future is higher some.
For example, the above-mentioned earphone testing method may be applied to left and right ear testing of a TWS earphone, fig. 1 is an application scenario diagram provided in an embodiment of the present application, and the earphone testing method provided in the present application may be applied to TWS earphone testing. The application scenario includes: the system comprises an upper computer 101, a code scanning gun 102, a TWS earphone and a test fixture 105, wherein the upper computer 101 is connected with the code scanning gun 102, and the TWS earphone comprises a host machine 103 and an auxiliary machine 104; specifically, when the TWS headset is about to leave the factory, a function test needs to be performed on the TWS headset, first, a code scanning gun 102 connected to an upper computer 101 scans Media Access Control addresses (MAC) of a host computer 103 and a secondary computer 104 which are already paired, so that the upper computer 101 and the TWS headset can form a team, further, after the upper computer 101 and the TWS headset form a team, the upper computer 101 can send a test instruction to the host computer 103, the host computer forwards the test instruction to the secondary computer 104 after receiving the test instruction, correspondingly, a test fixture 105 controlling the host computer 103 and the secondary computer 104 can also receive the test instruction and execute a corresponding test operation based on the test instruction, after the test fixture 105 controls the host computer 103 and the secondary computer 104 to execute the corresponding test operation, the secondary computer 104 feeds back a test value to the host computer 103, and the host computer 103 summarizes a test value of the secondary computer 104 and a test value of itself, and sending the collected test values to the upper computer 101 for analysis so as to analyze whether the main machine 103 and the auxiliary machine 104 are normal in function.
It should be noted that, in the embodiment of the present application, the number of the test fixtures 105 is not specifically limited, and one test fixture may have two positions to control the main machine 103 and the auxiliary machine 104, or two test fixtures may have one position to respectively control the main machine 103 and the auxiliary machine 104.
It can be understood that the headset testing method provided by the embodiment of the present application may be applied to any bluetooth headset, and is not limited to the TWS headset described in the foregoing application scenario.
The technical solution of the present application will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 2 is a schematic flow chart of a testing method for an earphone according to an embodiment of the present disclosure, where as shown in fig. 2, the earphone includes a main unit and a secondary unit, and the earphone is placed on a testing fixture; the method is applied to an upper computer, and the earphone testing method comprises the following steps:
s201, after the host and the auxiliary machine are successfully paired, sending a test instruction to the test fixture, and sending an acquisition instruction to the host; the test instruction is used for indicating the test fixture to execute test operation corresponding to the function to be tested; the acquisition instruction is used for the host to forward to the auxiliary machine, so that the host and the auxiliary machine acquire a response value aiming at the test operation according to the acquisition instruction.
In the embodiment of the application, the test instruction and the acquisition instruction are both test instructions sent by an upper computer and used for testing the functions of the earphone, and the test instructions are specific to the test fixture and used for instructing the test fixture to execute test operations corresponding to the functions to be tested, such as test items shown in table 1; aiming at the host and the auxiliary machine, the test command is an acquisition instruction, and is used for the host and the auxiliary machine to acquire a response value aiming at the test operation according to the acquisition instruction, and after the host and the earphone execute the corresponding test operation, the response value is fed back to the upper computer, as noted in table 1.
TABLE 1 test Command
Test item Test commands Remarks for note
Opening test 55 AA d5 33 00 a1 Pass recovery 55 AA d 53301 a1
End of test 55 AA d6 33 00 45 Pass reply 55 AA d 6330145
Touch offset detection 55 AA d1 33 00 3f Pass reply 55 AA d 133003 f
Touch to empty detection 55 AA d2 33 00 db Pass reply 55 AA d 23301 db
Touch proximity diff detection 55 AA d3 33 00 70 Pass recovery 55 AA d 3330170
Circuit Switching (CS) routing short Circuit detection 55 AA d4 33 00 0a Pass reply 55 AA d 433010 a
Reading in-ear sensor status 55 AA d4 33 00 0a Pass reply 55 AA d 433010 a
Touch single click test 55 AA AC 33 0E A6 64 Pass reply 55 AA AC 330E A664
Touch double click test 55 AA AD 33 0E A6 FA Pass reply 55 AA AD 330E A6 FA
Touch long press test 55 AA AE 33 0E A6 FA Pass reply 55 AA AE 330E A6 FA
Write touch&Threshold value of ear insertion 55 AA D9 33 08 00 01 86 A0 00 00 AF C8 0d Pass recovery 55 AA D93308000186A 00000 AF C80D
The test operations supported by the upper computer, that is, the test operations corresponding to different earphone functions, are corresponding to the first column in table 1, the test command sent by the second upper computer, and the response value returned by the earphone after the test, it should be noted that the contents in table 1 are only an example, and the test operations corresponding to the earphone function, the corresponding test commands, and the returned response values may have other contents and forms, which is not specifically limited in this embodiment of the present application.
For example, in the application scenario of fig. 1, after the host computer 103 and the auxiliary computer 104 are successfully paired, the host computer 101 may send a test instruction, such as 55 AA d 3330070, to the test fixture 105, so that the test fixture 105 performs a touch proximity diff detection operation, and send an acquisition instruction, such as 55 AA d 3330070, to the host computer 103; further, after receiving the acquisition instruction, the host machine 103 forwards the acquisition instruction to the auxiliary machine 104, so that the host machine 103 and the auxiliary machine 104 acquire a response value, such as 55 AA d 3330170, of the earphone after the touch proximity diff detection operation is performed according to the acquisition instruction.
S202, receiving response values, which are acquired by the main machine and the auxiliary machine and aim at the test operation, and judging whether the earphone passes the test or not by comparing the response values with predefined thresholds corresponding to the functions.
In the embodiment of the present application, the predefined threshold may refer to a threshold that is set and used for determining whether the function of the headset is normal, the threshold may be obtained based on big data statistics, that is, statistical data of experience of the headset for an experiencer is obtained, and the threshold is determined from the statistical data, or may be set manually according to actual use conditions of the headset, for example, the threshold is set according to an application scenario and a crowd.
The predefined threshold may be set in an interval form, for example, the predefined threshold is 5W-20W, and when the response value data corresponding to the headset is 10W, it indicates that the headset is normal.
For example, in the application scenario of fig. 1, for example, when the upper computer 101 sends a double-click test instruction, the upper computer 101 may receive a response value 10W acquired by the host 103 and the auxiliary 104 after the double-click test operation is performed, and determine whether the earphone passes the test by comparing the response value with a predefined threshold value 5W-20W corresponding to the double-click test operation.
S203, if the test is passed, generating a threshold value suitable for the earphone according to the received response value and the predefined threshold value, and sending the threshold value to the earphone; the threshold value is used for being compared with a response value of the earphone for the actual operation of the user, so as to determine whether the earphone executes the corresponding function according to the comparison result.
In the embodiment of the application, the threshold is an interval value calculated by using a predefined algorithm based on the response value and a predefined threshold, if the response value corresponding to the feedback of the earphone is 10W, and the predefined threshold is 5W-20W, a weight value of 0.8 is set by using the predefined algorithm, such as a weighting algorithm, and the threshold suitable for the earphone is 8W-20W by calculating 0.8 × 10W = 8W.
It should be noted that, in the embodiment of the present application, the predefined algorithm is not specifically limited, and may also be a maximum value algorithm, a minimum value algorithm, and the like in response values corresponding to the host and the secondary.
Therefore, the earphone testing method provided by the application can be realized by the steps that after the host and the auxiliary machine are successfully matched, the host computer sends a testing instruction to the testing fixture and sends an acquisition instruction to the host computer; the test instruction is used for indicating the test fixture to execute test operation corresponding to the function to be tested; the acquisition instruction is used for the host to forward to the auxiliary machine so that the host and the auxiliary machine acquire a response value aiming at the test operation according to the acquisition instruction; further, the upper computer receives response values acquired by the main computer and the auxiliary computer, and judges whether the earphone passes the test or not by comparing the response values with predefined thresholds corresponding to functions; and if the judgment result shows that the test is passed, the upper computer generates a threshold value suitable for the earphone according to the received response value and the predefined threshold value and sends the threshold value to the earphone. Like this, an upper computer alright with in order to test host computer and auxiliary engine simultaneously, save the cost of labor, improve the operating efficiency, and can also generate new threshold value and supply the earphone to use, can be so that the earphone accuracy when artifical the use in the future is higher a little.
It can be understood that the earphone may be tested according to steps S201 to S203 before factory shipment, the threshold value is updated by the earphone after the test is completed, after factory shipment, when the user uses the earphone, the earphone may be controlled by the operation corresponding to the function, the earphone may compare the response value to the actual operation of the user with the stored threshold value, and if the response value is within the threshold value range, the earphone may immediately execute the corresponding function, so as to improve the sensitivity of starting the corresponding function.
Optionally, the predefined threshold is a threshold stored in a look-up table in advance, and a threshold applicable to the headset is generated according to the received response value and the predefined threshold, and is sent to the headset, where the method includes:
acquiring a preset proportional coefficient, and calculating the product of the response value and the proportional coefficient to obtain a lower bound of a threshold value suitable for the earphone;
forming a threshold value applicable to the earphone based on the lower bound and the upper bound of the predefined threshold value, and sending the threshold value to the earphone; wherein the proportionality coefficient is a positive number less than 1.
In the embodiment of the present application, the preset scaling factor may refer to a factor set for reducing a corresponding interval of a predefined threshold, so that the threshold better conforms to the application of the headset, and the sensitivity of headset start is higher.
Specifically, after receiving the response values fed back by the host and the secondary, the upper computer may respectively calculate corresponding threshold values, taking the preset proportionality coefficient as 0.7 and the predefined threshold value as 5W-20W as an example, if the corresponding response value fed back by the host is 10W, the threshold value applicable to the host is 7W-20W, and the corresponding response value fed back by the secondary is 12W, the threshold value applicable to the host is 8.4W-20W.
It should be noted that different preset scaling factors may be set for the main machine and the auxiliary machine, and different preset scaling factors may also be set for response values corresponding to test operations under different functions, which is not specifically limited in this embodiment of the present application.
Optionally, after the threshold corresponding to the host and the threshold corresponding to the secondary unit are calculated according to the received response value and the predefined threshold, a device with a high priority, for example, the threshold corresponding to the host, is selected as the threshold suitable for the headset, and one of the threshold and the threshold is selected.
Therefore, the threshold value suitable for the earphone can be calculated based on the set algorithm, so that the calculated earphone threshold value better meets the use requirement of the earphone, the sensitivity of the earphone is more accurate when the earphone is started, and the occurrence of wrong starting function conditions is reduced.
Optionally, the threshold includes a first threshold and a second threshold; generating a threshold value suitable for the earphone and sending the threshold value to the earphone, wherein the threshold value comprises:
generating a first threshold value suitable for the host and a second threshold value suitable for the auxiliary machine, and sending the first threshold value and the second threshold value to the host;
after the host receives the first threshold and the second threshold, the host stores the first threshold to replace the last stored threshold;
and the host forwards the second threshold to the secondary machine so that the secondary machine stores the second threshold for replacing the last stored threshold.
In this step, the first threshold and the second threshold may correspond to different threshold intervals, so that for the host and the secondary computer, when the host and the secondary computer are started, the threshold may be triggered to start in an operation behavior suitable for the device based on the corresponding thresholds, for example, the strength of the double click of the host is greater, and/or the strength of the double click of the secondary computer is smaller, and the corresponding operation may also be started.
Therefore, after the host computer generates the first threshold value suitable for the host computer and the second threshold value suitable for the auxiliary computer, the first threshold value and the second threshold value can be respectively sent to the host computer and the auxiliary computer, so that the threshold values can be timely updated by the host computer and the auxiliary computer, and the use performance of the host computer and the auxiliary computer is improved.
Optionally, in the testing process of the headset, if the step S201 and the step S202 are executed, and it is determined that the headset passes the testing, a preset scaling factor may be obtained, a product of a response value fed back by the host and the scaling factor is calculated to obtain a lower bound of a first threshold applicable to the host, and a product of a response value fed back by the secondary computer and the scaling factor is calculated to obtain a lower bound of a second threshold applicable to the secondary computer;
forming a first threshold value applicable to the host machine based on a lower bound of the first threshold value and an upper bound of the predefined threshold value, forming a second threshold value applicable to the secondary machine based on a lower bound of the second threshold value and an upper bound of the predefined threshold value, and sending the first threshold value and the second threshold value to the host machine;
after the host receives the first threshold and the second threshold, the host stores the first threshold to replace the last stored threshold;
and the host forwards the second threshold to the secondary machine so that the secondary machine stores the second threshold to replace the last stored threshold, wherein the proportionality coefficient is a positive number smaller than 1, the preset proportionality coefficient can be set to different values for the host and the secondary machine, and the values are determined according to actual application scenarios of the host and the secondary machine.
Optionally, the method further includes:
responding to the operation of a user, and acquiring team formation information of the upper computer and the earphones; the team formation information is used for indicating whether the upper computer is connected with a host computer and an auxiliary computer which are successfully paired;
judging whether the upper computer and the earphones are successfully paired or not based on the team formation information;
and if the result is not successful, acquiring the formation information of the upper computer and the earphone again.
In the embodiment of the application, the team formation information can refer to information corresponding to successful connection between a host computer and an auxiliary computer in the earphone, if the host computer is only connected with the host computer or the auxiliary computer in the earphone or the host computer is not connected with the earphone, the pairing failure between the host computer and the earphone is indicated, and the successful pairing between the host computer and the earphone can be indicated only when the host computer is connected with the host computer and the auxiliary computer after the successful pairing.
For example, in the application scenario of fig. 1, in response to a user operation, such as acquiring a MAC address of the host 103 by using the code scanning gun 102, group information of the host 101 and the headset may be acquired; the team information comprises information whether the connection between the main machine and the auxiliary machine is successful and information whether the connection between the earphone and the upper computer is successful; further, whether the upper computer 101 is successfully paired with the earphone or not is judged based on the team formation information; if the result is not successful, the team formation information of the upper computer 101 and the earphones is obtained again.
It should be noted that, because the host needs to be paired with the slave to implement the present application, the code scanning gun only needs to scan the MAC address of the host, and if the host and the slave are successfully paired, the MAC address of the host may reflect that a connection relationship with the slave is established, and if the host and the slave are not successfully paired, the MAC address of the host may reflect that a connection relationship with any device is not established.
Therefore, the embodiment of the application can be connected with the upper computer for testing after the host computer is connected with the auxiliary computer, so that the simultaneous testing of the host computer and the auxiliary computer by the upper computer is realized, the manual operation is reduced, and the testing efficiency of the host computer and the auxiliary computer is improved.
Optionally, the method further includes:
if the testing of the earphone fails, the team formation information of the upper computer and the earphone is obtained again, and testing is carried out again after the host computer and the auxiliary computer are successfully paired according to the team formation information.
Specifically, if the testing of the earphones fails, the team formation information of the upper computer and the earphones can be obtained again, further, whether the host and the auxiliary computer are successfully paired and whether the paired earphones and the upper computer are successfully paired are judged, if it is determined that the host and the auxiliary computer are successfully paired and the paired earphones and the upper computer are successfully paired, the steps of the embodiment shown in fig. 2 are executed, and if the pairing is not successful, the team formation information of the upper computer and the earphones is obtained again until the obtaining times reach the set threshold value.
Optionally, if the test of the earphone fails, sending a test instruction to the test fixture again, and sending an acquisition instruction to the host computer, so that the upper computer re-acquires a response value corresponding to the earphone and then re-determines whether the earphone passes the test, thus reducing the test flow, and the re-test can be performed without acquiring team information of the upper computer and the earphone, because the test instruction and the acquisition instruction sent when the test of the earphone fails, the test fixture may make a mistake during execution, such as a force accidentally reduced, so that the test is inaccurate, or the earphone receives external interference when feeding back the response value, so that the returned response value is inaccurate, which is all suitable for a mode of sending the test instruction to the test fixture again and sending the acquisition instruction to the host computer.
Therefore, the embodiment of the application can test for many times, is used for testing whether the function of the earphone is normal or not, reduces the occurrence of inaccurate test caused by misoperation or uncertain factors such as external environment, improves the success rate of testing, and reduces the asset loss.
Optionally, the method further includes:
when the earphone test fails, displaying prompt information to prompt the user that the response value of the main machine and/or the auxiliary machine is abnormal;
and if the frequency of the prompt message is larger than the preset threshold value, displaying warning information to remind a user that the main machine and/or the auxiliary machine are in failure.
In the embodiment of the present application, the prompt message may refer to a message for prompting the user that the host or the auxiliary is abnormally displayed due to improper operation or uncertain factors such as external environment interference, the prompt message can be displayed on a display screen of the upper computer or sent to a terminal device of a corresponding user for display, the embodiment of the application is not particularly limited to this, the preset threshold value can refer to a threshold value set for determining that the main computer or the auxiliary computer has a fault, if the number of times of occurrence of the prompt message is greater than the preset threshold value, it is indicated that the abnormal condition does not occur accidentally, the indication is that the host or the secondary computer has a fault, the size of the preset threshold is not specifically limited in the embodiment of the present application, and the warning information may be information for prompting the user that the host or the secondary computer has a fault and is displayed, where the display form is similar to the prompting information, and details are not repeated here.
It should be noted that the sending form and the sending content of the prompt message and the warning message are not specifically limited, and the prompt message and the warning message may be sent in the form of a text, or may be sent in the form of a picture, for example, the prompt message is in the form of a text, "the middle key of the host is abnormal".
It can be understood that, when the prompt information and the warning information are displayed in the embodiment of the present application, which component corresponding to which device is abnormal and which device is failed can be accurately displayed, and the judgment basis can refer to the existing methods for performing the failure detection of the earphone and the failure detection of the specific location of the other device, which is not described herein again.
For example, in the application scenario of fig. 1, when the tests of the host machine 103 and the auxiliary machine 104 are not passed, a prompt message, such as "the middle key of the host machine is abnormal" may be displayed on the display screen of the upper machine 101 to prompt the user that the middle key of the host machine is abnormal, so that the response value of the host machine is abnormal and needs to be manually overhauled; when the number of times of occurrence of the prompt message is greater than a preset threshold, warning information is displayed on a display screen of the upper computer 101, and if the host fails, the host is reminded of failing and can be discarded.
Therefore, the embodiment of the application can prompt the abnormal situation of the host or the auxiliary machine in the test process to remind a user whether the host or the auxiliary machine is abnormal due to misoperation or uncertain factors, and the abnormal situation can be corrected in time.
Exemplarily, the present application further provides a method for testing an earphone, and fig. 3 is a schematic flowchart of another method for testing an earphone provided in the embodiment of the present application; as shown in fig. 3, the earphone includes a main unit and an auxiliary unit, and the earphone is placed on the test fixture; the method is applied to a host computer and comprises the following steps:
s301, after the pairing with the auxiliary machine is successful, receiving an acquisition instruction sent by an upper computer, and acquiring a response value aiming at the test operation according to the acquisition instruction; and the test operation is that the test fixture executes the operation corresponding to the function to be tested after receiving the test instruction sent by the upper computer.
S302, forwarding the acquisition instruction to the secondary machine so that the secondary machine acquires a response value aiming at the test operation according to the acquisition instruction.
S303, receiving a response value which is acquired by the auxiliary machine and aims at the test operation, and sending the response value of the auxiliary machine and the response value corresponding to the auxiliary machine to the upper computer, so that the upper computer judges whether the earphone passes the test by comparing the response values corresponding to the main machine and the auxiliary machine with the predefined threshold value corresponding to the function; if the test is passed, generating a threshold value suitable for the earphone according to the received response value and the predefined threshold value, and sending the threshold value to the earphone; the threshold is used for comparing with a response value of the earphone for actual operation of a user, so as to determine whether the earphone executes a corresponding function according to a comparison result.
It should be noted that, in another method for testing an earphone provided in the embodiment of the present application, a specific implementation principle and effect of the method may refer to relevant description and effect corresponding to the embodiment described in fig. 2, and redundant description is not repeated here.
With reference to the foregoing embodiments, fig. 4 is a schematic flowchart of a specific earphone testing method provided in the embodiment of the present application; as shown in fig. 4, the specific implementation steps of the earphone testing method are as follows:
step A: the auxiliary machine monitors the state of the host machine in real time, sends a TWS team invitation instruction to the host machine, correspondingly, the host machine also sends the TWS team invitation instruction to the auxiliary machine, the host machine and the auxiliary machine receive the TWS team invitation instruction simultaneously, the host machine and the auxiliary machine carry out TWS team formation, after the host machine and the auxiliary machine succeed in team formation, the host machine is started manually and specific host computer software in the host machine is started, the host machine can be paired with earphones, specifically, the MAC address of the earphones can be obtained through a code scanning gun which has a connection relation with the host machine, wherein the auxiliary machine is used for receiving or sending data to the host machine, and the host machine is used for carrying out data communication with terminal equipment.
It should be noted that the host and the auxiliary device form a stereo system through bluetooth, the terminal device is connected to a receiving end such as the host, and the receiving end can distribute stereo to another receiving end such as the auxiliary device through wireless transmission to form the stereo system.
And B: and C, when the upper computer is paired with the earphone, the upper computer judges whether the earphone and the upper computer are successfully paired or not based on the acquired team formation information, if so, the step C is executed, and otherwise, the step D is executed.
Step C: the method comprises the steps that a host computer sends a corresponding test instruction to a host computer, the host computer forwards the test instruction to an auxiliary computer after receiving the test instruction, the test instruction is sent to a test fixture for controlling the host computer and the auxiliary computer, the test fixture executes test operation corresponding to a function to be tested based on the test instruction, and the host computer and the auxiliary computer are used for collecting a response value aiming at the test operation according to the test instruction after receiving the test instruction (which refers to a collecting instruction); further, after the test fixture controls the host and the auxiliary machine to execute the test operation corresponding to the function to be tested, the auxiliary machine generates a test value (response value) and sends the test value to the host, the host also generates a test value and sends the received test value of the auxiliary machine and the test value of the auxiliary machine to the upper computer, and the upper computer executes the step E after receiving the test values of the host and the auxiliary machine.
Step D: and B, re-acquiring team forming information of the upper computer and the auxiliary set earphone, and executing the step B.
And E, step E: the upper computer judges whether the test values of the main computer and the auxiliary computer meet the set requirements, if so, the received test values are analyzed, namely, the threshold suitable for the earphone is calculated by utilizing the test values and the predefined threshold through a predefined algorithm, and the threshold is sent to the main computer, after the main computer receives the threshold, the main computer is written into the main computer threshold in a memory such as a FLASH to replace the previous threshold in the memory, correspondingly, the main computer also forwards the threshold to the auxiliary computer, after the auxiliary computer receives the threshold, the auxiliary computer is written into the auxiliary computer threshold in the memory to replace the previous threshold in the memory, therefore, after the earphone is restarted, a new threshold can be read, and the accuracy of the earphone in the subsequent use is higher. And C, if the upper computer judges that the test values of the main computer and the auxiliary computer do not meet the set requirements, the upper computer resends the test instruction, and the step C is executed again.
In the foregoing embodiments, the earphone testing method provided in the embodiments of the present application is described, and in order to implement each function in the method provided in the embodiments of the present application, the electronic device serving as an execution subject may include a hardware structure and/or a software module, and each function is implemented in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether any of the above-described functions is implemented as a hardware structure, a software module, or a hardware structure plus a software module depends upon the particular application and design constraints imposed on the technical solution.
For example, fig. 5 is a schematic structural diagram of an earphone testing device provided in an embodiment of the present application, where the earphone includes a main unit and a secondary unit, and the earphone is placed on a testing fixture; the device is applied to the host computer, as shown in fig. 5, the device includes: a sending module 501, a judging module 502 and a processing module 503; the sending module 501 is configured to send a test instruction to the test fixture after the host and the secondary machine are successfully paired, and send an acquisition instruction to the host; the test instruction is used for indicating the test fixture to execute test operation corresponding to the function to be tested; the acquisition instruction is used for the host to forward to the auxiliary machine so that the host and the auxiliary machine acquire a response value aiming at the test operation according to the acquisition instruction;
the determining module 502 is configured to receive response values, which are acquired by the host and the secondary, for the test operation, and determine whether the earphone passes the test by comparing the response values with a predefined threshold corresponding to the function;
the processing module 503 is configured to generate a threshold applicable to the headset according to the received response value and the predefined threshold after the headset passes the test, and send the threshold to the headset; the threshold value is used for being compared with a response value of the earphone for the actual operation of the user, so as to determine whether the earphone executes the corresponding function according to the comparison result.
Optionally, the predefined threshold is a threshold stored in advance in a lookup table, and the processing module 503 is specifically configured to:
acquiring a preset proportional coefficient, and calculating the product of the response value and the proportional coefficient to obtain a lower bound of a threshold value suitable for the earphone;
forming a threshold value applicable to the earphone based on the lower bound and the upper bound of the predefined threshold value, and sending the threshold value to the earphone; wherein the proportionality coefficient is a positive number less than 1.
Optionally, the threshold includes a first threshold and a second threshold; the processing module 503 is specifically configured to:
generating a first threshold value suitable for the host and a second threshold value suitable for the auxiliary machine, and sending the first threshold value and the second threshold value to the host;
after the host receives the first threshold and the second threshold, the host stores the first threshold to replace the last stored threshold;
and the host forwards the second threshold to the secondary computer, so that the secondary computer stores the second threshold for replacing the last stored threshold.
Optionally, the apparatus further includes a pairing module, where the pairing module is configured to:
responding to the operation of a user, and acquiring team formation information of the upper computer and the earphones; the team formation information is used for indicating whether the upper computer is connected with a host computer and an auxiliary computer which are successfully paired;
judging whether the upper computer and the earphones are successfully paired or not based on the team formation information;
and if the grouping is not successful, obtaining the grouping information of the upper computer and the earphones again.
Optionally, the apparatus further includes a retest module, where the retest module is configured to:
and when the test of the earphone fails, acquiring team formation information of the upper computer and the earphone again, and testing again after the host computer and the auxiliary computer are successfully paired according to the team formation information.
Optionally, the device further includes an alert module, the alert module is configured to:
when the earphone test fails, displaying prompt information to prompt the user that the response value of the host and/or the auxiliary machine is abnormal;
and if the frequency of the prompt message is larger than the preset threshold value, displaying warning information to remind a user that the main machine and/or the auxiliary machine are in failure.
For specific implementation principles and effects of the earphone testing device provided by the embodiment of the present application, reference may be made to the corresponding relevant description and effects of the above embodiment, which are not described in detail herein.
For example, fig. 6 is a schematic structural diagram of another testing apparatus for earphones according to an embodiment of the present application, and as shown in fig. 6, the earphones include a main unit and an auxiliary unit, and are placed on a testing fixture; the device is applied to a host, and comprises: the system comprises an acquisition module 601, a forwarding module 602 and a receiving module 603; the acquisition module 601 is configured to receive an acquisition instruction sent by an upper computer after the auxiliary machine is successfully paired, and acquire a response value for a test operation according to the acquisition instruction; the test operation is that the test fixture executes the operation corresponding to the function to be tested after receiving the test instruction sent by the upper computer;
the forwarding module 602 is configured to forward the acquisition instruction to the secondary computer, so that the secondary computer acquires a response value for the test operation according to the acquisition instruction;
the receiving module 603 is configured to receive a response value acquired by the secondary computer for the test operation, and send the response value of the secondary computer and the response value corresponding to the secondary computer to the upper computer, so that the upper computer determines whether the earphone passes the test by comparing the response values corresponding to the primary computer and the secondary computer with the predefined threshold corresponding to the function; if the test is passed, generating a threshold value suitable for the earphone according to the received response value and the predefined threshold value, and sending the threshold value to the earphone; the threshold value is used for being compared with a response value of the earphone for the actual operation of the user, so as to determine whether the earphone executes the corresponding function according to the comparison result.
For concrete implementation principles and effects of another earphone testing device provided in the embodiment of the present application, reference may be made to relevant descriptions and effects corresponding to the above embodiments, which are not described in detail herein.
An embodiment of the present application further provides a schematic structural diagram of an electronic device, and fig. 7 is a schematic structural diagram of an electronic device provided in an embodiment of the present application, and as shown in fig. 7, the electronic device may include: a processor 701 and a memory 702 communicatively coupled to the processor; the memory 702 stores a computer program; the processor 701 executes the computer program stored in the memory 702, so that the processor 701 executes the method according to any of the embodiments.
The memory 702 and the processor 701 may be connected by a bus 703.
Embodiments of the present application further provide a computer-readable storage medium, which stores computer program execution instructions, and when the computer program execution instructions are executed by a processor, the computer program execution instructions are used to implement the method as described in any one of the foregoing embodiments of the present application.
The embodiment of the present application further provides a chip for executing the instruction, where the chip is used to execute the method in any of the foregoing embodiments executed by the electronic device in any of the foregoing embodiments of the present application.
Embodiments of the present application further provide a computer program product, which includes a computer program, and when executed by a processor, the computer program can implement the method in any of the foregoing embodiments as performed by an electronic device in any of the foregoing embodiments of the present application.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of modules is merely a division of logical functions, and an actual implementation may have another division, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed coupling or direct coupling or communication connection between each other may be through some interfaces, indirect coupling or communication connection between devices or modules, and may be in an electrical, mechanical or other form.
Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to implement the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit. The unit formed by the modules can be realized in a hardware form, and can also be realized in a form of hardware and a software functional unit.
The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to execute some steps of the methods described in the embodiments of the present application.
It should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in the incorporated application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
The Memory may include a Random Access Memory (RAM), and may further include a Non-volatile Memory (NVM), such as at least one magnetic disk Memory, and may also be a usb disk, a removable hard disk, a read-only Memory, a magnetic disk, or an optical disk.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The storage medium may be implemented by any type of volatile or nonvolatile storage device or combination thereof, such as Static Random-Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the storage medium may reside as discrete components in an electronic device or host device.
The above description is only a specific implementation of the embodiments of the present application, but the scope of the embodiments of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the embodiments of the present application should be covered by the scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. The earphone testing method is characterized in that the earphone comprises a host and an auxiliary machine, and the earphone is placed on a testing clamp; the method is applied to an upper computer and comprises the following steps:
after the host and the auxiliary machine are successfully paired, sending a test instruction to the test fixture, and sending an acquisition instruction to the host; the test instruction is used for instructing the test fixture to execute test operation corresponding to a function to be tested; the acquisition instruction is used for the host to forward to the auxiliary machine so that the host and the auxiliary machine acquire a response value aiming at the test operation according to the acquisition instruction;
receiving response values, which are acquired by the main machine and the auxiliary machine and aim at the test operation, and judging whether the earphone passes the test or not by comparing the response values with a predefined threshold corresponding to the function;
if the test is passed, generating a threshold value suitable for the earphone according to the received response value and the predefined threshold value, and sending the threshold value to the earphone; the threshold value is used for being compared with a response value of the earphone for the actual operation of the user, so as to determine whether the earphone executes the corresponding function according to the comparison result.
2. The method of claim 1, wherein the predefined threshold is a threshold stored in advance in a look-up table, and generating a threshold applicable to the headset according to the received response value and the predefined threshold and sending the threshold to the headset comprises:
acquiring a preset proportional coefficient, and calculating the product of the response value and the proportional coefficient to obtain a lower bound of a threshold value suitable for the earphone;
forming a threshold value applicable to the earphone based on the lower bound and the upper bound of the predefined threshold value, and sending the threshold value to the earphone; wherein the proportionality coefficient is a positive number less than 1.
3. The method of claim 1, wherein the threshold comprises a first threshold and a second threshold; generating a threshold value suitable for the earphone and sending the threshold value to the earphone, wherein the threshold value comprises:
generating a first threshold value suitable for the host and a second threshold value suitable for the auxiliary machine, and sending the first threshold value and the second threshold value to the host;
after the host receives the first threshold and the second threshold, the host stores the first threshold to replace the last stored threshold;
and the host forwards the second threshold to the secondary computer, so that the secondary computer stores the second threshold for replacing the last stored threshold.
4. The method of claim 1, further comprising:
responding to the operation of a user, and acquiring team formation information of the upper computer and the earphones; the team formation information is used for indicating whether the upper computer is connected with a host computer and an auxiliary computer which are successfully paired;
judging whether the upper computer and the earphones are successfully paired or not based on the team formation information;
and if the result is not successful, acquiring the formation information of the upper computer and the earphone again.
5. The method of claim 4, further comprising:
and if the test of the earphone fails, acquiring team formation information of the upper computer and the earphone again, and testing again after the host computer and the auxiliary computer are successfully paired according to the team formation information.
6. The method according to any one of claims 1-5, further comprising:
when the earphone test fails, displaying prompt information to prompt the user that the response value of the host and/or the auxiliary machine is abnormal;
and if the frequency of the prompt message is larger than the preset threshold value, displaying warning information to remind a user that the main machine and/or the auxiliary machine are in failure.
7. The earphone testing method is characterized in that the earphone comprises a host and an auxiliary machine, and the earphone is placed on a testing clamp; the method is applied to a host, and comprises the following steps:
after the auxiliary machine is successfully paired, receiving an acquisition instruction sent by an upper computer, and acquiring a response value aiming at test operation according to the acquisition instruction; the test operation is that the test fixture executes the operation corresponding to the function to be tested after receiving the test instruction sent by the upper computer;
forwarding the acquisition instruction to the secondary machine so as to enable the secondary machine to acquire a response value aiming at the test operation according to the acquisition instruction;
receiving a response value which is acquired by the auxiliary machine and aims at the test operation, and sending the response value of the auxiliary machine and the response value corresponding to the auxiliary machine to the upper computer, so that the upper computer judges whether the earphone passes the test by comparing the response values corresponding to the main machine and the auxiliary machine with the predefined threshold value corresponding to the function; if the test is passed, generating a threshold value suitable for the earphone according to the received response value and the predefined threshold value, and sending the threshold value to the earphone; the threshold is used for comparing with a response value of the earphone for actual operation of a user, so as to determine whether the earphone executes a corresponding function according to a comparison result.
8. The earphone testing device is characterized in that the earphone comprises a host and an auxiliary machine, and the earphone is placed on a testing clamp; the device is applied to the host computer, the device includes:
the sending module is used for sending a test instruction to the test fixture and sending an acquisition instruction to the host machine after the host machine and the auxiliary machine are successfully paired; the test instruction is used for instructing the test fixture to execute test operation corresponding to a function to be tested; the acquisition instruction is used for the host to forward to the auxiliary machine so that the host and the auxiliary machine acquire a response value aiming at the test operation according to the acquisition instruction;
the judgment module is used for receiving response values which are acquired by the host and the auxiliary machine and aim at the test operation, and judging whether the earphone passes the test or not by comparing the response values with a predefined threshold value corresponding to the function;
the processing module is used for generating a threshold value suitable for the earphone according to the received response value and the predefined threshold value and sending the threshold value to the earphone after the earphone test is passed; the threshold value is used for being compared with a response value of the earphone for the actual operation of the user, so as to determine whether the earphone executes the corresponding function according to the comparison result.
9. An electronic device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored by the memory to implement the method of any of claims 1-7.
10. A computer-readable storage medium storing computer-executable instructions for implementing the headset testing method of any one of claims 1-7 when executed by a processor.
CN202210828738.1A 2022-07-15 2022-07-15 Earphone testing method and device, electronic equipment and storage medium Active CN115103290B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210828738.1A CN115103290B (en) 2022-07-15 2022-07-15 Earphone testing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210828738.1A CN115103290B (en) 2022-07-15 2022-07-15 Earphone testing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115103290A true CN115103290A (en) 2022-09-23
CN115103290B CN115103290B (en) 2022-11-22

Family

ID=83295946

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210828738.1A Active CN115103290B (en) 2022-07-15 2022-07-15 Earphone testing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115103290B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106484199A (en) * 2015-08-31 2017-03-08 小米科技有限责任公司 Thresholding method to set up and device
CN108924326A (en) * 2018-06-08 2018-11-30 上海与德通讯技术有限公司 The calibration method and mobile terminal of earphone
CN110048703A (en) * 2019-04-18 2019-07-23 珠海格力电器股份有限公司 Method and device for improving sensitivity of touch key and terminal equipment
CN111464920A (en) * 2020-03-31 2020-07-28 歌尔科技有限公司 Earphone debugging method, device and storage medium
US10764699B1 (en) * 2019-08-09 2020-09-01 Bose Corporation Managing characteristics of earpieces using controlled calibration
CN111698601A (en) * 2020-06-05 2020-09-22 歌尔科技有限公司 Bluetooth headset, key sensitivity adjusting method and device thereof and readable storage medium
CN112019988A (en) * 2020-07-28 2020-12-01 广州亚美智造科技有限公司 Method and device for testing audio equipment, test fixture, equipment and storage medium
CN112118525A (en) * 2020-09-15 2020-12-22 杭州兆华电子有限公司 Automatic change intelligent TWS bluetooth headset test system
CN112835755A (en) * 2021-02-05 2021-05-25 西人马(西安)测控科技有限公司 Test data acquisition method, device and equipment and computer storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106484199A (en) * 2015-08-31 2017-03-08 小米科技有限责任公司 Thresholding method to set up and device
CN108924326A (en) * 2018-06-08 2018-11-30 上海与德通讯技术有限公司 The calibration method and mobile terminal of earphone
CN110048703A (en) * 2019-04-18 2019-07-23 珠海格力电器股份有限公司 Method and device for improving sensitivity of touch key and terminal equipment
US10764699B1 (en) * 2019-08-09 2020-09-01 Bose Corporation Managing characteristics of earpieces using controlled calibration
CN111464920A (en) * 2020-03-31 2020-07-28 歌尔科技有限公司 Earphone debugging method, device and storage medium
CN111698601A (en) * 2020-06-05 2020-09-22 歌尔科技有限公司 Bluetooth headset, key sensitivity adjusting method and device thereof and readable storage medium
CN112019988A (en) * 2020-07-28 2020-12-01 广州亚美智造科技有限公司 Method and device for testing audio equipment, test fixture, equipment and storage medium
CN112118525A (en) * 2020-09-15 2020-12-22 杭州兆华电子有限公司 Automatic change intelligent TWS bluetooth headset test system
CN112835755A (en) * 2021-02-05 2021-05-25 西人马(西安)测控科技有限公司 Test data acquisition method, device and equipment and computer storage medium

Also Published As

Publication number Publication date
CN115103290B (en) 2022-11-22

Similar Documents

Publication Publication Date Title
CN100365994C (en) Method and system for regulating ethernet
US9330049B2 (en) Method and apparatuses for monitoring system bus
US7971110B2 (en) System and method for testing a serial attached small computer system interface
CN112291387B (en) Method, device and equipment for automatically addressing master and slave machines and storage medium
US20060150023A1 (en) Debugging apparatus
CN107143976A (en) Air conditioner fault detection method, movement detection device and air conditioner
CN108647131B (en) Output system of running log
CN114422412B (en) Equipment detection method and device and communication equipment
CN109586987B (en) Method and device for testing equipment in cloud storage system
EP4177735A1 (en) Novel portable program upgrading method
JP6232057B2 (en) Management device
CN112822073B (en) Test method, device, system, electronic equipment and readable storage medium
CN109582324B (en) IC burning method and board card
CN113225760B (en) Network testing method and equipment
CN111061448A (en) Log information display method and device, electronic equipment and storage medium
CN115103290B (en) Earphone testing method and device, electronic equipment and storage medium
CN113010122A (en) Image forming apparatus monitoring apparatus, method, system, and storage medium
CN112464238A (en) Vulnerability scanning method and electronic equipment
CN116225804A (en) PCIe link detection method, system, equipment and storage medium
CN112583617A (en) Fault determination method, server, control terminal and storage medium
CN111030871A (en) Configuration information synchronization method and device based on dual-computer hot standby system
JP2018023106A (en) Diagnostic system of failure node, method and portable terminal
CN111460745B (en) Method for detecting connectivity between chips of equipment
CN109634943B (en) Air conditioner data transmission method and device for screening data and computer equipment
CN109495333B (en) Detection processing method, equipment and network equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant