WO2016123773A1 - Dispositif de communication - Google Patents
Dispositif de communication Download PDFInfo
- Publication number
- WO2016123773A1 WO2016123773A1 PCT/CN2015/072294 CN2015072294W WO2016123773A1 WO 2016123773 A1 WO2016123773 A1 WO 2016123773A1 CN 2015072294 W CN2015072294 W CN 2015072294W WO 2016123773 A1 WO2016123773 A1 WO 2016123773A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- control circuit
- switch
- resistor
- contact
- analog switch
- 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.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers, loudspeakers or microphones
Definitions
- the present invention relates to the field of device communication technologies, and in particular, to a communication device.
- the international standard 3.5 mm interface pin connection is the left channel L-right channel R-ground GND-microphone MIC, as shown in Figure 1.
- the pin connection of the national standard 3.5 mm interface is the left channel L-right channel R-microphone MIC-ground line GND, as shown in Figure 2.
- a communication device such as a reader/writer
- an international standard headphone jack is connected to the national standard earphone jack of the mobile phone
- a communication device with a national standard headphone jack is connected to the international standard earphone jack of the mobile phone.
- the communication device and the mobile phone will not be able to communicate, which limits the application of the communication device.
- the main object of the present invention is to provide a communication device aimed at improving the versatility and stability of the communication device.
- the present invention provides a communication device, which includes an earphone interface, a main control circuit, and a switching control circuit connected between the earphone interface and the main control circuit;
- the earphone interface is used to connect a headphone jack of the smart terminal
- the main control circuit is configured to output a control signal to the switching control circuit
- the switching control circuit is configured to switch the conduction path according to the control signal, to switch the microphone pin and the ground pin of the earphone interface to be connected to the voltage detecting end of the main control circuit;
- the main control circuit is further configured to detect a voltage on a microphone pin and a ground pin of the earphone interface according to a conduction path of the switching control circuit, and obtain a corresponding detection voltage, and determine, according to the detection voltage,
- the type of the earphone socket is configured to output a load wave to the microphone pin of the earphone socket according to the determined type of the earphone socket to implement communication between the communication device and the smart terminal.
- the conduction path of the switching control circuit includes a first path and a second path
- the main control circuit sequentially outputs a first control signal and a second control signal having opposite phases to the switching control circuit to switch
- the first path and the second path are turned on to switch the microphone pin and the ground pin of the earphone interface to be connected to the voltage detecting end of the main control circuit;
- the main control circuit is in the first path
- the voltage on the microphone pin of the earphone interface is detected by the voltage detecting end and the first detecting voltage is obtained, and the main control circuit detects the earphone interface through the voltage detecting end when the second path is turned on.
- the main control circuit detects a size of the first detection voltage and the second detection voltage and determines a type of the earphone socket, and outputs a control signal according to the determined type of the earphone socket
- the switching control circuit is controlled to lock the first path or the second path to conduct, and output a load wave to the microphone pin of the earphone socket.
- the switching control circuit includes an analog switch;
- the analog switch includes a control contact, a first fixed contact, a second fixed contact, a first movable contact, a second movable contact, and a third a movable contact and a fourth movable contact; wherein the second movable contact is coupled to the third movable contact, the first movable contact and the fourth movable contact connection;
- a control contact of the analog switch is connected to a control signal output end of the main control circuit
- the first fixed contact is connected to a microphone pin of the earphone interface
- the second fixed contact is connected to the earphone
- the ground pin is connected
- the first movable contact is connected to the load wave output end of the main control circuit, and is connected to the voltage detecting end of the main control circuit
- the third movable contact is grounded.
- the switching control circuit further includes a first resistor and a second resistor; the first resistor is connected between a microphone pin of the earphone interface and a first fixed contact of the analog switch; A two resistor is connected between the ground pin of the earphone interface and the second fixed contact of the analog switch.
- the switching control circuit further includes a first capacitor and a third resistor; one end of the first capacitor is connected to a microphone pin of the earphone interface, and is connected to a first fixed contact of the analog switch, The other end of the first capacitor is connected to a ground pin of the earphone interface and is connected to a second fixed contact of the analog switch; and the third resistor is connected in parallel with the first capacitor.
- the main control circuit includes a microcontroller, a second capacitor, a fourth resistor, and a fifth resistor;
- the microcontroller includes a first IO port, a load wave output pin, and a voltage detection input pin;
- the first IO port is connected to a control contact of the analog switch, and the load wave output pin is connected to a first movable contact of the analog switch via a second capacitor and a fourth resistor, the voltage detection input A foot is coupled to the first movable contact of the analog switch and is grounded via the fifth resistor.
- the switching control circuit further includes a first switch and a second switch; the microcontroller further includes a second IO port; a contact of the first switch and a first movable contact of the analog switch Point connection, another contact of the first switch is respectively connected to a load wave output end of the main control circuit and a voltage detecting end; a contact of the second switch and a third movable of the analog switch The contacts are connected, and the other contact of the second switch is grounded; the second IO port is respectively connected to the control contact of the first switch and the control contact of the second switch.
- the communication device further includes a button detecting circuit
- the button detecting circuit includes a manual button
- the microcontroller further includes a third IO port; an output end of the button detecting circuit and the third IO port Connecting, the button detecting circuit detects a state of the manual button and outputs a detection signal to a third IO port of the microcontroller; when the microcontroller detects that the detection signal changes from a high level to a low level
- the first IO port of the microcontroller outputs a first control signal to control the analog switch to switch the first path when the duration of the level is changed from the low level to the high level.
- the first IO port of the microcontroller outputs a first control signal to control the analog switch to switch the second path to be turned on.
- the button detecting circuit further includes a high level signal input end, a sixth resistor and a seventh resistor;
- One end of the manual button is connected to the third IO port, and is connected to the high level signal input end via the sixth resistor, and the other end of the manual button is grounded via the seventh resistor; or One end of the manual button is connected to the third IO port, and is grounded via the sixth resistor, and the other end of the manual button is connected to the high level signal input end via the seventh resistor.
- the main control circuit and the switching control circuit are integrated in an integrated circuit chip.
- the communication device switches the conduction path according to the control signal output by the main control circuit through the switching control circuit, so as to switch the microphone pin and the ground pin of the earphone interface to the voltage detection terminal of the main control circuit.
- the main control circuit detects the voltage on the microphone pin and the ground pin of the earphone interface according to the conduction path of the switching control circuit, and obtains a corresponding detection voltage, and determines the type of the earphone socket according to the obtained detection voltage.
- the load wave is output to the microphone pin of the earphone socket, thereby realizing communication between the communication device and the intelligent terminal, so that the earphone socket of the smart terminal is of an international standard type or a national standard type, the earphone of the communication device
- the interface can be matched with the earphone socket of the intelligent terminal to realize communication between the communication device and the intelligent terminal, thereby improving the versatility of the communication device, and the invention controls the switching control circuit to switch the conduction path through the output control signal of the main control circuit. To avoid misoperation of the communication device and improve the stability of the communication device Sex.
- Figure 1 is a schematic diagram of the structure of an international standard 3.5 mm headphone jack
- FIG. 2 is a schematic structural view of a national standard 3.5 mm headphone jack
- FIG. 3 is a schematic structural diagram of a circuit of an embodiment of a communication device according to the present invention.
- FIG. 4 is a schematic structural diagram of a circuit of another embodiment of a communication device according to the present invention.
- FIG. 5 is a schematic structural diagram of a circuit according to still another embodiment of a communication apparatus according to the present invention.
- the invention provides a communication device, which can be a reader/writer.
- FIG. 3 is a schematic structural diagram of a circuit of an embodiment of a communication device according to the present invention.
- the communication device of the present invention includes a headphone interface 10, a main control circuit 20, and a switching control circuit 30.
- the switching control circuit 30 is connected between the headphone interface 10 and the main control circuit 20.
- the earphone interface 10 is used to connect a headphone jack (not shown) of the smart terminal.
- the main control circuit 20 is for outputting a control signal to the switching control circuit 30.
- the switching control circuit 30 is configured to switch the conduction path according to the control signal to switch the microphone pin MIC of the headphone interface 10 and the ground pin GND to be connected to the voltage detecting end of the main control circuit 20.
- the main control circuit 20 is further configured to detect the voltage on the microphone pin MIC of the earphone interface 10 and the ground pin GND according to the conduction path of the switching control circuit 30, and obtain a corresponding detection voltage, and determine the type of the earphone socket according to the detection voltage. And outputting a load wave to the microphone pin of the earphone socket according to the determined type of the earphone socket, so as to implement communication between the communication device and the smart terminal.
- the main control circuit 20 and the switching control circuit 30 are integrated in an integrated circuit chip to facilitate implementation of the communication device of the present invention and improve the performance of the communication device of the present invention.
- the main control circuit 20 and the switching control circuit 30 may also be a single peripheral circuit, which is not limited herein.
- the communication device of the present invention takes the earphone interface 10 as an international standard earphone interface as an example.
- the earphone interface 10 of the communication device includes a left channel pin L, a right channel pin R, and a ground pin. GND and microphone pin MIC.
- the earphone interface 10 of the communication device of the present invention may also be a national standard earphone interface, which is not limited herein.
- the communication device can connect to the earphone socket of the smart terminal (such as a mobile phone or an IPAD) through the earphone interface 10, and communicate with the intelligent terminal to complete reading and writing data.
- the communication device is powered on, that is, when the user turns on the power of the communication device, the communication device is initialized, including initialization of the main control circuit 20 and the switching control circuit 30.
- the main control circuit 20 switches to the control.
- the circuit 30 first outputs a control signal, the control switching control circuit 30 selects a path to conduct, the main control circuit 20 outputs another control signal, and the control switching control circuit 30 selects another path to be turned on to switch the microphone lead of the earphone interface 10.
- the pin MIC and the ground pin GND are connected to the voltage detecting terminal of the main control circuit 20.
- the main control circuit 20 correspondingly detects the microphone pin MIC of the earphone interface 10 and the voltage on the ground pin GND according to the conduction path of the switching control circuit 30 and obtains a corresponding detection voltage, since the headphone socket of the smart terminal is normally under normal conditions.
- the microphone pin has a voltage of 0.6-2.5V, the ground pin voltage of the earphone socket is 0V, and when the earphone interface 10 of the communication device is connected to the earphone socket of the smart terminal, the earphone interface 10 is connected with the microphone pin of the earphone socket.
- the pin (microphone pin MIC of the headphone jack 10 or the ground pin GND) also has the same voltage, so that the earphone can be detected by detecting the microphone pin MIC of the headphone jack 10 and the voltage on the ground pin GND.
- the position of the microphone pin and the ground pin of the socket can further determine whether the earphone jack to which the earphone interface 10 is connected is an international standard earphone jack or a national standard earphone jack.
- the main control circuit 20 After determining the type of the earphone socket and determining the position of the microphone pin of the earphone socket, the main control circuit 20 outputs a load wave to the microphone pin of the earphone socket, so that the communication device can communicate with the intelligent terminal to complete reading and writing of data.
- the earphone socket of the connected smart terminal of the present invention is of an international standard type or a national standard type, and the earphone interface 10 of the communication device can be matched with the earphone socket of the smart terminal, and the load wave is output to the microphone pin of the earphone socket.
- the communication between the communication device and the intelligent terminal is realized, and the versatility of the communication device is improved.
- the output control signal of the main control circuit 20 is controlled by the main control circuit 20 to switch the conduction path to avoid the misoperation of the communication device, thereby improving The stability of the communication device.
- the conduction path of the switching control circuit 30 includes a first path and a second path
- the main control circuit 20 sequentially outputs the first control signal and the second control signal having opposite phases to the switching control circuit 30 to switch the first path and
- the second path is turned on to switch the microphone pin MIC of the earphone interface 10 and the ground pin GND to be connected to the voltage detecting end of the main control circuit 20;
- the main control circuit 20 detects the voltage detecting end when the first path is turned on.
- the voltage on the microphone pin MIC of the earphone interface 10 acquires the first detection voltage
- the main control circuit 20 detects the voltage on the ground pin GND of the earphone interface 10 through the voltage detection terminal and obtains the second when the second path is turned on.
- the main control circuit 20 detects the magnitude of the first detection voltage and the second detection voltage and determines the type of the earphone socket, and controls the switching control circuit 30 to lock the first path or the second path according to the determined earphone socket type output control signal. Pass and output the load wave to the microphone pin of the headphone jack.
- the switching control circuit 30 includes a first path and a second path so that switching between the first path and the second path is possible, and one of the paths is selected for conduction. After initialization, the main control circuit 20 sequentially outputs the first control signal and the second control signal with opposite phases to the switching control circuit 30 to switch the first path and the second path to be turned on, thereby switching the microphone pin MIC of the earphone interface 10.
- the ground pin GND is connected to the voltage detecting end of the main control circuit 20, for example, when the main control circuit 20 outputs the first control signal of the low level, the switching control circuit 30 turns on the first path, so that the headphone interface 10
- the microphone pin MIC is connected to the voltage detecting end of the main control circuit 20; when the main control circuit 20 outputs the second high level control signal, the switching control circuit 30 turns on the second path to make the grounding pin of the earphone interface 10 GND is connected to the voltage detecting terminal of the main control circuit 20.
- the main control circuit 20 detects the microphone pin MIC of the earphone interface 10 through the voltage detecting end.
- the voltage on the first detection voltage is obtained; when the second path of the switching control circuit 30 is turned on, the ground pin GND of the earphone interface 10 is connected to the voltage detecting end of the main control circuit 20, the main control circuit 20 passes the voltage.
- the detecting end detects the voltage on the ground pin GND of the headphone interface 10 and acquires a second detection voltage.
- the ground pin voltage of the earphone socket of the smart terminal is not exactly 0V in actual application, there may be a small voltage (such as 0.1V), and the earphone interface 10 is not connected to the earphone socket or the connection is unstable, The microphone pin MIC of the headphone jack 10 and the voltage on the ground pin GND are not detected, or a small voltage (such as 0.1V) may be detected.
- the main control circuit 20 determines The earphone interface 10 of the communication device is not connected to the earphone socket of the smart terminal, and the main control circuit 20 will continue to switch and output the first control signal and the second control signal, so that the first path and the second path are switched on, and the main control circuit 20 continues.
- a predetermined voltage value eg, 0.2V
- the main control circuit 20 determines that the earphone socket is an international standard earphone socket, and outputs The first control signal locks the first path of the switching control circuit 30 to be turned on, and outputs a load wave to the microphone pin of the earphone socket; when the absolute value of the difference between the first detection voltage and the second detection voltage is greater than the preset voltage value, When the first detection voltage is less than the second detection voltage, the main control circuit 20 determines that the earphone socket is a national standard earphone socket, and outputs a second control signal to lock the second path of the switching control circuit 30 to be turned on, and outputs a load wave to the earphone socket.
- the earphone interface 10 can be matched with the earphone socket, and the load wave outputted by the main control circuit 20 can be passed through the microphone pin MIC of the earphone interface 10. Or the ground pin GND is output to the microphone pin of the earphone socket to realize communication between the communication device and the intelligent terminal.
- the switching control circuit 30 includes an analog switch SW.
- the analog switch SW includes a control contact, a first fixed contact A0, a second fixed contact B0, a first movable contact A1, and a second movable contact. a point B1, a third movable contact A2 and a fourth movable contact B2; wherein the second movable contact B1 is connected to the third movable contact A2, the first movable contact A1 and the fourth movable contact Contact B2 is connected.
- the control contact of the analog switch SW is connected to the control signal output end of the main control circuit 20, the first fixed contact A0 is connected to the microphone pin MIC of the earphone interface 10, and the ground connection of the second fixed contact B0 and the earphone interface 10
- the foot GND is connected, the first movable contact A1 is connected to the load wave output end of the main control circuit 20, and is connected to the voltage detecting end of the main control circuit 20, and the third movable contact A2 is grounded.
- the first fixed contact A0 of the analog switch SW is connected to the first movable contact A1, and the second fixed contact B0 and the third movable contact A2 are connected to form a first path
- the first switch of the analog switch SW A fixed contact A0 is connected to the second movable contact B1
- a second fixed contact B0 is connected to the fourth movable contact B2 to form a second path
- the analog switch SW can be turned on in one of the initial states by default.
- the first fixed contact A0 of the analog switch SW is initially connected to the first movable contact A1, and the second fixed contact B0 is connected.
- the three movable contacts A2 are connected.
- the switching control circuit 30 further includes a first resistor R1 and a second resistor R2; the first resistor R1 is connected between the microphone pin MIC of the headphone interface 10 and the first fixed contact A0 of the analog switch SW; R2 is connected between the ground pin GND of the headphone jack 10 and the second fixed contact B0 of the analog switch SW.
- the first resistor R1 and the second resistor R2 are current limiting resistors for limiting the current flowing into the analog switch SW to prevent the analog switch SW from being damaged due to excessive current.
- the switching control circuit 30 further includes a first capacitor C1 and a third resistor R3; one end of the first capacitor C1 is connected to the microphone pin MIC of the headphone interface 10, and is connected to the first fixed contact A0 of the analog switch SW, The other end of the first capacitor C1 is connected to the ground pin GND of the headphone interface 10, and is connected to the second fixed contact B0 of the analog switch SW; the third resistor R3 is connected in parallel with the first capacitor C1.
- the first capacitor C1 and the third resistor R3 constitute a stabilizing circuit for filtering the interference to stabilize the voltage of the microphone pin of the earphone jack to the headphone interface 10, and the headphone interface 10 and the analog switch SW The impedance matches between.
- the first capacitor C1 and the third resistor R3 filter out interference to stabilize the voltage of the microphone pin of the earphone socket to the headphone interface 10, that is, the voltage detection input pin ADC that stabilizes the analog switch SW input to the microcontroller U1.
- the voltage is such that the voltage detected by the microcontroller U1 is stable.
- the main control circuit 20 includes a microcontroller U1, a second capacitor C2, a fourth resistor R4, and a fifth resistor R5.
- the microcontroller U1 includes a first IO port IO1, a load wave output pin WAVE, and a voltage detection. Input pin ADC.
- the first IO port IO1 is a control signal output end of the main control circuit 20
- the load wave output pin WAVE is used as a load wave output end of the main control circuit 20
- the voltage detection input pin ADC is used as a voltage detecting end of the main control circuit 20.
- the first IO port IO1 is connected to the control contact of the analog switch SW, and the load wave output pin WAVE is connected to the first movable contact A1 of the analog switch SW via the second capacitor C2 and the fourth resistor R4, and the voltage detection input pin ADC and The first movable contact A1 of the analog switch SW is connected and grounded via the fifth resistor R5.
- the load wave output pin WAVE and the voltage detection input pin ADC of the microcontroller U1 are connected to the headphone interface 10 through the analog switch SW, so that the microcontroller U1 can detect the microphone pin MIC and the ground line of the headphone interface 10 through the voltage detection input pin ADC.
- the voltage on the pin GND, the microcontroller U1 can output the load wave to the microphone pin of the headphone jack through the load wave output pin WAVE.
- the second capacitor C2 and the fourth resistor R4 are load wave output loads, and the load wave outputted by the microcontroller U1 is output to the microphone pin of the earphone socket via the second capacitor C2 and the fourth resistor R4, and the second capacitor C2 is a DC blocking capacitor. To avoid interference caused by the microphone pin voltage input of the headphone jack to the load wave output pin WAVE.
- the fifth resistor R5 is used as a pull-down resistor.
- the fifth resistor R5 turns the voltage of the microcontroller U1.
- the detection input pin ADC is pulled low.
- the switching control circuit 30 further includes a first switch S1 and a second switch S2; the microcontroller U1 further includes a second IO port IO2; a contact of the first switch S1 and a first movable contact of the analog switch SW A1 is connected, and the other contact of the first switch S1 is respectively connected to the load wave output end of the main control circuit 20 and the voltage detecting end, that is, in FIG. 3, the other contact of the first switch S1 is connected to the voltage detecting input pin ADC.
- one contact of the second switch S2 is connected to the third movable contact A2 of the analog switch SW, and the second switch The other contact of S2 is grounded; the second IO port IO2 is connected to the control contact of the first switch S1 and the control contact of the second switch S2, respectively.
- the microcontroller U1 can control the first switch S1 and the second switch S2 to be disconnected through the second IO port IO2 output control signal, so that the analog switch SW is in a high-impedance state, avoiding the initialization process of the communication device. There is signal interference.
- FIG. 4 is a schematic structural diagram of a circuit of another embodiment of a communication device according to the present invention.
- the communication device of the present invention further includes a button detecting circuit 40.
- the button detecting circuit 40 includes a manual button K1.
- the microcontroller U1 further includes a third IO port IO3.
- the output of the button detecting circuit 40 The terminal is connected to the third IO port IO3, the button detecting circuit 40 detects the state of the manual button K1 and outputs a detection signal to the third IO port IO3 of the microcontroller U1; when the microcontroller U1 detects that the detection signal changes from a high level When the low level or the duration from low level to high level reaches the first preset switching time (such as 3s), the first IO port IO1 of the microcontroller U1 outputs the first control signal to control the analog switch SW switching.
- the first preset switching time such as 3s
- the first path is turned on; when the microcontroller U1 detects that the detection signal changes from a high level to a low level, or a low level to a high level, the duration reaches a second preset switching time (eg, 6s)
- the first IO port of the microcontroller U1 outputs a first control signal to control the analog switch SW to switch the second path to be turned on.
- the communication device of the present invention can automatically enter the process of detecting the type of the earphone socket.
- the user can press the manual button to select the conduction path of the switching control circuit 30 to match the earphone interface 10 with the earphone socket.
- the manual switch can be manually pressed as needed to switch the analog switch SW channel, so that the earphone interface 10 is Adapt to the headset socket you want to connect.
- the analog switch SW when the user knows that the earphone interface 10 is of the international standard type, and the earphone socket is of the national standard type, and in the initial state, the analog switch SW is turned on, the microphone pin of the earphone interface 10 is connected to the voltage detection input of the microcontroller U1.
- the path of the foot ADC and the load wave output pin WAVE At this time, in order to match the earphone socket, the ground pin GND of the earphone interface 10 needs to be used as a microphone pin, so that the manual button can be pressed to the preset switching time to switch the analog switch.
- the conduction path of the SW causes the analog switch SW to conduct the ground pin GND of the headphone interface 10 and the load wave output pin WAVE path of the microcontroller U1.
- the button detection circuit further includes a high level signal input terminal VCC, a sixth resistor R6, and a seventh resistor R7.
- one end of the manual button K1 is connected to the third IO port IO3, and is connected to the high level signal input terminal VCC via the sixth resistor R6, and the other end of the manual button K1 is grounded via the seventh resistor R7.
- FIG. 5 is a schematic structural diagram of a circuit according to still another embodiment of a communication device according to the present invention.
- one end of the manual button K1 is connected to the third IO port IO3, and is grounded via the sixth resistor R6, and the other button of the manual button K1.
- One end is connected to the high level signal input terminal VCC via the seventh resistor R7.
- the analog switch SW is controlled to turn on the first fixed contact A0 and the first Moving the contact A1, and turning on the second fixed contact B0 and the third movable contact A2, when the first IO port IO1 of the microcontroller U1 outputs a second high level control signal, that is, the first IO port IO1 When set to 1, the analog switch SW is controlled to turn on the first fixed contact A0 and the second movable contact B1, and to turn on the second fixed contact B0 and the fourth movable contact B2.
- the first IO port IO1 of the microcontroller U1 outputs a low level first control signal to the control switch of the analog switch SW, and controls the analog switch SW to turn on the first fixed contact A0 and the first
- the movable contact A1 is turned on, and the second fixed contact B0 and the third movable contact A2 are turned on.
- the microcontroller U1 outputs a control signal (such as a high level signal) through the second IO port IO2 to control the first switch S1 and the second switch S2 to be disconnected, so that the analog switch SW is in a high impedance state.
- the microcontroller U1 outputs another control signal (such as a low level signal) through the second IO port IO2 to control the first switch S1 and the second switch S2 to be closed, so that the earphone interface 10 passes the analog switch SW and The microcontroller U1 is turned on.
- the headphone interface 10 as an international standard headphone interface as an example, when the first IO port IO1 of the microcontroller U1 first outputs a low level first control signal, the first fixed contact A0 of the analog switch SW is first movable. The contact A1 is turned on, and the second fixed contact B0 is connected to the third movable contact A2.
- the microphone pin MIC of the earphone interface 10 passes through the first resistor R1, the first fixed contact A0, and the first The movable contact A1 and the first switch S1 are connected to the voltage detection input pin ADC of the microcontroller U1, and the ground pin GND of the earphone interface 10 passes through the second resistor R2, the second fixed contact B0, and the third movable The contact A2 and the second switch S2 are grounded, and the microcontroller U1 performs AD detection on the voltage on the microphone pin MIC of the earphone interface 10 through the voltage detection input pin ADC to obtain the first detection voltage.
- the first fixed contact A0 of the analog switch SW is connected to the second movable contact B1, and the second fixed contact The point B0 is connected to the fourth movable contact B2.
- the microphone pin MIC of the earphone interface 10 is grounded through the first resistor R1, the first fixed contact A0, the second movable contact B1, and the second switch S2.
- the ground pin GND of the earphone interface 10 passes through the second resistor R2, the second fixed contact B0, the fourth movable contact B2, the first switch S1 and the voltage detection input pin ADC of the microcontroller U1 is turned on, micro The controller U1 performs AD detection on the voltage on the ground pin GND of the earphone interface 10 through the voltage detection input pin ADC to obtain a second detection voltage.
- the microphone pin MIC of the earphone interface 10 is explained at this time. Connect the microphone pin of the earphone socket, and the ground pin GND of the earphone interface 10 is connected to the ground pin of the earphone socket, and the earphone interface 10 is correctly connected with the earphone socket, that is, the earphone interface 10 and the earphone socket are matched, thereby determining the time.
- the earphone jack connected to the earphone interface 10 is an international standard earphone jack.
- the first fixed contact A0 and the first movable contact A1 of the analog switch SW need to be turned on, and the second fixed contact B0 and the third can be turned on.
- Moving contact A2 As can be seen from the above, when the pin voltage of the earphone interface 10 is detected for the second time, the first fixed contact A0 and the second movable contact B1 of the analog switch SW are turned on, and the second fixed contact B0 and the fourth can be The movable contact B2 is turned on, so that the conduction path of the analog switch SW needs to be switched at this time.
- the first IO port IO1 of the microcontroller U1 is switched to the control of outputting the first control signal of the low level to the analog switch SW.
- the contact, the control analog switch SW is switched such that the first fixed contact A0 is connected to the first movable contact A1, and the second fixed contact B0 is connected to the third movable contact A2, and the analog switch SW is controlled to be locked.
- the first fixed contact A0 is connected to the first movable contact A1, and the second fixed contact B0 and the third movable contact A2 are turned on.
- the microcontroller U1 can pass the load wave output pin.
- the WAVE outputs a load wave, and the load wave passes through the fourth resistor R4, the second capacitor C2, the first switch S1, the first movable contact A1, the first fixed contact A0, the first resistor R1, and the microphone of the earphone interface 10.
- the pin MIC is output to the microphone pin of the earphone socket to realize communication between the communication device and the intelligent terminal.
- the microphone pin MIC of the earphone interface 10 is explained at this time.
- Connect the grounding pin of the earphone socket, and the grounding pin GND of the earphone interface 10 is connected to the microphone pin of the earphone socket, and the earphone interface 10 and the earphone socket are not connected correctly, that is, the earphone interface 10 and the earphone socket do not match, thereby determining At this time, the earphone socket connected to the earphone interface 10 is a national standard earphone socket.
- the conduction path of the analog switch SW can be switched, that is, the first fixed contact A0 and the second movable contact B1 of the analog switch SW are switched on, and are turned on.
- the first fixed contact A0 and the second movable contact B1 of the analog switch SW are turned on, and the second fixed contact B0 and the fourth can be The movable contact B2 is turned on, so that it is not necessary to switch the conduction path of the analog switch SW at this time.
- the first IO port IO1 of the microcontroller U1 continuously outputs the second control signal of the high level to the control of the analog switch SW.
- the control analog switch SW continuously turns on the first fixed contact A0 and the second movable contact B1, and turns on the second fixed contact B0 and the fourth movable contact B2, and controls the analog switch SW to be locked in
- the first fixed contact A0 and the second movable contact B1 are turned on, and the second fixed contact B0 and the fourth movable contact B2 are turned on.
- the microcontroller U1 can pass the load wave output pin WAVE.
- the load wave is output, and the load wave passes through the ground of the fourth resistor R4, the second capacitor C2, the first switch S1, the fourth movable contact B2, the second fixed contact B0, the second resistor R2, and the earphone interface 10.
- the pin GND is output to the microphone pin of the earphone socket, that is, the ground pin GND of the earphone interface 10 is used as a microphone pin at this time. Achieve Newsletter device and intelligent terminal.
- the high level signal input by the high level signal input terminal VCC is input to the third IO port IO3 of the microcontroller U1 via the sixth resistor R6.
- the controller U1 detects that the detection signal at the third IO port IO3 is at a high level, which is consistent with the preset initial state, thereby determining that the manual button K1 is in the off state at this time, and the microcontroller U1 does not operate at this time.
- the third IO port IO3 of the microcontroller U1 is equivalent to being connected to the ground through the seventh resistor R7.
- the microcontroller U1 detects that the detection signal at the third IO port IO3 is high. Leveling to a low level, and when the microcontroller U1 detects that the detection signal at the third IO port IO3 changes from a high level to a low level until the first preset switching time
- the microcontroller U1 outputs a first control signal through the first IO port IO1 to control the analog switch SW to switch the first path to be turned on.
- the microcontroller U1 When the microcontroller U1 detects that the third IO port IO3 changes from a high level to a low level, When the duration reaches the second preset switching time (for example, 6s), the microcontroller U1 outputs the second control signal through the first IO port IO1 to control the analog switch SW to switch the second path to be turned on.
- the second preset switching time for example, 6s
- the microcontroller U1 detects that the detection signal at the third IO port IO3 is low due to the pull-down effect of the sixth resistor, and the preset initial The state matches, thereby determining that the manual button K1 is in the off state at this time, and the microcontroller U1 does not operate at this time.
- the manual button K1 is pressed, the high level signal input by the high level signal input terminal VCC is input to the third IO port IO3 of the microcontroller U1 via the seventh resistor R7, and the microcontroller U1 detects the third time.
- the detection signal at the IO port IO3 changes from a low level to a high level, and reaches a first time when the microcontroller U1 detects that the detection signal at the third IO port IO3 changes from a low level to a high level.
- the microcontroller U1 When the preset switching time
- the second preset switching time for example, 6s
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Headphones And Earphones (AREA)
- Telephone Function (AREA)
Abstract
L'invention concerne un dispositif de communication. Le dispositif de communication comprend une interface de casque d'écoute, un circuit de commande maître et un circuit de commande de commutation connecté entre l'interface de casque d'écoute et le circuit de commande maître. L'interface de casque d'écoute est utilisée pour être connectée à une prise de casque d'écoute d'un terminal intelligent. Le circuit de commande maître est utilisé pour délivrer un signal de commande au circuit de communication de commutation. Le circuit de commande de commutation est utilisé pour commuter des canaux conduits sur la base du signal de commande délivré par le circuit de commande maître pour effectuer une commutation entre un contact de microphone et un contact à la masse de l'interface de casque d'écoute en connexion avec un terminal de détection de tension du circuit de commande maître. Le circuit de commande maître est également utilisé pour détecter de manière correspondante, sur la base du canal conduit du circuit de commande de commutation, la tension sur le contact de microphone ou le contact à la masse de l'interface de casque d'écoute, acquérir la tension détectée correspondante et déterminer le type de la prise de casque d'écoute sur la base de cette dernière, ensuite délivrer une porteuse de charge au contact de microphone de la prise de casque d'écoute sur la base du type de la prise de casque d'écoute, permettant ainsi de mettre en œuvre une communication entre le dispositif de communication et le terminal intelligent. La présente invention augmente la polyvalence et la stabilité du dispositif de communication.
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510054474.9A CN104618836A (zh) | 2015-02-02 | 2015-02-02 | 通讯装置 |
| CN201510054474.9 | 2015-02-02 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2016123773A1 true WO2016123773A1 (fr) | 2016-08-11 |
Family
ID=53153079
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2015/072294 Ceased WO2016123773A1 (fr) | 2015-02-02 | 2015-02-05 | Dispositif de communication |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN104618836A (fr) |
| WO (1) | WO2016123773A1 (fr) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106383479A (zh) * | 2016-11-18 | 2017-02-08 | 广州极飞科技有限公司 | 智能电池通信接口兼容电路、智能电池及无人飞行器 |
| CN107071650A (zh) * | 2017-06-26 | 2017-08-18 | 深圳天珑无线科技有限公司 | 耳机检测电路、方法及终端 |
| CN107241115A (zh) * | 2017-06-27 | 2017-10-10 | 歌尔科技有限公司 | 一种分离式通话手环 |
| CN109522261A (zh) * | 2019-01-11 | 2019-03-26 | 歌尔科技有限公司 | 一种串口通信电路及可穿戴设备 |
| CN109788424A (zh) * | 2017-11-15 | 2019-05-21 | 深圳市冠旭电子股份有限公司 | 耳套定型控制装置和耳机 |
| CN116367028A (zh) * | 2021-12-28 | 2023-06-30 | 深圳市三诺数字科技有限公司 | Aux in插座的切换系统、切换电路及信号切换方法 |
Families Citing this family (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106231500A (zh) * | 2016-10-13 | 2016-12-14 | 福建星海通信科技有限公司 | 一种车载多媒体终端的mic切换电路 |
| CN110783777B (zh) * | 2018-07-12 | 2022-02-18 | 中兴通讯股份有限公司 | 一种抗干扰方法、装置及系统 |
| CN110134627B (zh) * | 2019-05-15 | 2021-09-03 | 浙江中控技术股份有限公司 | Io控制系统 |
| CN113473315B (zh) * | 2021-07-31 | 2022-06-28 | 展讯通信(上海)有限公司 | 可提升耳机输出性能的电子装置 |
| CN115525099B (zh) * | 2022-01-11 | 2023-08-11 | 荣耀终端有限公司 | 一种终端设备及检测键盘接入的方法 |
| CN114615591B (zh) * | 2022-05-11 | 2022-08-12 | 浙江地芯引力科技有限公司 | 耳机线序切换电路、方法、芯片、转换器及存储介质 |
| CN115489651B (zh) * | 2022-10-31 | 2024-09-17 | 雅迪科技集团有限公司 | 一种电动车仪表及电动车 |
| CN115954702B (zh) * | 2023-03-10 | 2023-05-23 | 苏州浪潮智能科技有限公司 | 接口、功能线及服务器 |
| CN117014760A (zh) * | 2023-09-05 | 2023-11-07 | 深圳市广和通无线股份有限公司 | 一种耳机线控信号识别方法、装置、设备及音频播放系统 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN203243488U (zh) * | 2013-03-13 | 2013-10-16 | 青岛海信移动通信技术股份有限公司 | 一种耳机转接设备及移动终端 |
| CN203313373U (zh) * | 2013-06-18 | 2013-11-27 | 殷翔 | 具有音量调节功能的通用耳机 |
| CN203761574U (zh) * | 2014-01-15 | 2014-08-06 | 浙江万利九聚自动化技术有限公司 | 不同规格制式的耳机可切换的兼容设备 |
| CN203883981U (zh) * | 2014-05-29 | 2014-10-15 | 包文韬 | 具有麦克风信号mic与gnd自动切换功能的耳机 |
| CN204350278U (zh) * | 2015-02-02 | 2015-05-20 | 深圳市吉芯微半导体有限公司 | 通讯装置 |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1728082A (zh) * | 2005-07-29 | 2006-02-01 | 上海贝豪通讯电子有限公司 | 一种提高耳机接口通用性的方法 |
| CN101719610A (zh) * | 2009-12-30 | 2010-06-02 | 华为终端有限公司 | 一种有线耳机兼容方法和装置 |
| CN102035911A (zh) * | 2010-07-08 | 2011-04-27 | 中兴通讯股份有限公司 | 一种手机耳机接入装置和方法 |
| CN103167368B (zh) * | 2012-02-07 | 2015-12-30 | 吴志勇 | 一种耳机兼容电路及兼容耳机 |
-
2015
- 2015-02-02 CN CN201510054474.9A patent/CN104618836A/zh active Pending
- 2015-02-05 WO PCT/CN2015/072294 patent/WO2016123773A1/fr not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN203243488U (zh) * | 2013-03-13 | 2013-10-16 | 青岛海信移动通信技术股份有限公司 | 一种耳机转接设备及移动终端 |
| CN203313373U (zh) * | 2013-06-18 | 2013-11-27 | 殷翔 | 具有音量调节功能的通用耳机 |
| CN203761574U (zh) * | 2014-01-15 | 2014-08-06 | 浙江万利九聚自动化技术有限公司 | 不同规格制式的耳机可切换的兼容设备 |
| CN203883981U (zh) * | 2014-05-29 | 2014-10-15 | 包文韬 | 具有麦克风信号mic与gnd自动切换功能的耳机 |
| CN204350278U (zh) * | 2015-02-02 | 2015-05-20 | 深圳市吉芯微半导体有限公司 | 通讯装置 |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106383479A (zh) * | 2016-11-18 | 2017-02-08 | 广州极飞科技有限公司 | 智能电池通信接口兼容电路、智能电池及无人飞行器 |
| CN107071650A (zh) * | 2017-06-26 | 2017-08-18 | 深圳天珑无线科技有限公司 | 耳机检测电路、方法及终端 |
| CN107241115A (zh) * | 2017-06-27 | 2017-10-10 | 歌尔科技有限公司 | 一种分离式通话手环 |
| CN107241115B (zh) * | 2017-06-27 | 2022-06-14 | 歌尔科技有限公司 | 一种分离式通话手环 |
| CN109788424A (zh) * | 2017-11-15 | 2019-05-21 | 深圳市冠旭电子股份有限公司 | 耳套定型控制装置和耳机 |
| CN109788424B (zh) * | 2017-11-15 | 2023-12-15 | 深圳市冠旭电子股份有限公司 | 耳套定型控制装置和耳机 |
| CN109522261A (zh) * | 2019-01-11 | 2019-03-26 | 歌尔科技有限公司 | 一种串口通信电路及可穿戴设备 |
| CN116367028A (zh) * | 2021-12-28 | 2023-06-30 | 深圳市三诺数字科技有限公司 | Aux in插座的切换系统、切换电路及信号切换方法 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104618836A (zh) | 2015-05-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2016123773A1 (fr) | Dispositif de communication | |
| JP5161153B2 (ja) | オーディオ・デバイスの認識装置および携帯式コンピュータ | |
| TWI554122B (zh) | 藉由耳機介面供電的電子裝置及耳機電源線 | |
| WO2013000354A1 (fr) | Dispositif de communication mobile et son procédé de commande de volume | |
| US20110029703A1 (en) | Electronic device capable of automatically switching between a master mode and a slave mode | |
| WO2014190513A1 (fr) | Circuit de charge et procédé pour empêcher une inversion d'alimentation électrique de charge | |
| WO2016045559A1 (fr) | Système d'alimentation électrique prenant en charge la relève avec redondance et la connexion à chaud | |
| WO2018161623A1 (fr) | Support électrique de maintien et son système de commande | |
| WO2017075843A1 (fr) | Dispositif de commande de balayage | |
| WO2018192164A1 (fr) | Procédé, dispositif et système permettant de réduire la consommation d'énergie d'une interface de type c | |
| WO2018032681A1 (fr) | Procédé de jumelage bluetooth, et dispositif bluetooth | |
| KR20140102389A (ko) | 잭 검출기, 검출 장치, 및 검출 방법 | |
| WO2019203518A1 (fr) | Dispositif électronique comprenant un diplexeur apte à ajuster une fréquence de coupure conjointement avec un ajustement d'une bande de fréquences de réception d'un duplexeur | |
| WO2015021756A1 (fr) | Commande à distance électromagnétique et son procédé de commande | |
| WO2018045854A1 (fr) | Procédé et système de réglage de la taille d'une police d'interface de terminal mobile | |
| WO2018129973A1 (fr) | Procédé et appareil de commande d'alimentation électrique, support d'informations, et dispositif électronique | |
| WO2017032060A1 (fr) | Procédé et appareil de fonctionnement d'interface et montre intelligente | |
| WO2018023927A1 (fr) | Procédé et appareil de réutilisation d'interface d'écouteur | |
| CN114697828A (zh) | 功放控制电路、电源控制电路及音频设备 | |
| WO2015058508A1 (fr) | Procédé de commande fondé sur la technologie de communication bluetooth, dispositif commandé et dispositif de commande | |
| JP2003318658A (ja) | ショック音防止回路 | |
| WO2015074293A1 (fr) | Circuit de régulation de rétroéclairage et dispositif d'affichage à cristaux liquides | |
| WO2017045418A1 (fr) | Procédé et système basés sur la capacité de mémoire restante pour ajuster une fréquence de rafraîchissement de l'image d'une caméra | |
| WO2018006392A1 (fr) | Procédé de commande d'appareil électroménager basé sur un bracelet intelligent, et bracelet intelligent | |
| WO2016095255A1 (fr) | Circuit de protection d'interface internet et télévision |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15880729 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 15880729 Country of ref document: EP Kind code of ref document: A1 |