CN105959845A - External equipment identification circuit, method, device and system based on earphone socket - Google Patents

External equipment identification circuit, method, device and system based on earphone socket Download PDF

Info

Publication number
CN105959845A
CN105959845A CN201610298835.9A CN201610298835A CN105959845A CN 105959845 A CN105959845 A CN 105959845A CN 201610298835 A CN201610298835 A CN 201610298835A CN 105959845 A CN105959845 A CN 105959845A
Authority
CN
China
Prior art keywords
volume
value
electronic device
intelligent electronic
recording
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
CN201610298835.9A
Other languages
Chinese (zh)
Other versions
CN105959845B (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 claimed from CN201410112245.3A external-priority patent/CN103873988B/en
Publication of CN105959845A publication Critical patent/CN105959845A/en
Application granted granted Critical
Publication of CN105959845B publication Critical patent/CN105959845B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones

Landscapes

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

Abstract

The invention discloses an external equipment identification circuit, a method, a device and a system based on an earphone socket. The identification circuit comprises an earphone plug and a recording loop. The earphone plug has a sound track connecting end, a microphone connecting end and a grounding end. The recording loop has a first connecting end, a second connecting end and a third connecting end, wherein the first connecting end is connected with the sound track 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 intelligent electronic equipment through the earphone plug and an earphone socket in the intelligent electronic equipment. The recording loop, the earphone plug, the earphone socket and the microphone forms a microphone circuit.

Description

External equipment identification circuit based on earphone socket, methods, devices and systems
Technical field
The present invention relates to equipment identification technology, be specifically related to a kind of external equipment identification based on earphone socket Circuit, methods, devices and systems.This case is the divisional application of Application No. 201410112245.3.
Background technology
Intelligent electronic device (such as intelligent electronic device based on Android operation system) can pass through it Earphone socket is connected with external equipment, as intelligent electronic device can by its earphone socket and earphone, draw The external equipments such as OK a karaoke club equipment, mobile phone IR remote controller or mobile phone press key equipment connect.
In the case of intelligent electronic device is connected with external equipment by its earphone socket, smart electronics sets The external equipment that standby reply is inserted effectively identifies, otherwise, intelligent electronic device will be considered that its earphone is inserted The external equipment inserted in Zuo is earphone, and so, intelligent electronic device can export sound by earphone, from And may result in user and cannot normally dial that to receive calls (be intelligent mobile phone at intelligent electronic device In the case of), listen to music and viewing video etc..
At present, the mode master that the external equipment inserted in its earphone socket is identified by intelligent electronic device Including two kinds: external equipment is entered by mode one, ultrasonic wave modulation demodulation techniques based on 10KHZ frequency range Row identifies;Mode two, based on MCU (micro-control unit), external equipment is identified, i.e. sets external When standby headset plug inserts earphone socket, the MCU in external equipment actively exports to intelligent electronic device Special audio signal, in order to the special audio signal identification that intelligent electronic device can receive according to it Go out to insert the external equipment of earphone socket.
Inventor finds in realizing process of the present invention, for aforesaid way one, sets at smart electronics In the case of standby earphone socket inserts earphone, if using the ultrasound wave of 10KHZ frequency range to external equipment Being identified, can produce ear-piercing high-frequency sound, the stimulation to human ear is very big, thus can affect user Impression;If it addition, intelligent electronic device carries out external equipment identification, then during playing music Its concert play affects the accuracy rate of external equipment identification;For aforesaid way two, due to MCU Volume is bigger and relatively costly, and therefore, arranging MCU in external equipment may be to the body of external equipment Long-pending and cost produces large effect.
Summary of the invention
In view of the above problems, it is proposed that the present invention is to provide one to overcome the problems referred to above or at least partly Ground solves the external equipment identification circuit based on earphone socket of the problems referred to above and accordingly based on earphone socket External equipment recognition methods, external equipment identification device based on earphone socket and based on earphone socket External equipment identification system.
According to the first aspect of the invention, it is provided that a kind of external equipment identification based on earphone socket electricity Road, including: headset plug and recording loop;Described headset plug has sound channel and connects end, mike Connect end and earth terminal;Described recording loop has the first connection end, the second connection end and the 3rd connection End;Wherein, described first connects end is connected end connection with described sound channel, and described second connects end with described Mike connects end and connects, and the described 3rd connects end is connected with described earth terminal;Described recording loop is passed through Earphone socket in described headset plug and intelligent electronic device is with the mike in intelligent electronic device even Connect, and described recording loop forms microphone circuit together with headset plug, earphone socket and mike.
According to the second aspect of the invention, it is provided that a kind of external equipment identification side based on earphone socket Method, including: after the earphone socket monitoring intelligent electronic device inserts external equipment, trigger Intelligent electric Subset is recorded, and the present video broadcast sound volume of intelligent electronic device is set to the first predetermined value;? In the case of described first predetermined value, obtain the volume value of the sound obtained by recording;By described Intelligent electric The present video broadcast sound volume of subset is set to the second predetermined value;Play predetermined audio signal, and in institute In the case of stating the second predetermined value, obtain the volume value of the sound obtained by recording;According to pre-for first Definite value obtain volume value and for second predetermined value obtain volume value between relatively determine described external Whether equipment is to be provided with recording loop and the external equipment of headset plug, and described recording loop is with described The earphone socket of headset plug and described intelligent electronic device forms microphone circuit together with mike.
According to the third aspect of the present invention, it is provided that a kind of external equipment identification based on earphone socket fills Put, including: first arranges module, is suitable to the earphone socket monitoring intelligent electronic device and inserts external After equipment, trigger intelligent electronic device recording, and the present video of described intelligent electronic device is play sound Amount is set to the first predetermined value;First acquisition module, is suitable in the case of described first predetermined value, obtains By the volume value of the sound that recording obtains;Second arranges module, is suitable to described intelligent electronic device Present video broadcast sound volume is set to the second predetermined value;Second acquisition module, is suitable to play predetermined audio letter Number, and in the case of described second predetermined value, obtain the volume value of the sound obtained by recording;Identify Module, is suitable to according to the volume value obtained for the first predetermined value and the volume obtained for the second predetermined value Comparison between value determines that whether described external equipment is to be provided with recording loop and the external of headset plug sets Standby, and described recording loop and described headset plug and the earphone socket of described intelligent electronic device and wheat Gram wind forms microphone circuit together.
According to the fourth aspect of the present invention, it is provided that a kind of external equipment of based on earphone socket identification system System, this system includes: external equipment and intelligent electronic device;Described external equipment is provided with above-mentioned Identification circuit;Described intelligent electronic device is provided with above-mentioned external equipment based on earphone socket know Other device.
The external equipment identification circuit based on earphone socket of the present invention, methods, devices and systems pass through External equipment arranges external equipment identification circuit based on earphone socket, and the recording in this identification circuit Loop is by the earphone socket in headset plug and intelligent electronic device and the Mike in intelligent electronic device Wind connects, and forms microphone circuit, and so, the earphone socket at intelligent electronic device inserts has this knowledge During the external equipment of other circuit, intelligent electronic device can realize recording by this microphone circuit;Due to The volume value recording the sound that different sources of sound is obtained in the case of different present video broadcast sound volumes has Certain feature, therefore, can be identified accurately by the comparison of the volume value of sound carrying out recording Whether the external equipment inserted in the earphone socket of intelligent electronic device is to be provided with outside above-mentioned identification circuit Connect equipment;Owing to the source of sound in the present invention can use common music, therefore, the present invention can avoid The ultrasound wave stimulation to human ear during external equipment identification;Owing to the identification circuit of the present invention have employed record Sound loop, and loop of recording generally uses the components and parts (such as electric capacity and resistance etc.) of simple cheap Realizing, therefore, the present invention can avoid utilizing MCU to carry out external equipment identification and cause external equipment The bigger and relatively costly impact of volume.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the skill of the present invention Art means, and can being practiced according to the content of description, and in order to allow, the present invention's is above and other Objects, features and advantages can become apparent, below especially exemplified by the detailed description of the invention of the present invention.
Accompanying drawing explanation
By reading the detailed description of hereafter preferred implementation, various other advantage and benefit for this Field those of ordinary skill will be clear from understanding.The accompanying drawing of the present embodiment is only used for illustrating the side of being preferable to carry out The purpose of formula, and it is not considered as limitation of the present invention.And in whole accompanying drawing, by identical ginseng Examine the parts that symbol represents identical.In the accompanying drawings:
Fig. 1 shows headset plug schematic diagram;
Fig. 2 shows the external equipment identification circuit based on earphone socket of according to embodiments of the present invention One particular circuit configurations schematic diagram;
Fig. 3 shows the external equipment identification circuit based on earphone socket of according to embodiments of the present invention Another particular circuit configurations schematic diagram;
Fig. 4 shows the external equipment identification circuit based on earphone socket of according to embodiments of the present invention Another particular circuit configurations schematic diagram;
Fig. 5 shows the external equipment recognition methods stream based on earphone socket of according to embodiments of the present invention two Cheng Tu;
Fig. 6 shows the external equipment recognition methods stream based on earphone socket of according to embodiments of the present invention three Cheng Tu;
Fig. 7 shows in the external equipment recognition methods based on earphone socket of according to embodiments of the present invention three Initialization schematic flow sheet;
Fig. 8 shows external equipment identification device based on the earphone socket signal implementing four according to the present invention Figure;
Fig. 9 shows external equipment identification device based on the earphone socket signal implementing five according to the present invention Figure.
Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although accompanying drawing shows The exemplary embodiment of the disclosure, it being understood, however, that may be realized in various forms the disclosure and not Should be limited by embodiments set forth here.On the contrary, it is provided that these embodiments are able to more thoroughly Understand the disclosure, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Embodiment one, external equipment identification circuit based on earphone socket.Below in conjunction with Fig. 1, Fig. 2 and Tu The identification circuit of 3 pairs of the present embodiment illustrates.
The external equipment identification circuit based on earphone socket of the present embodiment specifically include that headset plug and Recording loop, wherein, recording loop there is multiple connection end, the plurality of connection end respectively with headset plug In multiple connection ends connect.
Concrete, current headset plug is generally of sound channel and connects end, mike connection end and ground connection End;When headset plug is dual sound track plug for earphone, above-mentioned sound channel connects end and generally includes: L channel is even Connect end and R channel connects end;When headset plug is mono phone plug, above-mentioned sound channel connects end and leads to Often connect end for monophonic.
One specific example of headset plug is as shown in Figure 1.
In the case of headset plug in FIG meets international standard (CTIA), this headset plug is main Including: mike connects end 1, ground wire connects end 2, R channel connects end 3 and L channel connects end 4.
In the case of headset plug in FIG meets national standard (OMTP), this headset plug is main Including: ground wire connects end 1, mike connects end 2, R channel connects end 3 and L channel connects end 4.
The recording loop of the present embodiment is mainly used in and headset plug, earphone socket and intelligent electronic device In mike form microphone loop together, as formed capacitor microphone loop.
In order to form microphone loop, this recording loop has the first connection end, the second connection end and the 3rd even Connecing end, and the first connection end is connected end and connects with the sound channel of headset plug, second connects end and smart electronics The mike of equipment connects end and connects, and the 3rd connects end is connected with the earth terminal of headset plug.
The first connection end and ear in the case of headset plug is mono phone plug, in recording loop The monophonic of machine transplanting of rice head connects end and connects.
In the case of headset plug is dual sound track plug for earphone, the first connection end in recording loop is with left Sound channel connects end and R channel connects at least one in end and connects end connection;Under normal circumstances, recording The first connection end in loop is connected end with L channel and R channel connects end and connects respectively.
In order to form capacitor microphone loop, recording loop has generally comprised the components and parts such as electric capacity and resistance;This One object lesson in the recording loop in embodiment is as shown in Figure 2.
The headset plug that " 1 ", " 2 ", " 3 " and " 4 " in Fig. 2 is in above-mentioned Fig. 1 Each connects the reference of end.Recording loop in Fig. 2 includes: electric capacity C1, resistance R1 and resistance R2.One end of electric capacity C1 is above-mentioned first connection end, is connected end and L channel with the R channel of headset plug Connecting end to connect respectively, the other end of electric capacity C1 is connected respectively with resistance R1 and resistance R2, and electric capacity C1 and resistance R1 and resistance R2 connects respectively.One end of resistance R1 is above-mentioned second connection end, with ear The ground wire of machine transplanting of rice head connects end or mike connects end and connects, and the other end of resistance R1 is with electric capacity C1 even Connect.One end of resistance R2 is above-mentioned 3rd connection end, is connected end or ground wire with the mike of headset plug Connecting end to connect, the other end of resistance R2 is connected with electric capacity C1.Above-mentioned resistance R1 and resistance R2 is in parallel.
By the recording loop shown in Fig. 2, the audio signal of intelligent electronic device output can pass through earphone Behind socket, headset plug and recording loop, returned to smart electronics by headset plug and earphone socket Mike in equipment, thus form microphone loop (capacitor microphone loop).
Further, since the electric capacity 1 in Fig. 2 is connected respectively with resistance R1 and resistance R2, and resistance R1 And resistance R2 is in parallel, therefore, either one end of resistance R1 is connected end even with the ground wire of headset plug Connect and one end of resistance R2 be connected with the mike of headset plug end connect, or one end of resistance R1 with The mike of headset plug connects end connection and one end of resistance R2 is connected end even with the ground wire of headset plug Connecing, this recording loop can be with the earphone socket in headset plug and intelligent electronic device and Mike Wind forms microphone circuit together;Thus the recording loop shown in Fig. 2 is to international standard (CTIA) and state The headset plug of family's standard (OMTP) is the most applicable.
Above-mentioned electric capacity C1 can be specially the electric capacity of 1uf (microfarad), and above-mentioned resistance R1 and resistance R2 can Resistance with specially 1500 Europe.
Recording loop in Fig. 2 can also optionally include: switch E1.This switch E1 is serially connected in and records back The mike on road connects end and is connected between end with ground wire;When switching E1 Guan Bi, due to this recording loop not Capacitor microphone loop is formed, from being unable to carry out external setting again again with the mike in intelligent electronic device Whether standby be the identification process of the external equipment being provided with above-mentioned identification circuit.
Another object lesson in the recording loop in the present embodiment is as shown in Figure 3.
" 1 ", " 2 ", " 3 " and " 4 " in Fig. 3 is each of the headset plug in above-mentioned Fig. 1 Connect the mark of end.Recording loop in Fig. 3 includes: resistance R3, electric capacity C2 and electric capacity C3.Electricity One end of resistance R3 is the first connection end, is connected end with the R channel of headset plug and L channel connects end respectively Connecting, the other end of resistance R3 is connected respectively with electric capacity C2 and electric capacity C3, and resistance R3 and electric capacity C2 and electric capacity C3 connects respectively.One end of electric capacity C2 is the second connection end, with the ground wire of headset plug Connecting end or mike connects end and connects, the other end of electric capacity C2 is connected with resistance R3.Electric capacity C3's One end is the 3rd connection end, is connected end with the mike of headset plug or ground wire connects end and connects, electric capacity The other end of C3 is connected with resistance R3.Above-mentioned electric capacity C2 and electric capacity C3 is in parallel.Shown in Fig. 3 Recording circuit, the audio signal of intelligent electronic device output is by earphone socket, headset plug and recording Behind loop, the mike in intelligent electronic device can be returned to by headset plug and earphone socket, from And form microphone loop.
Further, since resistance R3 and electric capacity C2 and electric capacity C3 in Fig. 3 connect respectively, and electric capacity C2 In parallel with electric capacity C3, therefore, either one end of electric capacity C2 is connected end connection with the ground wire of headset plug And one end of electric capacity C3 is connected end and connects with the mike of headset plug, or one end of electric capacity C2 and ear The mike of machine transplanting of rice head connects end and connects, and one end of electric capacity C3 is connected end and connects with the ground wire of headset plug, This recording loop can be together with the earphone socket in headset plug and intelligent electronic device and mike Form microphone circuit;Thus the recording loop shown in Fig. 3 is to international standard (CTIA) and national standard (OMTP) headset plug is the most applicable.
Above-mentioned resistance R3 can be the resistance in 100 Europe, Europe-400, and above-mentioned electric capacity C2 and electric capacity C3 can be The electric capacity of 1uf (microfarad).
Recording loop in Fig. 3 can also optionally include: switch E1.This switch E1 is serially connected in and records back The mike on road connects end and is connected between end with ground wire;When switching E1 Guan Bi, due to this recording loop not Capacitor microphone loop is formed, from being unable to carry out external setting again again with the mike in intelligent electronic device Whether standby be the identification process of the external equipment being provided with above-mentioned identification circuit.
Another object lesson in the recording loop in the present embodiment is as shown in Figure 4.
" 1 ", " 2 ", " 3 " and " 4 " in Fig. 4 is each of the headset plug in above-mentioned Fig. 1 Connect the mark of end.Recording loop in Fig. 4 includes: resistance R4, resistance R5 and resistance R6.Electricity One end of resistance R4 is the first connection end, is connected end with the R channel of headset plug and L channel connects end respectively Connecting, the other end of resistance R4 is connected respectively with resistance R5 and resistance R6, and resistance R4 and resistance R5 and resistance R6 connects respectively.One end of resistance R5 is the second connection end, with the ground wire of headset plug Connecting end or mike connects end and connects, the other end of resistance R5 is connected with resistance R4.Resistance R6's One end is the 3rd connection end, is connected end with the mike of headset plug or ground wire connects end and connects, resistance The other end of R6 is connected with resistance R4.Above-mentioned resistance R5 and resistance R6 is in parallel.Shown in Fig. 4 Recording circuit, the audio signal of intelligent electronic device output is by earphone socket, headset plug and recording Behind loop, the mike in intelligent electronic device can be returned to by headset plug and earphone socket, from And form microphone loop.
Further, since resistance R4 and resistance R5 and resistance R6 in Fig. 4 connect respectively, and resistance R5 In parallel with resistance R6, therefore, either one end of resistance R5 is connected end connection with the ground wire of headset plug And one end of resistance R6 is connected end and connects with the mike of headset plug, or one end of resistance R5 and ear The mike of machine transplanting of rice head connects end and connects, and one end of resistance R6 is connected end and connects with the ground wire of headset plug, This recording loop can be together with the earphone socket in headset plug and intelligent electronic device and mike Form microphone circuit;Thus the recording loop shown in Fig. 4 is to international standard (CTIA) and national standard (OMTP) headset plug is the most applicable.
Above-mentioned resistance R4 can be the resistance in 6k Europe, and above-mentioned resistance R5 can be the resistance in 6k Europe, on State the resistance that resistance R6 can be 6k Europe.It should be strongly noted that resistance R4, resistance R5 in Fig. 4 And the actual resistance of resistance R6 can be identical, it is also possible to differ;Any two resistance resistance it In the case of in the range of 10k-15k, the recording loop shown in Fig. 4 can be adaptive the most each The mobile phone based on Andriod operating system of type.
Recording loop in Fig. 4 can also optionally include: switch E1.This switch E1 is serially connected in and records back The mike on road connects end and is connected between end with ground wire;When switching E1 Guan Bi, due to this recording loop not Capacitor microphone loop is formed, from being unable to carry out external setting again again with the mike in intelligent electronic device Whether standby be the identification process of the external equipment being provided with above-mentioned identification circuit.
Embodiment two, external equipment recognition methods based on earphone socket.Below in conjunction with Fig. 5 to this enforcement The method of example illustrates.
In Fig. 5, S400, insert after external equipment at the earphone socket monitoring intelligent electronic device, touch Send out intelligent electronic device recording, and it is pre-that the present video broadcast sound volume of intelligent electronic device is set to first Definite value.
Concrete, the intelligent electronic device in the present embodiment can be the intelligence using Andriod operating system Can electronic equipment (as used intelligent mobile phone or the panel computer etc. of Andriod operating system).For Avoid the call ongoing to intelligent electronic device of external equipment identification process or the record of the present embodiment Sound impacts, and the present embodiment can insert external equipment at earphone socket intelligent electronic device being detected (as received the broadcast of operating system by registration audiomonitor, to determine according to the message received The earphone socket of intelligent electronic device inserts external equipment) after, detect the current of intelligent electronic device State is (as the modes such as the current log by reading intelligent electronic device judge working as of intelligent electronic device Front state);If be detected that the current state of intelligent electronic device is talking state or recording state etc. The state relevant to voice, then should not carry out the external equipment identification operation that the present embodiment is follow-up, and It is to wait for intelligent electronic device and terminates the operation (as terminated call or terminate recording) relevant to voice Afterwards, then start to perform the external equipment identification operation that the present embodiment is follow-up.
Owing to the present video of intelligent electronic device can be play sound by the external equipment identification process of the present embodiment Amount is modified, and therefore, the present embodiment amendment smart electronics during performing external equipment identification sets Before standby present video broadcast sound volume operation, the present video that should first obtain intelligent electronic device plays sound Amount, and store this present video broadcast sound volume, in order to complete in the external equipment identification process of the present embodiment Cheng Shi, it is also possible to revert to the present video broadcast sound volume of intelligent electronic device grasp in external equipment identification Audio frequency broadcast sound volume before work.It is to say, the present embodiment formerly stores working as of intelligent electronic device After front audio frequency broadcast sound volume, then trigger intelligent electronic device execution recording operation, and by intelligent electronic device Present video broadcast sound volume be set to the first predetermined value.
Above-mentioned first predetermined value can be the volume minimum (i.e. pvw value) of intelligent electronic device, such as One predetermined value is 0, say, that intelligent electronic device can be set to mute state by the present embodiment.
The intelligent electronic device that triggers in the present embodiment performs current with by intelligent electronic device of recording operation Audio frequency broadcast sound volume is set to the restriction that can not have sequencing between the operation of the first predetermined value, such as two Operation can perform simultaneously;For another example can first carry out recording operation, then perform the first predetermined value behaviour is set Make;Also it is possible to first carry out the operation that arranges of the first predetermined value, then perform recording operation.
Above-mentioned triggering intelligent electronic device performs the operation of recording and can operate by calling intelligent electronic device Recording function in system realizes, and the present embodiment is not intended to trigger intelligent electronic device and performs recording operation Specific implementation.
S410, in the case of the first predetermined value, obtain the volume value of sound obtained by recording.
Concrete, after triggering intelligent electronic device execution recording operation, current embodiment require that at Intelligent electric In the case of the present video broadcast sound volume of subset is arranged to the first predetermined value, obtains and obtained by recording The volume value of the sound obtained.
After the present embodiment can perform recording operation triggering intelligent electronic device and wait certain time, then Obtain the volume value of the sound obtained by recording.One specific example, formerly triggers smart electronics and sets Standby perform recording operation, then in the case of the present video broadcast sound volume of intelligent electronic device is set, this reality Execute example and the present video broadcast sound volume of intelligent electronic device can be set to the first predetermined value, and wait After first predetermined time interval, then perform the operation of the volume value of the sound that acquisition is obtained by recording.
The present embodiment can obtain the volume of multiple sound obtained by recording in the way of using timing acquisition Value, and these multiple volume values are calculated meansigma methods, the volume meansigma methods that this calculates is mainly used in follow-up Comparison procedure, this volume meansigma methods can be referred to as the first volume meansigma methods.
The present embodiment is when calculating the first volume meansigma methods, it can be determined that whether this first volume meansigma methods More than predetermined volume value (such as 1000), if the first volume meansigma methods is more than predetermined volume value (such as larger than 1000), then can determine that this external equipment is not provided with the identification circuit in above-described embodiment one External equipment, the identification process of this external equipment terminates;If the first volume meansigma methods is not more than predetermined Value (such as less than equal to 1000), then continue executing with the identification step that the present embodiment is follow-up.
Above-mentioned predetermined volume value can be rule of thumb to be pre-set in intelligent electronic device;And it is above-mentioned First predetermined time interval can be rule of thumb to be pre-set in intelligent electronic device, it is also possible to is Purposive is dynamically placed in intelligent electronic device for the practical situation of intelligent electronic device.
Practical situation for intelligent electronic device dynamically arranges a concrete example of the first predetermined time interval Son is: the present video broadcast sound volume setting intelligent electronic device can be being that user is by mode energy such as buttons The volume enough manually adjusted, such as, in intelligent electronic device to be available for user manual by modes such as buttons The volume adjusted is divided into 15 grades, and (intelligent mobile phone of Andriod operating system has 15 grades and is available for The volume of user's manual setting) these 15 grades can be hereinafter referred to as volume 0 to volume 14, volume therein 0 represents quiet;According to putting in order of volume 1 to volume 14, volume 1 to volume 14 is each self-corresponding Sound is gradually increased, and the sound of volume 14 correspondence is maximum.It is above-mentioned situation at present video broadcast sound volume Under, the concrete setting up procedure of the first predetermined time interval includes: first, intelligent electronic device first with The external equipment with above-mentioned identification circuit of the present embodiment is connected by headset plug and earphone socket In the case of, the present embodiment can carry out Initialize installation operation for this external equipment, concrete, standby After the present video broadcast sound volume of part intelligent electronic device, the present video of intelligent electronic device is play sound Amount be set to minimum level volume in addition to quiet (the most above-mentioned volume 1, namely in addition to quiet level The volume that little level is corresponding);Then, trigger electronic equipment perform to play locally stored audio signal (as The second music built-in in intelligent electronic device) operation, and start timing;Waiting for a period of time (as 500 milliseconds) after, trigger intelligent electronic device and record, afterwards, waiting for a period of time (such as 300 Millisecond) after, obtain the volume value (volume returned such as acquisition operating system of the sound obtained by recording Value), and judge whether whether this volume value reach pre-more than predetermined value (such as 100) and present timing value Timing is long (such as 2 seconds), if the volume value no more than predetermined value obtained and present timing value are not reaching to Scheduled duration, then return the sound that above-mentioned acquisition is obtained by recording volume value and for volume value and Present timing value carries out the step judged;If volume value reaches pre-more than predetermined value or present timing value Timing is long, then the present timing value of above-mentioned timing is set to the first predetermined time interval.
From above-mentioned specific example, the concrete value of first predetermined time interval of the present embodiment can quilt The numerical value being set between duration and the scheduled duration of above-mentioned wait, such as the first predetermined time interval Minimum value is 300 milliseconds, and its maximum occurrences is 2 seconds.
It addition, in actual applications, what intelligent electronic device provided the user can by modes such as buttons The volume manually adjusted is the most more or less, in order to adapt to different types of intelligent electronic device, this The present video broadcast sound volume of the intelligent electronic device in embodiment can not be user can by button etc. The volume manually adjusted, a specific example, the maximum broadcast sound volume of intelligent electronic device is divided into 15 grades, as calculated maximum broadcast sound volume/15, arrange according to the volume value of the correspondences at different levels after above-mentioned division The present video broadcast sound volume of intelligent electronic device.
S420, the present video broadcast sound volume of intelligent electronic device is set to the second predetermined value.
Concrete, successfully obtain for the first predetermined value the sound obtained by recording volume value it After, the present video broadcast sound volume of intelligent electronic device is adjusted and is set to the second predetermined value, and second is pre- Definite value is more than the first predetermined value.
Above-mentioned second predetermined value can be rule of thumb to be pre-set in intelligent electronic device, it is also possible to It is purposive being dynamically placed in intelligent electronic device for the practical situation of intelligent electronic device 's.
One object lesson of the second predetermined value is dynamically set for the practical situation of intelligent electronic device For: set the first predetermined value as 0 (i.e. intelligent electronic device is in mute state), by intelligent electronic device Present video broadcast sound volume be set to 0, timing acquisition (is such as obtained by the volume value of the sound that recording obtains The volume value that extract operation system returns), and for the multiple volume values (such as 10 volume values) got Calculate meansigma methods (being designated as the first meansigma methods);Play audio signal that this locality prestores (as play the One music), and the present video broadcast sound volume of intelligent electronic device is set to volume 1 (as except quiet it Outer minimum level volume);Then, the volume value of the sound that timing acquisition is obtained by recording is (as obtained The volume value that operating system returns), and for multiple volume values (such as 10 volume values) meter got Calculate meansigma methods (being designated as the second meansigma methods), afterwards, it is judged that whether the second meansigma methods is the first meansigma methods Prearranged multiple (this prearranged multiple should be greater than 7 times, as used 9 times), if the second meansigma methods does not has There is the prearranged multiple reaching the first meansigma methods, then the present video broadcast sound volume of intelligent electronic device is arranged For volume 2, and return to the volume value of the sound that timing acquisition is obtained many for getting by recording Individual volume value calculates meansigma methods (being designated as the second meansigma methods) and judges the step of multiple;If second is flat Average reaches the prearranged multiple of the first meansigma methods, then by true for the present video broadcast sound volume of intelligent electronic device It is set to the second predetermined value.
S430, broadcasting predetermined audio signal, and in the case of the second predetermined value, obtain and obtained by recording The volume value of sound.
Concrete, current embodiment require that the present video broadcast sound volume at intelligent electronic device is adjusted arranging In the case of being the second predetermined value, obtain the volume value of the sound obtained by recording.
The present embodiment can be to play locally stored predetermined audio signal (in such as intelligent electronic device built-in First music), and wait after the second predetermined time interval, perform to obtain the sound obtained by recording The operation of volume value.
The present embodiment can obtain the volume of multiple sound obtained by recording in the way of using timing acquisition Value, and the multiple volume values got are calculated meansigma methods (being designated as the second meansigma methods), calculate Volume meansigma methods is for follow-up comparison procedure.
Above-mentioned second predetermined time interval is set in advance in intelligent electronic device, and this second make a reservation for Time interval can be rule of thumb to be pre-set in intelligent electronic device, it is also possible to is purposive Be dynamically placed in intelligent electronic device for the practical situation of intelligent electronic device.
Practical situation for intelligent electronic device dynamically arranges a concrete example of the second predetermined time interval Son is: during the present embodiment carries out Initialize installation operation for this external equipment, is being provided with After first predetermined time interval, continue trigger intelligent electronic device play pre-set audio signal (as First music built-in in intelligent electronic device), and start timing, waiting for a period of time (as waited 200 milliseconds) after, obtain the volume value (sound returned such as acquisition operating system of the sound obtained by recording Value), and judge whether whether this volume value reach more than predetermined value (such as 100) and present timing value Another scheduled duration (such as 1 second), if the volume value no more than predetermined value obtained and present timing value do not have Have and reach another scheduled duration, then return volume value and the pin of the sound that above-mentioned acquisition is obtained by recording The step that volume value and present timing value are judged;If volume value more than predetermined value or is currently counted Duration reaches another scheduled duration, then the present timing value of above-mentioned timing be set between second scheduled time Every.
From above-mentioned specific example, the concrete value of second predetermined time interval of the present embodiment can quilt The numerical value being set between the duration of above-mentioned wait and another scheduled duration, as between second scheduled time Every minimum value be 200 milliseconds, and its maximum occurrences is 1 second.
The volume value that S440, basis obtain for the first predetermined value and the volume obtained for the second predetermined value Comparison between value determines that whether external equipment is the external of the identification circuit that is provided with in above-described embodiment one Equipment.
Concrete, the present embodiment may determine that the meansigma methods of the volume value calculated for the second predetermined value (i.e. Above-mentioned second meansigma methods) meansigma methods of volume value that whether reaches to calculate for the first predetermined value (i.e. goes up State the first meansigma methods) another prearranged multiple (such as 7 times);If it is average that the second meansigma methods reaches first 7 times of value, it is determined that going out this external equipment is to be provided with outside the identification circuit that above-described embodiment one is recorded Connect equipment;If the second meansigma methods is not reaching to 7 times of the first meansigma methods, it is determined that go out this external equipment Not for being provided with the external equipment of the identification circuit that above-described embodiment one is recorded.
The used time of the whole process of the external equipment identification process of the present embodiment is typically not greater than 2 seconds.In intelligence Can electronic equipment be in quiet in the case of, the input of source of sound that intelligent electronic device is recorded to be than relatively low and Relatively stable sound, and in the case of intelligent electronic device is set to non-mute, broadcast there being music When putting, the volume of the source of sound input that intelligent electronic device is recorded to can become suddenly big;Test through test of many times Card, the ratio of the volume meansigma methods of two stage acquisitions is more than 7 times;Existing earphone sets at smart electronics Standby be in quiet in the case of, the volume of the source of sound input that intelligent electronic device receives the most all compare puts down Surely, verifying through test of many times, the ratio of the volume meansigma methods of two stage acquisitions is less than 6 times;Cause This, the present embodiment is by judging that the ratio of the volume meansigma methods under different situations i.e. can be accurately judged to intelligence The external equipment of energy electronic equipment is provided with the external equipment of above-mentioned identification circuit, or other equipment are such as The external equipments such as common earphone.
In addition, it is necessary to explanation, the present embodiment is provided with above-described embodiment identifying external equipment In the case of the external equipment of the identification circuit described in, should be invalid earphone by the external equipment of insertion The relevant portion that is transferred in intelligent electronic device of information, such as notice operating system or notice and voice The application etc. that operation is relevant;So, the behaviour relevant to voice is being performed in operating system or related application When making (such as receiving calls), can know and currently pass through what earphone socket was connected with intelligent electronic device External equipment is not earphone, thus can switch over the operation of the built-in microphone to intelligent electronic device, and Not in use by earphone microphone.When being off due to the switch E1 in above-described embodiment one, intelligence The audio signal of electronic equipment output is play by built-in microphone, without by earphone socket, earphone Plug transmits to loop of recording, and is back to Mike by recording loop, headset plug and earphone socket Wind, therefore, the external equipment being provided with the identification circuit described in above-described embodiment one will not be to Intelligent electric The operation such as the normal talking of subset produces impact.
Embodiment three, external equipment recognition methods based on earphone socket.Below in conjunction with Fig. 6 and Fig. 7 pair The device of the present embodiment is described in detail.
In Fig. 6, judge the earphone of external equipment in modes such as the notices by receiving operating system transmission After plug inserts the earphone socket of intelligent electronic device, the sides such as the daily record of intelligent electronic device are read in employing Formula judge intelligent electronic device the most carrying out the process relevant to voice (converse as carried out or Recording etc.), if it is determined that going out intelligent electronic device is carrying out the process relevant to voice, then wait and After the process that voice is relevant terminates, obtain the present video broadcast sound volume of intelligent electronic device, and storage should Present video broadcast sound volume, then, triggers intelligent electronic device and performs recording operation;Smart electronics is set Standby present video broadcast sound volume is set to 0 (i.e. intelligent electronic device is in mute state), and waits After one predetermined time interval time1, the volume value of the sound that timing acquisition is obtained by recording, the most often The volume value of the sound once obtained is obtained by recording every 70 milliseconds, and for 10 sounds got Magnitude calculation volume meansigma methods AvgVolume1;For avoiding subsequent arithmetic to have problems, therefore, calculating In the case of the AvgVolume1 gone out is 0, AvgVolume1 can be set to 1;Afterwards, it is judged that Whether AvgVolume1 exceedes predetermined volume value 1000, if it exceeds predetermined volume value 1000, it is determined that go out This external equipment is not provided with the external equipment of the identification circuit described in above-described embodiment one, by intelligence After the present video broadcast sound volume of energy electronic equipment reverts to the present video broadcast sound volume of above-mentioned storage, this Secondary identification process terminates;If AvgVolume1 is not above predetermined volume value 1000, then continue follow-up Judge operation;Afterwards, the present video broadcast sound volume of intelligent electronic device is set to the second predetermined value Volume1, and play the first music that intelligent electronic device is built-in;Waiting the second predetermined time interval After time2, the volume value of the sound that timing acquisition is obtained by recording, such as obtain one every 70 milliseconds The volume value of the secondary sound obtained by recording, and it is average to calculate volume for 10 volume values got Value AvgVolume2;For avoiding subsequent arithmetic to have problems, therefore, at the AvgVolume2 calculated it is In the case of 0, AvgVolume2 can be set to 1;Judge AvgVolume1 and AvgVolume2 Between relation whether meet AvgVolume2 this condition of > AvgVolume1*7, if meeting this Part, it is determined that going out this external equipment is to be provided with the external of identification circuit described in above-described embodiment one to set Standby, play at the present video that the present video broadcast sound volume of intelligent electronic device is reverted to above-mentioned storage After volume, this identification process terminates;If being unsatisfactory for this condition, it is determined that going out external equipment is not It is provided with the external equipment of identification circuit described in above-described embodiment one, in working as intelligent electronic device After front audio frequency broadcast sound volume reverts to the present video broadcast sound volume of above-mentioned storage, this identification process terminates.
In the present embodiment, above-mentioned first predetermined time interval time1, the second predetermined time interval time2 And second the setting up procedure of predetermined value Volume1 can be by being provided with the external of above-mentioned identification circuit Equipment carries out the process of Initialize installation and arranges.The present embodiment carries out of the process of initialization apparatus Object lesson is as shown in Figure 7.
In Fig. 7, the headset plug at the external equipment by being provided with above-mentioned identification circuit inserts smart electronics After the earphone jack of equipment, start the respective application in intelligent electronic device, and click in this application Function of initializing;This application can judge smart electronics to use the modes such as the daily record reading intelligent electronic device Equipment the most carrying out the process relevant to voice (as play music or carry out converse or Person's recording etc.), if it is determined that going out intelligent electronic device is playing music, then this application can point out use Family carries out initialization operation after closing the music play again, if it is determined that going out intelligent electronic device Call or recording, then this application can be initial to carry out after user waiting prompt call or End of Tape again Change operation;If intelligent electronic device is the most carrying out the process relevant to voice, then obtain Intelligent electric The present video broadcast sound volume of subset, and store this present video broadcast sound volume, then, by Intelligent electric The present video broadcast sound volume of subset be set to volume 1 (as in 15 grades of volumes in addition to quiet Little level volume), and play the music 2 that application is built-in, after waiting 500 milliseconds, trigger intelligent electronic device Perform recording operation, start timing;After waiting 300 milliseconds, obtain the sound of the sound obtained by recording Value, and judge whether this volume value is more than 100, and whether the present timing value of timing is less than 2 seconds, as The volume value that fruit obtains be not more than 100 and the present timing value of timing less than 2 seconds, then continue above-mentioned acquisition The volume value of the sound obtained by recording and above-mentioned judgement are operated;If the volume value obtained is more than 100 Or the present timing value of timing is not less than 2 seconds, then using the present timing value of timing as the first pre-timing Between be spaced 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 300 milliseconds;Then, play the music 1 that application is built-in, and start meter Time, after waiting 200 milliseconds, obtain the volume value of the sound obtained by recording, and judge this volume Whether value is more than 100, and whether the present timing value of timing is less than 1 second, if the volume value obtained is little Present timing value in 100 and timing is less than 1 second, then continue the sound that above-mentioned acquisition is obtained by recording Volume value and above-mentioned judgement operation;If the volume value obtained is more than 100 or the current of timing is counted Duration is not less than 1 second, then using the present timing value of timing as the second predetermined time interval time2, this is the years old The value of two predetermined time interval time2 should be between 200 milliseconds to 1 seconds;Close above-mentioned music 1, and The present video broadcast sound volume of intelligent electronic device is set to volume 0 (the most quiet), then, waits 300 milliseconds, then, the volume value of the sound that timing acquisition is obtained by recording, such as every 70 milliseconds Obtain the volume value of the sound once obtained by recording, and for multiple (such as the 10) sound got Magnitude calculation volume meansigma methods AvgVolume1;Afterwards, the present video of intelligent electronic device is play sound Amount is set to volume 1, and plays the first music that intelligent electronic device is built-in;Waiting for second scheduled time After being spaced 200 milliseconds, the volume value of the sound that timing acquisition is obtained by recording, such as every 70 milliseconds Obtain the volume value of the sound once obtained by recording, and for multiple (such as the 10) sound got Magnitude calculation volume meansigma methods AvgVolume2;Judge whether AvgVolume1 and AvgVolume2 meets AvgVolume2 this condition of > AvgVolume1*9, if meeting this condition, then sets above-mentioned volume 1 It is set to the first predetermined value, the present video broadcast sound volume of intelligent electronic device is being reverted to above-mentioned storage After present video broadcast sound volume, this initialization procedure terminates;If being unsatisfactory for this condition, then by intelligence The present video broadcast sound volume of energy electronic equipment is set to volume 2, and returns to above-mentioned timing acquisition by record The volume value of the sound that sound obtains, and calculate volume meansigma methods AvgVolume2 and judge AvgVolume1 With the step whether AvgVolume2 meets above-mentioned condition;By that analogy, until AvgVolume1 and Till the relation of AvgVolume2 meets AvgVolume2 this condition of > AvgVolume1*9, by current sound Frequently broadcast sound volume is set to the first predetermined value, and is recovered by the present video broadcast sound volume of intelligent electronic device After the present video broadcast sound volume of above-mentioned storage, this initialization procedure terminates.
Embodiment four, external equipment identification device based on earphone socket.This identification device is arranged at intelligence In electronic equipment, this intelligent electronic device can be the intelligent electronic device using Andriod operating system (as used intelligent mobile phone or the panel computer etc. of Andriod operating system).
Below in conjunction with Fig. 8, the device of the present embodiment is described in detail.
Device shown in Fig. 8 specifically includes that first arranges module the 700, first acquisition module 710, second Module the 720, second acquisition module 730 and identification module 740 are set;It addition, this device can also wrap Include: 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 mainly fits After inserting external equipment at the earphone socket monitoring intelligent electronic device, trigger intelligent electronic device record Sound, and the present video broadcast sound volume of intelligent electronic device is set to the first predetermined value.
Concrete, in order to avoid intelligent electronic device is carried out by the external equipment identification process of this device Call or recording impact, first arranges module 700 can detect intelligent electronic device Earphone socket inserts external equipment (as received the broadcast of operating system by registration audiomonitor, with root Determine according to the message received in the earphone socket of intelligent electronic device and insert external equipment) after, inspection Survey the current state of intelligent electronic device (as the modes such as the current log by reading intelligent electronic device are come Judge the current state of intelligent electronic device);If be detected that the current state of intelligent electronic device is logical The state that speech phase or recording state etc. are relevant to voice, then first arrange module 700 and should not enter Capable its arranges present video broadcast sound volume and triggers the operation of recording, and is to wait for intelligent electronic device and exists After terminating the operation (as terminated call or terminating recording) relevant to voice, first arranges module 700 Start to perform it again arrange present video broadcast sound volume and trigger the operation of recording.
Owing to the external equipment identification process of this device can be to the present video broadcast sound volume of intelligent electronic device Modifying, therefore, first arranges module 700 is performing its present video arranging intelligent electronic device Before broadcast sound volume operation, should first obtain the present video broadcast sound volume of intelligent electronic device, and storage should Present video broadcast sound volume, in order to after identification module 740 has performed to identify operation, it is also possible to by intelligence The present video broadcast sound volume of energy electronic equipment reverts to the audio frequency before external equipment identification operates and plays Volume.It is to say, first arranges module 700 and formerly stores the present video of intelligent electronic device and broadcast After playback amount, then trigger intelligent electronic device execution recording operation, and by the current sound of intelligent electronic device Frequently broadcast sound volume is set to the first predetermined value.
Above-mentioned first predetermined value can be the volume minimum (i.e. pvw value) of intelligent electronic device, such as One predetermined value is 0, say, that first arranges module 700 can be set to quiet by intelligent electronic device State.
The first triggering intelligent electronic device arranging module 700 execution performs recording operation and by Intelligent electric The present video broadcast sound volume of subset is set between the operation of the first predetermined value not have sequencing Restriction, as first arranges module 700 and can perform two operations simultaneously;For another example first module 700 is set Can first carry out recording operation, then perform the first predetermined value operation is set;Further, first module is set 700 operations that arrange that can also first carry out the first predetermined value, then perform recording operation.
First arrange module 700 trigger intelligent electronic device perform recording operation can be by calling intelligence Recording function in electronic device system realizes, and the present embodiment is not intended to first and arranges module 700 Trigger intelligent electronic device and perform the specific implementation of recording operation.
First acquisition module 710 in addition to arranging module 700 and being connected with first, also with identification module 740 Connect.First acquisition module 710 is primarily adapted in the case of the first predetermined value, obtains and is obtained by recording The volume value of sound.
Concrete, module 700 is set first and triggers after intelligent electronic device performs recording operation, first Acquisition module 710 needs the present video broadcast sound volume at intelligent electronic device to be arranged to the first predetermined value In the case of, obtain the volume value of the sound obtained by recording.
First acquisition module 710 can perform recording operation triggering intelligent electronic device and wait a timing After between, then obtain the volume value of the sound obtained by recording.One specific example, is arranged first Module 700 first triggers intelligent electronic device and performs recording operation, then arranges the current sound of intelligent electronic device Frequently, in the case of broadcast sound volume, the first acquisition module 710 can arrange module 700 by Intelligent electric first The present video broadcast sound volume of subset is set to the first predetermined value, and wait the first predetermined time interval it After, then perform the operation of the volume value of the sound that acquisition is obtained by recording.
First acquisition module 710 can obtain multiple sound obtained by recording in the way of using timing acquisition The volume value of sound, and these multiple volume values are calculated meansigma methods, the volume meansigma methods that this calculates is main For the comparison procedure performed by follow-up identification module 740, the volume meansigma methods that this calculates can be claimed It it is the first volume meansigma methods.
When the first acquisition module 710 calculates the first volume meansigma methods, identification module 740 may determine that Whether this first volume meansigma methods is more than predetermined volume value (such as 1000), if the first volume meansigma methods is big In predetermined volume value (such as larger than 1000), then identification module 740 can determine that this external equipment is not The external equipment of the identification circuit being provided with in above-described embodiment one, the identification process knot of this external equipment Bundle;If the first volume meansigma methods is not more than predetermined value (such as less than equal to 1000), then the present embodiment Device should continue executing with follow-up step.
Above-mentioned predetermined volume value (such as 1000) can be rule of thumb to be pre-set in intelligent electronic device 's;It addition, above-mentioned first predetermined time interval can be rule of thumb to be pre-set at intelligent electronic device In, it is also possible to it is purposive to be dynamically placed in intelligence for the practical situation of intelligent electronic device In electronic equipment.
Practical situation for intelligent electronic device dynamically arranges a concrete example of the first predetermined time interval Son is: the present video broadcast sound volume setting intelligent electronic device can be being that user is by mode energy such as buttons The volume enough manually adjusted, such as, in intelligent electronic device to be available for user manual by modes such as buttons The volume adjusted is divided into 15 grades, and (intelligent mobile phone of Andriod operating system has 15 grades and is available for The volume of user's manual setting) these 15 grades can be hereinafter referred to as volume 0 to volume 14, volume therein 0 represents quiet;According to putting in order of volume 1 to volume 14, volume 1 to volume 14 is each self-corresponding Sound is gradually increased, and the sound of volume 14 correspondence is maximum.It is above-mentioned situation at present video broadcast sound volume Under, the concrete setting up procedure of the first predetermined time interval includes: first, intelligent electronic device first with The external equipment with above-mentioned identification circuit of the present embodiment is connected by headset plug and earphone socket In the case of, this device can carry out Initialize installation operation for this external equipment, concrete, at the beginning of first Beginningization module after the present video broadcast sound volume of backup intelligence electronic equipment, by intelligent electronic device work as Front audio frequency broadcast sound volume is set to the minimum level volume (the most above-mentioned volume 1) in addition to quiet;Then, One initialization module triggers electronic equipment and performs to play locally stored audio signal (such as intelligent electronic device In built-in the second music) operation, and start timing;In wait for a period of time (such as 500 milliseconds) After, the first initialization module triggers intelligent electronic device and records, afterwards, waiting for a period of time (as 300 milliseconds) after, the volume value of the sound that the first initialization module acquisition is obtained by recording is (as obtained behaviour Make the volume value that system returns), and judge that this volume value is whether more than predetermined value (such as 100) and current Whether clocking value reaches scheduled duration (such as 2 seconds), if the volume value obtained is not more than predetermined value and works as Front clocking value is not reaching to scheduled duration, then the first initialization module above-mentioned acquisition of return is obtained by recording The volume value of sound and carry out the step judged for volume value and present timing value;If volume value Reach scheduled duration more than predetermined value or present timing value, then the first initialization module is by above-mentioned timing Present timing value is set to the first predetermined time interval.
From above-mentioned specific example, the concrete value of first predetermined time interval of the present embodiment can quilt First initialization module is set to a numerical value between duration and the scheduled duration of above-mentioned wait, such as first The minimum value of predetermined time interval is 300 milliseconds, and its maximum occurrences is 2 seconds.
It addition, in actual applications, what intelligent electronic device provided the user can by modes such as buttons The volume manually adjusted is the most more or less, in order to adapt to different types of intelligent electronic device, this The present video broadcast sound volume of the intelligent electronic device in embodiment can not be user can by button etc. The volume manually adjusted, a specific example, the first initialization module is by the maximum of intelligent electronic device Broadcast sound volume is divided into 15 grades, and as calculated maximum broadcast sound volume/15, the first initialization module is according to above-mentioned Volume value at different levels after division arranges the present video broadcast sound volume of intelligent electronic device.
Second arranges module 720 is connected with the second acquisition module 730.Second arranges module 720 mainly fits In the present video broadcast sound volume of intelligent electronic device is set to the second predetermined value.
Concrete, obtained by recording successfully obtaining for first predetermined value the first acquisition module 710 Sound volume value after, second arranges module 720 plays sound by the present video of intelligent electronic device Amount adjustment is set to the second predetermined value, and the second predetermined value is more than the first predetermined value.
Above-mentioned second predetermined value can be rule of thumb to be pre-set in intelligent electronic device, it is also possible to It is purposive being dynamically placed in intelligent electronic device for the practical situation of intelligent electronic device 's.
One object lesson of the second predetermined value is dynamically set for the practical situation of intelligent electronic device For: set the first predetermined value as 0 (i.e. intelligent electronic device is in mute state), the 3rd initialization module The present video broadcast sound volume of intelligent electronic device is set to the first predetermined value, and the 3rd initialization module is fixed Time obtain the volume value (as obtained the volume value that operating system returns) of the sound obtained by recording, and Meansigma methods (being designated as the first meansigma methods) is calculated for the multiple volume values (such as 10 volume values) got; 3rd initialization module triggers intelligent electronic device and plays audio signal that this locality prestores (as play the One music), and the present video broadcast sound volume of intelligent electronic device is set to volume 1 (as except quiet it Outer minimum level volume);Then, the sound that the 3rd initialization module timing acquisition is obtained by recording Volume value (as obtain operating system return volume value), and for get multiple volume values (as 10 volume values) calculate meansigma methods (being designated as the second meansigma methods), afterwards, the 3rd initialization module judges Whether the second meansigma methods is that (this prearranged multiple should be greater than 7 times, as permissible for the prearranged multiple of the first meansigma methods Use 9 times), if the second meansigma methods is not reaching to the prearranged multiple of the first meansigma methods, then the 3rd is initial Change module and the present video broadcast sound volume of intelligent electronic device is set to volume 2, and return to timing acquisition The volume value of the sound obtained by recording is also calculated meansigma methods for the multiple volume values got and (is designated as Second meansigma methods) and judge the step of multiple;If the second meansigma methods reaches the predetermined of the first meansigma methods Multiple, then that the present video broadcast sound volume of intelligent electronic device is defined as second is pre-for the 3rd initialization module Definite value.
Second acquisition module 730 in addition to arranging module 720 and being connected with second, also with identification module 740 Connect.Second acquisition module 730 is primarily adapted for playing predetermined audio signal, and in the second predetermined value situation Under, obtain the volume value of the sound obtained by recording.
Concrete, the second acquisition module 730 needs the present video broadcast sound volume quilt at intelligent electronic device Second arranges in the case of module 720 adjusts and be set to the second predetermined value, obtains the sound that obtained by recording The volume value of sound.
Second acquisition module 730 can intelligent electronic device play locally stored predetermined audio signal (as First music built-in in intelligent electronic device), and after wait the second predetermined time interval, perform acquisition The operation of the volume value of the sound obtained by recording.
Second acquisition module 730 can obtain multiple sound obtained by recording in the way of using timing acquisition The volume value (such as 10 volume values) of sound, and the multiple volume values got are calculated meansigma methods (note It is the second meansigma methods), the volume meansigma methods that the second acquisition module 730 calculates is for follow-up identification module The comparison procedure of 740.
Above-mentioned second predetermined time interval is set in advance in intelligent electronic device, and this second make a reservation for Time interval can be rule of thumb to be pre-set in intelligent electronic device, it is also possible to is purposive Be dynamically placed in intelligent electronic device for the practical situation of intelligent electronic device.
Practical situation for intelligent electronic device dynamically arranges a concrete example of the second predetermined time interval Son is: during the device of the present embodiment carries out Initialize installation operation for this external equipment, After first initialization module is provided with the first predetermined time interval, the second initialization module triggers Intelligent electric Subset plays the audio signal (first music as built-in in intelligent electronic device) pre-set, and Starting timing, after wait for a period of time (as waited 200 milliseconds), the second initialization module obtains logical Cross the volume value (as obtained the volume value that operating system returns) of the sound that recording obtains, and judge this sound Whether whether value reach another scheduled duration (such as 1 more than predetermined value (such as 100) and present timing value Second), if the volume value no more than predetermined value of the second initialization module acquisition and present timing value do not reach To another scheduled duration, then the second initialization module returns the sound of the sound that above-mentioned acquisition is obtained by recording Value and carry out the step judged for volume value and present timing value;If volume value is more than predetermined value Or present timing value reaches another scheduled duration, then the second initialization module is by the current meter of above-mentioned timing Duration is set to the second predetermined time interval.
From above-mentioned specific example, the concrete value of second predetermined time interval of the present embodiment can quilt The numerical value that second initialization module is set between the duration of above-mentioned wait and another scheduled duration, as The minimum value of the second predetermined time interval is 200 milliseconds, and its maximum occurrences is 1 second.
The volume value that identification module 740 is primarily adapted for according to obtaining for the first predetermined value is pre-with for second Relatively determine that external equipment is whether described for being provided with in embodiment one between the volume value that definite value obtains The external equipment of identification circuit.
Concrete, identification module 740 may determine that the second acquisition module 730 calculates for the second predetermined value The meansigma methods (the most above-mentioned second meansigma methods) of the volume value gone out whether reach the first acquisition module 710 for Another prearranged multiple of the meansigma methods (the most above-mentioned first meansigma methods) of the volume value that the first predetermined value calculates (such as 7 times);If the second meansigma methods reaches 7 times of the first meansigma methods, then identification module 740 determines Going out this external equipment is the external equipment being provided with the identification circuit that above-described embodiment one is recorded;If second Meansigma methods is not reaching to 7 times of the first meansigma methods, then identification module 740 determines that this external equipment is not It is provided with the external equipment of the identification circuit that above-described embodiment one is recorded.
This device identifies that to external equipment the used time of the whole process of process is typically not greater than 2 seconds.In intelligence Can electronic equipment be in quiet in the case of, the input of source of sound that intelligent electronic device is recorded to be than relatively low and Relatively stable sound, and in the case of intelligent electronic device is set to non-mute, broadcast there being music When putting, the volume of the source of sound input that intelligent electronic device is recorded to can become suddenly big;Test through test of many times Card, the ratio of the volume meansigma methods of two stage acquisitions is more than 7 times;Existing earphone sets at smart electronics Standby be in quiet in the case of, the volume of the source of sound input that intelligent electronic device receives the most all compare puts down Surely, verifying through test of many times, the ratio of the volume meansigma methods of two stage acquisitions is less than 6 times;Cause This, this device is by judging that the ratio of the volume meansigma methods under different situations i.e. can be accurately judged to intelligence The external equipment of electronic equipment is provided with the external equipment of above-mentioned identification circuit, or other equipment are the most general The external equipments such as logical earphone.
In addition, it is necessary to explanation, identification module 740 is provided with above-mentioned reality identifying external equipment In the case of executing the external equipment of identification circuit described in example one, should be invalid by the external equipment of insertion The information of earphone is transferred to the relevant portion in intelligent electronic device, as identification module 740 notice operation is Unite or notify the application etc. relevant to voice operating;So, holding in operating system or related application During relevant to voice operation (such as the receiving calls) of row, can know and currently pass through earphone socket and intelligence The external equipment that energy electronic equipment connects is not earphone, thus can switch over to intelligent electronic device Put the operation of microphone, and not in use by earphone microphone.Owing to the switch E1 in above-described embodiment one is in During off-state, the audio signal of intelligent electronic device output is play by built-in microphone, without logical Cross earphone socket, headset plug transmits to loop of recording, and by recording loop, headset plug with gill Machine transplanting of rice seat is back to mike, therefore, is provided with the external of identification circuit described in above-described embodiment one Equipment will not produce impact to operations such as the normal talkings of intelligent electronic device.
In Fig. 9, external equipment identification system based on earphone socket specifically include that external equipment 800 with And intelligent electronic device 810;Wherein, external equipment 800 is provided with the base described in above-described embodiment one In the external equipment identification circuit of earphone socket, intelligent electronic device 810 is provided with above-described embodiment three Described external equipment identification device based on earphone socket, and external equipment 800 passes through headset plug It is connected with intelligent electronic device.
Record in the concrete structure of the identification circuit in external equipment 800 such as above-described embodiment one, intelligence The record in the structure such as above-described embodiment two identifying device in electronic equipment 810, identifies that device is held The operation of row may refer to the record in above-described embodiment two and embodiment three, is not repeated.
A1, a kind of external equipment identification circuit based on earphone socket, comprising: headset plug and record Sound loop;
Described headset plug has sound channel and connects end, mike connection end and earth terminal;
Described recording loop has the first connection end, the second connection end and the 3rd connects end;
Wherein, described first connects end is connected end connection with described sound channel, and described second connects end with described Mike connects end and connects, and the described 3rd connects end is connected with described earth terminal;
Described recording loop is by the earphone socket in described headset plug and intelligent electronic device and intelligence Mike in electronic equipment connects, and described recording loop and headset plug, earphone socket and described Mike forms microphone circuit together.
A2, circuit as described in A1, wherein, described microphone circuit includes: capacitor microphone circuit.
A3, circuit as described in A2, wherein, described recording loop includes: the first electric capacity, the first resistance With the second resistance;
One end of described first electric capacity is described first connection end, the other end and described first resistance and second Resistance connects respectively, and described first electric capacity and the first resistance and the second resistance are connected respectively;
One end of described first resistance is described second connection end, and the other end is connected with described first electric capacity;
One end of described second resistance is described 3rd connection end, and the other end is connected with described first electric capacity;
Described first resistance and the second resistor coupled in parallel.
A4, circuit as described in A2, wherein, described recording loop includes: the 3rd resistance, the 3rd electric capacity With the 4th electric capacity;
One end of described 3rd resistance is described first connection end, the other end and described 3rd electric capacity and the 4th Electric capacity connects respectively, and described first resistance and the 3rd electric capacity and the 4th electric capacity are connected respectively;
One end of described 3rd electric capacity is described second connection end, and the other end is connected with described 3rd resistance;
One end of described 4th electric capacity is described 3rd connection end, and the other end is connected with described 3rd resistance;
Described 3rd electric capacity and the 4th electric capacity are in parallel.
A5, circuit as described in A2, wherein, described recording loop includes: the 4th resistance, the 5th resistance With the 6th resistance;
One end of described 4th electric capacity is described first connection end, the other end and described 5th resistance and the 6th Resistance connects respectively, and described 4th resistance and the 5th resistance and the 6th resistance are connected respectively;
One end of described 5th resistance is described second connection end, and the other end is connected with described 6th resistance;
One end of described 6th resistance is described 3rd connection end, and the other end is connected with described 5th resistance;
Described 5th resistance and the 6th resistor coupled in parallel.
A6, circuit as described in arbitrary in A1 to A5, wherein, described recording loop also includes: switch, And described switch series is connected on the second connection end and the 3rd and connects between end.
A7, circuit as described in arbitrary in A1 to A5, wherein, described sound channel connects end and includes: Zuo Sheng Road connects end and R channel connects end, and described first connection end is connected end and/or right sound with described L channel Road connects end and connects.
B8, a kind of external equipment recognition methods based on earphone socket, comprising:
After the earphone socket monitoring intelligent electronic device inserts external equipment, trigger intelligent electronic device Recording, and the present video broadcast sound volume of described intelligent electronic device is set to the first predetermined value;
In the case of described first predetermined value, obtain the volume value of the sound obtained by recording;
The present video broadcast sound volume of described intelligent electronic device is set to the second predetermined value;
Play predetermined audio signal, and in the case of described second predetermined value, acquisition is obtained by recording The volume value of sound;
According between the volume value obtained for the first predetermined value and the volume value for the second predetermined value acquisition Comparison determine that whether described external equipment is to be provided with recording loop and the external equipment of headset plug, and Described recording loop and described headset plug and the earphone socket of described intelligent electronic device and mike one Rise and form microphone circuit.
B9, method as described in B8, wherein, described play the present video of described intelligent electronic device Volume is set to the first predetermined value and includes:
Obtain the present video broadcast sound volume of intelligent electronic device and store, then, by described smart electronics The present video broadcast sound volume of equipment is set to the first predetermined value;
And described method also includes:
After identifying external equipment, the present video broadcast sound volume of described intelligent electronic device is set to institute State the present video broadcast sound volume of storage.
B10, method as described in B8, wherein, described in the case of described first predetermined value, obtain logical The volume value crossing the sound that recording obtains includes:
The present video broadcast sound volume of described intelligent electronic device is being set to the first predetermined value, and is waiting After first predetermined time interval, obtain the volume value of the sound obtained by recording.
B11, method as described in B10, wherein, this first predetermined time interval is arranged by following manner:
The present video broadcast sound volume of described intelligent electronic device is set to the minimum level sound in addition to quiet Value;
Playing audio signal, triggers intelligent electronic device recording, and starts timing;
The volume value of the sound that monitoring is obtained by recording, at the described volume value monitored more than pre-accordatura In the case of value, using present timing value as described first predetermined time interval.
B12, method as described in B8, wherein, described in the case of described second predetermined value, obtain logical The volume value crossing the sound that recording obtains includes:
Playing predetermined audio signal, and after wait the second predetermined time interval, obtaining and obtained by recording The volume value of sound.
B13, method as described in B12, wherein, this second predetermined time interval is arranged by following manner:
The present video broadcast sound volume of described intelligent electronic device is set to the minimum level sound in addition to quiet Value;
Play described predetermined audio signal, trigger intelligent electronic device recording, and start timing;
The volume value of the sound that monitoring is obtained by recording, at the described volume value monitored more than pre-accordatura In the case of value, using present timing value as described second predetermined time interval.
B14, method as described in arbitrary in B8 to B13, wherein, described acquisition is obtained by recording The volume value of sound includes:
The volume value that the operating system of timing acquisition intelligent electronic device returns, and predetermined for get The volume value of quantity calculates meansigma methods.
B15, method as described in B14, wherein, the volume value that described basis obtains for the first predetermined value And for second predetermined value obtain volume value between relatively determine that whether described external equipment is for being provided with The external equipment of recording loop and headset plug includes:
Judge whether the meansigma methods of the volume value calculated for the second predetermined value reaches for the first predetermined value Seven times of the meansigma methods of the volume value calculated;
If reaching seven times, it is determined that described external equipment is the external equipment being provided with described identification circuit;
Without reaching seven times, it is determined that described external equipment is not for be provided with outside described identification circuit Connect equipment.
B16, method as described in B15, wherein, described first predetermined value is 0, and described second makes a reservation for Value is arranged by following manner:
The present video broadcast sound volume of described intelligent electronic device is set to the first predetermined value, and acquisition is passed through The volume value of the sound that recording obtains, and for the volume value calculating meansigma methods of the predetermined quantity got;
Play predetermined audio signal;
Present video broadcast sound volume is adjusted to next stage volume value, the sound that acquisition is obtained by recording Volume value, and for the volume value calculating meansigma methods of the predetermined quantity got;
Whether the meansigma methods of the volume value that the present video broadcast sound volume after judging for adjustment calculates reaches The prearranged multiple of the meansigma methods of the volume value calculated for the first predetermined value, wherein, described prearranged multiple More than seven times;
If reaching prearranged multiple, then using the present video broadcast sound volume after described adjustment as described second Predetermined value;
Without reaching prearranged multiple, then return to described present video broadcast sound volume is adjusted to next The step of level volume value.
B17, method as described in B15, wherein, described method also includes:
The situation of predetermined threshold is exceeded in the meansigma methods determining the volume value calculated for the first predetermined value Under, determine that described external equipment is not the external equipment being provided with described identification circuit.
B18, method as described in B8, wherein, described external equipment is for being provided with arbitrary institute in A1-A7 The external equipment of the identification circuit stated.
C19, a kind of external equipment identification device based on earphone socket, comprising:
First arranges module, is suitable to after the earphone socket monitoring intelligent electronic device inserts external equipment, Triggering intelligent electronic device is recorded, and is set to by the present video broadcast sound volume of described intelligent electronic device First predetermined value;
First acquisition module, is suitable in the case of described first predetermined value, obtains the sound obtained by recording The volume value of sound;
Second arranges module, is suitable to the present video broadcast sound volume of described intelligent electronic device is set to Two predetermined values;
Second acquisition module, is suitable to play predetermined audio signal, and in the case of described second predetermined value, Obtain the volume value of the sound obtained by recording;
Identification module, is suitable to the volume value according to obtaining for the first predetermined value and obtains with for the second predetermined value Relatively determine that described external equipment is whether for being provided with recording loop and headset plug between the volume value taken External equipment, and described recording loop and described headset plug and the earphone of described intelligent electronic device Socket forms microphone circuit together with mike.
C20, device as described in C19, wherein, the described present video by described intelligent electronic device is broadcast Playback amount is set to the first predetermined value and includes:
Obtain the present video broadcast sound volume of intelligent electronic device and store, then, by described smart electronics The present video broadcast sound volume of equipment is set to the first predetermined value;
And described identification module is further adapted for:
After identifying external equipment, the present video broadcast sound volume of described intelligent electronic device is set to institute State the present video broadcast sound volume of storage.
C21, device as described in C19, wherein, described in the case of described first predetermined value, obtain logical The volume value crossing the sound that recording obtains includes:
The present video broadcast sound volume of described intelligent electronic device is being set to the first predetermined value, and is waiting After first predetermined time interval, obtain the volume value of the sound obtained by recording.
C22, device as described in C21, wherein, described device also includes:
First initialization module, is suitable to be set to the present video broadcast sound volume of described intelligent electronic device Minimum level volume value in addition to quiet;Playing audio signal, triggers intelligent electronic device recording, and opens Beginning timing;The volume value of the sound that monitoring is obtained by recording, at the described volume value monitored more than pre- In the case of accordatura value, using present timing value as described first predetermined time interval.
C23, device as described in C19, wherein, described in the case of described second predetermined value, obtain logical The volume value crossing the sound that recording obtains includes:
Playing predetermined audio signal, and after wait the second predetermined time interval, obtaining and obtained by recording The volume value of sound.
C24, device as described in C23, wherein, described device also includes:
Second initialization module, is suitable to be set to the present video broadcast sound volume of described intelligent electronic device Minimum level volume value in addition to quiet;Play described predetermined audio signal, trigger intelligent electronic device record Sound, and start timing;The volume value of the sound that monitoring is obtained by recording, in the described volume monitored Value is more than in the case of predetermined volume value, using present timing value as described second predetermined time interval.
C25, device as described in arbitrary in C19 to C24, wherein, described acquisition is obtained by recording The volume value of sound includes:
The volume value that the operating system of timing acquisition intelligent electronic device returns, and predetermined for get The volume value of quantity calculates meansigma methods.
C26, device as described in C25, wherein, the volume value that described basis obtains for the first predetermined value And for second predetermined value obtain volume value between relatively determine that whether described external equipment is for being provided with The external equipment of recording loop and headset plug includes:
Judge whether the meansigma methods of the volume value calculated for the second predetermined value reaches for the first predetermined value Seven times of the meansigma methods of the volume value calculated;
If reaching seven times, it is determined that described external equipment is the external equipment being provided with described identification circuit;
Without reaching seven times, it is determined that described external equipment is not for be provided with outside described identification circuit Connect equipment.
C27, device as described in C26, wherein, described first predetermined value is 0, and this device also includes:
3rd initialization module, is suitable to be set to the present video broadcast sound volume of described intelligent electronic device First predetermined value, obtains the volume value of the sound obtained by recording, and for the predetermined quantity got Volume value calculate meansigma methods;Play predetermined audio signal;Present video broadcast sound volume is adjusted to next Level volume value, obtains the volume value of the sound obtained by recording, and for the predetermined quantity got Volume value calculates meansigma methods;
Whether the meansigma methods of the volume value that the present video broadcast sound volume after judging for adjustment calculates reaches The prearranged multiple of the meansigma methods of the volume value calculated for the first predetermined value, wherein, described prearranged multiple More than seven times;
If reaching prearranged multiple, then using the present video broadcast sound volume after described adjustment as described second Predetermined value;
Without reaching prearranged multiple, then return to described present video broadcast sound volume is adjusted to next The step of level volume value.
C28, device as described in C26, wherein, described identification module is further adapted for:
The situation of predetermined threshold is exceeded in the meansigma methods determining the volume value calculated for the first predetermined value Under, determine that described external equipment is not the external equipment being provided with described identification circuit.
C29, device as described in C19, wherein, described external equipment is for being provided with arbitrary institute in A1-A7 The external equipment of the identification circuit stated.
D30, a kind of external equipment identification system based on earphone socket, comprising: external equipment and intelligence Can electronic equipment;
Described external equipment is provided with arbitrary described identification circuit in A1-A7;
Described intelligent electronic device is provided with in C19-C29 arbitrary described based on earphone socket external Equipment identification device.
Algorithm and display be not solid with any certain computer, virtual system or miscellaneous equipment provided herein Have relevant.Various general-purpose systems can also be used together with based on teaching in this.As described above, Construct the structure required by this kind of system to be apparent from.Additionally, the present invention is also not for any specific Programming language.It is understood that, it is possible to use various programming languages realize the content of invention described herein, And the description done language-specific above is the preferred forms in order to disclose the present invention.
Those skilled in the art are appreciated that and can carry out the module in the equipment in embodiment certainly Change adaptively and they are arranged in one or more equipment different from this embodiment.Permissible Module in embodiment or unit or assembly are combined into a module or unit or assembly, and in addition may be used To put them into multiple submodule or subelement or sub-component.Except such feature and/or process or Outside at least some in unit excludes each other, can use any combination that (this specification is included companion With claim, summary and accompanying drawing) disclosed in all features and so disclosed any method or All processes of person's equipment or unit are combined.Unless expressly stated otherwise, this specification (includes companion With claim, summary and accompanying drawing) disclosed in each feature can by provide identical, equivalent or phase Replace like the alternative features of purpose.
Although additionally, it will be appreciated by those of skill in the art that embodiments more described herein include it Some feature included in its embodiment rather than further feature, but the group of the feature of different embodiment Close and mean to be within the scope of the present invention and formed different embodiments.As wanted in following right Ask in book, one of arbitrarily can mode using in any combination of embodiment required for protection.
The all parts embodiment of the present invention can realize with hardware, or to process at one or more The software module run on device realizes, or realizes with combinations thereof.Those skilled in the art should Understand, microprocessor or digital signal processor (DSP) can be used in practice to realize according to this The external equipment identification device based on earphone socket of inventive embodiments and based on earphone socket external set The some or all functions of the some or all parts in standby identification system.The present invention can also realize For part or all the equipment by performing method as described herein or device program (based on as Calculation machine program and computer program).The program of such present invention of realization can be stored in computer On computer-readable recording medium, or can be to have the form of one or more signal.Such signal can from because of Download on special net website and obtain, or provide on carrier signal, or provide with any other form.
It should be noted that above-described embodiment the present invention will be described rather than limits the invention, And those skilled in the art can design replacement in fact without departing from the scope of the appended claims Execute example.In the claims, should not will be located in any reference marks between bracket to be configured to right is wanted The restriction asked.Word " comprises " and does not excludes the presence of the element or step not arranged in the claims.It is positioned at Word "a" or "an" before element does not excludes the presence of multiple such element.The present invention is permissible By means of including the hardware of some different elements and realizing by means of properly programmed computer.? If listing in the unit claim of equipment for drying, several in these devices can be by same Hardware branch specifically embodies.Word first, second and third use do not indicate that any order.Can It is title by these word explanations.

Claims (10)

1. an external equipment recognition methods based on earphone socket, comprising:
After the earphone socket monitoring intelligent electronic device inserts external equipment, trigger intelligent electronic device Recording, and the present video broadcast sound volume of described intelligent electronic device is set to the first predetermined value;
In the case of described first predetermined value, obtain the volume value of the sound obtained by recording;
The present video broadcast sound volume of described intelligent electronic device is set to the second predetermined value;
Play predetermined audio signal, and in the case of described second predetermined value, acquisition is obtained by recording The volume value of sound;
According between the volume value obtained for the first predetermined value and the volume value for the second predetermined value acquisition Comparison determine that whether described external equipment is to be provided with recording loop and the external equipment of headset plug.
The most described by the current sound of described intelligent electronic device Frequently broadcast sound volume is set to the first predetermined value and includes:
Obtain the present video broadcast sound volume of intelligent electronic device and store, then, by described smart electronics The present video broadcast sound volume of equipment is set to the first predetermined value;
And described method also includes:
After identifying external equipment, the present video broadcast sound volume of described intelligent electronic device is set to institute State the present video broadcast sound volume of storage.
The most described in the case of described first predetermined value, obtain The volume value taking the sound obtained by recording is included:
The present video broadcast sound volume of described intelligent electronic device is being set to the first predetermined value, and is waiting After first predetermined time interval, obtain the volume value of the sound obtained by recording.
4. method as claimed in claim 3, wherein, this first predetermined time interval passes through following manner Arrange:
The present video broadcast sound volume of described intelligent electronic device is set to the minimum level sound in addition to quiet Value;
Playing audio signal, triggers intelligent electronic device recording, and starts timing;
The volume value of the sound that monitoring is obtained by recording, at the described volume value monitored more than pre-accordatura In the case of value, using present timing value as described first predetermined time interval.
The most described in the case of described second predetermined value, obtain The volume value taking the sound obtained by recording is included:
Playing predetermined audio signal, and after wait the second predetermined time interval, obtaining and obtained by recording The volume value of sound.
6. method as claimed in claim 5, wherein, this second predetermined time interval passes through following manner Arrange:
The present video broadcast sound volume of described intelligent electronic device is set to the minimum level sound in addition to quiet Value;
Play described predetermined audio signal, trigger intelligent electronic device recording, and start timing;
The volume value of the sound that monitoring is obtained by recording, at the described volume value monitored more than pre-accordatura In the case of value, using present timing value as described second predetermined time interval.
7. the method as described in any claim in claim 1 to 6, wherein, described acquisition is passed through The volume value of the sound that recording obtains includes:
The volume value that the operating system of timing acquisition intelligent electronic device returns, and predetermined for get The volume value of quantity calculates meansigma methods.
8. method as claimed in claim 7, wherein, the sound that described basis obtains for the first predetermined value Value and for second predetermined value obtain volume value between relatively determine that whether described external equipment is for setting The external equipment being equipped with recording loop and headset plug includes:
Judge whether the meansigma methods of the volume value calculated for the second predetermined value reaches for the first predetermined value Seven times of the meansigma methods of the volume value calculated;
If reaching seven times, it is determined that described external equipment is to be provided with outside recording loop and headset plug Connect equipment;
Without reaching seven times, it is determined that described external equipment is not slotting for being provided with recording loop and earphone Head external equipment.
9. method as claimed in claim 8, wherein, described first predetermined value is 0, and described second Predetermined value is arranged by following manner:
The present video broadcast sound volume of described intelligent electronic device is set to the first predetermined value, and acquisition is passed through The volume value of the sound that recording obtains, and for the volume value calculating meansigma methods of the predetermined quantity got;
Play predetermined audio signal;
Present video broadcast sound volume is adjusted to next stage volume value, the sound that acquisition is obtained by recording Volume value, and for the volume value calculating meansigma methods of the predetermined quantity got;
Whether the meansigma methods of the volume value that the present video broadcast sound volume after judging for adjustment calculates reaches The prearranged multiple of the meansigma methods of the volume value calculated for the first predetermined value, wherein, described prearranged multiple More than seven times;
If reaching prearranged multiple, then using the present video broadcast sound volume after described adjustment as described second Predetermined value;
Without reaching prearranged multiple, then return to described present video broadcast sound volume is adjusted to next The step of level volume value.
10. method as claimed in claim 8, wherein, described method also includes:
The situation of predetermined threshold is exceeded in the meansigma methods determining the volume value calculated for the first predetermined value Under, determine that described external equipment is not the external equipment being provided with described identification circuit.
CN201610298835.9A 2014-01-09 2014-03-24 External equipment identification circuit, methods, devices and systems based on earphone socket Expired - Fee Related CN105959845B (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201410010628 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 Parent Applications (1)

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

Publications (2)

Publication Number Publication Date
CN105959845A true CN105959845A (en) 2016-09-21
CN105959845B CN105959845B (en) 2019-03-01

Family

ID=56914544

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN105959845B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018103701A1 (en) * 2016-12-07 2018-06-14 中兴通讯股份有限公司 Earphone device control method and apparatus
CN110248264A (en) * 2019-04-25 2019-09-17 维沃移动通信有限公司 A kind of voice transmission control method and terminal device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453510A (en) * 2007-12-05 2009-06-10 德信智能手机技术(北京)有限公司 Earphone recognition apparatus and method for mobile communication terminal
CN101783986A (en) * 2010-03-17 2010-07-21 青岛海信移动通信技术股份有限公司 Earphone interface circuit and electronic equipment
CN102088512A (en) * 2009-12-08 2011-06-08 三星电子株式会社 Apparatus and method for recognizing earphone mounted in portable terminal
CN103079138A (en) * 2013-01-25 2013-05-01 青岛歌尔声学科技有限公司 Earphone and method for realizing automatic recognition switching control of earphone
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
US20130315406A1 (en) * 2012-05-22 2013-11-28 Research & Business Foundation Sungkyunkwan University System and method for data processing using earphone port

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453510A (en) * 2007-12-05 2009-06-10 德信智能手机技术(北京)有限公司 Earphone recognition apparatus and method for mobile communication terminal
CN102088512A (en) * 2009-12-08 2011-06-08 三星电子株式会社 Apparatus and method for recognizing earphone mounted in portable terminal
CN101783986A (en) * 2010-03-17 2010-07-21 青岛海信移动通信技术股份有限公司 Earphone interface circuit and electronic equipment
CN103220614A (en) * 2012-01-20 2013-07-24 天地融科技股份有限公司 Audio interface type detection device
US20130315406A1 (en) * 2012-05-22 2013-11-28 Research & Business Foundation Sungkyunkwan University System and method for data processing using earphone port
CN103079138A (en) * 2013-01-25 2013-05-01 青岛歌尔声学科技有限公司 Earphone and method for realizing automatic recognition switching control of earphone
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 (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018103701A1 (en) * 2016-12-07 2018-06-14 中兴通讯股份有限公司 Earphone device control method and apparatus
CN110248264A (en) * 2019-04-25 2019-09-17 维沃移动通信有限公司 A kind of voice transmission control method and terminal device

Also Published As

Publication number Publication date
CN105959845B (en) 2019-03-01

Similar Documents

Publication Publication Date Title
CN103873988B (en) Based on external equipment identify circuit, the methods, devices and systems of earphone socket
CN101226766B (en) Audio play device automatically adjusting play parameter
CN102193047B (en) Multiple detection circuit for accessory jacks
CN104936098B (en) A kind of audio setting devices and methods therefor, play system and its method
CN108132401A (en) Charge abnormal detection method, device, storage medium and mobile terminal
CN106453793B (en) A kind of method of voice response, electronic equipment and computer readable storage medium
US8509857B2 (en) Headsets
CN106791109A (en) A kind of sound prompting method and mobile terminal
CN100410907C (en) Music play control apparatus using at least one earphone function key and method thereof
US11445285B2 (en) Interactive control method and device of an earphone case, earphone case and storage medium
CN110430562A (en) Bluetooth communication method and relevant apparatus
CN108377290A (en) A kind of audio stream processing method and mobile terminal and medium product
CN104967932A (en) Earphone use prompting method and apparatus and smart terminal
CN103425489A (en) A system and apparatus for controlling a device with a bone conduction transducer
CN106131312A (en) The player method of speech message, device and mobile terminal
CN101662313A (en) System and method for searching communication device by blue tooth
CN107220163A (en) Mobile terminal and its management method, computer-readable recording medium
CN113194383A (en) Sound playing method and device, electronic equipment and readable storage medium
CN104301824B (en) Line traffic control equipment, controller, method and device
CN109065017B (en) Voice data generation method and related device
CN105959845A (en) External equipment identification circuit, method, device and system based on earphone socket
CN105141786A (en) Music playing control method, system and mobile terminal
CN110381416A (en) A kind of media play method for controlling volume, device, electronic equipment and storage medium
CN108540672A (en) Air blowing triggering method and terminal device
CN101276622A (en) Multimedia system and time-counting method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
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: 20190301

Termination date: 20210324