Wireless earphones and charging case, their circuits, wireless earphone components and communication methods
By designing a wireless headphone circuit, the charging box stops output charging voltage by using interrupt signals, and the headphone battery voltage is modulated to form an electrical signal, the power consumption and anti-interference ability problems of wireless headphones when communicating with the charging box are solved, and efficient and low-cost communication effect is achieved.
Patent Information
- Application Number
- CN202110627493.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-04
- Publication Date
- 2025-06-13
- Estimated Expiration
- 2041-06-04
AI Technical Summary
When communicating with the charging box, existing wireless headphones consume large battery power, weak anti-interference ability, and additional interface circuits are required to reduce the bit error rate, resulting in increased circuit costs.
A wireless headphone circuit is designed, including a headphone battery, a first switching device, a first controller and an interrupt signal transmission circuit, and is electrically coupled to the charging box through the charging end of the wireless headphone to realize the active communication between the wireless headphone and the charging box. When transmitting data, the wireless headphones stop the charging voltage by interrupting the charging box, reducing battery power consumption, and forming an electrical signal by modulating the headphone battery voltage to reduce the bit error rate.
The wireless headset is actively communicated with the charging box, reducing the battery consumption of the headset when transmitting data, enhancing the anti-interference ability, avoiding the need for additional interface circuits, simplifying the circuit structure and reducing costs.
Smart Images

Figure CN115442690B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of earphones, and in particular to a wireless earphone and a charging case and their circuits, a wireless earphone assembly, and a communication method. Background Art
[0002] Compared with wired earphones, wireless earphones have the advantage of being convenient to carry, so they are becoming more and more popular among people. The wireless earphones can be true wireless stereo (TWS) earphones. With the intelligence of the TWS earphone charging case, during use, it is increasingly necessary to establish a communication connection between the TWS earphone and the charging case. In the prior art, mostly the charging case initiates communication actively, and there are fewer solutions for the earphone to initiate communication actively. Moreover, when the earphone actively transmits data, it consumes a large amount of battery power, and at the same time, the anti-interference ability is weak, and the error rate is likely to occur. In order to reduce the error rate, an additional interface circuit needs to be installed, resulting in an increase in circuit cost. Summary of the Invention
[0003] The purpose of the present invention is to overcome the above technical problems, and provide a wireless earphone and a charging case and their circuits, a wireless earphone assembly, and a communication method, which can realize that the wireless earphone actively communicates with the charging case with less battery power consumption, strong anti-interference ability, no need to additionally increase other interface circuits to reduce the error rate, and the circuit structure is simple, which helps to reduce the cost.
[0004] To achieve the above purpose, on the one hand, the present invention provides a wireless earphone circuit, the wireless earphone circuit includes: an earphone battery and a first switching device, the first switching device is coupled between the charging end of the wireless earphone and one end of the earphone battery, and the other end of the earphone battery is grounded; a first controller and an interrupt signal sending circuit, when the charging end of the wireless earphone is electrically coupled to the charging case and the wireless earphone needs to transmit first data information to the charging case, the first controller is used to control the first switching device to disconnect, and control the interrupt signal sending circuit to send an interrupt signal to the charging case through the charging end of the wireless earphone, wherein the interrupt signal is used to disconnect the charging end of the charging case from the charging case battery to stop outputting a charging voltage to the charging end of the wireless earphone; a first detection unit and a first communication unit, when the first detection unit detects that the voltage at the charging end of the wireless earphone is lower than a first set threshold, the first controller controls the first communication unit to output a first electrical signal representing the first data information through the charging end of the wireless earphone.
[0005] Optionally, the interruption signal sending circuit includes a first resistor and a second switching device. The first resistor is coupled between the charging terminal of the wireless earphone and one end of the second switching device, and the other end of the second switching device is grounded. When it is necessary to send the interruption signal, the first controller controls the second switching device to conduct for a period of time to discharge to the ground, causing the voltage and current at the charging terminal of the wireless earphone to mutate, so as to serve as the interruption signal. The wireless earphone circuit further includes an interruption signal timer and an interruption detection timer. The interruption signal timer is used to time the conduction time of the second switching device. After the timing time of the interruption signal timer arrives, the first controller controls the second switching device to disconnect, and at the same time the interruption detection timer starts timing a first set duration. The first communication unit includes a first codec unit and a first analog switch. The first analog switch is coupled between the first codec unit and the charging terminal of the wireless earphone. Within the first set duration, when the first detection unit detects that the voltage at the charging terminal of the wireless earphone is lower than the first set threshold, the first controller controls the first analog switch to conduct, so that the first codec unit modulates the first data information into high and low levels based on the voltage of the earphone battery to form the first electrical signal.
[0006] Optionally, the wireless earphone further includes an interruption signal monitoring timer and a response timer. The first communication unit is further configured to sequentially output a transmission completion signal and a predetermined signal to the charging case after the transmission of the first data information is completed. The predetermined signal is a logic high level or a logic low level that lasts for a second set duration, and the second set duration is timed by the interruption signal monitoring timer. Within the second set duration, when the first detection unit detects that the charging terminal of the wireless earphone receives a response signal sent by the charging case, the first controller controls the first communication unit to stop outputting the predetermined signal; or, when the first communication unit receives the response signal sent by the charging case, it stops outputting the predetermined signal; so that the first communication unit receives the second electrical signal representing the second data information sent by the charging case through the charging terminal of the wireless earphone, and when the response signal is received, the response timer starts timing; when the timing of the response timer ends; or, when the second set duration ends and the first detection unit does not detect that the charging terminal of the wireless earphone receives a response signal sent by the charging case within the second set duration; the first controller controls the first switching device to conduct, so as to continue to receive the charging voltage output by the charging case through the charging terminal of the wireless earphone to charge the earphone battery.
[0007] Optionally, the first detection unit includes a first comparator. A first input terminal of the first comparator is coupled to a charging terminal of the wireless earphone. A second input terminal of the first comparator inputs a first reference voltage, and a value of the first reference voltage is the first set threshold. An output terminal of the first comparator is coupled to an input terminal of the first controller; and / or, the wireless earphone further includes a first maximum voltage selection unit. The first switching device is a first PMOS transistor, a drain of which is coupled to a positive electrode of the earphone battery, a source of which is coupled to the charging terminal of the wireless earphone, a gate of which is coupled to an output terminal of the first controller, and a substrate of which is coupled to an output terminal of the first maximum voltage selection unit. A first input terminal of the first maximum voltage selection unit is coupled to the charging terminal of the wireless earphone, and a second input terminal of the first maximum voltage selection unit is coupled to the positive electrode of the earphone battery. The first maximum voltage selection unit selects the higher voltage of the first input terminal and the second input terminal as an output; and / or, the second switching device of the interruption signal sending circuit is a first NMOS transistor, a drain of which is coupled to the first resistor, a source of which is grounded, and a gate of which is coupled to an output terminal of the first controller.
[0008] A second aspect of the present invention provides a wireless earphone, which includes the wireless earphone circuit of the first aspect described above.
[0009] A third aspect of the present invention provides a charging box circuit, which includes: a charging box battery and a third switching device. The third switching device is coupled between a charging terminal of the charging box and one end of the charging box battery, and the other end of the charging box battery is grounded; a second detection unit and a second controller. When the charging terminal of the charging box is coupled to the wireless earphone and the second detection unit detects that an interruption signal is received at the charging terminal of the charging box, the second controller controls the third switching device to disconnect, so as to stop outputting a charging voltage to the charging terminal of the wireless earphone; a second communication unit. When the second communication unit receives a first electrical signal representing first data information sent by the wireless earphone through the charging terminal of the charging box within a third set duration after stopping outputting the charging voltage, the second controller is further configured to control the third switching device to continue to remain in a disconnected state after the third set duration arrives; and / or, when the second communication unit does not receive the first electrical signal representing the first data information sent by the wireless earphone through the charging terminal of the charging box within the third set duration, the second controller is further configured to control the third switching device to conduct after the third set duration arrives.
[0010] Optionally, the charging case further includes a data reception timer for timing the third set duration; and / or, when the charging terminal of the charging case sequentially receives the transmission completion signal and the predetermined signal sent by the wireless earphone, and the charging case needs to send second data information to the wireless earphone, the second controller is further configured to send a response signal to the wireless earphone through the charging terminal of the charging case, and the response signal is used to make the wireless earphone stop outputting the predetermined signal, wherein the transmission completion signal is used to indicate that the first data information is transmitted completely; the second communication unit includes a second encoding / decoding unit and a second analog switch, the second analog switch is coupled between the second encoding / decoding unit and the charging terminal of the charging case, and the second encoding / decoding unit is configured to decode the first electrical signal into the first data information; the charging case further includes a response interruption detection timer, after sending the response signal, the response interruption detection timer starts timing the fourth set duration, when the second detection unit detects that the voltage at the charging terminal of the charging case is lower than the second set threshold within the fourth set duration, the second controller is further configured to control the second analog switch to conduct, so that the second encoding / decoding unit converts the second data information into a second electrical signal based on the voltage of the charging case battery, and outputs the second electrical signal to the wireless earphone through the charging terminal of the charging case; after the second data information is sent, or when the charging terminal of the charging case receives the transmission completion signal and the predetermined signal sequentially sent by the wireless earphone, and the charging case does not need to send second data information to the wireless earphone, the second controller is further configured to control the third switching device to conduct, so that the charging case battery continues to output the charging voltage through the charging terminal of the charging case.
[0011] Optionally, the predetermined signal includes one of a logic high level and a logic low level; wherein: when the predetermined signal is the logic low level or the logic high level, the second controller conducts the third switching device, so that the charging case battery outputs a charging voltage greater than the logic low level or the logic high level to the charging terminal of the charging case as the response signal; or, when the predetermined signal is the logic high level, the charging case further includes a second resistor, a fourth switching device and a response interruption signal timer, the second resistor is coupled between the charging terminal of the charging case and one end of the fourth switching device, and the other end of the fourth switching device is grounded; the second controller conducts the fourth switching device for a period of time to discharge to the ground, so that the voltage and current at the charging terminal of the charging case change suddenly as the response signal, and the response interruption signal timer is used to time the conduction time of the fourth switching device.
[0012] Optionally, the second detection unit includes a second comparator. A first input terminal of the second comparator is coupled to a charging terminal of the charging case. A second reference voltage is input to a second input terminal of the second comparator, and a value of the second reference voltage is the second set threshold. An output terminal of the second comparator is coupled to an input terminal of the second controller; and / or, the wireless earphone further includes a second highest voltage selection unit. The third switching device is a second PMOS transistor, a source electrode of which is coupled to a positive electrode of a battery of the charging case, a drain electrode of which is coupled to the charging terminal of the charging case, a gate electrode of which is coupled to an output terminal of the second controller, and a substrate of which is coupled to an output terminal of the second highest voltage selection unit. A first input terminal of the second highest voltage selection unit is coupled to the charging terminal of the charging case, and a second input terminal of the second highest voltage selection unit is coupled to the positive electrode of the battery of the charging case. The second highest voltage selection unit selects the higher voltage of the first input terminal and the second input terminal as an output; and / or, a fourth switching device of the charging case is a second NMOS transistor, a drain electrode of which is coupled to the second resistor, a source electrode of which is grounded, and a gate electrode of which is coupled to an output terminal of the second controller.
[0013] A fourth aspect of the present invention provides a charging case, and the charging case includes the charging case circuit provided in the third aspect above.
[0014] A fifth aspect of the present invention provides a wireless earphone assembly, and the wireless earphone assembly includes the wireless earphone provided in the second aspect above and the charging case provided in the fourth aspect above.
[0015] A sixth aspect of the present invention provides a communication method applied to a wireless earphone. The communication method includes: when a charging terminal of the wireless earphone is respectively coupled to an earphone battery and the charging case, and the wireless earphone needs to transmit first data information to the charging case, disconnecting the earphone battery from the charging terminal of the wireless earphone, and sending an interrupt signal through the charging terminal of the wireless earphone to the charging case, where the interrupt signal is used to disconnect the charging terminal of the charging case from the battery of the charging case to stop outputting a charging voltage to the charging terminal of the wireless earphone; and when detecting that a voltage at the charging terminal of the wireless earphone is lower than a first set threshold, outputting a first electrical signal representing the first data information through the charging terminal of the wireless earphone.
[0016] Optionally, the interruption signal is formed by conducting a second switching device disposed between the charging terminal and the ground terminal of the wireless earphone for a period of time to discharge to the ground, causing a sudden change in the voltage and current of the charging terminal of the wireless earphone; and / or, the first electrical signal is formed by a first codec unit modulating the first data information into high and low levels based on the voltage of the earphone battery; and / or, after the transmission of the first data information is completed, a transmission completion signal and a predetermined signal are sequentially output from the charging terminal of the wireless earphone to the charging case, the transmission completion signal indicates that the transmission of the first data information is completed, and the predetermined signal is a logic high level or a logic low level that lasts for a second set duration; within the second set duration, if it is detected that the charging terminal of the wireless earphone receives a response signal sent by the charging case, the output of the predetermined signal is stopped, so as to receive a second electrical signal representing second data information sent by the charging case through the charging terminal of the wireless earphone; after receiving the second electrical signal or detecting that the charging terminal of the wireless earphone does not receive the response signal and the second set duration arrives, the earphone battery is coupled to the charging terminal of the wireless earphone, so as to continue to receive the charging voltage output by the charging case through the charging terminal of the wireless earphone to charge the earphone battery.
[0017] A seventh aspect of the present invention provides a communication method applied to a charging case. The communication method includes: when the charging terminal of the charging case is coupled to a wireless earphone and an interruption signal is received, disconnecting the charging terminal of the charging case from the charging case battery to stop outputting a charging voltage to the wireless earphone and start timing a third set duration; when a first electrical signal representing first data information sent by the wireless earphone through the charging terminal of the charging case is received within the third set duration, then after the third set duration arrives, continue to disconnect the charging terminal of the charging case from the wireless earphone; and / or, when the first electrical signal representing first data information sent by the wireless earphone is not received within the third set duration, then after the third set duration arrives, couple the charging terminal of the charging case to the charging case battery to continue to output the charging voltage.
[0018] Preferably, the communication method includes: when the charging end of the charging case receives the transmission completion signal and the predetermined signal sequentially sent by the wireless earphone, and the charging case needs to send second data information to the wireless earphone, sending a response signal to the wireless earphone through the charging end of the charging case, where the response signal is used to make the wireless earphone stop outputting the predetermined signal; then outputting a second electrical signal representing the second data information through the charging end of the charging case; wherein, the transmission completion signal is used to indicate that the first data information is transmitted completely; after the second data information is sent, or when the charging end of the charging case receives the transmission completion signal and the predetermined signal sequentially sent by the wireless earphone, and the charging case does not need to send second data information to the wireless earphone, coupling the charging end of the charging case with the wireless earphone to continue outputting the charging voltage through the charging end of the charging case; the predetermined signal includes one of a logic high level and a logic low level, where: when the predetermined signal is the logic high level, turning on a fourth switching device disposed between the charging end and the ground end of the charging case for a period of time to discharge to the ground, so that the voltage and current at the charging end of the charging case change suddenly to serve as the response signal; or, when the predetermined signal is the logic low level or the logic high level, turning on a third switching device disposed between the charging end of the charging case and the charging case battery, so that the charging case battery outputs a charging voltage greater than the logic low level or the logic high level to the charging end of the charging case to serve as the response signal.
[0019] In the above technical solution, when the wireless earphone is electrically coupled to the charging case and needs to transmit the first data information to the charging case, the first controller can control the first switching device coupled between the charging end of the wireless earphone and the earphone battery to disconnect, and control the interruption signal sending circuit to send an interruption signal to the charging case through the charging end of the wireless earphone, so that the charging end of the charging case is disconnected from the charging case battery to stop outputting the charging voltage to the charging end of the wireless earphone. Then, when the first detection unit detects that the voltage at the charging end of the wireless earphone is lower than the first set threshold, the first controller controls the first communication unit to output a first electrical signal representing the first data information through the charging end of the wireless earphone, thereby realizing the active communication between the wireless earphone and the charging case, and when the earphone transmits data to the charging case, the charging case no longer outputs the charging voltage, so that the battery power consumption is small, and at the same time the anti-interference ability is strong, there is no need to additionally increase other circuits to reduce the error rate, the circuit structure is simple, which helps to reduce the cost.
[0020] Other features and advantages of the present invention will be described in detail in the subsequent specific implementation part. Brief Description of the Drawings
[0021] To more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0022] Figure 1 It is a schematic structural diagram when a wireless earphone is connected to a charging case;
[0023] Figure 2 It is a schematic structural diagram of a wireless earphone circuit provided by an embodiment of the present application;
[0024] Figure 3A It is Figure 1 a waveform diagram of the voltage signal at the charging end of the wireless earphone when the wireless earphone transmits data to the charging case in
[0025] Figure 3B It is Figure 2 a waveform diagram of the voltage signal at the charging end of the wireless earphone when the wireless earphone transmits data to the charging case in
[0026] Figure 4 It is Figure 2 a schematic structural diagram of the first analog switch in the wireless earphone circuit of
[0027] Figure 5 It is Figure 2 a schematic structural diagram of the first highest voltage selection unit in the wireless earphone circuit of
[0028] Figure 6 It is a schematic structural diagram of a charging case circuit provided by an embodiment of the present application;
[0029] Figure 7 It is Figure 6 a waveform diagram of the voltage signal at the charging end of the charging case when the charging case communicates with the wireless earphone in the charging case circuit shown in
[0030] Figure 8 It is a schematic circuit structure diagram of a wireless earphone assembly provided by an embodiment of the present application;
[0031] Figure 9 It is a flow block diagram of a communication method provided by an embodiment of the present application;
[0032] Figure 10 It is a flow block diagram of another communication method provided by an embodiment of the present application. Detailed implementation manners
[0033] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0034] It should be noted that the meanings of "coupled" and "connected" used herein include direct connection between two or more circuit objects without any inserted circuit object, and also include indirect connection between two or more circuit objects through one or more inserted circuit objects. For example, two circuit objects directly connected to each other are said to be "coupled / connected" to each other. Similarly, two circuit objects are also said to be "coupled / connected" to each other if there is one or more inserted circuit objects connected therebetween. That is to say, "coupled", "connected", etc. can be direct electrical connection or indirect electrical connection. Indirect electrical connection means that there are other components in between, such as resistors, capacitors, etc.
[0035] With the development of intelligence, in the process of using a charging case, there is an increasing need to establish a communication connection between the earphone and the charging case to achieve requirements such as the mobile phone upgrading the firmware system of the charging case through the earphone, or the earphone obtaining the power information of the charging case, or the earphone notifying the charging case of the battery power of the earphone.
[0036] Figure 1 It is a schematic structural diagram when a wireless earphone is connected to a charging case. As Figure 1 shown, the charging end of the charging case is connected to the charging end of the wireless earphone through a connecting wire during charging, and the connecting wire between the charging end of the wireless earphone and the charging end of the charging case can be reused for communication between the wireless earphone and the charging case. When the charging case continuously outputs voltage to the charging end of the wireless earphone through its charging end, the wireless earphone changes the load at the charging end of the charging case, thereby modulating the digital signal that the wireless earphone needs to transmit to the charging case into a ripple, and then the charging case decodes it to obtain the digital signal. Specifically, the wireless earphone placed in the charging case can compete with the output of the charging case. For example, the wireless earphone draws the current at the charging end of the charging case multiple times at a set time interval (for example, by discharging), thereby forcing the voltage at the charging end of the charging case to decrease, so as to form a ripple represented in the form of high and low levels. However, the above solution has weak anti-interference ability. If the error rate is to be reduced, additional costs need to be incurred to design an interface circuit, etc. Moreover, when transmitting data, the charging case always maintains the charging voltage output to the earphone, and the earphone continuously competes with the output of the charging case through additional discharging, resulting in a large consumption of the battery power of the charging case.
[0037] In view of this, the embodiments of the present application provide a wireless earphone and a charging case and their circuits, a wireless earphone assembly, and a communication method, which can enable the wireless earphone to actively communicate with the charging case. When the earphone transmits data to the charging case, the charging case stops outputting the charging voltage, so that the battery power consumption is small, and at the same time, the anti-interference ability is strong. There is no need to additionally increase an interface circuit for reducing the error rate, which helps to reduce the cost.
[0038] Figure 2 FIG. is a schematic structural diagram of a wireless earphone circuit provided by an embodiment of the present application. As Figure 2 shown, the wireless earphone circuit includes an earphone battery, a first switching device MP1, a first controller, an interrupt signal sending circuit 21, a first detection unit 22, and a first communication unit 23. The first switching device MP1 is coupled between the charging end of the wireless earphone and one end of the earphone battery, and the other end of the earphone battery is grounded. When the charging end of the wireless earphone is electrically coupled to the charging case and the wireless earphone needs to transmit the first data information to the charging case, the first controller is configured to control the first switching device MP1 to disconnect, and control the interrupt signal sending circuit 21 to send an interrupt signal to the charging case through the charging end of the wireless earphone, wherein the interrupt signal is used to disconnect the charging end of the charging case from the charging case battery to stop outputting the charging voltage to the charging end of the wireless earphone. When the first detection unit 22 detects that the voltage at the charging end of the wireless earphone is lower than a first set threshold (indicating that the charging case has stopped outputting the charging voltage to the charging end of the wireless earphone), the first controller controls the first communication unit 23 to output a first electrical signal representing the first data information through the charging end of the wireless earphone. The first data information may include a software program for upgrading the charging case and / or electrical parameter information of the earphone battery. The electrical parameter information of the earphone battery may include at least one of the voltage, battery capacity, current, battery temperature, and battery power of the earphone battery.
[0039] In the above technical solution, when the wireless earphone is electrically coupled to the charging case and needs to transmit the first data information to the charging case, the first controller can control the first switching device MP1 coupled between the charging terminal of the wireless earphone and the earphone battery to be disconnected, and control the interrupt signal sending circuit 21 to send an interrupt signal to the charging case through the charging terminal of the wireless earphone, so that the charging terminal of the charging case is disconnected from the charging case battery, so as to stop outputting the charging voltage to the charging terminal of the wireless earphone. Then, when the first detection unit 22 detects that the voltage at the charging terminal of the wireless earphone is lower than the first set threshold, the first controller controls the first communication unit 23 to output a first electrical signal representing the first data information through the charging terminal of the wireless earphone, thereby realizing the active communication between the wireless earphone and the charging case. When transmitting data, the charging case stops outputting the charging voltage, and the wireless earphone can use the earphone battery to generate a first electrical signal representing the first data information, which can reduce the consumed battery power, has strong anti-interference ability, does not need to additionally increase other circuits to reduce the error rate, simplifies the circuit structure, and helps to reduce the cost.
[0040] Continue to refer to Figure 2 , the interrupt signal sending circuit 21 may include a first resistor R1 and a second switching device MN1. The first resistor R1 is coupled between the charging terminal of the wireless earphone and one end of the second switching device MN1, and the other end of the second switching device MN1 is grounded. The first resistor R1 is a discharge current limiting resistor, and the second switching device MN1 is a discharge control switch. When an interrupt signal needs to be sent, the first controller controls the second switching device MN1 to conduct for a period of time to discharge to the ground, so that the voltage and current at the charging terminal of the wireless earphone change suddenly to serve as an interrupt signal. In Figure 2 , the wireless earphone circuit may further include an interrupt signal timer and an interrupt detection timer. The interrupt signal timer is used to time the conduction time of the second switching device MN1. After the timing time of the interrupt signal timer arrives, the first controller controls the second switching device MN1 to be disconnected, and at the same time the interrupt detection timer starts timing for the first set duration; the first communication unit 23 includes a first codec unit and a first analog switch. The first analog switch is coupled between the first codec unit and the charging terminal of the wireless earphone, and the first controller can send a switch control signal to the first analog switch. Within the first set duration, when the first detection unit 22 detects that the voltage at the charging terminal of the wireless earphone is lower than the first set threshold, the first controller controls the first analog switch to conduct, so that the first codec unit modulates the first data information into high and low levels based on the voltage of the earphone battery to form a first electrical signal.
[0041] Specifically, the second switching device MN1 of the interrupt signal sending circuit 21 may be a first NMOS transistor, whose drain is coupled to the first resistor R1, whose source is grounded, and whose gate is coupled to the output terminal of the first controller to receive the conversation interrupt signal sent by the first controller.
[0042] Since the substrate of the PMOS transistor needs to be connected to the higher voltage of the source and the drain, the wireless earphone may further include a first maximum voltage selection unit MAX1. The first switching device MP1 may be a first PMOS transistor, whose drain is coupled to the positive electrode of the earphone battery, whose source is coupled to the charging terminal of the wireless earphone, and whose gate is coupled to the output terminal of the first controller to receive a charging control signal. Its substrate is coupled to the output terminal of the first maximum voltage selection unit MAX1 to receive the voltage signal output from the output terminal of the first maximum voltage selection unit MAX1. The first input terminal of the first maximum voltage selection unit MAX1 is coupled to the charging terminal of the wireless earphone, and the second input terminal of the first maximum voltage selection unit MAX1 is coupled to the positive electrode of the earphone battery. The first maximum voltage selection unit MAX1 selects the higher voltage of its first input terminal and the second input terminal as the output. That is to say, the first maximum voltage selection unit MAX1 outputs the higher voltage of the voltage at the charging terminal of the wireless earphone and the voltage at the positive electrode of the earphone battery respectively input to its two input terminals from the output terminal.
[0043] In addition, the first detection unit 22 may include a first comparator. The first input terminal of the first comparator is coupled to the charging terminal of the wireless earphone. A first reference voltage V1 is input to the second input terminal of the first comparator. The value of the first reference voltage V1 is a first set threshold. The output terminal of the first comparator is coupled to the input terminal of the first controller. In this way, when the voltage at the charging terminal of the wireless earphone is lower than the first set threshold, the voltage input to the first input terminal of the first comparator is lower than the first reference voltage V1 input to the second input terminal. The output terminal of the first comparator outputs a corresponding charging terminal voltage judgment signal. The first controller may perform corresponding actions according to the charging terminal voltage judgment signal, such as controlling the first communication unit 23 to output a first electrical signal representing the first data information through the charging terminal of the wireless earphone.
[0044] Such as Figure 2As shown, in a possible implementation, the wireless earphone may further include an interrupt signal monitoring timer and a response timer. The first communication unit 23 is further configured to sequentially output a transmission completion signal and a predetermined signal to the charging case after the first data information is transmitted. The predetermined signal is a logic high level or a logic low level that lasts for a second set duration, and the second set duration is timed by the interrupt signal monitoring timer. Within the second set duration, the first detection unit 22 detects a response signal sent by the charging case received at the charging end of the wireless earphone, and the first controller controls the first communication unit 23 to stop outputting the predetermined signal; alternatively, when the first communication unit 23 receives the response signal sent by the charging case, it stops outputting the predetermined signal; so that the first communication unit 23 receives a second electrical signal representing the second data information sent by the charging case through the charging end of the wireless earphone. For example, the charging case modulates a digital signal into a ripple on the output voltage to transmit a signal to the earphone. And when the response signal is received, the response timer starts timing. Wherein, the second data information includes a software program for upgrading the wireless earphone and / or electrical parameter information of the charging case battery, and the electrical parameter information of the charging case battery may include at least one of the voltage, battery capacity, current, battery temperature, and battery power of the charging case battery.
[0045] That is to say, the response signal can be sensed by the first detection unit 22 and then fed back to the first controller to enable the first controller to control the first communication unit 23 to stop outputting the predetermined signal; or it can be directly that the first communication unit 23 senses the response signal and stops outputting the predetermined signal. Then, when the timing of the response timer ends; or, when the second set duration ends and the first detection unit 22 does not detect a response signal sent by the charging case received at the charging end of the wireless earphone within the second set duration; the first controller controls the first switching device MP1 to conduct, so as to continue receiving the charging voltage output by the charging case through the charging end of the wireless earphone to charge the earphone battery. That is, the first switching device MP1 is the charging switch of the earphone battery.
[0046] Figure 3A is Figure 1 the waveform diagram of the voltage signal at the charging end of the wireless earphone when the wireless earphone transmits data to the charging case. In Figure 3A , signal transmission is achieved by, for example, discharging to pull down the voltage at the charging end of the wireless earphone. The charging case can determine a digital signal "1" according to the output voltage being VCHG, and a digital signal "0" according to the output voltage being VCHG - deltaV. Throughout the transmission window CODE Window, the charging case maintains the trend of outputting the charging voltage VCHG. Since only a large enough current is drawn by the earphone end, its output voltage will drop to VCHG - deltaV, which means that throughout the process of the earphone communicating with the charging case, it is necessary to consume the current of the charging case to maintain signal transmission.
[0047] Figure 3B For Figure 2 the waveform diagram of the voltage signal at the charging terminal of the wireless earphone when the wireless earphone transmits data to the charging case in the wireless earphone circuit. In Figure 3B it, the wireless earphone sends a flag signal (i.e., an interrupt signal) to the charging case by briefly pulling down the charging terminal voltage to VCHG-deltaV once, informing the charging case that communication is needed. The charging case will then stop the output of the charging voltage and release the control of the earphone charging terminal. The code transmitted later can be a digital logic signal with a high potential of the earphone battery voltage V_TWS_bat and a low potential of 0V (VSS), and the generation of this signal does not consume additional power of the charging case.
[0048] Figure 4 For Figure 2 the structural schematic diagram of the first analog switch in the wireless earphone circuit of Figure 4 As shown in
[0049] Figure 5 For Figure 2 the structural schematic diagram of the first highest voltage selection unit in the wireless earphone circuit of Figure 5 it, the drain of MPA is connected to the first input terminal inputa, the drain of MPB is connected to the second input terminal inputb, the sources and substrates of MPA and MPB are connected to the output terminal output_max, the gate of MPA is connected to inputb, and the gate of MPB is connected to inputa. If the potential of inputa is higher than the potential of inputb, MPB is turned off, MPA is turned on or conducts through the body diode of MPA, and the inputa voltage is output as the highest potential to output_max; conversely, if the potential of inputb is higher than the potential of inputa, the inputb voltage is output as the highest potential to output_max, that isFigure 2 The substrate of MP1.
[0050] In addition, an embodiment of the present invention further provides a wireless earphone, which includes the above-mentioned wireless earphone circuit.
[0051] Figure 6 It is a schematic structural diagram of a charging case circuit provided by an embodiment of the present application. As Figure 6 shown, the charging case circuit includes a charging case battery, a third switching device MP2, a second detection unit 61, a second controller, and a second communication unit 62. The third switching device MP2 is coupled between the charging terminal of the charging case and one end of the charging case battery, and the other end of the charging case battery is grounded. When the charging terminal of the charging case is coupled to the wireless earphone and the second detection unit 61 detects that an interruption signal is received at the charging terminal of the charging case, the second controller controls the third switching device MP2 to disconnect to stop outputting a charging voltage to the charging terminal of the wireless earphone. When the second communication unit 62 receives a first electrical signal representing first data information sent by the wireless earphone through the charging terminal of the charging case within a third set duration after stopping the output of the charging voltage, the second controller is further configured to control the third switching device MP2 to continue to remain in the disconnected state after the third set duration arrives; and / or, when the second communication unit 62 does not receive a first electrical signal representing first data information sent by the wireless earphone through the charging terminal of the charging case within the third set duration, the second controller is further configured to control the third switching device MP2 to conduct after the third set duration arrives.
[0052] Since the "interruption signal" received at the charging terminal of the charging case may be sent by the wireless earphone or caused by the charging case itself, therefore, the total duration required to transmit the first data information, that is, the third set duration, can be preset. In this way, if the first data information is not received within the third set duration after the "interruption signal" is received at the charging terminal of the charging case, it means that the earphone does not need to transmit data information to the charging case. The second controller can control the third switching device MP2 to conduct in time after the third set duration arrives, so that the charging terminal of the charging case continues to output a charging voltage to charge the wireless earphone. And, the charging case may further include a data reception timer for timing the third set duration.
[0053] Among them, the second detection unit 61 may include a second comparator. The first input terminal of the second comparator is coupled to the charging terminal of the charging case. The second input terminal of the second comparator inputs a second reference voltage V2, and the value of the second reference voltage V2 is a second set threshold. The output terminal of the second comparator is coupled to the input terminal of the second controller. For example, the interrupt signal may reduce the voltage at the charging terminal of the charging case. When the interrupt signal is not received at the charging terminal of the charging case, the voltage at the charging terminal of the charging case input to the first input terminal of the second comparator is greater than the second reference voltage V2. The second controller does not control the third switching device MP2 to disconnect according to the interrupt detection signal output from the output terminal of the second comparator, so that the charging terminal of the charging case can output a charging voltage to the wireless earphone. When the interrupt signal is received at the charging terminal of the charging case, the voltage at the charging terminal of the charging case input to the first input terminal of the second comparator is less than the second reference voltage V2. The second controller controls the third switching device MP2 to disconnect according to the interrupt detection signal output from the output terminal of the second comparator, so that the charging terminal of the charging case no longer outputs a charging voltage to the wireless earphone, enabling the second communication unit 62 of the charging case to receive the first electrical signal representing the first data information sent by the wireless earphone through the charging terminal of the charging case.
[0054] Continuing to refer to Figure 6 , in some embodiments, when the charging terminal of the charging case sequentially receives the transmission completion signal and the predetermined signal sent by the wireless earphone, and the charging case needs to send the second data information to the wireless earphone, the second controller is further configured to send a response signal to the wireless earphone through the charging terminal of the charging case. The response signal is used to make the wireless earphone stop outputting the predetermined signal, where the transmission completion signal is used to indicate that the first data information has been transmitted; the second communication unit 62 includes a second codec unit and a second analog switch. The second analog switch is coupled between the second codec unit and the charging terminal of the charging case. The structure of the second analog switch can refer to Figure 4 the structure of the first analog switch shown. The second codec unit is configured to decode the first electrical signal into the first data information; the charging case may further include a response interrupt detection timer. After sending the response signal, the response interrupt detection timer starts timing for a fourth set duration. When the second detection unit 61 detects that the voltage at the charging terminal of the charging case is lower than the second set threshold within the fourth set duration, the second controller is further configured to control the second analog switch to conduct, so that the second codec unit converts the second data information into a second electrical signal based on the voltage of the charging case battery, and outputs the second electrical signal to the wireless earphone through the charging terminal of the charging case. After the second data information is sent, or when the charging terminal of the charging case receives the transmission completion signal and the predetermined signal sequentially sent by the wireless earphone, and the charging case does not need to send the second data information to the wireless earphone, the second controller is further configured to control the third switching device MP2 to conduct, so that the charging case battery continues to output a charging voltage through the charging terminal of the charging case.
[0055] Moreover, in some embodiments, the predetermined signal may include one of a logic high level and a logic low level. When the predetermined signal is at a logic low level or a logic high level, the second controller turns on the third switching device MP2 so that the charging box battery outputs a charging voltage greater than the logic low level or the logic high level to the charging terminal of the charging box as a response signal. Wherein, the "logic high level" may be the voltage of the earphone battery, and this voltage is lower than the charging voltage output by the charging box. Therefore, when the predetermined signal is at a logic high level, the charging box battery can output a charging voltage greater than the logic high level to the charging terminal of the charging box as a response signal. When the predetermined signal is at a logic high level, the charging box further includes a second resistor R2, a fourth switching device MN2, and a response interrupt signal timer. The second resistor R2 is coupled between the charging terminal of the charging box and one end of the fourth switching device MN2, and the other end of the fourth switching device MN2 is grounded; the second controller turns on the fourth switching device MN2 for a period of time to discharge to the ground, so that the voltage and current at the charging terminal of the charging box change suddenly as a response signal, and the response interrupt signal timer is used to time the conduction time of the fourth switching device MN2. The second resistor R2 is a discharge current limiting resistor, and the fourth switching device MN2 is a discharge control switch.
[0056] Since the substrate of the PMOS transistor needs to be connected to the one with the higher voltage among the source and the drain, the wireless earphone further includes a second highest voltage selection unit MAX2, and the structure of the second highest voltage selection unit MAX2 can refer to Figure 5 the structure of the first highest voltage selection unit shown. The third switching device MP2 is a second PMOS transistor, whose source is coupled to the positive pole of the charging box battery, whose drain is coupled to the charging terminal of the charging box, whose gate is coupled to the output terminal of the second controller, and whose substrate is coupled to the output terminal of the second highest voltage selection unit MAX2. The first input terminal of the second highest voltage selection unit MAX2 is coupled to the charging terminal of the charging box, and the second input terminal of the second highest voltage selection unit MAX2 is coupled to the positive pole of the charging box battery. The second highest voltage selection unit MAX2 selects the one with the higher voltage among its first input terminal and second input terminal as the output; and / or, the fourth switching device MN2 of the charging box is a second NMOS transistor, whose drain is coupled to the second resistor R2, whose source is grounded, and whose gate is coupled to the output terminal of the second controller to receive the response interrupt signal sent by the second controller.
[0057] Figure 7 For Figure 6 the waveform diagram of the voltage signal at the charging terminal of the charging box when the charging box communicates with the wireless earphone in the charging box circuit shown. As Figure 7 shown, in the waveform diagram at the upper part, the waveform diagram at the middle part, and the waveform diagram at the lower part, the waveform diagrams of the first CODE Window and those before it are the same asFigure 3B The same, all are waveform diagrams of voltage signals at the charging end of the wireless earphone / at the charging end of the charging case / on the connection line between the charging end of the wireless earphone and the charging end of the charging case when the wireless earphone transmits data to the charging case. After the wireless earphone is placed in the charging case, the charging case and the wireless earphone share the same ground, and are connected through the output of the charging case to the power input of the earphone. The mobile phone sends data information such as a charging case upgrade command to the earphone through wireless communication with the earphone. Relative to the charging case, the earphone acts as the calling party. After receiving the charging case upgrade command, the earphone makes a one-time short-term load mutation at the power input end, and the mutation direction can be high or low. For example, taking the mutation direction as low for illustration, by applying a short high level to the gate of MN1 in Figure 2 or as will be introduced below Figure 8 MN1 in, MN1 will conduct briefly, and the current flowing to the ground through MN1 will cause the voltage at the output port of the charging case to drop. See the first flag in the waveform diagram in Figure 3B or Figure 7 The charging case regards the short-term mutation of the output load as an output interruption signal and a data reception start signal. After detecting this signal, the charging case stops actively outputting voltage, and the earphone obtains full control of the charging port voltage and can start to output a rail-to-rail digital signal from the earphone charging end to the charging case output rail with the voltage of the battery in the earphone as the power rail.
[0058] Next, to achieve a response, it is also necessary for the charging case to transfer a digital signal to the earphone. Three methods, namely Method A, Method B, and Method C, are shown in Figure 7 Specifically, when the earphone outputs a digital '1' level (i.e., VCHG), Method A is to pull up the voltage at the charging end, such as turning on the switching device MP2 between the charging end of the charging case and the battery of the charging case to pull up by outputting a charging voltage from the battery of the charging case. At this time, the voltage of the second flag in the waveform diagram can be V_TWS_bat + deltaV2; Method B is to pull down the voltage at the charging end, such as briefly turning on Figure 6 or as will be introduced below Figure 8The device MN2 in it realizes the pull - down. At this time, the voltage of the second flag in the waveform diagram can be V_TWS_bat - deltaV2. That is to say, when the wireless earphone outputs the digital '1' by itself, a short - term pull - up or pull - down at the charging port is detected as an interrupt request for the charging case to return data. Method C is that when the charging case outputs the digital "0" level (i.e., VSS) of the earphone, the output port voltage is pulled up briefly. For example, the switching device MP2 between the charging terminal of the charging case and the charging case battery is turned on to realize the pull - up by outputting the charging voltage through the charging case battery. The charging voltage only needs to be greater than VSS. At this time, the voltage of the second flag in the waveform diagram can be deltaV. After waiting for a period of time, a rail - to - rail digital signal is output from the charging terminal of the charging case to the earphone. After receiving the interrupt request, the earphone stops the active control of the charging port and is ready to receive the rail - to - rail digital signal returned by the charging case.
[0059] Through the above - mentioned method, digital communication with the wireless earphone as the calling party is realized between the wireless earphone and the charging case.
[0060] In addition, the embodiment of the present invention also provides a charging case, and the charging case includes the above - mentioned charging case circuit.
[0061] Figure 8 It is a schematic diagram of the circuit structure of a wireless earphone assembly provided by an embodiment of the present application. As Figure 8 shown, the wireless earphone assembly includes the wireless earphone and the charging case provided by the above - mentioned embodiments respectively. Among them, the wireless earphone includes the wireless earphone circuit provided by the above - mentioned embodiments, and specific reference can be made to Figures 2 - 5 the relevant description; the charging case includes the charging case circuit provided by the above - mentioned embodiments, and specific reference can be made to Figure 6 the relevant description.
[0062] The wireless earphone, as the calling party, gives a calling interrupt signal by increasing or decreasing the load of the charging port for a short time. The interrupt signal can be used to make the charging case stop outputting the charging voltage to the wireless earphone. After the wireless earphone gives the calling interrupt signal, it starts to output a rail - to - rail digital signal through the charging terminal. After the signal output is completed, a digital high potential (or digital low potential) is output and the interrupt signal is monitored. At the same time, the interrupt window timing is started. If no interrupt signal from the charging case is received within the interrupt timing window, this round of communication response ends; if an interrupt signal from the charging case is received within the interrupt timing window, the charging case signal is started to be received, and the signal receiving window timing is started. When the signal receiving window timing is full, whether or not a valid signal is received, this round of communication response ends. After a round of communication response ends and before a new round of communication response starts, the earphone battery can be charged, and within the communication response window, the charging path of the earphone battery is cut off.
[0063] When the charging case, acting as the called party, receives an interrupt signal, it stops outputting voltage or current, starts timing for the signal reception window, and if a valid digital signal is received from the charging terminal of the charging case before the timing is full, it decodes the signal and gives an answer interrupt by briefly pulling down or up the voltage of the output port. After the charging case gives an answer interrupt, it sends a rail-to-rail digital signal to the earphone through the charging terminal of the charging case. After sending is complete, the charging case resumes the charging voltage output to the earphone. Except for the interrupt signal, the data communication between the wireless earphone and the charging case uses rail-to-rail digital signals.
[0064] Figure 9 It is a flowchart of a communication method provided by an embodiment of the present application. As Figure 9 shown, this communication method is applied to a wireless earphone, and the circuit in the wireless earphone can be as Figure 2 shown. Specifically, this communication method may include the following steps:
[0065] Step S901, the first controller controls the first switching device MP1 between the earphone charging terminal and the earphone battery to conduct, so as to charge the earphone through the earphone charging terminal.
[0066] Step S902, determine whether the earphone needs to initiate a conversation interruption. When the earphone needs to send data to the charging case, it needs to initiate a conversation interruption; when the earphone does not need to send data to the charging case, it does not need to send a conversation interruption.
[0067] Among them, when the judgment result in step S902 is no, return to step S901; when the judgment result in step S902 is yes, enter step S903.
[0068] Step S903, disconnect the first switching device MP1, open the current path between the charging terminal and the ground, such as closing the second switching device MN1 as Figure 2 shown, and start interrupt signal timing by the interrupt signal timer, that is, time the duration when the second switching device MN1 is closed.
[0069] Step S904, determine whether the interrupt signal timing is full. That is, whether the duration when the second switching device MN1 is closed ends. If the judgment result is no, return to step S903; if the judgment result is yes, enter step S905.
[0070] Step S905, disconnect the current path between the charging terminal and the ground, such as making the Figure 2 second switching device MN1 in cut-off state, and start interrupt detection timing by the interrupt detection timer.
[0071] Step S906, determine whether the voltage at the charging terminal drops below the threshold V1 within the interrupt detection timing window. If the judgment result is no, return to step S901; if the judgment result is yes, enter step S907.
[0072] Step S907, output a rail-to-rail digital signal through the headphone charging terminal output rail.
[0073] Step S908, determine whether the data has been sent completely. If the determination result is no, return to Step S907; if the determination result is yes, proceed to Step S909.
[0074] Step S909, output a logic high level through the headphone charging terminal to start the response interrupt signal listening timing. Herein, the logic high level can also be replaced with a logic low level. The logic high level and the logic low level herein are the predetermined signals mentioned above.
[0075] Step S910, within the response interrupt signal listening timing period, determine whether a response interrupt signal is monitored. If the determination result is no, return to Step S901; if the determination result is yes, proceed to Step S911.
[0076] Step S911, perform response timing and receive the response signal sent by the charging case.
[0077] Step S912, determine whether the response timing has reached the full count. If the determination result is no, return to Step S911; if the determination result is yes, return to Step S901.
[0078] That is to say, when the charging terminals of the wireless earphones are respectively coupled to the earphone battery and the charging case, and the wireless earphones need to transmit the first data information to the charging case, disconnect the earphone battery from the charging terminal of the wireless earphone, and send an interrupt signal to the charging case through the charging terminal of the wireless earphone. The interrupt signal is used to disconnect the charging terminal of the charging case from the charging case battery to stop outputting the charging voltage to the charging terminal of the wireless earphone; when it is detected that the voltage at the charging terminal of the wireless earphone is lower than the first set threshold, output a first electrical signal representing the first data information through the charging terminal of the wireless earphone.
[0079] Among them, the interruption signal can be formed by turning on a second switching device MN1 disposed between the charging terminal and the ground terminal of the wireless earphone for a period of time to discharge to the ground, so that the voltage and current of the charging terminal of the wireless earphone change suddenly; and / or, the first electrical signal is formed by the first codec unit modulating the first data information into high and low levels based on the voltage of the earphone battery; and / or, after the first data information is transmitted, a transmission completion signal and a predetermined signal are sequentially output to the charging case through the charging terminal of the wireless earphone. The transmission completion signal indicates that the first data information has been transmitted, and the predetermined signal is a logic high level or a logic low level that lasts for a second set duration; within the second set duration, if it is detected that the charging terminal of the wireless earphone receives a response signal sent by the charging case, the output of the predetermined signal is stopped, so as to receive a second electrical signal representing the second data information sent by the charging case through the charging terminal of the wireless earphone; after receiving the second electrical signal or detecting that the charging terminal of the wireless earphone does not receive a response signal and the second set duration arrives, the earphone battery is coupled to the charging terminal of the wireless earphone, so as to continue to receive the charging voltage output by the charging case through the charging terminal of the wireless earphone to charge the earphone battery.
[0080] Figure 10 It is a flowchart of another communication method provided by an embodiment of the present application. As Figure 10 shown, this communication method is applied to a charging case, and the circuit in the charging case can be as Figure 6 shown. Specifically, this communication method may include the following steps:
[0081] Step S1001, the charging case outputs a charging voltage and monitors the voltage state or load state of the output terminal (i.e., the charging terminal of the charging case).
[0082] Step S1002, determine whether a conversation interruption, that is, an interruption signal, is received. When the earphone needs to send data to the charging case, a conversation interruption will be received; when the earphone does not need to send data to the charging case, a conversation interruption will not be received.
[0083] Among them, when the judgment result in step S1002 is no, return to step S1001; when the judgment result in step S1002 is yes, enter step S1003.
[0084] Step S1003, stop outputting voltage and current to the earphone, receive a rail-to-rail digital signal through the output terminal, and perform data reception timing through a data reception timer at the same time.
[0085] Step S1004, determine whether the data reception timing is full. If the judgment result is no, return to step S1003; if the judgment result is yes, enter step S1005.
[0086] Step S1005: Determine whether a response message needs to be sent back. If the determination result is no, return to step S1001; if the determination result is yes, proceed to step S1006.
[0087] Step S1006: Turn on the current path between the output terminal and the ground, for example, close the fourth switching device NM2, and start timing the response interrupt signal with the response interrupt signal timer, that is, time the closing time of MN2.
[0088] Step S1007: After the response interrupt signal timing reaches the full count, disconnect the current path between the charging terminal and the ground, that is, turn off MN2, and start timing the response interrupt detection with the response interrupt detection timer.
[0089] Step S1008: Determine whether the voltage at the charging terminal drops below the threshold V2 within the response interrupt detection timing window. If the determination result is yes, proceed to step S1009.
[0090] Step S1009: Output a rail-to-rail digital signal through the output port (i.e., the charging terminal of the charging case).
[0091] Step S1010: Determine whether the data has been completely sent. If the determination result is no, return to step S1010; if the determination result is yes, return to step S1001.
[0092] That is to say, when the charging terminal of the charging case is coupled to the wireless earphone and an interrupt signal sent by the wireless earphone is received, disconnect the charging terminal of the charging case from the charging case battery to stop outputting the charging voltage to the wireless earphone, and start timing the third set duration; when a first electrical signal representing the first data information is sent by the wireless earphone through the charging terminal of the charging case within the third set duration, then after the third set duration arrives, continue to disconnect the charging terminal of the charging case from the wireless earphone; and / or, when the first electrical signal representing the first data information sent by the wireless earphone is not received within the third set duration, then after the third set duration arrives, couple the charging terminal of the charging case to the charging case battery to continue outputting the charging voltage.
[0093] Moreover, the communication method may further include: when the charging end of the charging case receives the transmission completion signal and the predetermined signal sequentially sent by the wireless earphone, and the charging case needs to send the second data information to the wireless earphone, sending a response signal to the wireless earphone through the charging end of the charging case, where the response signal is used to make the wireless earphone stop outputting the predetermined signal; then outputting a second electrical signal representing the second data information through the charging end of the charging case; wherein, the transmission completion signal is used to indicate that the first data information has been transmitted; after the second data information is sent, or when the charging end of the charging case receives the transmission completion signal and the predetermined signal sequentially sent by the wireless earphone, and the charging case does not need to send the second data information to the wireless earphone, coupling the charging end of the charging case with the wireless earphone to continue outputting the charging voltage through the charging end of the charging case. The predetermined signal includes one of a logic high level and a logic low level, where: when the predetermined signal is a logic high level, a fourth switching device MN2 disposed between the charging end and the ground end of the charging case is turned on for a period of time to discharge to the ground, so that the voltage and current at the charging end of the charging case change suddenly, as the response signal; or, when the predetermined signal is a logic low level or a logic high level, a third switching device MP2 disposed between the charging end of the charging case and the charging case battery is turned on, so that the charging case battery outputs a charging voltage greater than the logic low level or the logic high level to the charging end of the charging case, as the response signal.
[0094] In summary, the wireless earphone, as the calling party, gives a calling interruption signal by increasing or decreasing the load at the charging end for a short time, and then outputs a rail-to-rail digital signal through the charging end of the wireless earphone; the charging case, as the called party, stops outputting voltage or current after receiving the interruption signal to prevent conflict with digital communication, and receives the digital signal from the output end (i.e., the charging end of the charging case). The charging case gives a response interruption by pulling down or pulling up the output end voltage for a short time and then outputs a rail-to-rail digital signal through the output end. Within the response window, the earphone cuts off the internal charging path to prevent conflict with digital communication. The embodiment of the present application can realize the active communication between the wireless earphone and the charging case, and when the earphone transmits data to the charging case, the charging case no longer outputs the charging voltage, so that the battery power consumption is small, and at the same time, the anti-interference ability is strong, and there is no need to additionally increase the interface circuit for reducing the error rate, which helps to reduce the cost.
[0095] Those skilled in the art should further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software programs, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0096] The specific embodiments described above have further elaborated on the purpose, technical solutions, and beneficial effects of the present invention. It should be understood that the above description is only the specific embodiments of the present invention and is not used to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A wireless earphone circuit, characterized in that, it includes: an earphone battery and a first switching device, the first switching device is coupled between the charging terminal of the wireless earphone and one end of the earphone battery, and the other end of the earphone battery is grounded; a first controller and an interrupt signal sending circuit, when the charging terminal of the wireless earphone is electrically coupled to the charging case and the wireless earphone needs to transmit first data information to the charging case, the first controller is used to control the first switching device to disconnect, and control the interrupt signal sending circuit to send an interrupt signal to the charging case through the charging terminal of the wireless earphone, wherein, the interrupt signal is used to disconnect the charging terminal of the charging case from the charging case battery, so as to stop outputting a charging voltage to the charging terminal of the wireless earphone; the interrupt signal sending circuit includes a first resistor and a second switching device, the first resistor is coupled between the charging terminal of the wireless earphone and one end of the second switching device, and the other end of the second switching device is grounded; when the interrupt signal needs to be sent, the first controller controls the second switching device to conduct for a period of time to discharge to the ground, so that the voltage and current at the charging terminal of the wireless earphone change suddenly, to be used as the interrupt signal; a first detection unit and a first communication unit, when the first detection unit detects that the voltage at the charging terminal of the wireless earphone is lower than a first set threshold, the first controller controls the first communication unit to output a first electrical signal representing the first data information through the charging terminal of the wireless earphone.
2. The wireless earphone circuit according to claim 1, characterized in that: the wireless earphone circuit further includes an interrupt signal timer and an interrupt detection timer, the interrupt signal timer is used to time the conduction time of the second switching device, after the timing time of the interrupt signal timer arrives, the first controller controls the second switching device to disconnect, and at the same time the interrupt detection timer starts timing for a first set duration; the first communication unit includes a first codec unit and a first analog switch, the first analog switch is coupled between the first codec unit and the charging terminal of the wireless earphone, within the first set duration, when the first detection unit detects that the voltage at the charging terminal of the wireless earphone is lower than the first set threshold, the first controller controls the first analog switch to conduct, so that the first codec unit modulates the first data information into high and low levels based on the voltage of the earphone battery to form the first electrical signal.
3. The wireless earphone circuit according to claim 1, characterized in that, the wireless earphone further includes an interrupt signal monitoring timer and a response timer, the first communication unit is further used to output a transmission completion signal and a predetermined signal to the charging case in sequence after the transmission of the first data information is completed, the predetermined signal is a logic high level or a logic low level that lasts for a second set duration, and the second set duration is timed by the interrupt signal monitoring timer; Within the second set duration, the first detection unit detects a response signal sent by the charging case received at the charging terminal of the wireless earphone, and the first controller controls the first communication unit to stop outputting the predetermined signal; alternatively, when the first communication unit receives the response signal sent by the charging case, it stops outputting the predetermined signal; so that the first communication unit receives a second electrical signal representing second data information sent by the charging case through the charging terminal of the wireless earphone, and when the response signal is received, the response timer starts timing; When the timing of the response timer ends; alternatively, when the second set duration ends and the first detection unit does not detect a response signal sent by the charging case received at the charging terminal of the wireless earphone within the second set duration; the first controller controls the first switching device to conduct, so as to continue receiving the charging voltage output by the charging case through the charging terminal of the wireless earphone to charge the earphone battery.
4. The wireless earphone circuit according to any one of claims 1-3, characterized in that: The first detection unit includes a first comparator, a first input terminal of the first comparator is coupled to the charging terminal of the wireless earphone, a second input terminal of the first comparator inputs a first reference voltage, a value of the first reference voltage is the first set threshold, and an output terminal of the first comparator is coupled to an input terminal of the first controller; and / or, The wireless earphone further includes a first highest voltage selection unit, the first switching device is a first PMOS transistor, its drain is coupled to the positive electrode of the earphone battery, its source is coupled to the charging terminal of the wireless earphone, its gate is coupled to an output terminal of the first controller, its substrate is coupled to an output terminal of the first highest voltage selection unit, a first input terminal of the first highest voltage selection unit is coupled to the charging terminal of the wireless earphone, a second input terminal of the first highest voltage selection unit is coupled to the positive electrode of the earphone battery, and the first highest voltage selection unit selects the higher voltage of the first input terminal and the second input terminal as the output; and / or, the second switching device of the interrupt signal sending circuit is a first NMOS transistor, its drain is coupled to the first resistor, its source is grounded, and its gate is coupled to an output terminal of the first controller.
5. A wireless earphone, characterized in that, it includes the wireless earphone circuit according to any one of claims 1-4.
6. A communication method applied to a wireless earphone, characterized in that, the communication method includes: When the charging terminal of the wireless earphone is respectively coupled to the earphone battery and the charging case, and the wireless earphone needs to transmit first data information to the charging case, disconnect the earphone battery from the charging terminal of the wireless earphone, and send an interrupt signal to the charging case through the charging terminal of the wireless earphone, the interrupt signal is used to disconnect the charging terminal of the charging case from the charging case battery to stop outputting the charging voltage to the charging terminal of the wireless earphone; The interruption signal is formed by conducting a second switching device disposed between the charging terminal and the grounding terminal of the wireless earphone for a period of time to discharge to the ground, causing a sudden change in the voltage and current at the charging terminal of the wireless earphone; When it is detected that the voltage at the charging terminal of the wireless earphone is lower than a first set threshold, a first electrical signal representing first data information is output through the charging terminal of the wireless earphone.
7. The communication method according to claim 6, characterized in that: The first electrical signal is formed by a first encoding and decoding unit modulating the first data information into high and low levels based on the voltage of the earphone battery; and / or, After the transmission of the first data information is completed, a transmission completion signal and a predetermined signal are sequentially output through the charging terminal of the wireless earphone to the charging case. The transmission completion signal indicates that the transmission of the first data information is completed, and the predetermined signal is a logic high level or a logic low level that lasts for a second set duration; Within the second set duration, if it is detected that the charging terminal of the wireless earphone receives a response signal sent by the charging case, the output of the predetermined signal is stopped, so as to receive a second electrical signal representing second data information sent by the charging case through the charging terminal of the wireless earphone; after receiving the second electrical signal or detecting that the charging terminal of the wireless earphone does not receive the response signal and the second set duration arrives, the earphone battery is coupled to the charging terminal of the wireless earphone, so as to continue to receive the charging voltage output by the charging case through the charging terminal of the wireless earphone to charge the earphone battery.
Citation Information
Patent Citations
Wireless earphone, charging box and wireless earphone charging system
CN110572736A
Communication method, earphone and earphone communication system
CN111490806A