CN103118191B - Using control method and mobile terminal for iPhone wire control earphone - Google Patents
Using control method and mobile terminal for iPhone wire control earphone Download PDFInfo
- Publication number
- CN103118191B CN103118191B CN201310031429.2A CN201310031429A CN103118191B CN 103118191 B CN103118191 B CN 103118191B CN 201310031429 A CN201310031429 A CN 201310031429A CN 103118191 B CN103118191 B CN 103118191B
- Authority
- CN
- China
- Prior art keywords
- earphone
- iphone
- voltage
- volume
- wire control
- 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.)
- Active
Links
Landscapes
- Telephone Function (AREA)
Abstract
The invention discloses a using control method and a mobile terminal for an iPhone wire control earphone. The method includes: detecting whether an earphone with a microphone is inserted or not, and judging whether a microphone channel of the earphone is in an open circuit state or not; controlling voltage of a microphone of the iPhone wire control earphone and input/output states of a configuration pin of an earphone detecting circuit to enable the iPhone wire control earphone to enter a talk mode or a music mode; enabling a left sound channel/right sound channel, the microphone and a HOOK button of the iPhone wire control earphone in the talk mode to enter working states; controlling the mobile terminal to answer/hang up calls by the HOOK button, and enabling the microphone to normally work; enabling the left sound channel/right sound channel, a volume+button/volume-button and the HOOK button of the iPhone wire control earphone to enter working states in the music mode; controlling the mobile terminal to play/pause music by the HOOK button; and enabling the iPhone wire control earphone to be capable of being recognized by non-iPhone mobile terminals and functional buttons of the iPhone wire control earphone to be capable of working.
Description
Technical field
The present invention relates to mobile terminal application, in particular a kind of use control method of iPhone wire control earphone and mobile terminal thereof.
Background technology
Iphone mobile phone because its function is many, intelligence degree is high, easy to use, be subject to more and more user and buy use.Every money iPhone mobile phone is all equipped with its special accessory, as iPhone wire control earphone, pad pasting, outer casing protective sleeve etc.
Judge in prior art whether earphone inserts the voltage levels mainly judging to detect pin DET, please refer to Fig. 1 and Fig. 2, Fig. 1 is prior art earphone detection circuit figure, annexation as shown in Figure 1, wherein the 6th pin of earphone detection circuit 10 is a shell fragment, and it connects supply pin VS by a pull-up resistor R1; The resistance of resistance R1 is 1M.When earphone (plug portion of earphone is only shown in figure) does not insert, mobile terminal provides the voltage V of 1.8V to the supply pin VS of earphone detection circuit 10
vS, because the 6th pin of earphone detection circuit 10 is unsettled, then the voltage detected on pin DET is also 1.8V.Now mobile terminal detects that the voltage detecting pin DET is high level, judges that earphone does not insert.When earphone inserts, the microphone of earphone, earth terminal, R channel, L channel respectively corresponding the 1st pin with earphone detection circuit 10, the 2nd pin, the 3rd pin, the 4th pin are connected, and the L channel of earphone is also connected with the 5th pin of earphone detection circuit; 1st pin of earphone detection circuit 10, the 3rd pin, the 4th pin are connected respectively the MIC(microphone of mobile terminal) end (comprising MIC+, MIC-), R(R channel), L(L channel) transmit corresponding audio signal.Insertion due to earphone makes shell fragment contact with the 5th pin, and the 6th pin being equivalent to earphone detection circuit 10 is all connected with the L channel of earphone with Qi 4 pin.Due to the impedance R of this L channel
lbe 32 ohm, be equivalent to the 6th pin ground connection, then detect the voltage on pin DET
, now mobile terminal detects that the voltage detecting pin DET is low level, judges that earphone inserts.
Earphone detection circuit 10 basic simlarity of mobile terminal (comprising iphone mobile phone), but iPhone wire control earphone only adaptive iphone mobile phone, other mobile terminals can not detect whether iPhone wire control earphone is inserted or inserted rear section button and can not use.This is because be provided with a special IC in iPhone wire control earphone.This IC connects with the microphone (MIC) of iPhone wire control earphone, different signals can be produced according to the operation such as the volume+key to iPhone wire control earphone, volume-key, HOOK key, be sent in iPhone mobile phone and differentiate, thus realize that corresponding volume increases, volume reduces, function switches.The existence of this IC makes the resistance value on the microphone path of iPhone wire control earphone be 3.97M, and the resistance value of general common headphones on microphone path is 0.7K ~ 2.2K.If iPhone wire control earphone to be inserted other mobile terminals, then microphone path is equivalent to open circuit close to the large resistance of 4M, the microphone path of iPhone wire control earphone is disconnected and causes it to use.The iPhone wire control earphone why Here it is has can only be its supporting iPhone mobile phone uses, and can not the mobile phone of compatible other types.Some mobile terminals may detect that iPhone wire control earphone is inserted when inserting iPhone wire control earphone, but but can not use the corresponding function of iPhone wire control earphone; Some mobile terminals can identify iPhone wire control earphone and be used for listening to the music, but the volume+key of iPhone wire control earphone, volume-key can not use.These problems are all that described special IC causes, and substantially reduce the compatibility of iPhone wire control earphone like this, bring inconvenience to the use of user, reduce the Experience Degree of user.
Therefore, prior art has yet to be improved and developed.
Summary of the invention
The technical problem to be solved in the present invention is, for the above-mentioned defect of prior art, a kind of use control method and mobile terminal thereof of iPhone wire control earphone are provided, are intended to solve the problem that cannot normally use its corresponding function, iPhone wire control earphone compatible poor after existing iPhone wire control earphone inserts mobile terminal.
The technical scheme that technical solution problem of the present invention adopts is as follows:
A use control method for iPhone wire control earphone, it comprises the following steps:
A, mobile terminal detect the earphone inserted and whether are with microphone, when mobile terminal detects that the earphone of band microphone inserts, judge whether the microphone path of earphone is open-circuit condition;
B, when the microphone path of earphone judging to insert is open-circuit condition, identify that the earphone inserted is iPhone wire control earphone, mobile terminal controls the configuration pin of the earphone detection circuit of voltage swing on the microphone of described iPhone wire control earphone and mobile terminal I/O state according to the operational order of input makes iPhone wire control earphone enter call mode or music pattern;
C, after iPhone wire control earphone enters call mode, control the left/right sound channel of iPhone wire control earphone, microphone, HOOK key enter operating state; HOOK key control mobile terminal receiving/hang-up phone, microphone normally works;
D, after iPhone wire control earphone enters music pattern, mobile terminal detects volume+key/volume-key, and control the left/right sound channel of iPhone wire control earphone, volume+key/volume-key, HOOK key enter operating state; HOOK key control mobile terminal playing/time-out music.
Described iPhone wire control earphone uses control method, and wherein, in described step B, the step that mobile terminal control iPhone wire control earphone enters call mode specifically comprises:
B1, mobile terminal input the first voltage from the reference voltage pin of earphone detection circuit, the configuration pin of earphone detection circuit is set to output state and generates the second voltage-drop loading according to the first voltage on the microphone of iPhone wire control earphone, activate the microphone path opening iPhone wire control earphone, Mike's wind energy of iPhone wire control earphone normally works;
B2, continue input first voltage judge whether the scheduled time reaches, after the scheduled time reaches, described configuration pin is set to input state, keeps the state that the microphone of iPhone wire control earphone is current.
Described iPhone wire control earphone uses control method, and wherein, in described step B, mobile terminal control iPhone wire control earphone enters music pattern and specifically comprises:
The configuration pin of earphone detection circuit is set to input state by B11, mobile terminal;
B22, judge whether the scheduled time reaches, the reference voltage pin from earphone detection circuit after the scheduled time reaches inputs the first voltage and is loaded on the microphone of iPhone wire control earphone.
Described iPhone wire control earphone uses control method, and wherein, enter in the process of call mode in iPhone wire control earphone, when pressing HOOK key by mistake, the voltage on the microphone of iPhone wire control earphone becomes 0V, and described configuration pin keeps input state; Repeat step B1, B2 when mobile terminal detects the low level on configuration pin, again enter call mode and the microphone of iPhone wire control earphone is normally worked.
Described iPhone wire control earphone uses control method, and wherein, in described step D, when pressing volume+key or volume-key, mobile terminal correspondingly detects a volume voltage and judge on described configuration pin; When described volume voltage is in the first volume voltage range, judge that this volume voltage is upper volume voltage, the function performing volume+key increases volume; When described volume voltage is in the second volume voltage range, judge that this volume voltage is lower volume voltage, the function performing volume-key reduces volume; Under described upper volume voltage ratio, volume voltage is large.
Described iPhone wire control earphone uses control method, wherein, and the minimum value 100mV larger than the minimum value of the second volume voltage range of described first volume voltage range; The maximum 100mV larger than the maximum of the second volume voltage range of described first volume voltage range; The large 100mV of volume voltage under described upper volume voltage ratio.
Described iPhone wire control earphone uses control method, and wherein, described first voltage is 1.8V, and described second voltage is 2.6V.
Described iPhone wire control earphone uses control method, and wherein, the described scheduled time is 10mS.
Described iPhone wire control earphone uses control method, and wherein, described first volume voltage range is 1.4V ~ 1.5V, and described second volume voltage range is 1.3V ~ 1.4V.
A kind of mobile terminal, it comprises:
Earphone detection circuit;
Voltage module, for providing the first voltage to the reference voltage pin of earphone detection circuit, arranges the first volume voltage range and the second volume voltage range;
State setting module, for being set to input state or output state by the configuration pin of earphone detection circuit;
Timer, for setting the scheduled time;
Judge module, for judging whether the scheduled time reaches; Whether the microphone path judging earphone is open-circuit condition; And the volume voltage that the configuration pin of earphone detection circuit detects and the first volume voltage range and the second volume voltage range are compared, judge the type of volume voltage;
Detection module, for detecting the voltage of each pin of earphone whether with microphone, Test earphone testing circuit of insertion and exporting;
Described voltage module, detection module, state setting module be frames connecting with headphone testing circuit respectively, and described voltage module, detection module, state setting module, timer be connection judgment module respectively.
IPhone wire control earphone provided by the present invention uses control method, when the earphone that mobile terminal judges insertion is iPhone wire control earphone, correspondingly control the I/O state of the configuration pin of the earphone detection circuit of voltage swing on the microphone of iPhone wire control earphone and mobile terminal according to the operational order of input, make iPhone wire control earphone enter call mode or music pattern; Control the left/right sound channel of iPhone wire control earphone in the talk mode, microphone, HOOK key enter operating state; HOOK key control mobile terminal receiving/hang-up phone, microphone normally works; Mobile terminal can detect volume+key/volume-key in music mode, and control the left/right sound channel of iPhone wire control earphone, volume+key/volume-key, HOOK key enter operating state; HOOK key control mobile terminal playing/time-out music, its control method is simple, improves the compatibility of iPhone wire control earphone.
Accompanying drawing explanation
Fig. 1 is prior art earphone detection circuit figure.
Fig. 2 is the plug pin schematic diagram of earphone in Fig. 1.
Fig. 3 is that iPhone wire control earphone provided by the invention uses control method flow chart.
Fig. 4 is the structural representation of mobile terminal provided by the invention.
Embodiment
The resistance value on its microphone path is increased based on the special IC arranged in existing iPhone wire control earphone, make iPhone wire control earphone can not compatible other mobile terminals except iPhone product, or the problem that when inserting other mobile terminals, its function can not realize completely.The present invention is learnt by actual test, after a voltage-drop loading being greater than 2.5V is to the microphone of iPhone wire control earphone, large resistance value on its microphone path correspondingly will become 1.2K, within the scope of the resistance value that common headphones is corresponding, now can activate this IC, the microphone path being equivalent to open iPhone wire control earphone makes Mike's wind energy normally work, so iPhone wire control earphone insert other mobile terminal after its microphone just can use.Draw through overtesting, first the microphone of iPhone wire control earphone is loaded to the voltage being greater than 2.5V, microphone can be made to keep normal work as long as the voltage ensureing on this microphone after keeping a period of time is greater than 1.5V.Based on above-mentioned thinking, the invention provides a kind of use control method and mobile terminal thereof of iPhone wire control earphone, on the basis adopting existing earphone detection circuit, voltage and the input/output state thereof of some pins in earphone detection circuit is controlled by mobile terminal, can solve mobile terminal cannot the problem of compatible iPhone wire control earphone, and all functions button after inserting in iPhone wire control earphone can realize the function of its correspondence.For making object of the present invention, technical scheme and advantage clearly, clearly, developing simultaneously referring to accompanying drawing, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Please refer to Fig. 1, Fig. 2 and Fig. 3, on the basis of the plug pin schematic diagram of the earphone detection circuit 10 shown in composition graphs 1 of the present invention and the earphone shown in Fig. 2, change mobile terminal to the control method of earphone detection circuit 10, the object improving the compatibility of iPhone wire control earphone and mobile terminal, the function button in iPhone wire control earphone can normally be used.It should be noted that the mobile terminal mentioned in the present invention refers to other mobile terminals of non-iPhone product.Because iPhone wire control earphone is the same with the plug pin of earphone in Fig. 2, when setting forth the present embodiment below, namely described iPhone wire control earphone is the earphone shown in Fig. 1 and Fig. 2.Fig. 3 is that iPhone wire control earphone provided by the invention uses control method flow chart, and it comprises the following steps:
Step S10, mobile terminal detect the earphone inserted and whether are with microphone, when mobile terminal detects that the earphone of band microphone inserts, judge whether the microphone path of earphone is open-circuit condition.
Whether mobile terminal Test earphone inserts identical with the mode in background technology, and therefore not to repeat here.
This step is for identifying whether the earphone of insertion is iPhone wire control earphone.Because the earphone had is not with microphone, when earphone inserts, mobile terminal needs first to judge whether the earphone inserted is with microphone.Headset plug not with microphone does not have the microphone contact in Fig. 2, then the signal that the 1st pin of earphone detection circuit detects may be ground, and the voltage namely on described 1st pin is 0V.Common earphone can detect a magnitude of voltage on described 1st pin.Judge that the voltage on described 1st pin can identify whether as being with the earphone of microphone to insert.The characteristic having large resistance owing to only having the microphone path of iPhone wire control earphone at present and cause it to open a way, then needs to continue to judge whether microphone path is whether open-circuit condition, i.e. described 1st pin be unsettled and identifies that the earphone of insertion is common earphone or iPhone wire control earphone.
Step S20, when the microphone path of earphone judging to insert is open-circuit condition, identify that the earphone inserted is iPhone wire control earphone, mobile terminal controls the configuration pin of the earphone detection circuit of voltage swing on the microphone of described iPhone wire control earphone and mobile terminal I/O state according to the operational order of input makes iPhone wire control earphone enter call mode or music pattern
When microphone path be not open-circuit condition then for common headphones, its using method and operation principle are prior art.The present invention mainly improves the use control method of iPhone wire control earphone, does not set forth common headphones.When earphone does not insert, the voice-frequency channel of mobile terminal is defaulted as hands-free mode, is sounded by the loudspeaker on mobile terminal, and microphone gathers the voice of user; When earphone inserts, the voice-frequency channel of mobile terminal switches to headset mode, is sounded by the left/right ear of earphone, i.e. left/right sound channel, and microphone gathers the voice of user.
When identify insert be iPhone wire control earphone after, user can carry out conversing or listen to the music, broadcast etc., and the keypress function of different situation iPhone wire control earphone is different, and the iPhone wire control earphone after inserting is divided into call mode and music pattern by the present invention for this reason.IPhone wire control earphone is used for dialing or receiving calls in the talk mode, needs the left/right sound channel, microphone, the HOOK key that use iPhone wire control earphone; Volume+key, volume-key do not need when conversing to use.In music mode iPhone wire control earphone for playing music, listen to the radio programme, radio reception etc., need the left/right sound channel, volume+key, volume-key, the HOOK key that use iPhone wire control earphone; Microphone does not need when listening to the music to use.In the specific implementation, if user needs to answer or call, mobile terminal acquiescence Answer Key/dial key is pressed (key-type mobile terminal) or clicks (touch-screen type) and is and enters call mode; End of conversation key is pressed or clicks, and thinks and exits call mode, enters music pattern.If user needs listen to the music or broadcast, mobile terminal default musical player icon or broadcast icon are pressed to be and enter music pattern; Maintenance music pattern is defaulted as after exiting music or broadcast.When mobile terminal does not enter talking state, do not need to use the microphone of iPhone wire control earphone, therefore iPhone wire control earphone is set normally using or listen during song and is in music pattern.Wherein, HOOK key is function switch key, can realize switching between the two states in different modes.Such as, when iPhone wire control earphone (music pattern) when listening song receives caller identification, click HOOK key and music can be made to suspend, user automatically switches to call mode after pressing Answer Key, activate the microphone of iPhone wire control earphone, user can converse normally.In this step, mobile terminal is according to the operational order of input (namely above-mentioned Answer Key/dial key is pressed, music player icon or broadcast icon are pressed), and the voltage that the loading on the microphone of described iPhone wire control earphone is different and the I/O state of configuration pin adjusting earphone detection circuit can make iPhone wire control earphone enter call mode or music pattern.Wherein, mobile terminal controls the step that iPhone wire control earphone enters call mode and specifically comprises:
1, mobile terminal inputs the first voltage from the reference voltage pin of earphone detection circuit, the configuration pin of earphone detection circuit is set to output state and generates the second voltage-drop loading according to the first voltage on the microphone of iPhone wire control earphone, activate the microphone path opening iPhone wire control earphone, Mike's wind energy of iPhone wire control earphone normally works.
2, continue input first voltage and judge whether the scheduled time reaches, after the scheduled time reaches, configuration pin being set to input state, keeping the state that the microphone of iPhone wire control earphone is current.
In the present embodiment, arranging described first voltage is 1.8V, and described second voltage is 2.6V, and the described scheduled time is 10mS, and these numerical value are according to repeatedly theoretical calculate and reality test the preferred values obtained.According to the circuit of Fig. 1, configuration pin MB_IN is set to output state after providing first voltage of 1.8V to reference voltage pin BIAS by mobile terminal, and it exports second voltage of 2.6V.Because configuration pin MB_IN is connected with the microphone of iPhone wire control earphone, be equivalent to the voltage-drop loading of 2.6V on the microphone of iPhone wire control earphone.If general earphone, the voltage swing on microphone, can normally work without impact on it; If iPhone wire control earphone, then the resistance value on its microphone path diminishes, and microphone path is activated to open and Mike's wind energy is normally worked.Draw according to reality test, the voltage of the 2.6V on the microphone of iPhone wire control earphone just can make microphone be activated completely after needing to keep 10ms, and the voltage afterwards on this microphone keeps more than 1.5V that it can be made to keep normal operating state.Judge whether the scheduled time of 10ms reaches in step 2.After the microphone of iPhone wire control earphone keeping the voltage of 2.6V reach 10ms, configuration pin MB_IN is converted to input state, the voltage on the microphone of now iPhone wire control earphone equals first voltage of the 1.8V that reference voltage pin BIAS inputs.When it should be noted that configuration pin MB_IN is set to output state, its stable voltage exporting 2.6V; When it is set to input, the voltage on configuration pin MB_IN is equal with the voltage on reference voltage pin BIAS.
If enter in the process of call mode in iPhone wire control earphone, user presses HOOK key by mistake, and the voltage on the microphone of iPhone wire control earphone can be made to become 0V.Now described configuration pin MB_IN keeps input state, and when mobile terminal detects the 0V low level on configuration pin MB_IN, now mobile terminal can repeat above-mentioned steps 1,2, again enters call mode and normally works to make Mike's wind energy of iPhone wire control earphone.
In active state, user is in talking state, is obtained the sound of the other side by the left/right sound channel of iPhone wire control earphone, and obtained the voice of user by the microphone be activated, after talk-through, press-to-talk end key can switch to music pattern.
In step S20, control the step that iPhone wire control earphone enters music pattern specifically comprise:
11, the configuration pin of earphone detection circuit is set to input state by mobile terminal.
22, judge whether the scheduled time reaches, the reference voltage pin from earphone detection circuit after the scheduled time reaches inputs the first voltage and is loaded on the microphone of iPhone wire control earphone.
In above-mentioned steps, mobile terminal no longer inputs any voltage to reference voltage pin BIAS, and the voltage be equivalent on now reference voltage pin BIAS is 0V.Although configuration pin MB_IN is set to input state, mobile terminal does not also input any voltage to it, so the voltage on configuration pin MB_IN is also 0V.After scheduled time of 10mS reaches, mobile terminal inputs first voltage of 1.8V to reference voltage pin BIAS, and the voltage now on iPhone wire control earphone microphone is also 1.8V, is not greater than 2.5V, can not activate the microphone of iPhone wire control earphone.
S30, after iPhone wire control earphone enters call mode, control the left/right sound channel of iPhone wire control earphone, microphone, HOOK key enter operating state; HOOK key control mobile terminal receiving/hang-up phone, microphone normally works.
After entering call mode, mobile terminal can be conversed normally.If press volume+key or volume-key, the partial circuit connected due to configuration pin MB_IN is clamped by the microphone of iPhone wire control earphone, volume+key or volume-key is caused to press the voltage of rear configuration pin MB_IN unchanged, such mobile terminal just can not judge whether volume+key or volume-key are pressed, so volume+key or volume-key are inoperable in call mode.
HOOK key is mainly used in controlling mobile terminal receiving/hang-up phone.Can press HOOK key to hang up the telephone after user hears out phone, now iPhone wire control earphone still remains on call mode.If give me a little display, then pressing HOOK key can receive calls; Call can be realized by microphone and left/right sound channel.
S40, after iPhone wire control earphone enters music pattern, mobile terminal detects volume+key/volume-key, and control the left/right sound channel of iPhone wire control earphone, volume+key, volume-key, HOOK key enter operating state; HOOK key control mobile terminal playing/time-out music.
In music mode, when pressing volume+key or volume-key, mobile terminal correspondingly detects a volume voltage and judges on configuration pin MB_IN; When described volume voltage is in the first volume voltage range, judge that this volume voltage is upper volume voltage, the function performing volume+key increases volume; When described volume voltage is in the second volume voltage range, judge that this volume voltage is lower volume voltage, the function performing volume-key reduces volume; Under described upper volume voltage ratio, volume voltage is large.Wherein, the minimum value of described first volume voltage range 100mV larger than the minimum value of the second volume voltage range; The maximum 100mV larger than the maximum of the second volume voltage range of described first volume voltage range; The large 100mV of volume voltage under described upper volume voltage ratio.In the specific implementation, described first volume voltage range is 1.4V ~ 1.5V, and described second volume voltage range is 1.3V ~ 1.4V.If upper volume voltage 1.44V, then volume voltage is descended to be 1.34V.In the present embodiment, due to configuration pin MB_IN is set to input state, the digital signal of mobile terminal input is converted to analog voltage when inputing to configuration pin MB_IN, adopts the ADC(analog to digital converter of 10bit), so the voltage accuracy that can detect is 1.8V/2
10=1.8V/1024=1.76mV.That is, differ more than 1.76mV between upper volume voltage with lower volume voltage can make a distinction.
In music mode, the microphone of iPhone wire control earphone can not use, and HOOK key can control mobile terminal playing/time-out music.If the current music pattern that is in of user is being listened to the music, there iing caller identification suddenly, then by pressing HOOK key, music is being suspended, making iPhone wire control earphone enter call mode after pressing Answer Key and start call.Exit call mode when end of conversation key can be pressed after end of conversation, the interface that music that the display screen of now mobile terminal can reduce is suspended, then press HOOK key and can again play.If user need suspend broadcasting when listening to the music, press HOOK key, click HOOK key when needs are play again and continue again to play.When listening to the music or broadcast, by the size regulating volume+key/volume-key to control volume.
Control method is used based on above-mentioned iPhone wire control earphone, present invention also offers a kind of mobile terminal, as shown in Figure 4, shown mobile terminal comprises: earphone detection circuit 10, state setting module 20, voltage module 30, detection module 40, judge module 50 and timer 60.The internal circuit of described earphone detection circuit 10 as shown in Figure 1, is detected the voltage high on pin when whether earphone inserts by its internal circuit or is dragged down and identified, it is prior art, and the present invention is not described further its annexation and operation principle.Detection module 40 is connected with earphone detection circuit 10, for each pin of earphone whether with microphone and Test earphone testing circuit that detect insertion voltage and export in corresponding module.Voltage module 30 is connected with earphone detection circuit 10, for providing the first voltage to the reference voltage pin of earphone detection circuit 10, also arranges the first volume voltage range and the second volume voltage range.Judge module 50 by state setting module 20 frames connecting with headphone testing circuit 10, it also connects voltage module 30, detection module 40 and timer 60, it is for judging whether the microphone path of earphone is open-circuit condition; Control state setting module 20 when judging that the scheduled time set when timer 60 reaches and the configuration pin of earphone detection circuit 10 is set to input state or output state; Volume voltage also on the configuration pin of the earphone detection circuit 10 detected by detection module 40 and the first volume voltage range and the second volume voltage range compare, and judge that the type of volume voltage belongs to volume voltage or lower volume voltage.Earphone detection circuit 10 is controlled by voltage module 30 and state setting module 20, inputs different voltage, arranges I/O state to its respective pins, can control iPhone wire control earphone and enter call mode or music pattern.
Mobile terminal provided by the invention comprises and is not limited to mobile phone, panel computer.
Should be understood that, application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can be improved according to the above description or convert, and all these improve and convert the protection range that all should belong to claims of the present invention.
Claims (7)
1. a use control method for iPhone wire control earphone, is characterized in that, comprise the following steps:
A, mobile terminal detect the earphone inserted and whether are with microphone, when mobile terminal detects that the earphone of band microphone inserts, judge whether the microphone path of earphone is open-circuit condition;
B, when the microphone path of earphone judging to insert is open-circuit condition, identify that the earphone inserted is iPhone wire control earphone, mobile terminal controls the configuration pin of the earphone detection circuit of voltage swing on the microphone of described iPhone wire control earphone and mobile terminal I/O state according to the operational order of input makes iPhone wire control earphone enter call mode or music pattern;
C, after iPhone wire control earphone enters call mode, control the left/right sound channel of iPhone wire control earphone, microphone, HOOK key enter operating state; HOOK key control mobile terminal receiving/hang-up phone, microphone normally works;
D, after iPhone wire control earphone enters music pattern, mobile terminal detects volume+key/volume-key, and control the left/right sound channel of iPhone wire control earphone, volume+key/volume-key, HOOK key enter operating state; HOOK key control mobile terminal playing/time-out music;
In described step B, the step that mobile terminal control iPhone wire control earphone enters call mode specifically comprises:
B1, mobile terminal input the first voltage from the reference voltage pin of earphone detection circuit, the configuration pin of earphone detection circuit is set to output state and generates the second voltage-drop loading according to the first voltage on the microphone of iPhone wire control earphone, activate the microphone path opening iPhone wire control earphone, Mike's wind energy of iPhone wire control earphone normally works;
B2, continue input first voltage judge whether the scheduled time reaches, after the scheduled time reaches, described configuration pin is set to input state, keeps the state that the microphone of iPhone wire control earphone is current;
In described step B, mobile terminal control iPhone wire control earphone enters music pattern and specifically comprises:
The configuration pin of earphone detection circuit is set to input state by B11, mobile terminal;
B22, judge whether the scheduled time reaches, after the scheduled time reaches, input the first voltage from the reference voltage pin of earphone detection circuit and be loaded on the microphone of iPhone wire control earphone;
Described first voltage is 1.8V, and described second voltage is 2.6V.
2. iPhone wire control earphone according to claim 1 uses control method, it is characterized in that, enter in the process of call mode in iPhone wire control earphone, when pressing HOOK key by mistake, voltage on the microphone of iPhone wire control earphone becomes 0V, and described configuration pin keeps input state; Repeat step B1, B2 when mobile terminal detects the low level on configuration pin, again enter call mode and the microphone of iPhone wire control earphone is normally worked.
3. iPhone wire control earphone according to claim 1 uses control method, it is characterized in that, in described step D, when pressing volume+key or volume-key, mobile terminal correspondingly detects a volume voltage and judge on described configuration pin; When described volume voltage is in the first volume voltage range, judge that this volume voltage is upper volume voltage, the function performing volume+key increases volume; When described volume voltage is in the second volume voltage range, judge that this volume voltage is lower volume voltage, the function performing volume-key reduces volume; Under described upper volume voltage ratio, volume voltage is large.
4. iPhone wire control earphone according to claim 3 uses control method, it is characterized in that, the minimum value 100mV larger than the minimum value of the second volume voltage range of described first volume voltage range; The maximum 100mV larger than the maximum of the second volume voltage range of described first volume voltage range; The large 100mV of volume voltage under described upper volume voltage ratio.
5. iPhone wire control earphone according to claim 1 uses control method, it is characterized in that,
The described scheduled time is 10mS.
6. iPhone wire control earphone according to claim 4 uses control method, and it is characterized in that, described first volume voltage range is 1.4V ~ 1.5V, and described second volume voltage range is 1.3V ~ 1.4V.
7. a mobile terminal, is characterized in that, comprising:
Earphone detection circuit;
Voltage module, for providing the first voltage to the reference voltage pin of earphone detection circuit, arranges the first volume voltage range and the second volume voltage range;
State setting module, for being set to input state or output state by the configuration pin of earphone detection circuit;
Timer, for setting the scheduled time;
Judge module, for judging whether the scheduled time reaches; When detecting that the earphone of band microphone judges when inserting whether the microphone path of earphone is open-circuit condition; And the volume voltage that the configuration pin of earphone detection circuit detects and the first volume voltage range and the second volume voltage range are compared, judge the type of volume voltage;
Detection module, for detecting the voltage of each pin of earphone whether with microphone, Test earphone testing circuit of insertion and exporting;
Described voltage module, detection module, state setting module be frames connecting with headphone testing circuit respectively, and described voltage module, detection module, state setting module, timer be connection judgment module respectively;
When the microphone path judging the earphone inserted is open-circuit condition, identify that the earphone inserted is iPhone wire control earphone, the I/O state controlling the configuration pin of voltage swing on the microphone of described iPhone wire control earphone and earphone detection circuit according to the operational order of input makes iPhone wire control earphone enter call mode or music pattern;
Enter call mode specifically to comprise: input the first voltage from the reference voltage pin of earphone detection circuit, the configuration pin of earphone detection circuit is set to output state and generates the second voltage-drop loading according to the first voltage on the microphone of iPhone wire control earphone, activate the microphone path opening iPhone wire control earphone, Mike's wind energy of iPhone wire control earphone normally works; Continue input first voltage and judge whether the scheduled time reaches, after the scheduled time reaches, described configuration pin being set to input state, keeping the state that the microphone of iPhone wire control earphone is current;
Enter music pattern specifically to comprise: the configuration pin of earphone detection circuit is set to input state; Judge whether the scheduled time reaches, after the scheduled time reaches, input the first voltage from the reference voltage pin of earphone detection circuit and be loaded on the microphone of iPhone wire control earphone;
Described first voltage is 1.8V, and described second voltage is 2.6V;
After iPhone wire control earphone enters call mode, the left/right sound channel of control iPhone wire control earphone, microphone, HOOK key enter operating state; HOOK key control mobile terminal receiving/hang-up phone, microphone normally works;
After iPhone wire control earphone enters music pattern, volume+key/volume-key detected, and control the left/right sound channel of iPhone wire control earphone, volume+key/volume-key, HOOK key enter operating state; HOOK key control mobile terminal playing/time-out music.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310031429.2A CN103118191B (en) | 2013-01-28 | 2013-01-28 | Using control method and mobile terminal for iPhone wire control earphone |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310031429.2A CN103118191B (en) | 2013-01-28 | 2013-01-28 | Using control method and mobile terminal for iPhone wire control earphone |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103118191A CN103118191A (en) | 2013-05-22 |
CN103118191B true CN103118191B (en) | 2015-01-21 |
Family
ID=48416461
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310031429.2A Active CN103118191B (en) | 2013-01-28 | 2013-01-28 | Using control method and mobile terminal for iPhone wire control earphone |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103118191B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104080026B (en) * | 2013-03-25 | 2018-03-23 | 联想(北京)有限公司 | A kind of method of information processing and a kind of line control earphone |
CN103345403B (en) * | 2013-06-08 | 2017-10-03 | 广东欧珀移动通信有限公司 | A kind of method played by earphone deep layer secondary control sound and terminal device |
CN104579210A (en) * | 2015-01-16 | 2015-04-29 | 深圳联华集成电路有限公司 | Wire headphone volume control circuit for intelligent mobile phone |
CN104821981B (en) * | 2015-03-13 | 2017-11-07 | 惠州Tcl移动通信有限公司 | A kind of detection method of earphone operation |
CN104899001A (en) * | 2015-05-27 | 2015-09-09 | 深圳市金立通信设备有限公司 | Line control earphone compatible method and terminal |
CN105979416B (en) * | 2016-05-30 | 2019-01-18 | 歌尔股份有限公司 | A kind of line control earphone |
CN105979423B (en) * | 2016-06-28 | 2022-04-12 | 青岛歌尔声学科技有限公司 | Mute circuit and method of microphone on earphone |
CN106325805A (en) * | 2016-08-17 | 2017-01-11 | 北京小米移动软件有限公司 | Audio playing method and audio playing device |
CN108784635A (en) * | 2018-07-17 | 2018-11-13 | 重庆金山医疗器械有限公司 | A kind of endoscopic system and method that light source is automatically closed |
CN109831714B (en) * | 2019-01-16 | 2020-08-25 | Oppo广东移动通信有限公司 | Method and device for identifying earphone keys and electronic equipment |
CN114446261B (en) * | 2020-10-30 | 2023-12-01 | 高创(苏州)电子有限公司 | Method for controlling display by using earphone by wire and related device |
CN113242487B (en) * | 2021-05-11 | 2022-12-02 | 深圳市中科蓝讯科技股份有限公司 | Line control method, line control device, adapter and line control system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101184284A (en) * | 2007-11-20 | 2008-05-21 | 东莞欧珀移动通信有限公司 | Control method for judging insertion type of earphone by mobile phone |
CN201536413U (en) * | 2009-10-19 | 2010-07-28 | 青岛海信移动通信技术股份有限公司 | Headphone |
CN102510550A (en) * | 2011-11-15 | 2012-06-20 | 深圳市中兴移动通信有限公司 | Method for distinguishing three-segment earphone and four-segment earphone on wireless terminal |
CN202455500U (en) * | 2011-12-22 | 2012-09-26 | 深圳市朵唯志远科技有限公司 | General multi-functional headphone |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8588455B2 (en) * | 2011-03-08 | 2013-11-19 | William Dallas | Apparatus and method for preventing tangling for wired earphones |
US8666219B2 (en) * | 2011-04-18 | 2014-03-04 | Randall Edward Wright | Telephone call recording interface cable assembly for smartphones |
-
2013
- 2013-01-28 CN CN201310031429.2A patent/CN103118191B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101184284A (en) * | 2007-11-20 | 2008-05-21 | 东莞欧珀移动通信有限公司 | Control method for judging insertion type of earphone by mobile phone |
CN201536413U (en) * | 2009-10-19 | 2010-07-28 | 青岛海信移动通信技术股份有限公司 | Headphone |
CN102510550A (en) * | 2011-11-15 | 2012-06-20 | 深圳市中兴移动通信有限公司 | Method for distinguishing three-segment earphone and four-segment earphone on wireless terminal |
CN202455500U (en) * | 2011-12-22 | 2012-09-26 | 深圳市朵唯志远科技有限公司 | General multi-functional headphone |
Also Published As
Publication number | Publication date |
---|---|
CN103118191A (en) | 2013-05-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103118191B (en) | Using control method and mobile terminal for iPhone wire control earphone | |
CN201928419U (en) | Earphone and mobile communication terminal provided with same | |
CN102325216B (en) | Mobile communication equipment and volume control method thereof | |
US10327058B2 (en) | Headset having remote control for multimedia playback device | |
CN101924835B (en) | Mobile telephone communication method and mobile telephone | |
CN204836506U (en) | Headset patch cord | |
CN106954115B (en) | Equipment control method and device | |
CN101938546A (en) | Earphone microphone detection method based on mobile phone and mobile phone | |
CN102821195A (en) | Terminal and multi-audio-frequency output method | |
CN107959903A (en) | Audio output switching method, feedback earphone wearing state method, apparatus and earphone | |
CN101917497A (en) | Method and device for earphone and USB to share micro-USB interface | |
CN105487899A (en) | Headphone wearing state reporting method and system and headphone | |
CN107770663B (en) | In-ear wireless earphone and realization method for automatic charging and switching on/off of in-ear wireless earphone | |
EP2299669B1 (en) | Electronic device and system and method thereof for identifying electronic accessory and controlling electronic device | |
CN105372026A (en) | Air tightness detection device and method of microphone pickup structure path | |
CN107770662B (en) | Automatic charging and switching circuit | |
CN201750528U (en) | Audio processing device | |
CN102355518A (en) | Mobile phone and audio processing method thereof | |
CN106412303A (en) | Intelligent terminal control method and system based on earphone button, and intelligent terminal | |
CN107864415A (en) | Audio amplifier and audio frequency apparatus share the control method and device of microphone | |
CN101945172A (en) | Mobile phone-based earphone recognition calling method and mobile phone | |
CN103067601A (en) | Mobile terminal and detecting method of earphone inserting state thereof | |
CN104754098A (en) | Volume adjusting method and system for single-key earphone | |
WO2018201943A1 (en) | Device control method, device and system | |
CN102111475A (en) | Mobile phone music playing function control system and control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20211123 Address after: 264200 No. 220, Keji Road, torch high tech Industrial Development Zone, Weihai City, Shandong Province Patentee after: Weihai high tech Park Operation Management Co.,Ltd. Address before: 6 / F, No.5, Lane 999, Yangfan Road, high tech Zone, Ningbo, Zhejiang 315100 Patentee before: TCL COMMUNICATION (NINGBO) Co.,Ltd. |
|
TR01 | Transfer of patent right |