Protocol voltage threshold adjusting method

By detecting the voltage at the CC terminal after the power supply device is connected to the charging device, detecting the voltage at the CC terminal using the data transmission gap, adjusting the voltage threshold to correct the ground voltage deviation, the problem of communication information errors during the charging process of the power supply device and the charging device is solved, and higher detection accuracy and circuit simplification are achieved.

CN120454260APending Publication Date: 2025-08-08SHENZHEN FM ELECTRONICS GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510645416.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-19
Publication Date
2025-08-08

AI Technical Summary

Technical Problem

In the charging process of power supply equipment and charging equipment, there is a problem that the ground voltage deviation ΔV caused by current leads to errors in communication information, low detection accuracy and high circuit complexity.

Method used

By detecting the first voltage at the CC terminal after the power supply device is connected to the charging device, the second voltage at the CC terminal is detected using the data transmission gap, the transmission voltage threshold and/or the reception voltage threshold are adjusted to correct the ground voltage deviation and simplify the circuit structure.

Benefits of technology

It improves the accuracy of voltage difference detection between power supply equipment and charging equipment, simplifies circuit complexity, and reduces the need for multiple detections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120454260A_ABST
    Figure CN120454260A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a protocol voltage threshold adjustment method, which is applied to power supply equipment and comprises the following steps: detecting a first voltage of a CC end after being connected with charging equipment and electrified, and connecting the power supply equipment with the charging equipment through a cable; detecting a second voltage of the CC end in a data transmission gap with the charging equipment; and adjusting a sending voltage threshold and / or a receiving voltage threshold according to the first voltage and the second voltage. Through the implementation of the embodiment, the characteristic that the first voltage is detected after the power supply equipment and the charging equipment are connected and powered on is utilized, the second voltage of the CC end is specially detected in the gap of data transmission between the power supply equipment and the charging equipment, and then the sending voltage threshold value and / or the receiving voltage threshold value are / is adjusted based on the first voltage and the second voltage. Therefore, the finally detected voltage difference between the GND of the power supply equipment and the GND of the charging equipment is more accurate, multiple times of detection before adjustment is not needed, and the circuit complexity is low.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of integrated circuits, and in particular to a protocol voltage threshold adjustment method. Background Art

[0002] Currently, when a power supply device and a charging device charge, a current is generated, flowing through the wire connecting the two devices. According to Ohm's law, the longer the wire, the greater its resistance. According to the formula V = I × R, when the current and resistance are sufficiently high, a voltage is generated on the wire. This voltage causes a deviation ΔV between the grounds of the power supply device and the charging device, which can lead to communication errors between the two devices. To address this problem, a signal recognition method exists in the prior art. This method uses the product of the ground impedance and the charging current as the threshold voltage adjustment value. The difference between the preset initial value of the terminal's signal recognition threshold voltage and the threshold voltage adjustment value is then used as the first threshold voltage. This method detects communication signals from the charging device. Another prior art data decoding circuit also uses a continuous voltage detection under low-level signals as the basis for adjusting the threshold voltage. While these two methods can detect the deviation ΔV, they suffer from low detection accuracy and high circuit complexity. Summary of the Invention

[0003] The purpose of the embodiment of the present invention is to provide a method for adjusting the protocol voltage threshold to solve the above problem. The embodiment of the present invention achieves the above purpose through the following technical solutions.

[0004] An embodiment of the present invention provides a protocol voltage threshold adjustment method, which is applied to a power supply device, including: detecting a first voltage at a CC terminal after being connected to a charging device and powered on, the power supply device and the charging device being connected via a cable; detecting a second voltage at the CC terminal during a data transmission gap with the charging device; and adjusting a sending voltage threshold and / or a receiving voltage threshold based on the first voltage and the second voltage.

[0005] In some embodiments, multiple groups of first comparators are provided, and the first voltage is determined according to flipping conditions of the multiple groups of first comparators.

[0006] In some embodiments, multiple groups of second comparators are provided, and the second voltage is determined according to flipping conditions of the multiple groups of second comparators.

[0007] In some embodiments, adjusting the sending voltage threshold and / or receiving voltage threshold according to the first voltage and the second voltage includes: determining a voltage difference according to the first voltage and the second voltage; generating a threshold adjustment signal according to the voltage difference; and adjusting the sending voltage threshold and / or receiving voltage threshold through the threshold adjustment signal.

[0008] In some embodiments, the threshold adjustment signal is generated based on the difference interval in which the voltage difference falls.

[0009] In some embodiments, adjusting the sending voltage threshold and / or receiving voltage threshold according to the first voltage and the second voltage includes: if the second voltage is greater than the first voltage, then synchronously increasing the sending voltage threshold and / or receiving voltage threshold; if the second voltage is less than the first voltage, then synchronously decreasing the sending voltage threshold and / or receiving voltage threshold.

[0010] In some embodiments, the first voltage is the voltage of the CC terminal of the power supply device in a locked state after the CC terminal of the power supply device is connected to the CC terminal of the charging device.

[0011] In some embodiments, after adjusting the sending voltage threshold and / or the receiving voltage threshold according to the first voltage and the second voltage, it includes: detecting a third voltage at the CC end during another gap in data transmission with the charging device, wherein the charging current of the power supply device when the third voltage is detected is different from the charging current of the power supply device when the second voltage is detected; adjusting the sending voltage threshold and / or the receiving voltage threshold according to the first voltage and the third voltage.

[0012] In some embodiments, after adjusting the sending voltage threshold and / or the receiving voltage threshold according to the first voltage and the second voltage, it includes: detecting a fourth voltage at the CC end during another gap in data transmission with the charging device, wherein the charging current of the power supply device when detecting the fourth voltage is different from the charging current of the power supply device when detecting the second voltage; adjusting the sending voltage threshold and / or the receiving voltage threshold according to the second voltage and the fourth voltage.

[0013] In some embodiments, the sending voltage threshold is used to guide the sending of high and low level data to the charging device, and the receiving voltage threshold is used to guide the decoding of the high and low level data sent by the charging device.

[0014] Compared with the prior art, the implementation of the protocol voltage threshold adjustment method provided in this embodiment utilizes the characteristic that a locking voltage is generated after the power supply device and the charging device are connected and powered on. After power-on, a first voltage at the CC terminal of the power supply device is detected. Utilizing the fact that when the GND of the power supply device and the GND of the charging device are inconsistent, the voltage at the CC terminal of the power supply device will float compared to the first voltage, and there is no voltage signal fluctuation at the CC terminal during data transmission intervals, a second voltage at the CC terminal is specifically detected during data transmission intervals between the power supply device and the charging device. The sending voltage threshold and / or the receiving voltage threshold are then adjusted based on the first and second voltages. This makes the voltage difference between the GND of the power supply device and the GND of the charging device ultimately detected more accurate, without the need to specifically detect the voltage in a low-level state where a voltage deviation actually exists for compensation and correction. Furthermore, multiple detections are not required before adjustment, and the circuit complexity is reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0016] Figure 1 This is a schematic diagram of an application scenario of the protocol voltage threshold adjustment method provided in this embodiment;

[0017] Figure 2 1 is a flow chart of a protocol voltage threshold adjustment method provided in this embodiment;

[0018] Figure 3 is another flowchart of the protocol voltage threshold adjustment method provided in this embodiment;

[0019] Figure 4 is another flowchart of the protocol voltage threshold adjustment method provided in this embodiment;

[0020] Figure 5 This is another flowchart of the protocol voltage threshold adjustment method provided in this embodiment. DETAILED DESCRIPTION

[0021] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.

[0022] The "coupling" or "connection" in the present invention includes both direct connection and indirect connection, such as connection through some active devices, passive devices or electrically conductive media; it may also include connection through other active devices or passive devices on the basis of achieving the same or similar functional purposes as is well known to those skilled in the art, such as connection through circuits or components such as switches and follower circuits.

[0023] See also Figure 2 An embodiment of the present invention provides a protocol voltage threshold adjustment method, which is applied to a power supply device. The protocol voltage threshold adjustment method includes the following steps S11 to S13.

[0024] Step S11: After connecting to the charging device and powering on, detecting a first voltage at the CC terminal, wherein the power supply device and the charging device are connected via a cable.

[0025] The protocol voltage threshold adjustment method provided in this embodiment can be applied to Figure 1 The application scenario shown. When the power supply device is not connected to the charging device, the power supply device provides a voltage level to the CC terminal on the power supply device side, and the charging device provides a pull-down resistor on the CC terminal on the charging device side. When the power supply device is connected to the charging device, the CC terminal on the power supply device side is reduced to a locking voltage due to the pull-down resistor on the charging device side. This locking voltage is the first voltage. In other words, the first voltage can be the voltage at the CC terminal of the power supply device in the locked state after the CC terminal of the power supply device is connected to the CC terminal of the charging device.

[0026] In this embodiment, the voltage at the CC terminal can be detected immediately after the power supply device and the charging device are connected and powered on, and this voltage can be used as the first voltage. The VBUS-GND loop between the power supply device and the charging device can be in a closed loop state. In this case, the current output by the power supply device through the VBUS terminal should be extremely small or negligible. In other words, in this embodiment, the first voltage detected at the CC terminal after the power supply device and the charging device are connected and powered on is not affected by the voltage difference ΔV between the ground of the power supply device and the charging device.

[0027] Step S12: Detecting a second voltage at the CC terminal during a gap in data transmission with the charging device.

[0028] In this embodiment, the gap between data transmission between the power supply device and the charging device can be a signal-free transmission phase between any two data packets. During the gap in data transmission, the VBUS-GND loop formed between the power supply device and the charging device will generate a current, the magnitude of which is close to the current during the charging process. Specifically, the cable between the CC ends is only used for communication to transmit protocol signals, and the VBUS-GND loop between the power supply device and the charging device is responsible for power supply. The voltage reference of the CC end of the communication signal between the power supply device and the charging device is based on their respective GNDs. If the cable between the power supply device and the charging device is long or the charging current output by the power supply device is large, the GND ends of the power supply device and the charging device will generate a voltage difference ΔV due to the VBUS-GND loop current, which will indirectly cause the actual voltage on the CC line to be raised or lowered as a whole.

[0029] Step S13: adjusting the sending voltage threshold and / or the receiving voltage threshold according to the first voltage and the second voltage.

[0030] In this embodiment, as described in the above step S12, when the cable between the power supply device and the charging device is long or the charging current output by the power supply device is large, the actual GND of the power supply device and the charging device may be different. In the gap between the data transmission between the power supply device and the charging device, the second voltage at the CC terminal of the power supply device is detected. If the second voltage changes compared with the first voltage in the above step S11, it indicates that a deviation occurs between the grounds of the power supply device and the charging device.

[0031] In this embodiment, a voltage difference between the second voltage and the first voltage can be obtained, and the sending voltage threshold and / or the receiving voltage threshold can be adjusted based on the voltage difference. The voltage difference represents the difference between the GND of the power supply device and the GND of the charging device.

[0032] For example, if the GND of the power supply device is 0.8V higher than the GND of the charging device, and the threshold for the power supply device's transmitter to output a high level is 3V, the actual output level of the power supply device's transmitter is 3.1V, while the actual level detected by the charging device's receiver is 2.3V, and if the threshold for the charging device's receiver to determine a logical high level is 2.5V, then the level detected by the charging device is inconsistent with the level sent by the power supply device. Therefore, when a voltage difference ΔV is detected between the second voltage and the first voltage, the power supply device's transmission voltage threshold can be increased accordingly based on this voltage difference ΔV.

[0033] If the GND of the power supply device is 0.8V higher than the GND of the charging device, and the threshold for the charging device's transmitter to output a high level is 3V, and the actual output level of the charging device's transmitter is 2.3V, while the actual level detected by the power supply device's receiver is 3.1V, and the threshold for the power supply device's receiver to determine a logical high level is 2.5V, then the level detected by the power supply device is inconsistent with the level sent by the charging device. Therefore, when a voltage difference ΔV is detected between the second voltage and the first voltage, the power supply device's receiving voltage threshold can be increased accordingly based on this voltage difference ΔV.

[0034] If the GND of the power supply device is 0.8V lower than the GND of the charging device, and the threshold for the power supply device's transmitter to output a high level is 2V, and the actual output level of the power supply device's transmitter is 2.3V, while the actual level detected by the charging device's receiver is 1.5V, if the threshold for the charging device's receiver to determine a logical high level is 2V, then the level detected by the charging device is inconsistent with the level sent by the power supply device. Therefore, when a voltage difference ΔV is detected between the second voltage and the first voltage, the power supply device's transmission voltage threshold can be adjusted downward based on this voltage difference ΔV.

[0035] If the GND of the power supply device is 0.8V lower than the GND of the charging device, and the threshold for the charging device's transmitter to send a high voltage is 2V, the actual voltage level output by the charger's transmitter is 1.9V, while the actual voltage level detected by the power supply device's receiver is 2.7V, and the threshold for the power supply device's receiver to determine a logical high voltage is 2.5V, then the voltage level detected by the power supply device is inconsistent with the voltage level sent by the charging device. Therefore, when a voltage difference ΔV is detected between the second voltage and the first voltage, the power supply device's receiving voltage threshold can be adjusted downward based on this voltage difference ΔV.

[0036] In this embodiment, by implementing the protocol voltage threshold adjustment method provided in this embodiment, the characteristic of generating a locking voltage after the power supply device and the charging device are connected and powered on is utilized. After power-on, a first voltage at the CC terminal of the power supply device is detected. Utilizing the fact that when the GND of the power supply device and the GND of the charging device are inconsistent, the voltage at the CC terminal of the power supply device will float compared to the first voltage, and there is no voltage signal fluctuation at the CC terminal during data transmission intervals, a second voltage at the CC terminal is specifically detected during data transmission intervals between the power supply device and the charging device. The sending voltage threshold and / or the receiving voltage threshold are then adjusted based on the first voltage and the second voltage. This makes the voltage difference between the GND of the power supply device and the GND of the charging device ultimately detected more accurate, without the need to specifically detect the voltage in a low-level state where a voltage deviation actually exists for compensation and correction. Furthermore, multiple detections are not required before adjustment, and the circuit complexity is relatively low.

[0037] In some embodiments, if the sending voltage threshold needs to be adjusted, the greater the voltage difference, the greater the adjustment range of the sending voltage threshold and / or the receiving voltage threshold can be.

[0038] In some embodiments, adjusting the sending voltage threshold and / or receiving voltage threshold according to the first voltage and the second voltage includes: if the second voltage is greater than the first voltage, then synchronously increasing the sending voltage threshold and / or receiving voltage threshold; if the second voltage is less than the first voltage, then synchronously decreasing the sending voltage threshold and / or receiving voltage threshold.

[0039] For example, if the GND of the power supply device is 0.8V higher than the GND of the charging device, and the threshold for the power supply device's transmitter to output a high level is 3V, the actual output level of the power supply device's transmitter is 3.1V, while the actual level detected by the charging device's receiver is 2.3V, and if the threshold for the charging device's receiver to determine a logical high level is 2.5V, then the level detected by the charging device is inconsistent with the level sent by the power supply device. Therefore, when a voltage difference ΔV is detected between the second voltage and the first voltage, the power supply device's transmission voltage threshold can be increased accordingly based on this voltage difference ΔV.

[0040] If the GND of the power supply device is 0.8V higher than the GND of the charging device, and the threshold for the charging device's transmitter to output a high level is 3V, and the actual output level of the charging device's transmitter is 2.3V, while the actual level detected by the power supply device's receiver is 3.1V, and the threshold for the power supply device's receiver to determine a logical high level is 2.5V, then the level detected by the power supply device is inconsistent with the level sent by the charging device. Therefore, when a voltage difference ΔV is detected between the second voltage and the first voltage, the power supply device's receiving voltage threshold can be increased accordingly based on this voltage difference ΔV.

[0041] If the GND of the power supply device is 0.8V lower than the GND of the charging device, and the threshold for the power supply device's transmitter to output a high level is 2V, and the actual output level of the power supply device's transmitter is 2.3V, while the actual level detected by the charging device's receiver is 1.5V, if the threshold for the charging device's receiver to determine a logical high level is 2V, then the level detected by the charging device is inconsistent with the level sent by the power supply device. Therefore, when a voltage difference ΔV is detected between the second voltage and the first voltage, the power supply device's transmission voltage threshold can be adjusted downward based on this voltage difference ΔV.

[0042] If the GND of the power supply device is 0.8V lower than the GND of the charging device, and the threshold for the charging device's transmitter to send a high voltage is 2V, the actual voltage level output by the charger's transmitter is 1.9V, while the actual voltage level detected by the power supply device's receiver is 2.7V, and the threshold for the power supply device's receiver to determine a logical high voltage is 2.5V, then the voltage level detected by the power supply device is inconsistent with the voltage level sent by the charging device. Therefore, when a voltage difference ΔV is detected between the second voltage and the first voltage, the power supply device's receiving voltage threshold can be adjusted downward based on this voltage difference ΔV.

[0043] In some embodiments, before step S12, the protocol voltage threshold adjustment method provided in this embodiment may further include: the power supply device and the charging device completing communication, and the power supply device sending a signal to the charging device indicating that the power supply device is ready to supply power. Specifically, the power supply device and the charging device complete the following process via the CC: the power supply device broadcasts power → the charging device requests a power level in the broadcast → the power supply device receives the request and indicates receipt → the power supply device prepares the voltage → the power supply device sends a message indicating that the power supply device is ready to supply power.

[0044] In some embodiments, a voltage detection circuit may be provided to specifically detect the CC terminal of the power supply device to obtain a first voltage and a second voltage.

[0045] In some embodiments, multiple groups of first comparators may be provided, and the first voltage may be determined according to flipping conditions of the multiple groups of first comparators.

[0046] In this embodiment, a different first threshold voltage may be configured for each first comparator, and the first voltage may be determined based on a flipping condition of each first comparator.

[0047] In some embodiments, multiple groups of second comparators are provided, and the second voltage is determined according to flipping conditions of the multiple groups of second comparators.

[0048] In this embodiment, a different second threshold voltage may be configured for each second comparator, and the second voltage may be determined based on a flipping condition of each second comparator.

[0049] It should be noted that by configuring multiple groups of first comparators and multiple groups of second comparators, the first voltage and the second voltage can be quickly acquired.

[0050] In some embodiments, multiple groups of first comparators can reuse the functions of multiple groups of second comparators. Specifically, after obtaining the first voltage, the reference voltage of each group of first comparators can be converted to the voltage required by the multiple groups of second comparators without the need to provide multiple groups of second comparators. Only the voltage level of the reference voltage terminal connected to the first comparators needs to be changed.

[0051] In some embodiments, as Figure 3 As shown, the above step S13 may include the following steps S131 to S133.

[0052] Step S131: determining a voltage difference according to the first voltage and the second voltage.

[0053] Step S132: Generate a threshold adjustment signal according to the voltage difference.

[0054] In this embodiment, a mapping relationship between the voltage difference and the threshold adjustment signal may be preset. When a certain voltage difference is detected, the threshold adjustment signal may be generated according to the mapping relationship.

[0055] Step S133: adjusting the sending voltage threshold and / or the receiving voltage threshold through a threshold adjustment signal.

[0056] In this embodiment, the threshold adjustment signal can represent the voltage difference between the first voltage and the second voltage. When the sending voltage threshold needs to be adjusted, the voltage difference can be increased on the basis of the original sending voltage threshold, so that the subsequent signal sent by the power supply device to the charging device can be accurately decoded by the charging device; when the receiving voltage threshold needs to be adjusted, the voltage difference can be adjusted down on the basis of the original receiving voltage threshold, so that the subsequent signal sent by the charging device to the power supply device can be accurately decoded by the power supply device.

[0057] In some embodiments, a threshold adjustment signal is generated based on the difference interval that the voltage difference is in. In this case, the transmit voltage threshold and / or receive voltage threshold can be adjusted based on the difference interval that the voltage difference is in, without having to adjust the transmit voltage threshold and / or receive voltage threshold by the same amount as the voltage difference. This ensures, to a certain extent, the accuracy of level signal decoding during data transmission between the power supply device and the charging device, while also improving the speed of adjusting the transmit voltage threshold and / or receive voltage threshold.

[0058] In some embodiments, as Figure 4 As shown, after the above step S13, the protocol voltage threshold adjustment method provided in this embodiment may include the following steps S14 to S15.

[0059] Step S14: detecting a third voltage at the CC terminal during another gap in data transmission with the charging device, wherein the charging current of the power supply device when detecting the third voltage is different from the charging current of the power supply device when detecting the second voltage.

[0060] Step S15: adjusting the sending voltage threshold and / or the receiving voltage threshold according to the first voltage and the third voltage.

[0061] In this embodiment, by detecting the third voltage at the CC end during another gap in data transmission with the charging device, the sending voltage threshold and / or the receiving voltage threshold can be adjusted again when the VBUS-GND loop current between the power supply device and the charging device changes, so as to adapt to the situation of different charging currents between the power supply device and the charging device, and there is no need to detect the first voltage again, so that the protocol voltage threshold adjustment method provided in this embodiment is particularly suitable for the scenario where the current size of the VBUS-GND loop between the power supply device and the charging device changes frequently under normal charging conditions, and there is no need for frequent detection.

[0062] In some embodiments, as Figure 5 As shown, after the above step S13, the protocol voltage threshold adjustment method provided by this embodiment may further include the following steps S16 to S17.

[0063] Step S16: detecting a fourth voltage at the CC terminal during another gap in data transmission with the charging device, wherein the charging current of the power supply device when detecting the fourth voltage is different from the charging current of the power supply device when detecting the second voltage.

[0064] Step S17: adjusting the sending voltage threshold and / or the receiving voltage threshold according to the second voltage and the fourth voltage.

[0065] In this embodiment, after adjusting the sending voltage threshold and / or receiving voltage threshold based on the first voltage and the second voltage, if the VBUS-GND loop current between the power supply device and the charging device changes, the fourth voltage of the CC end can be detected again in another gap in data transmission with the charging device, and the sending voltage threshold and / or receiving voltage threshold can be adjusted again based on the second voltage and the fourth voltage, rather than adjusting the sending voltage threshold and / or receiving voltage threshold based on the first voltage and the fourth voltage, thereby reducing the amplitude of the adjustment of the sending voltage threshold and / or receiving voltage threshold this time.

[0066] In some embodiments, in the above step S17, a threshold adjustment signal can be generated based on the difference interval of the voltage difference between the second voltage and the fourth voltage. In the above step S15, a threshold adjustment signal can also be generated based on the difference interval of the voltage difference between the first voltage and the third voltage. Similarly, the sending voltage threshold and / or the receiving voltage threshold are adjusted based on the difference interval of the voltage difference, without making the adjustment amplitude of the sending voltage threshold and / or the receiving voltage threshold consistent with the voltage difference, to a certain extent, ensuring the accuracy of the level signal decoding when the power supply device and the charging device transmit data, while improving the speed of adjusting the sending voltage threshold and / or the receiving voltage threshold.

[0067] In some embodiments, the sending voltage threshold may be used to guide the sending of high and low level data to the charging device, and the receiving voltage threshold may be used to guide the decoding of high and low level data sent by the charging device.

[0068] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention, and should all be included in the scope of protection of the present invention.

Claims

1. A method for adjusting a protocol voltage threshold, characterized in that: Applied to power supply equipment, including: After being connected to a charging device and powered on, detecting a first voltage at the CC terminal, the power supply device and the charging device being connected via a cable; Detecting a second voltage at the CC terminal during a data transmission interval with the charging device; and A sending voltage threshold and / or a receiving voltage threshold is adjusted according to the first voltage and the second voltage.

2. The protocol voltage threshold adjustment method according to claim 1, characterized in that: A plurality of groups of first comparators are provided, and the first voltage is determined according to flipping conditions of the plurality of groups of first comparators.

3. The protocol voltage threshold adjustment method according to claim 2, characterized in that: A plurality of groups of second comparators are provided, and the second voltage is determined according to flipping conditions of the plurality of groups of second comparators.

4. The protocol voltage threshold adjustment method according to claim 1, wherein: The adjusting the sending voltage threshold and / or the receiving voltage threshold according to the first voltage and the second voltage includes: determining a voltage difference according to the first voltage and the second voltage; generating a threshold adjustment signal according to the voltage difference; The sending voltage threshold and / or the receiving voltage threshold are adjusted using the threshold adjustment signal.

5. The protocol voltage threshold adjustment method according to claim 4, characterized in that: The threshold adjustment signal is generated based on the difference interval in which the voltage difference falls.

6. The protocol voltage threshold adjustment method according to claim 4, characterized in that: The adjusting of the sending voltage threshold and / or receiving voltage threshold according to the first voltage and the second voltage includes: if the second voltage is greater than the first voltage, then synchronously increasing the sending voltage threshold and / or receiving voltage threshold; if the second voltage is less than the first voltage, then synchronously decreasing the sending voltage threshold and / or receiving voltage threshold.

7. The protocol voltage threshold adjustment method according to claim 1, characterized in that: The first voltage is the voltage of the CC terminal of the power supply device in a locked state after the CC terminal of the power supply device is connected to the CC terminal of the charging device.

8. The protocol voltage threshold adjustment method according to claim 1, characterized in that: After adjusting the sending voltage threshold and / or the receiving voltage threshold according to the first voltage and the second voltage, the method further includes: detecting a third voltage at the CC terminal during another gap in data transmission with the charging device, wherein a charging current of the power supply device when detecting the third voltage is different from a charging current of the power supply device when detecting the second voltage; A sending voltage threshold and / or a receiving voltage threshold is adjusted according to the first voltage and the third voltage.

9. The protocol voltage threshold adjustment method according to claim 1, characterized in that: After adjusting the sending voltage threshold and / or the receiving voltage threshold according to the first voltage and the second voltage, the method further includes: detecting a fourth voltage at the CC terminal during another gap in data transmission with the charging device, wherein a charging current of the power supply device when detecting the fourth voltage is different from a charging current of the power supply device when detecting the second voltage; A sending voltage threshold and / or a receiving voltage threshold is adjusted according to the second voltage and the fourth voltage.

10. The protocol voltage threshold adjustment method according to any one of claims 1 to 9, characterized in that: The sending voltage threshold is used to guide the sending of high and low level data to the charging device, and the receiving voltage threshold is used to guide the decoding of the high and low level data sent by the charging device.