Summary of the invention
There is earphone professional test equipment cost height in the correlation technique for overcoming, causes the waste of resource, be unfavorable for protecting problem of environment, the invention provides a kind of earphone method of testing and device.
The embodiment of the invention provides a kind of earphone method of testing, and described method comprises:
Plug by described earphone sends test massage to first sound channel of described earphone;
Microphone by described earphone receives the sound that first sound channel of described earphone is sent, and the sound that sends according to described first sound channel generates first frequency response curve;
Plug by described earphone sends test massage to the second sound channel of described earphone;
Microphone by described earphone receives the sound that the second sound channel of described earphone is sent, and generates second frequency response curve according to the sound that described second sound channel is sent;
Judge according to described first frequency response curve and described second frequency response curve whether first sound channel, second sound channel and the microphone of described earphone be normal.
Preferably, describedly judge according to described first frequency response curve and described second frequency response curve whether first sound channel, second sound channel and the microphone of described earphone normally comprise:
First frequency response curve and second frequency response curve are mated with the frequency response curve of presetting respectively, and information outputs test result.
Preferably, described first frequency response curve and second frequency response curve are mated with default frequency response curve respectively, the information that outputs test result comprises:
If described first frequency response curve and default frequency response curve coupling, described second frequency response curve does not match with default frequency response curve, and then Shu Chu test result information is that the second sound channel of earphone is unusual;
If described second frequency response curve and default frequency response curve coupling, described first frequency response curve does not match with default frequency response curve, and then Shu Chu test result information is that first sound channel of earphone is unusual;
If described first frequency response curve does not match with default frequency response curve, described second frequency response curve does not match with default frequency response curve, then Shu Chu test result information be one of the microphone of earphone at least and two sound channels unusually.
Preferably, first audio curve under the same frequency and second audio curve are compared, information outputs test result.
Preferably, described first audio curve under the same frequency and second audio curve are compared, the information that outputs test result comprises:
If differing between first audio curve and second audio curve is no more than default decibel value, then Shu Chu test result information is that first sound channel and second sound channel are normal;
If differing between first audio curve and second audio curve surpasses described default decibel value, then Shu Chu test result information is test crash.
Preferably, described method also comprises:
Accept the test environment information of user's input;
According to described test environment information, obtain default frequency response curve.
The embodiment of the invention also provides a kind of earphone testing apparatus, and described device comprises:
First signal transmitting unit, the plug that is used for by described earphone sends test massage to first sound channel of described earphone;
The first sound receiving element is used for the sound that first sound channel that microphone by described earphone receives described earphone is sent;
The first curve generation unit, the sound that is used for sending according to described first sound channel generates first frequency response curve;
The secondary signal transmitting element, the plug that is used for by described earphone sends test massage to the second sound channel of described earphone;
The second sound receiving element is used for the sound that second sound channel that microphone by described earphone receives described earphone is sent;
The second curve generation unit, the sound that is used for sending according to described second sound channel generates second frequency response curve;
Judging unit is used for judging according to described first frequency response curve and described second frequency response curve whether first sound channel, second sound channel and the microphone of described earphone be normal.
Preferably, described judging unit comprises:
The curve matching module is used for first frequency response curve and second frequency response curve are mated with the frequency response curve of presetting respectively, and information outputs test result.
Preferably, described curve matching module is for mating at described first frequency response curve and the frequency response curve of presetting, and when described second frequency response curve did not match with the frequency response curve of presetting, the test result information of output was that the second sound channel of earphone is unusual;
Described curve matching module is for mating at described second frequency response curve and the frequency response curve of presetting, and when described first frequency response curve did not match with the frequency response curve of presetting, the test result information of output was that first sound channel of earphone is unusual;
Described curve matching module is used for not matching at described first frequency response curve and the frequency response curve of presetting, when described second frequency response curve does not match with default frequency response curve, the test result information of output be one of the microphone of earphone at least and two sound channels unusually.
Preferably, described judging unit comprises:
The curve matching module is used for first audio curve under the same frequency and second audio curve are compared, and information outputs test result.
Preferably, described curve matching module is used for differing between described first audio curve and second audio curve and is no more than default decibel value, and then Shu Chu test result information is that first sound channel and second sound channel are normal;
Described curve matching module is used for differing between described first audio curve and second audio curve and surpasses described default decibel value, and then Shu Chu test result information is test crash.
Preferably, described judging unit also comprises:
The environmental information receiver module is used for accepting the test environment information that the user imports;
Default curve acquisition module is used for according to described test environment information, obtains default frequency response curve.
Earphone method of testing and device that the embodiment of the invention provides need not to utilize professional test equipment to test earphone and microphone, have greatly saved cost, have improved production efficiency, have saved resource and have protected environment.In addition, the earphone method of testing that domestic consumer also can utilize the embodiment of the invention to provide is tested earphone and microphone, need not to have saved cost by professional equipment.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, below in conjunction with execution mode and accompanying drawing, the present invention is described in further details.At this, exemplary embodiment of the present invention and explanation thereof are used for explanation the present invention, but not as a limitation of the invention.
The embodiment of the invention provides a kind of earphone method of testing and device, and the present invention is described in detail below in conjunction with accompanying drawing.
Shown in Figure 1 is a kind of earphone method of testing flow chart that the embodiment of the invention provides, and as shown in Figure 1, described method comprises:
S101, the plug by described earphone sends test massage to first sound channel of described earphone.
In embodiments of the present invention, the earphone method of testing can realize by a portable terminal, as mobile phone or panel computer etc.When test earphone, the plug of earphone can be inserted in the earphone socket of portable terminal, the plug of portable terminal by described earphone sends test massage to first sound channel of described earphone, first sound channel can be one of the L channel of earphone or R channel, test signal can be the frequency sweep sound of 10Hz-10KHz, this moment earphone second sound channel sounding not.
Preferably, test signal can comprise three groups of frequency sweep sounds, is respectively the frequency sweep sound of 230Hz, 910Hz and 3KHz.
Preferably, in embodiments of the present invention, when earphone is tested, the test box that earphone can be put into a sealing sound insulation carries out, shown in Figure 2 is the structure chart of the test box that provides of the embodiment of the invention, as shown in Figure 2, test box can be the container of a sealing sound insulation, and external noise is eased down in the 30dB.The inside of test box can be provided with concave structure, so that the direction of fixed earphone and microphone and position, after earphone and microphone are put into test box, microphone can be placed on the centre of two earphones, and two earphones is placed towards microphone all.Preferably, the distance between microphone and the earphone is at the 3-5 millimeter, and the sound outlet of earphone and microphone are in the same airtight passage.In another embodiment of the present invention, for domestic consumer, possibly can't find the test box of complete sound insulation, so also can use general wooden chest, can or plastics box to replace, also earphone and microphone can be placed in the environment of other relative sound insulations, as in the room etc., where no matter be placed on, all need microphone is placed on the centre of two earphones, and two earphones are placed towards microphone all.
S102, the microphone by described earphone receive the sound that first sound channel of described earphone is sent, and the sound that sends according to described first sound channel generates first frequency response curve.
In embodiments of the present invention, after the plug of portable terminal by described earphone sends test massage to first sound channel of described earphone, first sound channel can be sounded according to test signal, this moment, portable terminal can utilize the microphone that carries on the earphone to receive the sound that first sound channel is sent, and the sound that sends according to described first sound channel generates first frequency response curve.
S103, the plug by described earphone sends test massage to the second sound channel of described earphone.
In embodiments of the present invention, the plug of portable terminal by described earphone sends test massage to the second sound channel of described earphone, second sound channel can be one of the L channel of earphone or R channel, and test signal can be the frequency sweep sound of 10Hz-10KHz, this moment earphone first sound channel sounding not.
S104, the microphone by described earphone receive the sound that the second sound channel of described earphone is sent, and generate second frequency response curve according to the sound that described second sound channel is sent.
In embodiments of the present invention, after the plug of portable terminal by described earphone sends test massage to the second sound channel of described earphone, second sound channel can be sounded according to test signal, this moment, portable terminal can utilize the microphone that carries on the earphone to receive the sound that second sound channel is sent, and generated second frequency response curve according to the sound that described second sound channel is sent.
S105 judges according to described first frequency response curve and described second frequency response curve whether first sound channel, second sound channel and the microphone of described earphone be normal.
In embodiments of the present invention, after the microphone that portable terminal carries by earphone receives the sound that sound that first sound channel sends and described second sound channel send, can handle the voice signal that receives, the sound that sends according to first sound channel generates first frequency response curve, the sound that sends according to described second sound channel simultaneously generates second frequency response curve, automatically compare the curve interval of setting afterwards, first frequency response curve and second frequency response curve are mated with the frequency response curve of presetting respectively, and information outputs test result.
Shown in Figure 3 is the default curve synoptic diagram of the 230Hz that provides of the embodiment of the invention, Fig. 4 and Fig. 5 are respectively first frequency response curve and the second frequency response curve schematic diagram of the 230Hz that the embodiment of the invention provides, as shown in Figure 3, default curve ranges is defined by two curve L1 and L2, the first frequency response curve L3 is between L1 and the L2 among Fig. 4, do not exceed the scope that L1 and L2 define, in other words, for each point on the L3, all smaller or equal to L1 and more than or equal to L2, therefore the first frequency response curve L3 mates with the default curve ranges that L1 and L2 define.The part of the second frequency response curve L4 has exceeded the scope that L1 and L2 define among Fig. 5, and in other words, the part point on the L4 is greater than L1, and therefore the default curve ranges that defines of the second frequency response curve L4 and L1 and L2 does not match.
If described first frequency response curve and default frequency response curve coupling, described second frequency response curve does not match with default frequency response curve, and then Shu Chu test result information is that the second sound channel of earphone is unusual;
If described second frequency response curve and default frequency response curve coupling, described first frequency response curve does not match with default frequency response curve, and then Shu Chu test result information is that first sound channel of earphone is unusual;
If described first frequency response curve does not match with the frequency response curve of presetting, described second frequency response curve does not match with the frequency response curve of presetting, then Shu Chu test result information both may be that microphone occurs unusually, also may be that first sound channel and second sound channel all occur unusually, also possibility microphone, first sound channel and second sound channel all occur unusually, need further detect this moment to earphone, to determine final test result.
Preferably, when test signal comprises 230Hz, 910Hz and these three groups of frequency sweep sounds of 3KHz, portable terminal can send this three groups of frequency sweep sounds to each sound channel respectively, and receive three groups of frequency sweep sounds that each sound channel is sent respectively by earphone, each sound channel can be distinguished corresponding three groups of frequency response curves like this, portable terminal mates these three groups of frequency response curves and three groups of frequency response curves presetting respectively, if arbitrary group does not match, thinks that then this sound channel and default frequency response curve do not match.
Preferably, in embodiments of the present invention, also can directly compare first audio curve under the same frequency and second audio curve, if differing between first audio curve and second audio curve is no more than 3db, then Shu Chu test result information is that first sound channel and second sound channel are normal, if differing between first audio curve and second audio curve surpasses 3db, then Shu Chu test result information is test crash, needs further first sound channel and second sound channel to be detected.
In embodiments of the present invention, for different test environments, default frequency response curve is also also inequality.Respectively first frequency response curve and second frequency response curve are being mated with the frequency response curve of presetting, before the information that outputs test result, portable terminal can be accepted the test environment information of user's input earlier, test environment information can comprise the material information of test box, as metal, wooden, plastics or cement, the concrete size that also can comprise test box, and the range information between earphone and the microphone.
After portable terminal gets access to the test environment information of user's input, can select the default frequency response curve corresponding with current test environment according to described test environment information, to guarantee precision of test result.
In another embodiment of the present invention, preferably, portable terminal can also be tested the noise of earphone, portable terminal sent test massage to first sound channel of described earphone and second sound channel and was mute signal this moment, portable terminal still utilizes the microphone on the earphone to scan 230Hz, 910Hz and three groups of sound of 3KHz of each sound channel output respectively, whether has noise with this each sound channel of judging earphone.
The earphone method of testing that the embodiment of the invention provides; only just can directly set up the test macro of automation by portable terminal and earphone; improved the testing efficiency of earphone; need not to utilize professional test equipment to test earphone and microphone; reduced the waste that a plurality of high price test macro runnings cause; greatly saved cost, improved production efficiency and output, saved resource and protected environment.In addition, earphone method of testing and device that domestic consumer also can utilize the embodiment of the invention to provide are tested earphone and microphone, need not to have saved cost by professional equipment.
Embodiment two
Shown in Figure 6 is a kind of earphone method of testing flow chart that the embodiment of the invention provides, and as shown in Figure 6, described method comprises:
S601 detects the plug whether earphone is arranged and inserts.
In embodiments of the present invention, in order further to improve the testing efficiency of earphone, portable terminal can judge when begin to carry out the earphone test voluntarily, preferably, whether portable terminal can detect earphone socket has headset plug to insert, and inserts if detect the plug of earphone, then begins execution in step S602-S606, do not insert if detect the plug of earphone, then do not detect.
In another embodiment of the present invention, for domestic consumer, also can manually import the order that begins to detect by the user, portable terminal receives the test sign on of user's input, and then beginning execution in step S602-S606.
S602, the plug by described earphone sends test massage to first sound channel of described earphone;
S603, the microphone by described earphone receive the sound that first sound channel of described earphone is sent, and the sound that sends according to described first sound channel generates first frequency response curve;
S604, the plug by described earphone sends test massage to the second sound channel of described earphone;
S605, the microphone by described earphone receive the sound that the second sound channel of described earphone is sent, and generate second frequency response curve according to the sound that described second sound channel is sent;
S606 judges according to described first frequency response curve and described second frequency response curve whether first sound channel, second sound channel and the microphone of described earphone be normal.
In embodiments of the present invention, step S602-S606 is identical with step S101-S105 among Fig. 1, so do not repeat them here.
The earphone method of testing that the embodiment of the invention provides; portable terminal can begin the earphone testing process automatically after detecting the headset plug insertion; further improved the testing efficiency of earphone; simultaneously only just can directly set up the test macro of automation by portable terminal and earphone; improved the testing efficiency of earphone; need not to utilize professional test equipment to test earphone and microphone; reduced the waste that a plurality of high price test macro runnings cause; greatly saved cost; improved production efficiency and output, saved resource and protected environment.In addition, earphone method of testing and device that domestic consumer also can utilize the embodiment of the invention to provide are tested earphone and microphone, need not to have saved cost by professional equipment.
Embodiment three
Shown in Figure 7 is a kind of earphone testing apparatus block diagram that the embodiment of the invention provides, and as shown in Figure 7, earphone testing apparatus 700 comprises:
First signal transmitting unit 701, the plug that is used for by described earphone sends test massage to first sound channel of described earphone.
In embodiments of the present invention, the earphone testing apparatus can be a portable terminal, as mobile phone or panel computer etc.When test earphone, the plug of earphone can be inserted in the earphone socket of portable terminal, the plug of first signal transmitting unit 701 by described earphone sends test massage to first sound channel of described earphone, first sound channel can be one of the L channel of earphone or R channel, test signal can be the frequency sweep sound of 10Hz-10KHz, this moment earphone second sound channel sounding not.
Preferably, test signal can comprise three groups of frequency sweep sounds, is respectively the frequency sweep sound of 230Hz, 910Hz and 3KHz.
Preferably, in embodiments of the present invention, when earphone is tested, the test box that earphone can be put into a sealing sound insulation carries out, shown in Figure 2 is the structure chart of the test box that provides of the embodiment of the invention, as shown in Figure 2, test box can be the container of a sealing sound insulation, and external noise is eased down in the 30dB.The inside of test box can be provided with concave structure, so that the direction of fixed earphone and microphone and position, after earphone and microphone are put into test box, microphone can be placed on the centre of two earphones, and two earphones is placed towards microphone all.Preferably, the distance between microphone and the earphone is at the 3-5 millimeter, and the sound outlet of earphone and microphone are in the same airtight passage.
In another embodiment of the present invention, for domestic consumer, possibly can't find the test box of complete sound insulation, so also can use general wooden chest, can or plastics box to replace, also earphone and microphone can be placed in the environment of other relative sound insulations, as in the room etc., where no matter be placed on, all need microphone is placed on the centre of two earphones, and two earphones are placed towards microphone all.
The first sound receiving element 702 is used for the sound that first sound channel that microphone by described earphone receives described earphone is sent.
In embodiments of the present invention, after the plug of first signal transmitting unit 701 by described earphone sends test massage to first sound channel of described earphone, first sound channel can be sounded according to test signal, and this moment, the first sound receiving element 702 can utilize the microphone that carries on the earphone to receive the sound that first sound channel is sent.
The first curve generation unit 706, the sound that is used for sending according to first sound channel generates first frequency response curve.
Secondary signal transmitting element 703, the plug that is used for by described earphone sends test massage to the second sound channel of described earphone.
In embodiments of the present invention, the plug of secondary signal transmitting element 703 by described earphone sends test massage to the second sound channel of described earphone, second sound channel can be one of the L channel of earphone or R channel, test signal can be the frequency sweep sound of 10Hz-10KHz, this moment earphone first sound channel sounding not.
The second sound receiving element 704 is used for the sound that second sound channel that microphone by described earphone receives described earphone is sent.
In embodiments of the present invention, after the plug of secondary signal transmitting element 703 by described earphone sends test massage to the second sound channel of described earphone, second sound channel can be sounded according to test signal, and this moment, the second sound receiving element 704 can utilize the microphone that carries on the earphone to receive the sound that second sound channel is sent.
The second curve generation unit 707, the sound that is used for sending according to described second sound channel generates second frequency response curve.
Judging unit 705 is used for judging according to described first frequency response curve and described second frequency response curve whether first sound channel, second sound channel and the microphone of described earphone be normal.
In embodiments of the present invention, after the first curve generation unit 706 and the second curve generation unit 707 received the sound that sound that first sound channel sends and described second sound channel send, judging unit 705 can be handled the frequency response curve that the first curve generation unit 706 and the second curve generation unit 707 generate.
Shown in Figure 8 is the block diagram of the judging unit 705 that provides of the embodiment of the invention, and as shown in Figure 8, judging unit 705 comprises:
Curve matching module 801 for comparing the curve interval of setting automatically, mates first frequency response curve and second frequency response curve respectively with the frequency response curve of presetting, information outputs test result.
As shown in Figure 3, default curve ranges is defined by two curve L1 and L2, the first frequency response curve L3 is between L1 and the L2 among Fig. 4, do not exceed the scope that L1 and L2 define, in other words, therefore for each point on the L3, all smaller or equal to L1 and more than or equal to L2, the first frequency response curve L3 mates with the default curve ranges that L1 and L2 define.The part of the second frequency response curve L4 has exceeded the scope that L1 and L2 define among Fig. 5, and in other words, the part point on the L4 is greater than L1, and therefore the default curve ranges that defines of the second frequency response curve L4 and L1 and L2 does not match.
If curve matching module 801 is judged first frequency response curves and default frequency response curve coupling, second frequency response curve does not match with default frequency response curve, and then Shu Chu test result information is that the second sound channel of earphone is unusual;
If curve matching module 801 is judged second frequency response curves and default frequency response curve coupling, described first frequency response curve does not match with default frequency response curve, and then Shu Chu test result information is that first sound channel of earphone is unusual;
If curve matching module 801 judges first frequency response curves and default frequency response curve and do not match, described second frequency response curve does not match with default frequency response curve, and then Shu Chu test result information is that the microphone of earphone is unusual.When first frequency response curve and second frequency response curve all do not match with default frequency response curve, both may be that microphone occurs unusually, also may be that first sound channel and second sound channel all occur unusually, need further detect this moment to earphone, to determine final test result.
Preferably, when test signal comprises 230Hz, during these three groups of frequency sweep sounds of 910Hz and 3KHz, first signal transmitting unit 701 and secondary signal transmitting element 703 can send this three groups of frequency sweep sounds to each sound channel respectively, the first sound receiving element 702 and the second sound receiving element 704 receive three groups of frequency sweep sounds that each sound channel is sent respectively by earphone, each sound channel can be distinguished corresponding three groups of frequency response curves like this, curve matching module 801 carries out matching ratio with these three groups of frequency response curves and three groups of frequency response curves presetting respectively, if arbitrary group does not match, think that then this sound channel and default frequency response curve do not match.
Preferably, in embodiments of the present invention, curve matching module 801 also can directly compare first audio curve under the same frequency and second audio curve, if differing between first audio curve and second audio curve is no more than 3db, then Shu Chu test result information is that first sound channel and second sound channel are normal, if differing between first audio curve and second audio curve surpasses 3db, then Shu Chu test result information is test crash, needs further first sound channel and second sound channel to be detected.
In embodiments of the present invention, for different test environments, default frequency response curve is also also inequality.Shown in Figure 9 is the block diagram of the judging unit 705 that provides of the embodiment of the invention, and as shown in Figure 9, judging unit 705 comprises:
Curve matching module 901 for comparing the curve interval of setting automatically, mates first frequency response curve and second frequency response curve respectively with the frequency response curve of presetting, information outputs test result.
In embodiments of the present invention, curve matching module 901 is identical with curve matching module 801 among Fig. 8, so do not repeat them here.
Environmental information receiver module 902 is used for accepting the test environment information that the user imports;
Default curve acquisition module 903 is used for according to described test environment information, obtains default frequency response curve.
In embodiments of the present invention, curve matching module 901 is mating first frequency response curve and second frequency response curve respectively with the frequency response curve of presetting, before the information that outputs test result, environmental information receiver module 902 can be accepted the test environment information of user's input earlier, test environment information can comprise the material information of test box, as metal, wooden, plastics or cement, also can comprise the concrete size of test box, and the range information between earphone and the microphone.
After environmental information receiver module 902 gets access to the test environment information of user's input, default curve acquisition module 903 can be according to described test environment information, select the default frequency response curve corresponding with current test environment, to guarantee precision of test result.
In another embodiment of the present invention, preferably, earphone testing apparatus 700 can also be tested the noise of earphone, first signal transmitting unit 701 and secondary signal transmitting element 703 sent test massage to first sound channel of described earphone and second sound channel respectively and were mute signal this moment, the first sound receiving element 702 and the second sound receiving element 704 still utilize the microphone on the earphone to scan 230Hz, 910Hz and three groups of sound of 3KHz of each sound channel output respectively, and judging unit 705 judges whether each sound channel of earphone exists noise.
The earphone testing apparatus that the embodiment of the invention provides; only just can directly set up the test macro of automation by portable terminal and earphone; improved the testing efficiency of earphone; need not to utilize professional test equipment to test earphone and microphone; reduced the waste that a plurality of high price test macro runnings cause; greatly saved cost, improved production efficiency and output, saved resource and protected environment.In addition, earphone method of testing and device that domestic consumer also can utilize the embodiment of the invention to provide are tested earphone and microphone, need not to have saved cost by professional equipment.
Embodiment four
Shown in Figure 10 is a kind of earphone testing apparatus block diagram that the embodiment of the invention provides, and as shown in figure 10, earphone testing apparatus 1000 comprises:
Whether plug detecting unit 1001 is for detection of having the plug of earphone to insert.
In embodiments of the present invention, in order further to improve the testing efficiency of earphone, portable terminal can judge when begin to carry out the earphone test voluntarily, preferably, whether plug detecting unit 1001 can detect earphone socket has headset plug to insert, and inserts if detect the plug of earphone, then begins to detect earphone, do not insert if detect the plug of earphone, then do not detect.
First signal transmitting unit 1002, the plug that is used for by described earphone sends test massage to first sound channel of described earphone;
The first sound receiving element 1003 is used for the sound that first sound channel that microphone by described earphone receives described earphone is sent;
The first curve generation unit 1007, the sound that is used for sending according to first sound channel generates first frequency response curve;
Secondary signal transmitting element 1004, the plug that is used for by described earphone sends test massage to the second sound channel of described earphone;
The second sound receiving element 1005 is used for the sound that second sound channel that microphone by described earphone receives described earphone is sent;
The second curve generation unit 1008, the sound that is used for sending according to second sound channel generates second frequency response curve;
Judging unit 1006 is used for judging according to described first frequency response curve and described second frequency response curve whether first sound channel, second sound channel and the microphone of described earphone be normal.
In embodiments of the present invention, first signal transmitting unit 1002, the first sound receiving element 1003, secondary signal transmitting element 1004, the second sound receiving element 1005, judging unit 1006, the first curve generation unit 1007 and the second curve generation unit 1008 are identical with the second curve generation unit 707 with first signal transmitting unit 701, the first sound receiving element 702, secondary signal transmitting element 703, the second sound receiving element 704, judging unit 705, the first curve generation unit 706 among Fig. 7, so do not repeat them here.
The earphone testing apparatus that the embodiment of the invention provides; portable terminal can begin the earphone testing process automatically after detecting the headset plug insertion; further improved the testing efficiency of earphone; simultaneously only just can directly set up the test macro of automation by portable terminal and earphone; improved the testing efficiency of earphone; need not to utilize professional test equipment to test earphone and microphone; reduced the waste that a plurality of high price test macro runnings cause; greatly saved cost; improved production efficiency and output, saved resource and protected environment.In addition, earphone method of testing and device that domestic consumer also can utilize the embodiment of the invention to provide are tested earphone and microphone, need not to have saved cost by professional equipment.
Embodiment five
Shown in Figure 11 is a kind of earphone testing apparatus block diagram that the embodiment of the invention provides, and as shown in figure 11, earphone testing apparatus 1100 comprises:
Test instruction receiving element 1101 is used for receiving the test sign on that the user imports.
In embodiments of the present invention, in order further to improve the testing efficiency of earphone, portable terminal can judge when begin to carry out the earphone test voluntarily, preferably, test instruction receiving element 1101, be used for receiving the test sign on of user's input, after the test sign on that receives user's input, begin to detect earphone.
First signal transmitting unit 1102, the plug that is used for by described earphone sends test massage to first sound channel of described earphone;
The first sound receiving element 1103 is used for the sound that first sound channel that microphone by described earphone receives described earphone is sent;
The first curve generation unit 1107, the sound that is used for sending according to first sound channel generates first frequency response curve;
Secondary signal transmitting element 1104, the plug that is used for by described earphone sends test massage to the second sound channel of described earphone;
The second sound receiving element 1105 is used for the sound that second sound channel that microphone by described earphone receives described earphone is sent;
The second curve generation unit 1108, the sound that is used for sending according to second sound channel generates second frequency response curve;
Judging unit 1106 is used for judging according to described first frequency response curve and described second frequency response curve whether first sound channel, second sound channel and the microphone of described earphone be normal.
In embodiments of the present invention, first signal transmitting unit 1102, the first sound receiving element 1103, secondary signal transmitting element 1104, the second sound receiving element 1105, judging unit 1106, the first curve generation unit 1107 and the second curve generation unit 1108 are identical with the second curve generation unit 707 with first signal transmitting unit 701, the first sound receiving element 702, secondary signal transmitting element 703, the second sound receiving element 704, judging unit 705, the first curve generation unit 706 among Fig. 7, so do not repeat them here.
The earphone testing apparatus that the embodiment of the invention provides; portable terminal can begin the earphone testing process automatically after the test instruction that receives user's input; further improved the testing efficiency of earphone; simultaneously only just can directly set up the test macro of automation by portable terminal and earphone; improved the testing efficiency of earphone; need not to utilize professional test equipment to test earphone and microphone; reduced the waste that a plurality of high price test macro runnings cause; greatly saved cost; improved production efficiency and output, saved resource and protected environment.In addition, earphone method of testing and device that domestic consumer also can utilize the embodiment of the invention to provide are tested earphone and microphone, need not to have saved cost by professional equipment.
In addition, typically, portable terminal of the present invention can be various hand-held terminal devices, for example mobile phone, PDA(Personal Digital Assistant) etc., so protection scope of the present invention should not be defined as the portable terminal of certain particular type.
In addition, the method according to this invention can also be implemented as the computer program of being carried out by CPU.When this computer program is carried out by CPU, carry out the above-mentioned functions that limits in the method for the present invention.
In addition, said method step and system unit also can utilize controller and be used for storage and make controller realize that the computer readable storage devices of the computer program of above-mentioned steps or Elementary Function realizes.
Those skilled in the art will also understand is that, may be implemented as electronic hardware, computer software or both combinations in conjunction with the described various illustrative logical blocks of disclosure herein, module, circuit and algorithm steps.For this interchangeability of hardware and software clearly is described, with regard to the function of various exemplary components, square, module, circuit and step it has been carried out general description.This function is implemented as software or is implemented as hardware and depends on concrete application and the design constraint that imposes on whole system.Those skilled in the art can realize described function in every way at every kind of concrete application, but this realization determines should not be interpreted as causing departing from the scope of the present invention.
Can utilize the following parts that are designed to carry out function described here to realize or carry out in conjunction with the described various illustrative logical blocks of disclosure herein, module and circuit: general processor, digital signal processor (DSP), application-specific integrated circuit (ASIC) (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete nextport hardware component NextPort or any combination of these parts.General processor can be microprocessor, but replacedly, processor can be any conventional processors, controller, microcontroller or state machine.Processor also may be implemented as the combination of computing equipment, and for example, the combination of DSP and microprocessor, a plurality of microprocessor, one or more microprocessor are in conjunction with DSP nuclear or any other this configuration.
In the software module that can directly be included in the hardware, be carried out by processor in conjunction with the step of the described method of disclosure herein or algorithm or in the two the combination.Software module can reside in the storage medium of RAM memory, flash memory, ROM memory, eprom memory, eeprom memory, register, hard disk, removable dish, CD-ROM or any other form known in the art.Exemplary storage medium is coupled to processor, makes processor to read information from this storage medium or writes information to this storage medium.In an alternative, described storage medium can be integral to the processor together.Processor and storage medium can reside among the ASIC.ASIC can reside in the user terminal.In an alternative, processor and storage medium can be used as discrete assembly and reside in the user terminal.
In one or more exemplary design, described function can realize in hardware, software, firmware or its combination in any.If in software, realize, then described function can be transmitted on computer-readable medium or by computer-readable medium as one or more instructions or code storage.Computer-readable medium comprises computer-readable storage medium and communication media, and this communication media includes any medium that helps computer program is sent to from a position another position.Storage medium can be can be by any usable medium of universal or special computer access.As an example and nonrestrictive, this computer-readable medium can comprise RAM, ROM, EEPROM, CD-ROM or other optical disc memory apparatus, disk storage device or other magnetic storage apparatus, or can be used for carrying or file layout is the required program code of instruction or data structure and can be by any other medium of universal or special computer or universal or special processor access.In addition, any connection can suitably be called computer-readable medium.For example, if use coaxial cable, optical fiber cable, twisted-pair feeder, Digital Subscriber Line or such as the wireless technology of infrared ray, radio and microwave come from the website, server or other remote source send software, then above-mentioned coaxial cable, optical fiber cable, twisted-pair feeder, DSL or include definition at medium such as the wireless technology of infrared first, radio and microwave.As used herein, disk and CD comprise compact disk (CD), laser disk, CD, digital versatile disc (DVD), floppy disk, Blu-ray disc, and wherein disk magnetically reproduces data usually, and cd-rom using laser optics ground reproduces data.The combination of foregoing also should be included in the scope of computer-readable medium.
Although the disclosed content in front shows exemplary embodiment of the present invention, should be noted that under the prerequisite of the scope of the present invention that does not deviate from the claim restriction, can carry out multiple change and modification.Function, step and/or action according to the claim to a method of inventive embodiments described herein do not need to carry out with any particular order.In addition, although element of the present invention can be with individual formal description or requirement, also it is contemplated that a plurality of, unless clearly be restricted to odd number.
Above-described embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the above only is the specific embodiment of the present invention; and be not intended to limit the scope of the invention; within the spirit and principles in the present invention all, any modification of making, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.