CN204350278U - Communication device - Google Patents

Communication device Download PDF

Info

Publication number
CN204350278U
CN204350278U CN201520075555.2U CN201520075555U CN204350278U CN 204350278 U CN204350278 U CN 204350278U CN 201520075555 U CN201520075555 U CN 201520075555U CN 204350278 U CN204350278 U CN 204350278U
Authority
CN
China
Prior art keywords
communication device
pin
voltage
switch
earphone interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201520075555.2U
Other languages
Chinese (zh)
Inventor
李剑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN LUCKY RFID SEMICONDUCTOR Co Ltd
Original Assignee
SHENZHEN LUCKY RFID SEMICONDUCTOR Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN LUCKY RFID SEMICONDUCTOR Co Ltd filed Critical SHENZHEN LUCKY RFID SEMICONDUCTOR Co Ltd
Priority to CN201520075555.2U priority Critical patent/CN204350278U/en
Application granted granted Critical
Publication of CN204350278U publication Critical patent/CN204350278U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Headphones And Earphones (AREA)

Abstract

The utility model discloses a kind of communication device, this communication device comprises earphone interface, governor circuit, and is connected to the control switching circuit between earphone interface and governor circuit.Earphone interface is for connecting the earphone socket of intelligent terminal; Governor circuit is used for exporting control signal to control switching circuit; Control switching circuit is used for the control signal switched conductive path exported according to governor circuit, leads to the voltage detecting termination of the microphone pin and ground wire pin and governor circuit that switch earphone interface; Governor circuit is also for obtaining detect voltage accordingly according to the voltage on the microphone pin of the corresponding Test earphone interface of the conduction path of control switching circuit and ground wire pin, according to the type detecting voltage determination earphone socket, according to determined earphone socket type output loading ripple to the microphone pin of earphone socket, to realize the communication between communication device and intelligent terminal.The utility model improves versatility and the stability of communication device.

Description

Communication device
Technical field
The utility model relates to device talk technical field, particularly relates to a kind of communication device.
Background technology
Earphone interface of mobile phone standard general in the world has two at present, and one is national standard (OMTP), and another is international standard (CTIA).The contact pin connection of 3.5 millimeters of interfaces of international standard is L channel L-R channel R-ground wire GND-microphone MIC, as shown in Figure 1.The contact pin connection of 3.5 millimeters of interfaces of national standard is L channel L-R channel R-microphone MIC-ground wire GND, as shown in Figure 2.Under normal circumstances, if the earphone of international standard is received on the earphone socket of national standard, or the earphone of national standard is received on the earphone socket of international standard, then earphone can not normal output sound.Correspondingly, if the communication device (as read write line) with international standard earphone interface is received on the national standard earphone socket of mobile phone, or the communication device with national standard earphone interface is received on the international standard earphone socket of mobile phone, then communication device and mobile phone can not communications, which has limited the application of communication device.
Utility model content
Main purpose of the present utility model is to provide a kind of communication device, is intended to the versatility and the stability that improve communication device.
In order to achieve the above object, the utility model provides a kind of communication device, and described communication device comprises earphone interface, governor circuit, and is connected to the control switching circuit between described earphone interface and governor circuit;
Described earphone interface is for connecting the earphone socket of intelligent terminal;
Described governor circuit is used for exporting control signal to described control switching circuit;
Described control switching circuit is used for according to described control signal switched conductive path, leads to the voltage detecting termination of the microphone pin and ground wire pin and described governor circuit that switch described earphone interface;
Described governor circuit is also for obtaining detect voltage accordingly according to the voltage on the microphone pin of the described earphone interface of the corresponding detection of the conduction path of described control switching circuit and ground wire pin, the type of described earphone socket is determined according to described detection voltage, according to determined earphone socket type output loading ripple to the microphone pin of described earphone socket, to realize the communication between described communication device and intelligent terminal.
Preferably, the conduction path of described control switching circuit comprises the first path and alternate path, described governor circuit exports the first contrary control signal of phase place and second successively and controls signal to described control switching circuit, to switch described first path and alternate path conducting, lead to the voltage detecting termination of the microphone pin and ground wire pin and described governor circuit that switch described earphone interface, described governor circuit detects the voltage on the microphone pin of described earphone interface when described first path conducting by voltage detecting end and obtains the first detection voltage, described governor circuit detects the voltage on the ground wire pin of described earphone interface when described alternate path conducting by voltage detecting end and obtains the second detection voltage, described governor circuit detects first and detects voltage and second and detect the size of voltage and determine the type of described earphone socket, control described control switching circuit according to determined earphone socket type output control signal and lock the first path or alternate path conducting, and output loading ripple is to the microphone pin of described earphone socket.
Preferably, described control switching circuit comprises an analog switch; Described analog switch comprises control contact, the first fixed contact, the second fixed contact, the first moving contact, the second moving contact, the 3rd moving contact and the 4th moving contact; Wherein, described second moving contact is connected with described 3rd moving contact, and described first moving contact is connected with described 4th moving contact;
The control contact of described analog switch is connected with the control signal output of governor circuit, described first fixed contact is connected with the microphone pin of described earphone interface, described second fixed contact is connected with the ground wire pin of described earphone interface, described first moving contact is connected with the negative carrier output of described governor circuit, and be connected with the voltage detecting end of described governor circuit, described 3rd moving contact ground connection.
Preferably, described control switching circuit also comprises the first resistance and the second resistance; Described first resistance is connected between the microphone pin of described earphone interface and the first fixed contact of described analog switch; Described second resistance is connected between the ground wire pin of described earphone interface and the second fixed contact of described analog switch.
Preferably, described control switching circuit also comprises the first electric capacity and the 3rd resistance; One end of described first electric capacity is connected with the microphone pin of described earphone interface, and be connected with the first fixed contact of described analog switch, the ground wire pin of earphone interface described in the other end of described first electric capacity connects, and is connected with the second fixed contact of described analog switch; Described 3rd resistance and described first Capacitance parallel connection.
Preferably, described governor circuit comprises microcontroller, the second electric capacity, the 4th resistance and the 5th resistance; Described microcontroller comprises the first I/O port, negative carrier output pin and voltage detecting input pin;
Described first I/O port is connected with the control contact of described analog switch, described negative carrier output pin is connected with the first moving contact of described analog switch via the second electric capacity, the 4th resistance, described voltage detecting input pin is connected with the first moving contact of described analog switch, and via described 5th grounding through resistance.
Preferably, described control switching circuit also comprises the first switch and second switch; Described microcontroller also comprises the second I/O port; One contact of described first switch is connected with the first moving contact of described analog switch, and another contact of described first switch is connected with the negative carrier output of described governor circuit and voltage detecting end respectively; One contact of described second switch is connected with the 3rd moving contact of described analog switch, another contact ground of described second switch; Described second I/O port is connected with the control contact of described first switch and the control contact of second switch respectively.
Preferably, described communication device also comprises key press detecting circuit, and described key press detecting circuit comprises a manual key, and described microcontroller also comprises the 3rd I/O port; The output of described key press detecting circuit is connected with described 3rd I/O port, described key press detecting circuit detect the state of described manual key and output detection signal to the 3rd I/O port of described microcontroller; When described microcontroller detects that described detection signal becomes low level from high level, or from low level become the duration after high level reach first preset switching time time, the first I/O port described in described microcontroller exports the first control signal and controls described analog switch and switch the first path conducting; When described microcontroller detects that described detection signal becomes low level from high level, or from low level become the duration after high level reach second preset switching time time, the first I/O port described in described microcontroller exports the first control signal and controls described analog switch and switch alternate path conducting.
Preferably, described key press detecting circuit also comprises a high level signal input, the 6th resistance and the 7th resistance;
One end of described manual key is connected with described 3rd I/O port, and is connected with described high level signal input via described 6th resistance, and the other end of described manual key is via described 7th grounding through resistance; Or one end of described manual key is connected with described 3rd I/O port, and via described 6th grounding through resistance, the other end of described manual key is connected with described high level signal input via described 7th resistance.
Preferably, described governor circuit and control switching circuit are integrated in an integrated circuit (IC) chip.
The communication device that the utility model provides, by the control signal switched conductive path that control switching circuit exports according to governor circuit, lead to the voltage detecting termination of the microphone pin and ground wire pin and described governor circuit that switch described earphone interface, governor circuit is according to the voltage on the microphone pin of the described earphone interface of the corresponding detection of the conduction path of control switching circuit and ground wire pin and acquisition detects voltage accordingly, according to the type of obtained detection voltage determination earphone socket, according to determined earphone socket type output loading ripple to the microphone pin of earphone socket, achieve the communication between communication device and intelligent terminal, thus no matter the earphone socket of intelligent terminal is international standard type or national standard type, the earphone interface of communication device can both mate with the earphone socket of intelligent terminal, realize the communication between communication device and intelligent terminal, improve the versatility of communication device, and the utility model exports by governor circuit the switching that control signal control control switching circuit carries out conduction path, avoid communication device misoperation, the stability of communication device can be improved.
Accompanying drawing explanation
Fig. 1 is the structural representation of 3.5 millimeters of earphone interfaces of international standard;
Fig. 2 is the structural representation of 3.5 millimeters of earphone interfaces of national standard;
Fig. 3 is the electrical block diagram of the utility model communication device one embodiment;
Fig. 4 is the electrical block diagram of another embodiment of the utility model communication device;
Fig. 5 is the electrical block diagram of the another embodiment of the utility model communication device.
The realization of the purpose of this utility model, functional characteristics and advantage, will in conjunction with the embodiments, and be described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the utility model, and be not used in restriction the utility model.
The utility model provides a kind of communication device, and this communication device can be read write line.
With reference to the electrical block diagram that Fig. 3, Fig. 3 are the utility model communication device one embodiment.
In the utility model preferred embodiment, communication device of the present utility model comprises earphone interface 10, governor circuit 20 and control switching circuit 30, and control switching circuit 30 is connected between earphone interface 10 and governor circuit 20.
Earphone interface 10 is for connecting the earphone socket (not shown) of intelligent terminal.
Governor circuit 20 is for exporting control signal to control switching circuit 30.
Control switching circuit 30, for according to control signal switched conductive path, leads to the voltage detecting termination of the microphone pin MIC and ground wire pin GND and governor circuit 20 that switch earphone interface 10.
Governor circuit 20 is also for obtaining detect voltage accordingly according to the voltage on the microphone pin MIC of the corresponding Test earphone interface 10 of the conduction path of control switching circuit 30 and ground wire pin GND, according to the type detecting voltage determination earphone socket, according to determined earphone socket type output loading ripple to the microphone pin of earphone socket, to realize the communication between communication device and intelligent terminal.
Preferably, governor circuit 20 and control switching circuit 30 are integrated in an integrated circuit (IC) chip communication device of the present utility model, are convenient to realize communication device of the present utility model, improve the performance of the utility model communication device.Certainly, governor circuit 20 and control switching circuit 30 can be also single peripheral circuits, and this is not restricted.
The utility model communication device is described for international standard earphone interface for earphone interface 10, namely as shown in Figure 3, the earphone interface 10 of communication device comprise left channel pin L, R channel pin R, wire pin GND and microphone pin MIC.The earphone interface 10 that it will be appreciated by those skilled in the art that the utility model communication device can be also national standard earphone interface, and this is not restricted.
In the present embodiment, communication device connects the earphone socket of intelligent terminal (as mobile phone, IPAD) by earphone interface 10, carries out communication with intelligent terminal, completes the read-write of data.When communication device powers on, namely when user opens communication device power supply, communication device initialization, comprise the initialization of governor circuit 20 and control switching circuit 30, after governor circuit 20 and control switching circuit 30 initialization, governor circuit 20 first exports a control signal to control switching circuit 30, control control switching circuit 30 and select a path conducting, governor circuit 20 exports another control signal again, control control switching circuit 30 and select another path conducting, lead to the voltage detecting termination of the microphone pin MIC and ground wire pin GND and governor circuit 20 that switch earphone interface 10.
Governor circuit 20 is according to the voltage on the microphone pin MIC of the corresponding Test earphone interface 10 of the conduction path of control switching circuit 30 and ground wire pin GND and acquisition detects voltage accordingly, due under normal circumstances, the microphone pin of the earphone socket of intelligent terminal has the voltage of 0.6-2.5V, the ground wire pin voltage of earphone socket is 0V, and when the earphone interface 10 of communication device connects the earphone socket of intelligent terminal, also identical voltage can be there is in the pin (the microphone pin MIC of earphone interface 10 or ground wire pin GND) that earphone interface 10 connects with the microphone pin of earphone socket, thus the microphone pin of earphone socket and the position of ground wire pin can be detected by the microphone pin MIC of Test earphone interface 10 with the voltage on ground wire pin GND, and then can determine that the earphone socket that earphone interface 10 connects is international standard earphone socket or national standard earphone socket.
Determining the type of earphone socket, after determining the position of the microphone pin of earphone socket, governor circuit 20 output loading ripple, to the microphone pin of earphone socket, makes communication device can carry out communication with intelligent terminal, completes the read-write of data.
No matter connected the earphone socket of the intelligent terminal of the utility model communication device be international standard type or national standard type, the earphone interface 10 of communication device can both mate with the earphone socket of intelligent terminal, output loading ripple is to the microphone pin of earphone socket, realize the communication between communication device and intelligent terminal, improve the versatility of communication device, and the utility model exports by governor circuit 20 switching that control signal control control switching circuit 30 carries out conduction path, avoid communication device misoperation, the stability of communication device can be improved.
Particularly, the conduction path of control switching circuit 30 comprises the first path and alternate path, governor circuit 20 exports the first contrary control signal of phase place and second successively and controls signal to control switching circuit 30, to switch the first path and alternate path conducting, lead to the voltage detecting termination of the microphone pin MIC and ground wire pin GND and governor circuit 20 that switch earphone interface 10, governor circuit 20 obtains the first detection voltage when the first path conducting by the voltage on the microphone pin MIC of voltage detecting end Test earphone interface 10, governor circuit 20 obtains the second detection voltage when alternate path conducting by the voltage on the ground wire pin GND of voltage detecting end Test earphone interface 10, governor circuit 20 detects the first detection voltage and second and detects the size of voltage and determine the type of earphone socket, export control signal control control switching circuit 30 according to determined earphone socket type and lock the first path or alternate path conducting, and output loading ripple is to the microphone pin of earphone socket.
Control switching circuit 30 comprises the first path and alternate path, thus can switch between the first path and alternate path, selects a wherein path to carry out conducting.After initialization, governor circuit 20 exports the first contrary control signal of phase place and second successively and controls signal to control switching circuit 30, to switch the first path and alternate path conducting, and then the voltage detecting termination of the microphone pin MIC and ground wire pin GND and governor circuit 20 that switch earphone interface 10 is led to, such as, during the first control signal of governor circuit 20 output low level, control switching circuit 30 conducting first path, makes the microphone pin MIC of earphone interface 10 and the voltage detecting termination of governor circuit 20 lead to; When governor circuit 20 exports the second control signal of high level, control switching circuit 30 conducting alternate path, makes the ground wire pin GND of earphone interface 10 and the voltage detecting termination of governor circuit 20 lead to.
When the first path conducting of control switching circuit 30, when the microphone pin MIC of earphone interface 10 and the voltage detecting termination of governor circuit 20 are led to, governor circuit 20 is by the voltage on the microphone pin MIC of voltage detecting end Test earphone interface 10 and obtain the first detection voltage; When the alternate path conducting of control switching circuit 30, when the ground wire pin GND of earphone interface 10 and the voltage detecting termination of governor circuit 20 are led to, governor circuit 20 is by the voltage on the ground wire pin GND of voltage detecting end Test earphone interface 10 and obtain the second detection voltage.
Ground wire pin voltage due to the earphone socket of intelligent terminal in practical application is not be accurately 0V, a very little voltage (as 0.1V) may be there is, and earphone interface 10 is not when carrying out being connected or connecting instability with earphone socket, to the microphone pin MIC of earphone interface 10 and the voltage on ground wire pin GND be can't detect, or very little voltage (as 0.1V) may be detected.Thus detect in the size process of the first detection voltage and the second detection voltage at governor circuit 20, when first detects voltage and the second absolute value detecting the difference of voltage is less than a preset voltage value (as 0.2V), determine that the earphone interface 10 of communication device is not connected with the earphone socket of intelligent terminal, continuation is switched output first control signal and the second control signal by governor circuit 20, make the first path and alternate path switched conductive, governor circuit 20 continues the microphone pin MIC of Test earphone interface 10 and the voltage on ground wire pin GND; When first detects voltage and the second absolute value detecting the difference of voltage is greater than above-mentioned preset voltage value, determine that the earphone interface 10 of communication device is connected with the earphone socket of intelligent terminal.
When detecting that the first detection voltage and the second absolute value detecting the difference of voltage are greater than above-mentioned preset voltage value, and first detects voltage when being greater than the second detection voltage, governor circuit 20 determines that earphone socket is international standard earphone socket, export the first path conducting of the first control signal locking control switching circuit 30, and output loading ripple is to the microphone pin of earphone socket; When the first detection voltage and the second absolute value detecting the difference of voltage are greater than above-mentioned preset voltage value, and first detects voltage when being less than the second detection voltage, governor circuit 20 determines that earphone socket is national standard earphone socket, export the alternate path conducting of the second control signal locking control switching circuit 30, and output loading ripple is to the microphone pin of earphone socket.Thus, the earphone socket no matter earphone interface 10 connects is international standard type or national standard type, earphone interface 10 can both be made to mate with earphone socket, guarantee that negative carrier that governor circuit 20 exports can both export the microphone pin of earphone socket to by the microphone pin MIC of earphone interface 10 or ground wire pin GND, realize the communication between communication device and intelligent terminal.
As shown in Figure 3, control switching circuit 30 comprises analog switch SW; Analog switch SW comprises control contact, the first fixed contact A0, the second fixed contact B0, the first moving contact A1, the second moving contact B1, the 3rd moving contact A2 and the 4th moving contact B2; Wherein, the second moving contact B1 is connected with the 3rd moving contact A2, and the first moving contact A1 is connected with the 4th moving contact B2.
The control contact of analog switch SW is connected with the control signal output of governor circuit 20, first fixed contact A0 is connected with the microphone pin MIC of earphone interface 10, second fixed contact B0 is connected with the ground wire pin GND of earphone interface 10, first moving contact A1 is connected with the negative carrier output of governor circuit 20, and be connected with the voltage detecting end of governor circuit 20, the 3rd moving contact A2 ground connection.
The first fixed contact A0 of the present embodiment setting analog switch SW is connected with the first moving contact A1, second fixed contact B0 and the 3rd moving contact A2 connects and composes the first path, the first fixed contact A0 of analog switch SW is connected with the second moving contact B1, and the second fixed contact B0 and the 4th moving contact B2 connects and composes alternate path.Can give tacit consent to an analog switch SW conducting wherein path in an initial condition according to the actual requirements, such as, time initial, the first fixed contact A0 of analog switch SW is connected with the first moving contact A1, and the second fixed contact B0 is connected with the 3rd moving contact A2.
Particularly, control switching circuit 30 also comprises the first resistance R1 and the second resistance R2; First resistance R1 is connected between the microphone pin MIC of the earphone interface 10 and first fixed contact A0 of analog switch SW; Second resistance R2 is connected between the ground wire pin GND of the earphone interface 10 and second fixed contact B0 of analog switch SW.
First resistance R1 and the second resistance R2 is current-limiting resistance, for limiting the electric current flowing into analog switch SW, avoid analog switch SW due to electric current excessive and damage.
Particularly, control switching circuit 30 also comprises the first electric capacity C1 and the 3rd resistance R3; One end of first electric capacity C1 is connected with the microphone pin MIC of earphone interface 10, and be connected with the first fixed contact A0 of analog switch SW, the ground wire pin GND of the other end earphone interface 10 of the first electric capacity C1 connects, and is connected with the second fixed contact B0 of analog switch SW; 3rd resistance R3 is in parallel with the first electric capacity C1.
In the present embodiment, the first electric capacity C1 and the 3rd resistance R3 forms a stabilizing circuit, is linked into the voltage of earphone interface 10, and makes impedance matching between earphone interface 10 and analog switch SW for filtering interfering with the microphone pin of stable earphone socket.
The present embodiment is linked into the voltage of earphone interface 10 by the microphone pin that the first electric capacity C1 and the 3rd resistance R3 filtering interfering carry out stable earphone socket, namely stable simulation interrupteur SW is input to the voltage of the voltage detecting input pin ADC of microcontroller U1, makes the voltage stabilization that microcontroller U1 detects.
As shown in Figure 3, governor circuit 20 comprises microcontroller U1, the second electric capacity C2, the 4th resistance R4 and the 5th resistance R5; Microcontroller U1 comprises the first I/O port IO1, negative carrier output pin WAVE and voltage detecting input pin ADC.Wherein, the first I/O port IO1 is the control signal output of governor circuit 20, and negative carrier output pin WAVE is as the negative carrier output of governor circuit 20, and voltage detecting input pin ADC is as the voltage detecting end of governor circuit 20.
First I/O port IO1 is connected with the control contact of analog switch SW, negative carrier output pin WAVE is connected with the first moving contact A1 of analog switch SW via the second electric capacity C2, the 4th resistance R4, voltage detecting input pin ADC is connected with the first moving contact A1 of analog switch SW, and via the 5th resistance R5 ground connection.
Negative carrier output pin WAVE and the voltage detecting input pin ADC of microcontroller U1 are connected to earphone interface 10 by analog switch SW, thus microcontroller U1 is by the voltage on the microphone pin MIC of voltage detecting input pin ADC Test earphone interface 10 and ground wire pin GND, microcontroller U1 by negative carrier output pin WAVE output loading ripple to the microphone pin of earphone socket.
Second electric capacity C2, the 4th resistance R4 are negative carrier output loading, the negative carrier that microcontroller U1 exports exports the microphone pin of earphone socket to through the second electric capacity C2, the 4th resistance R4, second electric capacity C2 is capacitance, avoids the microphone pin voltage of earphone socket to be input to negative carrier output pin WAVE and causes interference.
5th resistance R5 is as pull down resistor, and when the microphone pin MIC of earphone interface 10 does not connect with the voltage detecting input pin ADC of microcontroller U1 with ground wire pin GND, the voltage detecting input pin ADC of microcontroller U1 drags down by the 5th resistance R5.
Particularly, control switching circuit 30 also comprises the first switch S 1 and second switch S2; Microcontroller U1 also comprises the second I/O port IO2; One contact of the first switch S 1 is connected with the first moving contact A1 of analog switch SW, another contact of first switch S 1 is connected with the negative carrier output of governor circuit 20 and voltage detecting end respectively, namely in Fig. 3, another contact of first switch S 1 is connected with voltage detecting input pin ADC, and is connected with the negative carrier output pin WAVE of microcontroller U1 via the second electric capacity C2, the 4th resistance R4; One contact of second switch S2 is connected with the 3rd moving contact A2 of analog switch SW, another contact ground of second switch S2; Second I/O port IO2 is connected with the control contact of the first switch S 1 and the control contact of second switch S2 respectively.
In communication device initialization procedure, microcontroller U1 controls the first switch S 1 by the second I/O port IO2 output control signal and second switch S2 disconnects, and makes analog switch SW be in high-impedance state, avoids there is signal disturbing in communication device initialization procedure.
Refer again to Fig. 4, Fig. 4 is the electrical block diagram of another embodiment of the utility model communication device.
Based on Fig. 3, as shown in Figure 4, communication device of the present utility model also comprises key press detecting circuit 40, and key press detecting circuit 40 comprises a manual key K1, and microcontroller U1 also comprises the 3rd I/O port IO3; The output of key press detecting circuit 40 is connected with the 3rd I/O port IO3, key press detecting circuit 40 detect the state of manual key K1 and output detection signal to the 3rd I/O port IO3 of microcontroller U1; When microcontroller U1 detects that detection signal becomes low level from high level, or from low level become the duration after high level reach first preset switching time (as 3s) time, microcontroller U1 first I/O port IO1 exports the first control signal control simulation interrupteur SW and switches the first path conducting; When microcontroller U1 detects that detection signal becomes low level from high level, or from low level become the duration after high level reach second preset switching time (as 6s) time, microcontroller U1 first I/O port exports the first control signal control simulation interrupteur SW and switches alternate path conducting.
Communication device of the present utility model after the power-up, can enter Test earphone jack type flow process automatically, and in addition, user can to grow by manual key to select the conduction path of control switching circuit 30, and earphone interface 10 is mated with earphone socket.When the type of the earphone socket that user knows the type of earphone interface 10, earphone interface 10 will connect, and during the current state of analog switch SW, can manually press the switching that manual key carries out analog switch SW passage as required, adapt to the earphone socket that will connect to make earphone interface 10.Such as, when user knows earphone interface 10 for international standard type, and earphone socket is national standard type, and in an initial condition analog switch SW conducting be that the microphone pin MIC of earphone interface 10 connects the voltage detecting input pin ADC of microcontroller U1 and the path of negative carrier output pin WAVE, now, for coupling earphone socket, the ground wire pin GND of earphone interface 10 is needed to be used as microphone pin, thus can grow by manual key to the conduction path presetting switching analoging switch SW switching time, make the ground wire pin GND of analog switch SW conducting earphone interface 10 and the negative carrier output pin WAVE path of microcontroller U1.
Particularly, key press detecting circuit also comprises a high level signal input VCC, the 6th resistance R6 and the 7th resistance R7.
As shown in Figure 4, one end of manual key K1 is connected with the 3rd I/O port IO3, and is connected with high level signal input VCC via the 6th resistance R6, and the other end of manual key K1 is via the 7th resistance R7 ground connection.
Refer again to Fig. 5, Fig. 5 is the electrical block diagram of the another embodiment of the utility model communication device.
With circuit shown in Fig. 4 unlike, as shown in Figure 5, in the embodiment of a distortion, one end of manual key K1 is connected with the 3rd I/O port IO3, and via the 6th resistance R6 ground connection, the other end of manual key K1 is connected with high level signal input VCC via the 7th resistance R7.
The utility model communication device connects the earphone socket of intelligent terminal situation by earphone interface 10 is that example is described.The operation principle of the utility model communication device specifically describes as follows:
Suppose the first control signal of the first I/O port IO1 output low level as microcontroller U1, namely when the first I/O port IO1 sets to 0, analog switch SW controlled rear connection first fixed contact A0 and the first moving contact A1, and connect the second fixed contact B0 and the 3rd moving contact A2, when the first I/O port IO1 of microcontroller U1 exports the second control signal of high level, namely when the first I/O port IO1 puts 1, analog switch SW controlled rear connection first fixed contact A0 and the second moving contact B1, and connect the second fixed contact B0 and the 4th moving contact B2.And under setting initial condition, first of the first I/O port IO1 output low level of microcontroller U1 controls signal to the control contact of analog switch SW, control simulation interrupteur SW connects the first fixed contact A0 and the first moving contact A1, and connects the second fixed contact B0 and the 3rd moving contact A2.
In communication device initialization procedure, microcontroller U1 exports a control signal (as high level signal) by the second I/O port IO2 and controls the first switch S 1 and second switch S2 disconnects, and makes analog switch SW be in high-impedance state.After communication device initialization completes, microcontroller U1 exports another control signal (as low level signal) by the second I/O port IO2 and controls the first switch S 1 and second switch S2 and close, and earphone interface 10 is connected by analog switch SW and microcontroller U1.
Be international standard earphone interface for earphone interface 10, when the first control signal of the first output low level of the first I/O port IO1 of microcontroller U1, first fixed contact A0 and the first moving contact A1 of analog switch SW connect, and the second fixed contact B0 and the 3rd moving contact A2 connects, now, the microphone pin MIC of earphone interface 10 is through the first resistance R1, first fixed contact A0, first moving contact A1, first switch S 1 is connected with the voltage detecting input pin ADC of microcontroller U1, the ground wire pin GND of earphone interface 10 is through the second resistance R2, second fixed contact B0, 3rd moving contact A2, second switch S2 ground connection, microcontroller U1 carries out AD detection by voltage detecting input pin ADC to the voltage on the microphone pin MIC of earphone interface 10, obtain first and detect voltage.When the first I/O port IO1 of microcontroller U1 switches to the second control signal exporting high level, first fixed contact A0 and the second moving contact B1 of analog switch SW connect, and the second fixed contact B0 and the 4th moving contact B2 connects, now, the microphone pin MIC of earphone interface 10 is through the first resistance R1, first fixed contact A0, second moving contact B1, second switch S2 ground connection, the ground wire pin GND of earphone interface 10 is through the second resistance R2, second fixed contact B0, 4th moving contact B2, first switch S 1 is connected with the voltage detecting input pin ADC of microcontroller U1, microcontroller U1 carries out AD detection by voltage detecting input pin ADC to the voltage on the ground wire pin GND of earphone interface 10, obtain second and detect voltage.
When the first detection voltage being detected and the second absolute value detecting the difference of voltage is greater than above-mentioned preset voltage value, when the first detection voltage is greater than the second detection voltage, the microphone pin of the microphone pin MIC frames connecting with headphone socket of now earphone interface 10 is described, and the ground wire pin of the ground wire pin GND frames connecting with headphone socket of earphone interface 10, earphone interface 10 is connected with earphone socket correctly, namely earphone interface 10 mates with earphone socket, thus can determine that the earphone socket that now earphone interface 10 connects is international standard earphone socket.Now, for keeping earphone interface 10 and earphone socket exact connect ion state, needing the first fixed contact A0 and the first moving contact A1 that connect analog switch SW, and connecting the second fixed contact B0 and the 3rd moving contact A2.From the foregoing, during pin voltage due to second time Test earphone interface 10, first fixed contact A0 and the second moving contact B1 of analog switch SW connect, and the second fixed contact B0 and the 4th moving contact B2 connects, thus now need the conduction path of switching analoging switch SW, now, the control contact that the first I/O port IO1 of microcontroller U1 switches to first of output low level to control signal to analog switch SW, control simulation interrupteur SW switches to the first fixed contact A0 and the first moving contact A1 to connect, and the second fixed contact B0 and the 3rd moving contact A2 connects, and control simulation interrupteur SW is locked in the first fixed contact A0 and the first moving contact A1 connects, and the second fixed contact B0 and the 3rd moving contact A2 on-state, now, microcontroller U1 is by negative carrier output pin WAVE output loading ripple, and this negative carrier is through the 4th resistance R4, second electric capacity C2, first switch S 1, first moving contact A1, first fixed contact A0, first resistance R1, the microphone pin MIC of earphone interface 10 exports the microphone pin of earphone socket to, realize the communication of communication device and intelligent terminal.
When the first detection voltage being detected and the second absolute value detecting the difference of voltage is greater than above-mentioned preset voltage value, when the first detection voltage is less than the second detection voltage, the ground wire pin of the microphone pin MIC frames connecting with headphone socket of now earphone interface 10 is described, and the microphone pin of the ground wire pin GND frames connecting with headphone socket of earphone interface 10, earphone interface 10 is true with earphone socket malunion, namely earphone interface 10 does not mate with earphone socket, thus can determine that the earphone socket that now earphone interface 10 connects is national standard earphone socket.Now, for making earphone interface 10 mate with earphone socket, the conduction path of changeable analog switch SW, namely switches to the first fixed contact A0 and the second moving contact B1 that connect analog switch SW, and connects the second fixed contact B0 and the 4th moving contact B2.From the foregoing, during pin voltage due to second time Test earphone interface 10, first fixed contact A0 and the second moving contact B1 of analog switch SW connect, and the second fixed contact B0 and the 4th moving contact B2 connects, thus now do not need the conduction path of switching analoging switch SW, now, the first I/O port IO1 of microcontroller U1 continues to export the control contact that second of high level controls signal to analog switch SW, control simulation interrupteur SW continues connection first fixed contact A0 and the second moving contact B1, and connect the second fixed contact B0 and the 4th moving contact B2, and control simulation interrupteur SW is locked in the first fixed contact A0 and the second moving contact B1 connects, and the second fixed contact B0 and the 4th moving contact B2 on-state, now, microcontroller U1 is by negative carrier output pin WAVE output loading ripple, and this negative carrier is through the 4th resistance R4, second electric capacity C2, first switch S 1, 4th moving contact B2, second fixed contact B0, second resistance R2, the ground wire pin GND of earphone interface 10 exports the microphone pin of earphone socket to, namely now the ground wire pin GND of earphone interface 10 uses as microphone pin, realize the communication of communication device and intelligent terminal.
As shown in Figure 4, when manual key K1 is not pressed, the high level signal that high level signal input VCC inputs is input to the 3rd I/O port IO3 of microcontroller U1 via the 6th resistance R6, now microcontroller U1 detects that the detection signal at the 3rd I/O port IO3 place is high level, conform to the initial condition preset, thus determine that now manual key K1 is in off state, now microcontroller U1 is failure to actuate.When manual key K1 is pressed, the 3rd I/O port IO3 of microcontroller U1 is equivalent to receive ground through the 7th resistance R7, now microcontroller U1 detects that the detection signal at the 3rd I/O port IO3 place becomes low level from high level, and when microcontroller U1 detect the detection signal at the 3rd I/O port IO3 place from high level become the duration after low level reach first preset switching time | time (as 3s), microcontroller U1 exports the first control signal control simulation interrupteur SW by the first I/O port IO1 and switches the first path conducting, when microcontroller U1 detect the 3rd I/O port IO3 from high level become the duration after low level reach second preset switching time (as 6s) time, microcontroller U1 exports the second control signal control simulation interrupteur SW by the first I/O port IO1 and switches alternate path conducting.
As shown in Figure 5, when manual key K1 is not pressed, due to the drop-down effect of the 6th resistance, microcontroller U1 is detected, and the detection signal at the 3rd I/O port IO3 place is low level, conform to the initial condition preset, thus determine that now manual key K1 is in off state, now microcontroller U1 is failure to actuate.When manual key K1 is pressed, the high level signal that high level signal input VCC inputs is input to the 3rd I/O port IO3 of microcontroller U1 via the 7th resistance R7, now microcontroller U1 detects that the detection signal at the 3rd I/O port IO3 place becomes high level from low level, and when microcontroller U1 detect the detection signal at the 3rd I/O port IO3 place from low level become the duration after high level reach first preset switching time | time (as 3s), microcontroller U1 exports the first control signal control simulation interrupteur SW by the first I/O port IO1 and switches the first path conducting, when microcontroller U1 detect the 3rd I/O port IO3 from low level become the duration after high level reach second preset switching time (as 6s) time, microcontroller U1 exports the second control signal control simulation interrupteur SW by the first I/O port IO1 and switches alternate path conducting.
The foregoing is only preferred embodiment of the present utility model; not thereby the scope of the claims of the present utility model is limited; every utilize the utility model specification and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present utility model.

Claims (10)

1. a communication device, is characterized in that, described communication device comprises earphone interface, governor circuit, and is connected to the control switching circuit between described earphone interface and governor circuit;
Described earphone interface is for connecting the earphone socket of intelligent terminal;
Described governor circuit is used for exporting control signal to described control switching circuit;
Described control switching circuit is used for according to described control signal switched conductive path, leads to the voltage detecting termination of the microphone pin and ground wire pin and described governor circuit that switch described earphone interface;
Described governor circuit is also for obtaining detect voltage accordingly according to the voltage on the microphone pin of the described earphone interface of the corresponding detection of the conduction path of described control switching circuit and ground wire pin, the type of described earphone socket is determined according to described detection voltage, according to determined earphone socket type output loading ripple to the microphone pin of described earphone socket, to realize the communication between described communication device and intelligent terminal.
2. communication device as claimed in claim 1, it is characterized in that, the conduction path of described control switching circuit comprises the first path and alternate path, described governor circuit exports the first contrary control signal of phase place and second successively and controls signal to described control switching circuit, to switch described first path and alternate path conducting, lead to the voltage detecting termination of the microphone pin and ground wire pin and described governor circuit that switch described earphone interface, described governor circuit detects the voltage on the microphone pin of described earphone interface when described first path conducting by voltage detecting end and obtains the first detection voltage, described governor circuit detects the voltage on the ground wire pin of described earphone interface when described alternate path conducting by voltage detecting end and obtains the second detection voltage, described governor circuit detects first and detects voltage and second and detect the size of voltage and determine the type of described earphone socket, control described control switching circuit according to determined earphone socket type output control signal and lock the first path or alternate path conducting, and output loading ripple is to the microphone pin of described earphone socket.
3. communication device as claimed in claim 1 or 2, it is characterized in that, described control switching circuit comprises an analog switch; Described analog switch comprises control contact, the first fixed contact, the second fixed contact, the first moving contact, the second moving contact, the 3rd moving contact and the 4th moving contact; Wherein, described second moving contact is connected with described 3rd moving contact, and described first moving contact is connected with described 4th moving contact;
The control contact of described analog switch is connected with the control signal output of governor circuit, described first fixed contact is connected with the microphone pin of described earphone interface, described second fixed contact is connected with the ground wire pin of described earphone interface, described first moving contact is connected with the negative carrier output of described governor circuit, and be connected with the voltage detecting end of described governor circuit, described 3rd moving contact ground connection.
4. communication device as claimed in claim 3, it is characterized in that, described control switching circuit also comprises the first resistance and the second resistance; Described first resistance is connected between the microphone pin of described earphone interface and the first fixed contact of described analog switch; Described second resistance is connected between the ground wire pin of described earphone interface and the second fixed contact of described analog switch.
5. communication device as claimed in claim 3, it is characterized in that, described control switching circuit also comprises the first electric capacity and the 3rd resistance; One end of described first electric capacity is connected with the microphone pin of described earphone interface, and be connected with the first fixed contact of described analog switch, the ground wire pin of earphone interface described in the other end of described first electric capacity connects, and is connected with the second fixed contact of described analog switch; Described 3rd resistance and described first Capacitance parallel connection.
6. communication device as claimed in claim 3, it is characterized in that, described governor circuit comprises microcontroller, the second electric capacity, the 4th resistance and the 5th resistance; Described microcontroller comprises the first I/O port, negative carrier output pin and voltage detecting input pin;
Described first I/O port is connected with the control contact of described analog switch, described negative carrier output pin is connected with the first moving contact of described analog switch via the second electric capacity, the 4th resistance, described voltage detecting input pin is connected with the first moving contact of described analog switch, and via described 5th grounding through resistance.
7. communication device as claimed in claim 6, it is characterized in that, described control switching circuit also comprises the first switch and second switch; Described microcontroller also comprises the second I/O port; One contact of described first switch is connected with the first moving contact of described analog switch, and another contact of described first switch is connected with the negative carrier output of described governor circuit and voltage detecting end respectively; One contact of described second switch is connected with the 3rd moving contact of described analog switch, another contact ground of described second switch; Described second I/O port is connected with the control contact of described first switch and the control contact of second switch respectively.
8. communication device as claimed in claim 6, it is characterized in that, described communication device also comprises key press detecting circuit, and described key press detecting circuit comprises a manual key, and described microcontroller also comprises the 3rd I/O port; The output of described key press detecting circuit is connected with described 3rd I/O port, described key press detecting circuit detect the state of described manual key and output detection signal to the 3rd I/O port of described microcontroller; When described microcontroller detects that described detection signal becomes low level from high level, or from low level become the duration after high level reach first preset switching time time, the first I/O port described in described microcontroller exports the first control signal and controls described analog switch and switch the first path conducting; When described microcontroller detects that described detection signal becomes low level from high level, or from low level become the duration after high level reach second preset switching time time, the first I/O port described in described microcontroller exports the first control signal and controls described analog switch and switch alternate path conducting.
9. communication device as claimed in claim 8, it is characterized in that, described key press detecting circuit also comprises a high level signal input, the 6th resistance and the 7th resistance;
One end of described manual key is connected with described 3rd I/O port, and is connected with described high level signal input via described 6th resistance, and the other end of described manual key is via described 7th grounding through resistance; Or one end of described manual key is connected with described 3rd I/O port, and via described 6th grounding through resistance, the other end of described manual key is connected with described high level signal input via described 7th resistance.
10. communication device as claimed in claim 1, it is characterized in that, described governor circuit and control switching circuit are integrated in an integrated circuit (IC) chip.
CN201520075555.2U 2015-02-02 2015-02-02 Communication device Active CN204350278U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201520075555.2U CN204350278U (en) 2015-02-02 2015-02-02 Communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201520075555.2U CN204350278U (en) 2015-02-02 2015-02-02 Communication device

Publications (1)

Publication Number Publication Date
CN204350278U true CN204350278U (en) 2015-05-20

Family

ID=53233515

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201520075555.2U Active CN204350278U (en) 2015-02-02 2015-02-02 Communication device

Country Status (1)

Country Link
CN (1) CN204350278U (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618836A (en) * 2015-02-02 2015-05-13 深圳市吉芯微半导体有限公司 Communication device
US11107451B2 (en) 2015-09-06 2021-08-31 Goertek Inc. Method for preparing sound-adsorbing material and sound-adsorbing material
CN114189797A (en) * 2021-12-30 2022-03-15 深圳市中科蓝讯科技股份有限公司 Earphone detection circuit, chip and audio equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618836A (en) * 2015-02-02 2015-05-13 深圳市吉芯微半导体有限公司 Communication device
WO2016123773A1 (en) * 2015-02-02 2016-08-11 深圳市吉芯微半导体有限公司 Communication device
US11107451B2 (en) 2015-09-06 2021-08-31 Goertek Inc. Method for preparing sound-adsorbing material and sound-adsorbing material
CN114189797A (en) * 2021-12-30 2022-03-15 深圳市中科蓝讯科技股份有限公司 Earphone detection circuit, chip and audio equipment
CN114189797B (en) * 2021-12-30 2024-03-22 深圳市中科蓝讯科技股份有限公司 Earphone detection circuit, chip and audio equipment

Similar Documents

Publication Publication Date Title
CN104618836A (en) Communication device
CN102300003B (en) Mobile terminal capable of automatically detecting earphone jack
CA2876696C (en) Audio interface self-adaption device
CN104035357A (en) Headset, charging and OTG equipment circuit design based on USB socket
CN201758417U (en) Earphone compatible device and mobile terminal
CN204350278U (en) Communication device
CN113242483B (en) Charging control method, electronic device, charging box and electronic system
CN202721789U (en) Audio interface adaptive device
CN201075704Y (en) Detection circuit of electrical equipment and mobile phone having the circuit
CN103391495A (en) Automatic earphone adaptation circuit and adaptation method thereof
CN207995366U (en) A kind of earphone compatible circuit and electric terminal
CN214375036U (en) Mobile device test system
CN110113692A (en) A kind of sound signal outputting device, computer equipment and its control method
CN104683914A (en) Electronic equipment and earphone detection circuit, method and device
CN203883981U (en) Headset with microphone signal MIC and GND automatic switching function
CN110518673B (en) Wireless earphone charging circuit, wireless earphone and wireless earphone charging method
CN209358740U (en) A kind of bluetooth headset reset control circuit
CN105451149B (en) A kind of loudspeaker plug-pull detecting circuit and electronic equipment
CN107908387B (en) Signal transmission circuit, signal transmission system, signal transmission method and intelligent terminal
CN103311766A (en) Mobile equipment switching device and working mode switching method thereof
CN104125173B (en) data communication path switching circuit, vehicle-mounted router and automobile
CN102638593A (en) Mobile phone
US8466817B2 (en) Electronic device and method for driving an internal function block of a processor of the electronic device to operate in a linear region
CN101917659A (en) Detection device, method and mobile terminal of earphone circuit
CN202713580U (en) Earphone compatible interface circuit for terminal device

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant