Charging box and circuit thereof, wireless earphone assembly and communication method
By controlling the charging end to be disconnected from the battery and generating electrical signal transmission data, the problem of large power consumption and weak anti-interference ability of the headphones is solved, and low-cost and efficient communication between the wireless headphones and the charging box is achieved.
Patent Information
- Application Number
- CN202510496773.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-04
- Publication Date
- 2025-08-12
AI Technical Summary
When existing wireless headphones communicate with charging boxes, the headphones actively initiate communication solutions, consume large battery power and weak anti-interference ability. Additional interface circuits are needed to reduce the bit error rate, resulting in increased circuit costs.
The wireless headphones control the switching device between the charging terminal and the headphone battery to disconnect, send an interrupt signal to stop the output voltage of the charging box, and use the headphone battery to generate an electrical signal for data transmission. After receiving the interrupt signal, the charging box disconnects the charging terminal and connects the battery to receive and decode the data signal.
The wireless headphones are actively communicated with the charging box, which reduces battery power consumption and enhances anti-interference ability. There is no need to add additional circuits to reduce the bit error rate, simplifies the circuit structure and reduces costs.
Smart Images

Figure CN120475293A_ABST
Abstract
Description
[0001] This application is a divisional application of the invention patent application with application number 202110627493.1 filed on June 4, 2021, and entitled “Wireless earphones and charging box and their circuits, wireless earphone components and communication methods”. Technical Field
[0002] The present invention relates to the field of earphone technology, and in particular to a charging box and its circuit, a wireless earphone assembly, and a communication method. Background Art
[0003] Compared with wired headphones, wireless headphones have the advantage of being easy to carry, and therefore are becoming more and more popular. Wireless headphones can be True Wireless Stereo (TWS) headphones. With the intelligence of TWS headphone charging boxes, there is an increasing need to establish a communication connection between TWS headphones and charging boxes during use. In the existing technology, most of the solutions for the charging box to actively initiate communication are relatively rare, and a large amount of battery power is consumed when the headphones actively transmit data. At the same time, the anti-interference ability is weak, and bit error rate is prone to occur. In order to reduce the bit error rate, additional interface circuits need to be installed, resulting in increased circuit costs. Summary of the Invention
[0004] The purpose of the present invention is to overcome the above-mentioned technical problems and provide a charging box and its circuit, a wireless headset component and a communication method, which can enable the wireless headset to actively communicate with the charging box and consume less battery power. At the same time, it has strong anti-interference ability and does not require additional interface circuits to reduce the bit error rate. The circuit structure is simple, which helps to reduce costs.
[0005] To achieve the above objectives, the present invention provides a wireless headset circuit on one hand, comprising: a headset battery and a first switching device, the first switching device being coupled between a charging terminal of the wireless headset and one end of the headset battery, the other end of the headset battery being grounded; a first controller and an interrupt signal sending circuit, wherein when the charging terminal of the wireless headset is electrically coupled to a charging box and the wireless headset needs to transmit first data information to the charging box, the first controller is configured to control the first switching device to be disconnected and control the interrupt signal sending circuit to send an interrupt signal to the charging box through the charging terminal of the wireless headset, wherein the interrupt signal is configured to disconnect the charging terminal of the charging box from the charging box battery to stop outputting a charging voltage to the charging terminal of the wireless headset; a first detection unit and a first communication unit, wherein when the first detection unit detects that the voltage at the charging terminal of the wireless headset 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 headset.
[0006] Optionally, the interrupt signal sending circuit includes a first resistor and a second switching device, the first resistor being coupled between the charging terminal of the wireless headset and one end of the second switching device, and the other end of the second switching device being grounded. When the interrupt signal needs to be sent, the first controller controls the second switching device to be turned on for a period of time to discharge to ground, causing a sudden change in voltage and current at the charging terminal of the wireless headset to serve as the interrupt signal. The wireless headset circuit further includes an interrupt signal timer and an interrupt detection timer, the interrupt signal timer being used to count the time the second switching device is turned on. After the interrupt signal timer expires, the first controller controls the second switching device to be turned off, and the interrupt detection timer begins counting a first set duration. The first communication unit includes a first codec unit and a first analog switch, the first analog switch being coupled between the first codec unit and the charging terminal of the wireless headset. Within the first set duration, if the first detection unit detects that the voltage at the charging terminal of the wireless headset is lower than a first set threshold, the first controller controls the first analog switch to be turned on, causing the first codec unit to modulate the first data information into high and low levels based on the voltage of the headset battery to form the first electrical signal.
[0007] Optionally, the wireless headset further includes an interrupt 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 box 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 time period, and the second set time period is timed by the interrupt signal monitoring timer. Within the second set time period, the first detection unit detects that the charging end of the wireless headset receives a response signal sent by the charging box, and the first controller controls the first communication unit to stop outputting the predetermined signal. Alternatively, the first communication unit stops outputting the predetermined signal upon receiving the response signal sent by the charging box. This allows the first communication unit to receive a second electrical signal representing the second data information sent by the charging box through the charging end of the wireless headset, and the response timer starts timing when the response signal is received. When the response timer expires, or when the second set time period expires and the first detection unit detects that the charging end of the wireless headset has not received a response signal sent by the charging box within the second set time period, the first controller controls the first switching device to turn on, so that the charging end of the wireless headset continues to receive the charging voltage output by the charging box to charge the headset battery.
[0008] Optionally, the first detection unit includes a first comparator, wherein a first input of the first comparator is coupled to the charging terminal of the wireless headset, a second input of the first comparator inputs a first reference voltage, a value of the first reference voltage being the first set threshold value, and an output of the first comparator is coupled to the input of the first controller; and / or, the wireless headset further includes a first maximum voltage selection unit, wherein the first switching device is a first PMOS transistor, wherein a drain is coupled to the positive electrode of the headset battery, a source is coupled to the charging terminal of the wireless headset, a gate is coupled to the output of the first controller, and a substrate is coupled to the output of the first maximum voltage selection unit, a first input of the first maximum voltage selection unit is coupled to the charging terminal of the wireless headset, a second input of the first maximum voltage selection unit is coupled to the positive electrode of the headset battery, and the first maximum voltage selection unit selects the higher voltage between the first input and the second input as the output; and / or, the second switching device of the interrupt signal sending circuit is a first NMOS transistor, wherein a drain is coupled to the first resistor, a source is grounded, and a gate is coupled to the output of the first controller.
[0009] A second aspect of the present invention provides a wireless headset, comprising the wireless headset circuit of the first aspect.
[0010] A third aspect of the present invention provides a charging box circuit, which includes: a charging box battery and a third switching device, wherein the third switching device is coupled between the charging end 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, wherein the charging end of the charging box is coupled to the wireless headset, and when the second detection unit detects that the charging end of the charging box receives an interrupt signal, the second controller controls the third switching device to be disconnected to stop outputting a charging voltage to the charging end of the wireless headset; a second communication unit, wherein when the second communication unit receives a first electrical signal representing first data information sent by the wireless headset through the charging end of the charging box within a third set time period of stopping outputting the charging voltage, the second controller is further used to control the third switching device to continue to remain in the disconnected state after the third set time period expires; and / or when the second communication unit does not receive the first electrical signal representing the first data information sent by the wireless headset through the charging end of the charging box within the third set time period, the second controller is further used to control the third switching device to be turned on after the third set time period expires.
[0011] Optionally, the charging box further includes a data receiving timer for timing the third set time length; and / or, when the charging end of the charging box receives the transmission completion signal and the predetermined signal sent by the wireless headset in sequence, and the charging box needs to send the second data information to the wireless headset, the second controller is further used to send a response signal to the wireless headset through the charging end of the charging box, and the response signal is used to cause the wireless headset to stop outputting the predetermined signal, wherein the transmission completion signal is used to indicate that the transmission of the first data information is completed; the second communication unit includes a second codec unit and a second analog switch, the second analog switch is coupled between the second codec unit and the charging end of the charging box, and the second codec unit is used to decode the first electrical signal into the first data information; the charging box further includes a response interrupt detection timer, which is used to receive the response interrupt detection timer after sending all the data information. After the response signal is received, the response interrupt detection timer starts timing a fourth set time period. When the second detection unit detects that the voltage at the charging end of the charging box is lower than the second set threshold within the fourth set time period, the second controller is also used to control the second analog switch to be turned on, so that the second codec unit converts the second data information into a second electrical signal based on the voltage of the charging box battery, and outputs the second electrical signal to the wireless headset through the charging end of the charging box; after the second data information is sent, or when the charging end of the charging box receives the transmission completion signal and the predetermined signal sent by the wireless headset in sequence, and the charging box does not need to send the second data information to the wireless headset, the second controller is also used to control the third switch device to be turned on, so that the charging box battery continues to output the charging voltage through the charging end of the charging box.
[0012] 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 turns on the third switching device so that the charging box battery outputs a charging voltage greater than the logic low level or the logic high level to the charging end of the charging box as the response signal; or, when the predetermined signal is the logic high level, the charging box also includes a second resistor, a fourth switching device and a response interrupt signal timer, the second resistor is coupled between the charging end of the charging box and one end of the fourth switching device, and the other end of the fourth switching device is grounded; the second controller turns on the fourth switching device for a period of time to discharge to the ground, so that the voltage and current at the charging end of the charging box suddenly change as the response signal, and the response interrupt signal timer is used to time the turn-on time of the fourth switching device.
[0013] Optionally, the second detection unit includes a second comparator, a first input end of the second comparator is coupled to the charging end of the charging box, a second input end of the second comparator inputs a second reference voltage, the value of the second reference voltage is the second set threshold, and the output end of the second comparator is coupled to the input end of the second controller; and / or, the wireless headset also includes a second maximum voltage selection unit, the third switching device is a second PMOS transistor, whose source is coupled to the positive electrode of the charging box battery, its drain is coupled to the charging end of the charging box, its gate is coupled to the output end of the second controller, and its substrate is coupled to the output end of the second maximum voltage selection unit, the first input end of the second maximum voltage selection unit is coupled to the charging end of the charging box, the second input end of the second maximum voltage selection unit is coupled to the positive electrode of the charging box battery, and the second maximum voltage selection unit selects the higher voltage between the first input end and the second input end as the output; and / or, the fourth switching device of the charging box is a second NMOS transistor, whose drain is coupled to the second resistor, its source is grounded, and its gate is coupled to the output end of the second controller.
[0014] A fourth aspect of the present invention provides a charging box, which includes the charging box circuit provided by the third aspect above.
[0015] A fifth aspect of the present invention provides a wireless earphone assembly, which includes the wireless earphone provided by the second aspect and the charging box provided by the fourth aspect.
[0016] A sixth aspect of the present invention provides a communication method, which is applied to wireless headphones. The communication method includes: when the charging end of the wireless headphones is coupled to the headphone battery and the charging box respectively, and the wireless headphones need to transmit first data information to the charging box, the headphone battery is disconnected from the charging end of the wireless headphones, and an interrupt signal is sent to the charging box through the charging end of the wireless headphones, and the interrupt signal is used to disconnect the charging end of the charging box from the charging box battery to stop outputting the charging voltage to the charging end of the wireless headphones; when it is detected that the voltage at the charging end of the wireless headphones is lower than a first set threshold, a first electrical signal representing the first data information is output through the charging end of the wireless headphones.
[0017] Optionally, the interrupt signal is formed by turning on a second switch device provided between the charging terminal and the ground terminal of the wireless headset 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 headset; and / or, the first electrical signal is formed by modulating the first data information into high and low levels by the first encoding and decoding unit based on the voltage of the headset battery; and / or, after the first data information is transmitted, a transmission completion signal and a predetermined signal are sequentially output to the charging box through the charging terminal of the wireless headset, the transmission completion signal indicating that the transmission of the first data information is completed, and the predetermined signal is continuous for a second set time. long logic high level or logic low level; within the second set time period, if it is detected that the charging end of the wireless headset receives the response signal sent by the charging box, the predetermined signal is stopped to be output so that the second electrical signal representing the second data information sent by the charging box is received through the charging end of the wireless headset; after receiving the second electrical signal or detecting that the charging end of the wireless headset does not receive the response signal and the second set time period is arrived, the headset battery is coupled to the charging end of the wireless headset to continue to receive the charging voltage output by the charging box through the charging end of the wireless headset to charge the headset battery.
[0018] The seventh aspect of the present invention provides a communication method, which is applied to a charging box. The communication method includes: when the charging end of the charging box is coupled to the wireless headset and an interrupt signal is received, the charging end of the charging box is disconnected from the charging box battery to stop outputting the charging voltage to the wireless headset and start timing a third set time; when a first electrical signal representing first data information sent by the wireless headset through the charging end of the charging box is received within the third set time, the charging end of the charging box is continued to be disconnected from the wireless headset after the third set time is expired; and / or, when the first electrical signal representing the first data information sent by the wireless headset is not received within the third set time, the charging end of the charging box is coupled to the charging box battery after the third set time is expired to continue outputting the charging voltage.
[0019] Preferably, the communication method includes: when the charging end of the charging box receives the transmission completion signal and the predetermined signal sent in sequence by the wireless headset, and the charging box needs to send the second data information to the wireless headset, sending a response signal to the wireless headset through the charging end of the charging box, and the response signal is used to make the wireless headset stop outputting the predetermined signal; then outputting a second electrical signal representing the second data information through the charging end of the charging box; wherein, the transmission completion signal is used to indicate that the transmission of the first data information is completed; after the second data information is sent, or when the transmission completion signal and the predetermined signal sent in sequence by the wireless headset are received at the charging end of the charging box, and the charging box does not need to send the second data information to the wireless headset, making the charging box stop outputting the predetermined signal. The charging end of the battery box is coupled to the wireless headset to continue to output the charging voltage through the charging end of the charging box; the predetermined signal includes one of a logic high level and a logic low level, wherein: when the predetermined signal is the logic high level, the fourth switching device arranged between the charging end and the ground end of the charging box is turned on for a period of time to discharge to the ground, so that the voltage and current of the charging end of the charging box are suddenly changed, as the response signal; or, when the predetermined signal is the logic low level or the logic high level, the third switching device arranged between the charging end of the charging box and the charging box battery is turned on, so that the charging box battery outputs a charging voltage greater than the logic low level or the logic high level to the charging end of the charging box as the response signal.
[0020] In the above technical solution, when the wireless headset is electrically coupled to the charging box and needs to transmit first data information to the charging box, the first controller can control the first switch device coupled between the charging terminal of the wireless headset and the headset battery to disconnect, and control the interrupt signal sending circuit to send an interrupt signal to the charging box through the charging terminal of the wireless headset, thereby disconnecting the charging terminal of the charging box from the charging box battery and stopping the output of the charging voltage to the charging terminal of the wireless headset. Then, when the first detection unit detects that the voltage at the charging terminal of the wireless headset 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 headset, thereby enabling the wireless headset to actively communicate with the charging box. When the headset transmits data to the charging box, the charging box no longer outputs the charging voltage, thereby consuming less battery power and having strong anti-interference capabilities. There is no need to add other additional circuits to reduce the bit error rate. The circuit structure is simple, which helps to reduce costs.
[0021] Other features and advantages of the present invention will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0023] Figure 1 This is a structural diagram of a wireless headset connected to a charging box;
[0024] Figure 2 A schematic structural diagram of a wireless headset circuit provided in an embodiment of the present application;
[0025] Figure 3A for Figure 1 The waveform diagram of the voltage signal at the charging end of the wireless headset when the wireless headset transmits data to the charging box;
[0026] Figure 3B for Figure 2 The waveform diagram of the voltage signal at the charging end of the wireless headset when the wireless headset transmits data to the charging box;
[0027] Figure 4 for Figure 2 A schematic structural diagram of a first analog switch in a wireless headset circuit;
[0028] Figure 5 for Figure 2 A schematic structural diagram of a first highest voltage selection unit in a wireless headset circuit;
[0029] Figure 6 A schematic diagram of the structure of a charging box circuit provided in an embodiment of the present application;
[0030] 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 headset in the charging box circuit shown;
[0031] Figure 8 A schematic diagram of the circuit structure of a wireless headset assembly provided in an embodiment of the present application;
[0032] Figure 9 A flowchart of a communication method provided in an embodiment of the present application;
[0033] Figure 10 A flowchart of another communication method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0034] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0035] It should be noted that the terms "coupled" and "connected" as used herein include both direct connections between two or more circuit objects without any intervening circuit objects, and indirect connections between two or more circuit objects via one or more intervening circuit objects. For example, two circuit objects that are directly connected to each other are said to be "coupled / connected" to each other. Similarly, two circuit objects with one or more intervening circuit objects connected between them are also said to be "coupled / connected" to each other. In other words, "coupled," "connected," etc. can refer to direct electrical connections or indirect electrical connections. Indirect electrical connections refer to connections with other components, such as resistors and capacitors, in between.
[0036] With the development of intelligence, when using charging boxes, there is an increasing need to establish a communication connection between earphones and charging boxes, so as to realize needs such as the mobile phone upgrading the firmware system of the charging box through the earphones, or the earphones obtaining the power information of the charging box, or the earphones notifying the charging box of the power of the earphone batteries.
[0037] Figure 1 This is a schematic diagram of the structure of a wireless headset connected to a charging box. Figure 1 As shown, the charging terminal of the charging box and the charging terminal of the wireless earphones are connected via a connecting cable during charging, and the wireless earphones and the charging box can reuse the connecting cable between the charging terminal of the wireless earphones and the charging terminal of the charging box for communication. When the charging box continuously outputs voltage to the charging terminal of the wireless earphones through its charging terminal, the wireless earphones change the load at the charging terminal of the charging box, thereby modulating the digital signal that the wireless earphones need to transmit to the charging box into ripple, which is then decoded by the charging box to obtain the digital signal. Specifically, the wireless earphones placed in the charging box can compete with the charging box output. For example, the wireless earphones can draw current from the charging terminal of the charging box multiple times at set time intervals (for example, through discharge), thereby forcing the voltage at the charging terminal of the charging box to decrease, thereby forming ripples in the form of high and low levels. However, the above solution has weak anti-interference capabilities. If the bit error rate is to be reduced, additional costs are required to design interface circuits, etc. Moreover, when transmitting data, the charging box always outputs a charging voltage to the earphones. The earphones continuously compete with the charging box output through additional discharge, resulting in a large consumption of the charging box battery.
[0038] In view of this, the embodiments of the present application provide a wireless headset and a charging box and their circuits, a wireless headset component and a communication method, which can enable the wireless headset to actively communicate with the charging box, and when the headset transmits data to the charging box, the charging box stops outputting the charging voltage, thereby consuming less battery power and having strong anti-interference ability. There is no need to add an additional interface circuit to reduce the bit error rate, which helps to reduce costs.
[0039] Figure 2 This is a schematic diagram of the structure of a wireless headset circuit provided in an embodiment of the present application. Figure 2 As shown, the wireless headset circuit includes a headset 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 headset and one end of the headset battery, and the other end of the headset battery is grounded. When the charging end of the wireless headset is electrically coupled to the charging box and the wireless headset needs to transmit first data information to the charging box, the first controller is used 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 box through the charging end of the wireless headset, wherein the interrupt signal is used to disconnect the charging end of the charging box from the charging box battery to stop outputting the charging voltage to the charging end of the wireless headset. When the first detection unit 22 detects that the voltage at the charging end of the wireless headset is lower than the first set threshold (indicating that the charging box has stopped outputting the charging voltage to the charging end of the wireless headset), 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 headset. Among them, the first data information may include a software program for upgrading the charging box and / or electrical parameter information of the earphone battery, and 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.
[0040] In the above technical solution, when the wireless headset is electrically coupled to the charging case and needs to transmit first data information to the charging case, the first controller can control the first switch device MP1 coupled between the charging terminal of the wireless headset and the headset battery to disconnect, and control the interrupt signal sending circuit 21 to send an interrupt signal to the charging case through the charging terminal of the wireless headset, thereby disconnecting the charging terminal of the charging case from the charging case battery and stopping the output of the charging voltage to the charging terminal of the wireless headset. Then, when the first detection unit 22 detects that the voltage at the charging terminal of the wireless headset is lower than a 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 headset, thereby enabling the wireless headset to actively communicate with the charging case. During data transmission, the charging case stops outputting the charging voltage, and the wireless headset can use the headset battery to generate the first electrical signal representing the first data information. This can reduce battery power consumption, has strong anti-interference capabilities, and does not require additional circuits to reduce the bit error rate, simplifying the circuit structure and helping to reduce costs.
[0041] Continue to refer Figure 2 , the interrupt signal sending circuit 21 may include a first resistor R1 and a second switch device MN1. The first resistor R1 is coupled between the charging end of the wireless headset and one end of the second switch device MN1, and the other end of the second switch device MN1 is grounded. The first resistor R1 is a discharge current limiting resistor, and the second switch device MN1 is a discharge control switch. When an interrupt signal needs to be sent, the first controller controls the second switch device MN1 to be turned on for a period of time to discharge to the ground, causing a sudden change in the voltage and current at the charging end of the wireless headset to serve as an interrupt signal. Figure 2 The wireless headset circuit may further include an interrupt signal timer and an interrupt detection timer. The interrupt signal timer is used to measure the duration of the conduction of the second switch device MN1. After the interrupt signal timer expires, the first controller controls the second switch device MN1 to turn off, and the interrupt detection timer simultaneously begins to measure a 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 port of the wireless headset. The first controller may send a switch control signal to the first analog switch. Within the first set duration, if the first detection unit 22 detects that the voltage at the charging port of the wireless headset is lower than a first set threshold, the first controller controls the first analog switch to conduct, causing the first codec unit to modulate the first data information into high and low levels based on the voltage of the headset battery to form a first electrical signal.
[0042] Specifically, the second switch device MN1 of the interrupt signal sending circuit 21 can 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 end of the first controller to receive the conversation interrupt signal sent by the first controller.
[0043] Because the substrate of a PMOS transistor needs to be connected to the higher voltage of its source or drain, the wireless headset may further include a first maximum voltage selection unit MAX1. The first switching device MP1 may be a first PMOS transistor, with its drain coupled to the positive terminal of the headset battery, its source coupled to the charging terminal of the wireless headset, and its gate 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 by the output terminal of the first maximum voltage selection unit MAX1. A first input terminal of the first maximum voltage selection unit MAX1 is coupled to the charging terminal of the wireless headset, and a second input terminal of the first maximum voltage selection unit MAX1 is coupled to the positive terminal of the headset battery. The first maximum voltage selection unit MAX1 selects the higher voltage of its first input terminal and second input terminal as its output. In other words, the first maximum voltage selection unit MAX1 outputs the higher voltage of the voltage at the charging terminal of the wireless headset and the voltage at the positive terminal of the headset battery, whichever is input to its two input terminals.
[0044] In addition, the first detection unit 22 may include a first comparator, wherein a first input of the first comparator is coupled to the charging terminal of the wireless headset, a second input of the first comparator is input with a first reference voltage V1, the value of the first reference voltage V1 being a first set threshold, and an output of the first comparator is coupled to an input of the first controller. Thus, when the voltage at the charging terminal of the wireless headset is lower than the first set threshold, the voltage input to the first input of the first comparator is lower than the first reference voltage V1 input to the second input, and the output of the first comparator outputs a corresponding charging terminal voltage determination signal. The first controller may then perform a corresponding action based on the charging terminal voltage determination signal, such as controlling the first communication unit 23 to output a first electrical signal representing first data information through the charging terminal of the wireless headset.
[0045] like Figure 2As shown, in one possible implementation, the wireless headset 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 or logic low level that lasts for a second set duration, which is measured by the interrupt signal monitoring timer. Within the second set duration, the first detection unit 22 detects that the charging terminal of the wireless headset has received a response signal sent by the charging case, and the first controller controls the first communication unit 23 to stop outputting the predetermined signal. Alternatively, the first communication unit 23 stops outputting the predetermined signal upon receiving the response signal from the charging case. This allows the first communication unit 23 to receive a second electrical signal representing the second data information sent by the charging case through the charging terminal of the wireless headset. For example, the charging case transmits the signal to the headset by modulating a digital signal into ripple on the output voltage. Upon receiving the response signal, the response timer starts counting. The second data information may include software used to upgrade the wireless headset and / or electrical parameter information of the charging case battery. The electrical parameter information of the charging case battery may include at least one of the battery voltage, battery capacity, current, battery temperature, and battery level of the charging case battery.
[0046] That is, the first detection unit 22 can sense the response signal and then feed it back to the first controller, causing the first controller to control the first communication unit 23 to stop outputting the predetermined signal. Alternatively, the first communication unit 23 can directly sense the response signal and stop outputting the predetermined signal. Then, when the response timer expires; or when the second set time period expires and the first detection unit 22 detects that the charging end of the wireless headset has not received the response signal sent by the charging box within the second set time period, the first controller controls the first switching device MP1 to turn on, so that the charging end of the wireless headset continues to receive the charging voltage output by the charging box to charge the headset battery. In other words, the first switching device MP1 serves as the headset battery charging switch.
[0047] Figure 3A for Figure 1 The waveform diagram of the voltage signal at the charging end of the wireless headset when the wireless headset transmits data to the charging box. Figure 3A In the CODE Window, the charging box maintains the trend of outputting the charging voltage VCHG. Since only a sufficiently large current is drawn by the earphone end, its output voltage will be reduced to VCHG-deltaV. This means that during the entire process of the earphone communicating with the charging box, it is necessary to consume the charging box current to maintain signal transmission.
[0048] Figure 3B for Figure 2 The waveform diagram of the voltage signal at the charging end of the wireless headset when the wireless headset transmits data to the charging box in the wireless headset circuit. Figure 3B In the process, the wireless headset briefly pulls down the charging terminal voltage to VCHG-deltaV, sends a flag signal (i.e., interrupt signal) to the charging box, and informs the charging box that communication is required. The charging box will stop outputting the charging voltage and release control of the headset charging terminal. The code transmitted afterwards can be a digital logic signal with a high potential of the headset battery voltage V_TWS_bat and a low potential of 0V (VSS), and the generation of this signal will not consume additional power from the charging box.
[0049] Figure 4 for Figure 2 Schematic diagram of the structure of the first analog switch in the wireless headset circuit. Figure 4 As shown, the first analog switch includes MP and MN. MP and MN complement each other to form an analog signal path. When the first analog switch is turned on, the switch control signal input from the control terminal is a logic high voltage, such as VDD. For input signals with a voltage lower than the voltage difference VDD-Vth_MN (Vth_MN is the threshold voltage of the MN transistor), MN is turned on. The control signal passes through the inverter INV and becomes a logic low voltage, turning MP off. For input signals with a voltage higher than |Vth_MP| (Vth_MP is the threshold voltage of MP, generally a negative value, so the absolute value is added here), MP is turned on. If the input is lower than the voltage difference VDD-Vth_MN, MP is also turned on. If the input is higher than the voltage difference VDD-Vth_MN, MP is turned off. When the first analog switch is turned off, the switch control signal input from the control terminal is a logic low voltage, turning MN off and MP off.
[0050] Figure 5 for Figure 2 A schematic diagram of the structure of the first highest voltage selection unit in the wireless headset circuit. Figure 5 As shown, 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 source and substrate of MPA and the source and substrate of 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 cut off, MPA is turned on or turned on through the body diode of MPA, and the voltage of inputa is output as the highest potential to output_max; conversely, if the potential of inputb is higher than the potential of inputa, the voltage of inputb is output as the highest potential to output_max, that is, Figure 2 The substrate of MP1.
[0051] In addition, an embodiment of the present invention further provides a wireless headset, which includes the above-mentioned wireless headset circuit.
[0052] Figure 6 This is a schematic diagram of the structure of a charging box circuit provided in an embodiment of the present application. Figure 6 As shown, the charging case circuit includes a charging case battery, a third switch device MP2, a second detection unit 61, a second controller, and a second communication unit 62. The third switch device MP2 is coupled between the charging terminal of the charging case and one end of the charging case battery, with the other end of the charging case battery being grounded. When the charging terminal of the charging case is coupled to the wireless headset and the second detection unit 61 detects that the charging terminal of the charging case has received an interrupt signal, the second controller controls the third switch device MP2 to be disconnected, thereby stopping the output of the charging voltage to the charging terminal of the wireless headset. If the second communication unit 62 receives a first electrical signal representing first data information transmitted by the wireless headset via the charging terminal of the charging case within a third set duration during which the output of the charging voltage is stopped, the second controller is further configured to control the third switch device MP2 to remain disconnected after the third set duration expires. And / or if the second communication unit 62 does not receive the first electrical signal representing the first data information transmitted by the wireless headset via the charging terminal of the charging case within the third set duration, the second controller is further configured to control the third switch device MP2 to be connected after the third set duration expires.
[0053] Since the "interruption signal" received at the charging end of the charging box may be sent by the wireless headset or caused by the charging box itself, the total time required to transmit the first data information, that is, the third set time, can be pre-set. In this way, if the first data information is not received within the third set time after the "interruption signal" is received at the charging end of the charging box, it means that the headset does not need to transmit data information to the charging box. The second controller can promptly control the third switch device MP2 to turn on after the third set time is reached, so that the charging end of the charging box continues to output the charging voltage to charge the wireless headset. In addition, the charging box may also include a data receiving timer for timing the third set time.
[0054] The second detection unit 61 may include a second comparator, wherein a first input of the second comparator is coupled to the charging terminal of the charging box, a second reference voltage V2 is input to the second input of the second comparator, the value of the second reference voltage V2 is a second set threshold, and an output of the second comparator is coupled to the input of the second controller. For example, the interrupt signal may reduce the voltage at the charging terminal of the charging box. When the charging end of the charging box does not receive an interrupt signal, the voltage at the charging end of the charging box input by the first input end of the second comparator is greater than the second reference voltage V2, and the second controller will not control the third switch device MP2 to disconnect based on the interrupt detection signal output by the output end of the second comparator, so that the charging end of the charging box can output the charging voltage to the wireless headset; when the charging end of the charging box receives an interrupt signal, the voltage at the charging end of the charging box input by the first input end of the second comparator is less than the second reference voltage V2, and the second controller will control the third switch device MP2 to disconnect based on the interrupt detection signal output by the output end of the second comparator, so that the charging end of the charging box no longer outputs the charging voltage to the wireless headset, so that the second communication unit 62 of the charging box can receive the first electrical signal representing the first data information sent by the wireless headset through the charging end of the charging box.
[0055] Continue to refer Figure 6 In some embodiments, when the charging end of the charging box receives the transmission completion signal and the predetermined signal sent by the wireless headset in sequence, and the charging box needs to send the second data information to the wireless headset, the second controller is further used to send a response signal to the wireless headset through the charging end of the charging box, and the response signal is used to stop the wireless headset from outputting the predetermined signal, wherein the transmission completion signal is used to indicate that the transmission of the first data information is completed; the second communication unit 62 includes a second codec unit and a second analog switch, and the second analog switch is coupled between the second codec unit and the charging end of the charging box. The structure of the second analog switch can be referred to Figure 4 The structure of the first analog switch shown. The second codec unit is used to decode the first electrical signal into the first data information; the charging box may also include an answer interrupt detection timer. After sending the answer signal, the answer interrupt detection timer starts to count the fourth set time period. When the second detection unit 61 detects that the voltage at the charging end of the charging box is lower than the second set threshold within the fourth set time period, the second controller is also used to control the second analog switch to be turned on, so that the second codec unit converts the second data information into a second electrical signal based on the voltage of the charging box battery, and outputs the second electrical signal to the wireless headset through the charging end of the charging box; after the second data information is sent, or when the charging end of the charging box receives the transmission completion signal and the predetermined signal sent in sequence by the wireless headset, and the charging box does not need to send the second data information to the wireless headset, the second controller is also used to control the third switch device MP2 to be turned on, so that the charging box battery continues to output the charging voltage through the charging end of the charging box.
[0056] Furthermore, in some embodiments, the predetermined signal may include one of a logic high level and a logic low level. When the predetermined signal is a logic low level or a logic high level, the second controller turns on the third switch MP2, causing the charging case battery to output a charging voltage greater than the logic low level or the logic high level to the charging terminal of the charging case as a response signal. The "logic high level" may refer to the voltage of the earphone battery, which is lower than the charging voltage output by the charging case. Therefore, when the predetermined signal is a logic high level, the charging case battery can output a charging voltage greater than the logic high level to the charging terminal of the charging case as a response signal. When the predetermined signal is a logic high level, the charging case further includes a second resistor R2, a fourth switch MN2, and a response interrupt signal timer. The second resistor R2 is coupled between the charging terminal of the charging case and one end of the fourth switch MN2, and the other end of the fourth switch MN2 is grounded. The second controller turns on the fourth switch MN2 for a period of time to discharge the battery to ground, causing a sudden change in the voltage and current at the charging terminal of the charging case as a response signal. The response interrupt signal timer is used to measure the on-time of the fourth switch MN2. The second resistor R2 is a discharge current limiting resistor, and the fourth switch device MN2 is a discharge control switch.
[0057] Since the substrate of the PMOS transistor needs to be connected to the higher voltage of the source and drain, the wireless headset also includes a second maximum voltage selection unit MAX2. The structure of the second maximum voltage selection unit MAX2 can be referred to Figure 5 The structure of the first maximum voltage selection unit shown. The third switching device MP2 is a second PMOS transistor, whose source is coupled to the positive electrode of the charging box battery, whose drain is coupled to the charging end of the charging box, whose gate is coupled to the output end of the second controller, and whose substrate is coupled to the output end of the second maximum voltage selection unit MAX2. The first input end of the second maximum voltage selection unit MAX2 is coupled to the charging end of the charging box, the second input end of the second maximum voltage selection unit MAX2 is coupled to the positive electrode of the charging box battery, and the second maximum voltage selection unit MAX2 selects the higher voltage of its first input end and the second input end 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, its source is grounded, and its gate is coupled to the output end of the second controller to receive the response interrupt signal sent by the second controller.
[0058] Figure 7 for Figure 6 The waveform diagram of the voltage signal at the charging end of the charging box when the charging box communicates with the wireless headset in the charging box circuit shown in FIG. Figure 7 As shown in the waveform diagram at the top, the waveform diagram at the middle, and the waveform diagram at the bottom, the first CODE Window and the waveform diagrams before it are the same as Figure 3B The same is the waveform diagram of the voltage signal at the charging end of the wireless headset / the charging end of the charging box / the connecting line between the charging end of the wireless headset and the charging end of the charging box when the wireless headset transmits data to the charging box. After the wireless headset is placed in the charging box, the charging box and the wireless headset share a common ground, and the output of the charging box is connected to the power input of the headset. The mobile phone sends data information such as charging box upgrade instructions to the headset through wireless communication with the headset. Relative to the charging box, the headset acts as the caller. After receiving the charging box upgrade instruction, the headset performs a one-time short load mutation on the power input terminal, and the mutation direction can be high or low. For example, the mutation direction is low for explanation, and the conversation interruption signal is used to Figure 2 Or as described below Figure 8 A short high level is applied to the gate of MN1, and MN1 will be turned on briefly. The current flowing to the ground through MN1 will cause the voltage of the charging box output port to drop, see Figure 3 or Figure 7 The first flag in the waveform is shown in Figure 1. The charging case interprets a brief, sudden change in the output load as an output interrupt signal and the start of data reception. Upon detecting this signal, the charging case stops actively outputting voltage, and the earbuds gain full control of the charging port voltage. They can then begin outputting rail-to-rail digital signals to the charging case through the earbud charging port, using the battery voltage as the power rail.
[0059] Then, in order to realize the response, the charging box needs to transmit digital signals to the earphones. Figure 7 There are three methods shown in the figure, namely method A, method B and method C. Specifically, when the charging box outputs a digital '1' level (i.e., VCHG) to the earphone, method A is to pull up the voltage of the charging terminal, such as turning on the switch device MP2 between the charging terminal of the charging box and the charging box battery to output the charging voltage through the charging box battery to achieve pull-up. 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 of the charging terminal, such as briefly turning on the charging terminal. Figure 6 Or as described below Figure 8The device MN2 in the waveform diagram realizes 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 earphone outputs digital '1' by itself, it detects a brief pull-up or pull-down on the charging port as an interrupt request for the charging box to return data. Method C is that when the earphone outputs a digital "0" level (i.e., VSS), the charging box briefly pulls up the output port voltage, such as turning on the switching device MP2 between the charging end of the charging box and the charging box battery to output the charging voltage through the charging box battery to achieve pull-up. 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, and after a period of waiting, the rail-to-rail digital signal is output to the earphone through the charging end of the charging box. After receiving the interrupt request, the earphone stops actively controlling the charging port and prepares to receive the rail-to-rail digital signal returned by the charging box.
[0060] The above method realizes digital communication between the wireless headset and the charging box, with the wireless headset as the active caller.
[0061] In addition, an embodiment of the present invention further provides a charging box, which includes the above-mentioned charging box circuit.
[0062] Figure 8 This is a schematic diagram of the circuit structure of a wireless headset component provided in an embodiment of the present application. Figure 8 As shown, the wireless earphone assembly includes the wireless earphone and charging box provided in the above embodiments. The wireless earphone includes the wireless earphone circuit provided in the above embodiments. Figure 2-Figure 5 The charging box includes the charging box circuit provided by the above embodiment, which can be specifically referred to Figure 6 Related description.
[0063] As the caller, the wireless headset issues a caller interrupt signal by briefly increasing or decreasing the load on the charging port. This interrupt signal can be used to stop the charging case from supplying charging voltage to the wireless headset. After the wireless headset issues the caller interrupt signal, it begins outputting a rail-to-rail digital signal through the charging port. Once the signal output is complete, it outputs a digital high (or low) and listens for interrupt signals, simultaneously starting the interrupt window timer. If no interrupt signal is received from the charging case within the interrupt window, the current round of communication response ends. If an interrupt signal is received from the charging case within the interrupt window, the headset begins receiving the charging case signal and the signal reception window timer begins. Once the signal reception window timer expires, the current round of communication response ends, regardless of whether a valid signal is received. After one round of communication response ends and before the next round of communication response begins, the headset battery can be charged. During the communication response window, the headset battery charging path is blocked.
[0064] As the called party, the charging box stops outputting voltage or current upon receiving an interrupt signal and begins timing the signal reception window. If a valid digital signal is received from the charging port of the charging box before the timer expires, it decodes the signal and generates an acknowledgement interrupt by briefly pulling down or up the output port voltage. After the acknowledgement interrupt, the charging box sends a rail-to-rail digital signal to the earphones through the charging port of the charging box. Once the signal is transmitted, the charging box resumes outputting the charging voltage to the earphones. Except for the interrupt signal, all data communication between the wireless earphones and the charging box uses rail-to-rail digital signals.
[0065] Figure 9 This is a flowchart of a communication method provided in an embodiment of the present application. Figure 9 As shown, the communication method is applied to wireless headphones, and the circuit in the wireless headphones can be as shown in FIG. Figure 2 As shown, the communication method may specifically include the following steps:
[0066] In step S901 , the first controller controls the first switch device MP1 between the earphone charging terminal and the earphone battery to be turned on, so as to charge the earphone through the earphone charging terminal.
[0067] Step S902: Determine whether the headset needs to initiate a conversation interruption. If the headset needs to send data to the charging box, a conversation interruption needs to be initiated; if the headset does not need to send data to the charging box, a conversation interruption does not need to be initiated.
[0068] When the judgment result of step S902 is no, the process returns to step S901; when the judgment result of step S902 is yes, the process proceeds to step S903.
[0069] Step S903: disconnect the first switch device MP1 and open the current path between the charging terminal and the ground. Figure 2 The second switching device MN1 is shown to be closed, and the interrupt signal timer performs interrupt signal timing, that is, times the duration of the closing of the second switching device MN1.
[0070] Step S904: Determine whether the interrupt signal timer has expired, that is, whether the duration of the second switch MN1 closing has ended. If the determination result is no, return to step S903; if the determination result is yes, proceed to step S905.
[0071] Step S905: disconnect the current path between the charging terminal and the ground. Figure 2 The second switch device MN1 in the interrupt detection timer is turned off, and the interrupt detection timer starts interrupt detection timing.
[0072] Step S906: Determine whether the charging terminal voltage drops below the threshold V1 within the interrupt detection timing window. If the determination result is no, return to step S901; if the determination result is yes, proceed to step S907.
[0073] Step S907: Output a rail-to-rail digital signal through the earphone charging terminal.
[0074] Step S908: Determine whether the data has been sent. If the determination result is no, return to step S907; if the determination result is yes, proceed to step S909.
[0075] In step S909, the headphone charging terminal outputs a logic high level to start the response interrupt signal monitoring timer. The logic high level can also be replaced by a logic low level. The logic high level and logic low level here are the predetermined signals mentioned above.
[0076] Step S910: Determine whether a response interrupt signal is detected within the response interrupt signal detection time. If the determination result is no, return to step S901; if the determination result is yes, proceed to step S911.
[0077] Step S911: perform response timing and receive the response signal sent by the charging box.
[0078] Step S912: Determine whether the response timer has expired. If not, return to step S911; if yes, return to step S901.
[0079] That is to say, when the charging end of the wireless headset is coupled to the headset battery and the charging box respectively, and the wireless headset needs to transmit first data information to the charging box, the headset battery is disconnected from the charging end of the wireless headset, and an interrupt signal is sent to the charging box through the charging end of the wireless headset. The interrupt signal is used to disconnect the charging end of the charging box from the charging box battery to stop outputting the charging voltage to the charging end of the wireless headset; when it is detected that the voltage at the charging end of the wireless headset is lower than the first set threshold, the first electrical signal representing the first data information is output through the charging end of the wireless headset.
[0080] The interrupt signal may be generated by turning on a second switch device MN1 disposed between the charging terminal and the ground terminal of the wireless headset for a period of time to discharge the device to the ground, thereby causing a sudden change in the voltage and current at the charging terminal of the wireless headset. Furthermore, the first electrical signal may be generated by modulating the first data information into high and low levels by the first codec unit based on the voltage of the headset battery. Furthermore, after the transmission of the first data information is completed, the charging terminal of the wireless headset sequentially outputs a transmission completion signal and a predetermined signal to the charging box, wherein the transmission completion signal indicates that the transmission of the first data information is complete, 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 headset receives a response signal sent by the charging box, the predetermined signal is stopped from being output, so that the charging terminal of the wireless headset receives a second electrical signal representing the second data information sent by the charging box. After receiving the second electrical signal or detecting that the charging terminal of the wireless headset does not receive the response signal and the second set duration has expired, the headset battery is coupled to the charging terminal of the wireless headset so that the charging terminal of the wireless headset continues to receive the charging voltage output by the charging box to charge the headset battery.
[0081] Figure 10 This is a flowchart of another communication method provided in an embodiment of the present application. Figure 10 As shown, this communication method is applied to the charging box, and the circuit in the charging box can be as follows Figure 6 As shown, the communication method may specifically include the following steps:
[0082] In step S1001, the charging box outputs a charging voltage and monitors the voltage state or load state of the output end (ie, the charging end of the charging box).
[0083] Step S1002: Determine whether a call interruption signal is received. If the headset needs to send data to the charging box, a call interruption signal will be received; if the headset does not need to send data to the charging box, no call interruption signal will be received.
[0084] When the judgment result of step S1002 is no, the process returns to step S1001; when the judgment result of step S1002 is yes, the process proceeds to step S1003.
[0085] Step S1003 , stop outputting voltage and current to the earphone, and receive the rail-to-rail digital signal through the output terminal, while performing data reception timing through a data reception timer.
[0086] Step S1004: Determine whether the data reception timer has expired. If not, return to step S1003; if yes, proceed to step S1005.
[0087] 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.
[0088] Step S1006 , opening the current path between the output terminal and the ground, such as closing the fourth switch device NM2 , and using the answer interrupt signal timer to time the answer interrupt signal, that is, to time the closing time of MN2 .
[0089] Step S1007: After the answer interrupt signal timer expires, the current path between the charging terminal and the ground is disconnected, ie, MN2 is turned off, and the answer interrupt detection timer performs the answer interrupt detection timing.
[0090] Step S1008: Determine whether the charging terminal voltage drops below the threshold V2 within the response interrupt detection timing window. If yes, proceed to step S1009.
[0091] Step S1009: Output the rail-to-rail digital signal through the output port (i.e., the charging end of the charging box).
[0092] Step S1010: Determine whether the data has been sent. If the determination result is no, return to step S1010; if the determination result is yes, return to step S1001.
[0093] That is to say, when the charging end of the charging box is coupled to the wireless headset and receives an interrupt signal sent by the wireless headset, the charging end of the charging box is disconnected from the charging box battery to stop outputting the charging voltage to the wireless headset, and start timing the third set time; when the first electrical signal representing the first data information sent by the wireless headset through the charging end of the charging box is received within the third set time, the charging end of the charging box is continued to be disconnected from the wireless headset after the third set time is expired; and / or, when the first electrical signal representing the first data information sent by the wireless headset is not received within the third set time, the charging end of the charging box is coupled to the charging box battery after the third set time is expired to continue outputting the charging voltage.
[0094] In addition, the communication method may also include: when the charging end of the charging box receives the transmission completion signal and the predetermined signal sent in sequence by the wireless headset, and the charging box needs to send the second data information to the wireless headset, the charging end of the charging box sends a response signal to the wireless headset, and the response signal is used to stop the wireless headset from outputting the predetermined signal; then the second electrical signal representing the second data information is output through the charging end of the charging box; wherein the transmission completion signal is used to indicate that the transmission of the first data information is completed; after the second data information is sent, or when the transmission completion signal and the predetermined signal sent in sequence by the wireless headset are received at the charging end of the charging box, and the charging box does not need to send the second data information to the wireless headset, the charging end of the charging box is coupled to the wireless headset to continue to output the charging voltage through the charging end of the charging box. The predetermined signal includes one of a logic high level and a logic low level, wherein: when the predetermined signal is a logic high level, the fourth switching device MN2 arranged between the charging end and the ground end of the charging box is turned on for a period of time to discharge to the ground, so that the voltage and current of the charging end of the charging box suddenly change as a response signal; or, when the predetermined signal is a logic low level or a logic high level, the third switching device MP2 arranged between the charging end of the charging box and the charging box battery is turned on, so that the charging box battery outputs a charging voltage greater than the logic low level or the logic high level to the charging end of the charging box as a response signal.
[0095] In summary, the wireless headset acts as the caller, and gives a caller interrupt 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 wireless headset charging end; the charging box acts as the called party, and after receiving the interrupt signal, it stops outputting voltage or current to prevent conflicts with digital communications, and receives digital signals from the output end (i.e., the charging end of the charging box). The charging box gives a response interrupt by pulling down or 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 headset cuts off the internal charging path to prevent conflicts with digital communications. The embodiment of the present application can enable the wireless headset to actively communicate with the charging box, and the charging box no longer outputs a charging voltage when the headset transmits data to the charging box, so that less battery power is consumed, and at the same time, the anti-interference ability is strong, and there is no need to add an additional interface circuit to reduce the bit error rate, which helps to reduce costs.
[0096] Professionals should also be further aware that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software programs, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.
[0097] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A charging box circuit, characterized in that: include: A charging box battery and a third switching device, wherein 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, wherein when the charging end of the charging box is coupled to the wireless headset and the second detection unit detects that the charging end of the charging box receives an interrupt signal, the second controller controls the third switch device to be disconnected to stop outputting the charging voltage to the charging end of the wireless headset; The second communication unit, when the second communication unit receives the first electrical signal representing the first data information sent by the wireless headset through the charging end of the charging box within the third set time period of stopping outputting the charging voltage, the second controller is also used to control the third switching device to continue to remain in the disconnected state after the third set time period is arrived; and / or, when the second communication unit does not receive the first electrical signal representing the first data information sent by the wireless headset through the charging end of the charging box within the third set time period, the second controller is also used to control the third switching device to be turned on after the third set time period is arrived.
2. The charging box circuit according to claim 1, characterized in that: The charging box further includes a data receiving timer for timing the third set time period; and / or, When the charging end of the charging box sequentially receives the transmission completion signal and the predetermined signal sent by the wireless headset, and the charging box needs to send second data information to the wireless headset, the second controller is further used to send a response signal to the wireless headset through the charging end of the charging box, wherein the response signal is used to cause the wireless headset to stop outputting the predetermined signal, wherein the transmission completion signal is used to indicate that the transmission of the first data information is completed; The second communication unit includes a second codec unit and a second analog switch, the second analog switch is coupled between the second codec unit and the charging end of the charging box, and the second codec unit is used to decode the first electrical signal into the first data information; the charging box also includes an answer interruption detection timer, after sending the answer signal, the answer interruption detection timer starts timing a fourth set time period, when the second detection unit detects that the voltage at the charging end of the charging box is lower than a second set threshold within the fourth set time period, the second controller is also used to control the second analog switch to be turned on, so that the second codec unit converts the second data information into a second electrical signal based on the voltage of the charging box battery, and outputs the second electrical signal to the wireless headset through the charging end of the charging box; After the second data information is sent, or when the transmission completion signal and the predetermined signal sent by the wireless headset are received in sequence at the charging end of the charging box, and the charging box does not need to send the second data information to the wireless headset, the second controller is also used to control the third switching device to be turned on, so that the charging box battery continues to output the charging voltage through the charging end of the charging box.
3. The charging box circuit according to claim 2, characterized in that: 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 turns on the third switch device so that the charging box battery outputs a charging voltage greater than the logic low level or the logic high level to the charging end of the charging box as the response signal; or When the predetermined signal is the logic high level, the charging box also includes a second resistor, a fourth switching device and a response interrupt signal timer, the second resistor is coupled between the charging end of the charging box and one end of the fourth switching device, and the other end of the fourth switching device is grounded; the second controller turns on the fourth switching device for a period of time to discharge to the ground, so that the voltage and current at the charging end of the charging box suddenly change as the response signal, and the response interrupt signal timer is used to time the turn-on time of the fourth switching device.
4. The charging box circuit according to any one of claim 3, characterized in that: The second detection unit includes a second comparator, a first input terminal of the second comparator is coupled to the charging terminal of the charging box, a second input terminal of the second comparator inputs a second reference voltage, a value of the second reference voltage is a second set threshold, and an output terminal of the second comparator is coupled to the input terminal of the second controller; and / or, The wireless headset also includes a second maximum voltage selection unit, the third switching device is a second PMOS transistor, the source of which is coupled to the positive electrode of the charging box battery, the drain of which is coupled to the charging end of the charging box, the gate of which is coupled to the output end of the second controller, and the substrate of which is coupled to the output end of the second maximum voltage selection unit, the first input end of the second maximum voltage selection unit is coupled to the charging end of the charging box, the second input end of the second maximum voltage selection unit is coupled to the positive electrode of the charging box battery, and the second maximum voltage selection unit selects the higher voltage between the first input end and the second input end as the output; And / or, the fourth switching device of the charging box is a second NMOS transistor, whose drain is coupled to the second resistor, its source is grounded, and its gate is coupled to the output end of the second controller.
5. A charging box, characterized in that: Includes the charging box circuit according to any one of claims 1-4.
6. A communication method, applied to a charging box, characterized in that: The communication method includes: When the charging terminal of the charging box is coupled to the wireless headset and an interrupt signal is received, the charging terminal of the charging box is disconnected from the charging box battery to stop outputting the charging voltage to the wireless headset and start timing a third set time period; When a first electrical signal representing first data information is received from the wireless headset through the charging end of the charging box within the third set time period, the charging end of the charging box is disconnected from the wireless headset after the third set time period expires; and / or, When the first electrical signal representing the first data information sent by the wireless headset is not received within the third set time period, after the third set time period is reached, the charging end of the charging box is coupled to the charging box battery to continue to output the charging voltage.
7. The communication method according to claim 6, wherein: The communication method includes: When the charging end of the charging box receives the transmission completion signal and the predetermined signal sent in sequence by the wireless headset, and the charging box needs to send the second data information to the wireless headset, the charging end of the charging box sends a response signal to the wireless headset, and the response signal is used to stop the wireless headset from outputting the predetermined signal; then, the charging end of the charging box outputs a second electrical signal representing the second data information; wherein, the transmission completion signal is used to indicate that the transmission of the first data information is completed; After the second data information is sent, or when the transmission completion signal and the predetermined signal sent in sequence by the wireless headset are received at the charging end of the charging box, and the charging box does not need to send the second data information to the wireless headset, coupling the charging end of the charging box with the wireless headset to continue outputting the charging voltage through the charging end of the charging box; The predetermined signal includes one of a logic high level and a logic low level, wherein: when the predetermined signal is the logic high level, the fourth switching device arranged between the charging end and the ground end of the charging box is turned on for a period of time to discharge to the ground, so that the voltage and current of the charging end of the charging box are suddenly changed, as the response signal; or, when the predetermined signal is the logic low level or the logic high level, the third switching device arranged between the charging end of the charging box and the charging box battery is turned on, so that the charging box battery outputs a charging voltage greater than the logic low level or the logic high level to the charging end of the charging box, as the response signal.