CN103873988A - External device recognition circuit, method, device and system based on headphone jack - Google Patents

External device recognition circuit, method, device and system based on headphone jack Download PDF

Info

Publication number
CN103873988A
CN103873988A CN201410112245.3A CN201410112245A CN103873988A CN 103873988 A CN103873988 A CN 103873988A CN 201410112245 A CN201410112245 A CN 201410112245A CN 103873988 A CN103873988 A CN 103873988A
Authority
CN
China
Prior art keywords
electronic device
intelligent electronic
volume
resistance
link
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410112245.3A
Other languages
Chinese (zh)
Other versions
CN103873988B (en
Inventor
刘文剑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410112245.3A priority Critical patent/CN103873988B/en
Priority to CN201610298835.9A priority patent/CN105959845B/en
Publication of CN103873988A publication Critical patent/CN103873988A/en
Priority to PCT/CN2014/093598 priority patent/WO2015143896A1/en
Application granted granted Critical
Publication of CN103873988B publication Critical patent/CN103873988B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/04Circuit arrangements, e.g. for selective connection of amplifier inputs/outputs to loudspeakers, for loudspeaker detection, or for adaptation of settings to personal preferences or hearing impairments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/03Connection circuits to selectively connect loudspeakers or headphones to amplifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The invention discloses an external device recognition circuit, method, device and system based on a headphone jack. The recognition circuit comprises a headphone plug and a recording loop. The headphone plug is provided with a sound channel connecting end, a microphone connecting end and a grounding end. The recording loop is provided with a first connecting end, a second connecting end and a third connecting end. The first connecting end is connected with the sound channel connecting end, the second connecting end is connected with the microphone connecting end, and the third connecting end is connected with the grounding end. The recording loop is connected with a microphone in an intelligent electronic device through the headphone plug and the headphone jack in the intelligent electronic device. A microphone circuit is formed by the recording loop, the headphone plug, the headphone jack and the microphone.

Description

External equipment identification circuit based on earphone socket, methods, devices and systems
Technical field
The present invention relates to recognition of devices technology, be specifically related to a kind of external equipment identification circuit, methods, devices and systems based on earphone socket.
Background technology
Intelligent electronic device (as the intelligent electronic device based on Android operating system) can be connected with external equipment by its earphone socket, can pass through the external equipments such as its earphone socket and earphone, La Kala equipment, mobile phone Infrared remote controller or mobile phone press key equipment be connected as intelligent electronic device.
In the situation that intelligent electronic device is connected with external equipment by its earphone socket, the external equipment that intelligent electronic device reply is inserted is effectively identified, otherwise, intelligent electronic device can think that the external equipment inserting in its earphone socket is earphone, like this, intelligent electronic device can pass through earphone output sound, thereby may cause user normally to dial receives calls (in the situation that intelligent electronic device is intelligent mobile phone), listen to music and watch video etc.
At present, the mode that intelligent electronic device is identified the external equipment inserting in its earphone socket mainly comprises two kinds: mode one, ultrasonic wave modulation demodulation techniques based on 10KHZ frequency range are identified external equipment; Mode two, based on MCU(micro-control unit) external equipment is identified, in the time of the headset plug plugged earphone socket of external equipment, MCU in external equipment is initiatively to intelligent electronic device output special audio signal, so that the special audio signal that intelligent electronic device can receive according to it identifies the external equipment of plugged earphone socket.
Inventor finds realizing in process of the present invention, for aforesaid way one, in the case of the earphone socket plugged earphone of intelligent electronic device, if adopting the ultrasonic wave of 10KHZ frequency range identifies external equipment, can produce ear-piercing high-frequency sound, very large to the stimulation of people's ear, thus user's impression can be affected; In addition, if intelligent electronic device carries out external equipment identification in broadcasting music process, the concert of its broadcasting affects the accuracy rate of external equipment identification; For aforesaid way two, because MCU volume is large and cost is higher, therefore, MCU is set in external equipment and may produces larger impact to the volume of external equipment and cost.
Summary of the invention
In view of the above problems, the present invention has been proposed to provide a kind of external equipment identification circuit based on earphone socket that overcomes the problems referred to above or address the above problem at least in part and the corresponding external equipment recognition methods based on earphone socket, the external equipment recognition device based on earphone socket and the external equipment recognition system based on earphone socket.
According to first aspect of the present invention, a kind of external equipment identification circuit based on earphone socket is provided, comprising: headset plug and recording loop; Described headset plug has sound channel link, microphone link and earth terminal; Described recording loop has the first link, the second link and the 3rd link; Wherein, described the first link is connected with described sound channel link, and described the second link is connected with described microphone link, and described the 3rd link is connected with described earth terminal; Described recording loop is connected with the microphone in intelligent electronic device by the earphone socket in described headset plug and intelligent electronic device, and described recording loop forms microphone circuit together with headset plug, earphone socket and microphone.
According to second aspect of the present invention, a kind of external equipment recognition methods based on earphone socket is provided, comprise: insert after external equipment at the earphone socket that monitors intelligent electronic device, the recording of triggering intelligent electronic device, and the current audio frequency broadcast sound volume of intelligent electronic device is set to the first predetermined value; In described the first predetermined value situation, obtain the volume value of the sound obtaining by recording; The current audio frequency broadcast sound volume of described intelligent electronic device is set to the second predetermined value; Play predetermined audio signal, and in described the second predetermined value situation, obtain the volume value of the sound obtaining by recording; Whether the described external equipment of relatively determining between the volume value obtaining according to the volume value obtaining for the first predetermined value and for the second predetermined value is the external equipment that is provided with recording loop and headset plug, and described recording loop forms microphone circuit with the earphone socket of described headset plug and described intelligent electronic device together with microphone.
According to a third aspect of the present invention, a kind of external equipment recognition device based on earphone socket is provided, comprise: first arranges module, be suitable for inserting after external equipment at the earphone socket that monitors intelligent electronic device, the recording of triggering intelligent electronic device, and the current audio frequency broadcast sound volume of described intelligent electronic device is set to the first predetermined value; The first acquisition module, is suitable for, in described the first predetermined value situation, obtaining the volume value of the sound obtaining by recording; Second arranges module, and the current audio frequency broadcast sound volume that is suitable for described intelligent electronic device is set to the second predetermined value; The second acquisition module, is suitable for playing predetermined audio signal, and in described the second predetermined value situation, obtains the volume value of the sound obtaining by recording; Identification module, whether be suitable for according to the volume value that obtains for the first predetermined value is the external equipment that is provided with record loop and headset plug, and described recording loop forms microphone circuit with the earphone socket of described headset plug and described intelligent electronic device together with microphone with the described external equipment of relatively determining between the volume value obtaining for the second predetermined value.
According to a fourth aspect of the present invention, provide a kind of external equipment recognition system based on earphone socket, this system comprises: external equipment and intelligent electronic device; In described external equipment, be provided with above-mentioned identification circuit; In described intelligent electronic device, be provided with the above-mentioned external equipment recognition device based on earphone socket.
External equipment identification circuit, methods, devices and systems based on earphone socket of the present invention pass through to arrange the external equipment identification circuit based on earphone socket in external equipment, and the recording loop in this identification circuit is connected with the microphone in intelligent electronic device by the earphone socket in headset plug and intelligent electronic device, and form microphone circuit, like this, in the time that the earphone socket insertion of intelligent electronic device has the external equipment of this identification circuit, intelligent electronic device can be realized recording by this microphone circuit; Because the volume value of recording the sound that different sources of sound obtains in different current audio frequency broadcast sound volume situations has certain feature, therefore, whether the external equipment that relatively can identify accurately in the earphone socket that inserts intelligent electronic device of the volume value by the sound recorded is the external equipment that is provided with above-mentioned identification circuit; Because the source of sound in the present invention can adopt common music, therefore, the present invention can avoid the stimulation of ultrasonic wave to people's ear in external recognition of devices process; Because identification circuit of the present invention has adopted recording loop, and recording loop is used the components and parts (as electric capacity and resistance etc.) of simple cheap to realize conventionally, therefore, the present invention can avoid utilizing MCU to carry out external equipment identification and volume that external equipment is caused is large and the higher impact of cost.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to better understand technological means of the present invention, and can be implemented according to the content of specification, and for above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
Brief description of the drawings
By reading below detailed description of the preferred embodiment, various other advantage and benefits will become cheer and bright for those of ordinary skill in the art.The accompanying drawing of the present embodiment is only for the object of preferred implementation is shown, and do not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 shows headset plug schematic diagram;
Fig. 2 shows according to a particular circuit configurations schematic diagram of the external equipment identification circuit based on earphone socket of the embodiment of the present invention one;
Fig. 3 shows according to another particular circuit configurations schematic diagram of the external equipment identification circuit based on earphone socket of the embodiment of the present invention one;
Fig. 4 shows according to another particular circuit configurations schematic diagram of the external equipment identification circuit based on earphone socket of the embodiment of the present invention one;
Fig. 5 shows the external equipment recognition methods flow chart based on earphone socket according to the embodiment of the present invention two;
Fig. 6 shows the external equipment recognition methods flow chart based on earphone socket according to the embodiment of the present invention three;
Fig. 7 shows according to the initialization schematic flow sheet in the external equipment recognition methods based on earphone socket of the embodiment of the present invention three;
Fig. 8 shows the external equipment recognition device schematic diagram based on earphone socket according to the invention process four;
Fig. 9 shows the external equipment recognition device schematic diagram based on earphone socket according to the invention process five.
Embodiment
Exemplary embodiment of the present disclosure is described below with reference to accompanying drawings in more detail.Although shown exemplary embodiment of the present disclosure in accompanying drawing, but should be appreciated that and can realize the disclosure and the embodiment that should do not set forth limits here with various forms.On the contrary, it is in order more thoroughly to understand the disclosure that these embodiment are provided, and can be by the those skilled in the art that conveys to complete the scope of the present disclosure.
Embodiment mono-, external equipment identification circuit based on earphone socket.Below in conjunction with Fig. 1, Fig. 2 and Fig. 3, the identification circuit of the present embodiment is described.
The external equipment identification circuit based on earphone socket of the present embodiment mainly comprises: headset plug and recording loop, and wherein, recording loop has multiple links, and the plurality of link is connected with the multiple links in headset plug respectively.
Concrete, current headset plug has sound channel link, microphone link and earth terminal conventionally; In the time that headset plug is dual sound track plug for earphone, above-mentioned sound channel link generally includes: L channel link and R channel link; In the time that headset plug is mono headset plug, above-mentioned sound channel link is generally monophony link.
A concrete example of headset plug as shown in Figure 1.
Headset plug in Fig. 1 meets international standard (CTIA), and this headset plug mainly comprises: microphone link 1, ground wire link 2, R channel link 3 and L channel link 4.
Headset plug in Fig. 1 meets national standard (OMTP), and this headset plug mainly comprises: ground wire link 1, microphone link 2, R channel link 3 and L channel link 4.
The recording loop of the present embodiment is mainly used in forming microphone loop with together with microphone in headset plug, earphone socket and intelligent electronic device, as formed capacitor microphone loop.
In order to form microphone loop, this recording loop has the first link, the second link and the 3rd link, and the first link is connected with the sound channel link of headset plug, the second link is connected with the microphone link of intelligent electronic device, and the 3rd link is connected with the earth terminal of headset plug.
In the situation that headset plug is mono headset plug, the first link in recording loop is connected with the monophony link of headset plug.
In the situation that headset plug is dual sound track plug for earphone, the first link in recording loop is connected with at least one link in L channel link and R channel link; Under normal circumstances, the first link in recording loop is connected respectively with L channel link and R channel link.
In order to form capacitor microphone loop, recording loop includes the components and parts such as electric capacity and resistance conventionally; An object lesson in the recording loop in the present embodiment as shown in Figure 2.
" 1 ", " 2 " in Fig. 2, the Reference numeral that " 3 " and " 4 " are each link of the headset plug in above-mentioned Fig. 1.Recording loop in Fig. 2 comprises: capacitor C 1, resistance R 1 and resistance R 2.One end of capacitor C 1 is above-mentioned the first link, is connected respectively with R channel link and the L channel link of headset plug, and the other end of capacitor C 1 is connected respectively with resistance R 1 and resistance R 2, and capacitor C 1 is connected respectively with resistance R 1 and resistance R 2.One end of resistance R 1 is above-mentioned the second link, is connected with ground wire link or the microphone link of headset plug, and the other end of resistance R 1 is connected with capacitor C 1.One end of resistance R 2 is above-mentioned the 3rd link, is connected with microphone link or the ground wire link of headset plug, and the other end of resistance R 2 is connected with capacitor C 1.Above-mentioned resistance R 1 and resistance R 2 parallel connections.
By the recording loop shown in Fig. 2, the audio signal of intelligent electronic device output can be passed through behind earphone socket, headset plug and recording loop, returned to the microphone in intelligent electronic device by headset plug and earphone socket, thereby form microphone loop (capacitor microphone loop).
In addition, because the electric capacity 1 in Fig. 2 is connected respectively with resistance R 1 and resistance R 2, and resistance R 1 and resistance R 2 parallel connections, therefore, no matter that and the ground wire link of headset plug is connected and one end of resistance R 2 and the microphone link of headset plug are connected in one end of resistance R 1, or and the microphone link of headset plug is connected and one end of resistance R 2 and the ground wire link of headset plug are connected in one end of resistance R 1, this recording loop can form microphone circuit together with earphone socket in headset plug and intelligent electronic device and microphone; Thereby the recording loop shown in Fig. 2 is all applicable to the headset plug of international standard (CTIA) and national standard (OMTP).
Above-mentioned capacitor C 1 can be specially 1uf(microfarad) electric capacity, above-mentioned resistance R 1 and resistance R 2 can be specially the resistance in 1500 Europe.
Recording loop in Fig. 2 can also optionally comprise: switch E1.This switch E1 is serially connected between the microphone link and ground wire link in recording loop; In the time that switch E1 is closed, due to this recording loop no longer with intelligent electronic device in microphone form capacitor microphone loop, whether be the identifying that is provided with the external equipment of above-mentioned identification circuit thereby can not carry out again external equipment.
Another object lesson in the recording loop in the present embodiment as shown in Figure 3.
" 1 ", " 2 ", " 3 " and " 4 " in Fig. 3 are the mark of each link of the headset plug in above-mentioned Fig. 1.Recording loop in Fig. 3 comprises: resistance R 3, capacitor C 2 and capacitor C 3.One end of resistance R 3 is the first link, is connected respectively with R channel link and the L channel link of headset plug, and the other end of resistance R 3 is connected respectively with capacitor C 2 and capacitor C 3, and resistance R 3 is connected respectively with capacitor C 2 and capacitor C 3.One end of capacitor C 2 is the second link, is connected with ground wire link or the microphone link of headset plug, and the other end of capacitor C 2 is connected with resistance R 3.One end of capacitor C 3 is the 3rd link, is connected with microphone link or the ground wire link of headset plug, and the other end of capacitor C 3 is connected with resistance R 3.Above-mentioned capacitor C 2 and capacitor C 3 parallel connections.By the recording circuit shown in Fig. 3, the audio signal of intelligent electronic device output is passed through, behind earphone socket, headset plug and recording loop, can be returned to the microphone in intelligent electronic device by headset plug and earphone socket, thereby form microphone loop.
In addition, because the resistance R 3 in Fig. 3 is connected respectively with capacitor C 2 and capacitor C 3, and capacitor C 2 is in parallel with capacitor C 3, therefore, no matter that and the ground wire link of headset plug is connected and one end of capacitor C 3 and the microphone link of headset plug are connected in one end of capacitor C 2, or one end of capacitor C 2 and the microphone link of headset plug are connected, and one end of capacitor C 3 is connected with the ground wire link of headset plug, this recording loop can form microphone circuit by the earphone socket in headset plug and intelligent electronic device together with microphone; Thereby the recording loop shown in Fig. 3 is all applicable to the headset plug of international standard (CTIA) and national standard (OMTP).
Above-mentioned resistance R 3 can be the resistance in 100 Europe, Europe-400, and above-mentioned capacitor C 2 and capacitor C 3 can be 1uf(microfarad) electric capacity.
Recording loop in Fig. 3 can also optionally comprise: switch E1.This switch E1 is serially connected between the microphone link and ground wire link in recording loop; In the time that switch E1 is closed, due to this recording loop no longer with intelligent electronic device in microphone form capacitor microphone loop, whether be the identifying that is provided with the external equipment of above-mentioned identification circuit thereby can not carry out again external equipment.
Another object lesson in the recording loop in the present embodiment as shown in Figure 4.
" 1 ", " 2 ", " 3 " and " 4 " in Fig. 4 are the mark of each link of the headset plug in above-mentioned Fig. 1.Recording loop in Fig. 4 comprises: resistance R 4, resistance R 5 and resistance R 6.One end of resistance R 4 is the first link, is connected respectively with R channel link and the L channel link of headset plug, and the other end of resistance R 4 is connected respectively with resistance R 5 and resistance R 6, and resistance R 4 is connected respectively with resistance R 5 and resistance R 6.One end of resistance R 5 is the second link, is connected with ground wire link or the microphone link of headset plug, and the other end of resistance R 5 is connected with resistance R 4.One end of resistance R 6 is the 3rd link, is connected with microphone link or the ground wire link of headset plug, and the other end of resistance R 6 is connected with resistance R 4.Above-mentioned resistance R 5 and resistance R 6 parallel connections.By the recording circuit shown in Fig. 4, the audio signal of intelligent electronic device output is passed through, behind earphone socket, headset plug and recording loop, can be returned to the microphone in intelligent electronic device by headset plug and earphone socket, thereby form microphone loop.
In addition, because the resistance R 4 in Fig. 4 is connected respectively with resistance R 5 and resistance R 6, and resistance R 5 is in parallel with resistance R 6, therefore, no matter that and the ground wire link of headset plug is connected and one end of resistance R 6 and the microphone link of headset plug are connected in one end of resistance R 5, or one end of resistance R 5 and the microphone link of headset plug are connected, and one end of resistance R 6 is connected with the ground wire link of headset plug, this recording loop can form microphone circuit by the earphone socket in headset plug and intelligent electronic device together with microphone; Thereby the recording loop shown in Fig. 4 is all applicable to the headset plug of international standard (CTIA) and national standard (OMTP).
Above-mentioned resistance R 4 can be the resistance in 6k Europe, and above-mentioned resistance R 5 can be the resistance in 6k Europe, and above-mentioned resistance R 6 can be the resistance in 6k Europe.It should be noted that, in Fig. 4, the actual resistance of resistance R 4, resistance R 5 and resistance R 6 can be identical, also can be not identical; In the situation that the resistance sum of any two resistance is within the scope of 10k-15k, the recording loop shown in Fig. 4 can be adaptive various types of mobile phones based on Andriod operating system almost at present.
Recording loop in Fig. 4 can also optionally comprise: switch E1.This switch E1 is serially connected between the microphone link and ground wire link in recording loop; In the time that switch E1 is closed, due to this recording loop no longer with intelligent electronic device in microphone form capacitor microphone loop, whether be the identifying that is provided with the external equipment of above-mentioned identification circuit thereby can not carry out again external equipment.
Embodiment bis-, external equipment recognition methods based on earphone socket.Below in conjunction with Fig. 5, the method for the present embodiment is described.
In Fig. 5, S400, insert after external equipment at the earphone socket that is monitoring intelligent electronic device, trigger intelligent electronic device recording, and the current audio frequency broadcast sound volume of intelligent electronic device is set to the first predetermined value.
Concrete, the intelligent electronic device in the present embodiment can be for adopting the intelligent electronic device (as adopted intelligent mobile phone or the panel computer etc. of Andriod operating system) of Andriod operating system.External equipment identifying for fear of the present embodiment impacts the ongoing call of intelligent electronic device or recording, the present embodiment can insert external equipment (as received the broadcast of operating system by registration monitor at the earphone socket that intelligent electronic device detected, insert external equipment to determine according to the message that receives in the earphone socket of intelligent electronic device) after, the current state (as the modes such as the current daily record by reading intelligent electronic device judge the current state of intelligent electronic device) of intelligent electronic device detected; If detect that the current state of intelligent electronic device is the states relevant to voice such as talking state or recording state, should temporarily not carry out the follow-up external equipment identifying operation of the present embodiment, but wait for that intelligent electronic device is finishing the operation relevant to voice (as finished call or finishing recording) afterwards, then start to carry out the follow-up external equipment identifying operation of the present embodiment.
Because the external equipment identifying of the present embodiment can be modified to the current audio frequency broadcast sound volume of intelligent electronic device, therefore, the present embodiment is before carrying out the current audio frequency broadcast sound volume operation of the amendment intelligent electronic device in external equipment identifying, should first obtain the current audio frequency broadcast sound volume of intelligent electronic device, and store this current audio frequency broadcast sound volume, so that in the time that the external equipment identifying of the present embodiment completes, the current audio frequency broadcast sound volume of intelligent electronic device can also be reverted to the audio frequency broadcast sound volume before external recognition of devices operation.That is to say, the present embodiment has formerly been stored after the current audio frequency broadcast sound volume of intelligent electronic device, then triggers intelligent electronic device and carry out recording operation, and the current audio frequency broadcast sound volume of intelligent electronic device is set to the first predetermined value.
Above-mentioned the first predetermined value can be the volume minimum value (being pvw value) of intelligent electronic device, if the first predetermined value is 0, that is to say, the present embodiment can be set to mute state by intelligent electronic device.
The current audio frequency broadcast sound volume that triggering intelligent electronic device in the present embodiment is carried out recording operation and intelligent electronic device is set to can not have between the operation of the first predetermined value the restriction of sequencing, as two operations can be carried out simultaneously; For another example can first carry out recording operation, then carry out the setting operation of the first predetermined value; Further, also can first carry out the setting operation of the first predetermined value, then carry out recording operation.
The operation that above-mentioned triggering intelligent electronic device is carried out recording can realize by the recording function calling in intelligent electronic device operating system, and the present embodiment does not limit the specific implementation that triggers intelligent electronic device execution recording operation.
S410, in the first predetermined value situation, obtain the volume value of the sound obtaining by recording.
Concrete, triggering after intelligent electronic device execution recording operation, the present embodiment need to be set to, the first predetermined value, obtain the volume value of the sound obtaining by recording at the current audio frequency broadcast sound volume of intelligent electronic device.
The present embodiment can trigger intelligent electronic device execution recording operation and wait for after certain hour, then obtains the volume value of the sound obtaining by recording.A concrete example, formerly trigger intelligent electronic device and carry out recording operation, arrange again in the situation of current audio frequency broadcast sound volume of intelligent electronic device, the present embodiment can be set to the first predetermined value at the current audio frequency broadcast sound volume of intelligent electronic device, and after waiting for the first predetermined time interval, then the operation of the volume value of the sound obtaining by recording is obtained in execution.
The present embodiment can adopt the mode of timing acquisition to obtain the volume value of multiple sound that obtain by recording, and these multiple volume values are calculated to mean value, the volume mean value that this calculates is mainly used in follow-up comparison procedure, and this volume mean value can be called as the first volume mean value.
The present embodiment is in the time calculating the first volume mean value, can judge whether this first volume mean value is greater than predetermined volume value (as 1000), if the first volume mean value is greater than predetermined volume value (as being greater than 1000), can determine this external equipment is not the external equipment that is provided with the identification circuit in above-described embodiment one, and the identifying of this external equipment finishes; If the first volume mean value is not more than predetermined value (as being less than or equal to 1000), continue to carry out the follow-up identification step of the present embodiment.
Above-mentioned predetermined volume value can be rule of thumb to set in advance in intelligent electronic device; And above-mentioned the first predetermined time interval can be rule of thumb to set in advance in intelligent electronic device, can be also purposive actual conditions for intelligent electronic device and being dynamically placed in intelligent electronic device.
An object lesson that dynamically arranges the first predetermined time interval for the actual conditions of intelligent electronic device is: the current audio frequency broadcast sound volume of setting intelligent electronic device can be the volume that user can manually adjust by modes such as buttons, for example, the volume that Gong user in intelligent electronic device manually adjusts by modes such as buttons is divided into 15 grades (intelligent mobile phone of Andriod operating system has 15 grades can supply the volume of user's manual setting) these 15 grades can be hereinafter referred to as volume 0 to volume 14, and volume 0 wherein represents quiet; According to volume 1, to the putting in order of volume 14, volume 1 to the each self-corresponding sound of volume 14 increases gradually, and the sound maximum of volume 14 correspondences.Be in above-mentioned situation at current audio frequency broadcast sound volume, the concrete setting up procedure of the first predetermined time interval comprises: first, in the case of intelligent electronic device is connected by headset plug and earphone socket with the external equipment with above-mentioned identification circuit of the present embodiment first, the present embodiment can carry out initialization setting operation for this external equipment, concrete, after the current audio frequency broadcast sound volume of backup intelligence electronic equipment, the minimum level volume that the current audio frequency broadcast sound volume of intelligent electronic device is set to except quiet (is above-mentioned volume 1, namely volume corresponding to minimum level except quiet level), then, trigger electronic equipment and carry out the operation of the audio signal (as the second music built-in in intelligent electronic device) of playing local storage, and start timing, waiting for a period of time after (as 500 milliseconds), triggering intelligent electronic device records, afterwards, waiting for a period of time after (as 300 milliseconds), obtain the volume value (as obtaining the volume value that operating system is returned) of the sound obtaining by recording, and judge whether this volume value is greater than predetermined value (as 100) and whether present timing value reaches scheduled duration (as 2 seconds), if the volume value obtaining is not more than predetermined value and present timing value does not reach scheduled duration, return to the above-mentioned step of obtaining the volume value of the sound obtaining by recording and judging for volume value and present timing value, if volume value is greater than predetermined value or present timing value reaches scheduled duration, the present timing value of above-mentioned timing is set to the first predetermined time interval.
From above-mentioned concrete example, the concrete value of first predetermined time interval of the present embodiment can be set to a numerical value between duration and the scheduled duration of above-mentioned wait, if the minimum value of the first predetermined time interval is 300 milliseconds, and its maximum occurrences is 2 seconds.
In addition, in actual applications, the volume that the modes such as button of passing through that intelligent electronic device provides for user can manually be adjusted is perhaps more or still less, in order to adapt to dissimilar intelligent electronic device, the current audio frequency broadcast sound volume of the intelligent electronic device in the present embodiment can not be the volume that user can manually adjust by button etc., a concrete example, the maximum broadcast sound volume of intelligent electronic device is divided into 15 grades, as calculate maximum broadcast sound volume/15, the current audio frequency broadcast sound volume of intelligent electronic device is set according to the volume value of the correspondences at different levels after above-mentioned division.
The current audio frequency broadcast sound volume of S420, intelligent electronic device is set to the second predetermined value.
Concrete, after successfully having obtained the volume value of the sound obtaining by recording for the first predetermined value, the current audio frequency broadcast sound volume adjustment of intelligent electronic device is set to the second predetermined value, and the second predetermined value is greater than the first predetermined value.
Above-mentioned the second predetermined value can be rule of thumb to set in advance in intelligent electronic device, can be also purposive actual conditions for intelligent electronic device and being dynamically placed in intelligent electronic device.
An object lesson that dynamically arranges the second predetermined value for the actual conditions of intelligent electronic device is: setting the first predetermined value is that 0(is that intelligent electronic device is in mute state), the current audio frequency broadcast sound volume of intelligent electronic device is set to 0, the volume value (as obtaining the volume value that operating system is returned) of the sound that timing acquisition obtains by recording, and for the multiple volume values that get (as 10 volume values) calculating mean values (being designated as the first mean value), play local pre-stored audio signal (as play first music), and the current audio frequency broadcast sound volume of intelligent electronic device is set to volume 1(as the minimum level volume except quiet), then, the volume value (as obtaining the volume value that operating system is returned) of the sound that timing acquisition obtains by recording, and for the multiple volume values that get (as 10 volume values) calculating mean values (being designated as the second mean value), afterwards, judge that whether the second mean value be that (this prearranged multiple should be greater than 7 times for the prearranged multiple of the first mean value, as adopted 9 times), if the second mean value does not reach the prearranged multiple of the first mean value, the current audio frequency broadcast sound volume of intelligent electronic device is set to volume 2, and turn back to the volume value of the sound that timing acquisition obtains by recording and for the multiple volume value calculating mean values (being designated as the second mean value) that get and the step that judges multiple, if the second mean value reaches the prearranged multiple of the first mean value, the current audio frequency broadcast sound volume of intelligent electronic device is defined as to the second predetermined value.
S430, broadcasting predetermined audio signal, and in the second predetermined value situation, obtain the volume value of the sound obtaining by recording.
Concrete, the present embodiment need to be set to, the second predetermined value, obtain the volume value of the sound obtaining by recording in the case of the current audio frequency broadcast sound volume of intelligent electronic device is adjusted.
The present embodiment can be playing the predetermined audio signal of local storage (in as intelligent electronic device built-in first music), and wait for after the second predetermined time interval, carries out the operation of the volume value that obtains the sound obtaining by recording.
The present embodiment can adopt the mode of timing acquisition to obtain the volume value of multiple sound that obtain by recording, and the multiple volume values that get are calculated to mean value (being designated as the second mean value), and the volume mean value calculating is for follow-up comparison procedure.
Above-mentioned the second predetermined time interval sets in advance in intelligent electronic device, and this second predetermined time interval can be rule of thumb to set in advance in intelligent electronic device, can be also purposive actual conditions for intelligent electronic device and being dynamically placed in intelligent electronic device.
An object lesson that dynamically arranges the second predetermined time interval for the actual conditions of intelligent electronic device is: carry out for this external equipment in the process of initialization setting operation at the present embodiment, after being provided with the first predetermined time interval, continue to trigger intelligent electronic device and play the audio signal (as first music built-in in intelligent electronic device) setting in advance, and start timing, waiting for a period of time after (as waited for 200 milliseconds), obtain the volume value (as obtaining the volume value that operating system is returned) of the sound obtaining by recording, and judge whether this volume value is greater than predetermined value (as 100) and whether present timing value reaches another scheduled duration (as 1 second), if the volume value obtaining is not more than predetermined value and present timing value does not reach another scheduled duration, return to the above-mentioned step of obtaining the volume value of the sound obtaining by recording and judging for volume value and present timing value, if volume value is greater than predetermined value or present timing value reaches another scheduled duration, the present timing value of above-mentioned timing is set to the second predetermined time interval.
From above-mentioned concrete example, the concrete value of second predetermined time interval of the present embodiment can be set to a numerical value between duration and another scheduled duration of above-mentioned wait, if the minimum value of the second predetermined time interval is 200 milliseconds, and its maximum occurrences is 1 second.
S440, whether be the external equipment that is provided with the identification circuit in above-described embodiment one according to the volume value that obtains for the first predetermined value with the relatively more definite external equipment between the volume value obtaining for the second predetermined value.
Concrete, the present embodiment can judge whether the mean value (being above-mentioned the second mean value) of the volume value calculating for the second predetermined value reaches another prearranged multiple (as 7 times) of the mean value (being above-mentioned the first mean value) of the volume value calculating for the first predetermined value; If the second mean value reaches 7 times of the first mean value, determine this external equipment and be the external equipment that is provided with the identification circuit that above-described embodiment one records; If the second mean value does not reach 7 times of the first mean value, determine this external equipment for being provided with the external equipment of the identification circuit that above-described embodiment one records.
The used time of the whole process of the external equipment identifying of the present embodiment is no more than 2 seconds conventionally.At intelligent electronic device in quiet in the situation that, the input of source of sound that intelligent electronic device is recorded to is lower and sound more stably, and be set to non-quiet in the situation that at intelligent electronic device, in the time having music, the volume of the source of sound input that intelligent electronic device is recorded to can become suddenly large; Through test of many times checking, the ratio of the volume mean value that obtains of two stages exceedes 7 times; Existing earphone is at intelligent electronic device in quiet in the situation that, and the volume of source of sound that intelligent electronic device receives input is conventionally all more steady, and through test of many times checking, the ratio of the volume mean value that obtains of two stages is no more than 6 times; Therefore, the present embodiment is the external equipment that is provided with above-mentioned identification circuit by judging that the ratio of the volume mean value under different situations can accurately judge the external equipment of intelligent electronic device, or other equipment are as external equipments such as common earphones.
In addition, it should be noted that, the present embodiment is to be provided with the external equipment of the identification circuit that above-described embodiment one records in the case of identifying external equipment, should be that the communication of invalid earphone is to the relevant portion in intelligent electronic device, as notice operating system or the notice application relevant to voice operating etc. by the external equipment of insertion; Like this, in operating system or related application in the time carrying out the operation relevant to voice (as receive calls etc.), can know that the current external equipment being connected with intelligent electronic device by earphone socket is not earphone, thereby can switch to the operation of the built-in microphone of intelligent electronic device, and not re-use earphone microphone.Because the switch E1 in above-described embodiment one is when the off-state, the audio signal of intelligent electronic device output is play by built-in microphone, and can not transfer to recording loop by earphone socket, headset plug, and be back to microphone by recording loop, headset plug and earphone socket, therefore the external equipment that, is provided with the identification circuit that above-described embodiment one records can not exert an influence to operations such as the normal talkings of intelligent electronic device.
Embodiment tri-, external equipment recognition methods based on earphone socket.Below in conjunction with Fig. 6 and Fig. 7, the device of the present embodiment is elaborated.
In Fig. 6, after the modes such as the notice by receiving operating system transmission are judged the earphone socket of headset plug insertion intelligent electronic device of external equipment, employing is read the modes such as the daily record of intelligent electronic device and is judged whether intelligent electronic device is carrying out the processing relevant to voice (as conversed or recording etc.), carrying out the processing relevant to voice if determine intelligent electronic device, after waiting for that the processing relevant to voice finishes, obtain the current audio frequency broadcast sound volume of intelligent electronic device, and store this current audio frequency broadcast sound volume, then, trigger intelligent electronic device and carry out recording operation, it is that intelligent electronic device is in mute state that the current audio frequency broadcast sound volume of intelligent electronic device is set to 0(), and wait for after the first predetermined time interval time1, the volume value of the sound that timing acquisition obtains by recording, for example, every 70 milliseconds of volume values that obtain the sound once obtaining by recording, and for 10 volume value compute volume mean value AvgVolume1 that get, for avoiding follow-up computing existing problems, therefore, be 0 at the AvgVolume1 calculating, can be set to 1 by AvgVolume1, afterwards, judge whether AvgVolume1 exceedes predetermined volume value 1000, if exceed predetermined volume value 1000, determining this external equipment is not the external equipment that is provided with the identification circuit of recording in above-described embodiment one, the current audio frequency broadcast sound volume of intelligent electronic device is being reverted to after the current audio frequency broadcast sound volume of above-mentioned storage, and this identifying finishes, if AvgVolume1 does not exceed predetermined volume value 1000, continue follow-up decision operation, afterwards, the current audio frequency broadcast sound volume of intelligent electronic device is set to the second predetermined value Volume1, and plays the built-in first music of intelligent electronic device, waiting for after the second predetermined time interval time2, the volume value of the sound that timing acquisition obtains by recording, for example, every 70 milliseconds of volume values that obtain the sound once obtaining by recording, and for 10 volume value compute volume mean value AvgVolume2 that get, for avoiding follow-up computing existing problems, therefore, be 0 at the AvgVolume2 calculating, can be set to 1 by AvgVolume2, judge whether the relation between AvgVolume1 and AvgVolume2 meets this condition of AvgVolume2>AvgVolume1*7, if meet this condition, determining this external equipment is the external equipment that is provided with the identification circuit of recording in above-described embodiment one, the current audio frequency broadcast sound volume of intelligent electronic device is being reverted to after the current audio frequency broadcast sound volume of above-mentioned storage, and this identifying finishes, if do not meet this condition, determine external equipment not for being provided with the external equipment of the identification circuit of recording in above-described embodiment one, the current audio frequency broadcast sound volume of intelligent electronic device is being reverted to after the current audio frequency broadcast sound volume of above-mentioned storage, and this identifying finishes.
In the present embodiment, the setting up procedure of above-mentioned the first predetermined time interval time1, the second predetermined time interval time2 and the second predetermined value Volume1 can arrange by the process of the external equipment that is provided with above-mentioned identification circuit being carried out to initialization setting.The present embodiment carry out initialization apparatus process an object lesson as shown in Figure 7.
In Fig. 7, after the headset plug of external equipment that is provided with above-mentioned identification circuit is inserted to the earphone jack of intelligent electronic device, start the respective application in intelligent electronic device, and click the function of initializing in this application; This application can adopt reads the modes such as the daily record of intelligent electronic device and judges whether intelligent electronic device is carrying out the processing relevant to voice (as play music or conversing or recording etc.), playing music if determine intelligent electronic device, this application is carried out initialization operation after can pointing out user to close the music of playing again, conversing or recording if determine intelligent electronic device, this application can user waiting prompt be carried out initialization operation after call or End of Tape again; If intelligent electronic device is not carrying out the processing relevant to voice, obtain the current audio frequency broadcast sound volume of intelligent electronic device, and store this current audio frequency broadcast sound volume, then, the current audio frequency broadcast sound volume of intelligent electronic device is set to volume 1(as the minimum level volume except quiet in 15 grades of volumes), and play the built-in music 2 of application, and after waiting for 500 milliseconds, trigger intelligent electronic device and carry out recording operation, start timing; After waiting for 300 milliseconds, obtain the volume value of the sound obtaining by recording, and judge whether this volume value is greater than 100, and whether the present timing value of timing is less than 2 seconds, if the volume value obtaining be not more than 100 and the present timing value of timing be less than 2 seconds, continue above-mentioned volume value and the above-mentioned decision operation of obtaining the sound obtaining by recording; If the volume value obtaining be greater than 100 or the present timing value of timing be not less than 2 seconds, using the present timing value of timing as the first predetermined time interval time1, the value of this first predetermined time interval time1 should be between 300 milliseconds to 2 seconds; Close above-mentioned music 2, and wait for 300 milliseconds; Then, play the built-in music 1 of application, and start timing, after waiting for 200 milliseconds, obtain the volume value of the sound obtaining by recording, and judge whether this volume value is greater than 100, and whether the present timing value of timing is less than 1 second, if the volume value obtaining be not more than 100 and the present timing value of timing be less than 1 second, continue above-mentioned volume value and the above-mentioned decision operation of obtaining the sound obtaining by recording; If the volume value obtaining be greater than 100 or the present timing value of timing be not less than 1 second, using the present timing value of timing as the second predetermined time interval time2, the value of this second predetermined time interval time2 should be between 200 milliseconds to 1 second; Close above-mentioned music 1, and the current audio frequency broadcast sound volume of intelligent electronic device to be set to volume 0(quiet), then, wait for 300 milliseconds, then, the volume value of the sound that timing acquisition obtains by recording, for example, every 70 milliseconds of volume values that obtain the sound once obtaining by recording, and for multiple (as 10) the volume value compute volume mean value AvgVolume1 getting; Afterwards, the current audio frequency broadcast sound volume of intelligent electronic device is set to volume 1, and plays the built-in first music of intelligent electronic device; After 00 millisecond of wait the second predetermine time interval, the volume value of the sound that timing acquisition obtains by recording, for example, every 70 milliseconds of volume values that obtain the sound once obtaining by recording, and for multiple (as 10) the volume value compute volume mean value AvgVolume2 getting; Judge whether AvgVolume1 and AvgVolume2 meet this condition of AvgVolume2>AvgVolume1*9, if meet this condition, above-mentioned volume 1 is set to the first predetermined value, the current audio frequency broadcast sound volume of intelligent electronic device is being reverted to after the current audio frequency broadcast sound volume of above-mentioned storage, and this initialization procedure finishes; If do not meet this condition, the current audio frequency broadcast sound volume of intelligent electronic device is set to volume 2, and turn back to the volume value of the sound that above-mentioned timing acquisition obtains by recording, and compute volume mean value AvgVolume2 and judge AvgVolume1 and whether AvgVolume2 meets the step of above-mentioned condition; By that analogy, until the relation of AvgVolume1 and AvgVolume2 meets this condition of AvgVolume2>AvgVolume1*9, current audio frequency broadcast sound volume is set to the first predetermined value, and the current audio frequency broadcast sound volume of intelligent electronic device is reverted to after the current audio frequency broadcast sound volume of above-mentioned storage, this initialization procedure finishes.
Embodiment tetra-, external equipment recognition device based on earphone socket.This recognition device is arranged in intelligent electronic device, and this intelligent electronic device can be for adopting the intelligent electronic device (as adopted intelligent mobile phone or the panel computer etc. of Andriod operating system) of Andriod operating system.
Below in conjunction with Fig. 8, the device of the present embodiment is elaborated.
Device shown in Fig. 8 mainly comprises: first module 700 is set, the first acquisition module 710, second arranges module 720, the second acquisition module 730 and identification module 740; In addition, this device can also comprise: the first initialization module, the second initialization module and the 3rd initialization module (not shown in Fig. 8).
First arranges module 700 is connected with the first acquisition module 710.First arranges module 700 is mainly suitable for inserting after external equipment at the earphone socket that monitors intelligent electronic device, trigger intelligent electronic device recording, and the current audio frequency broadcast sound volume of intelligent electronic device is set to the first predetermined value.
Concrete, external equipment identifying for fear of this device impacts the ongoing call of intelligent electronic device or recording, first arranges module 700 can insert external equipment (as received the broadcast of operating system by registration monitor at the earphone socket that intelligent electronic device detected, insert external equipment to determine according to the message that receives in the earphone socket of intelligent electronic device) after, detect the current state (as the modes such as the current daily record by reading intelligent electronic device judge the current state of intelligent electronic device) of intelligent electronic device, if detect that the current state of intelligent electronic device is the states relevant to voice such as talking state or recording state, first arrange module 700 should temporarily not carry out its arrange current audio frequency broadcast sound volume and trigger recording operation, but wait for that intelligent electronic device is finishing the operation relevant to voice (as finished call or finishing recording) afterwards, first arranges module 700 starts to carry out the operation that it arranges current audio frequency broadcast sound volume and triggers recording again.
Because the external equipment identifying of this device can be modified to the current audio frequency broadcast sound volume of intelligent electronic device, therefore, first arranged module 700 before carrying out its current audio frequency broadcast sound volume operation that intelligent electronic device is set, should first obtain the current audio frequency broadcast sound volume of intelligent electronic device, and store this current audio frequency broadcast sound volume, so that execute after identifying operation at identification module 740, the current audio frequency broadcast sound volume of intelligent electronic device can also be reverted to the audio frequency broadcast sound volume before external recognition of devices operation.That is to say, first arranges module 700 has formerly stored after the current audio frequency broadcast sound volume of intelligent electronic device, then triggers intelligent electronic device and carry out recording operation, and the current audio frequency broadcast sound volume of intelligent electronic device is set to the first predetermined value.
Above-mentioned the first predetermined value can be the volume minimum value (being pvw value) of intelligent electronic device, if the first predetermined value is 0, that is to say, first arranges module 700 can be set to mute state by intelligent electronic device.
First arranges triggering intelligent electronic device that module 700 carries out carries out the restriction that can there is no sequencing between the operation that the current audio frequency broadcast sound volume of recording operation and intelligent electronic device is set to the first predetermined value, module 700 is set can carries out two operations simultaneously as first; For another example first module 700 is set can first carries out recording operation, then carry out the setting operation of the first predetermined value; Further, first arranges module 700 also can first carry out the setting operation of the first predetermined value, then carries out recording operation.
First arranges module 700 triggers intelligent electronic device and carries out the operation of recording and can realize by the recording function calling in intelligent electronic device operating system, and the present embodiment does not limit first and module 700 is set triggers intelligent electronic device and carry out the specific implementation of recording operation.
The first acquisition module 710, except arranging module 700 is connected with first, is also connected with identification module 740.The first acquisition module 710 is mainly suitable for, in the first predetermined value situation, obtaining the volume value of the sound obtaining by recording.
Concrete, first, module 700 being set triggers after intelligent electronic device execution recording operation, the first acquisition module 710 need to be set to, the first predetermined value, obtain the volume value of the sound obtaining by recording at the current audio frequency broadcast sound volume of intelligent electronic device.
The first acquisition module 710 can trigger intelligent electronic device execution recording operation and wait for after certain hour, then obtains the volume value of the sound obtaining by recording.A concrete example, first, module 700 is set and first triggers intelligent electronic device execution recording operation, arrange again in the situation of current audio frequency broadcast sound volume of intelligent electronic device, the first acquisition module 710 can be set to the first predetermined value at the first current audio frequency broadcast sound volume that module 700 intelligent electronic devices are set, and after waiting for the first predetermined time interval, then the operation of the volume value of the sound obtaining by recording is obtained in execution.
The first acquisition module 710 can adopt the mode of timing acquisition to obtain the volume value of multiple sound that obtain by recording, and these multiple volume values are calculated to mean value, the volume mean value that this calculates is mainly used in the performed comparison procedure of follow-up identification module 740, and the volume mean value that this calculates can be called as the first volume mean value.
In the time that the first acquisition module 710 calculates the first volume mean value, identification module 740 can judge whether this first volume mean value is greater than predetermined volume value (as 1000), if the first volume mean value is greater than predetermined volume value (as being greater than 1000), can to determine this external equipment be not the external equipment that is provided with the identification circuit in above-described embodiment one to identification module 740, and the identifying of this external equipment finishes; If the first volume mean value is not more than predetermined value (as being less than or equal to 1000), the device of the present embodiment should continue to carry out follow-up step.
Above-mentioned predetermined volume value (as 1000) can be rule of thumb to set in advance in intelligent electronic device; In addition, above-mentioned the first predetermined time interval can be rule of thumb to set in advance in intelligent electronic device, can be also purposive actual conditions for intelligent electronic device and being dynamically placed in intelligent electronic device.
An object lesson that dynamically arranges the first predetermined time interval for the actual conditions of intelligent electronic device is: the current audio frequency broadcast sound volume of setting intelligent electronic device can be the volume that user can manually adjust by modes such as buttons, for example, the volume that Gong user in intelligent electronic device manually adjusts by modes such as buttons is divided into 15 grades (intelligent mobile phone of Andriod operating system has 15 grades can supply the volume of user's manual setting) these 15 grades can be hereinafter referred to as volume 0 to volume 14, and volume 0 wherein represents quiet; According to volume 1, to the putting in order of volume 14, volume 1 to the each self-corresponding sound of volume 14 increases gradually, and the sound maximum of volume 14 correspondences.Be in above-mentioned situation at current audio frequency broadcast sound volume, the concrete setting up procedure of the first predetermined time interval comprises: first, in the case of intelligent electronic device is connected by headset plug and earphone socket with the external equipment with above-mentioned identification circuit of the present embodiment first, this device can carry out initialization setting operation for this external equipment, concrete, the first initialization module is after the current audio frequency broadcast sound volume of backup intelligence electronic equipment, the current audio frequency broadcast sound volume of intelligent electronic device is set to the minimum level volume (being above-mentioned volume 1) except quiet, then, the first initialization module triggers electronic equipment and carries out the operation of the audio signal (as the second music built-in in intelligent electronic device) of playing local storage, and starts timing, waiting for a period of time after (as 500 milliseconds), the first initialization module triggers intelligent electronic device and records, afterwards, waiting for a period of time after (as 300 milliseconds), the first initialization module obtains the volume value (as obtaining the volume value that operating system is returned) of the sound obtaining by recording, and judge whether this volume value is greater than predetermined value (as 100) and whether present timing value reaches scheduled duration (as 2 seconds), if the volume value obtaining is not more than predetermined value and present timing value does not reach scheduled duration, the first initialization module returns to the above-mentioned step of obtaining the volume value of the sound obtaining by recording and judging for volume value and present timing value, if volume value is greater than predetermined value or present timing value reaches scheduled duration, the present timing value of the above-mentioned timing of the first initialization module is set to the first predetermined time interval.
From above-mentioned concrete example, the concrete value of first predetermined time interval of the present embodiment can be set to a numerical value between duration and the scheduled duration of above-mentioned wait by the first initialization module, if the minimum value of the first predetermined time interval is 300 milliseconds, and its maximum occurrences is 2 seconds.
In addition, in actual applications, the volume that the modes such as button of passing through that intelligent electronic device provides for user can manually be adjusted is perhaps more or still less, in order to adapt to dissimilar intelligent electronic device, the current audio frequency broadcast sound volume of the intelligent electronic device in the present embodiment can not be the volume that user can manually adjust by button etc., a concrete example, the maximum broadcast sound volume of intelligent electronic device is divided into 15 grades by the first initialization module, as calculate maximum broadcast sound volume/15, the first initialization module arranges the current audio frequency broadcast sound volume of intelligent electronic device according to the volume value at different levels after above-mentioned division.
Second arranges module 720 is connected with the second acquisition module 730.Second arranges the current audio frequency broadcast sound volume that module 720 is mainly suitable for intelligent electronic device is set to the second predetermined value.
Concrete, after successfully having obtained the volume value of the sound obtaining by recording for first predetermined value the first acquisition module 710, the second current audio frequency broadcast sound volume adjustment that module 720 intelligent electronic devices are set is set to the second predetermined value, and the second predetermined value is greater than the first predetermined value.
Above-mentioned the second predetermined value can be rule of thumb to set in advance in intelligent electronic device, can be also purposive actual conditions for intelligent electronic device and being dynamically placed in intelligent electronic device.
An object lesson that dynamically arranges the second predetermined value for the actual conditions of intelligent electronic device is: setting the first predetermined value is that 0(is that intelligent electronic device is in mute state), the current audio frequency broadcast sound volume of the 3rd initialization module intelligent electronic device is set to the first predetermined value, the volume value (as obtaining the volume value that operating system is returned) of the sound that the 3rd initialization module timing acquisition obtains by recording, and for the multiple volume values that get (as 10 volume values) calculating mean values (being designated as the first mean value), the 3rd initialization module triggers intelligent electronic device and plays local pre-stored audio signal (as play first music), and the current audio frequency broadcast sound volume of intelligent electronic device is set to volume 1(as the minimum level volume except quiet), then, the volume value (as obtaining the volume value that operating system is returned) of the sound that the 3rd initialization module timing acquisition obtains by recording, and for the multiple volume values that get (as 10 volume values) calculating mean values (being designated as the second mean value), afterwards, the 3rd initialization module judges that whether the second mean value be that (this prearranged multiple should be greater than 7 times for the prearranged multiple of the first mean value, as adopted 9 times), if the second mean value does not reach the prearranged multiple of the first mean value, the current audio frequency broadcast sound volume of the 3rd initialization module intelligent electronic device is set to volume 2, and turn back to the volume value of the sound that timing acquisition obtains by recording and for the multiple volume value calculating mean values (being designated as the second mean value) that get and the step that judges multiple, if the second mean value reaches the prearranged multiple of the first mean value, the current audio frequency broadcast sound volume of intelligent electronic device is defined as the second predetermined value by the 3rd initialization module.
The second acquisition module 730, except arranging module 720 is connected with second, is also connected with identification module 740.The second acquisition module 730 is mainly suitable for playing predetermined audio signal, and in the second predetermined value situation, obtains the volume value of the sound obtaining by recording.
Concrete, the second acquisition module 730 need to be arranged module 720 adjustment by second at the current audio frequency broadcast sound volume of intelligent electronic device and be set to, the second predetermined value, obtain the volume value of the sound obtaining by recording.
The second acquisition module 730 can be play at intelligent electronic device the predetermined audio signal (in as intelligent electronic device built-in first music) of local storage, and wait for after the second predetermined time interval, carry out the operation of the volume value that obtains the sound obtaining by recording.
The second acquisition module 730 can adopt the mode of timing acquisition to obtain the volume value (as 10 volume values) of multiple sound that obtain by recording, and the multiple volume values that get are calculated to mean value (being designated as the second mean value), the volume mean value that the second acquisition module 730 calculates is for the comparison procedure of follow-up identification module 740.
Above-mentioned the second predetermined time interval sets in advance in intelligent electronic device, and this second predetermined time interval can be rule of thumb to set in advance in intelligent electronic device, can be also purposive actual conditions for intelligent electronic device and being dynamically placed in intelligent electronic device.
An object lesson that dynamically arranges the second predetermined time interval for the actual conditions of intelligent electronic device is: the device at the present embodiment carries out for this external equipment in the process of initialization setting operation, after the first initialization module is provided with the first predetermined time interval, the second initialization module triggers intelligent electronic device and plays the audio signal (as first music built-in in intelligent electronic device) setting in advance, and start timing, waiting for a period of time after (as waited for 200 milliseconds), the second initialization module obtains the volume value (as obtaining the volume value that operating system is returned) of the sound obtaining by recording, and judge whether this volume value is greater than predetermined value (as 100) and whether present timing value reaches another scheduled duration (as 1 second), if the volume value that the second initialization module obtains is not more than predetermined value and present timing value does not reach another scheduled duration, the second initialization module returns to the above-mentioned step of obtaining the volume value of the sound obtaining by recording and judging for volume value and present timing value, if volume value is greater than predetermined value or present timing value reaches another scheduled duration, the present timing value of the above-mentioned timing of the second initialization module is set to the second predetermined time interval.
From above-mentioned concrete example, the concrete value of second predetermined time interval of the present embodiment can be set to a numerical value between duration and another scheduled duration of above-mentioned wait by the second initialization module, if the minimum value of the second predetermined time interval is 200 milliseconds, and its maximum occurrences is 1 second.
Whether identification module 740 is mainly suitable for according to the relatively more definite external equipment between the volume value that obtains for the first predetermined value and the volume value obtaining for the second predetermined value for being provided with the external equipment of the identification circuit of recording in embodiment mono-.
Concrete, identification module 740 can judge whether the mean value (being above-mentioned the second mean value) of the volume value that the second acquisition module 730 calculates for the second predetermined value reaches another prearranged multiple (as 7 times) of the mean value (being above-mentioned the first mean value) of the volume value that the first acquisition module 710 calculates for the first predetermined value; If the second mean value reaches 7 times of the first mean value, to determine this external equipment be the external equipment that is provided with the identification circuit that above-described embodiment one records to identification module 740; If the second mean value does not reach 7 times of the first mean value, identification module 740 is determined this external equipment for being provided with the external equipment of the identification circuit that above-described embodiment one records.
The used time of the whole process of the identifying of this device to external equipment is no more than 2 seconds conventionally.At intelligent electronic device in quiet in the situation that, the input of source of sound that intelligent electronic device is recorded to is lower and sound more stably, and be set to non-quiet in the situation that at intelligent electronic device, in the time having music, the volume of the source of sound input that intelligent electronic device is recorded to can become suddenly large; Through test of many times checking, the ratio of the volume mean value that obtains of two stages exceedes 7 times; Existing earphone is at intelligent electronic device in quiet in the situation that, and the volume of source of sound that intelligent electronic device receives input is conventionally all more steady, and through test of many times checking, the ratio of the volume mean value that obtains of two stages is no more than 6 times; Therefore, this device is the external equipment that is provided with above-mentioned identification circuit by judging that the ratio of the volume mean value under different situations can accurately judge the external equipment of intelligent electronic device, or other equipment are as external equipments such as common earphones.
In addition, it should be noted that, identification module 740 is to be provided with the external equipment of the identification circuit that above-described embodiment one records in the case of identifying external equipment, should be that the communication of invalid earphone is to the relevant portion in intelligent electronic device, as identification module 740 is notified operating system or notice application relevant to voice operating etc. by the external equipment of insertion; Like this, in operating system or related application in the time carrying out the operation relevant to voice (as receive calls etc.), can know that the current external equipment being connected with intelligent electronic device by earphone socket is not earphone, thereby can switch to the operation of the built-in microphone of intelligent electronic device, and not re-use earphone microphone.Because the switch E1 in above-described embodiment one is when the off-state, the audio signal of intelligent electronic device output is play by built-in microphone, and can not transfer to recording loop by earphone socket, headset plug, and be back to microphone by recording loop, headset plug and earphone socket, therefore the external equipment that, is provided with the identification circuit that above-described embodiment one records can not exert an influence to operations such as the normal talkings of intelligent electronic device.
In Fig. 9, the external equipment recognition system based on earphone socket mainly comprises: external equipment 800 and intelligent electronic device 810; Wherein, in external equipment 800, be provided with the external equipment identification circuit based on earphone socket that above-described embodiment one is recorded, in intelligent electronic device 810, be provided with the external equipment recognition device based on earphone socket that above-described embodiment three is recorded, and external equipment 800 is connected with intelligent electronic device by headset plug.
The concrete structure of the identification circuit in external equipment 800 is as the record in above-described embodiment one, the structure of the recognition device in intelligent electronic device 810 is as the record in above-described embodiment two, the performed operation of recognition device can, referring to the record in above-described embodiment two and embodiment tri-, not be repeated.
A1, a kind of external equipment identification circuit based on earphone socket, it comprises: headset plug and recording loop;
Described headset plug has sound channel link, microphone link and earth terminal;
Described recording loop has the first link, the second link and the 3rd link;
Wherein, described the first link is connected with described sound channel link, and described the second link is connected with described microphone link, and described the 3rd link is connected with described earth terminal;
Described recording loop is connected with the microphone in intelligent electronic device by the earphone socket in described headset plug and intelligent electronic device, and described recording loop forms microphone circuit together with headset plug, earphone socket and described microphone.
A2, circuit as described in A1, wherein, described microphone circuit comprises: capacitor microphone circuit.
A3, circuit as described in A2, wherein, described recording loop comprises: the first electric capacity, the first resistance and the second resistance;
One end of described the first electric capacity is described the first link, and the other end is connected respectively with described the first resistance and the second resistance, and described the first electric capacity is connected respectively with the first resistance and the second resistance;
One end of described the first resistance is described the second link, and the other end is connected with described the first electric capacity;
One end of described the second resistance is described the 3rd link, and the other end is connected with described the first electric capacity;
Described the first resistance and the second resistance parallel connection.
A4, circuit as described in A2, wherein, described recording loop comprises: the 3rd resistance, the 3rd electric capacity and the 4th electric capacity;
One end of described the 3rd resistance is described the first link, and the other end is connected respectively with described the 3rd electric capacity and the 4th electric capacity, and described the first resistance is connected respectively with the 3rd electric capacity and the 4th electric capacity;
One end of described the 3rd electric capacity is described the second link, and the other end is connected with described the 3rd resistance;
One end of described the 4th electric capacity is described the 3rd link, and the other end is connected with described the 3rd resistance;
Described the 3rd electric capacity and the 4th Capacitance parallel connection.
A5, circuit as described in A2, wherein, described recording loop comprises: the 4th resistance, the 5th resistance and the 6th resistance;
One end of described the 4th electric capacity is described the first link, and the other end is connected respectively with described the 5th resistance and the 6th resistance, and described the 4th resistance is connected respectively with the 5th resistance and the 6th resistance;
One end of described the 5th resistance is described the second link, and the other end is connected with described the 6th resistance;
One end of described the 6th resistance is described the 3rd link, and the other end is connected with described the 5th resistance;
Described the 5th resistance and the 6th resistance parallel connection.
A6, as the circuit as described in arbitrary in A1 to A5, wherein, described recording loop also comprises: switch, and described switch series is connected between the second link and the 3rd link.
A7, as the circuit as described in arbitrary in A1 to A5, wherein, described sound channel link comprises: L channel link and R channel link, and described the first link is connected with described L channel link and/or R channel link.
B8, a kind of external equipment recognition methods based on earphone socket, it comprises:
Insert after external equipment at the earphone socket that monitors intelligent electronic device, trigger intelligent electronic device recording, and the current audio frequency broadcast sound volume of described intelligent electronic device is set to the first predetermined value;
In described the first predetermined value situation, obtain the volume value of the sound obtaining by recording;
The current audio frequency broadcast sound volume of described intelligent electronic device is set to the second predetermined value;
Play predetermined audio signal, and in described the second predetermined value situation, obtain the volume value of the sound obtaining by recording;
Whether the described external equipment of relatively determining between the volume value obtaining according to the volume value obtaining for the first predetermined value and for the second predetermined value is the external equipment that is provided with recording loop and headset plug, and described recording loop forms microphone circuit with the earphone socket of described headset plug and described intelligent electronic device together with microphone.
B9, method as described in B8, wherein, the current audio frequency broadcast sound volume of described intelligent electronic device is set to the first predetermined value and comprises:
Current audio frequency broadcast sound volume the storage of obtaining intelligent electronic device, then, the current audio frequency broadcast sound volume of described intelligent electronic device is set to the first predetermined value;
And described method also comprises:
After identification external equipment, the current audio frequency broadcast sound volume of described intelligent electronic device is set to the current audio frequency broadcast sound volume of described storage.
B10, method as described in B8, wherein, described in described the first predetermined value situation, the volume value that obtains the sound obtaining by recording comprises:
Current audio frequency broadcast sound volume at described intelligent electronic device is set to the first predetermined value, and waits for after the first predetermined time interval, obtains the volume value of the sound obtaining by recording.
B11, method as described in B10, wherein, this first predetermined time interval arranges by following manner:
The current audio frequency broadcast sound volume of described intelligent electronic device is set to the minimum level volume value except quiet;
Playing audio signal, triggers intelligent electronic device recording, and starts timing;
The volume value of the sound that monitoring obtains by recording, is greater than predetermined volume value at the described volume value monitoring, using present timing value as described the first predetermined time interval.
B12, method as described in B8, wherein, described in described the second predetermined value situation, the volume value that obtains the sound obtaining by recording comprises:
Play predetermined audio signal, and waiting for after the second predetermined time interval, obtaining the volume value of the sound obtaining by recording.
B13, method as described in B12, wherein, this second predetermined time interval arranges by following manner:
The current audio frequency broadcast sound volume of described intelligent electronic device is set to the minimum level volume value except quiet;
Play described predetermined audio signal, trigger intelligent electronic device recording, and start timing;
The volume value of the sound that monitoring obtains by recording, is greater than predetermined volume value at the described volume value monitoring, using present timing value as described the second predetermined time interval.
B14, as the method as described in arbitrary in B8 to B13, wherein, described in obtain the sound obtaining by recording volume value comprise:
The volume value that the operating system of timing acquisition intelligent electronic device is returned, and for the volume value calculating mean value of the predetermined quantity getting.
B15, method as described in B14, whether the described external equipment of relatively determining between the volume value that wherein, described basis is obtained for the first predetermined value and the volume value that obtains for the second predetermined value is that the external equipment that is provided with recording loop and headset plug comprises:
Whether the mean value that judges the volume value calculating for the second predetermined value reaches seven times of mean value of the volume value calculating for the first predetermined value;
If reach seven times, determine that described external equipment is the external equipment that is provided with described identification circuit;
If do not reach seven times, determine that described external equipment is not for being provided with the external equipment of described identification circuit.
B16, method as described in B15, wherein, described the first predetermined value is 0, and described the second predetermined value arranges by following manner:
The current audio frequency broadcast sound volume of described intelligent electronic device is set to the first predetermined value, obtains the volume value of the sound obtaining by recording, and for the volume value calculating mean value of the predetermined quantity getting;
Play predetermined audio signal;
Current audio frequency broadcast sound volume is adjusted into next stage volume value, obtains the volume value of the sound obtaining by recording, and for the volume value calculating mean value of the predetermined quantity getting;
Judge whether the mean value of the volume value calculating for the current audio frequency broadcast sound volume after adjusting reaches the prearranged multiple of the mean value of the volume value calculating for the first predetermined value, and wherein, described prearranged multiple is greater than seven times;
If reach prearranged multiple, using the current audio frequency broadcast sound volume after described adjustment as described the second predetermined value;
If do not reach prearranged multiple, turn back to the described step that current audio frequency broadcast sound volume is adjusted into next stage volume value.
B17, method as described in B15, wherein, described method also comprises:
Exceed predetermined threshold in the case of determining the mean value of the volume value calculating for the first predetermined value, determine that described external equipment is not for being provided with the external equipment of described identification circuit.
B18, method as described in B8, wherein, described external equipment is the external equipment that is provided with arbitrary described identification circuit in A1-A7.
C19, a kind of external equipment recognition device based on earphone socket, it comprises:
First arranges module, is suitable for inserting after external equipment at the earphone socket that monitors intelligent electronic device, trigger intelligent electronic device recording, and the current audio frequency broadcast sound volume of described intelligent electronic device is set to the first predetermined value;
The first acquisition module, is suitable for, in described the first predetermined value situation, obtaining the volume value of the sound obtaining by recording;
Second arranges module, and the current audio frequency broadcast sound volume that is suitable for described intelligent electronic device is set to the second predetermined value;
The second acquisition module, is suitable for playing predetermined audio signal, and in described the second predetermined value situation, obtains the volume value of the sound obtaining by recording;
Identification module, whether be suitable for according to the volume value that obtains for the first predetermined value is the external equipment that is provided with record loop and headset plug, and described recording loop forms microphone circuit with the earphone socket of described headset plug and described intelligent electronic device together with microphone with the described external equipment of relatively determining between the volume value obtaining for the second predetermined value.
C20, device as described in C19, wherein, the current audio frequency broadcast sound volume of described intelligent electronic device is set to the first predetermined value and comprises:
Current audio frequency broadcast sound volume the storage of obtaining intelligent electronic device, then, the current audio frequency broadcast sound volume of described intelligent electronic device is set to the first predetermined value;
And described identification module is also suitable for:
After identification external equipment, the current audio frequency broadcast sound volume of described intelligent electronic device is set to the current audio frequency broadcast sound volume of described storage.
C21, device as described in C19, wherein, described in described the first predetermined value situation, the volume value that obtains the sound obtaining by recording comprises:
Current audio frequency broadcast sound volume at described intelligent electronic device is set to the first predetermined value, and waits for after the first predetermined time interval, obtains the volume value of the sound obtaining by recording.
C22, device as described in C21, wherein, described device also comprises:
The first initialization module, the current audio frequency broadcast sound volume that is suitable for described intelligent electronic device is set to the minimum level volume value except quiet; Playing audio signal, triggers intelligent electronic device recording, and starts timing; The volume value of the sound that monitoring obtains by recording, is greater than predetermined volume value at the described volume value monitoring, using present timing value as described the first predetermined time interval.
C23, device as described in C19, wherein, described in described the second predetermined value situation, the volume value that obtains the sound obtaining by recording comprises:
Play predetermined audio signal, and waiting for after the second predetermined time interval, obtaining the volume value of the sound obtaining by recording.
C24, device as described in C23, wherein, described device also comprises:
The second initialization module, the current audio frequency broadcast sound volume that is suitable for described intelligent electronic device is set to the minimum level volume value except quiet; Play described predetermined audio signal, trigger intelligent electronic device recording, and start timing; The volume value of the sound that monitoring obtains by recording, is greater than predetermined volume value at the described volume value monitoring, using present timing value as described the second predetermined time interval.
C25, as the device as described in arbitrary in C19 to C24, wherein, described in obtain the sound obtaining by recording volume value comprise:
The volume value that the operating system of timing acquisition intelligent electronic device is returned, and for the volume value calculating mean value of the predetermined quantity getting.
C26, device as described in C25, whether the described external equipment of relatively determining between the volume value that wherein, described basis is obtained for the first predetermined value and the volume value that obtains for the second predetermined value is that the external equipment that is provided with recording loop and headset plug comprises:
Whether the mean value that judges the volume value calculating for the second predetermined value reaches seven times of mean value of the volume value calculating for the first predetermined value;
If reach seven times, determine that described external equipment is the external equipment that is provided with described identification circuit;
If do not reach seven times, determine that described external equipment is not for being provided with the external equipment of described identification circuit.
C27, device as described in C26, wherein, described the first predetermined value is 0, and this device also comprises:
The 3rd initialization module, the current audio frequency broadcast sound volume that is suitable for described intelligent electronic device is set to the first predetermined value, obtains the volume value of the sound obtaining by recording, and for the volume value calculating mean value of the predetermined quantity getting; Play predetermined audio signal; Current audio frequency broadcast sound volume is adjusted into next stage volume value, obtains the volume value of the sound obtaining by recording, and for the volume value calculating mean value of the predetermined quantity getting;
Judge whether the mean value of the volume value calculating for the current audio frequency broadcast sound volume after adjusting reaches the prearranged multiple of the mean value of the volume value calculating for the first predetermined value, and wherein, described prearranged multiple is greater than seven times;
If reach prearranged multiple, using the current audio frequency broadcast sound volume after described adjustment as described the second predetermined value;
If do not reach prearranged multiple, turn back to the described step that current audio frequency broadcast sound volume is adjusted into next stage volume value.
C28, device as described in C26, wherein, described identification module is also suitable for:
Exceed predetermined threshold in the case of determining the mean value of the volume value calculating for the first predetermined value, determine that described external equipment is not for being provided with the external equipment of described identification circuit.
C29, device as described in C19, wherein, described external equipment is the external equipment that is provided with arbitrary described identification circuit in A1-A7.
D30, a kind of external equipment recognition system based on earphone socket, it comprises: external equipment and intelligent electronic device;
In described external equipment, be provided with arbitrary described identification circuit in A1-A7;
In described intelligent electronic device, be provided with arbitrary described external equipment recognition device based on earphone socket in C19-C29.
The algorithm providing at this is intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with demonstration.Various general-purpose systems also can with based on using together with this teaching.According to description above, it is apparent constructing the desired structure of this type systematic.In addition, the present invention is not also for any certain programmed language.It should be understood that and can utilize various programming languages to realize content of the present invention described here, and the description of above language-specific being done is in order to disclose preferred forms of the present invention.
Those skilled in the art are appreciated that and can the module in the equipment in embodiment are adaptively changed and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and can put them in addition multiple submodules or subelement or sub-component.At least some in such feature and/or process or unit are mutually repelling, and can adopt any combination to combine all processes or the unit of disclosed all features in this specification (comprising claim, summary and the accompanying drawing followed) and disclosed any method like this or equipment.Unless clearly statement in addition, in this specification (comprising claim, summary and the accompanying drawing followed) disclosed each feature can be by providing identical, be equal to or the alternative features of similar object replaces.
In addition, those skilled in the art can understand, although embodiment more described herein comprise some feature instead of further feature included in other embodiment, the combination of the feature of different embodiment means within scope of the present invention and forms different embodiment.As in the following claims, the one of any of embodiment required for protection can be used with compound mode arbitrarily.
All parts embodiment of the present invention can realize with hardware, or realizes with the software module of moving on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that and can use in practice microprocessor or digital signal processor (DSP) to realize according to the some or all functions of the some or all parts in the external equipment recognition device based on earphone socket of the embodiment of the present invention and the external equipment recognition system based on earphone socket.The present invention can also be embodied as part or all equipment or the device program (as computer program and computer program) for carrying out method as described herein.Realizing program of the present invention and can be stored on computer-readable medium like this, or can there is the form of one or more signal.Such signal can be downloaded and obtain from internet website, or provides on carrier signal, or provides with any other form.
It should be noted, the present invention will be described instead of limit the invention for above-described embodiment, and those skilled in the art can design alternative embodiment in the case of not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and is not listed as element or step in the claims.Being positioned at word " " before element or " one " does not get rid of and has multiple such elements.The present invention can be by means of including the hardware of some different elements and realizing by means of the computer of suitably programming.In the unit claim of having enumerated some devices, several in these devices can be to carry out imbody by same hardware branch.The use of word first, second and C grade does not represent any order.Can be title by these word explanations.

Claims (10)

1. the external equipment identification circuit based on earphone socket, it comprises: headset plug and recording loop;
Described headset plug has sound channel link, microphone link and earth terminal;
Described recording loop has the first link, the second link and the 3rd link;
Wherein, described the first link is connected with described sound channel link, and described the second link is connected with described microphone link, and described the 3rd link is connected with described earth terminal;
Described recording loop is connected with the microphone in intelligent electronic device by the earphone socket in described headset plug and intelligent electronic device, and described recording loop forms microphone circuit together with headset plug, earphone socket and described microphone.
2. circuit as claimed in claim 1, wherein, described microphone circuit comprises: capacitor microphone circuit.
3. circuit as claimed in claim 2, wherein, described recording loop comprises: the first electric capacity, the first resistance and the second resistance;
One end of described the first electric capacity is described the first link, and the other end is connected respectively with described the first resistance and the second resistance, and described the first electric capacity is connected respectively with the first resistance and the second resistance;
One end of described the first resistance is described the second link, and the other end is connected with described the first electric capacity;
One end of described the second resistance is described the 3rd link, and the other end is connected with described the first electric capacity;
Described the first resistance and the second resistance parallel connection.
4. circuit as claimed in claim 2, wherein, described recording loop comprises: the 3rd resistance, the 3rd electric capacity and the 4th electric capacity;
One end of described the 3rd resistance is described the first link, and the other end is connected respectively with described the 3rd electric capacity and the 4th electric capacity, and described the first resistance is connected respectively with the 3rd electric capacity and the 4th electric capacity;
One end of described the 3rd electric capacity is described the second link, and the other end is connected with described the 3rd resistance;
One end of described the 4th electric capacity is described the 3rd link, and the other end is connected with described the 3rd resistance;
Described the 3rd electric capacity and the 4th Capacitance parallel connection.
5. circuit as claimed in claim 2, wherein, described recording loop comprises: the 4th resistance, the 5th resistance and the 6th resistance;
One end of described the 4th electric capacity is described the first link, and the other end is connected respectively with described the 5th resistance and the 6th resistance, and described the 4th resistance is connected respectively with the 5th resistance and the 6th resistance;
One end of described the 5th resistance is described the second link, and the other end is connected with described the 6th resistance;
One end of described the 6th resistance is described the 3rd link, and the other end is connected with described the 5th resistance;
Described the 5th resistance and the 6th resistance parallel connection.
6. the circuit as described in arbitrary claim in claim 1 to 5, wherein, described sound channel link comprises: L channel link and R channel link, and described the first link is connected with described L channel link and/or R channel link.
7. the external equipment recognition methods based on earphone socket, it comprises:
Insert after external equipment at the earphone socket that monitors intelligent electronic device, trigger intelligent electronic device recording, and the current audio frequency broadcast sound volume of described intelligent electronic device is set to the first predetermined value;
In described the first predetermined value situation, obtain the volume value of the sound obtaining by recording;
The current audio frequency broadcast sound volume of described intelligent electronic device is set to the second predetermined value;
Play predetermined audio signal, and in described the second predetermined value situation, obtain the volume value of the sound obtaining by recording;
Whether the described external equipment of relatively determining between the volume value obtaining according to the volume value obtaining for the first predetermined value and for the second predetermined value is the external equipment that is provided with recording loop and headset plug, and described recording loop forms microphone circuit with the earphone socket of described headset plug and described intelligent electronic device together with microphone.
8. method as claimed in claim 7, wherein, the current audio frequency broadcast sound volume of described intelligent electronic device is set to the first predetermined value and comprises:
Current audio frequency broadcast sound volume the storage of obtaining intelligent electronic device, then, the current audio frequency broadcast sound volume of described intelligent electronic device is set to the first predetermined value;
And described method also comprises:
After identification external equipment, the current audio frequency broadcast sound volume of described intelligent electronic device is set to the current audio frequency broadcast sound volume of described storage.
9. the external equipment recognition device based on earphone socket, it comprises:
First arranges module, is suitable for inserting after external equipment at the earphone socket that monitors intelligent electronic device, trigger intelligent electronic device recording, and the current audio frequency broadcast sound volume of described intelligent electronic device is set to the first predetermined value;
The first acquisition module, is suitable for, in described the first predetermined value situation, obtaining the volume value of the sound obtaining by recording;
Second arranges module, and the current audio frequency broadcast sound volume that is suitable for described intelligent electronic device is set to the second predetermined value;
The second acquisition module, is suitable for playing predetermined audio signal, and in described the second predetermined value situation, obtains the volume value of the sound obtaining by recording;
Identification module, whether be suitable for according to the volume value that obtains for the first predetermined value is the external equipment that is provided with record loop and headset plug, and described recording loop forms microphone circuit with the earphone socket of described headset plug and described intelligent electronic device together with microphone with the described external equipment of relatively determining between the volume value obtaining for the second predetermined value.
10. the external equipment recognition system based on earphone socket, it comprises: external equipment and intelligent electronic device;
In described external equipment, be provided with the identification circuit described in arbitrary claim in claim 1-6;
In described intelligent electronic device, be provided with the external equipment recognition device based on earphone socket claimed in claim 9.
CN201410112245.3A 2014-01-09 2014-03-24 Based on external equipment identify circuit, the methods, devices and systems of earphone socket Expired - Fee Related CN103873988B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201410112245.3A CN103873988B (en) 2014-01-09 2014-03-24 Based on external equipment identify circuit, the methods, devices and systems of earphone socket
CN201610298835.9A CN105959845B (en) 2014-01-09 2014-03-24 External equipment identification circuit, methods, devices and systems based on earphone socket
PCT/CN2014/093598 WO2015143896A1 (en) 2014-03-24 2014-12-11 Recognition circuit, method, apparatus and system for external device based on earphone socket

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201410010628 2014-01-09
CN201410010628.X 2014-01-09
CN201410010628X 2014-01-09
CN201410112245.3A CN103873988B (en) 2014-01-09 2014-03-24 Based on external equipment identify circuit, the methods, devices and systems of earphone socket

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201610298835.9A Division CN105959845B (en) 2014-01-09 2014-03-24 External equipment identification circuit, methods, devices and systems based on earphone socket

Publications (2)

Publication Number Publication Date
CN103873988A true CN103873988A (en) 2014-06-18
CN103873988B CN103873988B (en) 2016-06-01

Family

ID=54198787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410112245.3A Expired - Fee Related CN103873988B (en) 2014-01-09 2014-03-24 Based on external equipment identify circuit, the methods, devices and systems of earphone socket

Country Status (2)

Country Link
CN (1) CN103873988B (en)
WO (1) WO2015143896A1 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104581529A (en) * 2014-12-10 2015-04-29 北京利云技术开发公司 Recording blocker
CN104794074A (en) * 2015-03-27 2015-07-22 小米科技有限责任公司 External connection device identification method and device
WO2015143896A1 (en) * 2014-03-24 2015-10-01 北京奇虎科技有限公司 Recognition circuit, method, apparatus and system for external device based on earphone socket
CN105611449A (en) * 2016-01-29 2016-05-25 广东欧珀移动通信有限公司 Method and device for identifying selfie stick and mobile terminal
CN105741862A (en) * 2016-01-29 2016-07-06 广东欧珀移动通信有限公司 Method and device for recording audios through mobile terminal and mobile terminal
CN105741863A (en) * 2016-01-29 2016-07-06 广东欧珀移动通信有限公司 Method and device for mobile terminal to play voice frequency, and mobile terminal
CN109495814A (en) * 2018-11-21 2019-03-19 广州市百果园信息技术有限公司 Audio connector, acoustic signal processing method and audio signal processing
CN112345981A (en) * 2020-09-25 2021-02-09 深圳宝新创科技股份有限公司 Detection jig and method for detecting audio socket
CN113571032A (en) * 2020-04-28 2021-10-29 深圳市万普拉斯科技有限公司 Audio data transmission method and device, computer equipment and storage medium
CN115793062A (en) * 2021-07-22 2023-03-14 荣耀终端有限公司 Earphone in-place detection method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051989A (en) * 2011-10-12 2013-04-17 宏达国际电子股份有限公司 Audio electronic device and audio plug recognition and operation method
CN103220614A (en) * 2012-01-20 2013-07-24 天地融科技股份有限公司 Audio interface type detection device
CN103391495A (en) * 2013-07-01 2013-11-13 上海摩软通讯技术有限公司 Automatic earphone adaptation circuit and adaptation method thereof
CN103414981A (en) * 2013-07-17 2013-11-27 天地融科技股份有限公司 Device, method and terminal for recognizing audio interface pins

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100598463B1 (en) * 2005-05-16 2006-07-10 엘지전자 주식회사 Apparatus and method for automatic recognition tty terminal and ctm converter of mobile communication terminal
CN102547506A (en) * 2010-12-30 2012-07-04 深圳富泰宏精密工业有限公司 Headphone interface circuit and electronic device with same
CN203801066U (en) * 2014-01-09 2014-08-27 北京奇虎科技有限公司 Earphone socket-based external equipment identification circuit and external equipment
CN103873988B (en) * 2014-01-09 2016-06-01 北京奇虎科技有限公司 Based on external equipment identify circuit, the methods, devices and systems of earphone socket

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051989A (en) * 2011-10-12 2013-04-17 宏达国际电子股份有限公司 Audio electronic device and audio plug recognition and operation method
CN103220614A (en) * 2012-01-20 2013-07-24 天地融科技股份有限公司 Audio interface type detection device
CN103391495A (en) * 2013-07-01 2013-11-13 上海摩软通讯技术有限公司 Automatic earphone adaptation circuit and adaptation method thereof
CN103414981A (en) * 2013-07-17 2013-11-27 天地融科技股份有限公司 Device, method and terminal for recognizing audio interface pins

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015143896A1 (en) * 2014-03-24 2015-10-01 北京奇虎科技有限公司 Recognition circuit, method, apparatus and system for external device based on earphone socket
CN104581529A (en) * 2014-12-10 2015-04-29 北京利云技术开发公司 Recording blocker
CN104794074B (en) * 2015-03-27 2018-04-06 小米科技有限责任公司 External equipment recognition methods and device
CN104794074A (en) * 2015-03-27 2015-07-22 小米科技有限责任公司 External connection device identification method and device
CN105611449A (en) * 2016-01-29 2016-05-25 广东欧珀移动通信有限公司 Method and device for identifying selfie stick and mobile terminal
CN105741863A (en) * 2016-01-29 2016-07-06 广东欧珀移动通信有限公司 Method and device for mobile terminal to play voice frequency, and mobile terminal
CN105741862A (en) * 2016-01-29 2016-07-06 广东欧珀移动通信有限公司 Method and device for recording audios through mobile terminal and mobile terminal
CN105741862B (en) * 2016-01-29 2018-05-08 广东欧珀移动通信有限公司 A kind of method and apparatus and mobile terminal of audio frequency of mobile terminal typing
CN109495814A (en) * 2018-11-21 2019-03-19 广州市百果园信息技术有限公司 Audio connector, acoustic signal processing method and audio signal processing
CN113571032A (en) * 2020-04-28 2021-10-29 深圳市万普拉斯科技有限公司 Audio data transmission method and device, computer equipment and storage medium
CN112345981A (en) * 2020-09-25 2021-02-09 深圳宝新创科技股份有限公司 Detection jig and method for detecting audio socket
CN115793062A (en) * 2021-07-22 2023-03-14 荣耀终端有限公司 Earphone in-place detection method and device
CN115793062B (en) * 2021-07-22 2024-04-02 荣耀终端有限公司 Earphone in-place detection method and device

Also Published As

Publication number Publication date
CN103873988B (en) 2016-06-01
WO2015143896A1 (en) 2015-10-01

Similar Documents

Publication Publication Date Title
CN103873988A (en) External device recognition circuit, method, device and system based on headphone jack
EP2645737B1 (en) Apparatus and method for interfacing earphone
US11445285B2 (en) Interactive control method and device of an earphone case, earphone case and storage medium
US8320586B2 (en) System and method for reducing volume spike in an electronic device
WO2017166603A1 (en) Sound quality adjustment method, terminal, electronic device, and non-volatile computer storage medium
CN104335559A (en) Method for adjusting volume automatically, volume adjusting apparatus and electronic apparatus
CN110430562B (en) Bluetooth communication method and related device
CN107371102B (en) Audio playing volume control method and device, storage medium and mobile terminal
CN102333157A (en) Mobile terminal and conversation voice recording method and device used for mobile terminal
CN105120063A (en) Volume prompting method of input voice and electronic device
US20220353627A1 (en) Wireless earphone synchronization detection method, apparatus, wireless earphones and storage medium
CN104991755A (en) Information processing method and electronic device
CN105376418A (en) Incoming call information processing method, device and system
KR100783113B1 (en) Method for shortened storing of music file in mobile communication terminal
CN101662313A (en) System and method for searching communication device by blue tooth
CN103929692B (en) Audio information processing method and electronic equipment
CN108377290A (en) A kind of audio stream processing method and mobile terminal and medium product
CN105828224B (en) Electronic device, corrector and earphone microphone for correcting electronic device
CN115631738A (en) Audio data processing method and device, electronic equipment and storage medium
CN103853646A (en) Called prompting system and method
CN110603804A (en) Interference generation
CN110381416A (en) A kind of media play method for controlling volume, device, electronic equipment and storage medium
CN104754099A (en) Conversation volume adjusting method
CN104735249A (en) Information processing method and electronic equipment
CN105959845B (en) External equipment identification circuit, methods, devices and systems based on earphone socket

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160601

Termination date: 20210324