CN111800697A - Charging box, earphone system, charging control method and storage medium - Google Patents

Charging box, earphone system, charging control method and storage medium Download PDF

Info

Publication number
CN111800697A
CN111800697A CN202010635586.4A CN202010635586A CN111800697A CN 111800697 A CN111800697 A CN 111800697A CN 202010635586 A CN202010635586 A CN 202010635586A CN 111800697 A CN111800697 A CN 111800697A
Authority
CN
China
Prior art keywords
signal
contact
electrically connected
earphone
circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010635586.4A
Other languages
Chinese (zh)
Other versions
CN111800697B (en
Inventor
马楠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Wentai Information Technology Co Ltd
Original Assignee
Shanghai Wentai Information Technology 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 Shanghai Wentai Information Technology Co Ltd filed Critical Shanghai Wentai Information Technology Co Ltd
Priority to CN202010635586.4A priority Critical patent/CN111800697B/en
Publication of CN111800697A publication Critical patent/CN111800697A/en
Application granted granted Critical
Publication of CN111800697B publication Critical patent/CN111800697B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • H02J7/0036Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits using connection detecting circuits
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/007Regulation of charging or discharging current or voltage
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1025Accumulators or arrangements for charging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1091Details not provided for in groups H04R1/1008 - H04R1/1083

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The embodiment of the invention provides a charging box, an earphone system, a charging control method and a storage medium, and relates to the field of wireless earphones. The charging box comprises a first controller, a box entering detection circuit, a signal sending circuit and a first contact, wherein the first controller comprises a signal output interface and a signal receiving interface, the signal output interface, the signal sending circuit and the first contact are sequentially and electrically connected, the box entering detection circuit is electrically connected with the first contact, and the signal receiving interface is electrically connected between the box entering detection circuit and the first contact. Because only the first controller is utilized to output different signals through the signal output interface, the signal transmitting circuit can respectively transmit power signals or communication signals, the power signals and the communication signals are not respectively controlled by utilizing a single analog switch while the function multiplexing is realized, and only one I/O port is used for controlling, thereby avoiding using a large number of MOS tubes, saving the cost and releasing the PCB space.

Description

Charging box, earphone system, charging control method and storage medium
Technical Field
The invention relates to the field of wireless earphones, in particular to a charging box, an earphone system, a charging control method and a storage medium.
Background
A TWS (True Wireless Stereo) headset includes two parts, a charging box and a headset. Charging and communication between a charging box of a TWS headset and a single headset on the market at present are generally carried out by using two pins, so that one pin is used for communication and charging, and the other pin is used as a reference ground. Since the voltage of the charging power supply is generally 5V, the level of the communication signal of the charging box is generally 3.3V, and the level of the communication signal of the earphone is generally 1.8V or even lower, it is necessary to isolate the communication signal from the power supply signal.
In the prior art, there are generally two isolation methods: firstly, the charging box and the earphone use a single analog switch to separately control a power supply signal and a communication signal; secondly, the charging box and the earphone use a large number of MOS tube discrete devices to respectively build a charging circuit and a communication circuit. The analog switching devices used in the first solution are expensive; the second method adds an Input/Output (I/O) port to control the switching of the MOS transistors, and uses a large number of MOS transistors to occupy a large space of a Printed Circuit Board (PCB), which greatly limits the design of the earphone. Meanwhile, when the charging box and the two earphones use TTL (Transistor-Transistor Logic) serial ports for communication, in order to avoid disordered transmission/reception of the master interface and the slave interface and even hardware damage, two groups of serial ports are mostly used for communication respectively, and the cost of the main control platform of the charging box is increased.
Disclosure of Invention
In view of the above, the present invention provides a charging box, an earphone system, a charging control method, and a storage medium to solve the above problems.
Embodiments of the invention may be implemented as follows:
in a first aspect, an embodiment of the present invention provides a charging box, including: the first controller comprises a signal output interface and a signal receiving interface, the signal output interface, the signal transmitting circuit and the first contact are sequentially and electrically connected, the box entering detection circuit is electrically connected with the first contact, and the signal receiving interface is electrically connected between the box entering detection circuit and the first contact;
the box-entering detection circuit is used for outputting different voltage values to the signal receiving interface according to the connection state of the first contact and the earphone and the state of the signal sending circuit;
the first controller is used for reading the voltage value of the signal receiving interface when the signal sending circuit is in an open circuit state, and judging whether an earphone is inserted into the charging box according to the voltage value;
the first controller is further used for sending a first communication signal to the earphone through the signal output interface, the signal sending circuit and the first contact in sequence when the earphone is inserted into the charging box;
the first controller is further configured to receive, through the signal receiving interface, a second communication signal fed back by the earphone after receiving the first communication signal;
the first controller is further used for sending a charging control signal to the signal sending circuit when receiving the second communication signal;
the signal transmitting circuit is used for responding to the charging control signal and conducting so that an accessed power supply signal can charge the earphone sequentially through the signal transmitting circuit and the first contact.
In an optional embodiment, the signal sending circuit includes a first switch module and a second switch module, a first power supply, the second switch module and the first contact are sequentially electrically connected, the signal output interface is electrically connected to the first switch module, and the first switch module is further electrically connected to a control terminal of the second switch module;
the first switch module is used for responding to a control signal output by the first controller and being switched off or on;
the second switch module is used for being conducted when the first switch module is conducted, so that the power supply signal charges the earphone through the second switch module and the first contact;
the second switch module is also used for being switched off when the first switch module is switched off so as to prevent the power supply signal from being transmitted to the earphone.
In an optional implementation manner, the signal sending circuit further includes a first resistor, the first switch module includes a first switch tube, the second switch module includes a second switch tube, a gate of the first switch tube is electrically connected to the signal output interface, a source of the first switch tube is grounded, a drain of the first switch tube is electrically connected to a gate of the second switch tube, a source of the second switch tube is electrically connected to a first power supply, a drain of the second switch tube is electrically connected to the first contact, one end of the first resistor is electrically connected between the drain of the second switch tube and the first contact, and another end of the first resistor is grounded.
In an optional embodiment, the in-box detection circuit includes a third switch tube, a first diode, and a second resistor, the first controller further includes a detection enable interface, the detection enable interface is electrically connected to a gate of the third switch tube, a source of the third switch tube is electrically connected to a second power supply, a drain of the third switch tube is electrically connected to an anode of the first diode after being connected to the second resistor in series, a cathode of the first diode is electrically connected to the first contact, and the signal receiving interface is electrically connected between the second resistor and the anode of the first diode.
In an optional embodiment, the charging box further includes a second contact, the box-entering detection circuit further includes a second diode, the signal output interface, the signal sending circuit and the second contact are sequentially electrically connected, the source of the third switching tube is further electrically connected to the anode of the second diode, the cathode of the second diode is electrically connected to the second contact, and the anode of the first diode is further electrically connected to the anode of the first diode.
In an optional embodiment, the first controller is further configured to send a third communication signal to the headset at regular time to detect the power of the headset;
the first controller is further used for receiving a fourth communication signal fed back by the earphone according to the third communication signal and analyzing the fourth communication signal to obtain the electric quantity of the earphone;
the first controller is also used for sending a power-off control signal to the signal sending circuit when the electric quantity is greater than or equal to a preset threshold value;
the signal transmitting circuit is used for responding to the power-off control signal and opening.
In a second aspect, an embodiment of the present invention provides an earphone system, where the earphone system includes an earphone and any one of the foregoing charging boxes, the earphone includes a second controller, a signal transmission circuit, and a third contact corresponding to the first contact, the second controller includes a signal input port and a signal output port, the third contact, the signal transmission circuit, and the signal input port are electrically connected in sequence, and the signal output port is electrically connected between the third contact and the signal transmission circuit;
the third contact is used for receiving a first communication signal transmitted by the first contact and transmitting the first communication signal to the signal input port through the signal transmission circuit;
the second controller is used for responding to the first communication signal to generate a second communication signal and transmitting the second communication signal to a signal receiving interface of the first controller through the signal output port, the third contact, the first contact and the box entering detection circuit.
In an optional implementation manner, the signal transmission circuit includes a fourth switch tube, a third resistor, a fourth resistor, and a fifth resistor, the third contact is grounded through the third resistor and the fourth resistor in sequence, a gate of the fourth switch tube is electrically connected between the third resistor and the fourth resistor, a drain of the fourth switch tube is connected to a third power supply, a source of the fourth switch tube is grounded after being connected in series with the fifth resistor, the signal input port is electrically connected between the source of the fourth switch tube and the fifth resistor, and the signal output port is electrically connected between the third resistor and the third contact.
In a third aspect, an embodiment of the present invention provides a charging control method applied to the charging box described above, where the charging control method includes the following steps performed by using the first controller:
when the signal sending circuit is in an open circuit state, reading a voltage value of the signal receiving interface, and judging whether an earphone is inserted into the charging box according to the voltage value, wherein the voltage value of the signal receiving interface is obtained by adjusting the box entering detection circuit according to the voltage value of the first contact;
when an earphone is inserted into the charging box, a first communication signal is sent to the earphone sequentially through the signal output interface, the signal sending circuit and the first contact;
receiving a second communication signal fed back by the earphone after receiving the first communication signal through the signal receiving interface;
and when the second communication signal is received, sending a charging control signal to the signal sending circuit so that the signal sending circuit is conducted in response to the charging control signal, and the accessed power supply signal is enabled to sequentially pass through the signal sending circuit and the first contact to charge the earphone.
In a fourth aspect, an embodiment of the present invention provides a storage medium, where a computer program is stored, and when the computer program is executed by a first controller, the steps of the charging control method according to the foregoing embodiment are implemented.
According to the charging box and the related content provided by the invention, the signal sending circuit can respectively send the power supply signal or the communication signal only by utilizing the first controller to output different signals through the signal output interface, the power supply signal and the communication signal are respectively controlled without utilizing a single analog switch while the function multiplexing is realized, only one I/O port is used for controlling, a large number of MOS (metal oxide semiconductor) tubes are avoided, the cost is saved, and the PCB space can be released.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a block diagram of a circuit structure of an earphone system provided in the present invention;
fig. 2 is a block diagram of a circuit structure of a signal transmission circuit according to the present invention;
FIG. 3 is a circuit diagram of a signal transmitting circuit;
FIG. 4 is a circuit diagram of a drop-in detection circuit;
FIG. 5 is a circuit diagram of a signal transmission circuit;
fig. 6 is a flowchart of a charging control method according to the present invention.
Icon: 100-a headphone system; 200-a charging box; 210-a first controller; 220-in-box detection circuitry; 230-a signal transmission circuit; 232-a first switch module; 234-a second switch module; 240 — a first contact; 300-a headset; 310-a second controller; 320-a signal transmission circuit; 330-third contact.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present invention, it should be noted that if the terms "upper", "lower", "inside", "outside", etc. indicate an orientation or a positional relationship based on that shown in the drawings or that the product of the present invention is used as it is, this is only for convenience of description and simplification of the description, and it does not indicate or imply that the device or the element referred to must have a specific orientation, be constructed in a specific orientation, and be operated, and thus should not be construed as limiting the present invention.
Furthermore, the appearances of the terms "first," "second," and the like, if any, are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance. It should be noted that the features of the embodiments of the present invention may be combined with each other without conflict.
The invention provides an earphone system 100, which can realize that charging and communication share one circuit, save the manufacturing cost and release the PCB space. Fig. 1 is a block diagram of a circuit structure of an earphone system 100 according to the present invention. The earphone system 100 includes a charging box 200 and an earphone 300.
The charging box 200 includes a first controller 210, a box entering detection circuit 220, a signal transmitting circuit 230 and a first contact 240, the first controller 210 includes a signal output interface TX1, a signal receiving interface RX1 and a detection enable interface CHECK _ EN, the signal output interface TX1, the signal transmitting circuit 230 and the first contact 240 are electrically connected in sequence, the box entering detection circuit 220 is electrically connected with the first contact 240, the signal receiving interface RX1 is electrically connected between the box entering detection circuit 220 and the first contact 240, and the detection enable interface CHECK _ EN is electrically connected with the box entering detection circuit 220.
The earphone 300 includes a second controller 310, a signal transmission circuit 320, and a third contact 330 disposed corresponding to the first contact 240, the second controller 310 includes a signal input port RX2 and a signal output port TX2, the third contact 330, the signal transmission circuit 320, and the signal input port RX2 are electrically connected in sequence, and the signal output port TX2 is electrically connected between the third contact 330 and the signal transmission circuit 320.
It should be noted that the first contact 240 and the third contact 330 are pogopins, and when the earphone 300 is inserted into the charging box 200, the first contact 240 and the third contact 330 are in contact with each other and are electrically connected to each other, so that a power signal or a communication signal is transmitted. It should be noted that the charging box 200 and the earphone 300 further include another pair of contacts, and the other pair of contacts are both grounded as a reference ground.
In addition, only one earphone 300 is shown in fig. 1, and the earphone 300 may be a left-ear earphone or a right-ear earphone, which is not limited herein. In practice, however, two earphones 300 are usually provided in one charging box 200, so that the charging box 200 may further include a second contact (not shown), and the signal output interface TX1, the signal transmitting circuit 230 and the second contact are electrically connected in turn, and the second contact is used for charging another earphone 300 or communicating with another earphone 300.
The signal transmitting circuit 230 is used for transmitting a power signal or a communication signal. Referring to fig. 2, a block diagram of a circuit structure of the signal transmitting circuit 230 according to the present invention is shown. The signal transmitting circuit 230 includes a first switch module 232 and a second switch module 234, the first power VCC _5V, the second switch module 234 and the first contact 240 are electrically connected in sequence, the signal output interface TX1 is electrically connected to the first switch module 232, and the first switch module 232 is further electrically connected to a control terminal of the second switch module 234.
The first switch module 232 is configured to be turned off or turned on in response to a control signal output by the first controller 210. The second switching module 234 is turned on or off according to the state of the first switching module 232. In an alternative embodiment, the second switching module 234 is configured to be turned on when the first switching module 232 is turned on, and is configured to be turned off when the first switching module 232 is turned off.
It is to be understood that when the first switch module 232 is turned on, the second switch module 234 is also turned on, and the power signal outputted from the first power source VCC _5V can be transmitted to the first contact 240 through the second switch module 234 to charge the headset 300; when the first switch module 232 is turned off and the second switch module 234 is also turned off, the power signal outputted by the first power source VCC _5V cannot be transmitted to the first contact 240, and thus the earphone 300 cannot be charged.
In addition, the signal transmitting circuit 230 may also transmit communication signals. Specifically, the first controller 210 may control the first switch module 232 to be turned on or off according to a preset encoding rule, and correspondingly, the second switch module 234 is also turned on or off, so that the first contact 240 may sequentially output high/low level signals as the communication signals according to the encoding rule, and after receiving the communication signals, the earphone 300 decodes the communication signals according to a preset decoding rule, so as to obtain information included in the communication signals.
In an alternative embodiment, the first power VCC _5V may output a 5V power signal.
Fig. 3 is a circuit diagram of the signal transmitting circuit 230. The first switch module 232 includes a first switch tube Q1, the second switch module 234 includes a second switch tube Q2, a gate of the first switch tube Q1 is electrically connected to the signal output interface TX1, a source of the first switch tube Q1 is grounded, a drain of the first switch tube Q1 is electrically connected to a gate of the second switch tube Q2, a source of the second switch tube Q2 is electrically connected to the first power source VCC _5V, and a drain of the second switch tube Q2 is electrically connected to the first contact 240.
In addition, in an alternative embodiment, the signal transmitting circuit 230 further includes a first resistor R1, one end of the first resistor R1 is electrically connected between the source of the second switch transistor Q2 and the first contact 240, and the other end of the first resistor R1 is grounded.
In addition, referring to fig. 3, the signal transmitting circuit 230 further includes a sixth resistor R6, a seventh resistor R7, and a first capacitor C1, wherein one end of the sixth resistor R6 is electrically connected to the gate of the second switch Q2, the other end of the sixth resistor R6 is electrically connected to the source of the second switch Q2, one end of the seventh resistor R7 is electrically connected to the gate of the first switch Q1, the other end of the seventh resistor R7 is electrically connected to the source of the first switch Q1, one end of the first capacitor C1 is electrically connected between the source of the second switch Q2 and the first power VCC _5V, and the other end of the first capacitor C1 is grounded.
In an alternative embodiment, the first switch Q1 is an N-MOS transistor, and the second switch Q2 is a P-MOS transistor. The control terminal of the second switching module 234 is the gate of the second switching transistor Q2. Specifically, the first switch tube Q1 may be of the type FET-P-RTR030P02, and the second switch tube Q2 may be of the type FET-N-2SK3541T 2L.
As can be seen from fig. 3, if the first controller 210 outputs a high-level signal through the signal output interface TX1, the first switch Q1 is turned on, and the gate of the second switch Q2 is pulled down to ground, so that the second switch Q2 is also turned on, and the first power VCC _5V can output a power signal to the first contact 240 through the second switch module 234 of the signal transmitting circuit 230; if the first controller 210 outputs a low level signal through the signal output interface TX1, the first switch Q1 is turned off, which causes the second switch Q2 to be also turned off, so that the power signal output by the first power VCC _5V cannot be transmitted to the first contact 240; if the first control module outputs a high/low level signal, the first switch Q1 switches on/off state according to the high/low level signal, so that the second control module also switches on/off state, and the first contact 240 also outputs a high/low level signal according to the state of the second control module.
The in-box detection circuit 220 is used for detecting whether the earphone 300 is inserted into the charging box 200, and for outputting different voltage values to the signal receiving interface RX1 according to the connection state of the first contact 240 and the earphone 300 and the state of the signal transmission circuit 230. Please refer to fig. 4, which is a circuit diagram of the in-box detection circuit 220. The in-box detection circuit 220 includes a third switch Q3, a first diode D1, a second resistor R2 and an eighth resistor R8, a gate of the third switch Q3 is electrically connected to the detection enable interface CHECK _ EN, a source of the third switch Q3 is electrically connected to the second power supply VDD _3.3V, a drain of the third switch Q3 is electrically connected to an anode of the first diode D1 after being connected in series to the second resistor R2, a cathode of the first diode D1 is connected to VBAT _ L in fig. 3, a signal receiving interface RX1 is electrically connected between the second resistor R2 and the anode of the first diode D1, one end of the eighth resistor R8 is electrically connected to the gate of the third switch Q3, and the other end of the eighth resistor R8 is electrically connected to a source of the third switch Q3.
It should be noted that VBAT _ L is set according to the present invention for the convenience of the reader to intuitively determine that the cathode of the first diode D1 is actually grounded through the first resistor R1. Since the first contact 240 is connected to the same node as the VBAT _ L port in fig. 3, the cathode of the first diode D1 connected to VBAT _ L is substantially equivalent to the cathode of the first diode D1 electrically connected to the first contact 240.
In an alternative embodiment, the third transistor Q3 is a P-MOS transistor, for example, the third transistor Q3 may be of the type FET-P-RTR030P 02. Therefore, when the first controller 210 outputs a low signal to the gate of the third transistor Q3 through the CHECK enable interface CHECK _ EN, the third transistor Q3 is turned on. Therefore, by default, the detection enable interface CHECK _ EN continuously outputs a low level signal to ensure that the in-box detection circuit 220 can operate normally.
In another alternative embodiment, the third switching transistor Q3 may also be an N-MOS transistor. Therefore, when the first controller 210 outputs a high signal to the gate of the third transistor Q3 through the CHECK enable interface CHECK _ EN, the third transistor Q3 is turned on. Therefore, by default, the detection enable interface CHECK _ EN continuously outputs a high level signal to ensure that the in-box detection circuit 220 can operate normally.
However, fig. 4 is a circuit diagram of the in-box detection circuit 220 when only one earphone 300 is connected to the charging box 200. However, in practical applications, two earphones 300 are usually provided in one charging box 200, so the box-entering detection circuit 220 further includes a second diode D2, the source of the third switch Q3 is further electrically connected to the anode of the second diode D2 after being connected in series with the second resistor R2, and the cathode of the second diode D2 is electrically connected to the second contact.
It can be seen that by providing the first diode D1 and the second diode D2, when two earphones 300 send different serial port signals to the earphones 300 simultaneously (for example, one earphone 300 sends a high level, and the other earphone 300 sends a low level) due to a fault, the first diode D1 and the second diode D2 can effectively isolate the high level, and only transmit the low level signal to the signal receiving interface RX1, thereby avoiding the hardware damage of the charging box 200.
In addition, the first diode D1 and the second diode D2 can isolate the power signal when the charging box 200 charges the earphone 300. When the charging box 200 charges the earphone 300, the voltage value of the third contact 330 is the power voltage, and at this time, the voltages of the first diode D1 and the second diode D2 are reversely biased and cannot be conducted, thereby realizing the isolation of the power signal.
Fig. 5 is a circuit diagram of the signal transmission circuit 320. The signal transmission circuit 320 includes a fourth switch Q4, a third resistor R3, a fourth resistor R4 and a fifth resistor R5, the third contact 330 is grounded through the third resistor R3 and the fourth resistor R4, the gate of the fourth switch Q4 is electrically connected between the third resistor R3 and the fourth resistor R4, the drain of the fourth switch Q4 is connected to the third power source VBUCK _1.7V, the source of the fourth switch Q4 is connected in series with the fifth resistor R5 and then grounded, the signal input port RX2 is electrically connected between the source of the fourth switch Q4 and the fifth resistor R5, and the signal output port TX2 is electrically connected between the third resistor R3 and the third contact 330.
It can be seen that when the third contact 330 is switched on with a high level signal, the fourth switching tube Q4 is turned on, so as to input a power signal to the second controller 310, so as to charge the earphone 300; when the third contact 330 is connected to a serial port signal (communication signal), the fourth switching tube Q4 switches the on/off state according to the serial port signal, so as to change the voltage value at the signal receiving port, so that the second controller 310 reads the level change state of the signal receiving port, and obtains the information transmitted by the charging box 200 according to the level change state.
In addition, in an alternative embodiment, the signal transmission circuit 320 further includes a third diode D3, an anode of the third diode D3 is electrically connected to the signal output port TX2, and a cathode of the third diode D3 is electrically connected between the third contact 330 and the third resistor R3. By providing the third diode D3, the voltage at the signal output port TX2 and the third contact 330 can be isolated, so that the output signal of the second controller 310 is prevented from being affected by the voltage at the third contact 330.
Referring to fig. 3 to 5, the principle of the charging box 200 for detecting whether the earphone 300 is inserted is as follows: when the earphone 300 is not inserted into the charging box 200, the drain of the third switching tube Q3 is serially connected to the second resistor R2, the first diode D1, and the first resistor R1 in sequence, and then grounded, so that the voltage value at the signal receiving interface RX1 is the first voltage value, and the first voltage value satisfies:
Figure BDA0002568973000000111
when the earphone 300 is inserted into the charging box 200 and the charging box 200 does not charge the earphone 300 (the signal transmitting circuit 230 is in an open circuit state), the drain of the third switching tube Q3 is connected in series with the second resistor R2, the first diode D1, the third resistor R3, and the fourth resistor R4 in sequence and then grounded, so that the voltage value at the signal receiving interface RX1 is a second voltage value which satisfies the following requirements:
Figure BDA0002568973000000112
when the earphone 300 is inserted into the charging box 200 and the charging box 200 charges the earphone 300 (the signal transmitting circuit 230 is in an on state), the first diode D1 is turned off, so that the voltage value at the signal receiving interface RX1 is VDD.
It should be noted that the equivalent resistance formed by the third resistor R3 and the fourth resistor R4 cannot be the same as the resistance of the first resistor R1. Therefore, the first controller 210 can determine whether the earphone 300 is inserted into the charging box 200 according to the voltage value at the signal receiving interface RX1 when the signal transmitting circuit 230 is in the open state.
In addition, the first controller 210 is further configured to transmit a first communication signal to the headset 300 through the signal output interface TX1, the signal transmission circuit 230, and the first contact 240 in sequence when the headset 300 is inserted into the charging box 200. It is understood that the first controller 210 may control the signal transmitting circuit 230 to be turned on or off according to a preset encoding rule to generate a corresponding first communication signal, and transmit the first communication signal to the headset 300 through the first contact 240.
The first controller 210 is further configured to receive, through the signal receiving interface RX1, a second communication signal fed back by the headset 300 after receiving the first communication signal, and send a charging control signal to the signal sending circuit 230 when receiving the second communication signal, where the signal sending circuit 230 is configured to be turned on in response to the charging control signal, so that the received power signal sequentially passes through the signal sending circuit 230 and the first contact 240 to charge the headset 300.
After detecting that the earphone 300 is inserted into the charging box 200, the first controller 210 sends a first communication signal to the earphone 300 and receives a second communication signal fed back by the earphone 300, so as to ensure that the earphone 300 is charged after a communication handshake is completed to determine that the charging box 200 is in good contact with the earphone 300.
In an alternative embodiment, the charge control signal may be a high level signal.
The first controller 210 is further configured to send a third communication signal to the earphone 300 at regular time to detect the power amount of the earphone 300, receive a fourth communication signal fed back by the earphone 300 according to the third communication signal, and analyze the fourth communication signal to obtain the power amount of the earphone 300, and the first controller 210 is further configured to send a power-off control signal to the signal sending circuit 230 when the power amount is greater than or equal to a preset threshold, and the signal sending circuit 230 is configured to turn off in response to the power-off control signal.
It should be noted that the signal transmitting circuit 230 can only transmit the power signal or the communication signal at a time, and cannot transmit the power signal and the communication signal at the same time. During the charging of the earphone 300 by the charging box 200, the first controller 210 sends a third communication signal to the earphone 300 at regular time to request to acquire the power of the earphone 300, and sends a power-off control signal to the signal sending circuit 230 when the power is greater than or equal to a preset threshold value, so that the charging box 200 stops charging the earphone 300, and the damage to the earphone 300 due to overcharge can be effectively avoided.
In an alternative embodiment, the power down control signal may actually be a low level signal.
The third contact 330 is used for receiving the first communication signal transmitted by the first contact 240 and transmitting the first communication signal to the signal input port RX2 through the signal transmission circuit 320, and the second controller 310 is used for generating a second communication signal in response to the first communication signal and transmitting the second communication signal to the signal receiving interface RX1 of the first controller 210 through the signal output port TX2, the third contact 330, the first contact 240 and the in-box detection circuit 220.
When the earphone 300 is inserted into the charging box 200, the third contact 330 is connected to the first contact 240 and receives the first communication signal transmitted from the first contact 240. The earphone 300 receives the first communication signal and decodes the first communication signal according to a preset decoding rule to obtain corresponding information, and generates a second communication signal. When transmitting the second communication signal, the earphone 300 is transmitted to the signal receiving interface RX1 of the charging box 200 through the signal output port TX2, the third contact 330 and the first contact 240, and is thus input to the first controller 210.
That is, the signal receiving interface RX1 can be a charging detection interface, and can also serve as a serial signal receiving interface, so that function multiplexing is realized, and waste of I/O resources of the first controller 210 is avoided.
The invention also provides a charging control method applied to the charging box 200. Referring to fig. 6, the charging control method includes:
s601, when the signal transmitting circuit 230 is in the open state, reads the voltage value of the signal receiving interface RX1, and determines whether the earphone 300 is inserted into the charging box 200 according to the voltage value.
S602, when the headset 300 is inserted into the charging box 200, the first communication signal is transmitted to the headset 300 through the signal output interface TX1, the signal transmitting circuit 230, and the first contact 240 in sequence.
S603, the second communication signal fed back by the headset 300 after receiving the first communication signal is received through the signal receiving interface RX 1.
S604, when receiving the second communication signal, sends a charging control signal to the signal sending circuit 230, so that the signal sending circuit 230 is turned on in response to the charging control signal, and the connected power signal passes through the signal sending circuit 230 and the first contact 240 in sequence to charge the earphone 300.
The present invention further provides a storage medium, wherein the storage medium stores a computer program, and the computer program is executed by the first controller 210 to implement the steps of the charging control method.
To sum up, the embodiment of the present invention provides a charging box, an earphone system, a charging control method and a storage medium, the charging box includes a first controller, a box-in detection circuit, a signal transmission circuit and a first contact, the first controller includes a signal output interface and a signal receiving interface, the signal output interface, the signal transmission circuit and the first contact are electrically connected in sequence, the box-in detection circuit is electrically connected with the first contact, the signal receiving interface is electrically connected between the box-in detection circuit and the first contact, the first controller is configured to read a voltage value of the signal receiving interface when the signal transmission circuit is in an open circuit state, determine whether an earphone is inserted into the charging box according to the voltage value, and when the earphone is inserted into the charging box, send a first communication signal to the earphone through the signal output interface, the signal transmission circuit and the first contact in sequence, and receive a second communication signal fed back by the earphone after receiving the first communication signal through the signal receiving interface, when the second communication signal is received, the charging control signal is sent to the signal sending circuit, so that the signal sending circuit is conducted in response to the charging control signal, and the connected power supply signal sequentially passes through the signal sending circuit and the first contact to charge the earphone. Because only the first controller is utilized to output different signals through the signal output interface, the signal transmitting circuit can respectively transmit power signals or communication signals, the power signals and the communication signals are not respectively controlled by utilizing a single analog switch while the function multiplexing is realized, and only one I/O port is used for controlling, thereby avoiding using a large number of MOS tubes, saving the cost and releasing the PCB space.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A charging box characterized by comprising: the first controller comprises a signal output interface and a signal receiving interface, the signal output interface, the signal transmitting circuit and the first contact are sequentially and electrically connected, the box entering detection circuit is electrically connected with the first contact, and the signal receiving interface is electrically connected between the box entering detection circuit and the first contact;
the box-entering detection circuit is used for outputting different voltage values to the signal receiving interface according to the connection state of the first contact and the earphone and the state of the signal sending circuit;
the first controller is used for reading the voltage value of the signal receiving interface when the signal sending circuit is in an open circuit state, and judging whether an earphone is inserted into the charging box according to the voltage value;
the first controller is further used for sending a first communication signal to the earphone through the signal output interface, the signal sending circuit and the first contact in sequence when the earphone is inserted into the charging box;
the first controller is further configured to receive, through the signal receiving interface, a second communication signal fed back by the earphone after receiving the first communication signal;
the first controller is further used for sending a charging control signal to the signal sending circuit when receiving the second communication signal;
the signal transmitting circuit is used for responding to the charging control signal and conducting so that an accessed power supply signal can charge the earphone sequentially through the signal transmitting circuit and the first contact.
2. The charging box according to claim 1, wherein the signal transmission circuit comprises a first switch module and a second switch module, a first power supply, the second switch module and the first contact are electrically connected in sequence, the signal output interface is electrically connected with the first switch module, and the first switch module is further electrically connected with a control terminal of the second switch module;
the first switch module is used for responding to a control signal output by the first controller and being switched off or on;
the second switch module is used for being conducted when the first switch module is conducted, so that the power supply signal charges the earphone through the second switch module and the first contact;
the second switch module is also used for being switched off when the first switch module is switched off so as to prevent the power supply signal from being transmitted to the earphone.
3. The charging box according to claim 2, wherein the signal transmission circuit further comprises a first resistor, the first switch module comprises a first switch tube, the second switch module comprises a second switch tube, a gate of the first switch tube is electrically connected to the signal output interface, a source of the first switch tube is grounded, a drain of the first switch tube is electrically connected to a gate of the second switch tube, a source of the second switch tube is electrically connected to a first power supply, a drain of the second switch tube is electrically connected to the first contact, one end of the first resistor is electrically connected between the drain of the second switch tube and the first contact, and the other end of the first resistor is grounded.
4. The charging box of claim 1, wherein the box-entering detection circuit comprises a third switch, a first diode and a second resistor, the first controller further comprises a detection enabling interface, the detection enabling interface is electrically connected with a gate of the third switch, a source of the third switch is electrically connected with a second power supply, a drain of the third switch is electrically connected with an anode of the first diode after being connected with the second resistor in series, a cathode of the first diode is electrically connected with the first contact, and the signal receiving interface is electrically connected between the second resistor and the anode of the first diode.
5. The charging box of claim 4, further comprising a second contact, wherein the box-in detection circuit further comprises a second diode, the signal output interface, the signal sending circuit and the second contact are electrically connected in sequence, the source of the third switch tube is further electrically connected to the anode of the second diode, the cathode of the second diode is electrically connected to the second contact, and the anode of the first diode is further electrically connected to the anode of the first diode.
6. A charging box according to any of claims 1-5, wherein said first controller is further configured to send a third communication signal to said headset at regular time to detect the amount of power of said headset;
the first controller is further used for receiving a fourth communication signal fed back by the earphone according to the third communication signal and analyzing the fourth communication signal to obtain the electric quantity of the earphone;
the first controller is also used for sending a power-off control signal to the signal sending circuit when the electric quantity is greater than or equal to a preset threshold value;
the signal transmitting circuit is used for responding to the power-off control signal and opening.
7. An earphone system is characterized by comprising an earphone and any one of the charging boxes 1-6, wherein the earphone comprises a second controller, a signal transmission circuit and a third contact corresponding to the first contact, the second controller comprises a signal input port and a signal output port, the third contact, the signal transmission circuit and the signal input port are sequentially and electrically connected, and the signal output port is electrically connected between the third contact and the signal transmission circuit;
the third contact is used for receiving a first communication signal transmitted by the first contact and transmitting the first communication signal to the signal input port through the signal transmission circuit;
the second controller is used for responding to the first communication signal to generate a second communication signal and transmitting the second communication signal to a signal receiving interface of the first controller through the signal output port, the third contact, the first contact and the box entering detection circuit.
8. The earphone system according to claim 7, wherein the signal transmission circuit comprises a fourth switch tube, a third resistor, a fourth resistor, and a fifth resistor, the third contact is grounded via the third resistor and the fourth resistor in sequence, a gate of the fourth switch tube is electrically connected between the third resistor and the fourth resistor, a drain of the fourth switch tube is connected to a third power supply, a source of the fourth switch tube is grounded after being connected in series with the fifth resistor, the signal input port is electrically connected between the source of the fourth switch tube and the fifth resistor, and the signal output port is electrically connected between the third resistor and the third contact.
9. A charging control method applied to the charging box according to any one of 1 to 6, comprising the steps of, with the first controller:
when the signal sending circuit is in an open circuit state, reading a voltage value of the signal receiving interface, and judging whether an earphone is inserted into the charging box according to the voltage value, wherein the voltage value of the signal receiving interface is determined by the box entering detection circuit according to the connection state of the first contact and the earphone and the state of the signal sending circuit;
when an earphone is inserted into the charging box, a first communication signal is sent to the earphone sequentially through the signal output interface, the signal sending circuit and the first contact;
receiving a second communication signal fed back by the earphone after receiving the first communication signal through the signal receiving interface;
and when the second communication signal is received, sending a charging control signal to the signal sending circuit so that the signal sending circuit is conducted in response to the charging control signal, and the accessed power supply signal is enabled to sequentially pass through the signal sending circuit and the first contact to charge the earphone.
10. A storage medium having stored thereon a computer program which, when executed by a first controller, implements the steps of the charging control method according to claim 9.
CN202010635586.4A 2020-07-03 2020-07-03 Charging box, earphone system, charging control method and storage medium Active CN111800697B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010635586.4A CN111800697B (en) 2020-07-03 2020-07-03 Charging box, earphone system, charging control method and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010635586.4A CN111800697B (en) 2020-07-03 2020-07-03 Charging box, earphone system, charging control method and storage medium

Publications (2)

Publication Number Publication Date
CN111800697A true CN111800697A (en) 2020-10-20
CN111800697B CN111800697B (en) 2023-01-20

Family

ID=72811035

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010635586.4A Active CN111800697B (en) 2020-07-03 2020-07-03 Charging box, earphone system, charging control method and storage medium

Country Status (1)

Country Link
CN (1) CN111800697B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112788461A (en) * 2021-01-12 2021-05-11 上海闻泰信息技术有限公司 Wireless earphone assembly, detection method and detection device for wireless earphone entering box
CN112964945A (en) * 2021-02-01 2021-06-15 深圳市豪恩声学股份有限公司 Method and device for testing charging box, terminal and storage medium
CN113438581A (en) * 2021-06-30 2021-09-24 南昌勤胜电子科技有限公司 Earphone chamber, earphone device, and storage medium
CN114513726A (en) * 2022-01-28 2022-05-17 珠海昇生微电子有限责任公司 Level switching time-sharing multiplexing and isolating circuit and method and TWS earphone system
CN114615587A (en) * 2022-03-25 2022-06-10 歌尔股份有限公司 Earphone and earphone box communication method, equipment and computer readable storage medium
CN116156384A (en) * 2023-04-04 2023-05-23 深圳市思远半导体有限公司 Charging box, earphone data transmission system and method
WO2023160664A1 (en) * 2022-02-25 2023-08-31 深圳市韶音科技有限公司 Earphone assembly

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107887950A (en) * 2017-12-11 2018-04-06 歌尔科技有限公司 One kind charging and communication common rail system and earphone products
CN109660898A (en) * 2018-12-21 2019-04-19 成都必盛科技有限公司 Charging box, earphone and its control method
EP3567694A1 (en) * 2018-02-07 2019-11-13 Shenzhen Weitongbo Technology Co., Ltd. Charging detection circuit, charging box, communication apparatus for earphone and earphone
CN110572736A (en) * 2019-09-20 2019-12-13 歌尔科技有限公司 Wireless earphone, charging box and wireless earphone charging system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107887950A (en) * 2017-12-11 2018-04-06 歌尔科技有限公司 One kind charging and communication common rail system and earphone products
EP3567694A1 (en) * 2018-02-07 2019-11-13 Shenzhen Weitongbo Technology Co., Ltd. Charging detection circuit, charging box, communication apparatus for earphone and earphone
CN109660898A (en) * 2018-12-21 2019-04-19 成都必盛科技有限公司 Charging box, earphone and its control method
CN110572736A (en) * 2019-09-20 2019-12-13 歌尔科技有限公司 Wireless earphone, charging box and wireless earphone charging system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112788461A (en) * 2021-01-12 2021-05-11 上海闻泰信息技术有限公司 Wireless earphone assembly, detection method and detection device for wireless earphone entering box
CN112964945A (en) * 2021-02-01 2021-06-15 深圳市豪恩声学股份有限公司 Method and device for testing charging box, terminal and storage medium
CN113438581A (en) * 2021-06-30 2021-09-24 南昌勤胜电子科技有限公司 Earphone chamber, earphone device, and storage medium
CN114513726A (en) * 2022-01-28 2022-05-17 珠海昇生微电子有限责任公司 Level switching time-sharing multiplexing and isolating circuit and method and TWS earphone system
WO2023160664A1 (en) * 2022-02-25 2023-08-31 深圳市韶音科技有限公司 Earphone assembly
CN114615587A (en) * 2022-03-25 2022-06-10 歌尔股份有限公司 Earphone and earphone box communication method, equipment and computer readable storage medium
CN116156384A (en) * 2023-04-04 2023-05-23 深圳市思远半导体有限公司 Charging box, earphone data transmission system and method

Also Published As

Publication number Publication date
CN111800697B (en) 2023-01-20

Similar Documents

Publication Publication Date Title
CN111800697B (en) Charging box, earphone system, charging control method and storage medium
US6452402B1 (en) Apparatus for determining the type of external device being connected
US10333261B2 (en) USB signal switching circuit, USB data line, USB signal switching method and storage medium
US9141141B2 (en) Portable device and peripheral extension dock
EP2863652B1 (en) Audio interface self-adaptation device
CN110611856B (en) Communication control method, device and system, charging box and wireless earphone
CN108093329B (en) Peripheral type detection circuit and mobile terminal based on shared interface
US20210249826A1 (en) Connector and method for charging control with the connector
US8320963B2 (en) Subscriber identity module card and terminal device having the same
CN109478174B (en) Switch for reversible interface
CN113365185A (en) Wireless earphone and earphone system
US9787264B2 (en) Configurable transceiver circuit architecture
CN111509815B (en) Data line and charging equipment
CN211403421U (en) USB and UART signal path conversion system and electronic equipment
CN210112248U (en) Wireless earphone reset circuit and earphone
US9584919B2 (en) Interface switching system and method for switching operation mode
CN111615029A (en) Wireless earphone reset circuit, wireless earphone and reset method
CN112866861A (en) Wireless earphone, charging box and charging system
CN108880599B (en) Communication circuit, communication method thereof, controller and electric equipment
CN212013016U (en) Wireless earphone reset circuit and wireless earphone
CN110366753B (en) Sense amplifier, semiconductor memory device, information processing apparatus, and reading method
CN216721543U (en) Control module and terminal equipment based on earphone interface
CN210348479U (en) Electronic equipment
CN111404538B (en) Connection circuit and connection method thereof
CN112100104B (en) Universal serial bus device, system and communication equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant