Charging device, electronic device, communication method and charging system

By introducing modulation signals and modulation response signals into the charging device and electronic device, two-way communication between devices such as TWS headphones and the charging device is achieved, supporting direct charging and double-voltage charging modes, improving the reliability and accuracy of in-situ detection, and reducing hardware costs.

CN116799891BActive Publication Date: 2025-09-09HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210600786.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2022-03-15
Filing Date
2022-05-30
Publication Date
2025-09-09
Estimated Expiration
2042-05-30

AI Technical Summary

Technical Problem

In the prior art, the communication mode between electronic devices such as TWS headphones and charging devices is one-way, which cannot support the electronic devices to actively initiate communication and cannot meet the requirements of direct charging mode and/or double voltage charging mode.

Method used

By introducing the first and second charging circuits into the charging device and the electronic device, and using modulated signals and modulated response signals to achieve two-way communication, the charging device and the electronic device can interact through current or voltage signals to perform identity authentication and presence detection, thereby reducing hardware costs.

Benefits of technology

It realizes two-way communication between the charging device and the electronic device, supports direct charging and voltage-doubling charging modes, improves the reliability and accuracy of in-situ detection, and reduces hardware costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116799891B_ABST
    Figure CN116799891B_ABST
Patent Text Reader

Abstract

A charging device, electronic device, communication method, and charging system relate to the field of terminal technology. The charging device includes a first DC / DC circuit, a first charging circuit, a first battery, and a charging terminal. The first DC / DC circuit is used to charge the first battery using input DC power and output DC power to the input end of the first charging circuit; the first charging circuit receives a first modulated signal sent by the electronic device and demodulates the first modulated signal. When the demodulation result includes a first current, the first charging circuit sends a first modulated response signal to the electronic device, the first modulated signal including the first current, and the first current is used to indicate that the electronic device has initiated communication with the charging device; or sends a second modulated signal to the electronic device and receives a second modulated response signal sent by the electronic device, the second modulated signal including a first voltage, and the first voltage disconnects the second charging circuit of the electronic device from the second battery. This solution enables two-way communication between the charging device and the charging device.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on March 15, 2022, with application number 202210253929.X and invention name “A charging device, electronic device, communication method and charging system”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the technical field of terminal equipment, and in particular to a charging device, an electronic device, a communication method, and a charging system. Background Art

[0003] Current True Wireless Stereo (TWS) headphones, smart watches, smart bracelets and other electronic devices are equipped with metal terminals. After the metal terminals are connected to the corresponding metal terminals on the charging device, the electronic devices can communicate with the charging device, and the charging device can charge the electronic devices. The charging device can be a charging box or a charging stand. The following is an example of TWS headphones and headphone charging box.

[0004] See also Figure 1 , this figure shows a TWS headset and charging box Figure 1 .

[0005] The charging device 10 is a charging box, which is provided with an exposed first set of terminals 11. The electronic device 20 is a TWS headset, which is provided with an exposed second set of terminals 21. When the TWS headset is placed in the charging box, the second set of terminals 21 contacts the first set of terminals 11, thereby connecting the TWS headset to the charging box. Both the first set of terminals 11 and the second set of terminals 21 are metal terminals.

[0006] External exposed metal terminals will affect the waterproof performance of the charging box and electronic devices, and there is also the possibility of corrosion and damage. Therefore, the metal terminals reuse the charging function and the communication function to reduce the number of external exposed metal contacts as much as possible. One current solution is to set a switching switch in the charging box and the electronic device. When the charging box communicates with the electronic device, the switching switch is switched to the communication path. When the charging box communication is completed, the charging box switches the switching switch back to the charging path. However, with the development of fast charging technology, electronic devices can support direct charging mode and / or double voltage charging mode. The communication mode between the electronic device and the charging device also needs to support direct charging mode and / or double voltage charging mode. Therefore, it is necessary to realize two-way communication between the electronic device and the charging box. However, the above solution can only initiate communication by the charging box, and the charging box controls the action of the switching switch. The electronic device cannot initiate communication, that is, it does not support two-way communication between the electronic device and the charging box. Summary of the Invention

[0007] In a first aspect, the present application provides a charging device for charging an electronic device. The charging device includes: a first DC / DC circuit, a first charging circuit, a first battery, and a charging terminal. The first DC / DC circuit inputs direct current (DC) power to an input terminal, outputs DC power to an output terminal to charge the first battery, and outputs DC power to the input terminal of the first charging circuit. The output terminal of the first charging circuit is connected to the charging terminal. The first charging circuit is configured to receive a first modulated signal transmitted by an electronic device, demodulate the first modulated signal, and, when the demodulated result includes a first current, transmit a first modulated response signal to the electronic device, the first modulated signal including the first current, the first current being used to indicate that the electronic device has initiated communication with the charging device. Alternatively, the first charging circuit may transmit a second modulated signal to the electronic device, receive a second modulated response signal transmitted by the electronic device, and demodulate the second modulated response signal, the second modulated signal including a first voltage, the first voltage being used to disconnect a second charging circuit of the electronic device from a second battery.

[0008] The solution provided by the present application is that when the charging device performs direct charging or voltage doubling charging on the electronic device, it can realize two-way communication between the charging device and the electronic device, that is, the communication can be initiated by the charging device, and the charging device sends a second modulated signal to the electronic device, and the second modulated signal carries the first voltage and communication content; or it can be initiated by the electronic device, and the electronic device sends a first modulated signal to the charging device, and the first modulated signal carries the first current and communication content. The above communication process is simple and practical. Through this communication method, specific communication content is modulated in the modulated signal transmitted between the electronic device and the charging device, which can realize mutual identity authentication between the electronic device and the charging device, as well as functions such as in-situ detection, without the need to set up other detection sensors, thereby reducing hardware costs.

[0009] In a possible implementation, the first modulation signal and the second modulation response signal are current modulation signals, and the first modulation response signal and the second modulation signal are voltage modulation signals.

[0010] In one possible implementation, the first voltage is lower than a first trigger voltage of a first protection circuit of the electronic device; the first protection circuit is configured to control the second charging circuit to be disconnected from the second battery when the charging voltage output by the second charging circuit to the second battery is lower than the first trigger voltage.

[0011] In one possible implementation, the first voltage is greater than or equal to a second trigger voltage of a second protection circuit of the electronic device; and the second protection circuit is configured to control the second charging circuit to be disconnected from the second battery when the charging voltage output by the second charging circuit to the second battery is greater than or equal to the second trigger voltage.

[0012] In one possible implementation, the first charging circuit specifically includes: a first state machine and a first modulation and demodulation circuit. The first modulation and demodulation circuit is connected to the first state machine; the first modulation and demodulation circuit is configured to demodulate the acquired modulated signal and transmit the demodulation result to the first state machine. Upon determining that an electronic device is connected based on the demodulation result corresponding to the first modulated signal, the first state machine is configured to control the first modulation and demodulation circuit to modulate the output voltage of the first charging circuit to form a first modulated response signal.

[0013] In a possible implementation, the first modulation and demodulation circuit is specifically configured to modulate the output voltage of the first charging circuit so that the first voltage is zero.

[0014] In one possible implementation, the demodulation result also includes a first characteristic string. In this case, the first charging circuit is specifically configured to, when the first characteristic string is a first preset characteristic string, determine that the electronic device's presence identification result is present, and send a first modulated response signal carrying the presence identification result to the electronic device, wherein the demodulation result of the first modulated response signal includes the second characteristic string. Upon receiving the first modulated response signal, the electronic device demodulates the first modulated response signal, and if the demodulation result includes the second characteristic string, the electronic device determines that the charging device's presence identification has been successful.

[0015] In one possible implementation, the first state machine controls the first modulation and demodulation circuit to modulate the output voltage of the first charging circuit to form a first modulation response signal when the first modulation and demodulation circuit fails to demodulate, or when the electronic device is identified based on the demodulation result corresponding to the first modulation signal, and when the result of the identification is that the electronic device matches the charging device, the first state machine controls the first modulation and demodulation circuit to stop modulating the output voltage of the first charging circuit when the result of the identification is that the electronic device does not match the charging device.

[0016] In a possible implementation, the first state machine is further configured to control the first modulation and demodulation circuit to modulate the output voltage of the first charging circuit to form a second modulation signal when communication with the electronic device needs to be initiated.

[0017] In one possible implementation, the charging device further includes a first controller. A first communication interface of the first controller is connected to a first state machine. The first state machine is further configured to, when determining that the electronic device is present, send a first interrupt signal to the first communication interface of the first controller, the first interrupt signal being used to indicate that the electronic device is present.

[0018] In one possible implementation, the charging device further includes a first comparator. The first comparator is configured to compare an output current of the charging device with a preset current and transmit a first comparison result to a first state machine. The first state machine is further configured to transmit a second interrupt signal to the first controller when it is determined, based on the first comparison result, that the output current of the charging device is less than the preset current. The second interrupt signal is configured to instruct the first controller electronic device to disconnect from the charging device.

[0019] In one possible implementation, the first charging circuit further includes: a second DC / DC circuit and a first switch module. The input end of the second DC / DC circuit is the input end of the first charging circuit; the output end of the second DC / DC circuit is connected to the first end of the first switch module, the second end of the first switch module is connected to the second communication interface of the first controller, and the third end of the first switch module is connected to the output end of the first charging circuit. The first state machine is further configured to control the connection between the second end of the first switch module and the third end of the first switch module when the first controller is communicating with the electronic device; and control the connection between the first end of the first switch module and the third end of the first switch module when the communication between the first controller and the electronic device ends.

[0020] In one possible implementation, the first controller is further used to receive a first charging parameter sent by the electronic device and send the first charging parameter to the first state machine; the first charging parameter includes a charging voltage and a charging current corresponding to the second battery; and the first state machine is further used to control the second DC / DC circuit according to the first charging parameter.

[0021] In one possible implementation, the first controller is further configured to receive voltage information of the second battery from the electronic device, determine first charging parameters corresponding to the second battery based on the voltage information of the second battery, and transmit the first charging parameters to the first state machine. The first charging parameters include the charging voltage and charging current corresponding to the second battery. The first state machine is further configured to control the second DC / DC circuit based on the first charging parameters.

[0022] In a possible implementation, the first state machine is further configured to determine that the connection between the electronic device and the charging device is normal when it is determined, based on the demodulation result, that the electronic device sends a preset pulse signal to the charging device.

[0023] In one possible implementation, the first state machine is further used to maintain the current working state of the second DC / DC circuit and send a fifth interrupt signal to the first controller when it is determined that the electronic device sends a preset pulse signal to the charging device. The fifth interrupt signal is used to indicate that the current electronic device is in a fully charged state or a trickle charging state.

[0024] In one possible implementation, the charging device is a charging box. The second DC / DC circuit is further configured to output a preset voltage when the charging box is opened, or to output the preset voltage according to a preset period.

[0025] In a possible implementation, the second modulated signal and the first modulated response signal further include output parameters of the charging device. The output parameters include at least one of the following: output current or output voltage.

[0026] In a possible implementation, the charging terminal includes a first charging terminal and a second charging terminal.

[0027] In one possible implementation, the charging terminal is any one of a USB port, a pogo pin, or a metal dome. In a second aspect, the present application provides an electronic device, comprising: a second charging circuit, a second battery, and a power receiving terminal. The power receiving terminal is configured to connect to the charging terminal of a charging device and receive direct current outputted by the charging terminal; a first end of the second charging circuit is connected to the power receiving terminal, and a second end of the second charging circuit is connected to the second battery, wherein the voltage outputted by the charging terminal is consistent with or has a preset multiple relationship with the charging voltage outputted by the second charging circuit to the second battery; the second charging circuit is configured to control the second charging circuit to disconnect from the second battery, send a first modulated signal to the charging device, receive a first modulated response signal sent by the charging device, and demodulate the first modulated response signal, wherein the first modulated signal includes a first current, and the first current is used to indicate that the electronic device has initiated communication with the charging device; or, upon receiving a second modulated signal sent by the charging device and demodulating the second modulated signal, when the demodulation result includes the first voltage, control the second charging circuit to disconnect from the second battery and send a second modulated response signal to the charging device.

[0028] The solution provided by this application enables bidirectional communication between the charging device and the electronic device when directly charging or doubling the voltage of the electronic device. This means that communication can be initiated by either the charging device or the electronic device, and the communication process is simple and highly practical. This communication method enables mutual identity authentication and presence detection between the electronic device and the charging device without the need for additional detection sensors, thereby reducing hardware costs.

[0029] In a possible implementation, the first modulation signal and the second modulation response signal are current modulation signals, and the first modulation response signal and the second modulation signal are voltage modulation signals.

[0030] In one possible implementation, the electronic device further includes: a first protection circuit, configured to control the second charging circuit to be disconnected from the second battery when the charging voltage output by the second charging circuit to the second battery is less than a first trigger voltage; and the first voltage is less than the first trigger voltage.

[0031] In one possible implementation, the electronic device further includes: a second protection circuit; the second protection circuit is configured to control the second charging circuit to be disconnected from the second battery when the charging voltage output by the second charging circuit to the second battery is greater than or equal to a second trigger voltage; and the first voltage is greater than or equal to the second trigger voltage.

[0032] In one possible implementation, the second charging circuit specifically includes: a second state machine and a second modulation and demodulation circuit; the second state machine is connected to the second modulation and demodulation circuit; the second modulation and demodulation circuit is used to demodulate the acquired modulation signal and send the demodulation result to the second state machine; the second state machine is used to control the second modulation and demodulation circuit to modulate the input current of the second charging circuit to form a first modulation signal, the first modulation signal carries a first characteristic string, and determines whether the electronic device is connected to the charging device based on the demodulation result corresponding to the first modulation response signal.

[0033] In a possible implementation, the demodulation result corresponding to the first modulated response signal includes a second characteristic string; and the second charging circuit is specifically configured to determine that the electronic device is connected to the charging device when the second characteristic string is a second preset characteristic string.

[0034] In a possible implementation, the second charging circuit is configured to determine that the electronic device is not compatible with the charging device when the first modulated response signal is not received.

[0035] In a possible implementation, the second state machine is further configured to control the second modulation and demodulation circuit to modulate the input current of the second charging circuit to form a second modulation response signal when a demodulation result corresponding to the second modulation signal is obtained.

[0036] In one possible implementation, the electronic device also includes a second controller; the first communication interface of the second controller is connected to the second state machine; the second state machine is further used to send a third interrupt signal to the first communication interface of the second controller if it is determined that the electronic device is connected to the charging device, and the third interrupt signal is used to indicate that the electronic device is connected to the charging device.

[0037] In one possible implementation, the electronic device also includes a second comparator; the second comparator is used to compare the input voltage of the second charging circuit with a preset voltage, and send the obtained second comparison result to the second state machine; the second state machine is also used to send a fourth interrupt signal to the second controller when it is determined that the input voltage is less than the preset voltage according to the second comparison result, and the fourth interrupt signal is used to instruct the second controller electronic device to disconnect from the charging device.

[0038] In one possible implementation, the electronic device further includes a second comparator. The second comparator is configured to compare the input voltage of the second charging circuit with a preset voltage and transmit the obtained second comparison result to a second state machine. The second state machine is further configured to, when the input voltage is determined to be less than the preset voltage based on the second comparison result, control the second modulation and demodulation circuit to transmit a current detection signal to the power receiving terminal. When the voltage at the power receiving terminal exceeds a preset threshold voltage within a preset time, the second state machine is configured to transmit a fourth interrupt signal to the second controller, instructing the second controller to disconnect the electronic device from the charging device. This implementation prevents the electronic device from mistakenly determining that it has been unpacked when the charging device stops outputting voltage.

[0039] In one possible implementation, the second charging circuit further includes: a second switch module and a third switch module; a first end of the second switch module is connected to an input end of the second charging circuit, a second end of the second switch module is connected to a second communication interface of the second controller, and a third end of the second switch module is connected to a first end of the third switch module; a second end of the third switch module is connected to a second battery; and the second state machine is further configured to control connection between the first end of the second switch module and the second end of the second switch module when the second controller communicates with the charging device; and to control connection between the first end of the second switch module and the third end of the second switch module when communication between the second controller and the charging device ends.

[0040] In a possible implementation, the third switch module includes: a first MOS transistor and a second MOS transistor; the first MOS transistor and the second MOS transistor are connected in series, and the anti-parallel diode of the first MOS transistor and the anti-parallel diode of the second MOS transistor are in opposite directions.

[0041] In a possible implementation, the second controller is further configured to send a first charging parameter to the charging device, where the first charging parameter includes a charging voltage and a charging current corresponding to the second battery.

[0042] In a possible implementation, the second controller is further configured to send voltage information of the second battery to the charging device.

[0043] In one possible implementation, the second state machine is also used to control the second modulation and demodulation circuit to modulate the input current of the second charging circuit to form a preset pulse signal when the electronic device is in a fully charged state or a trickle charging state, and send the preset pulse signal to the charging device.

[0044] In one possible implementation, the first modulated signal and the second modulated response signal also include charging parameters of the electronic device; the charging parameters include at least one of the following: a charging current corresponding to the second battery, a charging voltage corresponding to the second battery, or the voltage of the second battery.

[0045] In a possible implementation, the charging terminal includes a first charging terminal and a second charging terminal.

[0046] In a possible implementation, the charging terminal is one of a USB port, a pogo pin, or a metal dome.

[0047] In a third aspect, the present application further provides a communication method, applied to a charging device, the method comprising:

[0048] The first charging circuit receives a first modulated signal sent by the electronic device and demodulates the first modulated signal; when the demodulation result includes a first current, the first modulated response signal is sent to the electronic device, and the first current is used to identify that the electronic device has initiated communication with the charging device; or, the first charging circuit sends a second modulated signal to the electronic device, and the second modulated signal includes a first voltage, and the first voltage is used to disconnect the second charging circuit of the electronic device from the second battery; the first charging circuit receives the second modulated response signal sent by the electronic device and demodulates the second modulated response signal.

[0049] This method enables bidirectional communication between the charging device and the electronic device when the device is directly charging or doubling the voltage. This simple and practical communication process allows for mutual authentication and presence detection between the electronic device and the charging device without requiring additional sensors, thus reducing hardware costs.

[0050] In a fourth aspect, the present application further provides a communication method, which is applied to the electronic device provided in the above aspects, and the method includes:

[0051] disconnecting the second charging circuit from the second battery;

[0052] The second charging circuit sends a first modulated signal to the charging device, wherein the first modulated signal includes a first current, and the first current is used to indicate that the electronic device has initiated communication with the charging device; the second charging circuit receives a first modulated response signal sent by the charging device and demodulates the first modulated response signal; or

[0053] The second charging circuit receives a second modulated signal sent by the charging device and demodulates the second modulated signal. When the demodulation result includes the first voltage, the second charging circuit is disconnected from the second battery and a second modulated response signal is sent to the charging device.

[0054] This method enables bidirectional communication between the charging device and the electronic device when the device is directly charging or doubling the voltage. This simple and practical communication process allows for mutual authentication and presence detection between the electronic device and the charging device without requiring additional sensors, thus reducing hardware costs.

[0055] In a fifth aspect, the present application further provides a charging system, comprising a charging device and an electronic device, wherein the charging device is configured to charge the electronic device; the charging device comprises a first DC / DC circuit, a first charging circuit, a first battery, and a charging terminal; the first DC / DC circuit is configured to charge the first battery using input direct current and output direct current to the input terminal of the first charging circuit; the output terminal of the first charging circuit is connected to the charging terminal; the electronic device comprises: a second charging circuit, a second battery, and a power receiving terminal; the power receiving terminal is configured to connect to the charging terminal of the charging device and receive direct current output from the charging terminal; a first end of the second charging circuit is connected to the power receiving terminal, a second end of the second charging circuit is connected to the second battery, and a voltage output by the charging terminal is consistent with, or has a preset multiple relationship with, a charging voltage output by the second charging circuit to the second battery;

[0056] The second charging circuit is configured to disconnect the second battery, send a first modulated signal to the charging device, receive a first modulated response signal sent by the charging device, and demodulate the first modulated response signal, wherein the first modulated signal includes a first current, and the first current is used to indicate that the electronic device has initiated communication with the charging device; or receive a second modulated signal sent by the charging device and demodulate the second modulated signal. When the demodulated result of the second modulated signal includes the first voltage, the second charging circuit disconnects the second battery and sends a second modulated response signal to the charging device.

[0057] The first charging circuit is configured to receive a first modulated signal sent by the electronic device, demodulate the first modulated signal, and send a first modulated response signal to the electronic device when the demodulation result includes a first current; or to send a second modulated signal to the electronic device, receive a second modulated response signal sent by the electronic device, and demodulate the second modulated response signal, wherein the second modulated signal includes a first voltage, and the first voltage is used to disconnect the second charging circuit of the electronic device from the second battery.

[0058] If the charging system described above can be a charging system for headphones, the system includes two electronic devices, one for each headphone. In this case, the charging device can charge both connected headphones simultaneously, or, when only one headphone is connected, charge only that headphone. The electronic device in the charging system can also be a smart bracelet or smartwatch.

[0059] Utilizing the charging system provided by this application, the charging device can directly charge or double the voltage of the electronic device, and realize two-way communication between the electronic device and the charging device. Through two-way communication, two-way presence detection and identity recognition can be realized, and the reliability and accuracy of the presence detection are high. The above implementation method can be realized based on two metal terminals, that is, only two charging terminals are required on the charging device and two power receiving terminals are required on the electronic device. It has a high degree of integration and can achieve the presence detection effect without relying on devices such as Hall sensors and infrared light sensors, which also reduces hardware costs.

[0060] In a sixth aspect, the present application further provides a chip, which is applied to a charging device and has an integrated first charging circuit. The chip includes an input port and an output port. The input port is the input end of the first charging circuit and is used to connect to the output end of the first DC / DC circuit of the charging device; the output port is the output end of the first charging circuit and is used to connect to a charging terminal. The first charging circuit is used to receive a first modulated signal sent by an electronic device, demodulate the first modulated signal, and when the demodulation result includes a first current, send a first modulated response signal to the electronic device, the first current is used to indicate that the electronic device has initiated communication with the charging device; or send a second modulated signal to the electronic device, receive a second modulated response signal sent by the electronic device, and demodulate the second modulated response signal, the second modulated signal including a first voltage, the first voltage is used to disconnect the second charging circuit of the electronic device from the second battery.

[0061] In a seventh aspect, the present application also provides another chip, which is applied to an electronic device and has an integrated second charging circuit. The chip includes: an input port and an output port. The input port is the first end of the second charging circuit and is used to connect to a power receiving terminal; the output port is the second end of the second charging circuit and is used to connect to a second battery of the electronic device; the second charging circuit is used to disconnect from the second battery, send a first modulated signal to a charging device, receive a first modulated response signal sent by the charging device, and demodulate the first modulated response signal, the first modulated signal including a first current, which is used to indicate that the electronic device has initiated communication with the charging device; or receive a second modulated signal sent by the charging device and demodulate the second modulated signal. When the demodulation result includes a first voltage, the second charging circuit disconnects from the second battery and sends a second modulated response signal to the charging device. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 A schematic diagram of a TWS headset and charging box Figure 1 ;

[0063] Figure 2 A schematic diagram of another type of TWS earphones and charging box;

[0064] Figure 3 is a schematic diagram of a charging device and an electronic device;

[0065] Figure 4 is a schematic diagram of a charging system;

[0066] Figure 5 A schematic diagram of a charging device and an electronic device provided in an embodiment of the present application;

[0067] Figure 6 A schematic diagram of another charging device and electronic device provided in an embodiment of the present application;

[0068] Figure 7 The waveform of the modulation signal provided in the embodiment of the present application is shown as follows: Figure 1 ;

[0069] Figure 8 The waveform of the modulation signal provided in the embodiment of the present application is shown as follows: Figure 2 ;

[0070] Figure 9 The waveform of the modulation signal provided in the embodiment of the present application is shown as follows: Figure 3 ;

[0071] Figure 10A A schematic diagram of another charging device and electronic device provided in an embodiment of the present application;

[0072] Figure 10BA circuit diagram of the switched capacitor converter 2023 provided in an embodiment of the present application;

[0073] Figure 10C A schematic diagram of a charging stage provided in an embodiment of the present application;

[0074] Figure 11 A schematic diagram of another charging device and electronic device provided in an embodiment of the present application;

[0075] Figure 12 A schematic diagram of a characteristic character string provided in an embodiment of the present application;

[0076] Figure 13 A schematic diagram of another charging device and electronic device provided in an embodiment of the present application;

[0077] Figure 14 The waveform of the modulation signal provided in the embodiment of the present application is shown as follows: Figure 4 ;

[0078] Figure 15 A schematic diagram of another charging device and electronic device provided in an embodiment of the present application;

[0079] Figure 16 A schematic diagram of another charging device and electronic device provided in an embodiment of the present application;

[0080] Figure 17 A flow chart of a communication method provided in an embodiment of the present application;

[0081] Figure 18 A flowchart of another communication method provided in an embodiment of the present application;

[0082] Figure 19 A flowchart of another communication method provided in an embodiment of the present application;

[0083] Figure 20 A flowchart of another communication method provided in an embodiment of the present application;

[0084] Figure 21 A flowchart of another communication method provided in an embodiment of the present application;

[0085] Figure 22 A flowchart of another communication method provided in an embodiment of the present application;

[0086] Figure 23 A schematic diagram of a chip provided in an embodiment of the present application;

[0087] Figure 24 A schematic diagram of another chip provided in an embodiment of the present application. DETAILED DESCRIPTION

[0088] In order to enable people skilled in the art to understand the present application more clearly, the application scenario of the present application's technical solution is first described below.

[0089] The solution of this application can realize two-way communication between the charging device and the electronic device. This application does not specifically limit the type of electronic device. The electronic device can be a TWS headset, a smart watch or a smart bracelet, etc. The charging device is a charging device corresponding to the electronic device, that is, when the electronic device is a TWS headset, the charging device is a charging box, and when the electronic device is a smart watch or a smart bracelet, the charging device is a charging base.

[0090] Take TWS earphones as an example to illustrate the electronic device. Figure 1 and Figure 2 .in, Figure 2 A schematic diagram of another type of TWS earphones and charging box.

[0091] The charging device 10 is provided with a charging port (not shown in the figure). The charging device 10 is connected to the adapter 30 via a cable plugged into the charging port. Once the adapter 30 is connected to a power source, it can charge the charging device 10, thereby ensuring that the battery of the charging device 10 has a certain amount of power. At this time, when the charging device 10 is connected to the electronic device 20, the charging device 10 can also provide power to the electronic device 20. Therefore, when the charging device 10 is disconnected from the adapter 30, the charging device 10 can transfer the power provided by its own battery to the electronic device 20.

[0092] In addition, the charging device 10 can also be wirelessly charged by wireless charging, that is, the adapter 30 does not need to be directly connected to the charging device 10. At this time, the adapter 30 can be connected to a wireless charging device that matches the charging device 10 (for example, a wireless charging base) to wirelessly charge the charging device 10 through the wireless charging device.

[0093] When the electronic device is a smart watch or smart bracelet, please refer to the following Figure 3 Schematic diagram of the charging device and electronic device shown.

[0094] Figure 3 The charging device 10 shown is a charging base, which includes a first charging terminal 111 and a second charging terminal 112 ; the electronic device 20 includes a first power receiving terminal 211 and a second power receiving terminal 212 .

[0095] When charging the electronic device 20, the electronic device 20 is placed on the charging device 10, so that the first power receiving terminal 211 is connected to the first charging terminal 111, and the second power receiving terminal 212 is connected to the second charging terminal 112. The charging device 11 can then transfer power to the electronic device 20, charging the battery included in the electronic device 20. In some embodiments, the charging device 10 may not include a battery.

[0096] This application does not limit the types of charging and receiving terminals. For example, the charging terminal can be a USB port, a pogo pin (also known as a spring connector or spring pin connector), a metal spring, or made of other conductive materials. Of course, the receiving terminal and the charging terminal are generally of the same type, that is, the receiving terminal can be a USB port, a pogo pin, a metal spring, or made of other conductive materials.

[0097] The following takes the charging system of headphones as an example and describes it in combination with a specific circuit.

[0098] See also Figure 4 , which is a schematic diagram of a charging system.

[0099] The charging system includes a charging device 10 and an electronic device 20 .

[0100] The charging device 10 includes a first controller 101 , a first DC / DC circuit 102 , a first battery 103 , a first charging circuit 104 , and a first switch 105 .

[0101] The electronic device 20 includes a second controller 201 , a second charging circuit 202 , a second battery 203 , and a second switch 205 .

[0102] The charging device 10 is shown connected to an external power source via an adapter 30. The first DC / DC circuit 102 is used to charge the first battery 103 and also to supply power to the first charging circuit 104.

[0103] The input end of the first charging circuit 104 is used to receive the direct current output by the first DC / DC circuit 102 . The output end of the first charging circuit 104 is connected to the first charging terminal 111 through the first switch 105 . The first charging terminal 111 is used to connect to the first power receiving terminal 211 of the electronic device 20 .

[0104] The Inter-Integrated Circuit (IIC) interface of the first controller 101 is connected to the IIC interface of the first DC / DC circuit 102, enabling communication between the first controller 101 and the first DC / DC circuit 102. The Universal Asynchronous Receiver / Transmitter (UART) interface of the first controller 101 is connected to the first charging terminal 111 via the first switch 105.

[0105] In the electronic device, the second charging circuit 202 is connected to the first power receiving terminal 211 via the second switch 205 , and the UART interface of the second charging circuit 202 is connected to the first power receiving terminal 211 via the second switch 205 .

[0106] Figure 4 The Vsys interface of the first DC / DC circuit 102 is a port for the first DC / DC circuit 102 to supply power to the first controller 101 and the first charging circuit 104. The Vsys of the first DC / DC circuit 102 in the following figures of this application has the same meaning and will not be repeated here.

[0107] Figure 4 The Vbat interface of the first DC / DC circuit 102 in the figure represents the port through which the first DC / DC circuit 102 is connected to the first battery 103; the Vbat interface of the second charging circuit 202 represents the port through which the second charging circuit 202 is connected to the second battery 203. The Vbat interfaces in the following figures for the charging devices and electronic devices have the same meaning and are not further described.

[0108] Figure 4 The Vsys of the second charging circuit 202 represents a port in the electronic device that supplies power to the second controller 201 through the second battery 203. The Vsys of the second charging circuit 202 in the following figures has the same meaning and is not repeated here.

[0109] In this implementation, when communication is performed between the charging device 10 and the electronic device 20, the first switch 105 and the second switch 205 are switched to the communication path at the initiation of the charging device 10. At this time, the UART interface of the first controller 101 is connected to the UART interface of the second controller 201 through the first switch 105, the first charging terminal 111, the first power receiving terminal 211, and the second switch 205 in sequence, so that communication is achieved between the first controller 101 and the second controller 201.

[0110] After the communication is completed, the first switch 105 and the second switch 205 are switched to the charging path again under the initiation of the charging device 10 .

[0111] The above communication process is actively initiated by the charging device 10 , and the electronic device 20 cannot actively initiate communication.

[0112] However, with the development of fast charging technology, electronic devices can support direct charging mode and / or double-voltage charging mode. Ignoring power transmission line losses, in direct charging mode, the voltage at the electronic device's power receiving terminal is equal to the charging voltage of the second battery; in double-voltage charging mode, the voltage at the electronic device's power receiving terminal is a multiple of the charging voltage of the second battery, for example, twice the charging voltage of the second battery, or even higher.

[0113] In order for electronic devices to support direct charging mode and / or double-voltage charging mode, the communication mode between the electronic device and the charging device also needs to support direct charging mode and / or double-voltage charging mode. This requires two-way communication between the electronic device and the charging box, that is, not only does it support active communication initiated by the charging device, but the electronic device also needs to be able to actively initiate communication to determine whether it is currently in place, whether the charging device matches itself, and send / receive charging information.

[0114] But the above Figure 4 In the corresponding solution, communication can only be initiated by the charging device, and the electronic device cannot actively initiate communication, that is, two-way communication between the electronic device and the charging box is not supported. Therefore, the above communication method cannot meet the requirements of direct charging mode and / or double voltage charging mode.

[0115] To address the above issues, embodiments of the present application provide a charging device, electronic device, communication method, and charging system. These devices enable bidirectional communication between the electronic device and the charging device when the charging device is directly charging or voltage-doubled charging the electronic device. This bidirectional communication enables bidirectional presence detection and identity recognition with high reliability and accuracy. Furthermore, the above solution is implemented based on the fact that the charging device includes two charging terminals and the electronic device includes two receiving terminals, eliminating the need for additional charging terminals and achieving a high level of integration.

[0116] In order to enable people skilled in the art to understand the present application more clearly, the technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0117] The terms "first," "second," and the like in the following description are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of the technical features being referred to. Thus, a feature identified with "first," "second," and the like may explicitly or implicitly include one or more of such features. In the description of this application, unless otherwise specified, "plurality" means two or more.

[0118] In addition, in this application, directional terms such as "upper" and "lower" may be defined including but not limited to the orientation relative to the schematic placement of the components in the drawings. It should be understood that these directional terms may be relative concepts. They are used for relative descriptions and clarifications, and they may change accordingly according to changes in the orientation of the components in the drawings.

[0119] In this application, unless otherwise specified or limited, the term "connection" should be understood broadly. For example, "connection" can mean fixed connection, detachable connection, or integration; it can mean direct connection or indirect connection through an intermediate medium. In addition, the term "coupling" can refer to the method of electrical connection for signal transmission. "Coupling" can mean direct electrical connection or indirect electrical connection through an intermediate medium.

[0120] The embodiments of the present application provide a charging device and an electronic device, which are described in detail below with reference to the accompanying drawings.

[0121] See also Figure 5 , which is a schematic diagram of a charging device and an electronic device provided in an embodiment of the present application.

[0122] The charging device 10 includes a first DC / DC circuit 102 , a first battery 103 , a first charging circuit 104 , and charging terminals, including a first charging terminal 111 and a second charging terminal 112 .

[0123] The electronic device 20 includes a second charging circuit 202 , a second battery 203 , and power receiving terminals. The power receiving terminals include a first power receiving terminal 211 and a second power receiving terminal 212 .

[0124] When the electronic device 20 is connected to the charging device 10, the first charging terminal 111 is connected to the first power receiving terminal 211, and the second charging terminal 112 is connected to the second power receiving terminal 212. The power receiving terminal is used to receive the DC power output by the charging terminal.

[0125] The first DC / DC circuit 102 receives DC power from the adapter 30, performs DC / DC conversion on the received DC power, and charges the first battery 103. It also performs DC / DC conversion on the received DC power and provides it to the input of the first charging circuit 104. Furthermore, when the charging device 10 is not connected to the adapter 30, the first DC / DC circuit 102 is also configured to convert the DC power received from the first battery 103 into DC power and transmit it to the input of the first charging circuit 104.

[0126] In one possible implementation, the charging device 10 includes a charging interface, which is connected to the adapter 30 via a cable plugged into the charging interface. In another possible implementation, the adapter 30 does not need to be directly connected to the charging device 10. The adapter 30 can be connected to a wireless charging device (e.g., a wireless charging base) that matches the charging device 10 via a cable, and the wireless charging device then wirelessly charges the charging device 10. It should be noted that in this implementation, the input end of the first DC / DC circuit 102 also includes a cascaded power receiving coil and a rectifier circuit. The power receiving coil is used to convert the energy sent by the wireless charging device into alternating current and transmit it to the rectifier circuit. The rectifier circuit is used to convert the alternating current into direct current and transmit it to the first DC / DC circuit 102.

[0127] An output end of the first charging circuit 104 is connected to the first charging terminal 111 .

[0128] A first end of the second charging circuit 202 is connected to the first power receiving terminal 211 , and a second end of the second charging circuit 202 is connected to the second battery 203 .

[0129] The charging device 10 and the electronic device 20 provided in the embodiment of the present application support a direct charging mode, or support both a direct charging mode and a voltage-doubling charging mode.

[0130] When in direct charging mode, no additional power conversion circuit is connected between the power receiving terminal of the electronic device 20 and the second battery 203. That is, the voltage output by the first charging terminal 111 is consistent with the charging voltage output by the second charging circuit 202 to the second battery 203.

[0131] It is understandable that in actual applications, the voltage output by the first charging terminal 111 is not completely equal to the charging voltage of the second battery. This is because there is impedance in the line, which causes a voltage drop. The voltage drop caused by the line impedance is negligible compared to the charging voltage. Therefore, it can be considered that the voltage output by the first charging terminal 111 is consistent with the charging voltage output by the second charging circuit 202 to the second battery 203.

[0132] When in the voltage-doubled charging mode, a switched capacitor converter is provided between the power receiving terminal 211 of the electronic device 20 and the second battery 203. The switched capacitor converter is configured to establish a preset multiple relationship between the voltage output by the first charging terminal 111 and the charging voltage output by the second charging circuit 202 to the second battery 203. This preset multiple relationship can be 2:1, 3:1, 4:1, etc., and is not specifically limited in the present embodiment; the preset multiple depends on the switched capacitor converter.

[0133] The embodiments of the present application do not limit the specific implementation of the first charging circuit 104. In some embodiments, the first charging circuit 104 may include a DC / DC converter with boost and / or buck regulation capabilities, as well as current regulation capabilities. For example, it may include a low dropout regulator (LDO), a boost circuit, a buck circuit, or a buck-boost circuit.

[0134] The embodiment of the present application does not limit the specific implementation of the second charging circuit 202. In some embodiments, the second charging circuit 202 may include an overvoltage / overcurrent protection circuit, or include an undervoltage protection circuit.

[0135] The following describes in detail how to implement bidirectional communication between the charging device and the electronic device.

[0136] When the charging device 10 directly charges or doubles the voltage of the electronic device 20, the voltage and current on the charging circuit are clamped by the second battery 203. Therefore, when the charging device and the electronic device 20 communicate with each other, it is necessary to cut off the charging path to the second battery 203, that is, disconnect the second charging circuit 202 from the second battery 203 to prevent the second battery 203 from affecting the signal on the charging circuit.

[0137] The two-way communication between the charging device 10 and the electronic device 20 includes: communication initiated by the electronic device 20 to the charging device 10 , and communication initiated by the charging device 10 to the electronic device 20 .

[0138] The following first describes the communication process initiated by the electronic device 20 to the charging device 10.

[0139] In some embodiments, when the electronic device 20 detects that the power receiving terminal is connected to the input current, it needs to confirm whether it is currently connected to the charging device 10 and whether the currently connected charging device 10 matches itself, that is, to authenticate the identity of the charging device 10; when the electronic device 20 detects that there is no input from the power receiving terminal, it needs to confirm whether it is currently disconnected from the charging device 10. Alternatively, the electronic device 20 can be configured to initiate communication with the charging device 10 at a certain period to determine whether the connection status is normal or to exchange charging parameters, such as voltage parameters, current parameters, etc. In the above cases, the conditions for the electronic device 20 to initiate communication with the charging device 10 are met.

[0140] When the electronic device 20 needs to initiate communication with the charging device 10, the second charging circuit 202 first disconnects the second charging circuit 202 from the second battery 203 to prevent the second battery 203 from clamping the voltage and current on the line. At this point, the second charging circuit 202 temporarily stops charging the second battery 203.

[0141] The second charging circuit 202 sends a first modulated signal to the charging device 10 through the first power receiving terminal 211 . The first modulated signal includes a first current, which is used to indicate that the electronic device 20 has initiated communication with the charging device 10 .

[0142] In the communication protocol predetermined between the charging device 10 and the electronic device 20 , it is predetermined that the first current characterization means that the electronic device 20 initiates the communication at this time.

[0143] When the first charging circuit 104 of the charging device 10 receives the first modulated signal and obtains the first current, it determines that the electronic device 20 has initiated communication with itself. The first charging circuit 104 responds with a first modulated response signal to the electronic device 20 via the first charging terminal 111 according to a predetermined communication protocol.

[0144] In some embodiments, the first current is located at the head of the first modulation signal. When the first charging circuit 104 of the charging device 10 receives the second modulation signal, the first current is received first, and the first charging circuit 104 can determine that the electronic device 20 has initiated communication.

[0145] That is, the communication initiated by the electronic device 20 with the charging device 10 is realized.

[0146] The following describes the communication process initiated by the charging device 10 to the electronic device.

[0147] In some embodiments, when the charging device 10 detects that the charging terminal is connected to output current, it needs to confirm whether it is currently connected to the electronic device 20 and whether the currently connected electronic device 20 matches itself, that is, to authenticate the electronic device 20; when the charging device 10 detects that the charging terminal has no output current, it needs to confirm whether it is currently disconnected from the electronic device 20. Alternatively, the charging device 10 can be configured to initiate communication with the electronic device 20 at a certain period to determine whether the connection status is normal, or to interact with charging parameters, such as voltage parameters, current parameters, etc. In the above cases, the conditions for the charging device 10 to initiate communication with the electronic device 20 are met.

[0148] When the conditions for the charging device 10 to initiate communication with the electronic device 20 are met, the first charging circuit 104 sends a second modulated signal to the electronic device 20 via the first charging terminal 111. The second modulated signal includes a first voltage. The first voltage is used to disconnect the second charging circuit 202 of the electronic device 20 from the second battery 203 to prevent the second battery 203 from clamping the voltage and current.

[0149] In some embodiments, the first voltage is located at the head position of the second modulation signal. When the second charging circuit 202 of the electronic device 20 receives the second modulation signal, it first receives the first voltage so that the second charging circuit 202 is disconnected from the second battery 203 in a timely manner.

[0150] Then, the second charging circuit 202 responds with a second modulated response signal to the charging device 10 through the power receiving terminal according to the second modulated signal and a predetermined communication protocol.

[0151] The second charging circuit 202 of the electronic device 20 receives the second modulated response signal.

[0152] That is, the communication initiated by the charging device 10 with the electronic device 20 is realized.

[0153] In some embodiments, the first voltage included in the second modulated signal can be used as part of the communication protocol between the charging device 10 and the electronic device 20. That is, the interruption of charging of the second battery 203 caused by the charging device 10 initiating communication with the electronic device 20 can be considered as a normal communication process, and there is no need to report the interruption, thereby simplifying the communication process.

[0154] In summary, the solution provided by the embodiments of the present application enables bidirectional communication between the charging device and the electronic device when performing direct charging or voltage-doubled charging on the electronic device. This communication process is simple and highly practical. This communication method enables mutual identity authentication between the electronic device and the charging device, as well as presence detection, without the need for additional detection sensors, thereby reducing hardware costs.

[0155] The electronic device may support direct charging, or may support both direct charging and double-voltage charging. The following first describes the implementation method when the electronic device only supports direct charging.

[0156] See also Figure 6 , which is a schematic diagram of another charging device and electronic device provided in an embodiment of the present application.

[0157] The charging device 10 shown in the figure is used to charge an electronic device 20 .

[0158] The charging device 10 includes a first controller 101 , a first DC / DC circuit 102 , a first charging circuit 104 , and charging terminals, including a first charging terminal 111 and a second charging terminal 112 .

[0159] The first charging circuit 104 includes a second DC / DC circuit 1041 and a first modulation and demodulation circuit 1042 .

[0160] An input end of the second DC / DC circuit 1041 is connected to an input end of the first charging circuit 104 , an output end of the second DC / DC circuit 1041 is connected to a first end of the first modulation and demodulation circuit 1042 , and a second end of the first modulation and demodulation circuit 1042 is connected to the first charging terminal 111 .

[0161] The electronic device 20 includes a second controller 201 , a second charging circuit 202 , a second battery 203 , and power receiving terminals, including a first power receiving terminal 211 and a second power receiving terminal 212 .

[0162] The second charging circuit 202 includes a second modulation and demodulation circuit 2022 , a first protection circuit, a switch Q1 , and a switch Q2 .

[0163] When the second controller 201 determines that the current charging stage is the constant current charging stage, it controls Q1 and Q2 to be closed to minimize the impedance of the second charging circuit 202. At this time, the charging device 10 directly charges the second battery 203 of the electronic device 20.

[0164] The first protection circuit is used to control the second charging circuit to be disconnected from the second battery and also to control Q1 in the figure to be disconnected, or to control both Q1 and Q2 to be disconnected, when the current of the second charging circuit 202 is less than the first trigger current, or the charging voltage output by the second charging circuit to the second battery is less than the first trigger voltage.

[0165] At this time, the first protection circuit can cut off the line connected to the second battery 203 when the second charging circuit 202 has an undervoltage or reverse current. That is, the first protection circuit is equivalent to an under voltage lockout (UVLO) circuit.

[0166] When the electronic device 20 is connected to the charging apparatus 10 , the first charging terminal 111 is connected to the first power receiving terminal 211 , and the second charging terminal 112 is connected to the second power receiving terminal 212 .

[0167] See also Figure 7 , which is a waveform diagram of the modulation signal provided in the embodiment of the present application Figure 1 .

[0168] Figure 7FIG. 1 is a schematic diagram showing the electronic device 20 initiating communication with the charging device 10 .

[0169] The load C in the figure corresponds to the input current of the electronic device 20 , which is the output current of the charging device 10 when the charging terminal is connected to the power receiving terminal.

[0170] Initial V in the figure corresponds to the input voltage of the electronic device 20 , which is the output voltage of the charging device 10 when the charging terminal is connected to the power receiving terminal.

[0171] When the electronic device 20 needs to initiate communication with the charging device 10, the second charging circuit 202 first disconnects the second charging circuit 202 from the second battery 203 to prevent the second battery 203 from clamping the voltage and current. This means that Q1 is disconnected, or both Q1 and Q2 can be disconnected.

[0172] Then, the second modulation and demodulation circuit 2022 modulates the input current of the second charging circuit 202 to form a first modulation signal, which is a current modulation signal.

[0173] Specifically, the second modulation and demodulation circuit 2022 first modulates the input current of the second charging circuit 202 in the time period from t0 to t1, so that the input current is as low as IL, corresponding to Figure 7 In the Ti_pre stage of the first modulation signal, that is, through modulation, the first modulation signal carries the first current.

[0174] The Ti_pre phase indicates that the electronic device is briefly switching between charging mode and communication modulation mode, meaning that the electronic device 20 has initiated communication with the charging device 10. The specific value of IL is not limited in this embodiment of the present application; in one possible implementation, IL is 0. The predefined communication protocol between the charging device 10 and the electronic device 20 may specify the meaning of the first current, specifically, that the first current is an indicator that the electronic device 20 has initiated communication with the charging device.

[0175] After the electronic device 20 switches between the charging mode and the communication modulation mode for a short time, the second modulation and demodulation circuit 2022 starts to modulate to form a communication waveform. The communication waveform corresponds to Figure 7 The Ti_data segment of the first modulated signal.

[0176] The Ti_data segment in the first modulated signal is related to a communication protocol predetermined by the charging device 10 and the electronic device 20 and is not specifically limited in this embodiment of the present application.

[0177] The second charging circuit 202 transmits the first modulated signal to the charging device 10 through the power receiving terminal.

[0178] When the first charging circuit 104 of the charging device 10 receives the first modulated signal, the first modulation and demodulation circuit 1042 of the first charging circuit 104 demodulates the first modulated signal. If the demodulation fails, it indicates that the first modulated signal sent by the electronic device 20 does not meet the predetermined communication protocol, that is, the electronic device 20 is not compatible with the charging device 10.

[0179] If the demodulation is successful, the first charging circuit 10 controls the first modulation and demodulation circuit 1042 to modulate the output voltage of the first charging circuit 10 according to the demodulation result and the predetermined communication protocol, and replies a first modulation response signal to the electronic device 20 through the charging terminal. The first modulation response signal is a voltage modulation signal corresponding to Figure 7 The Tv_ack phase in the time period from t3 to t4.

[0180] The specific waveform of the first modulated response signal is related to the communication protocol predetermined by the charging device 10 and the electronic device 20, and is not specifically limited in this embodiment of the present application.

[0181] That is, the communication initiated by the electronic device 20 with the charging device 10 is realized.

[0182] The following describes a communication process initiated by the charging device 10 to the electronic device 20.

[0183] The first possible implementation is described below.

[0184] See also Figure 8 , which is a waveform diagram of the modulation signal provided in the embodiment of the present application Figure 2 .

[0185] Figure 8 The load C corresponds to the input current of the electronic device 20 , which is the output current of the charging device 10 when the charging terminal is connected to the power receiving terminal.

[0186] Figure 8 The Initial V in corresponds to the input voltage of the electronic device 20 , which is the output voltage of the charging device 10 when the charging terminal is connected to the power receiving terminal.

[0187] When the charging device 10 needs to initiate communication with the electronic device 20 , the first charging circuit 104 sends a second modulation signal to the electronic device 20 , where the second modulation signal is a voltage modulation signal.

[0188] Specifically, the first modulation and demodulation circuit 1042 of the first charging circuit 104 first modulates the output voltage of the first charging circuit in the time period from t0 to t1, so that the output voltage waveform is briefly pulled down to the first voltage, which is a lower voltage value, so that the second modulation signal carries the first voltage.

[0189] The first voltage is used to make the electronic device 20 connected to the subsequent stage generate a weak backflow current or undervoltage. At this time, the first protection circuit in the second charging circuit 202 controls the second charging circuit 202 to be disconnected from the second battery 203, and also controls Figure 6 Q1 in the circuit is disconnected, or both Q1 and Q2 can be controlled to be disconnected to achieve undervoltage protection.

[0190] Since the second charging circuit 202 of the electronic device 20 is disconnected from the second battery 203 , the second battery 203 is prevented from clamping the voltage and current output from the charging terminal.

[0191] The first voltage carried in the second modulation signal is lower than the first trigger voltage of the first protection circuit. The embodiment of the present application does not limit the specific value of the first voltage.

[0192] In a typical implementation, the first voltage may be set to 0. Figure 8 The UVLO in the above code indicates the first trigger voltage. Figure 8 The time period from t0 to t1 is the Tv_pre phase of the second modulation signal. The first voltage is located at the head of the second modulation signal, so that when the second charging circuit 202 of the electronic device 20 receives the second modulation signal, it first receives the first voltage, and then promptly controls the second charging circuit 202 to disconnect from the second battery 203.

[0193] The first modulation and demodulation circuit 1042 Figure 8 The standard communication waveform is modulated in the time period from t1 to t2, that is, the output voltage of the first charging circuit 104 is modulated to form the Tv_data segment of the second modulation signal.

[0194] The specific waveform of the second modulation signal in the Tv_data stage is related to a predetermined communication protocol between the charging device 10 and the electronic device 20 and is not specifically limited in the embodiment of the present application.

[0195] The first charging circuit 104 sends the second modulated signal to the electronic device 20 through the charging terminal.

[0196] When the second charging circuit 202 of the electronic device 20 receives the second modulation signal, it first receives the first voltage and promptly disconnects from the second battery 203. The second modulation and demodulation circuit 2022 of the second charging circuit 202 then demodulates the Tv_data phase of the second modulation signal.

[0197] The second charging circuit 202 controls the second modulation and demodulation circuit 2022 to generate a second modulation response signal according to the demodulation result and the predetermined communication protocol. The second modulation response signal is a current modulation signal corresponding to Figure 8 The time period from t3 to t4 is the Ti_dack stage of load C.

[0198] The second charging circuit 202 replies a second modulated response signal to the charging device 10 through the power receiving terminal.

[0199] That is, the communication initiated by the charging device 10 with the electronic device 20 is realized.

[0200] Figure 8 In the corresponding implementation, the first modulation and demodulation circuit 1042 modulates the output waveform of the first charging circuit 104, causing backflow current or undervoltage in the second charging circuit 202, thereby triggering the protection action of the first protection circuit and disconnecting the charging link of the second battery 203, thereby realizing time-sharing multiplexing of charging and communication.

[0201] Another first method of initiating communication between the charging device 10 and the electronic device 20 is described below.

[0202] In this implementation, the second charging circuit includes a second protection circuit. This second protection circuit is configured to disconnect the second charging circuit from the second battery, thereby disconnecting Q1 (or both Q1 and Q2) in the diagram, when the charging voltage output by the second charging circuit 202 to the second battery 203 is greater than or equal to a second trigger voltage. In this case, the second protection circuit can disconnect the connection to the second battery 203 when an overvoltage or overcurrent condition occurs in the second charging circuit 202. In other words, the first protection circuit in this case functions as an overvoltage protection circuit.

[0203] The first modulation and demodulation circuit 1042 modulates the output waveform of the first charging circuit 104 to cause overvoltage in the second charging circuit 202, thereby triggering the protection action of the second protection circuit and disconnecting the charging circuit of the second battery 203, which is described in detail below.

[0204] See also Figure 9 , which is a waveform diagram of the modulation signal provided in the embodiment of the present application Figure 3 .

[0205] Figure 9The load C corresponds to the input current of the electronic device 20 , which is the output current of the charging device 10 when the charging terminal is connected to the power receiving terminal.

[0206] Figure 9 The Initial V in corresponds to the input voltage of the electronic device 20 , which is the output voltage of the charging device 10 when the charging terminal is connected to the power receiving terminal.

[0207] When the charging device 10 needs to initiate communication with the electronic device 20 , the first charging circuit 104 sends a second modulation signal to the electronic device 20 , where the second modulation signal is a voltage modulation signal.

[0208] Specifically, the first modulation and demodulation circuit 1042 of the first charging circuit 104 first modulates the output voltage of the first charging circuit in the time period from t0 to t1, so that the output voltage waveform is temporarily pulled up to the first voltage, and the first voltage is greater than the second trigger voltage. Figure 9 The second trigger voltage is OVP. That is, the second modulated signal carries the first voltage. The embodiment of the present application does not limit the specific value of the first voltage. In actual applications, the first voltage can be slightly greater than the second trigger voltage.

[0209] The electronic device 20 first receives the first voltage. Since the first voltage is slightly greater than the second trigger voltage, a slight overvoltage or overcurrent is generated. At this time, the second protection circuit in the second charging circuit 202 controls the second charging circuit 202 to disconnect from the second battery 203, and also controls Figure 6 Q1 in the circuit is disconnected, or both Q1 and Q2 can be controlled to be disconnected.

[0210] Since the second charging circuit 202 of the electronic device 20 is disconnected from the second battery 203 , the second battery 203 is prevented from clamping the voltage and current output from the charging terminal.

[0211] The first voltage is Figure 9 During the time period t0 to t1, which is also the Tv_pre phase of the second modulation signal, the first voltage is located at the head of the second modulation signal, so that when the second charging circuit 202 of the electronic device 20 receives the second modulation signal, it first receives the first voltage and promptly controls the second charging circuit 202 to disconnect from the second battery 203.

[0212] The first modulation and demodulation circuit 1042 then Figure 9 The standard communication waveform is modulated during the time period from t1 to t2, that is, the output voltage of the first charging circuit 104 is modulated to form the Tv_data stage of the second modulation signal.

[0213] The first charging circuit 104 transmits the second modulated signal to the electronic device 20 via the charging terminal. Upon receiving the second modulated signal, the second charging circuit 202 of the electronic device 20 first receives the first voltage and promptly disconnects from the second battery 203. The second modulation and demodulation circuit 2022 of the second charging circuit 202 then demodulates the Tv_data phase of the second modulated signal.

[0214] The second charging circuit 202 controls the second modulation and demodulation circuit 2022 to generate a second modulation response signal according to the demodulation result and the predetermined communication protocol. The second modulation response signal is a current modulation signal corresponding to Figure 9 During the time period from t3 to t4, load C is in the Ti_dack stage.

[0215] The second charging circuit 202 replies a second modulated response signal to the charging device 10 through the power receiving terminal.

[0216] The Tv_pre stage and Ti_pre stage in the above waveform diagrams can be used as part of the communication protocol waveform and located at the head of the modulated signal to characterize the preparation process before communication. This can achieve two-way communication during direct charging and reduce the number of times the first charging circuit reports an interruption to the first controller, as well as the number of times the second charging circuit reports an interruption to the second controller. That is, the interruption caused by the electronic device switching between the charging mode and the communication modulation mode can be considered as part of the communication protocol, thereby simplifying the communication process and improving practicality.

[0217] In combination with actual scenarios, for example, when the electronic device is a headset and the charging device is a charging box for the headset, the headset will be connected to other electronic devices during use, such as a mobile phone, and currently after the headset is connected to the mobile phone for the first time, the headset can automatically connect to the mobile phone when it is turned on again to wait for the mobile phone to send data and enter the playback state. After the headset is placed in the charging box, the headset will disconnect from the mobile phone and stop playing during the charging process. If the charging process of the headset is interrupted, it may automatically connect to the mobile phone again. The solution provided in the embodiment of the present application considers the interruption caused by the switching of the electronic device between the charging mode and the communication modulation mode as part of the communication protocol. At this time, the headset will not determine to disconnect the charging and then connect to the mobile phone, thereby improving practicality.

[0218] Figures 6 to 9 In the embodiment, the charging device 10 directly charges the electronic device 20. In other embodiments, the charging device supports both direct charging of the electronic device and voltage-doubled charging of the electronic device, which will be described in detail below with reference to the accompanying drawings.

[0219] See also Figure 10A and Figure 10B .in, Figure 10A A schematic diagram of another charging device and electronic device provided in an embodiment of the present application; Figure 10B This is a circuit diagram of the switched capacitor converter 2023 provided in an embodiment of the present application.

[0220] Figure 10A The electronic device 20 is shown with Figure 6 The difference is that the second charging circuit 202 further includes a switched capacitor converter 2023.

[0221] At this time, the direct charging circuit 2021 of the second charging circuit 202 includes Q1 and Q2 , and the voltage-doubling charging circuit of the second charging circuit 202 includes a switched capacitor converter 2023 .

[0222] Furthermore, a first end of the switched capacitor converter 2023 is connected to the first end of Q1 , and a second end of the switched capacitor converter 2023 is connected to the output end of the second charging circuit 202 .

[0223] During the process of the charging device 10 charging the electronic device 20, the switched capacitor converter 2023 can boost the voltage input to the switched capacitor converter 2023 and output it, thereby achieving voltage regulation, increasing the charging voltage of the second battery 203, and thereby improving the efficiency of charging the second battery 203.

[0224] Figure 10B The switched capacitor converter 2023 shown is only one possible implementation manner and does not constitute a limitation on the technical solution of the present application. The switched capacitor converter 2023 may also adopt other implementation manners.

[0225] In order to facilitate those skilled in the art to more clearly understand the charging process of the electronic device, the various charging stages in the charging process are first described below.

[0226] See also Figure 10C , which is a schematic diagram of a charging stage provided in an embodiment of the present application.

[0227] The charging stages of the electronic device 20 by the charging device 10 can be divided into a trickle charging stage, a constant current charging stage, a constant voltage charging stage and a charging termination stage.

[0228] During the trickle charging stage, the electronic device uses the LDO (Low Dropout Regulator) charging mode, corresponding to the range between INT0 and INT1 in the figure. During the constant current charging stage and the constant voltage charging stage, the electronic device uses the pass-through charging mode.

[0229] This embodiment does not specifically limit the number of stages in the constant current charging stage. The constant current charging stage can be divided into multiple stages, for example: CC1 stage (corresponding to INT1-INT2 in the figure), CC2 stage (corresponding to INT2-INT3 in the figure), and CC3 stage (corresponding to INT3-INT4 in the figure). CV in the figure represents the constant voltage charging stage, corresponding to INT4-INT5 in the figure. CV1, CV2, and CV3 represent the voltage thresholds for distinguishing CC1, CC2, and CC3 during the constant current charging stage.

[0230] During the trickle charge phase, the second battery 203 is charged using the LDO charging mode shown in the figure. When the voltage of the second battery 203 reaches the pre-charge threshold, the second charging circuit in the electronic device 20 actively generates an interrupt through the I / O interface, enabling communication between the electronic device 20 and the charging device 10, transmitting the first charging parameters of the second battery 203 so that the charging device 10 can charge the electronic device 20 according to the first charging parameters of the second battery 203. When the voltage of the second battery is less than the pre-charge threshold, the corresponding charging phase for the second battery is the trickle charge phase. Therefore, only a small amount of communication between the electronic device and the charging device is required to complete the entire charging process.

[0231] In the figure, curve A represents the voltage of the second battery, and curve B represents the charging current of the second battery.

[0232] When the voltages of the second battery 203 are different, the second battery is in different charging stages, and thus the charging stage of the second battery can be determined according to the voltage information of the second battery 203 .

[0233] The second controller 201 in the electronic device 20 can obtain voltage information of the second battery and determine the charging stage of the second battery according to the voltage information of the second battery.

[0234] The trickle charging stage, constant current charging stage, constant voltage charging stage and charging termination stage are introduced in detail below.

[0235] from Figure 10C It can be seen from the figure that when the voltage of the second battery 203 of the electronic device 20 is less than the pre-charge threshold, the charging device can determine that the charging stage of the second battery is the trickle charging stage when charging the electronic device.

[0236] The present application does not limit the pre-charge threshold value, which may be 2.8V or 3V. Those skilled in the art may select a suitable pre-charge threshold value according to actual needs.

[0237] During the trickle charging stage, the charging device 10 outputs a relatively low voltage to the electronic device 20 to keep the second controller 201 of the electronic device 20 operating.

[0238] During the trickle charging phase, as charging time increases, the power level of the second battery 203 increases, and the voltage of the second battery 203 also increases. The second controller 201 can detect the voltage of the second battery 203 in real time or according to a preset period. When the second controller 201 detects that the voltage of the second battery 203 is greater than or equal to the pre-charge threshold, the charging phase changes from the trickle charging phase to the constant current charging phase.

[0239] The second controller 201 can detect the voltage information of the second battery and actively interrupt so as to establish a communication connection between the charging device 10 and the electronic device 20 , and then adjust the charging voltage and charging current through communication with the first controller 101 .

[0240] During the constant current charging stage, in some embodiments, the second controller 201 can transmit information to the second charging circuit 202 through the IIC interface, so that the second charging circuit 202 controls the second modulation and demodulation circuit 2022 to send a modulation signal to the charging device 10, and the first charging circuit 104 controls the first modulation and demodulation circuit 1042 to demodulate the received modulation signal and send the generated demodulation result to the first controller 101, informing the first controller 101 that it is ready to communicate with the second controller 201. This process corresponds to the above Figures 6 to 9 Description.

[0241] When the charging device 10 only supports direct charging of the electronic device 20 , that is, only includes the direct charging circuit 2021 and does not include the switched capacitor converter 2023 , the charging device 10 directly charges the second battery 203 via the charging voltage and charging current output by the first charging terminal 111 .

[0242] When the charging device 10 supports both direct charging and voltage-doubled charging of the electronic device 20, that is, includes the switched capacitor converter 2023, Q1 is turned off during the constant voltage charging phase or the constant current charging phase, so that electric energy directly charges the second battery 203 through the switched capacitor converter 2023. The second battery 203 can power the second controller 201 through Q2.

[0243] In other charging stages, such as the trickle charging stage or the pre-charging stage, Q1 is turned on, and the current charges the second battery 6024 through Q1 and Q2.

[0244] The impedance of the direct charging circuit 2021 is adjustable, thereby being able to control the impedance of the charging path at different charging stages.

[0245] The second controller 201 can obtain the corresponding charging stage based on the voltage information of the second battery 203. When the charging stage is the constant current charging stage or the constant voltage charging stage, it controls Q1 to be disconnected and Q2 to be closed, and controls the switched capacitor converter 807 to operate in a direct-flow state, so that the charging path operates in the direct-flow state. When the charging stage is the trickle charging stage, it controls Q1 and Q2 to be closed, that is, the second controller 201 controls the switched capacitor converter 2023 and the direct-flow charging circuit 2021 to operate in different states in different charging stages. Therefore, it can improve the charging efficiency of the second battery 203 in the constant voltage charging stage and the constant current charging stage, and also improve the charging efficiency of the second battery 203 in the charging stage.

[0246] The switched capacitor converter 2023 can establish a preset multiple relationship between the voltage output by the first charging terminal 111 and the charging voltage output by the second charging circuit 202 to the second battery 203. The preset multiple relationship can be 2:1, 3:1, 4:1, etc., and is not specifically limited in the embodiment of the present application. The preset multiple relationship depends on the parameters of the switched capacitor converter 2023.

[0247] exist Figures 6 to 9 In the embodiment, the ratio of the voltage output by the first charging terminal 111 to the charging voltage of the second battery 203 is 1:1. In the implementation method provided in the embodiment of the present application, by increasing the voltage output by the first charging terminal 111, the power loss in the circuit can be reduced, thereby improving the charging efficiency of the second battery 203.

[0248] When the charging device 10 doubles the voltage of the electronic device 20, the current and voltage on the charging line are clamped by the second battery 203, thereby affecting communication. Therefore, during the process of the charging device 10 communicating with the electronic device 20, it is also necessary to control the switched capacitor converter 2023 to stop charging the second battery 203.

[0249] At this time, when the electronic device 20 initiates communication, the electronic device 20 controls the switched capacitor converter 203 to stop charging the second battery 203, and then see Figure 7 The corresponding description realizes communication; the implementation method of communication initiated by the charging device 10 can be found in Figure 8 Corresponding instructions, undervoltage protection circuit protection action is triggered by undervoltage; or see Figure 9 Correspondingly, the protection action of the overvoltage protection circuit is triggered by overvoltage, and the subsequent specific communication process is similar, so the embodiments of this application will not be repeated.

[0250] In summary, the solution provided in the embodiment of the present application can realize two-way communication between the charging device and the electronic device when the charging device supports both direct charging and double-voltage charging of the electronic device, and can reduce the number of times the first charging circuit reports an interruption to the first controller, as well as the number of times the second charging circuit reports an interruption to the second controller. That is, the interruption caused by the electronic device switching between the charging mode and the communication modulation mode can be considered as part of the communication protocol and does not need to be reported to the protection terminal, thereby simplifying the communication process and improving practicality.

[0251] In the above embodiments of the present application, the electronic device and the charging device communicate through modulated signals. In actual applications, in addition to having the function of informing the first controller that it needs to communicate with the second controller as described in the above description, this communication can also be used to determine whether the electronic device is used to connect to the charging device, and to identify the electronic device or the charging device, that is, to determine whether the electronic device and the charging device match.

[0252] Next, we will continue to use the electronic device as headphones and the charging device as the charging box of the headphones as an example to illustrate the specific process of realizing the entry and exit detection and identity recognition of headphones through modulated signals.

[0253] See also Figure 11 , this figure is a schematic diagram of another charging device and electronic device provided in an embodiment of the present application.

[0254] The charging device 10 shown in the figure is an earphone charging box, and the electronic device 20 is an earphone.

[0255] The charging device 10 includes a first controller 101 , a first DC / DC circuit 102 , a first charging circuit 104 , and charging terminals, including a first charging terminal 111 and a second charging terminal 112 .

[0256] The first charging circuit 104 includes a second DC / DC circuit 1041 , a first switch module S1 , a first modulation and demodulation circuit 1042 , a first state machine 1043 and a control loop 1044 .

[0257] The electronic device 20 includes a second controller 201 , a second charging circuit 202 , a second battery 203 , and power receiving terminals, including a first power receiving terminal 211 and a second power receiving terminal 212 .

[0258] The second charging circuit 202 includes a second modulation and demodulation circuit 2022 , a second switch module S2 , a third switch module S3 and a modulation current source 2024 .

[0259] The first modulation and demodulation circuit 1042 is connected to the first state machine 1043 .

[0260] The second state machine 2023 is connected to the second modulation and demodulation circuit, that is, the second state machine 2023 is connected to the modulation current source 2023 .

[0261] The charging device 10 is configured to have an output when the charging box is opened. That is, after the charging box is opened, the second DC / DC circuit 1041 outputs a preset voltage, or outputs the preset voltage at a preset period to reduce power consumption. The preset voltage is not specifically limited in this embodiment of the application; for example, it can be set to 5V. After the charging box is opened, the charging device 10 outputs the voltage to wait for the electronic device 20 to be connected.

[0262] The electronic device 20 is configured so that the off-box input terminal is in a high impedance state.

[0263] When the electronic device 20 is inserted into the case, the power receiving terminal is connected to the charging terminal. When the electronic device receives the appropriate input voltage, it actively sends a handshake signal, which is also the first modulation signal. At this time, the modulated current source (modem current source) 2024 in the electronic device 20 generates a current pulse signal to form a characteristic string.

[0264] The following first describes how to implement the feature string.

[0265] See also Figure 12 , which is a schematic diagram of a characteristic character string provided in an embodiment of the present application.

[0266] When the electronic device 20 is connected to the charging device through the power receiving terminal, the electronic device 20 detects the appropriate output voltage and uses the communication protocol between the electronic device 20 and the charging device 10 to modulate a characteristic state string by pulling current, voltage, switching frequency changes, etc.

[0267] The characteristic string includes a preamble (Preamble), a start code (Start), a data code (b0 to b3), a checksum (checksum), and a stop code (Stop).

[0268] The illustrated preamble includes 6 bits of “1”, the start code includes 1 bit of “1”, and the data code carries specific communication information related to a predetermined communication protocol between the electronic device 20 and the charging device 10 .

[0269] Checksum is used to verify the sum of data codes and is usually used to ensure the integrity and accuracy of data in communication.

[0270] The termination code indicates the end of the characteristic character string.

[0271] The above characteristic character string is only one possible implementation mode. The characteristic character string may also be implemented in other ways. For example, the leading code may not be 6 bits, but may be set to 5 bits, or 7 bits, etc.

[0272] That is, the above modulation current source 2024 forms Figure 7 The Ti_data segment in the first modulated signal is shown.

[0273] After the second state machine 2023 controls the modulation current source 2024 to modulate the input current of the second charging circuit 202, the generated characteristic string is carried in a first modulated signal and transmitted to the charging device. Specifically, using a predetermined communication protocol between the electronic device and the charging device, the characteristic string carried in the first modulated signal is the first characteristic string.

[0274] The first modulation and demodulation circuit 1042 of the charging device is used to demodulate the acquired modulation signal and send the demodulation result to the first state machine 1043.

[0275] When the first modulation and demodulation circuit 1042 successfully demodulates, the first state machine 1043 obtains a demodulation result corresponding to the first modulated signal, where the demodulation result carries the first characteristic character string.

[0276] The first state machine 1043 determines whether the first characteristic character string is a first preset characteristic character string. If yes, it indicates that a character string meeting the communication protocol is received, and it is determined that the electronic device 20 is connected.

[0277] The first state machine 1043 then controls the first modulation and demodulation circuit 1042 to modulate the output voltage of the first charging circuit 104 to form a first modulated response signal, where the first modulated response signal carries the second characteristic character string.

[0278] The second modulation and demodulation circuit of the electronic device 20 demodulates the received first modulated response signal and sends the demodulation result to the second state machine 2023 .

[0279] When the second characteristic character string included in the demodulation result is the second preset characteristic character string, the second state machine 2023 determines that the electronic device 20 has been connected to the charging device 10 .

[0280] The specific implementation of the above first preset characteristic character string and the second preset characteristic character string is determined by the communication protocol between the electronic device 20 and the charging device 10, and is not specifically limited in the embodiment of the present application.

[0281] The above describes the process of realizing presence detection between the charging device and the electronic device through modulated signals. In addition, the charging device and the electronic device can also realize identity recognition through modulated signals, that is, identify whether the two parties are compatible, which is described in detail below.

[0282] When the first modulation and demodulation circuit 1042 successfully demodulates, the first state machine 1043 obtains a demodulation result corresponding to the first modulated signal, where the demodulation result carries the first characteristic character string.

[0283] The first state machine 1043 determines whether the first characteristic string is a first preset characteristic string. If so, it indicates that a string that satisfies the communication protocol has been received, confirming that the electronic device 20 is connected, and that the electronic device 20 sending the first modulated signal matches the charging device. The first state machine 1043 then controls the first modulation and demodulation circuit 1042 to modulate the output voltage of the first charging circuit 104 to form the first modulated response signal.

[0284] When the first state machine 1043 determines that the first feature string is not the first preset feature string, or the first modulation and demodulation circuit 1042 fails to demodulate the first modulation signal, it is determined that the result of the identity authentication is that the electronic device and the charging device do not match. At this time, the first state machine 1043 controls the first modulation and demodulation circuit 1042 not to modulate the output voltage of the first charging circuit 104, that is, not to send the first modulation response signal.

[0285] When the second charging circuit 202 on the electronic device side does not receive the first modulated response signal, it determines that the electronic device 20 does not match the charging device 10.

[0286] That is, identity recognition between the electronic device 20 and the charging device 10 is achieved.

[0287] In summary, the above communication handshake mechanism enables both the electronic device 20 and the charging device 10 to complete identity recognition and in-box detection. The charging device 10 then charges the electronic device 20. During charging, a continuous voltage and current will flow along the power transmission line between the two devices. In practice, as the charging process progresses, the charge level and voltage of the second battery 203 of the electronic device 20 gradually increase. Communication between the electronic device 20 and the charging device 10 is also required to adjust the charging current and voltage of the second battery 203. This implementation process is described in detail below.

[0288] Continue to see Figure 11 Schematic diagram of the charging device and electronic device shown.

[0289] The charging device 10 further includes a first controller 101 .

[0290] The first communication interface of the first controller 101, that is, Figure 11 The IIC interface of the first controller 101 is connected to the first charging circuit 104 and is connected to the first state machine 1043 in the first charging circuit 104.

[0291] The second communication interface of the first controller 101, that is, Figure 11 The UART interface of the first controller 101 is connected to the second end of the first switch module S1, the first end of the first switch module S1 is connected to the output end of the second DC / DC circuit 1041, and the third end of the first switch module S1 is connected to the output end of the first charging circuit 104.

[0292] The electronic device 20 further includes a second controller 201 .

[0293] The first communication interface of the second controller 201, i.e. Figure 11 The IIC interface of the second controller 201 is connected to the second charging circuit 202 and is connected to the second state machine 2023 in the second charging circuit 202.

[0294] The second communication interface of the second controller 201, that is, Figure 11 The UART interface of the second controller 201 is connected to the second end of the second switch module S2, the first end of the second switch module S2 is connected to the input end of the second charging circuit 202, the third end of the second switch module S2 is connected to the first end of the third switch module S3, and the second end of the third switch module S3 is connected to the second battery 203.

[0295] The third switch module S3 includes a first MOS transistor and a second MOS transistor. The first and second MOS transistors are connected in series, and the anti-parallel diode of the first MOS transistor and the anti-parallel diode of the second MOS transistor are connected in opposite directions. By adjusting the states of the first and second MOS transistors, the impedance of the second switch module S3 can be minimized, thereby allowing the charging device 10 to directly charge the second battery 203 of the electronic device 20 via the charging terminal 111 with the charging voltage and charging current output.

[0296] When the first state machine 1043 determines that the electronic device 20 is in place through the handshake mechanism described in the above embodiment, it sends a first interrupt signal to the first communication interface of the first controller 101. The first interrupt signal is used to indicate to the first controller 101 that the electronic device 20 is currently in place.

[0297] The first state machine 1043 is also used to control the second end of the first switch module S1 and the third end of the first switch module S1 to be connected when the first controller 101 needs to communicate with the second controller 201 of the electronic device 20, so that the UART interface of the first controller 101 is connected to the circuit. At this time, the output end of the second DC / DC circuit 1041 is not connected to the charging terminal, that is, the charging device 10 temporarily stops charging the electronic device 20.

[0298] When the second state machine 2023 of the first controller 101 determines that the electronic device 20 is connected to the charging device 10 through the handshake mechanism in the above embodiment, it sends a third interrupt signal to the UART interface of the second controller 201, which is used to indicate that the electronic device is connected to the charging device.

[0299] When the second controller 201 communicates with the charging device 10 , the second state machine 2023 controls the first end of the second switch module S2 and the second end of the second switch module S2 to be connected.

[0300] At this time, the first controller 101 and the second controller 201 are connected to each other to realize data exchange during the charging process.

[0301] In one possible implementation, after the first controller 101 and the second controller 201 are connected, the second controller 201 sends first charging parameters to the first controller 101. The first charging parameters include a charging voltage and a charging current corresponding to the second battery 203. The first controller 101 receives the first charging parameters sent by the second controller 201 and sends the first charging parameters to the first state machine 1043, so that the first state machine 1043 controls the second DC / DC circuit 1041 based on the first charging parameters.

[0302] In another possible implementation, after the first controller 101 and the second controller 201 are connected, the second controller 201 sends voltage information of the second battery 203 to the first controller 101. After receiving the voltage information of the second battery 203 sent by the second controller 201, the first controller 101 determines first charging parameters corresponding to the second battery 203 based on the voltage information of the second battery 203, where the first charging parameters include a charging voltage and a charging current corresponding to the second battery. The first charging parameters are sent to the first state machine so that the first state machine 1043 controls the second DC / DC circuit 1041 based on the first charging parameters.

[0303] The correspondence between the voltage information of the second battery 203 and the first charging parameter may be pre-calibrated and stored, for example, in the form of a data table, and called when used by the first controller 101 .

[0304] After the communication between the first controller 101 and the second controller 201 is completed, the first state machine 1043 controls the first terminal of the first switch module S1 to be connected to the third terminal of the first switch module, so that the second DC / DC circuit 1041 is connected to the charging terminal. At the same time, the second state machine 2023 controls the first terminal of the second switch module S2 to be connected to the third terminal of the second switch module S2, so that the second charging circuit 202 charges the second battery 203.

[0305] At this point, the first charging parameter is acquired through the above communication. A control loop 1044 is provided in the first charging circuit 104. This control loop 1044 includes a voltage loop and a current loop. The inputs to control loop 1044 include Iou and Vout. Iout is the detected output current of the charging terminal, and Vout is the detected output voltage of the charging terminal. Vout is compared with the charging voltage in the first charging parameter. Based on the voltage comparison result, the output voltage of the charging terminal is controlled to be consistent with the charging voltage, thereby achieving closed-loop control of the voltage loop. Iout is compared with the charging current in the first charging parameter. Based on the current comparison result, the output current is controlled to be consistent with the charging current, thereby achieving closed-loop control of the current loop.

[0306] The communication between the first controller 101 and the second controller 201 may occur multiple times during the entire charging process, and the embodiment of the present application does not specifically limit the number of communications.

[0307] The above description takes direct charging of electronic devices as an example. When charging electronic devices at double voltage, please refer to Figure 10A The corresponding circuits, but the communication process between the first controller 101 and the second controller 201 is similar to the above description and will not be repeated here.

[0308] In summary, by using the above solutions provided in the embodiments of the present application, during the charging process, the charging device and the electronic device can achieve two-way communication, and the charging device can be supported to directly charge or double-voltage charge the electronic device, thereby improving the charging efficiency of the electronic device.

[0309] The above description mainly introduces the communication method during the charging process. The following specifically describes the method for detecting the separation of the charging device and the electronic device.

[0310] See also Figure 13 , which is a schematic diagram of another charging device and electronic device provided in an embodiment of the present application.

[0311] The embodiments of this application Figure 11 The difference between the illustrated implementations is that the charging device 10 further includes a first comparator 1045 , and the electronic device 20 further includes a second comparator 2025 .

[0312] Figure 11 The first comparator 1045 is integrated with the first charging circuit 104. In other embodiments, the first comparator 1045 may also be independently provided.

[0313] The first comparator 1045 is configured to compare the output current Iout of the charging device 10 with the preset current I1 and send an obtained first comparison result to the first state machine 1043 .

[0314] When the first state machine 1043 determines that the output current Iout of the charging device 10 is less than the preset current I1 according to the first comparison result, the first state machine 1043 sends a second interrupt signal to the IIC interface of the first controller 101, which is used to instruct the first controller 101 to disconnect the electronic device 20 from the charging device 10.

[0315] In some embodiments, when the first controller 101 receives the second interrupt signal, it determines that the electronic device 20 is disconnected, and then controls the first DC / DC circuit 102 and / or the second DC / DC circuit 1041 to stop working.

[0316] Figure 11 The second comparator 2025 is integrated with the second charging circuit 202. In other embodiments, the second comparator 2025 may also be independently provided.

[0317] The second comparator 2025 is configured to compare the input voltage Vin of the electronic device with the preset voltage V1, and send the obtained second comparison result to the second state machine 2023.

[0318] When the second comparator 2025 determines that the input voltage Vin is less than the preset voltage V1 according to the second comparison result, it sends a fourth interrupt signal to the IIC interface of the second controller 201 , which instructs the second controller 201 to disconnect the electronic device 20 from the charging device 10 .

[0319] In summary, the above method can detect whether the electronic device is disconnected from the charging device. However, in actual application, the following special circumstances may exist:

[0320] Case 1: The second battery 203 of the electronic device 20 is fully charged, but the electronic device 20 is still connected to the charging device. At this time, the input voltage of the electronic device 20 is low and the output current of the charging device 10 is low.

[0321] Case 2: Before the electronic device 20 is charged, the second battery 203 is over-discharged. In order to protect the second battery 203, the second battery 203 needs to be trickle charged for a period of time. During the trickle charging period, the input voltage of the electronic device 20 is low and the output current of the charging device 10 is low.

[0322] In the above situation, the first comparator 1045 may not be able to detect the output current Iout, and thus may mistakenly determine that the electronic device 20 is out of the box, and then stop charging the electronic device 20.

[0323] Therefore, in order to make the detection logic more complete and avoid misjudgment of the charging device, the modulated current source of the second charging circuit 202 can be used to send a heartbeat pulse signal, which is described in detail below.

[0324] See also Figure 14 , which is a waveform diagram of the modulation signal provided in the embodiment of the present application Figure 4 .

[0325] The second state machine 2023 of the electronic device 20 controls the second modulation and demodulation circuit to modulate the input current of the second charging circuit when the battery 2023 is in a trickle charging state or a fully charged state, so that the modulated current includes a preset pulse signal, and sends the preset pulse signal to the charging device 10.

[0326] Figure 14 The preset pulse signal shown in is only a possible implementation method and does not constitute a specific limitation of this embodiment. The preset pulse signal is specifically determined by the communication protocol between the charging device 10 and the electronic device 20. Figure 14 As shown, the electronic device 20 sends a pulse lasting 0.1 ms to the charging device 10 every 150 ms to inform the charging device 10 that the electronic device 20 is still in place.

[0327] The first modulation and demodulation circuit 1042 of the charging device 10 demodulates the received modulation signal and sends the demodulation result to the first state machine 1043. When the first state machine 1043 determines that the electronic device 20 sends a preset pulse signal to the charging device 10, it determines that the connection between the electronic device 20 and the charging device is normal.

[0328] Furthermore, when the first state machine 1043 determines that the electronic device 20 sends a preset pulse signal to the charging device 10, it maintains the current working state of the second DC / DC circuit and sends a fifth interrupt signal to the first controller 101. The fifth interrupt signal is used to indicate to the first controller 101 that the current electronic device 20 is in a trickle charging state.

[0329] In other embodiments, the electronic device may correspond to different preset pulse signals when it is in a fully charged state or a trickle charged state, so that the first state machine 1043 can determine the specific state of the current electronic device.

[0330] In summary, in the above embodiment, the modulation current source 2024 of the second charging circuit 202 is used to send a heartbeat pulse signal to the charging device, thereby preventing the charging device 10 from misjudging that the electronic device is disconnected when the second battery 203 is fully charged or trickle charged.

[0331] In other extreme scenarios in actual applications, the charging device 10 may suddenly output a power outage due to overcurrent, overtemperature, or other reasons, causing the input voltage of the electronic device 20 to be zero. Therefore, the electronic device 20 may mistakenly determine that the device is out of the box. Taking the electronic device as an example, after the earphones mistakenly determine that the device is out of the box, they may automatically initiate a connection with the mobile phone device. If they successfully connect to the mobile phone device, they will continue to wait for the mobile phone to transmit data or start playback, and the battery may be exhausted again. On the other hand, after the electronic device 20 mistakenly determines that the device is out of the box, if the charging device 10 recovers from an abnormal state such as overcurrent or overtemperature, the charging device 10 may not continue to charge the electronic device 20 because the electronic device 20 mistakenly determines that the device is out of the box and does not send a handshake signal to the charging device. Therefore, the electronic device 20 is not fully charged, which reduces the user experience.

[0332] In order to prevent the electronic device 20 from misjudging itself as being out of the box in the above situation, the modulation current source of the second charging circuit 202 can still be used to implement detection, which is described in detail below.

[0333] See also Figure 15 , which is a schematic diagram of another charging device and electronic device provided in an embodiment of the present application.

[0334] Figure 15 and Figure 14 The difference is that Figure 15 The modulated current source 2024 in the embodiment outputs current in the reverse direction to the power receiving terminal 211 of the electronic device 20 , that is, the electronic device 20 feeds current back to the charging device 10 .

[0335] The second comparator 2025 is configured to compare the input voltage Vin of the electronic device with the preset voltage V1, and send the obtained second comparison result to the second state machine 2023.

[0336] When the second comparator 2025 determines, based on the second comparison result, that the input voltage Vin is less than the preset voltage V1, it controls the second modulation and demodulation circuit to send a detection signal to the power receiving terminal 211. The detection signal includes the current reversely output by the modulation current source 2024 to the power receiving terminal 211 of the electronic device 20. In some embodiments, the detection signal can be a constant current signal.

[0337] Because the output end of the second DC / DC circuit 1041 of the charging device 10 includes a capacitor, utilizing the characteristic of charging the capacitor, if the electronic device 20 is still connected to the charging device 10 at this time, the current signal sent by the modulated current source 2024 to the electronic device 20 will first charge the capacitor, so the voltage at the power receiving terminal will not rise quickly. If the connection is actually disconnected at this time, the voltage at the power receiving terminal will quickly rise to the voltage of the modulated current source 2024.

[0338] That is, when the detection signal is a constant current signal, when the charging box 10 and the electronic device 20 are disconnected, the voltage at the first power receiving terminal 211 will rise quickly.

[0339] When the voltage of the power receiving terminal exceeds the preset threshold voltage within the preset time, the second state machine 2023 sends a fourth interrupt signal to the IIC interface of the second controller 201, and the fourth interrupt signal is used to instruct the second controller 201 to disconnect the electronic device 20 from the charging device 10.

[0340] The preset time and the preset threshold voltage can be calibrated through testing to determine appropriate values, and the embodiments of the present application do not specifically limit this.

[0341] In summary, the solution provided by the embodiment of the present application can achieve bidirectional in-place detection, and avoid the charging device from mistakenly judging that it is disconnected from the electronic device, and avoid the electronic device from mistakenly judging that it is disconnected from the charging device, thereby improving the reliability and accuracy of in-place detection. In addition, the above implementation method has a high degree of integration, does not need to rely on devices such as Hall sensors and infrared light sensors, and also reduces hardware costs.

[0342] In the description of the above embodiments, the implementation method of realizing bidirectional presence detection and identity recognition through modulated signals is described. In addition, in other implementation methods, the first modulated signal or the second modulated response signal sent by the electronic device to the charging device may also carry the charging parameters of the electronic device. The charging parameters may include one or more of the information such as the charging current corresponding to the second battery, the charging voltage corresponding to the second battery, or the voltage of the second battery. The second modulated signal and the first modulated response signal sent by the charging device 10 to the electronic device 20 may also include the output parameters of the charging device 10, such as the output current or the output voltage. In this way, the data transmitted by the first controller 101 and the second controller 201 through the UART interface can be placed in the modulated signal for transmission, which simplifies the communication process and reduces the number of reported interrupts.

[0343] In the above embodiment, the charging box is used to charge the earphones as an example. At this time, the charging terminal and the power receiving terminal both include two PINs to achieve electrical connection. The charging terminal and the power receiving terminal can be pogo pins or metal shrapnel.

[0344] In other embodiments, the charging terminal and the power receiving terminal can also be connected via a Universal Serial Bus (USB) interface, which will not be described in detail here. Furthermore, the solution of the present application can also be applied to other scenarios, such as charging a smart bracelet or a smart watch, that is, the electronic device can also be a smart bracelet or a smart watch.

[0345] Based on the charging device and electronic device provided in the above embodiments, an embodiment of the present application further provides a charging system, which includes the charging device and electronic device described in the above embodiments, and is described in detail below with reference to the accompanying drawings.

[0346] See also Figure 16 , this figure is a schematic diagram of another charging device and electronic device provided in an embodiment of the present application.

[0347] The second charging circuit is configured to disconnect the second battery, send a first modulated signal to the charging device, receive a first modulated response signal sent by the charging device, and demodulate the first modulated response signal, wherein the first modulated signal includes a first current, and the first current is used to indicate that the electronic device has initiated communication with the charging device; or receive a second modulated signal sent by the charging device and demodulate the second modulated signal. When the demodulated result of the second modulated signal includes the first voltage, the second charging circuit disconnects the second battery and sends a second modulated response signal to the charging device.

[0348] The first charging circuit is configured to receive a first modulated signal sent by the electronic device, demodulate the first modulated signal, and send a first modulated response signal to the electronic device when the demodulation result includes a first current; or to send a second modulated signal to the electronic device, receive a second modulated response signal sent by the electronic device, and demodulate the second modulated response signal, wherein the second modulated signal includes a first voltage, and the first voltage is used to disconnect the second charging circuit of the electronic device from the second battery.

[0349] Continuing to explain the earphone charging system including a charging box and earphones, at this time, both the charging terminal and the power receiving terminal include two PINs to achieve electrical connection. It can be understood that the above description is based on the example of the charging box charging one earphone. In actual applications, the charging device can charge two earphones at the same time, that is, charge the electronic device 20 and the electronic device 30. That is, the charging system includes the charging device 10, the electronic device 20 and the electronic device 30. The circuit implementation method inside the electronic device 20 and the electronic device 30 is the same, which will not be repeated here. At this time, the electronic device 20 is one earphone, and the electronic device 30 is the other earphone.

[0350] The charging device may include two identical first charging circuits 104 , and the two first charging circuits 104 are commonly connected to the output end of the first DC / DC circuit 102 .

[0351] Each first charging circuit 104 corresponds to a first controller 101. The two first controllers 101 in the figure are separately provided, but in other embodiments, the two first controllers 101 may also be integrated together.

[0352] The above headphone charging system is only one possible implementation method and does not constitute a limitation on the technical solution of the present application. In actual applications, the two first charging circuits 104 can also be directly connected to the same first controller 101, that is, only one first controller is provided in the charging device 10; alternatively, two first DC / DC circuits 102 can be provided in the charging device 10 at the same time, and each first charging circuit 104 is connected to a corresponding DC / DC circuit 102. In this case, the two first DC / DC circuits 102 can be connected to a common first battery 103, or respectively connected to different first batteries 103.

[0353] Regarding the specific manner of achieving communication between the charging device 10 and the electronic devices 20 and 30 , reference may be made to the description in the above embodiments, which will not be repeated here.

[0354] In the above embodiments, the earphone charging system is used as an example. When the solution provided in the present application is applied to other scenarios, such as charging a smart bracelet or a smart watch, that is, the electronic device 20 can also be a smart bracelet or a smart watch. At this time, the charging device 10 is generally only provided with a first charging circuit 104.

[0355] In summary, the charging system provided by the embodiments of the present application can realize direct charging or double-voltage charging of electronic devices, and realize bidirectional communication between the electronic device and the charging device. Through bidirectional communication, bidirectional presence detection and identity recognition can be realized, and the charging device can be prevented from mistakenly judging that it is disconnected from the electronic device, and the electronic device can be prevented from mistakenly judging that it is disconnected from the charging device, thereby improving the reliability and accuracy of presence detection. In addition, the above implementation method can be realized based on two metal terminals, that is, only two charging terminals are required on the charging device, and two receiving terminals are required on the electronic device. It has a high degree of integration and can achieve the detection effect without relying on devices such as Hall sensors and infrared light sensors, which also reduces hardware costs.

[0356] Based on the charging device and electronic device provided in the above embodiments, the embodiments of the present application further provide a communication method, which will be described in detail below with reference to the accompanying drawings.

[0357] See also Figure 17 , which is a flowchart of a communication method provided in an embodiment of the present application.

[0358] The method is applied to a charging device and comprises the following steps:

[0359] S1701: Receive a first modulated signal sent by an electronic device, and send a first modulated response signal to the electronic device.

[0360] S1702: When communication with an electronic device needs to be initiated, a second modulated signal is sent to the electronic device, the second modulated signal including a first voltage, the first voltage being used to disconnect the second charging circuit of the electronic device from the second battery, and a second modulated response signal sent by the electronic device is received.

[0361] See also Figure 18 , which is a flowchart of another communication method provided in an embodiment of the present application.

[0362] The method is applied to an electronic device and comprises the following steps:

[0363] S1801: When communication with the charging device needs to be initiated, the second charging circuit is controlled to be disconnected from the second battery, a first modulated signal is sent to the charging device, and a first modulated response signal is received from the charging device.

[0364] S1802: When receiving a second modulation signal sent by the charging device, control the second charging circuit to be disconnected from the second battery according to the first voltage in the second modulation signal, and send a second modulation response signal to the charging device.

[0365] When the electronic device needs to initiate communication with the charging device, the second charging circuit first controls the connection between the second charging circuit and the second battery to prevent the second battery from clamping the voltage and current on the line. At this time, the second charging circuit temporarily stops charging the second battery.

[0366] The second charging circuit sends a first modulation signal to the charging device through the first power receiving terminal. The first modulation signal includes a first current value. The first current value is used to indicate to the charging device that the electronic device has initiated communication.

[0367] In the communication protocol predetermined between the charging device and the electronic device, it is predetermined that the first current value represents that the electronic device has initiated communication at this time.

[0368] When the first charging circuit of the charging device receives the first modulation signal and obtains the first current, it is determined that the electronic device has initiated communication. The first charging circuit responds with a first modulation response signal to the electronic device through the first charging terminal according to a predetermined communication protocol.

[0369] In some embodiments, the first current is located at the head position of the first modulation signal. When the first charging circuit of the charging device receives the second modulation signal, it first receives the first current, and the first charging circuit can determine that the electronic device has initiated communication.

[0370] That is, the communication initiated by the electronic device with the charging device is realized.

[0371] When the charging device needs to initiate communication with the electronic device, the first charging circuit sends a second modulated signal to the electronic device through the first charging terminal. The second modulated signal includes a first voltage. The first voltage is used to disconnect the second charging circuit of the electronic device from the second battery to prevent the second battery from clamping the voltage and current.

[0372] In some embodiments, the first voltage is located at the head position of the second modulation signal. When the second charging circuit of the electronic device receives the second modulation signal, it first receives the first voltage, so that the second charging circuit 202 is disconnected from the second battery in time.

[0373] The second charging circuit then replies a second modulated response signal to the charging device through the power receiving terminal according to the second modulated signal and a predetermined communication protocol.

[0374] The second charging circuit of the electronic device receives the second modulated response signal.

[0375] That is, the communication initiated by the charging device with the electronic device is realized.

[0376] It is understandable that Figure 17 and Figure 18 The division of the above steps is only for the convenience of explanation and does not constitute a limitation on the technical solution of the present application. In actual applications, the charging system can be configured so that the electronic device actively initiates communication to the charging device, or the charging device actively initiates communication to the electronic device. The embodiments of the present application do not make specific limitations.

[0377] In summary, the method provided in the embodiments of the present application enables bidirectional communication between the charging device and the electronic device when the charging device is directly charging or voltage-doubled charging the electronic device. The communication process is simple and highly practical. Through this communication method, mutual identity authentication and presence detection can be achieved between the electronic device and the charging device without the need for additional detection sensors, thereby reducing hardware costs.

[0378] The following uses an example in which the electronic device is an earphone and the charging device is a charging box for the earphone to specifically describe the method for detecting earphones entering the box. The specific circuit implementation of the charging device and the electronic device can be found in the description of the above embodiments and will not be described in detail here.

[0379] See also Figure 19 , which is a flowchart of another communication method provided in an embodiment of the present application.

[0380] The method is applied to a charging device, that is, an earphone charging box, and includes the following steps:

[0381] S1901: Unpack the charging device.

[0382] S1902: Notify the first controller to open the box.

[0383] S1903: Determine the output state of the first charging circuit.

[0384] The first controller determines the working state of the first charging circuit. When it is determined that the current output state of the first charging circuit is a communication state, that is, the first charging circuit is communicating with the electronic device using a modulated signal, S1904 is executed; when it is detected that the current output of the first charging circuit is a high-impedance state, that is, the electronic device is not yet connected, S1906 is executed; when it is detected that the current working state of the first charging circuit is charging the electronic device, S1905 is executed.

[0385] S1904: Update communication content.

[0386] That is, at this time, the first charging circuit of the charging device controls the first modulation and demodulation circuit to modulate the output voltage of the first charging circuit according to the communication protocol predetermined with the electronic device to generate a first modulated response signal or a second modulated signal, and sends it to the electronic device.

[0387] S1905: Control the second communication interface of the first controller to connect to the charging terminal.

[0388] At this time, the first controller needs to communicate with the second controller of the electronic device.

[0389] When the first controller needs to communicate with the second controller of the electronic device, the second end of the first switch module and the third end of the first switch module in the first charging circuit are connected, so that the second communication interface of the first controller, that is, the UART interface of the first controller, is connected to the circuit. At this time, the output end of the second DC / DC circuit is not connected to the charging terminal, that is, the charging device temporarily stops charging the electronic device.

[0390] In some embodiments, the first controller receives a first charging parameter sent by the second controller and sends the first charging parameter to the first state machine so that the first state machine controls the second DC / DC circuit according to the first charging parameter. The first parameter information includes a charging current and a charging voltage of the second battery.

[0391] In other embodiments, the first controller receives voltage information of the second battery sent by the second controller, and determines first charging parameters corresponding to the second battery based on the voltage information of the second battery, where the first charging parameters include a charging voltage and a charging current corresponding to the second battery, and sends the first charging parameters to the first state machine so that the first state machine controls the second DC / DC circuit based on the first charging parameters.

[0392] When the first controller needs to communicate with the second controller of the electronic device, the first controller may further send the current output parameters of the charging device, such as output voltage and output current, to the second controller.

[0393] S1906: Output preset voltage.

[0394] In some embodiments, the charging device is configured such that when the box is opened and no electronic device is connected, the output end is in a high impedance state, at which time a preset voltage is output, or a preset voltage is output according to a preset cycle to reduce power consumption.

[0395] With the above configuration, after the charging device is unpacked, it outputs a preset voltage to trigger the earphones to send a handshake signal after receiving the output of the charging device.

[0396] S1907: Wait for the electronic device to send a handshake signal.

[0397] When the electronic device is inserted into the case, the power receiving terminal connects to the charging terminal of the charging device. When the electronic device receives the appropriate input voltage, it actively transmits a handshake signal, also known as the first modulation signal. At this time, the modulated current source in the electronic device generates a current pulse signal to form a characteristic string.

[0398] The first modulation and demodulation circuit of the charging device demodulates the acquired modulated signal and sends the demodulation result to the first state machine. The first state machine determines whether the first characteristic string is a first preset characteristic string. If so, it indicates that a string that satisfies the communication protocol has been received. The electronic device is determined to be connected, and then S1909 is executed.

[0399] When the first state machine determines that the first characteristic string is not the first preset characteristic string, or the first modulation and demodulation circuit fails to demodulate the first modulation signal, it is determined that the result of the identity authentication is that the electronic device and the charging device do not match. At this time, the first state machine controls the first modulation and demodulation circuit not to modulate the output voltage of the first charging circuit, that is, not to send the first modulation response signal.

[0400] If the second battery of the electronic device is over-discharged before charging, in order to protect the second battery, the second battery needs to be trickle charged for a period of time.

[0401] The second state machine of the electronic device controls the second modulation and demodulation circuit to modulate the input current of the second charging circuit so that the modulated current includes a preset pulse signal, and sends the preset pulse signal to the charging device. The preset pulse signal can be found in Figure 14 , I will not go into details here.

[0402] The first modulation and demodulation circuit of the charging device demodulates the received modulated signal and sends the demodulation result to the first state machine. When the first state machine determines that the electronic device sends a preset pulse signal to the charging device, the electronic device and the charging device are properly connected, and the preset pulse signal is a trickle charging handshake signal, the first state machine executes S1908.

[0403] S1908: Maintain output, report interrupt, and refresh the headset presence register.

[0404] When the first state machine determines that the electronic device sends a preset pulse signal to the charging device, it maintains the current working state of the second DC / DC circuit and sends a fifth interrupt signal to the first controller. The fifth interrupt signal is used to indicate to the first controller that the current electronic device is in a trickle charging state.

[0405] In some embodiments, the headset presence register is integrated with the first controller. The headset presence register can indicate to the first controller whether the headset is currently in place through a headset presence flag. For example, if the headset presence flag is 1, indicating that the headset is in place, and if the headset presence flag is 0, indicating that the headset is not in place, then the headset presence flag is reset to 1 after being refreshed; or if the headset presence flag is 0, indicating that the headset is in place, and if the headset presence flag is 1, indicating that the headset is not in place, then the headset presence flag is reset to 0 after being refreshed.

[0406] S1909: Report an interrupt, set the headset presence register, and start presence detection.

[0407] The first state machine determines that the headset is present when it determines that the electronic device sends a normal handshake signal, i.e., a first modulated signal or a second modulated response signal, to the charging device. At this point, if the headset presence flag is 1, indicating the headset is present, and if it is 0, indicating the headset is not present, the headset presence flag is reset to 1 after being refreshed. If the headset presence flag is 0, indicating the headset is present, and if it is 1, indicating the headset is not present, the headset presence flag is reset to 0 after being refreshed.

[0408] S1910: Control the second communication interface of the first controller to connect to the charging terminal and stop the in-place detection.

[0409] That is, the UART interface of the first controller is connected to the circuit, and the first controller is ready to communicate with the second controller of the electronic device.

[0410] S1911: Send unpacking information to the headset.

[0411] S1912: Complete the on-site detection of the electronic device and the machine-box communication.

[0412] The following describes in detail the method for detecting earphones entering the box.

[0413] See also Figure 20 , this figure is a flowchart of another communication method provided in an embodiment of the present application.

[0414] The method is applied to electronic equipment, that is, to headphones, and includes the following steps:

[0415] S2001: Put the earphones into the box.

[0416] S2002: Input voltage is detected.

[0417] Since the charging device is configured to automatically output a preset voltage after the box is opened, the second charging circuit can be connected to the input voltage after the earphones are placed in the box.

[0418] S2003: Is the voltage of the second battery sufficient?

[0419] The second controller of the electronic device determines whether the voltage of the second battery is sufficient. If so, it indicates that the second battery can be directly charged or double-voltage charged at this time, and executes S2005; otherwise, it indicates that the second battery has been over-discharged before being put into the box. In order to protect the second battery, the second battery needs to be trickle charged for a period of time, and executes S2004.

[0420] S2004: Sending a trickle charge handshake signal.

[0421] Trickle charge handshake signal, also known as preset pulse signal, can be found in Figure 14 The implementation shown.

[0422] S2005: Send a handshake signal.

[0423] The handshake signal is also the first modulation signal.

[0424] In some embodiments, the electronic device may also respond to the second modulated signal sent by the charging device, that is, send a second modulated response signal to the charging device.

[0425] S2006: Wait for the charging device to reply with a response signal.

[0426] If there is no reply, it indicates that the first state machine of the charging device determines that the first characteristic string in the demodulation result is inconsistent with the first preset characteristic string in the predetermined communication protocol, that is, the electronic device and the charging device do not match, and S2007 is executed.

[0427] If there is a reply, it indicates that the identity authentication of the electronic device is passed. The response signal sent by the charging device at this time is related to a predetermined protocol, which is not specifically limited in this application, and then S2006 is executed.

[0428] S2007: Maintain the LDO mode and report that an unmatched charging device is connected.

[0429] Since the electronic device and the charging device do not match, the LDO mode is maintained to prevent the second battery from being damaged by an excessive input voltage. The second state machine of the electronic device then notifies the second controller that an unmatched charging device is currently connected.

[0430] S2008: Report an interrupt and set the charging device in place register.

[0431] When the first state machine receives the response signal from the charging device, it determines that a matching charging device is currently connected, and sends a third interrupt signal to the first controller of the electronic device, where the third interrupt signal is used to indicate that the electronic device is currently connected to the charging device.

[0432] In some embodiments, the charging device presence register is integrated with the second controller. The charging device presence register can indicate to the second controller whether the current charging device is in place through the charging device presence flag. For example, if the charging device presence flag is 1, indicating that the charging device is in place, and the charging device presence flag is 0, indicating that the charging device is not in place, then the charging device presence flag is refreshed and set to 1; or if the charging device presence flag is 0, indicating that the charging device is in place, and the charging device presence flag is 1, indicating that the charging device is not in place, then the charging device presence flag is refreshed and set to 0.

[0433] S2009: Complete the box entry detection.

[0434] S2010: Receive a request to connect to the second communication interface of the second controller.

[0435] That is, at this time, the first controller of the charging device initiates active communication with the second controller.

[0436] S2011: Reply a response signal to the charging device.

[0437] The response signal indicates that the electronic device allows the second communication interface of the second controller to be connected, and the first controller is ready to communicate.

[0438] S2012: Connect the second communication interface of the second controller to the power receiving terminal.

[0439] S2013: Complete the box entry interaction.

[0440] After the second communication interface of the second controller is connected, the first controller communicates with the second controller.

[0441] The following describes how the charging box detects when the earphones are out of the box.

[0442] See also Figure 21 , which is a flowchart of another communication method provided in an embodiment of the present application.

[0443] After completing the on-site detection of the electronic device and the communication with the box, that is, completing S1912, the method further includes the following steps:

[0444] S1913: Output voltage and current as required.

[0445] The first controller determines first charging parameters corresponding to the second battery, namely, the charging current and charging voltage of the second battery, by exchanging information with the second controller. The first controller sends the first charging parameters to the first state machine, so that the first state machine controls the second DC / DC circuit according to the first charging parameters.

[0446] A control loop is provided in the first charging circuit. The control loop includes a voltage loop and a current loop. Input quantities of the control loop include a detected output current of the charging terminal and a detected output voltage of the charging terminal.

[0447] The detected output voltage of the charging terminal is compared with the charging voltage in the first charging parameter, and the output voltage of the charging terminal is controlled to be consistent with the charging voltage based on the voltage comparison result, thereby realizing closed-loop control of the voltage loop; the detected output current of the charging terminal is compared with the charging current in the first charging parameter, and the output current is controlled to be consistent with the charging current based on the current comparison result, thereby realizing closed-loop control of the current loop, and thus being able to output voltage and current according to the charging requirements of the second battery.

[0448] S1914: The first controller ends the communication through the second communication interface.

[0449] S1915: Enable in-place detection.

[0450] S1916: Charging or communicating.

[0451] When communication is performed, specifically if the communication is performed in response to a request from the headset, then S1917 is executed; specifically if the communication is performed as an active request, then S1918 is executed.

[0452] When charging is in progress, execution continues at S1922.

[0453] S1917: Receive a communication request from the headset.

[0454] That is, the second controller of the headset actively initiates a communication request to the first controller.

[0455] S1918: Reporting interruption, the second communication interface of the first controller is connected to the charging terminal, and the in-place detection is stopped.

[0456] In some embodiments, the communication request on the earphone side in S1917 can be carried in the first modulated signal sent by the earphone. After the first modulation and demodulation circuit of the first charging circuit demodulates the first modulated signal, the demodulation result is sent to the first state machine. The first state machine determines that the second controller needs to communicate with the first controller based on the demodulation result, and then the first state machine reports an interrupt to the first controller to access the second communication interface of the first controller, that is, the UART interface access circuit of the first controller to communicate with the second controller.

[0457] S1919: End communication.

[0458] S1920: Communication abnormality.

[0459] By removing the earphones, the connection between the charging terminal and the power receiving terminal is interrupted, which will cause communication interruption.

[0460] S1921: Enable in-place detection.

[0461] S1922: Determine through in-place detection that the headset is disconnected.

[0462] The charging device may be provided with a first comparator, which is used to compare the output current of the charging device with a preset current and send an obtained first comparison result to the first state machine.

[0463] The first state machine determines that the earphone is disconnected when it is determined, according to the first comparison result, that the output current of the charging device is less than the preset current.

[0464] S1923: Report interrupt and refresh the headset presence register.

[0465] The first state machine sends a second interrupt signal to the first controller, where the second interrupt signal is used to instruct the first controller electronic device to disconnect from the charging device.

[0466] Refresh the headset presence register. For the headset presence register, when the headset presence flag is 1, indicating that the headset is in place, and the headset presence flag is 0, indicating that the headset is not in place, then the headset presence flag is refreshed and set to 0; or when the headset presence flag is 0, indicating that the headset is in place, and the headset presence flag is 1, indicating that the headset is not in place, then the headset presence flag is refreshed and set to 1.

[0467] S1924: The first controller reads the status of the headset presence register.

[0468] That is, the first controller reads the headset presence flag of the headset presence register to determine that the headset is not currently in place.

[0469] S1925: Complete the out-of-box inspection of the earphones.

[0470] In some embodiments, when the earphones are trickle charged or are still connected to the charging box after being fully charged, the output current of the charging device is relatively small. To prevent the charging box from misjudging that the earphones are out of the box, the earphones are configured to send a preset pulse signal to the charging device. In this case, the method further includes:

[0471] When the first state machine determines that the electronic device sends a preset pulse signal to the charging device, it maintains the current working state of the second DC / DC circuit and sends a fifth interrupt signal to the first controller. The fifth interrupt signal is used to indicate that the current electronic device is in a fully charged state or a trickle charging state.

[0472] The following describes how to implement out-of-box detection for headphones.

[0473] See also Figure 22 , which is a flowchart of another communication method provided in an embodiment of the present application.

[0474] After the headset reports to the terminal and sets the headset presence register, that is, after S2008 is implemented, the method further includes the following steps:

[0475] S2101: Start in-situ detection.

[0476] S2102: Determine whether to charge or communicate.

[0477] When it is determined that communication is to be performed, executing S2103;

[0478] When it is determined that charging is to be performed, S2106 is executed.

[0479] S2103: The second communication interface of the second controller is connected to the power receiving terminal.

[0480] That is, the UART interface of the second controller is connected to the circuit.

[0481] S2104: End communication.

[0482] S2105: Communication interrupted, input low.

[0483] When the earphones are taken out of the charging box, the charging terminal is disconnected from the power receiving terminal, at which time the communication is interrupted and the input voltage of the second charging circuit of the earphones drops to zero.

[0484] S2106: Determine whether the headset is disconnected.

[0485] The earphone side includes a second comparator, which is used to compare the input voltage of the electronic device with the preset voltage and send the obtained second comparison result to the second state machine.

[0486] When the second comparator determines, based on the second comparison result, that the input voltage is less than the preset voltage, the second comparator determines that the electronic device is disconnected from the charging device.

[0487] S2107: Report an interrupt and refresh the headset presence register.

[0488] When the second comparator determines that the input voltage is less than the preset voltage according to the second comparison result, the second comparator sends a fourth interrupt signal to the second controller, where the fourth interrupt signal is used to instruct the second controller electronic device to disconnect from the charging device.

[0489] Refresh the charger presence register. For the charger presence register, if the charger presence flag is 1, indicating that the charger is present, and 0, indicating that the charger is not present, then the charger presence flag is refreshed and set to 0; or if the charger presence flag is 0, indicating that the charger is present, and 1, indicating that the charger is not present, then the charger presence flag is refreshed and set to 1.

[0490] S2108: The second controller reads the status of the headset presence register.

[0491] The second controller reads the on-site flag in the charging device on-site register to determine that the charging device is not currently in place.

[0492] S2109: Complete the out-of-box inspection.

[0493] In some embodiments, the charging device may suddenly lose power due to overcurrent, overtemperature, or other reasons, causing the input voltage of the electronic device to be zero. As a result, the electronic device may mistakenly determine that the device is out of service. Therefore, the method further includes:

[0494] When the second state machine determines, based on the second comparison result, that the input voltage is less than the preset voltage, the second modulation and demodulation circuit is controlled to send a current detection signal to the power receiving terminal. When the voltage of the power receiving terminal exceeds a preset threshold voltage within a preset time, a fourth interrupt signal is sent to the second controller. The fourth interrupt signal is used to instruct the second controller to disconnect the electronic device from the charging device. Otherwise, in other embodiments, a sixth interrupt signal may be sent to the second controller. The sixth interrupt signal is used to instruct the second controller to disconnect the current electronic device from the charging device.

[0495] It can be understood that the division of the above steps in the embodiment of the present application is only for the convenience of explanation and does not constitute a limitation on the technical solution of the present application. In actual applications, those skilled in the art can adjust and simplify the technology of the above method, and the obtained implementation method still falls within the scope of protection of the present application.

[0496] In summary, the communication method provided in the embodiments of the present application enables bidirectional communication between the charging device and the electronic device when the charging device supports direct charging or voltage-doubled charging of the electronic device. This bidirectional communication can be used to achieve bidirectional presence identification and identity authentication, and avoids the charging device from mistakenly disconnecting from the electronic device, and avoids the electronic device from mistakenly disconnecting from the charging device, thereby improving the reliability and accuracy of presence detection. In addition, the above implementation method has a high degree of integration, does not require reliance on devices such as Hall sensors and infrared light sensors, and also reduces hardware costs.

[0497] The embodiment of the present application further provides a chip, which is applied to the charging device provided in the above embodiment, and is described in detail below with reference to the accompanying drawings.

[0498] See also Figure 23 , and also a schematic diagram of a chip provided in an embodiment of the present application.

[0499] The chip 2300 integrates a first charging circuit, and includes an input port Input1 and an output port Output1.

[0500] The input port Input1 is an input end of the first charging circuit, and is used to connect to the first DC / DC circuit.

[0501] The output port Output1 is an output end of the first charging circuit, and is used to connect to a charging terminal.

[0502] Furthermore, the chip 2300 also includes an interface for communicating with the I / O interface of the first controller 101, an interface for communicating with the IIC interface of the first controller 101, and an interface for communicating with the UART interface of the first controller 101.

[0503] The first charging circuit is configured to receive a first modulated signal sent by the electronic device and demodulate the first modulated signal. When the demodulation result includes a first current, the first modulated response signal is sent to the electronic device, where the first current is used to identify that the electronic device has initiated communication with the charging device. Alternatively, the first charging circuit is configured to send a second modulated signal to the electronic device, receive a second modulated response signal sent by the electronic device, and demodulate the second modulated response signal, where the second modulated signal includes a first voltage, where the first voltage is used to disconnect the second charging circuit of the electronic device from the second battery.

[0504] The embodiment of the present application also provides another chip, which is applied to the electronic device provided in the above embodiment, and is described in detail below with reference to the accompanying drawings.

[0505] See also Figure 24 , which is a schematic diagram of another chip provided in an embodiment of the present application.

[0506] The second charging circuit is integrated into a chip, and the chip includes an input port Input2 and an output port Output2.

[0507] The input port Input2 is a first end of the second charging circuit connected to the power receiving terminal.

[0508] The output port Input2 is a second end of the second charging circuit connected to the second battery for charging the second battery.

[0509] The second charging circuit is used to disconnect the second battery, send a first modulated signal to the charging device, receive a first modulated response signal sent by the charging device, and demodulate the first modulated response signal, where the first modulated signal includes a first current, and the first current is used to identify that the electronic device has initiated communication with the charging device; or receive a second modulated signal sent by the charging device and demodulate the second modulated signal. When the demodulation result includes the first voltage, the second charging circuit disconnects the second battery and sends a second modulated response signal to the charging device.

[0510] Furthermore, the chip 2400 also includes an interface for communicating with the I / O interface of the second controller 201, an interface for communicating with the IIC interface of the second controller 201, an interface for communicating with the UART interface of the second controller 201, and an interface for powering the second controller.

[0511] The first controller and the second controller in the above embodiments of the present application may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), a digital signal processor (DSP), or a combination thereof. The above-mentioned PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof, and are not specifically limited in the embodiments of the present application.

[0512] It should be understood that in this application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0513] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. The device embodiments described above are merely illustrative, wherein the units and modules described as separate components may or may not be physically separated. In addition, some or all of the units and modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art can understand and implement it without paying any creative work.

[0514] The above is only a specific implementation method of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A charging device, characterized in that: The charging device is used to charge the electronic device, and the charging device includes: a first DC / DC circuit, a first charging circuit, a first battery and a charging terminal; The first DC / DC circuit is configured to charge the first battery using input direct current and output direct current to an input terminal of the first charging circuit; The output end of the first charging circuit is connected to the charging terminal; The first charging circuit is configured to receive a first modulated signal sent by the electronic device and send a first modulated response signal to the electronic device, the first modulated signal carrying a first current, the first current being used to identify that the electronic device has initiated communication with the charging device; send a second modulated signal to the electronic device and receive a second modulated response signal sent by the electronic device, the second modulated signal carrying a first voltage, the first voltage being used to disconnect the second charging circuit of the electronic device from the second battery.

2. The charging device according to claim 1, characterized in that The first modulation signal and the second modulation response signal are current modulation signals, and the first modulation response signal and the second modulation signal are voltage modulation signals.

3. The charging device according to claim 1 or 2, characterized in that: The first voltage is less than a first trigger voltage of a first protection circuit of the electronic device; The first protection circuit is used to control the second charging circuit to be disconnected from the second battery when the charging voltage output by the second charging circuit to the second battery is lower than the first trigger voltage.

4. The charging device according to claim 1 or 2, characterized in that: The first voltage is greater than or equal to a second trigger voltage of a second protection circuit of the electronic device; The second protection circuit is configured to control the second charging circuit to be disconnected from the second battery when the charging voltage output by the second charging circuit to the second battery is greater than or equal to the second trigger voltage.

5. The charging device according to any one of claims 1 to 2, characterized in that: The first charging circuit specifically includes: a first state machine and a first modulation and demodulation circuit; The first modulation and demodulation circuit is connected to the first state machine; The first modulation and demodulation circuit is used to demodulate the acquired modulated signal and send the demodulation result to the first state machine; The first state machine is configured to control the first modulation and demodulation circuit to modulate the output voltage of the first charging circuit to form the first modulation response signal when it is determined that the electronic device is connected according to the demodulation result corresponding to the first modulation signal.

6. The charging device according to claim 5, characterized in that The demodulation result also includes a first characteristic character string; The first charging circuit is specifically configured to, when the first characteristic string is a first preset characteristic string, determine that a result of the presence identification of the electronic device is presence, and send a first modulated response signal carrying the presence identification result to the electronic device, wherein a demodulation result of the first modulated response signal includes a second characteristic string.

7. The charging device according to claim 5, characterized in that The first state machine is configured to, when the first modulation and demodulation circuit fails to demodulate, or when the electronic device is identified based on the demodulation result corresponding to the first modulation signal, control the first modulation and demodulation circuit to modulate the output voltage of the first charging circuit to form the first modulation response signal when the result of the identification is that the electronic device matches the charging device; and when the result of the identification is that the electronic device does not match the charging device, control the first modulation and demodulation circuit to stop modulating the output voltage of the first charging circuit.

8. The charging device according to claim 6, characterized in that The charging device further includes a first controller; The first communication interface of the first controller is connected to the first state machine; The first state machine is further configured to send a first interrupt signal to the first communication interface of the first controller if it is determined that the electronic device is in place, where the first interrupt signal is used to indicate that the electronic device is in place.

9. The charging device according to claim 5, characterized in that The first state machine is further configured to determine that the electronic device is normally connected to the charging device if it is determined according to the demodulation result that the electronic device sends a preset pulse signal to the charging device.

10. The charging device according to claim 8, characterized in that The first charging circuit includes a second DC / DC circuit; The first state machine is further configured to maintain the current working state of the second DC / DC circuit and send a fifth interrupt signal to the first controller when it is determined that the electronic device sends a preset pulse signal to the charging device. The fifth interrupt signal is configured to indicate that the electronic device is currently in a fully charged state or a trickle charging state.

11. The charging device according to claim 1, wherein: The second modulated signal and the first modulated response signal also include output parameters of the charging device; The output parameters include at least one of the following: Output current or output voltage.

12. An electronic device, characterized in that: The electronic device comprises: a second charging circuit, a second battery and a power receiving terminal; The power receiving terminal is used to connect to the charging terminal of the charging device and receive the DC power output by the charging terminal; A first end of the second charging circuit is connected to the power receiving terminal, a second end of the second charging circuit is connected to the second battery, and a voltage output by the charging terminal is consistent with or has a preset multiple relationship with a charging voltage output by the second charging circuit to the second battery; The second charging circuit is used to control the second charging circuit to be disconnected from the second battery, send a first modulated signal to the charging device, receive a first modulated response signal sent by the charging device, and demodulate the first modulated response signal, where the first modulated signal carries a first current, and the first current is used to identify that the electronic device has initiated communication with the charging device; or receive a second modulated signal sent by the charging device and demodulate the second modulated signal. When the demodulation result includes a first voltage, the second charging circuit is disconnected from the second battery and a second modulated response signal is sent to the charging device.

13. The electronic device according to claim 12, wherein: The first modulation signal and the second modulation response signal are current modulation signals, and the first modulation response signal and the second modulation signal are voltage modulation signals.

14. The electronic device according to claim 13, wherein: The electronic device further includes: a first protection circuit; The first protection circuit is configured to control the second charging circuit to disconnect from the second battery when the charging voltage output by the second charging circuit to the second battery is lower than a first trigger voltage of the first protection circuit; The first voltage is less than the first trigger voltage.

15. The electronic device according to claim 13, wherein: The electronic device further includes: a second protection circuit; The second protection circuit is configured to control the second charging circuit to be disconnected from the second battery when the charging voltage output by the second charging circuit to the second battery is greater than or equal to a second trigger voltage of the second protection circuit; The first voltage is greater than or equal to the second trigger voltage.

16. The electronic device according to any one of claims 12 to 15, characterized in that: The second charging circuit specifically includes: a second state machine and a second modulation and demodulation circuit; The second state machine is connected to the second modulation and demodulation circuit; The second modulation and demodulation circuit is used to demodulate the acquired modulated signal and send the demodulation result to the second state machine; The second state machine is used to control the second modulation and demodulation circuit to modulate the input current of the second charging circuit to form the first modulation signal, where the first modulation signal carries a first characteristic character string, and to determine whether the electronic device is connected to the charging device based on a demodulation result corresponding to the first modulation response signal.

17. The electronic device according to claim 16, wherein: The demodulation result also includes a second characteristic character string; The second charging circuit is specifically configured to determine that the electronic device is connected to the charging device when the second characteristic character string is a second preset characteristic character string.

18. The electronic device according to claim 16, wherein: The second charging circuit is configured to determine that the electronic device is not compatible with the charging device when the first modulated response signal is not received.

19. The electronic device according to claim 16, wherein: The electronic device further includes a second controller; The first communication interface of the second controller is connected to the second state machine; The second state machine is further configured to send a third interrupt signal to the first communication interface of the second controller if it is determined that the electronic device is connected to the charging device, wherein the third interrupt signal is used to indicate that the electronic device is connected to the charging device.

20. The electronic device according to claim 19, wherein The electronic device further includes a second comparator; the second comparator is configured to compare the input voltage of the second charging circuit with a preset voltage, and send an obtained second comparison result to the second state machine; The second state machine is further configured to, when it is determined according to the second comparison result that the input voltage is less than the preset voltage, control the second modulation and demodulation circuit to send a current detection signal to the power receiving terminal; and when the voltage at the power receiving terminal exceeds a preset threshold voltage within a preset time, send a fourth interrupt signal to the second controller, wherein the fourth interrupt signal is used to instruct the second controller to disconnect the electronic device from the charging device.

21. The electronic device according to claim 20, characterized in that The second state machine is also used to control the second modulation and demodulation circuit to modulate the input current of the second charging circuit to form a preset pulse signal when the electronic device is in a fully charged state or a trickle charging state, and send the preset pulse signal to the charging device.

22. The electronic device according to claim 12, wherein: The first modulated signal and the second modulated response signal also include charging parameters of the electronic device; The charging parameters include at least one of the following: a charging current corresponding to the second battery, a charging voltage corresponding to the second battery, or a voltage of the second battery.

23. A charging system, characterized in that: The charging system includes a charging device and an electronic device, wherein the charging device is used to charge the electronic device; the charging device includes a first DC / DC circuit, a first charging circuit, a first battery, and a charging terminal; the first DC / DC circuit is used to charge the first battery using input direct current and output direct current to the input terminal of the first charging circuit; The output end of the first charging circuit is connected to the charging terminal; The electronic device includes: a second charging circuit, a second battery, and a power receiving terminal; the power receiving terminal is configured to connect to a charging terminal of a charging device and receive direct current outputted by the charging terminal; a first end of the second charging circuit is connected to the power receiving terminal, a second end of the second charging circuit is connected to the second battery, and a voltage outputted by the charging terminal is consistent with or has a predetermined multiple relationship with a charging voltage outputted by the second charging circuit to the second battery; The second charging circuit is configured to disconnect the second charging circuit from the second battery, send a first modulated signal to the charging device, receive a first modulated response signal sent by the charging device, and demodulate the first modulated response signal, wherein the first modulated signal carries a first current, and the first current is used to indicate that the electronic device has initiated communication with the charging device; or receive a second modulated signal sent by the charging device and demodulate the second modulated signal, and when the demodulated result of the second modulated signal includes a first voltage, disconnect the second battery and send a second modulated response signal to the charging device; The first charging circuit is configured to receive a first modulated signal sent by an electronic device, demodulate the first modulated signal, and, when the demodulation result includes a first current, send a first modulated response signal to the electronic device; or send a second modulated signal to the electronic device, receive a second modulated response signal sent by the electronic device, and demodulate the second modulated response signal, wherein the second modulated signal includes a first voltage, and the first voltage is used to disconnect the second charging circuit of the electronic device from the second battery.

24. A communication method, characterized in that: Applicable to a charging device, the charging device comprising a first DC / DC circuit, a first charging circuit, a first battery, and a charging terminal; the first DC / DC circuit is configured to charge the first battery using input direct current and output direct current to an input terminal of the first charging circuit; The output end of the first charging circuit is connected to the charging terminal; The communication method comprises: The first charging circuit receives a first modulated signal sent by the electronic device and demodulates the first modulated signal; when the demodulation result includes a first current, sends a first modulated response signal to the electronic device, where the first current is used to indicate that the electronic device has initiated communication with the charging device; or, the first charging circuit sends a second modulated signal to the electronic device, where the second modulated signal carries a first voltage, where the first voltage is used to disconnect the second charging circuit of the electronic device from the second battery; The first charging circuit receives a second modulated response signal sent by the electronic device and demodulates the second modulated response signal.

25. A communication method, characterized in that: Applicable to an electronic device, the electronic device comprising a second charging circuit, a second battery, and a power receiving terminal; the power receiving terminal is configured to connect to a charging terminal of a charging device and receive a voltage output by the charging terminal; a first end of the second charging circuit is connected to the power receiving terminal, a second end of the second charging circuit is connected to the second battery, and a voltage output by the charging terminal is consistent with or has a preset multiple relationship with a charging voltage output by the second charging circuit to the second battery; The communication method comprises: disconnecting the second charging circuit from the second battery; The second charging circuit sends a first modulated signal to the charging device, wherein the first modulated signal carries a first current, and the first current is used to indicate that the electronic device has initiated communication with the charging device; the second charging circuit receives a first modulated response signal sent by the charging device and demodulates the first modulated response signal; or The second charging circuit receives a second modulated signal sent by the charging device and demodulates the second modulated signal. When the demodulation result includes the first voltage, the second charging circuit is disconnected from the second battery and a second modulated response signal is sent to the charging device.

26. A chip, characterized in that: The chip is integrated with a first charging circuit, and the chip includes: an input port and an output port; The input port is an input end of the first charging circuit, and is used to connect to an output end of the first DC / DC circuit of the charging device; The output port is an output end of the first charging circuit, and is used to connect to a charging terminal; The first charging circuit is configured to receive a first modulated signal sent by an electronic device and demodulate the first modulated signal. When the demodulation result includes a first current, the first modulated response signal is sent to the electronic device, where the first current is used to identify that the electronic device has initiated communication with the charging device. Alternatively, the first charging circuit is configured to send a second modulated signal to the electronic device, receive a second modulated response signal sent by the electronic device, and demodulate the second modulated response signal, where the second modulated signal includes a first voltage, where the first voltage is used to disconnect the second charging circuit of the electronic device from the second battery.

27. A chip, characterized in that: The chip is integrated with a second charging circuit, and the chip includes: an input port and an output port; The input port is a first end of the second charging circuit, and is used to connect to a power receiving terminal; The output port is a second end of the second charging circuit, and is used to connect to a second battery of the electronic device; The second charging circuit is configured to disconnect the second charging circuit from the second battery, send a first modulated signal to the charging device, receive a first modulated response signal sent by the charging device, and demodulate the first modulated response signal, wherein the first modulated signal carries a first current, and the first current is used to identify that the electronic device has initiated communication with the charging device; or receive a second modulated signal sent by the charging device and demodulate the second modulated signal. When the demodulation result includes a first voltage, the second charging circuit disconnects the second battery and sends a second modulated response signal to the charging device.

Citation Information

Patent Citations

  • Charging box and earphone communication method, charging box, earphone and storage medium

    CN111757206A

  • Charging device, electronic equipment, charging system and charging method

    CN113991762A