CN105959845B - External equipment identification circuit, methods, devices and systems based on earphone socket - Google Patents
External equipment identification circuit, methods, devices and systems based on earphone socket Download PDFInfo
- Publication number
- CN105959845B CN105959845B CN201610298835.9A CN201610298835A CN105959845B CN 105959845 B CN105959845 B CN 105959845B CN 201610298835 A CN201610298835 A CN 201610298835A CN 105959845 B CN105959845 B CN 105959845B
- Authority
- CN
- China
- Prior art keywords
- value
- volume
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 74
- 239000003990 capacitor Substances 0.000 claims description 72
- 230000005236 sound signal Effects 0.000 claims description 38
- 230000005611 electricity Effects 0.000 claims description 15
- 238000012544 monitoring process Methods 0.000 claims description 15
- 238000004364 calculation method Methods 0.000 claims description 4
- 230000008569 process Effects 0.000 description 25
- 238000010586 diagram Methods 0.000 description 7
- 238000003780 insertion Methods 0.000 description 7
- 230000037431 insertion Effects 0.000 description 7
- 230000008859 change Effects 0.000 description 6
- 238000009434 installation Methods 0.000 description 5
- 241000209094 Oryza Species 0.000 description 4
- 235000007164 Oryza sativa Nutrition 0.000 description 4
- 230000008901 benefit Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 235000009566 rice Nutrition 0.000 description 4
- 238000012360 testing method Methods 0.000 description 4
- 241000209140 Triticum Species 0.000 description 3
- 235000021307 Triticum Nutrition 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 230000009977 dual effect Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000012163 sequencing technique Methods 0.000 description 2
- 230000000638 stimulation Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000037452 priming Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; 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 a kind of external equipment identification circuit, methods, devices and systems based on earphone socket;Identification circuit therein includes: headset plug and recording circuit;The headset plug has sound channel connecting pin, microphone connecting pin and ground terminal;The recording circuit has the first connecting pin, second connection end and third connecting pin;Wherein, first connecting pin is connect with the sound channel connecting pin, and the second connection end is connect with the microphone connecting pin, and the third connecting pin is connect with the ground terminal;The recording circuit is by the microphone connection in the earphone socket and intelligent electronic device in the headset plug and intelligent electronic device, and the recording circuit and headset plug, earphone socket and the microphone are formed together microphone circuit.
Description
Technical field
The present invention relates to equipment identification technologies, and in particular to a kind of external equipment identification circuit based on earphone socket, side
Method, device and system.This case is that application No. is 201410112245.3 divisional applications.
Background technique
Intelligent electronic device (such as based on the intelligent electronic device of Android operation system) can by its earphone socket with
External equipment connection, as intelligent electronic device can be infrared distant by its earphone socket and earphone, drawing OK a karaoke club equipment, mobile phone
Control the connection of the external equipments such as device or mobile phone press key equipment.
In the case where intelligent electronic device is connect by its earphone socket with external equipment, intelligent electronic device reply is inserted
The external equipment entered is effectively identified that otherwise, intelligent electronic device will be considered that the external equipment being inserted into its earphone socket is
Earphone can not be dialed normally so as to will lead to user in this way, intelligent electronic device can export sound by earphone and answer electricity
Words (in the case where intelligent electronic device is intelligent mobile phone) listen to music and viewing video etc..
Currently, it includes two that intelligent electronic device, which knows main otherwise the external equipment being inserted into its earphone socket,
Kind: mode one, the ultrasonic wave modulation demodulation techniques based on 10KHZ frequency range identify external equipment;Mode two is based on MCU
(micro-control unit) identifies external equipment, i.e., when the headset plug of external equipment is inserted into earphone socket, external equipment
In MCU actively to intelligent electronic device export special audio signal, in order to which intelligent electronic device can be received according to it
Special audio signal identification go out be inserted into earphone socket external equipment.
Inventor has found in realizing process of the present invention, for aforesaid way one, in the earphone of intelligent electronic device
In the case that socket is inserted into earphone, if identified using the ultrasonic wave of 10KHZ frequency range to external equipment, it can generate ear-piercing
High-frequency sound, it is very big to the stimulation of human ear, to will affect the impression of user;In addition, if intelligent electronic device is playing
External equipment identification is carried out during music, then its music played will affect the accuracy rate of external equipment identification;For above-mentioned
For mode two, since MCU volume is larger and higher cost, MCU is arranged in external equipment may be to external equipment
Volume and cost generate large effect.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind
State problem external equipment identification circuit based on earphone socket and the external equipment recognition methods based on earphone socket accordingly,
External equipment identification device based on earphone socket and the external equipment identifying system based on earphone socket.
First aspect according to the present invention provides a kind of external equipment identification circuit based on earphone socket, comprising:
Headset plug and recording circuit;The headset plug has sound channel connecting pin, microphone connecting pin and ground terminal;The record
Sound circuit has the first connecting pin, second connection end and third connecting pin;Wherein, first connecting pin is connect with the sound channel
End connection, the second connection end are connect with the microphone connecting pin, and the third connecting pin is connect with the ground terminal;Institute
It states recording circuit and passes through the Mike in the earphone socket and intelligent electronic device in the headset plug and intelligent electronic device
Wind connection, and the recording circuit and headset plug, earphone socket and microphone are formed together microphone circuit.
The second aspect according to the present invention provides a kind of external equipment recognition methods based on earphone socket, comprising:
After the earphone socket for monitoring intelligent electronic device is inserted into external equipment, triggering intelligent electronic device recording, and will intelligence electricity
The present video broadcast sound volume of sub- equipment is set as first predetermined value;In the first predetermined value, acquisition passes through recording
The volume value of the sound of acquisition;Second predetermined value is set by the present video broadcast sound volume of the intelligent electronic device;It plays
Predetermined audio signal, and in the second predetermined value, obtain the volume value of the sound obtained by recording;According to being directed to
The volume value that first predetermined value obtains determines the external equipment compared between the volume value obtained for second predetermined value
It whether is to be provided with the external equipment in recording circuit and headset plug, and the recording circuit and the headset plug and described
The earphone socket and microphone of intelligent electronic device are formed together microphone circuit.
According to the third aspect of the present invention, a kind of external equipment identification device based on earphone socket is provided, comprising:
First setup module, suitable for after the earphone socket for monitoring intelligent electronic device is inserted into external equipment, triggering smart electronics are set
Priming sound, and first predetermined value is set by the present video broadcast sound volume of the intelligent electronic device;First obtains module, fits
In in the first predetermined value, the volume value of the sound obtained by recording is obtained;Second setup module is suitable for institute
The present video broadcast sound volume for stating intelligent electronic device is set as second predetermined value;Second obtains module, is suitable for playing pre- accordatura
Frequency signal, and in the second predetermined value, obtain the volume value of the sound obtained by recording;Identification module is suitable for
Described in being determined compared between the volume value obtained for second predetermined value according to the volume value obtained for first predetermined value
Whether external equipment is to be provided with the external equipment in recording circuit and headset plug, and the recording circuit and the headset plug
And the earphone socket and microphone of the intelligent electronic device are formed together microphone circuit.
According to the fourth aspect of the present invention, a kind of external equipment identifying system based on earphone socket is provided, this is
System includes: external equipment and intelligent electronic device;Above-mentioned identification circuit is provided in the external equipment;The intelligence electricity
The above-mentioned external equipment identification device based on earphone socket is provided in sub- equipment.
External equipment identification circuit, methods, devices and systems based on earphone socket of the invention pass through in external equipment
Middle external equipment identification circuit of the setting based on earphone socket, and the recording circuit in the identification circuit by headset plug and
Microphone connection in earphone socket and intelligent electronic device in intelligent electronic device, and microphone circuit is formed, in this way, in intelligence
When the earphone socket insertion of energy electronic equipment has the external equipment of the identification circuit, intelligent electronic device can pass through the microphone
Circuit realizes recording;Due to recording the sound of different sources of sound sound obtained in different present video broadcast sound volumes
Magnitude has the characteristics that certain, therefore, can accurately identify insertion by the comparison of the volume value for the sound recorded
Whether the external equipment in the earphone socket of intelligent electronic device is the external equipment for being provided with above-mentioned identification circuit;Due to this hair
Source of sound in bright can use common music, and therefore, the present invention can be to avoid connecing in equipment identification process ultrasonic wave to people outside
The stimulation of ear;Due to identification circuit of the invention use recording circuit, and record circuit usually using simple cheap first device
Part (such as capacitor and resistance) can be realized, and therefore, the present invention can be external to avoid external equipment identification is carried out using MCU
Connect that volume caused by equipment is larger and the influence of higher cost.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment for the present embodiment, and is not regarded as
It is limitation of the present invention.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows headset plug schematic diagram;
One Fig. 2 shows the according to embodiments of the present invention one external equipment identification circuit based on earphone socket is specific
Electrical block diagram;
Fig. 3 shows another tool of the according to embodiments of the present invention one external equipment identification circuit based on earphone socket
Body electrical block diagram;
Fig. 4 shows another tool of the according to embodiments of the present invention one external equipment identification circuit based on earphone socket
Body electrical block diagram;
Fig. 5 shows the according to embodiments of the present invention two external equipment recognition methods flow chart based on earphone socket;
Fig. 6 shows the according to embodiments of the present invention three external equipment recognition methods flow chart based on earphone socket;
Fig. 7 shows the initialization in the according to embodiments of the present invention three external equipment recognition methods based on earphone socket
Flow diagram;
Fig. 8 shows the external equipment identification device schematic diagram based on earphone socket of implementation four according to the present invention;
Fig. 9 shows the external equipment identification device schematic diagram based on earphone socket of implementation five according to the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
Embodiment one, the external equipment identification circuit based on earphone socket.Below with reference to Fig. 1, Fig. 2 and Fig. 3 to this implementation
The identification circuit of example is illustrated.
The external equipment identification circuit based on earphone socket of the present embodiment specifically includes that headset plug and records back
Road, wherein recording circuit has multiple connecting pins, and multiple connecting pin is connect with multiple connecting pins in headset plug respectively.
Specifically, current headset plug usually has sound channel connecting pin, microphone connecting pin and ground terminal;In earphone
When plug is dual sound track plug for earphone, above-mentioned sound channel connecting pin is generally included: L channel connecting pin and right channel connecting pin;In ear
When machine transplanting of rice head is mono phone plug, above-mentioned sound channel connecting pin is usually monophonic connecting pin.
One specific example of headset plug is as shown in Figure 1.
In the case that headset plug in Fig. 1 meets international standard (CTIA), which specifically includes that microphone
Connecting pin 1, ground wire connecting pin 2, right channel connecting pin 3 and L channel connecting pin 4.
In the case that headset plug in Fig. 1 meets national standard (OMTP), which specifically includes that ground wire connects
Connect end 1, microphone connecting pin 2, right channel connecting pin 3 and L channel connecting pin 4.
The recording circuit of the present embodiment is mainly used for and the Mike in headset plug, earphone socket and intelligent electronic device
Wind is formed together microphone circuit, such as forms capacitor microphone circuit.
In order to form microphone circuit, which has the first connecting pin, second connection end and third connecting pin, and the
One connecting pin and the sound channel connecting pin of headset plug connect, and the microphone connecting pin of second connection end and intelligent electronic device connects
It connects, the ground terminal connection of third connecting pin and headset plug.
First connecting pin and headset plug in the case where headset plug is mono phone plug, in circuit of recording
The connection of monophonic connecting pin.
In the case where headset plug is dual sound track plug for earphone, the first connecting pin in circuit of recording is connect with L channel
At least one connecting pin connection in end and right channel connecting pin;Under normal conditions, record circuit in the first connecting pin with
L channel connecting pin and right channel connecting pin are separately connected.
In order to form capacitor microphone circuit, recording circuit has generally comprised the components such as capacitor and resistance;In the present embodiment
Recording circuit a specific example it is as shown in Figure 2.
" 1 ", " 2 ", " 3 " and " 4 " in Fig. 2 are the attached drawing mark of each connecting pin of the headset plug in above-mentioned Fig. 1
Note.Recording circuit in Fig. 2 includes: capacitor C1, resistance R1 and resistance R2.One end of capacitor C1 is above-mentioned first connecting pin,
It is separately connected with the right channel connecting pin of headset plug and L channel connecting pin, the other end and resistance R1 and resistance of capacitor C1
R2 is separately connected, and capacitor C1 connects respectively with resistance R1 and resistance R2.One end of resistance R1 is above-mentioned second connection end, with
The ground wire connecting pin of headset plug or the connection of microphone connecting pin, the other end of resistance R1 are connect with capacitor C1.Resistance R2's
One end is above-mentioned third connecting pin, is connect with the microphone connecting pin of headset plug or ground wire connecting pin, resistance R2's is another
End is connect with capacitor C1.Above-mentioned resistance R1 and resistance R2 are in parallel.
By recording circuit shown in Fig. 2, the audio signal of intelligent electronic device output can pass through earphone socket, earphone
After plug and recording circuit, the microphone in intelligent electronic device is returned to by headset plug and earphone socket, thus shape
At microphone circuit (capacitor microphone circuit).
In addition, since the capacitor 1 in Fig. 2 is connected respectively with resistance R1 and resistance R2, and resistance R1 and resistance R2 are simultaneously
Connection, therefore, either one end of resistance R1 and headset plug ground wire connecting pin connection and resistance R2 one end and headset plug
Microphone connecting pin connection or resistance R1 one end and headset plug microphone connecting pin connection and resistance R2 one end
It is connect with the ground wire connecting pin of headset plug, which can be with the earphone in headset plug and intelligent electronic device
Socket and microphone are formed together microphone circuit;To Fig. 2 shows recording circuit to international standard (CTIA) and country
The headset plug of standard (OMTP) is applicable.
Above-mentioned capacitor C1 can be specially the capacitor of 1uf (microfarad), and above-mentioned resistance R1 and resistance R2 can be specially 1500
The resistance in Europe.
Recording circuit in Fig. 2 can also optionally include: switch E1.Switch E1 is serially connected in the microphone in recording circuit
Between connecting pin and ground wire connecting pin;Switch E1 closure when, due to the recording circuit no longer with the wheat in intelligent electronic device
Gram wind forms capacitor microphone circuit, from being unable to carry out whether external equipment is to be provided with the external of above-mentioned identification circuit to set again
Standby identification process.
Another specific example in the recording circuit in the present embodiment is as shown in Figure 3.
" 1 ", " 2 ", " 3 " and " 4 " in Fig. 3 are the mark of each connecting pin of the headset plug in above-mentioned Fig. 1.In Fig. 3
Recording circuit include: resistance R3, capacitor C2 and capacitor C3.One end of resistance R3 is the first connecting pin, with headset plug
Right channel connecting pin and L channel connecting pin are separately connected, and the other end and the capacitor C2 and capacitor C3 of resistance R3 is separately connected,
And resistance R3 connects respectively with capacitor C2 and capacitor C3.One end of capacitor C2 is second connection end, the ground wire with headset plug
Connecting pin or the connection of microphone connecting pin, the other end of capacitor C2 are connect with resistance R3.One end of capacitor C3 is third connection
End, connect, the other end of capacitor C3 is connect with resistance R3 with the microphone connecting pin of headset plug or ground wire connecting pin.It is above-mentioned
Capacitor C2 and capacitor C3 are in parallel.By recording circuit shown in Fig. 3, the audio signal of intelligent electronic device output passes through earphone
Behind socket, headset plug and recording circuit, it can be returned in intelligent electronic device by headset plug and earphone socket
Microphone, to form microphone circuit.
In addition, since the resistance R3 in Fig. 3 connects respectively with capacitor C2 and capacitor C3, and capacitor C2 and capacitor C3 are simultaneously
Connection, therefore, either one end of capacitor C2 and headset plug ground wire connecting pin connection and capacitor C3 one end and headset plug
The connection of microphone connecting pin or one end of capacitor C2 and the microphone connecting pin of headset plug connect, and the one of capacitor C3
End is connect with the ground wire connecting pin of headset plug, which can be with the ear in headset plug and intelligent electronic device
Machine transplanting of rice seat and microphone are formed together microphone circuit;To which the recording circuit shown in Fig. 3 is to international standard (CTIA) and country
The headset plug of standard (OMTP) is applicable.
Above-mentioned resistance R3 can be the resistance in -400 Europe, 100 Europe, and above-mentioned capacitor C2 and capacitor C3 can be 1uf (microfarad)
Capacitor.
Recording circuit in Fig. 3 can also optionally include: switch E1.Switch E1 is serially connected in the microphone in recording circuit
Between connecting pin and ground wire connecting pin;Switch E1 closure when, due to the recording circuit no longer with the wheat in intelligent electronic device
Gram wind forms capacitor microphone circuit, from being unable to carry out whether external equipment is to be provided with the external of above-mentioned identification circuit to set again
Standby identification process.
Another specific example in the recording circuit in the present embodiment is as shown in Figure 4.
" 1 ", " 2 ", " 3 " and " 4 " in Fig. 4 are the mark of each connecting pin of the headset plug in above-mentioned Fig. 1.In Fig. 4
Recording circuit include: resistance R4, resistance R5 and resistance R6.One end of resistance R4 is the first connecting pin, with headset plug
Right channel connecting pin and L channel connecting pin are separately connected, and the other end and the resistance R5 and resistance R6 of resistance R4 is separately connected,
And resistance R4 connects respectively with resistance R5 and resistance R6.One end of resistance R5 is second connection end, the ground wire with headset plug
Connecting pin or the connection of microphone connecting pin, the other end of resistance R5 are connect with resistance R4.One end of resistance R6 is third connection
End, connect, the other end of resistance R6 is connect with resistance R4 with the microphone connecting pin of headset plug or ground wire connecting pin.It is above-mentioned
Resistance R5 and resistance R6 are in parallel.By recording circuit shown in Fig. 4, the audio signal of intelligent electronic device output passes through earphone
Behind socket, headset plug and recording circuit, it can be returned in intelligent electronic device by headset plug and earphone socket
Microphone, to form microphone circuit.
In addition, since the resistance R4 in Fig. 4 connects respectively with resistance R5 and resistance R6, and resistance R5 and resistance R6 are simultaneously
Connection, therefore, either one end of resistance R5 and headset plug ground wire connecting pin connection and resistance R6 one end and headset plug
The connection of microphone connecting pin or one end of resistance R5 and the microphone connecting pin of headset plug connect, and the one of resistance R6
End is connect with the ground wire connecting pin of headset plug, which can be with the ear in headset plug and intelligent electronic device
Machine transplanting of rice seat and microphone are formed together microphone circuit;To which the recording circuit shown in Fig. 4 is to international standard (CTIA) and country
The headset plug of standard (OMTP) is applicable.
Above-mentioned resistance R4 can be the resistance in the Europe 6k, and above-mentioned resistance R5 can be the resistance in the Europe 6k, and above-mentioned resistance R6 can be with
For the resistance in the Europe 6k.It should be strongly noted that the actual resistance of resistance R4, resistance R5 and resistance R6 can be identical in Fig. 4,
It can not also be identical;In the case where the sum of resistance value of any two resistance is within the scope of 10k-15k, record shown in Fig. 4
Circuit can be adapted to current almost various types of mobile phones based on Andriod operating system.
Recording circuit in Fig. 4 can also optionally include: switch E1.Switch E1 is serially connected in the microphone in recording circuit
Between connecting pin and ground wire connecting pin;Switch E1 closure when, due to the recording circuit no longer with the wheat in intelligent electronic device
Gram wind forms capacitor microphone circuit, from being unable to carry out whether external equipment is to be provided with the external of above-mentioned identification circuit to set again
Standby identification process.
Embodiment two, the external equipment recognition methods based on earphone socket.Below with reference to Fig. 5 to the method for the present embodiment into
Row explanation.
In Fig. 5, S400, monitor intelligent electronic device earphone socket be inserted into external equipment after, trigger smart electronics
Equipment recording, and first predetermined value is set by the present video broadcast sound volume of intelligent electronic device.
Specifically, the intelligent electronic device in the present embodiment can be to be set using the smart electronics of Andriod operating system
Standby (such as using the intelligent mobile phone or tablet computer of Andriod operating system).External in order to avoid the present embodiment sets
It is impacted for identification process call ongoing to intelligent electronic device or recording, the present embodiment can detect intelligence
The earphone socket insertion external equipment (broadcast message as passed through registration monitor reception operating system, with root of energy electronic equipment
Determine to insert external equipment in the earphone socket of intelligent electronic device according to the message received) after, detection smart electronics are set
Standby current state (such as judges the current shape of intelligent electronic device by reading the current log mode of intelligent electronic device
State);If detecting that the current state of intelligent electronic device is the states relevant to voice such as talking state or recording state,
Then intelligent electronic device should be waited in end and voice temporarily without the subsequent external equipment identification operation of the present embodiment
Relevant operation (such as terminate converse or terminate recording) and then start to execute the subsequent external equipment identification behaviour of the present embodiment
Make.
Due to the present embodiment external equipment identification process can present video broadcast sound volume to intelligent electronic device carry out
Modification, therefore, the present embodiment play sound in the present video for executing the modification intelligent electronic device in external equipment identification process
Before amount operation, the present video broadcast sound volume of intelligent electronic device should be first obtained, and store the present video broadcast sound volume, with
Convenient for the external equipment identification process of the present embodiment complete when, can also be by the present video broadcast sound volume of intelligent electronic device
Revert to the audio broadcast sound volume before external equipment identification operation.That is, the present embodiment formerly stores intelligent electricity
After the present video broadcast sound volume of sub- equipment, then triggers intelligent electronic device and execute recording operation, and by intelligent electronic device
Present video broadcast sound volume is set as first predetermined value.
Above-mentioned first predetermined value can be the volume minimum (i.e. pvw value) of intelligent electronic device, as first predetermined value is
0, that is to say, that the present embodiment can set mute state for intelligent electronic device.
Triggering intelligent electronic device in the present embodiment executes recording operation and broadcasts with by the present video of intelligent electronic device
Playback amount be set as between the operation of first predetermined value can not no sequencing restriction, such as two operations may be performed simultaneously;
For another example recording operation can be first carried out, then executes the setting operation of first predetermined value;Also it is possible to first carry out first predetermined value
Setting operation, then execute recording operation.
The operation that above-mentioned triggering intelligent electronic device executes recording can be by calling in intelligent electronic device operating system
Recording function realize that the present embodiment does not limit the specific implementation that triggering intelligent electronic device executes recording operation.
S410, in first predetermined value, obtain by recording obtain sound volume value.
Specifically, after triggering intelligent electronic device executes recording operation, current embodiment require that in intelligent electronic device
In the case that present video broadcast sound volume is arranged to first predetermined value, the volume value of the sound obtained by recording is obtained.
The present embodiment can execute recording operation in triggering intelligent electronic device and wait after a certain period of time, then obtains and pass through
The volume value for the sound that recording obtains.One specific example formerly triggers intelligent electronic device and executes recording operation, then is arranged
In the case where the present video broadcast sound volume of intelligent electronic device, the present embodiment can be by the present video of intelligent electronic device
Broadcast sound volume is set as first predetermined value, and waits the first predetermined time interval and then execute to obtain and pass through what recording obtained
The operation of the volume value of sound.
The present embodiment can obtain the volume value of multiple sound obtained by recording by the way of timing acquisition, and right
This multiple volume value calculates average value, which is mainly used for subsequent comparison procedure, and the volume is flat
Mean value can be referred to as the first volume average value.
The present embodiment is when calculating the first volume average value, it can be determined that it is predetermined whether the first volume average value is greater than
Volume value (such as 1000) can determine that this is outer if the first volume average value is greater than predetermined volume value (such as larger than 1000)
Connecing equipment not is the external equipment for the identification circuit being provided in above-described embodiment one, the identification process knot of this external equipment
Beam;If the first volume average value continues to execute the subsequent knowledge of the present embodiment no more than predetermined value (being such as less than equal to 1000)
Other step.
Above-mentioned predetermined volume value, which can be, to be rule of thumb pre-set in intelligent electronic device;And above-mentioned first is predetermined
Time interval, which can be, to be rule of thumb pre-set in intelligent electronic device, is also possible to purposive for intelligence electricity
The actual conditions of sub- equipment and be dynamically placed in intelligent electronic device.
A specific example of the first predetermined time interval is set dynamically for the actual conditions of intelligent electronic device are as follows: set
The present video broadcast sound volume for determining intelligent electronic device can be the volume that user can manually adjust by modes such as keys, example
Such as, 15 grades of (Andriod behaviour are divided by the volume that the modes such as key manually adjust for user in intelligent electronic device
Make system intelligent mobile phone have 15 grades of volumes for user's manual setting) this 15 grades can be hereinafter referred to as volume 0
To volume 14, volume 0 therein indicates mute;According to the putting in order to volume 14 of volume 1, volume 1 to volume 14 is respectively right
The sound answered is gradually increased, and the corresponding sound of volume 14 is maximum.In the case where present video broadcast sound volume is above situation, first is pre-
Fix time interval specific setting up procedure include: firstly, intelligent electronic device for the first time with the present embodiment have above-mentioned identification
In the case that the external equipment of circuit is connected by headset plug and earphone socket, the present embodiment can be directed to the external equipment
Initialize installation operation is carried out, specifically, setting smart electronics after the present video broadcast sound volume of backup intelligence electronic equipment
Standby present video broadcast sound volume be set as in addition to mute minimum level volume (i.e. above-mentioned volume 1, that is, except mute grade it
The corresponding volume of outer minimum level);Then, triggering electronic equipment executes audio signal (such as smart electronics for playing and being locally stored
The second built-in music in equipment) operation, and start timing;It is waiting for a period of time after (such as 500 milliseconds), is triggering intelligence electricity
Sub- equipment is recorded, and later, is being waited for a period of time after (such as 300 milliseconds), is being obtained the volume of the sound obtained by recording
Value (volume value returned as obtained operating system), and judge whether the volume value is greater than predetermined value (such as 100) and current meter
Whether duration reaches scheduled duration (such as 2 seconds), if the volume value obtained is no more than predetermined value and present timing value does not reach
Scheduled duration, then return the sound that above-mentioned acquisition is obtained by recording volume value and for volume value and present timing value into
The step of row judges;If volume value is greater than predetermined value or present timing value reaches scheduled duration, by working as above-mentioned timing
Preceding clocking value is set as the first predetermined time interval.
By above-mentioned specific example it is found that on the specific value of first predetermined time interval of the present embodiment can be arranged to
A numerical value between the duration of waiting and scheduled duration is stated, such as minimum value of the first predetermined time interval is 300 milliseconds, and
Its maximum value is 2 seconds.
In addition, in practical applications, intelligent electronic device can be manually adjusted for what user provided by modes such as keys
Volume it is perhaps more or less, in order to adapt to different types of intelligent electronic device, the smart electronics in the present embodiment are set
Standby present video broadcast sound volume can not be the volume that user can manually adjust by key etc., a specific example,
The maximum broadcast sound volume of intelligent electronic device is divided into 15 grades, maximum broadcast sound volume/15 are such as calculated, after above-mentioned division
Corresponding volume values at different levels are arranged the present video broadcast sound volume of intelligent electronic device.
S420, second predetermined value is set by the present video broadcast sound volume of intelligent electronic device.
Specifically, after the volume value for successfully obtaining the sound obtained by recording for first predetermined value, by intelligence
The present video broadcast sound volume adjustment of energy electronic equipment is set as second predetermined value, and second predetermined value is greater than first predetermined value.
Above-mentioned second predetermined value, which can be, to be rule of thumb pre-set in intelligent electronic device, is also possible to purposeful
The actual conditions for intelligent electronic device of property and be dynamically placed in intelligent electronic device.
For intelligent electronic device actual conditions and a specific example of second predetermined value is set dynamically are as follows: setting the
One predetermined value is 0 (i.e. intelligent electronic device is in mute state), and the present video broadcast sound volume of intelligent electronic device is arranged
It is 0, timing acquisition passes through the volume value (volume value as obtained operating system return) of the sound of recording acquisition, and for acquisition
To multiple volume values (such as 10 volume values) calculate average value (being denoted as the first average value);Play local pre-stored audio
Signal (as play first music), and by the present video broadcast sound volume of intelligent electronic device be set as volume 1 (as except it is mute it
Outer minimum level volume);Then, the volume value for the sound that timing acquisition is obtained by recording is (as obtained operating system return
Volume value), and average value (being denoted as the second average value) is calculated for the multiple volume values (such as 10 volume values) got, it
Afterwards, judge the second average value whether be the first average value prearranged multiple (prearranged multiple should be greater than 7 times, such as can use 9
Times), if the second average value does not reach the prearranged multiple of the first average value, the present video of intelligent electronic device is played
Volume is set as volume 2, and by the volume value of the sound of recording acquisition and multiple for getting back to timing acquisition
The step of volume value calculates average value (being denoted as the second average value) and judges multiple;If it is average that the second average value reaches first
The present video broadcast sound volume of intelligent electronic device is then determined as second predetermined value by the prearranged multiple of value.
S430, predetermined audio signal is played, and in second predetermined value, obtains the sound of the sound obtained by recording
Magnitude.
Specifically, current embodiment require that the present video broadcast sound volume in intelligent electronic device is adjusted that be set as second pre-
In the case where definite value, the volume value of the sound obtained by recording is obtained.
The present embodiment can be in predetermined audio signal (the first sound built in such as intelligent electronic device that broadcasting is locally stored
It is happy), and after the second predetermined time interval of waiting, execute the operation for obtaining the volume value of the sound by recording acquisition.
The present embodiment can obtain the volume value of multiple sound obtained by recording by the way of timing acquisition, and right
The multiple volume values got calculate average value (being denoted as the second average value), and calculated volume average value is used for subsequent ratio
Compared with process.
Above-mentioned second predetermined time interval is set in advance in intelligent electronic device, and second predetermined time interval
It can be and be rule of thumb pre-set in intelligent electronic device, be also possible to purposive for intelligent electronic device
Actual conditions and be dynamically placed in intelligent electronic device.
A specific example of the second predetermined time interval is set dynamically for the actual conditions of intelligent electronic device are as follows:
The present embodiment for the external equipment carry out Initialize installation operation during, be provided with the first predetermined time interval it
Afterwards, continue to trigger intelligent electronic device broadcasting pre-set audio signal (the first sound built in such as intelligent electronic device
It is happy), and start timing, after waiting for a period of time (as waited 200 milliseconds), obtain the volume value of the sound obtained by recording
(volume value returned as obtained operating system), and judge whether the volume value is greater than predetermined value (such as 100) and present timing
Whether value reaches another scheduled duration (such as 1 second), if the volume value obtained is no more than predetermined value and present timing value does not reach
To another scheduled duration, then the volume value for the sound that above-mentioned acquisition is obtained by recording is returned to and for volume value and current meter
The step of duration is judged;If volume value is greater than predetermined value or present timing value reaches another scheduled duration, will be upper
The present timing value for stating timing is set as the second predetermined time interval.
By above-mentioned specific example it is found that on the specific value of second predetermined time interval of the present embodiment can be arranged to
A numerical value between the duration of waiting and another scheduled duration is stated, such as minimum value of the second predetermined time interval is 200 millis
Second, and its maximum value is 1 second.
Between S440, volume value of the basis for first predetermined value acquisition and the volume value for second predetermined value acquisition
Compare determining external equipment whether be the identification circuit being provided in above-described embodiment one external equipment.
Specifically, the present embodiment may determine that the average value (i.e. above-mentioned for the calculated volume value of second predetermined value
Two average values) whether reach for the calculated volume value of first predetermined value average value (i.e. above-mentioned first average value) it is another
Prearranged multiple (such as 7 times);If the second average value reaches 7 times of the first average value, it is determined that going out the external equipment is to be provided with
The external equipment for the identification circuit that above-described embodiment one is recorded;If the second average value does not reach 7 times of the first average value,
Determining the external equipment not is the external equipment for being provided with the identification circuit of the record of above-described embodiment one.
The used time of the whole process of the external equipment identification process of the present embodiment is typically not greater than 2 seconds.It is set in smart electronics
In the case where being in mute, the source of sound input that intelligent electronic device is recorded to is relatively low and more stable sound, and
In the case where setting non-mute for intelligent electronic device, when there is music, the source of sound that intelligent electronic device is recorded to is defeated
The volume entered can become larger suddenly;It is verified by test of many times, the ratio for the volume average value that two stages obtain is more than 7 times;It is existing
For some earphones in the case where intelligent electronic device is in mute, the volume for the source of sound input that intelligent electronic device receives is usual
It is all relatively more steady, it is verified by test of many times, the ratio for the volume average value that two stages obtain is no more than 6 times;Therefore, this reality
Example is applied to set by judging that the ratio of the volume average value under different situations can be accurately judged to the external of intelligent electronic device
For external equipments such as example common earphones of the external equipment or other equipment that are provided with above-mentioned identification circuit.
In addition, it is necessary to which explanation, the present embodiment are identifying that external equipment is provided with recorded in above-described embodiment one
Identification circuit external equipment in the case where, should be that the information of invalid earphone is transferred to smart electronics by the external equipment of insertion
Relevant portion in equipment, such as notice operating system or notice application relevant to voice operating;In this way, in operating system
Or related application is when executing operation (such as receiving calls) relevant to voice, can know currently by earphone socket with
The external equipment of intelligent electronic device connection is not earphone, to will do it the behaviour for switching to the built-in microphone of intelligent electronic device
Make, and does not use earphone microphone.When being in an off state due to the switch E1 in above-described embodiment one, intelligent electronic device
The audio signal of output is played by built-in microphone, without being transmitted to recording circuit by earphone socket, headset plug, and
It is back to microphone by recording circuit, headset plug and earphone socket, therefore, is provided with documented by above-described embodiment one
The external equipment of identification circuit will not the operations such as normal talking to intelligent electronic device have an impact.
Embodiment three, the external equipment recognition methods based on earphone socket.Below with reference to Fig. 6 and Fig. 7 to the present embodiment
Device is described in detail.
In Fig. 6, judge that the headset plug of external equipment is inserted into modes such as the notices sent by reception operating system
After the earphone socket of intelligent electronic device, judge that intelligent electronic device is using modes such as the logs for reading intelligent electronic device
It is no to carry out processing (such as conversed or recorded) relevant to voice, if it is determined that go out intelligent electronic device just
Processing relevant to voice is being carried out, then is waiting after treatment relevant to voice, obtains the current sound of intelligent electronic device
Frequency broadcast sound volume, and the present video broadcast sound volume is stored, then, triggering intelligent electronic device executes recording operation;It will be intelligent
The present video broadcast sound volume of electronic equipment is set as 0 (i.e. intelligent electronic device is in mute state), and waits first to make a reservation for
After time interval time1, the volume value for the sound that timing acquisition is obtained by recording, such as once pass through every 70 milliseconds of acquisitions
The volume value for the sound that recording obtains, and volume average value AvgVolume1 is calculated for 10 volume values got;To keep away
Exempting from subsequent arithmetic, there are problems, therefore, in the case where calculated AvgVolume1 is 0, AvgVolume1 can be arranged
It is 1;Later, judge whether AvgVolume1 is more than predetermined volume value 1000, if it exceeds predetermined volume value 1000, it is determined that go out
The external equipment is not the external equipment for being provided with the identification circuit recorded in above-described embodiment one, by intelligent electronic device
After present video broadcast sound volume reverts to the present video broadcast sound volume of above-mentioned storage, this identification process terminates;If
AvgVolume1 is not above predetermined volume value 1000, then continues subsequent judgement operation;Later, working as intelligent electronic device
Preceding audio broadcast sound volume is set as second predetermined value Volume1, and plays the first music built in intelligent electronic device;It is waiting
After second predetermined time interval time2, the volume value for the sound that timing acquisition is obtained by recording, such as obtained every 70 milliseconds
The volume value of the primary sound obtained by recording, and volume average value is calculated for 10 volume values got
AvgVolume2;To avoid subsequent arithmetic, there are problems, therefore, in the case where calculated AvgVolume2 is 0, can incite somebody to action
AvgVolume2 is set as 1;Judge whether the relationship between AvgVolume1 and AvgVolume2 meets AvgVolume2 >
This condition of AvgVolume1*7, if meeting this condition, it is determined that going out the external equipment is to be provided with above-described embodiment one
The present video broadcast sound volume of intelligent electronic device is being reverted to above-mentioned storage by the external equipment of the identification circuit of middle record
After present video broadcast sound volume, this identification process terminates;If being unsatisfactory for this condition, it is determined that going out external equipment is not to set
It is equipped with the external equipment for the identification circuit recorded in above-described embodiment one, by the present video broadcast sound volume of intelligent electronic device
After the present video broadcast sound volume for reverting to 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 carrying out Initialize installation to the external equipment for being provided with above-mentioned identification circuit
Process is arranged.The specific example that the present embodiment carries out the process of initialization apparatus is as shown in Figure 7.
In Fig. 7, in the ear for the headset plug insertion intelligent electronic device that will be provided with the external equipment of above-mentioned identification circuit
After machine transplanting of rice hole, start the respective application in intelligent electronic device, and click the function of initializing in the application;The application can be with
Judge whether intelligent electronic device is carrying out processing relevant to voice using modes such as the logs for reading intelligent electronic device
(be such as playing music or conversed or recorded), if it is determined that go out intelligent electronic device and be playing sound
Happy, then the application initializes again after user can be prompted to close music being played on, if it is determined that goes out intelligence electricity
Sub- equipment is being conversed and is perhaps recording, which can be to be initialized again after user waiting prompt call or End of Tape
Operation;If intelligent electronic device is not carrying out processing relevant to voice, the current sound of intelligent electronic device is obtained
Frequency broadcast sound volume, and the present video broadcast sound volume is stored, then, the present video broadcast sound volume of intelligent electronic device is arranged
It for volume 1 (the minimum level volume such as in 15 grades of volumes in addition to mute), and plays using built-in music 2, is waiting 500
Triggering intelligent electronic device executes recording operation after millisecond, starts timing;After waiting 300 milliseconds, obtain through recording acquisition
The volume value of sound, and judge whether the volume value is greater than 100, and whether the present timing value of timing less than 2 seconds, if obtained
Volume value is no more than 100 and the present timing value of timing was less than 2 seconds, 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 greater 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 predetermined time interval time1, the value of first predetermined time interval time1 is answered
Between 300 milliseconds to 2 seconds;Above-mentioned music 2 is closed, and waits 300 milliseconds;Then, it plays and applies built-in music 1, and open
Beginning timing after waiting 200 milliseconds, obtains the volume value of the sound obtained by recording, and judges whether the volume value is greater than
100, and whether the present timing value of timing less than 1 second, if the volume value obtained is no more than 100 and the present timing value of timing
Less than 1 second, then the volume value and above-mentioned judgement for continuing the sound that above-mentioned acquisition is obtained by recording operated;If the sound obtained
Magnitude is greater than 100 or the present timing value of timing is not less than 1 second, then using the present timing value of timing as the second predetermined time
It is spaced time2, the value of second predetermined time interval time2 should be between 200 milliseconds to 1 second;Above-mentioned music 1 is closed, and
Volume 0 (i.e. mute) is set by the present video broadcast sound volume of intelligent electronic device, then, waits 300 milliseconds, it is then, fixed
When obtain by recording obtain sound volume value, such as every 70 milliseconds obtain once by recording obtain sound sound
Magnitude, and volume average value AvgVolume1 is calculated for multiple (such as 10) volume values got;Later, by smart electronics
The present video broadcast sound volume of equipment is set as volume 1, and plays the first music built in intelligent electronic device;Waiting second
After 200 milliseconds of predetermined time interval, the volume value for the sound that timing acquisition is obtained by recording, such as one is obtained every 70 milliseconds
The volume value of the secondary sound obtained by recording, and volume average value is calculated for multiple (such as 10) volume values got
AvgVolume2;Judge AvgVolume1 and AvgVolume2 whether meet AvgVolume2 > AvgVolume1*9 this
Part sets first predetermined value for above-mentioned volume 1 if meeting this condition, by the present video of intelligent electronic device
After broadcast sound volume reverts to the present video broadcast sound volume of above-mentioned storage, this initialization procedure terminates;If being unsatisfactory for this
Condition then sets volume 2 for the present video broadcast sound volume of intelligent electronic device, and passes through record back to above-mentioned timing acquisition
The volume value for the sound that sound obtains, and calculate volume average value AvgVolume2 and judge AvgVolume1 and AvgVolume2
The step of whether meeting above-mentioned condition;And so on, until the relationship of AvgVolume1 and AvgVolume2 meets
Until this condition of AvgVolume2 > AvgVolume1*9, first predetermined value is set by present video broadcast sound volume, and will
After the present video broadcast sound volume of intelligent electronic device reverts to the present video broadcast sound volume of above-mentioned storage, this was initialized
Journey terminates.
Example IV, the external equipment identification device based on earphone socket.The identification device is set to intelligent electronic device
In, which can be the intelligent electronic device using Andriod operating system (as using Andriod operation system
Intelligent mobile phone or tablet computer of system etc.).
It is described in detail below with reference to device of the Fig. 8 to the present embodiment.
Device shown in Fig. 8 specifically includes that the first setup module 700, first obtains module 710, the second setup module
720, second module 730 and identification module 740 are obtained;In addition, the device can also include: the first initialization module, second
Initialization module and third initialization module (being not shown in Fig. 8).
First setup module 700 is connect with the first acquisition module 710.First setup module 700 is primarily adapted for monitoring
After the earphone socket insertion external equipment of intelligent electronic device, triggering intelligent electronic device recording, and by intelligent electronic device
Present video broadcast sound volume is set as first predetermined value.
Specifically, in order to avoid the external equipment identification process of the present apparatus it is ongoing to intelligent electronic device call or
Person's recording impacts, and the first setup module 700 can be inserted into external equipment in the earphone socket for detecting intelligent electronic device
(the broadcast message as received operating system by registration monitor, to determine intelligent electronic device according to the message received
Earphone socket in insert external equipment) after, detect intelligent electronic device current state (as by reading smart electronics set
The modes such as standby current log judge the current state of intelligent electronic device);If detecting the current of intelligent electronic device
State is the states relevant to voice such as talking state or recording state, then the first setup module 700 should be temporarily without it
The operation of present video broadcast sound volume and triggering recording is set, but waits intelligent electronic device relevant to voice in end
After operating and (such as terminating recording of conversing or terminate), the first setup module 700 starts to execute its setting present video broadcasting again
The operation of volume and triggering recording.
Due to the present apparatus external equipment identification process can the present video broadcast sound volume to intelligent electronic device repair
Change, therefore, the first setup module 700 is answered before executing the present video broadcast sound volume operation that intelligent electronic device is arranged in it
The present video broadcast sound volume of intelligent electronic device is first obtained, and stores the present video broadcast sound volume, in order in identification mould
After block 740 has executed identification operation, the present video broadcast sound volume of intelligent electronic device can also be reverted in external equipment
Audio broadcast sound volume before identification operation.That is, the first setup module 700 formerly stores working as intelligent electronic device
After preceding audio broadcast sound volume, then triggers intelligent electronic device and execute recording operation, and the present video of intelligent electronic device is broadcast
Playback amount is set as first predetermined value.
Above-mentioned first predetermined value can be the volume minimum (i.e. pvw value) of intelligent electronic device, as first predetermined value is
0, that is to say, that the first setup module 700 can set mute state for intelligent electronic device.
Triggering intelligent electronic device execution recording operation that first setup module 700 executes and by intelligent electronic device
Present video broadcast sound volume be set as between the operation of first predetermined value can not no sequencing restriction, such as the first setting mould
Block 700 may be performed simultaneously two operations;For another example the first setup module 700 can first carry out recording operation, then execute first and make a reservation for
The setting of value operates;In addition, the first setup module 700 can also first carry out the setting operation of first predetermined value, then execute recording
Operation.
The operation that first setup module 700 triggers intelligent electronic device execution recording can be by calling intelligent electronic device
Recording function in operating system realizes that the present embodiment do not limit the first setup module 700 triggering intelligent electronic device and execute
The specific implementation of recording operation.
First obtains module 710 other than connecting with the first setup module 700, also connect with identification module 740.First
It obtains module 710 to be primarily adapted in first predetermined value, obtains the volume value of the sound obtained by recording.
Specifically, first obtains module after the first setup module 700 triggering intelligent electronic device executes recording operation
710 need in the case where the present video broadcast sound volume of intelligent electronic device is arranged to first predetermined value, and acquisition passes through record
The volume value for the sound that sound obtains.
First, which obtains module 710, can execute recording operation in triggering intelligent electronic device and wait after a certain period of time, then
Obtain the volume value of the sound obtained by recording.One specific example first triggers smart electronics in the first setup module 700
Equipment executes recording operation, then in the case where the present video broadcast sound volume of intelligent electronic device is arranged, and first obtains module 710
First predetermined value can be set by the present video broadcast sound volume of intelligent electronic device in the first setup module 700, and waited
First predetermined time interval and then execution obtain the operation of the volume value of the sound obtained by recording.
First acquisition module 710 can obtain the volume of multiple sound obtained by recording by the way of timing acquisition
Value, and average value is calculated to this multiple volume value, which is mainly used for subsequent 740 institute of identification module
The comparison procedure of execution, the calculated volume average value can be referred to as the first volume average value.
When the first acquisition module 710 calculates the first volume average value, identification module 740 may determine that first volume
Whether average value is greater than predetermined volume value (such as 1000), if the first volume average value is greater than predetermined volume value (such as larger than
1000) it is the outer of the identification circuit being provided in above-described embodiment one that, then identification module 740, which can determine the external equipment not,
Equipment is connect, the identification process of this external equipment terminates;If the first volume average value (is such as less than equal to no more than predetermined value
1000), then the device of the present embodiment should continue to execute subsequent step.
Above-mentioned predetermined volume value (such as 1000), which can be, to be rule of thumb pre-set in intelligent electronic device;In addition,
Above-mentioned first predetermined time interval, which can be, to be rule of thumb pre-set in intelligent electronic device, is also possible to purposive
The actual conditions for intelligent electronic device and be dynamically placed in intelligent electronic device.
A specific example of the first predetermined time interval is set dynamically for the actual conditions of intelligent electronic device are as follows: set
The present video broadcast sound volume for determining intelligent electronic device can be the volume that user can manually adjust by modes such as keys, example
Such as, 15 grades of (Andriod behaviour are divided by the volume that the modes such as key manually adjust for user in intelligent electronic device
Make system intelligent mobile phone have 15 grades of volumes for user's manual setting) this 15 grades can be hereinafter referred to as volume 0
To volume 14, volume 0 therein indicates mute;According to the putting in order to volume 14 of volume 1, volume 1 to volume 14 is respectively right
The sound answered is gradually increased, and the corresponding sound of volume 14 is maximum.In the case where present video broadcast sound volume is above situation, first is pre-
Fix time interval specific setting up procedure include: firstly, intelligent electronic device for the first time with the present embodiment have above-mentioned identification
In the case that the external equipment of circuit is connected by headset plug and earphone socket, the present apparatus can for the external equipment into
The operation of row Initialize installation, specifically, the first initialization module is after the present video broadcast sound volume of backup intelligence electronic equipment,
Set the present video broadcast sound volume of intelligent electronic device to the minimum level volume (i.e. above-mentioned volume 1) in addition to mute;So
Afterwards, it is (built-in in such as intelligent electronic device to execute the audio signal for playing and being locally stored for the first initialization module triggering electronic equipment
The second music) operation, and start timing;It is waiting for a period of time after (such as 500 milliseconds), the first initialization module triggers intelligence
Can electronic equipment record, later, waiting for a period of time after (such as 300 milliseconds), the acquisition of the first initialization module passes through record
The volume value (volume value returned as obtained operating system) for the sound that sound obtains, and judge whether the volume value is greater than predetermined value
Whether (such as 100) and present timing value reach scheduled duration (such as 2 seconds), if the volume value obtained is no more than predetermined value and works as
Preceding clocking value does not reach scheduled duration, then the first initialization module returns to the volume for the sound that above-mentioned acquisition is obtained by recording
Value and the step of judged for volume value and present timing value;If volume value is greater than predetermined value or present timing value
Reach scheduled duration, then the present timing value of above-mentioned timing is set the first predetermined time interval by the first initialization module.
By above-mentioned specific example it is found that the specific value of first predetermined time interval of the present embodiment can be initial by first
Change module and be set as a numerical value between the duration and scheduled duration of above-mentioned waiting, the minimum of such as the first predetermined time interval takes
Value is 300 milliseconds, and its maximum value is 2 seconds.
In addition, in practical applications, intelligent electronic device can be manually adjusted for what user provided by modes such as keys
Volume it is perhaps more or less, in order to adapt to different types of intelligent electronic device, the smart electronics in the present embodiment are set
Standby present video broadcast sound volume can not be the volume that user can manually adjust by key etc., a specific example,
The maximum broadcast sound volume of intelligent electronic device is divided into 15 grades by the first initialization module, such as calculates maximum broadcast sound volume/15, the
The present video broadcast sound volume of intelligent electronic device is arranged according to the volume values at different levels after above-mentioned division for one initialization module.
Second setup module 720 is connect with the second acquisition module 730.Second setup module 720 is primarily adapted for intelligent electricity
The present video broadcast sound volume of sub- equipment is set as second predetermined value.
Specifically, successfully obtaining the sound obtained by recording obtaining module 710 for first predetermined value first
After volume value, the second setup module 720 sets second for the present video broadcast sound volume adjustment of intelligent electronic device and makes a reservation for
Value, and second predetermined value is greater than first predetermined value.
Above-mentioned second predetermined value, which can be, to be rule of thumb pre-set in intelligent electronic device, is also possible to purposeful
The actual conditions for intelligent electronic device of property and be dynamically placed in intelligent electronic device.
For intelligent electronic device actual conditions and a specific example of second predetermined value is set dynamically are as follows: setting the
One predetermined value is 0 (i.e. intelligent electronic device is in mute state), and third initialization module is by the current sound of intelligent electronic device
Frequency broadcast sound volume is set as first predetermined value, the volume value for the sound that third initialization module timing acquisition is obtained by recording
(volume value returned as obtained operating system), and average value is calculated for the multiple volume values (such as 10 volume values) got
(being denoted as the first average value);Third initialization module triggers intelligent electronic device and plays local pre-stored audio signal (such as
Play first music), and volume 1 is set (such as in addition to mute most for the present video broadcast sound volume of intelligent electronic device
Small grade volume);Then, the volume value for the sound that third initialization module timing acquisition is obtained by recording is (as obtained operation system
The volume value that system returns), and calculate average value for the multiple volume values (such as 10 volume values) got and (it is average to be denoted as second
Value), later, third initialization module judges whether the second average value is that (prearranged multiple is answered for the prearranged multiple of the first average value
Greater than 7 times, 9 times can be such as used), if the second average value does not reach the prearranged multiple of the first average value, third is initial
Change module and set volume 2 for the present video broadcast sound volume of intelligent electronic device, and is obtained back to timing acquisition by recording
The volume value of the sound obtained simultaneously calculates average value (being denoted as the second average value) and judgement times for the multiple volume values got
Several steps;If the second average value reaches the prearranged multiple of the first average value, third initialization module sets smart electronics
Standby present video broadcast sound volume is determined as second predetermined value.
Second obtains module 730 other than connecting with the second setup module 720, also connect with identification module 740.Second
It obtains module 730 to be primarily adapted for playing predetermined audio signal, and in second predetermined value, obtains the sound obtained by recording
The volume value of sound.
Specifically, the second acquisition module 730 is needed in the present video broadcast sound volume of intelligent electronic device by the second setting
In the case that the adjustment of module 720 is set as second predetermined value, the volume value of the sound obtained by recording is obtained.
Second acquisition module 730 can play the predetermined audio signal being locally stored (such as intelligence electricity in intelligent electronic device
Built-in first music in sub- equipment), and after the second predetermined time interval of waiting, it executes and obtains the sound for passing through recording acquisition
The operation of volume value.
Second acquisition module 730 can obtain the volume of multiple sound obtained by recording by the way of timing acquisition
It is worth (such as 10 volume values), and the multiple volume values got is calculated average value (being denoted as the second average value), second obtains
The calculated volume average value of module 730 is used for the comparison procedure of subsequent identification module 740.
Above-mentioned second predetermined time interval is set in advance in intelligent electronic device, and second predetermined time interval
It can be and be rule of thumb pre-set in intelligent electronic device, be also possible to purposive for intelligent electronic device
Actual conditions and be dynamically placed in intelligent electronic device.
A specific example of the second predetermined time interval is set dynamically for the actual conditions of intelligent electronic device are as follows:
During the device of the present embodiment carries out Initialize installation operation for the external equipment, it is provided in the first initialization module
After first predetermined time interval, the second initialization module triggers intelligent electronic device and plays pre-set audio signal (such as
Built-in first music in intelligent electronic device), and start timing, after waiting for a period of time (as waited 200 milliseconds), second
Initialization module obtains the volume value (volume value returned as obtained operating system) of the sound obtained by recording, and judging should
Whether volume value is greater than predetermined value (such as 100) and whether present timing value reaches another scheduled duration (such as 1 second), if second
The volume value that initialization module obtains is no more than predetermined value and present timing value does not reach another scheduled duration, then second is initial
Change module to return to the volume value for the sound that above-mentioned acquisition is obtained by recording and sentenced for volume value and present timing value
Disconnected step;If volume value is greater than predetermined value or present timing value reaches another scheduled duration, the second initialization module
The second predetermined time interval is set by the present timing value of above-mentioned timing.
By above-mentioned specific example it is found that the specific value of second predetermined time interval of the present embodiment can be initial by second
Change module and be set as a numerical value between the duration of above-mentioned waiting and another scheduled duration, such as the second predetermined time interval is most
Small value is 200 milliseconds, and its maximum value is 1 second.
Identification module 740 is primarily adapted for being obtained according to the volume value obtained for first predetermined value with for second predetermined value
Volume value between comparison determine whether external equipment is to be provided with the external of documented identification circuit in embodiment one to set
It is standby.
Specifically, identification module 740 may determine that the second acquisition module 730 for the calculated volume value of second predetermined value
Average value (i.e. above-mentioned second average value) whether reach the first acquisition module 710 for the calculated volume value of first predetermined value
Average value (i.e. above-mentioned first average value) another prearranged multiple (such as 7 times);If the second average value reaches the first average value
7 times, then identification module 740 determine the external equipment be provided with above-described embodiment one record the external of identification circuit set
It is standby;If the second average value does not reach 7 times of the first average value, identification module 740 determines that the external equipment is not to set
It is equipped with the external equipment of the identification circuit of the record of above-described embodiment one.
The present apparatus is typically not greater than the used time of the whole process of the identification process of external equipment 2 seconds.It is set in smart electronics
In the case where being in mute, the source of sound input that intelligent electronic device is recorded to is relatively low and more stable sound, and
In the case where setting non-mute for intelligent electronic device, when there is music, the source of sound that intelligent electronic device is recorded to is defeated
The volume entered can become larger suddenly;It is verified by test of many times, the ratio for the volume average value that two stages obtain is more than 7 times;It is existing
For some earphones in the case where intelligent electronic device is in mute, the volume for the source of sound input that intelligent electronic device receives is usual
It is all relatively more steady, it is verified by test of many times, the ratio for the volume average value that two stages obtain is no more than 6 times;Therefore, this dress
It sets by judging that the ratio of the volume average value under different situations can be accurately judged to the external equipment of intelligent electronic device
It is provided with the external equipments such as external equipment or for example common earphone of other equipment of above-mentioned identification circuit.
In addition, it is necessary to which explanation, identification module 740 are identifying that external equipment is to be provided with above-described embodiment one to be remembered
It should be that the information of invalid earphone is transferred to intelligent electricity by the external equipment of insertion in the case where the external equipment of the identification circuit of load
Relevant portion in sub- equipment, such as identification module 740 notify operating system or notice application relevant to voice operating;This
Sample can be known current in operating system or related application when executing operation (such as receiving calls) relevant to voice
It is not earphone by the external equipment that earphone socket is connect with intelligent electronic device, switches to intelligent electronic device to will do it
Built-in microphone operation, and do not use earphone microphone.Since the switch E1 in above-described embodiment one is in an off state
When, the audio signal of intelligent electronic device output is played by built-in microphone, without passing by earphone socket, headset plug
Recording circuit is transported to, and microphone is back to by recording circuit, headset plug and earphone socket, therefore, is provided with above-mentioned
The external equipment of identification circuit documented by embodiment one will not the operations such as normal talking to intelligent electronic device have an impact.
In Fig. 9, the external equipment identifying system based on earphone socket specifically includes that external equipment 800 and smart electronics
Equipment 810;Wherein, the external equipment documented by above-described embodiment one based on earphone socket is provided in external equipment 800 to know
Other circuit is provided with the external equipment identification documented by above-described embodiment three based on earphone socket in intelligent electronic device 810
Device, and external equipment 800 is connect by headset plug with intelligent electronic device.
The specific structure of identification circuit in external equipment 800 such as the record in above-described embodiment one, intelligent electronic device
The structure of identification device in 810 such as the record in above-described embodiment two, operation performed by identification device may refer to above-mentioned
Record in embodiment two and embodiment three, this will not be repeated here.
A1, a kind of external equipment identification circuit based on earphone socket comprising: headset plug and recording circuit;
The headset plug has sound channel connecting pin, microphone connecting pin and ground terminal;
The recording circuit has the first connecting pin, second connection end and third connecting pin;
Wherein, first connecting pin is connect with the sound channel connecting pin, and the second connection end and the microphone connect
End connection is connect, the third connecting pin is connect with the ground terminal;
The recording circuit is set by the earphone socket in the headset plug and intelligent electronic device with smart electronics
Microphone connection in standby, and the recording circuit and headset plug, earphone socket and the microphone are formed together microphone
Circuit.
A2, circuit as described in a1, wherein the microphone circuit includes: capacitor microphone circuit.
A3, as described in A2 circuit, wherein the recording circuit includes: first capacitor, first resistor and second resistance;
One end of the first capacitor is that first connecting pin, the other end and the first resistor and second resistance are distinguished
Connection, and the first capacitor is connected respectively with first resistor and second resistance;
One end of the first resistor is the second connection end, and the other end is connect with the first capacitor;
One end of the second resistance is the third connecting pin, and the other end is connect with the first capacitor;
The first resistor and second resistance are in parallel.
A4, as described in A2 circuit, wherein the recording circuit includes: 3rd resistor, third capacitor and the 4th capacitor;
One end of the 3rd resistor is that first connecting pin, the other end and the third capacitor and the 4th capacitor are distinguished
Connection, and the first resistor is connected respectively with third capacitor and the 4th capacitor;
One end of the third capacitor is the second connection end, and the other end is connect with the 3rd resistor;
One end of 4th capacitor is the third connecting pin, and the other end is connect with the 3rd resistor;
The third capacitor and the 4th capacitor are in parallel.
A5, as described in A2 circuit, wherein the recording circuit includes: the 4th resistance, the 5th resistance and the 6th resistance;
One end of 4th capacitor is that first connecting pin, the other end and the 5th resistance and the 6th resistance are distinguished
Connection, and the 4th resistance is connected respectively with the 5th resistance and the 6th resistance;
One end of 5th resistance is the second connection end, and the other end is connect with the 6th resistance;
One end of 6th resistance is the third connecting pin, and the other end is connect with the 5th resistance;
5th resistance and the 6th resistor coupled in parallel.
A6, A1 into A5 it is any as described in circuit, wherein the recording circuit further include: switch, and switch series
It connects between second connection end and third connecting pin.
A7, A1 into A5 it is any as described in circuit, wherein the sound channel connecting pin includes: L channel connecting pin and the right side
Sound channel connecting pin, and first connecting pin is connect with the L channel connecting pin and/or right channel connecting pin.
B8, a kind of external equipment recognition methods based on earphone socket comprising:
After the earphone socket for monitoring intelligent electronic device is inserted into external equipment, triggering intelligent electronic device recording, and
First predetermined value is set by the present video broadcast sound volume of the intelligent electronic device;
In the first predetermined value, the volume value of the sound obtained by recording is obtained;
Second predetermined value is set by the present video broadcast sound volume of the intelligent electronic device;
Predetermined audio signal is played, and in the second predetermined value, obtains the sound of the sound obtained by recording
Magnitude;
According to the volume value obtained for first predetermined value compared between the volume value obtained for second predetermined value
Determine the external equipment whether be provided with recording circuit and headset plug external equipment, and the recording circuit with it is described
The earphone socket and microphone of headset plug and the intelligent electronic device are formed together microphone circuit.
B9, the method as described in B8, wherein described to set the present video broadcast sound volume of the intelligent electronic device to
First predetermined value includes:
It obtains the present video broadcast sound volume of intelligent electronic device and stores, then, by working as the intelligent electronic device
Preceding audio broadcast sound volume is set as first predetermined value;
And the method also includes:
After identifying external equipment, the storage is set by the present video broadcast sound volume of the intelligent electronic device
Present video broadcast sound volume.
B10, the method as described in B8, wherein it is described in the first predetermined value, it obtains through recording acquisition
The volume value of sound includes:
First predetermined value is being set by the present video broadcast sound volume of the intelligent electronic device, and is waiting first to make a reservation for
After time interval, the volume value of the sound obtained by recording is obtained.
B11, the method as described in B10, wherein first predetermined time interval is arranged by following manner:
Set the present video broadcast sound volume of the intelligent electronic device to the minimum level volume value in addition to mute;
Playing audio signal, triggering intelligent electronic device recording, and start timing;
The volume value for the sound that monitoring is obtained by recording is greater than the feelings of predetermined volume value in the volume value monitored
Under condition, using present timing value as first predetermined time interval.
B12, the method as described in B8, wherein it is described in the second predetermined value, it obtains through recording acquisition
The volume value of sound includes:
Predetermined audio signal is being played, and after the second predetermined time interval of waiting, is obtaining the sound obtained by recording
Volume value.
B13, as described in B12 method, wherein second predetermined time interval is arranged by following manner:
Set the present video broadcast sound volume of the intelligent electronic device to the minimum level volume value in addition to mute;
The predetermined audio signal, triggering intelligent electronic device recording are played, and starts timing;
The volume value for the sound that monitoring is obtained by recording is greater than the feelings of predetermined volume value in the volume value monitored
Under condition, using present timing value as second predetermined time interval.
B14, B8 into B13 it is any as described in method, wherein it is described obtain by recording obtain sound volume value
Include:
The volume value that the operating system of timing acquisition intelligent electronic device returns, and for the sound of the predetermined quantity got
Magnitude calculation average value.
B15, the method as described in B14, wherein the basis is for the volume value of first predetermined value acquisition and for second
The comparison between volume value that predetermined value obtains determines whether the external equipment is to be provided with recording circuit and headset plug
External equipment includes:
Judgement is calculated for whether the average value of the calculated volume value of second predetermined value reaches for first predetermined value
Seven times of average value of volume value;
If reaching seven times, it is determined that the external equipment is the external equipment for being provided with the identification circuit;
If not reaching seven times, it is determined that the external equipment is not the external equipment for being provided with the identification circuit.
B16, the method as described in B15, wherein the first predetermined value is 0, and the second predetermined value passes through following sides
Formula setting:
First predetermined value is set by the present video broadcast sound volume of the intelligent electronic device, obtains and is obtained by recording
Sound volume value, and calculate average value for the volume value of predetermined quantity got;
Play predetermined audio signal;
Present video broadcast sound volume is adjusted to next stage volume value, obtains the volume value of the sound obtained by recording,
And average value is calculated for the volume value of the predetermined quantity got;
Whether judgement reaches for the average value of the calculated volume value of present video broadcast sound volume adjusted for the
The prearranged multiple of the average value of the calculated volume value of one predetermined value, wherein the prearranged multiple is greater than seven times;
If reaching prearranged multiple, using the present video broadcast sound volume adjusted as the second predetermined value;
If not reaching prearranged multiple, present video broadcast sound volume is adjusted to next stage volume value back to described
The step of.
B17, the method as described in B15, wherein the method also includes:
In the case where determining that the average value for the calculated volume value of first predetermined value is more than predetermined threshold, determine
The external equipment is not the external equipment for being provided with the identification circuit.
B18, the method as described in B8, wherein the external equipment is to be provided with any identification circuit in A1-A7
External equipment.
C19, a kind of external equipment identification device based on earphone socket comprising:
First setup module, suitable for triggering intelligence after the earphone socket for monitoring intelligent electronic device is inserted into external equipment
Energy electronic equipment recording, and first predetermined value is set by the present video broadcast sound volume of the intelligent electronic device;
First obtains module, is suitable in the first predetermined value, obtains the volume of the sound obtained by recording
Value;
Second setup module makes a reservation for suitable for setting second for the present video broadcast sound volume of the intelligent electronic device
Value;
Second obtains module, is suitable for playing predetermined audio signal, and in the second predetermined value, acquisition passes through record
The volume value for the sound that sound obtains;
Identification module, suitable for according to the volume value obtained for first predetermined value and the volume obtained for second predetermined value
Comparison between value determines whether the external equipment is the external equipment for being provided with recording circuit and headset plug, and the record
The earphone socket and microphone of sound circuit and the headset plug and the intelligent electronic device are formed together microphone circuit.
C20, the device as described in C19, wherein the present video broadcast sound volume by the intelligent electronic device is arranged
Include: for first predetermined value
It obtains the present video broadcast sound volume of intelligent electronic device and stores, then, by working as the intelligent electronic device
Preceding audio broadcast sound volume is set as first predetermined value;
And the identification module is further adapted for:
After identifying external equipment, the storage is set by the present video broadcast sound volume of the intelligent electronic device
Present video broadcast sound volume.
C21, the device as described in C19, wherein it is described in the first predetermined value, it obtains and is obtained by recording
The volume value of sound include:
First predetermined value is being set by the present video broadcast sound volume of the intelligent electronic device, and is waiting first to make a reservation for
After time interval, the volume value of the sound obtained by recording is obtained.
C22, the device as described in C21, wherein described device further include:
First initialization module, suitable for by the present video broadcast sound volume of the intelligent electronic device be set as except it is mute it
Outer minimum level volume value;Playing audio signal, triggering intelligent electronic device recording, and start timing;Monitoring is obtained by recording
Sound volume value, the volume value monitored be greater than predetermined volume value in the case where, using present timing value as
First predetermined time interval.
C23, the device as described in C19, wherein it is described in the second predetermined value, it obtains and is obtained by recording
The volume value of sound include:
Predetermined audio signal is being played, and after the second predetermined time interval of waiting, is obtaining the sound obtained by recording
Volume value.
C24, the device as described in C23, wherein described device further include:
Second initialization module, suitable for by the present video broadcast sound volume of the intelligent electronic device be set as except it is mute it
Outer minimum level volume value;The predetermined audio signal, triggering intelligent electronic device recording are played, and starts timing;Monitoring is logical
The volume value for crossing the sound that recording obtains will be counted currently in the case where the volume value monitored is greater than predetermined volume value
Duration is as second predetermined time interval.
C25, C19 into C24 it is any as described in device, wherein it is described obtain by recording obtain sound volume
Value includes:
The volume value that the operating system of timing acquisition intelligent electronic device returns, and for the sound of the predetermined quantity got
Magnitude calculation average value.
C26, the device as described in C25, wherein the basis is for the volume value of first predetermined value acquisition and for second
The comparison between volume value that predetermined value obtains determines whether the external equipment is to be provided with recording circuit and headset plug
External equipment includes:
Judgement is calculated for whether the average value of the calculated volume value of second predetermined value reaches for first predetermined value
Seven times of average value of volume value;
If reaching seven times, it is determined that the external equipment is the external equipment for being provided with the identification circuit;
If not reaching seven times, it is determined that the external equipment is not the external equipment for being provided with the identification circuit.
C27, the device as described in C26, wherein the first predetermined value is 0, and the device further include:
Third initialization module makes a reservation for suitable for setting first for the present video broadcast sound volume of the intelligent electronic device
Value obtains the volume value of the sound obtained by recording, and calculates average value for the volume value of the predetermined quantity got;It broadcasts
Put predetermined audio signal;Present video broadcast sound volume is adjusted to next stage volume value, obtains the sound obtained by recording
Volume value, and average value is calculated for the volume value of the predetermined quantity got;
Whether judgement reaches for the average value of the calculated volume value of present video broadcast sound volume adjusted for the
The prearranged multiple of the average value of the calculated volume value of one predetermined value, wherein the prearranged multiple is greater than seven times;
If reaching prearranged multiple, using the present video broadcast sound volume adjusted as the second predetermined value;
If not reaching prearranged multiple, present video broadcast sound volume is adjusted to next stage volume value back to described
The step of.
C28, the device as described in C26, wherein the identification module is further adapted for:
In the case where determining that the average value for the calculated volume value of first predetermined value is more than predetermined threshold, determine
The external equipment is not the external equipment for being provided with the identification circuit.
C29, the device as described in C19, wherein the external equipment is to be provided with any identification electricity in A1-A7
The external equipment on road.
D30, a kind of external equipment identifying system based on earphone socket comprising: external equipment and smart electronics are set
It is standby;
Any identification circuit in A1-A7 is provided in the external equipment;
Any external equipment identification based on earphone socket in C19-C29 is provided in the intelligent electronic device
Device.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein.
Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system
Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various
Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment
Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any
Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed
All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention
Within the scope of and form different embodiments.Such as in the following claims, embodiment claimed is any
One of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors
Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice
Microprocessor or digital signal processor (DSP) realize the external equipment according to an embodiment of the present invention based on earphone socket
Some or all components in identification device and external equipment identifying system based on earphone socket it is some or all
Function.The present invention is also implemented as some or all equipment or device for executing method as described herein
Program (such as computer program and computer program product).It is such to realize that program of the invention can store computer-readable
On medium, or it may be in the form of one or more signals.Such signal can be downloaded from an internet website
It arrives, is perhaps provided on the carrier signal or is provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and this
Field technical staff can be designed alternative embodiment without departing from the scope of the appended claims.In claim
In, any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" is not excluded for depositing
In element or step not listed in the claims.Word "a" or "an" located in front of the element do not exclude the presence of it is multiple this
The element of sample.The present invention can by means of include several different elements hardware and by means of properly programmed computer come
It realizes.In the unit claims listing several devices, several in these devices can be through the same hardware
It embodies.The use of word first, second and third etc. does not indicate any sequence.These words can be explained and be run after fame
Claim.
Claims (27)
1. a kind of external equipment recognition methods based on earphone socket comprising:
After the earphone socket for monitoring intelligent electronic device is inserted into external equipment, triggering intelligent electronic device recording, and by institute
The present video broadcast sound volume for stating intelligent electronic device is set as first predetermined value;
In the first predetermined value, the volume value of the sound obtained by recording is obtained;
Second predetermined value is set by the present video broadcast sound volume of the intelligent electronic device;
Predetermined audio signal is played, and in the second predetermined value, obtains the volume value of the sound obtained by recording;
It is determined compared between the volume value obtained for second predetermined value according to the volume value obtained for first predetermined value
The external equipment whether be provided with recording circuit and headset plug external equipment, wherein the recording circuit for
Microphone in headset plug, earphone socket and intelligent electronic device is formed together microphone circuit.
2. the method for claim 1, wherein the present video broadcast sound volume by the intelligent electronic device is arranged
Include: for first predetermined value
It obtains the present video broadcast sound volume of intelligent electronic device and stores, then, by the current sound of the intelligent electronic device
Frequency broadcast sound volume is set as first predetermined value;
And the method also includes:
After identifying external equipment, the current of the storage is set by the present video broadcast sound volume of the intelligent electronic device
Audio broadcast sound volume.
3. it is the method for claim 1, wherein described in the first predetermined value, it obtains and is obtained by recording
The volume value of sound include:
First predetermined value is being set by the present video broadcast sound volume of the intelligent electronic device, and was waiting for the first predetermined time
Behind interval, the volume value of the sound obtained by recording is obtained.
4. method as claimed in claim 3, wherein first predetermined time interval is arranged by following manner:
Set the present video broadcast sound volume of the intelligent electronic device to the minimum level volume value in addition to mute;
Playing audio signal, triggering intelligent electronic device recording, and start timing;
The volume value for the sound that monitoring is obtained by recording, the case where the volume value monitored is greater than predetermined volume value
Under, using present timing value as first predetermined time interval.
5. it is the method for claim 1, wherein described in the second predetermined value, it obtains and is obtained by recording
The volume value of sound include:
Predetermined audio signal is being played, and after the second predetermined time interval of waiting, is obtaining the volume of the sound obtained by recording
Value.
6. method as claimed in claim 5, wherein second predetermined time interval is arranged by following manner:
Set the present video broadcast sound volume of the intelligent electronic device to the minimum level volume value in addition to mute;
The predetermined audio signal, triggering intelligent electronic device recording are played, and starts timing;
The volume value for the sound that monitoring is obtained by recording, the case where the volume value monitored is greater than predetermined volume value
Under, using present timing value as second predetermined time interval.
7. the method as described in any claim in claim 1 to 6, wherein described to obtain the sound obtained by recording
Volume value include:
The volume value that the operating system of timing acquisition intelligent electronic device returns, and for the volume value of the predetermined quantity got
Calculate average value.
8. the method for claim 7, wherein the basis is for the volume value of first predetermined value acquisition and for second
The comparison between volume value that predetermined value obtains determines whether the external equipment is to be provided with recording circuit and headset plug
External equipment includes:
Whether judgement reaches for the average value of the calculated volume value of second predetermined value for the calculated sound of first predetermined value
Seven times of the average value of magnitude;
If reaching seven times, it is determined that the external equipment is the external equipment for being provided with recording circuit and headset plug;
If not reaching seven times, it is determined that the external equipment is not to be provided with recording circuit and headset plug external equipment.
9. method according to claim 8, wherein the first predetermined value is 0, and the second predetermined value passes through following sides
Formula setting:
First predetermined value is set by the present video broadcast sound volume of the intelligent electronic device, obtains the sound obtained by recording
The volume value of sound, and average value is calculated for the volume value of the predetermined quantity got;
Play predetermined audio signal;
Present video broadcast sound volume is adjusted to next stage volume value, obtains the volume value of the sound obtained by recording, and needle
Average value is calculated to the volume value of the predetermined quantity got;
Whether judgement reaches pre- for first for the average value of the calculated volume value of present video broadcast sound volume adjusted
The prearranged multiple of the average value for the volume value that fixed value calculation goes out, wherein the prearranged multiple is greater than seven times;
If reaching prearranged multiple, using the present video broadcast sound volume adjusted as the second predetermined value;
If not reaching prearranged multiple, the step that present video broadcast sound volume is adjusted to next stage volume value is returned to
Suddenly.
10. method according to claim 8, wherein the method also includes:
In the case where determining that the average value for the calculated volume value of first predetermined value is more than predetermined threshold, described in determination
External equipment is not the external equipment for being provided with the recording circuit and headset plug.
11. a kind of external equipment identification circuit based on earphone socket comprising: headset plug and recording circuit;
The headset plug has sound channel connecting pin, microphone connecting pin and ground terminal;
The recording circuit has the first connecting pin, second connection end and third connecting pin;
Wherein, first connecting pin is connect with the sound channel connecting pin, the second connection end and the microphone connecting pin
Connection, the third connecting pin is connect with the ground terminal;
The recording circuit passes through in the earphone socket and intelligent electronic device in the headset plug and intelligent electronic device
Microphone connection;
The recording circuit further include: switch, and the switch is serially connected between second connection end and third connecting pin, when described
When switch disconnects, the recording circuit is together with the microphone in the headset plug, earphone socket and intelligent electronic device
Formed microphone circuit, when the switch is closed, the recording circuit no longer with the microphone shape in the intelligent electronic device
At microphone circuit.
12. circuit as claimed in claim 11, wherein the microphone circuit includes: capacitor microphone circuit.
13. circuit as claimed in claim 12, wherein the recording circuit includes: first capacitor, first resistor and the second electricity
Resistance;
One end of the first capacitor is first connecting pin, and the other end connects respectively with the first resistor and second resistance
It connects, and the first capacitor is connected respectively with first resistor and second resistance;
One end of the first resistor is the second connection end, and the other end is connect with the first capacitor;
One end of the second resistance is the third connecting pin, and the other end is connect with the first capacitor;
The first resistor and second resistance are in parallel.
14. circuit as claimed in claim 12, wherein the recording circuit includes: 3rd resistor, third capacitor and the 4th electricity
Hold;
One end of the 3rd resistor is first connecting pin, and the other end connects respectively with the third capacitor and the 4th capacitor
It connects, and the 3rd resistor is connected respectively with third capacitor and the 4th capacitor;
One end of the third capacitor is the second connection end, and the other end is connect with the 3rd resistor;
One end of 4th capacitor is the third connecting pin, and the other end is connect with the 3rd resistor;
The third capacitor and the 4th capacitor are in parallel.
15. circuit as claimed in claim 12, wherein the recording circuit includes: the 4th resistance, the 5th resistance and the 6th electricity
Resistance;
One end of 4th resistance is first connecting pin, and the other end connects respectively with the 5th resistance and the 6th resistance
It connects, and the 4th resistance is connected respectively with the 5th resistance and the 6th resistance;
One end of 5th resistance is the second connection end, and the other end is connect with the 6th resistance;
One end of 6th resistance is the third connecting pin, and the other end is connect with the 5th resistance;
5th resistance and the 6th resistor coupled in parallel.
16. the circuit as described in any claim in claim 11 to 15, wherein the sound channel connecting pin includes: left sound
Road connecting pin and right channel connecting pin, and first connecting pin and the L channel connecting pin and/or right channel connecting pin connect
It connects.
17. a kind of external equipment identification device based on earphone socket comprising:
First setup module, suitable for after the earphone socket for monitoring intelligent electronic device is inserted into external equipment, triggering intelligence electricity
Sub- equipment recording, and first predetermined value is set by the present video broadcast sound volume of the intelligent electronic device;
First obtains module, is suitable in the first predetermined value, obtains the volume value of the sound obtained by recording;
Second setup module, suitable for setting second predetermined value for the present video broadcast sound volume of the intelligent electronic device;
Second obtains module, is suitable for playing predetermined audio signal, and in the second predetermined value, obtains and obtained by recording
The volume value of the sound obtained;
Identification module, suitable for according to for first predetermined value obtain volume value with for second predetermined value obtain volume value it
Between comparison determine the external equipment whether be provided with recording circuit and headset plug external equipment, wherein the record
Sound circuit is used to be formed together microphone circuit with the microphone in headset plug, earphone socket and intelligent electronic device.
18. device as claimed in claim 17, wherein described to set the present video broadcast sound volume of the intelligent electronic device
Being set to first predetermined value includes:
It obtains the present video broadcast sound volume of intelligent electronic device and stores, then, by the current sound of the intelligent electronic device
Frequency broadcast sound volume is set as first predetermined value;
And the identification module is further adapted for:
After identifying external equipment, the current of the storage is set by the present video broadcast sound volume of the intelligent electronic device
Audio broadcast sound volume.
19. device as claimed in claim 17, wherein it is described in the first predetermined value, it obtains and is obtained by recording
The volume value of sound include:
First predetermined value is being set by the present video broadcast sound volume of the intelligent electronic device, and was waiting for the first predetermined time
Behind interval, the volume value of the sound obtained by recording is obtained.
20. device as claimed in claim 19, wherein described device further include:
First initialization module, suitable for setting the present video broadcast sound volume of the intelligent electronic device in addition to mute
Minimum level volume value;Playing audio signal, triggering intelligent electronic device recording, and start timing;Monitoring is obtained by recording
The volume value of sound, in the case where the volume value monitored is greater than predetermined volume value, using present timing value as described in
First predetermined time interval.
21. device as claimed in claim 17, wherein it is described in the second predetermined value, it obtains and is obtained by recording
The volume value of sound include:
Predetermined audio signal is being played, and after the second predetermined time interval of waiting, is obtaining the volume of the sound obtained by recording
Value.
22. device as claimed in claim 21, wherein described device further include:
Second initialization module, suitable for setting the present video broadcast sound volume of the intelligent electronic device in addition to mute
Minimum level volume value;The predetermined audio signal, triggering intelligent electronic device recording are played, and starts timing;Monitoring passes through record
The volume value for the sound that sound obtains, in the case where the volume value monitored is greater than predetermined volume value, by present timing value
As second predetermined time interval.
23. the device as described in any claim in claim 17 to 22, wherein described to obtain the sound obtained by recording
The volume value of sound includes:
The volume value that the operating system of timing acquisition intelligent electronic device returns, and for the volume value of the predetermined quantity got
Calculate average value.
24. device as claimed in claim 23, wherein the volume value that the basis is obtained for first predetermined value with for the
The comparison between volume value that two predetermined values obtain determines whether the external equipment is to be provided with recording circuit and headset plug
External equipment include:
Whether judgement reaches for the average value of the calculated volume value of second predetermined value for the calculated sound of first predetermined value
Seven times of the average value of magnitude;
If reaching seven times, it is determined that the external equipment is the external equipment for being provided with recording circuit and headset plug;
If not reaching seven times, it is determined that the external equipment be not be provided with recording circuit and the external of headset plug set
It is standby.
25. device as claimed in claim 24, wherein the first predetermined value is 0, and the device further include:
Third initialization module, suitable for setting first predetermined value for the present video broadcast sound volume of the intelligent electronic device,
The volume value of the sound obtained by recording is obtained, and calculates average value for the volume value of the predetermined quantity got;It plays
Predetermined audio signal;Present video broadcast sound volume is adjusted to next stage volume value, obtains the sound of the sound obtained by recording
Magnitude, and average value is calculated for the volume value of the predetermined quantity got;
Whether judgement reaches pre- for first for the average value of the calculated volume value of present video broadcast sound volume adjusted
The prearranged multiple of the average value for the volume value that fixed value calculation goes out, wherein the prearranged multiple is greater than seven times;
If reaching prearranged multiple, using the present video broadcast sound volume adjusted as the second predetermined value;
If not reaching prearranged multiple, the step that present video broadcast sound volume is adjusted to next stage volume value is returned to
Suddenly.
26. device as claimed in claim 24, wherein the identification module is further adapted for:
In the case where determining that the average value for the calculated volume value of first predetermined value is more than predetermined threshold, described in determination
External equipment is not the external equipment for being provided with the recording circuit and headset plug.
27. a kind of external equipment identifying system based on earphone socket comprising: external equipment and intelligent electronic device;
Identification circuit described in any claim in claim 11-16 is provided in the external equipment;
It is provided in the intelligent electronic device in claim 17-26 outer based on earphone socket described in any claim
Connect equipment identification device.
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410010628X | 2014-01-09 | ||
CN201410010628 | 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 CN105959845A (en) | 2016-09-21 |
CN105959845B true 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) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108174316A (en) * | 2016-12-07 | 2018-06-15 | 中兴通讯股份有限公司 | A kind of ear speaker device control method and device |
CN110248264B (en) * | 2019-04-25 | 2021-01-15 | 维沃移动通信有限公司 | Sound transmission control method and terminal equipment |
Citations (7)
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101351575B1 (en) * | 2012-05-22 | 2014-01-22 | 성균관대학교산학협력단 | System and method for data processing using earphone port |
-
2014
- 2014-03-24 CN CN201610298835.9A patent/CN105959845B/en not_active Expired - Fee Related
Patent Citations (7)
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 |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN105959845A (en) | 2016-09-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103873988B (en) | Based on external equipment identify circuit, the methods, devices and systems of earphone socket | |
CN109461449B (en) | Voice wake-up method and system for intelligent device | |
CN102318325B (en) | Controlling an adaptation of a behavior of an audio device to a current acoustic environmental condition | |
CN104936098B (en) | A kind of audio setting devices and methods therefor, play system and its method | |
CN110246515A (en) | Removing method, device, storage medium and the electronic device of echo | |
CN109151634A (en) | Wireless headset method for controlling volume, wireless headset and mobile terminal | |
US11445285B2 (en) | Interactive control method and device of an earphone case, earphone case and storage medium | |
CN104133851A (en) | Audio similarity detecting method, audio similarity detecting device and electronic equipment | |
CN104967932B (en) | Earphone uses based reminding method and device, intelligent terminal | |
CN105376418A (en) | Incoming call information processing method, device and system | |
CN108377290A (en) | A kind of audio stream processing method and mobile terminal and medium product | |
CN105372026A (en) | Air tightness detection device and method of microphone pickup structure path | |
CN106096369A (en) | Method, device and mobile terminal to terminal user ID checking | |
CN105959845B (en) | External equipment identification circuit, methods, devices and systems based on earphone socket | |
CN105141786A (en) | Music playing control method, system and mobile terminal | |
CN103731550A (en) | Method and terminal for handling incoming call | |
CN107135305A (en) | A kind of message prompt method, device and terminal | |
CN110381416A (en) | A kind of media play method for controlling volume, device, electronic equipment and storage medium | |
CN105872209A (en) | Information processing method and electronic device | |
CN108605067B (en) | Method for playing audio and mobile terminal | |
CN109195089A (en) | Test method and system for loudspeaker electro mechanical parameter in product | |
CN114979921A (en) | Earphone sound leakage detection method and device and Bluetooth earphone | |
CN105376385A (en) | Volume adjusting method and user terminal | |
CN107957860A (en) | Can adjust automatically sound output method and electronic device | |
CN106534492A (en) | Message prompt method and apparatus |
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 |
Granted publication date: 20190301 Termination date: 20210324 |
|
CF01 | Termination of patent right due to non-payment of annual fee |