Summary of the invention
The technical problem that the present invention mainly solves provides a kind of mobile device that can externally charge, and can utilize earphone socket simultaneously for the peripheral apparatus charging when the interface of mobile device is occupied, has effectively promoted user's experience.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is: a kind of mobile device that can externally charge is provided, mobile device comprises earphone socket, the baseband chip module, power module detection module and control module, earphone socket comprises microphone end and end-speech, control module respectively with power module, the end-speech of baseband chip module and earphone socket is connected, detection module is connected with the microphone end of baseband chip module and earphone socket respectively, when earphone socket inserts peripheral apparatus, detection module detects the magnitude of voltage of peripheral apparatus and sends to the baseband chip module, the baseband chip module judges by magnitude of voltage whether mobile device carries out audio signal transmission with peripheral apparatus or whether mobile device is the peripheral apparatus charging, and control module whether carries out audio signal transmission with peripheral apparatus according to judged result control mobile device or whether mobile device is the peripheral apparatus charging.
Wherein, detection module comprises first resistance, second resistance, first electric capacity, second electric capacity and the 3rd electric capacity, one end of first resistance is connected with the constant voltage source of power module, the other end of first resistance is connected with an end of second resistance, the other end of second resistance is connected with the microphone end of baseband chip module and earphone socket, one end of first electric capacity is connected with the baseband chip module, the other end of first electric capacity is connected with an end of second resistance and an end of the 3rd electric capacity, the other end ground connection of the 3rd electric capacity, one end of second electric capacity is connected with the baseband chip module, and the other end of second electric capacity is connected with the other end of second resistance; When peripheral apparatus inserts earphone socket, one end of the 3rd resistance in the other end of second resistance and the peripheral apparatus is connected, the other end ground connection of the 3rd resistance, detection module detects the magnitude of voltage of the 3rd resistance and sends to the baseband chip module, judgement obtains carrying out between current mobile device and the peripheral apparatus audio signal transmission to the baseband chip module according to magnitude of voltage, still judge that obtaining current mobile device should be the peripheral apparatus charging, obtaining judged result in the baseband chip module is when carrying out audio signal transmission between current mobile device and the peripheral apparatus, carries out audio signal transmission between control module control mobile device and the peripheral apparatus; Obtaining judged result in the baseband chip module is that current mobile device should be peripheral apparatus when charging, and control module control mobile device is the peripheral apparatus charging.
Wherein, the baseband chip module includes the analog-to-digital conversion port, the analog-to-digital conversion port is connected with the other end of second resistance, the baseband chip module is from the magnitude of voltage of the other end of analog-to-digital conversion port processing second resistance, be first voltage or in first voltage range the time at magnitude of voltage, judging between mobile device and the peripheral apparatus and carry out audio signal transmission, is second voltage or in second voltage range time at magnitude of voltage, judges that mobile device should be the peripheral apparatus charging.
Wherein, the baseband chip module further includes the control signal output port, when between judgement mobile device and peripheral apparatus, carrying out audio signal transmission, from carrying out first control signal of audio signal transmission between control signal output port output control mobile device and the peripheral apparatus, when judging that mobile device should be the peripheral apparatus charging, be second control signal of peripheral apparatus charging from control signal output port output control mobile device.
Wherein, control module includes control end, the audio frequency end, power end and output, control end is connected with the control signal output port, the audio frequency end is connected with the baseband chip module, power end is connected with power module, output is connected with the end-speech of earphone socket, when control signal output port output first controls signal to control end, control module control baseband chip module and earphone socket are connected, to carry out audio signal transmission between control mobile device and the peripheral apparatus, when control signal output port output second controlled signal to control end, control module control power module and earphone socket were connected, and were the peripheral apparatus charging with the control mobile device.
Wherein, the baseband chip module further judges according to magnitude of voltage whether earphone socket has the insertion peripheral apparatus, wherein, the baseband chip module is from the magnitude of voltage of the other end of analog-to-digital conversion port processing second resistance, be tertiary voltage or in the tertiary voltage scope time at magnitude of voltage, judge that earphone socket does not insert peripheral apparatus.
Wherein, the detected magnitude of voltage of baseband chip module is:
Wherein, V
1Be the magnitude of voltage of the 3rd resistance, V
DDBe the magnitude of voltage of the constant voltage source of power module, R
3Be the resistance value of the 3rd resistance, R
1Be the resistance value of first resistance, R
2It is the resistance value of second resistance.
Wherein, the resistance value value of first resistance and second resistance satisfies: R
1+ R
2=2200 Ω.
Wherein, when earphone socket inserts peripheral apparatus, the resistance value value difference of the 3rd resistance of different peripheral apparatus inside, the detected magnitude of voltage of baseband chip module changes according to the resistance change of the 3rd resistance.
The invention has the beneficial effects as follows: the situation that is different from prior art, the mobile device that can externally charge of the present invention is by when peripheral apparatus inserts earphone socket, detection module detects the magnitude of voltage of peripheral apparatus and sends to the baseband chip module, the baseband chip module judges by magnitude of voltage whether mobile device carries out audio signal transmission with peripheral apparatus or whether mobile device is the peripheral apparatus charging, control module whether carries out audio signal transmission with peripheral apparatus according to judged result control mobile device or whether mobile device is the peripheral apparatus charging, can when the interface of mobile device is occupied, utilize earphone socket simultaneously for the peripheral apparatus charging, effectively promote user's experience.
Embodiment
The present invention is described in detail below in conjunction with drawings and embodiments.
As shown in Figure 1, the structural representation of first embodiment of Fig. 1 when to be mobile device of the present invention by earphone socket connect peripheral apparatus.Mobile device 10 comprises earphone socket 11, detection module 12, baseband chip module 13, control module 14 and power module 15.Wherein, earphone socket 11 comprises microphone end MIC and end-speech IN3.Control module 14 is connected with power module 14, baseband chip module 13 and the end-speech IN3 of earphone socket 11 respectively, and detection module 12 is connected with the microphone end MIC of baseband chip module 13 and earphone socket 11 respectively.When earphone socket 11 inserted peripheral apparatus 16, detection module 12 detected the magnitude of voltage V of peripheral apparatus 16
1And sending to baseband chip module 13, baseband chip module 13 is by magnitude of voltage V
1Judge whether mobile device 10 carries out audio signal transmission with peripheral apparatus 16 or whether mobile device 10 is peripheral apparatus 16 chargings, control module 14 whether carries out audio signal transmission with peripheral apparatus 16 according to judged result control mobile device 10 or whether mobile device 10 is peripheral apparatus 16 chargings.
Wherein, carry out under the situation of audio signal transmission at mobile device 10 and peripheral apparatus 16, peripheral apparatus 16 refers generally to audio frequency such as earphone or sound equipment and plays or pick up equipment.For peripheral apparatus 16 was pick up equipment, peripheral apparatus 16 passed through the microphone end MIC input audio signal of earphone socket 11 to mobile device 10 at this moment; For peripheral apparatus 16 was earphone or stereo set, mobile device 10 passed through the end-speech IN3 output audio signal of earphone socket 11 to peripheral apparatus 16.Be that peripheral apparatus 16 refers generally to dispose the electronic equipment of rechargeable battery under the situation of peripheral apparatus 16 charging at mobile device 10, this moment, mobile device 10 was peripheral apparatus 16 chargings by the end-speech IN3 of earphone socket 11.Wherein, mobile device 20 can be mobile phone, notebook, panel computer or handheld device etc.
In the present embodiment, carry out the situation of audio signal transmission for mobile device 10 and peripheral apparatus 16, preferably the microphone end MIC input audio signal that peripheral apparatus 16 can be by earphone socket 11 is to mobile device 10, and the end-speech IN3 output audio signal that mobile device 10 again can be by earphone socket 11 is to peripheral apparatus 16 simultaneously.
As shown in Figure 2, the structural representation of second embodiment of Fig. 2 when to be mobile device of the present invention by earphone socket connect peripheral apparatus.Mobile device 20 comprises earphone socket 21, detection module 22, baseband chip module 23, power module 25 and control module 24.Detection module 22 comprises first resistance R
1, second resistance R
2, first capacitor C 1, second capacitor C 2, the 3rd capacitor C 3.Wherein, earphone socket 21 comprises microphone end MIC and end-speech IN3, and baseband chip module 23 includes analog-to-digital conversion port ADC and control signal output port GPIO, and control module 24 includes control end EN, audio frequency end IN1, power end IN2 and output OUT.
First resistance R
1An end and the constant voltage source V of power module 25
DDConnect first resistance R
1The other end and second resistance R
2The other end, an end of the 3rd capacitor C 3 of an end, first capacitor C 1 connect, an end of first capacitor C 1 connects the other end ground connection of baseband chip module 23, the three capacitor C 3.Second resistance R
2The other end be connected with the other end of second capacitor C 2, the analog-to-digital conversion port ADC of baseband chip module 23 and the microphone end MIC of earphone socket 21, an end of second capacitor C 2 is connected with baseband chip module 23.The control end EN of control module 24 is connected with the control signal output port GPIO of baseband chip module 23, and the audio frequency end IN1 of control module 24 is connected with baseband chip module 23, and the power end IN2 of control module 24 is connected with power module 25.The output OUT of control module 24 is connected with the end-speech IN3 of earphone socket 21.
In the present embodiment, capacitor C 1, capacitor C 2 and capacitor C 3 are capacitance, rise every straight function.Wherein, the capacitance of capacitor C 1 and capacitor C 2 is preferably 100uF, and certainly, in other embodiments, the capacitance of capacitor C 1 and capacitor C 2 can also be other values, specifically need decide according to side circuit.
Wherein, when peripheral apparatus 26 inserts earphone socket 21, second resistance R
2The other end and the 3rd resistance R in the peripheral apparatus 26
3An end connect the 3rd resistance R
3Other end ground connection.Detection module 22 detects the 3rd resistance R
3Magnitude of voltage V
1And sending to baseband chip module 23, baseband chip module 23 is according to magnitude of voltage V
1Judgement obtains carrying out between current mobile device 20 and the peripheral apparatus 26 audio signal transmission, still judges that obtaining current mobile device 20 should be peripheral apparatus 26 chargings.Obtaining judged result in baseband chip module 23 is when carrying out audio signal transmission between current mobile device 20 and the peripheral apparatus 26, carries out audio signal transmission between control module 24 control mobile devices 20 and the peripheral apparatus 26.Obtaining judged result in baseband chip module 23 is current mobile device 20 when should be peripheral apparatus 26 charging, and control module 24 control mobile devices 20 be that peripheral apparatus 26 charges.
In the present embodiment,
detection module 22 detected magnitude of voltage V
1For:
Wherein, V
1It is the 3rd resistance R
3Magnitude of voltage, V
DDBe the magnitude of voltage of the constant voltage source of
power module 25, R
3Be the resistance value of the 3rd resistance, R
1Be the resistance value of first resistance, R
2It is the resistance value of second resistance.And be an accuracy of detection of considering
detection module 22 into, first resistance R
1With second resistance R
2The resistance value value satisfy: R
1+ R
2=2200 Ω.Wherein, when
earphone socket 21 inserts
peripheral apparatus 26, the 3rd resistance R of different
peripheral apparatus 26 inside
3Resistance value value difference,
detection module 22 detected magnitude of voltage V
1According to the 3rd resistance R
3Resistance change and change.
In the present embodiment, when carrying out audio signal transmission between mobile device 20 and the peripheral apparatus 26, peripheral apparatus 26 is preferably earphone, and certainly, in other embodiments, peripheral apparatus 26 also can be other peripheral apparatus.
Operation principle to the mobile device that can externally charge 20 of the present invention describes below.
Please refer to Fig. 2, when peripheral apparatus 26 inserts earphone socket 21, second resistance R
2The other end and the 3rd resistance R in the peripheral apparatus 26
3An end connect the 3rd resistance R
3Other end ground connection, make constant voltage source V
DD, first resistance R
1, second resistance R
2With the 3rd resistance R
3Form a conducting loop, because the 3rd resistance R
3Other end ground connection, the 3rd resistance R then
3Magnitude of voltage V
1Also be equivalent to simultaneously second resistance R
2The magnitude of voltage of the other end, then detection module 22 can be by detecting second resistance R
2The magnitude of voltage of the other end detect the 3rd resistance R
3Magnitude of voltage V
1
When
earphone socket 21 insertions need be carried out the
peripheral apparatus 26 of audio signal transmission with
mobile device 20,
baseband chip module 23 is gathered the 3rd resistance R from analog-to-digital conversion port ADC
3Magnitude of voltage V
1, because the 3rd resistance R in the different
peripheral equipment 26
3Difference, then the 3rd resistance R
3Magnitude of voltage V
1Pass through formula:
Calculate the 3rd resistance R
3Magnitude of voltage V
1At magnitude of voltage V
1Be first voltage or in first voltage range the time,
baseband chip module 23 is from carrying out first control signal of audio signal transmission between control signal output port GPIO output control
mobile device 20 and the
peripheral apparatus 26, when control signal output port GPIO output first controls signal to control end EN, the audio frequency end IN1 of
control module 24 and output OUT connect to control
baseband chip module 23 and connect with
earphone socket 21, thereby carry out audio signal transmission between control
mobile device 20 and the
peripheral apparatus 26.
Wherein, when carrying out audio signal transmission between mobile device 20 and the peripheral apparatus 26, peripheral apparatus 26 is preferably earphone, the user is from the microphone end MIC input audio signal of earphone socket 21, audio signal is carried out audio signal through baseband chip module 23 again and is amplified the processing that becomes digital signal with analog signal conversion through the processing of first capacitor C 1 and second capacitor C 2.Wherein, second capacitor C 2 and first capacitor C 1 form pseudo-differential path, the interference that can effectively improve the anti-common-mode noise of path.Constant voltage source V
DDFor the amplification of earpiece audio signal provides bias voltage, first resistance R
1With second resistance R
2For the amplification of audio signal provides biasing resistor, make amplifying circuit be operated in the saturation region, finish its amplification task.Wherein, the 3rd resistance R in the earphone
3Resistance value be preferably: R
3=1000 Ω.The end-speech IN3 of earphone socket 21 and baseband chip module 23 are connected, baseband chip module 23 receives the audio signal that other equipment send, and baseband chip module 23 is carried out digital signal with audio signal and converted analog signal to and pass through end-speech IN3 output audio signal.
When
earphone socket 21 insertions need
mobile device 20 to be the
peripheral apparatus 26 of its charging,
baseband chip module 23 is gathered the 3rd resistance R from analog-to-digital conversion port ADC
3Magnitude of voltage V
1, because the 3rd resistance R in the different
peripheral equipment 26
3Difference, then the 3rd resistance R
3Magnitude of voltage V
1Pass through formula:
Calculate the 3rd resistance R
3Magnitude of voltage V
1At magnitude of voltage V
1Be second voltage or in second voltage range time,
baseband chip module 23 is second control signal of
peripheral apparatus 26 chargings from control signal output port GPIO output control
mobile device 20, when control signal output port GPIO output second controls signal to control end EN, the power end IN2 of
control module 24 and output OUT connect to
control power module 25 and connect with
earphone socket 21, thereby control
mobile device 20 is
peripheral apparatus 26 chargings.
Wherein, power module 25 is preferably the battery of mobile device 20 inside, and certainly, in other embodiments, power module 25 also can be the power supply circuits module of mobile device 20 inside, specifically need decide according to actual design.When inserting at earphone socket 21 when needing mobile device 20 for the peripheral apparatus 26 of its charging, peripheral apparatus 26 can need mobile device 20 to be the peripheral apparatus of its charging for bluetooth earphone, writing pen or other.
Further, when when
earphone socket 21 inserts
peripheral apparatus 26,
baseband chip module 23 is gathered the 3rd resistance R from analog-to-digital conversion port ADC
3Magnitude of voltage V
1, because the 3rd resistance R in the different
peripheral equipment 26
3Difference, then the 3rd resistance R
3Magnitude of voltage V
1Pass through formula:
Calculate the 3rd resistance R
3Magnitude of voltage V
1At magnitude of voltage V
1In the time of for tertiary voltage or in the tertiary voltage scope,
baseband chip module 23 judges that
earphone sockets 21 do not insert
peripheral apparatus 26 or
peripheral apparatus 26 is connected instability with the signal of
earphone socket 21, then needs to insert again
peripheral apparatus 26.
In the present embodiment, first voltage or first voltage range, second voltage or second voltage range and tertiary voltage or tertiary voltage scope specifically need be set according to actual conditions for the value that the user sets.
In sum, the mobile device that can externally charge of the present invention is by when peripheral apparatus inserts earphone socket, detection module detects the magnitude of voltage of peripheral apparatus and sends to the baseband chip module, the baseband chip module judges by magnitude of voltage whether mobile device carries out audio signal transmission with peripheral apparatus or whether mobile device is the peripheral apparatus charging, control module whether carries out audio signal transmission with peripheral apparatus according to judged result control mobile device or whether mobile device is the peripheral apparatus charging, can when the interface of mobile device is occupied, utilize earphone socket simultaneously for the peripheral apparatus charging, effectively promote user's experience.
The above only is embodiments of the present invention; be not so limit claim of the present invention; every equivalent structure or equivalent flow process conversion that utilizes specification of the present invention and accompanying drawing content to do; or directly or indirectly be used in other relevant technical fields, all in like manner be included in the scope of patent protection of the present invention.