Charging cable, power supply device, terminal equipment and communication system

By introducing a control module into the charging cable, using the original data transmission line to switch the working state, communication between the power supply device, terminal equipment and charging cable is realized, and cost problems caused by adding pins or signal lines in the prior art are solved, and efficient communication is achieved.

CN115208433BActive Publication Date: 2025-09-02GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110376689.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-08
Publication Date
2025-09-02
Estimated Expiration
2041-04-08

AI Technical Summary

Technical Problem

In the prior art, communication between the power supply device, terminal device and charging cable requires additional pins or signal lines, resulting in increased costs.

Method used

By introducing a control module into the charging cable, using the original data transmission line for communication, switching the working state based on the communication information of the power supply device or terminal equipment, achieving flexible communication between the three.

Benefits of technology

There is no need to add additional pins to power supply devices or terminal devices, and no need to add signal lines to charging cables, reducing costs while ensuring communication quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115208433B_ABST
    Figure CN115208433B_ABST
Patent Text Reader

Abstract

The embodiments of the present application disclose a charging cable, a power supply device, a terminal device, and a communication system. The charging cable includes a data interface and a first control module. The data interface is connected to the power supply device and the terminal device. The first control module includes: an interface unit for connecting to the data interface to communicate with the power supply device and the terminal device through the data interface; a control unit for switching the working state of the interface unit according to the communication information sent by the power supply device or the terminal device when the interface unit receives the communication information, wherein the working state includes a receiving state and an output state. The above-mentioned charging cable, power supply device, terminal device, and communication system meet the communication requirements between the power supply device, the terminal device, and the charging cable, and reduce costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of charging technology, and in particular to a charging cable, a power supply device, a terminal device, and a communication system. Background Art

[0002] With the rapid development of electronic technology, the charging power of terminal products is increasing. The communication between power supply devices (such as chargers and power banks) and terminal devices has gradually shifted from non-communication to communication to improve the safety of fast charging. The charging system involves the power supply device, the terminal device, and the charging cable. Communication between all three parties is required to quickly enter the normal high-power charging state.

[0003] Currently, in order to achieve communication between the power supply device, terminal device and charging cable, additional pins need to be added to the power supply device or the terminal device, or signal lines need to be added to the charging cable to achieve communication between the power supply device and the terminal device and the charging cable, which increases costs. Summary of the Invention

[0004] The embodiments of the present application disclose a charging cable, a power supply device, a terminal device, and a communication system, which meet the communication requirements between the power supply device, the terminal device, and the charging cable and reduce costs.

[0005] The embodiment of the present application discloses a charging cable, including a data interface and a first control module, wherein:

[0006] The data interface is used to connect to the power supply device and the terminal device;

[0007] The first control module includes:

[0008] an interface unit, configured to be connected to the data interface so as to communicate with the power supply device and the terminal equipment via the data interface;

[0009] a control unit, configured to, when receiving communication information sent by the power supply device or the terminal equipment through the interface unit, switch the working state of the interface unit according to the communication information;

[0010] In which, the working state includes a receiving state and an output state. When the interface unit is in the receiving state, the control unit can receive data sent by the power supply device or the terminal device through the interface unit. When the interface unit is in the output state, the control unit can send data to the power supply device or the terminal device through the interface unit.

[0011] The present application discloses a power supply device, comprising:

[0012] The first receiving pin is connected to the second transmitting pin of the terminal device through a charging cable;

[0013] A first transmitting pin, connected to a second receiving pin of the terminal device through the charging cable;

[0014] The second control module is used to switch the working state of the first transmitting pin according to the communication information sent by the terminal device when the communication information is received through the first receiving pin; wherein, the working state includes an output state, and when the first transmitting pin is in the output state, the second control module can send data to the terminal device or the charging cable through the first transmitting pin.

[0015] The present application discloses a terminal device, including:

[0016] The second receiving pin is connected to the first transmitting pin of the power supply device through a charging cable;

[0017] a second transmitting pin connected to the first receiving pin of the power supply device through the charging cable;

[0018] a third control module, configured to, upon receiving communication information sent by the power supply device through the second receiving pin, switch the working state of the second transmitting pin according to the communication information; wherein the working state includes an output state, and when the second transmitting pin is in the output state, the third control module can send data to the power supply device or the charging cable through the second transmitting pin.

[0019] The embodiment of the present application discloses a communication system, comprising the charging cable as described above, the power supply device as described above, and the terminal device as described above, wherein the power supply device and the terminal device are connected via the charging cable,

[0020] The charging cable is used to be in a state capable of receiving data sent by the power supply device or the terminal device when the power supply device and the terminal device are transmitting data, and to be in a state capable of sending data to the power supply device or the terminal device when the charging cable and the power supply device or the terminal device are transmitting data.

[0021] The present application discloses a communication method, which is applied to a charging cable, wherein the charging cable includes an interface unit, the interface unit being connected to a data interface of the charging cable to communicate with a power supply device and a terminal device through the data interface;

[0022] The method comprises:

[0023] When receiving communication information sent by the power supply device or the terminal equipment through the interface unit, switching the working state of the interface unit according to the communication information;

[0024] Among them, the working state is a receiving state and an output state. When the interface unit is in the receiving state, the interface unit can receive data sent by the power supply device or the terminal device. When the interface unit is in the output state, the interface unit can send data to the power supply device or the terminal device.

[0025] The present application discloses a communication method, which is applied to a power supply device, wherein the power supply device includes a first receiving pin and a first transmitting pin, wherein the first receiving pin is connected to a second transmitting pin of a terminal device via a charging cable, and the first transmitting pin is connected to a second receiving pin of the terminal device via the charging cable;

[0026] The method comprises:

[0027] When communication information sent by the terminal device is received through the first receiving pin, switching the working state of the first transmitting pin according to the communication information;

[0028] The working state includes an output state. When the first transmitting pin is in the output state, the first transmitting pin can send data to the terminal device or the charging cable.

[0029] An embodiment of the present application discloses a communication method, which is applied to a terminal device. The terminal device includes a second receiving pin and a second transmitting pin. The second receiving pin is connected to the first transmitting pin of the terminal device via a charging cable, and the second transmitting pin is connected to the first receiving pin of the terminal device via the charging cable. The method includes:

[0030] When receiving communication information sent by the power supply device through the second receiving pin, switching the working state of the second transmitting pin according to the communication information;

[0031] The working state includes an output state. When the second transmitting pin is in the output state, the second transmitting pin can send data to the power supply device or the charging cable.

[0032] The charging cable, power supply device, terminal device, communication system, and communication method disclosed in the embodiments of the present application are characterized in that the power supply device and the terminal device are connected via a charging cable. The charging cable includes a data interface and a first control module. The first control module includes an interface unit and a control unit. The interface unit is connected to the data interface to communicate with the power supply device and the terminal device via the data interface. When the control unit receives communication information sent by the power supply device or the terminal device via the interface unit, the control unit switches the working state of the interface unit according to the communication information. The working state includes a receiving state capable of receiving data sent by the power supply device or the terminal device, and an output state capable of sending data to the power supply device or the terminal device. The working state of the interface unit can be flexibly switched according to the communication information to meet the communication requirements between the power supply device, the terminal device, and the charging cable. There is no need to add additional pins in the power supply device or the terminal device, and there is no need to add new signal lines in the charging cable, thereby reducing costs. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0034] Figure 1 This is an application scenario diagram of a communication system in one embodiment;

[0035] Figure 2 is a structural block diagram of a communication system in one embodiment;

[0036] Figure 3 is a structural block diagram of a communication system in another embodiment;

[0037] Figure 4 is a structural block diagram of a communication system in another embodiment;

[0038] Figure 5A This is a schematic diagram of the working states of each pin in the power supply device, the terminal device, and the charging cable when the power supply device communicates with the terminal device in one embodiment;

[0039] Figure 5B This is a schematic diagram of the working states of the power supply device, the terminal device, and each pin in the charging cable when the terminal device communicates with the charging cable in one embodiment;

[0040] Figure 5CThis is a schematic diagram of the working states of the power supply device, the terminal device, and each pin in the charging cable when the power supply device communicates with the charging cable in one embodiment;

[0041] Figure 6A 1 is a circuit diagram of a push-pull output mode in one embodiment;

[0042] Figure 6B A schematic diagram of a circuit in which a resistor is connected in series to a pin in a push-pull output mode in one embodiment;

[0043] Figure 7 1 is a circuit diagram of an open-drain output mode in one embodiment;

[0044] Figure 8 Schematic diagram of a circuit in which a pin is in a non-output state in one embodiment;

[0045] Figure 9 FIG. 1 is a flow chart of a communication method in one embodiment. DETAILED DESCRIPTION

[0046] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0047] It should be noted that the terms "including," "having," and any variations thereof in the embodiments and drawings of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to the process, method, product, or apparatus.

[0048] It should be understood that the terms "first," "second," and the like used herein may be used to describe various components herein, but these components are not limited by these terms. These terms are used solely to distinguish a first component from another component. For example, a first data transmission pin may be referred to as a second data transmission pin, and similarly, a second data transmission pin may be referred to as a first data transmission pin, without departing from the scope of this application. The first data transmission pin and the second data transmission pin are both data transmission pins, but they are not the same data transmission pin.

[0049] Figure 1 FIG. 1 is an application scenario diagram of a communication system in one embodiment. Figure 1As shown, the power supply device 10 can be connected to the terminal device 20 via a charging cable 30, and output a charging voltage and charging current that meets the charging requirements to the terminal device 20, so as to charge the terminal device 20. Optionally, the power supply device 10 may include but is not limited to an adapter, a mobile power supply, etc., and the terminal device 20 may include but is not limited to a mobile phone, a tablet computer, a wearable device, a laptop computer, a PC (Personal Computer), etc. The embodiment of the present application does not specifically limit the product form of the power supply device 10 and the terminal device 20.

[0050] When the power supply device 10 is connected to the terminal device 20 via the charging cable 30, the power supply device 10, the charging cable 30, and the terminal device 20 must mutually determine whether they meet the high-power charging requirements. Only when all three meet the high-power charging requirements can they achieve rapid charging using a higher charging current. The power supply device 10, the terminal device 20, and the charging cable 30 must all be able to communicate in order to recognize each other.

[0051] In related technologies, the communication methods among the power supply device 10, the terminal device 20, and the charging cable 30 are mainly the following:

[0052] (1) The power supply device 10, the terminal device 20, and the charging cable 30 all communicate via a single-line method (such as PD2.0 / PD3.0), and additional signal lines (such as CC1 line and Vconn line, etc.) need to be added to the charging cable 30;

[0053] (2) The power supply device 10 communicates with the terminal device 20 via the D+ and / or D- data lines in the charging cable 30, but does not communicate with the charging cable 30 itself. The power supply device 10 and the terminal device 20 default to the current transmission capacity of the charging cable 30, or use other adaptive methods to evaluate the current transmission capacity of the charging cable 30, thereby determining whether the charging cable 30 meets the high-power charging requirements;

[0054] (3) The power supply device 10 communicates with the terminal device 20 through the D+ and / or D- data lines in the charging cable 30. At the same time, additional pins (such as ID pins, etc.) are added to the power supply device 10 and the terminal device 20 to communicate with the charging cable 30 and identify the charging cable 30.

[0055] If the above-mentioned communication methods need to realize communication among the power supply device 10, the terminal device 20 and the charging cable 30, additional pins need to be added to the power supply device 10 and the terminal device 20, or a signal line needs to be added to the charging cable 30, which increases the cost of the charging system.

[0056] In the charging cable, power supply device, terminal device, communication system, and communication method disclosed in the embodiments of the present application, the power supply device 10 and the terminal device 20 are connected via a charging cable 30. The charging cable 30 can flexibly switch the working state of the interface unit according to the communication information sent by the power supply device 10 or the terminal device 20 to meet the communication requirements of three different situations: the power supply device 10 and the terminal device 20, the power supply device 10 and the charging cable 30, and the terminal device 20 and the charging cable 30. There is no need to add additional pins to the power supply device 10 or the terminal device 20, and the existing data transmission line in the charging cable 30 is used for communication without adding new signal lines, thereby reducing costs.

[0057] like Figure 2 As shown, in one embodiment, a charging cable 30 is provided. The charging cable 30 may include a data interface 310 and a first control module 320. The power supply device 10 and the terminal device 20 may be connected via the charging cable 30.

[0058] The data interface 310 is used to connect to the power supply device 10 and the terminal device 20 .

[0059] The power supply device 10 and the terminal device 20 can communicate through the data interface 310. In some embodiments, the data interface 310 may include a first-type data pin and a second-type data pin. For example, the first-type data pin may be a D-pin, and the second-type data pin may be a D+ pin, or the first-type data pin may be a D+ pin, and the second-type data pin may be a D-pin, etc., but is not limited thereto.

[0060] Furthermore, the data interface 310 may include a first interface and a second interface. The first interface may be connected to the power supply device 10, and the second interface may be connected to the terminal device 20. The first interface may include at least one first-type data pin and at least one second-type data pin, and the second interface may also include at least one first-type data pin and at least one second-type data pin. A first data transmission line (e.g., a D- line) may be connected between the two first-type data pins of the first interface and the second interface, and a second data transmission line (e.g., a D+ line) may be connected between the two second-type data pins of the first interface and the second interface. The power supply device 10 and the terminal device 20 may simultaneously transmit data via the first data transmission line and the second data transmission line, or via one of the two data transmission lines.

[0061] The charging cable 30 may further include a charging line (not shown). The power supply device 10 may provide a charging voltage and a charging current to the terminal device 20 through the charging cable 30 to charge the terminal device 20 .

[0062] The first control module 320 includes an interface unit 322 and a control unit 324 .

[0063] The first control module 320 may include but is not limited to an E-mark (Electronically Marked) chip, a microcontroller, etc. The first control module 320 may be mounted on the data transmission line in the charging cable 30 and may communicate with the power supply device 10 and the terminal device 20 through the data interface 310.

[0064] Optionally, the first control module 320 may store information related to the charging cable 30. This information may be used to describe the power transmission capability, data transmission capability, and ID (identity document) information of the charging cable 30. The power transmission capability may be used to indicate the ability of the charging cable 30 to transmit power signals, such as the maximum charging current that the charging cable 30 can transmit. The data transmission capability may be used to indicate the ability of the charging cable 30 to transmit data, such as the maximum byte transmission rate that the charging cable can transmit. The ID information may be used to identify the charging cable 30.

[0065] The interface unit 322 is configured to be connected to the data interface 310 so as to communicate with the power supply device 10 and the terminal device 20 via the data interface 310 .

[0066] The control unit 324 is configured to, when receiving communication information sent by the power supply device 10 or the terminal device 20 through the interface unit 322 , switch the working state of the interface unit 322 according to the communication information.

[0067] The control unit 324 can communicate with the power supply device 10 and the terminal device 20 through the interface unit 322. When the control unit 324 receives communication information sent by the power supply device 10 or the terminal device 20 through the interface unit 322, it can parse the communication information according to the communication protocol agreed with the power supply device 10 and the terminal device 20, and switch the working state of the interface unit according to the communication information, thereby meeting the communication requirements of three different situations: the power supply device 10 and the terminal device 20, the power supply device 10 and the charging cable 30, and the terminal device 20 and the charging cable 30.

[0068] The operating state may include a receiving state and an output state. The receiving state refers to the operating state in which the interface unit 322 is able to receive data sent by the power supply device 10 or the terminal device 20. When the interface unit 322 is in the receiving state, the control unit 324 can only receive data sent by the power supply device or the terminal device through the interface unit 322, and cannot send data to the power supply device or the terminal device through the interface unit 322. The output state refers to the state in which the interface unit 322 is able to send data to the power supply device 10 or the terminal device 20. When the interface unit 322 is in the output state, the control unit 324 can send data to the power supply device 10 or the terminal device 20 through the interface unit 322, and can simultaneously receive data sent by the power supply device 10 or the terminal device 20 through the interface unit 322.

[0069] In this embodiment of the present application, when the control unit 324 of the charging cable 30 receives communication information sent by the power supply device 10 or the terminal device 20 through the interface unit 322, it switches the operating state of the interface unit 322 based on the communication information. This allows the interface unit's operating state to be flexibly switched based on the communication information sent by the power supply device 10 and the terminal device 20, thereby meeting the communication requirements of three different scenarios: between the power supply device 10 and the terminal device 20, between the power supply device 10 and the charging cable 30, and between the terminal device 20 and the charging cable 30. This eliminates the need to add additional pins to the power supply device 10 or the terminal device 20. Furthermore, the interface unit 322 communicates directly through the data interface 310, utilizing the existing data transmission lines in the charging cable 30 for communication without adding new signal lines, thereby reducing costs.

[0070] In some embodiments, the communication information may include first-type communication information, where the first-type communication information is used to indicate that the power supply apparatus 10 and the terminal device 20 need to communicate.

[0071] The control unit 324 is further configured to, when receiving the first type of communication information sent by the power supply apparatus 10 or the terminal device 20 through the interface unit 322 , switch the interface unit 322 to a receiving state according to the first type of communication information.

[0072] When data needs to be transmitted between the power supply device 10 and the terminal device 20, the interface unit 322 is switched to the receiving state, and the control unit 324 cannot send data to the power supply device 10 and the terminal device 20 through the interface unit 322, so it will not interfere with the communication between the power supply device 10 and the terminal device 20. In the receiving state, the control unit 324 can receive the communication information sent by the power supply device 10 and the terminal device 20 through the interface unit 322, so that the working state of the interface unit 322 can be switched again according to the needs of the power supply device 10 and the terminal device 20.

[0073] In some embodiments, the communication information may include second-type communication information, which may be used to indicate that the power supply apparatus 10 or the terminal device 20 needs to communicate with the charging cable 30 .

[0074] The control unit 324 is also used to switch the interface unit 322 to an output state according to the second type of communication information when the second type of communication information sent by the power supply device 10 or the terminal device 20 is received through the interface unit 322, so that the control unit 324 can transmit data with the power supply device 10 or the terminal device 20 through the interface unit 322.

[0075] Furthermore, the second type of communication information can be used to indicate that the power supply device 10 or the terminal device 20 needs to read cable parameters from the first control module 320 to identify the charging cable 30 based on the cable parameters. Optionally, the cable parameters may include one or more of, but not limited to, cable transmission current parameters, cable material, cable identification, and cable length. The cable transmission current parameters can be used to indicate the current transmission capability of the charging cable 30. Cable materials may include, but are not limited to, plastic, nylon, and copper core materials. The cable identification, i.e., the ID information of the charging cable 30, may be identification information configured before the charging cable 30 leaves the factory. It may also include the type of charging interface (not shown) of the charging cable 30, such as a Type-C interface or a USB (Universal Serial Bus) interface.

[0076] like Figure 3 As shown, in one embodiment, the interface unit 322 in the charging cable 30 may include a first data transmission pin 402 and a second data transmission pin 404. The first data transmission pin 402 may be connected to the first receiving pin 110 of the power supply device 10 and to the second transmitting pin 210 of the terminal device 20 via the data interface 310. The second data transmission pin 404 may be connected to the second receiving pin 220 of the terminal device 20 and to the first transmitting pin 120 of the power supply device 10 via the data interface 310. Optionally, the connection may be a communication connection.

[0077] As a specific embodiment, the data interface 310 in the charging cable 30 may include a first-type data pin 312 and a second-type data pin 314. The first-type data pin 312 may be connected to the first receiving pin 110 of the power supply device 10 and to the second transmitting pin 210 of the terminal device 20. The second-type data pin 314 may be connected to the first transmitting pin 120 of the power supply device 10 and to the second receiving pin 220 of the terminal device 20.

[0078] The first data transmission pin 402 can be connected to the first type of data pin 312, so that a communication connection can be established with the first receiving pin 110 of the power supply device 10 and the second transmitting pin 210 of the terminal device 20 through the first type of data pin 312. The second data transmission pin 404 can be connected to the second type of data pin 314, so that a communication connection can be established with the second receiving pin 220 of the terminal device 20 and the first transmitting pin 120 of the power supply device 10 through the second type of data pin 314.

[0079] In some embodiments, there may be two first-type data pins 312, one of which is connected to the first receive pin 110 of the power supply device 10, and the other first-type data pin 312 is connected to the second transmit pin 210 of the terminal device 20. A first data transmission line may be connected between the two first-type data pins 312. There may be two second-type data pins 314, one of which is connected to the first transmit pin 120 of the power supply device 10, and the other second-type data pin 314 is connected to the second receive pin 220 of the terminal device 20. A second data transmission line may be connected between the two second-type data pins 314. This enables data transmission between the power supply device 10 and the terminal device 20.

[0080] In the embodiment of the present application, the first data transmission pin 402 and the second data transmission pin 404 in the first control module 320 can be redefined to enable the first control module 320 to switch between multiple different working states. In some embodiments, the second type of communication information includes a first command sent by the terminal device 20 and a second command sent by the power supply device 10.

[0081] The control unit 324 is further configured to, when receiving a first command sent by the terminal device 20 through the first data transmission pin 402 , switch the second data transmission pin 404 to an output state according to the first command, so as to send data to the terminal device 20 through the second data transmission pin 404 .

[0082] When the terminal device 20 needs to communicate with the first control module 320 in the charging cable 30, it can send a first command via the second transmit pin 210. In the charging cable 30, the first data transmission pin 402, in the receiving state, can receive the first command sent by the terminal device 20 via the second transmit pin 210 via the first-type data pin 312 and transmit it to the control unit 324. Based on a predefined communication protocol, the control unit 324 determines from the first command that the terminal device 20 needs to communicate with the first control module 320. The control unit 324 then switches the second data transmission pin 404 from the receiving state to the output state and transmits data to the second receive pin 220 of the terminal device 20 via the second data transmission pin 404. At the same time, the first data transmission pin 402 can remain in the receiving state to continue receiving communication information sent by the terminal device 20 via the first data transmission pin 402.

[0083] Optionally, the data sent by the control unit 324 may include the above-mentioned cable parameters. The terminal device 20 can receive the cable parameters sent by the control unit 324 through the second receiving pin 220, so that the charging cable 30 can be identified according to the cable parameters to determine whether the charging cable 30 meets the requirements of high-power charging, and can ensure normal charging in high-power charging modes such as fast charging, thereby improving safety.

[0084] In some embodiments, as Figure 4 As shown, the power supply device 10 includes a first receiving pin 110, a first transmitting pin 120, and a second control module 130. When the second control module 130 receives a first command sent by the second transmitting pin 210 via the first receiving pin 110, the first transmitting pin 120 can be switched to a non-output state according to the first command. The non-output state is a working state in which the first transmitting pin 120 cannot output data to the terminal device 20 and the charging cable 30.

[0085] Optionally, the non-output state may include any one of a receiving state, a floating state, etc., but is not limited thereto. The receiving state is a working state in which the first transmitting pin 120 can receive data sent by the terminal device 20 or the charging cable 30, but cannot send data to the terminal device 20 and the charging cable 30. The floating state refers to a working state in which the first transmitting pin 120 can neither send data to the terminal device 20 and the charging cable 30, nor receive data sent by the terminal device 20 or the charging cable 30. In the floating state, the first transmitting pin 120 may not be connected to any circuit, and the pin is suspended.

[0086] When the second control module 130 receives the first command sent by the second transmitting pin 210 of the terminal device 20 through the first receiving pin 110, it can be determined that the terminal device 20 needs to communicate with the charging cable 30. In order not to interfere with the communication between the terminal device 20 and the charging cable 30, the first transmitting pin 120 can be switched from the output state to the non-output state, and the power supply device 10 cannot send data to the terminal device 20, thereby ensuring the communication quality between the terminal device 20 and the charging cable 30.

[0087] In some embodiments, the first type of communication information includes a third command sent by the terminal device 20. The control unit 324 is further configured to, after switching the second data transmission pin 404 to the output state according to the first command, switch the second data transmission pin 404 to the receiving state according to the third command if a third command is received from the terminal device 20 via the first data transmission pin 402 indicating that communication with the power supply apparatus 10 is required.

[0088] When the terminal device 20 needs to communicate with the power supply apparatus 10, a third command can be sent via the second transmitting pin 210. The control unit 324 in the charging cable 30 can receive the third command via the first data transmission pin 402. Based on the predefined communication protocol, the control unit 324 can determine that the terminal device 20 needs to communicate with the power supply apparatus 10. The control unit 324 can then switch the second data transmission pin 404 from an output state to a receiving state. The control unit 324 can no longer send data to the terminal device 20 via the second data transmission pin 404. This prevents interference with the data transmission between the terminal device 20 and the power supply apparatus 10, thereby ensuring the quality of communication between the terminal device 20 and the power supply apparatus 10.

[0089] When the second control module 130 of the power supply device 10 receives the third command sent by the second transmitting pin 210 of the terminal device via the first receiving pin 110, it can determine that the terminal device 20 needs to communicate with the power supply device 10, and can then switch the first transmitting pin 120 from a non-output state to an output state. When the first transmitting pin 120 is in the output state, the second control module 130 can send data to the terminal device 20 or the charging cable 30 via the first transmitting pin 120, and the power supply device 10 can communicate normally with the terminal device 20.

[0090] The control unit 324 is further configured to, upon receiving a second command sent by the power supply device 10 via the second data transmission pin 404 , switch the first data transmission pin 402 to an output state according to the second command, so as to send data to the power supply device 10 via the first data transmission pin 402 .

[0091] When the power supply device 10 needs to communicate with the first control module 320 in the charging cable 30, it can send a second command via the first transmitting pin 120. In the charging cable 30, the second data transmission pin 404, in the receiving state, receives the second command sent by the power supply device 10 via the first transmitting pin 120 via the second-type data pin 314 and transmits it to the control unit 324. Based on the predefined communication protocol, the control unit 324 determines from the second command that the power supply device 10 needs to communicate with the first control module 320. The control unit 324 then switches the first data transmission pin 402 from the receiving state to the output state and transmits data via the first data transmission pin 402 to the first receiving pin 110 of the power supply device 10. At the same time, the second data transmission pin 404 can remain in the receiving state to continue receiving communication information from the power supply device 10 via the second data transmission pin 404.

[0092] Optionally, the data sent by the control unit 324 may include the above-mentioned cable parameters. The power supply device 10 can receive the cable parameters sent by the control unit 324 through the first receiving pin 110, so that the charging cable 30 can be identified according to the cable parameters to determine whether the charging cable 30 meets the requirements of high-power charging, thereby ensuring normal charging in high-power charging modes such as fast charging, and improving safety.

[0093] In some embodiments, as Figure 4 As shown, the terminal device 20 includes a second transmitting pin 210, a second receiving pin 220, and a third control module 230. When the third control module 230 receives a second command sent by the first transmitting pin 120 via the second receiving pin 220, the second transmitting pin 210 can be switched to a non-output state according to the second command. The non-output state is an operating state in which the second transmitting pin 210 does not output data to the terminal device 20 and the charging cable 30.

[0094] Optionally, the non-output state may include any one of the following: a receiving state in which the second transmitting pin 210 can receive data sent by the terminal device 20 or the charging cable 30 but cannot send data to the terminal device 20 and the charging cable 30; a floating state in which the second transmitting pin 210 can neither send data to the first transmitting pin 120 nor receive data sent by the terminal device 20 or the charging cable 30; but is not limited to this. In the floating state, the second transmitting pin 210 may not be connected to any circuit, and the pin may be left floating.

[0095] When the third control module 230 receives the second command sent by the first transmitting pin 120 of the power supply device 10 through the second receiving pin 220, it can be determined that the power supply device 10 needs to communicate with the charging cable 30. In order not to interfere with the communication between the power supply device 10 and the charging cable 30, the second transmitting pin 210 can be switched from the output state to the non-output state, and the terminal device 20 cannot send data to the power supply device 10, thereby ensuring the communication quality between the power supply device 10 and the charging cable 30.

[0096] In some embodiments, the first type of communication information includes a fourth command sent by the power supply device 10. The control unit 324 is further configured to, after switching the first data transmission pin 402 to the output state according to the second command, switch the first data transmission pin 402 to the receiving state according to the fourth command if a fourth command indicating a need to communicate with the terminal device 20 is received from the power supply device 10 via the second data transmission pin 404.

[0097] When the power supply device 10 needs to communicate with the terminal device 20, a fourth command can be sent via the first transmitting pin 120. The control unit 324 in the charging cable 30 can receive the fourth command via the second data transmission pin 404. Based on the predefined communication protocol, the control unit 324 can determine that the power supply device 10 needs to communicate with the terminal device 20. The control unit 324 can then switch the first data transmission pin 402 from an output state to a receiving state. The control unit 324 can no longer send data to the power supply device 10 via the first data transmission pin 402. This prevents interference with the data transmission between the power supply device 10 and the terminal device 20, thereby ensuring the quality of communication between the power supply device 10 and the terminal device 20.

[0098] Optionally, the above-mentioned first-type data pin 312 can be a D-pin, the first receiving pin 110 and the second transmitting pin 210 can be D-pins, and the first data transmission line can be a D-data line; the second-type data pin 314 can be a D+ pin, the first transmitting pin 120 and the second receiving pin 220 can be D+ pins, the second data transmission line can be a D+ data line, etc., but is not limited to this.

[0099] For example, now combined Figures 5A to 5C The switching of the working states of the pins in the above embodiment is described. Figure 5A The figure is a schematic diagram of the working status of each pin in the power supply device, the terminal device and the charging cable when the power supply device communicates with the terminal device in one embodiment. Figure 5B The figure is a schematic diagram of the working status of each pin in the power supply device, the terminal device and the charging cable when the terminal device communicates with the charging cable in one embodiment. Figure 5C The figure is a schematic diagram of the working states of the power supply device, the terminal device and the pins in the charging cable when the power supply device communicates with the charging cable in one embodiment.

[0100] In some embodiments, when the power supply device 10 is connected to the terminal device 20 via the charging cable 30 , the first data transmission pin 402 and the second data transmission pin 404 of the charging cable 30 may be initialized to a receiving state, and the power supply device 10 communicates with the terminal device 20 .

[0101] like Figure 5A As shown, when the power supply device 10 is communicating with the terminal device 20, the first receiving pin 110 of the power supply device 10 is in a receiving state, and the first transmitting pin 120 is in an output state. The second transmitting pin 210 of the terminal device 20 is in an output state, and the second receiving pin 220 is in a receiving state. The first data transmission pin 402 and the second data transmission pin 404 of the charging cable 30 are both in a receiving state. The power supply device 10 and the terminal device 20 are communicating with each other, and the charging cable 30 does not interfere with the communication between the power supply device 10 and the terminal device 20.

[0102] like Figure 5B As shown, when the terminal device 20 needs to communicate with the charging cable 30, it can send a first command via the second transmit pin 210. When the charging cable 30 receives the first command via the first data transmission pin 402, it can switch the second data transmission pin 404 from a receiving state to an output state. Simultaneously, when the power supply device 10 receives the first command via the first receive pin 110, it can switch the first transmit pin 120 from an output state to a non-output state. This allows data transmission between the terminal device 20 and the charging cable 30 without affecting the communication between the terminal device 20 and the charging cable 30.

[0103] When the terminal device 20 needs to communicate with the power supply device 10 again, a third command can be sent through the second transmitting pin 210. When the charging cable 30 receives the third command through the first data transmission pin 402, the second data transmission pin 404 can be switched from the output state to the receiving state. At the same time, when the power supply device 10 receives the third command through the first receiving pin 110, the first transmitting pin 120 can be switched from the non-output state to the output state. At this time, the working state diagram of each pin in the power supply device 10, the terminal device 20 and the charging cable 30 can return to the following Figure 5A The working status shown.

[0104] like Figure 5CAs shown, when the power supply device 10 needs to communicate with the charging cable 30, it can send a second command via the first transmitting pin 120. When the charging cable 30 receives the second command via the second data transmission pin 404, it can switch the first data transmission pin 402 from a receiving state to an output state. Simultaneously, when the terminal device 20 receives the second command via the second receiving pin 220, it can switch the second transmitting pin 210 from an output state to a non-output state. This allows the power supply device 10 and the charging cable 30 to communicate data without the terminal device 20 interfering with the communication between the power supply device 10 and the charging cable 30.

[0105] When the power supply device 10 needs to communicate with the terminal device 20 again, the fourth command can be sent through the first transmitting pin 120. When the charging cable 30 receives the fourth command through the second data transmission pin 404, the first data transmission pin 402 can be switched from the output state to the receiving state. At the same time, when the terminal device 20 receives the fourth command through the second receiving pin 220, the second transmitting pin 210 can be switched from the non-output state to the output state. At this time, the working state diagram of each pin in the power supply device 10, the terminal device 20 and the charging cable 30 can return to the following Figure 5A The working status shown.

[0106] In this embodiment of the present application, the physical layer of the communication protocol between the power supply device 10, the terminal device 20, and the charging cable 30 can utilize a serial communication mechanism. By redefining the first data transmission pin 402 and the second data transmission pin 404 in the first control module 320 of the charging cable 30 to enable switching between multiple operating states, communication between the charging cable 30, the power supply device 10, and the terminal device 20 can be achieved. By simply modifying the transmit pins in the power supply device 10 and the terminal device 20, it is possible to ensure that when two of the three devices are communicating, the other device will not interfere with the communication, thus ensuring communication quality. This eliminates the need to define additional pins in the power supply device 10 and the terminal device 20, modify the interfaces of the three devices to completely new interfaces, or add additional signal lines to the charging cable 30, effectively reducing costs.

[0107] In some embodiments, the output state may include any one of a push-pull output mode and an open-drain output mode, but is not limited thereto.

[0108] In push-pull output mode, the pin can output low and high levels, and it is guaranteed that when outputting low and high levels, the pin can stably set the bus to the specified potential state within the specified time. Using push-pull output mode can improve the circuit's drive capability, thereby driving the output of a larger current, such as 2mA (milliamperes) or more. Figure 6A FIG. 1 is a circuit diagram of a push-pull output mode in an embodiment. Figure 6A As shown in the figure, P-MOS (P-Metal-Oxide-SemiconductorField-Effect Transistor, P-channel - Metal Oxide Semiconductor Field-Effect Transistor) and N-MOS are controlled by two complementary signals respectively. When the output is high, P-MOS is turned on and N-MOS is turned off. When the output is low, P-MOS is turned off and N-MOS is turned on, so the driving capability is strong.

[0109] In some embodiments, when a pin is in push-pull output mode, it may not be able to switch to the non-output state or the receiving state in a timely manner, thereby affecting the normal communication of other devices. For example, when the power supply device 10 is communicating with the terminal device 20, the first data transmission pin 402 and the second data transmission pin 404 of the charging cable 30 should both be in the receiving state. If abnormal communication occurs, the first data transmission pin 402 or the second data transmission pin 404 of the charging cable 30 may output a low level, causing a short circuit between the power supply device 10 and the first control module 320 in the charging cable 30, or between the terminal device 20 and the first control module 320 in the charging cable 30.

[0110] Resistors can be connected in series to the pins in the push-pull output mode. For example, resistors can be connected in series to the first data transmission pin 402 and the second data transmission pin 404 of the charging cable 30, or to the first transmitting pin 120 of the power supply device 10, or to the second transmitting pin 210 of the terminal device 20. Figure 6B FIG. 1 is a circuit diagram of connecting a resistor in series with a pin in a push-pull output state in one embodiment. Figure 6B As shown, two resistors can be connected in series to the pin in the push-pull output state to limit the short-circuit current output by the pin. It should be noted that: Figure 6B The two transistors M1 and M2 in Figure 6A The functions performed by the P-MOS and N-MOS transistors in the power supply are similar. The series resistors R1 and R2 can limit the short-circuit current between the power supply device 10 and the first control module 320 in the charging cable 30, or between the terminal device 20 and the first control module 320 in the charging cable 30, ensuring device safety.

[0111] In open-drain output mode, the pin can output a low level. When a high level needs to be output, the resistance of the pull-up resistor must be controlled. By reducing the resistance of the pull-up resistor, the function of driving the output to a larger current can be achieved. Figure 7This is a circuit diagram of an open-drain output mode in one embodiment. When outputting a high level, it is necessary to reduce the resistance of the pull-up resistor to pull the pin up to VCC. The pull-up resistor can be an internal pull-up resistor of the chip or an external pull-up resistor of the chip.

[0112] Figure 8 FIG. 1 is a circuit diagram of a non-output state in an embodiment. Figure 8 As shown, the non-output state can include a high-impedance input state or a floating state. If the pin is switched to the high-impedance input state, the pin's output path is disconnected and can only receive messages sent by other devices. If the pin is switched to the floating state, the pin is left floating and neither receives nor sends messages. A pin in the non-output state does not interfere with communication between other devices.

[0113] In the embodiments of the present application, the operating state switching of each pin can be configured through registers within the chip. Different operating states corresponding to each pin can be defined before the device leaves the factory. Upon receiving different communication information, the registers can switch the operating state of the pin through the control circuit. It should be noted that the different operating states of the pins can be the operating states inherent to the pins themselves, or they can be implemented through circuits external to the pins, and this is not limited here.

[0114] In the embodiment of the present application, by redefining the first data transmission pin 402 and the second data transmission pin 404 in the first control module 320 in the charging cable 30, as well as the first transmitting pin 120 of the power supply device 10 and the second transmitting pin 210 of the terminal device 20, etc., it has the function of switching between multiple different working states to meet the communication requirements among the power supply device 10, the terminal device 20 and the charging cable 30, thereby reducing costs.

[0115] like Figure 4 As shown, in one embodiment, a power supply device 10 is provided. The power supply device 10 includes a first receiving pin 110, a first transmitting pin 120, and a second control module 130. The first receiving pin 110 is configured to connect to a second transmitting pin 210 of a terminal device 20 via a charging cable 30. The first transmitting pin 120 is configured to connect to a second receiving pin 220 of the terminal device 20 via the charging cable 30. Optionally, the connection may be a communication connection.

[0116] The second control module 130 is used to switch the working state of the first transmitting pin 120 according to the communication information sent by the terminal device 20 when the communication information is received through the first receiving pin 110; wherein the working state includes the output state. When the first transmitting pin 120 is in the output state, the second control module 130 can send data to the terminal device 20 or the charging cable 30 through the first transmitting pin 120.

[0117] In one embodiment, the working state further includes a non-output state, which is a working state in which the first transmitting pin 120 is unable to transmit data to the terminal device 20 and the charging cable 30. When the first transmitting pin 120 is in the non-output state, the second control module 130 is unable to transmit data to the terminal device 20 and the charging cable 30 via the first transmitting pin 120. The communication information includes the second type of communication information.

[0118] The second control module 130 is further configured to switch the first transmitting pin 120 to a non-output state according to the second type of communication information when receiving the second type of communication information sent by the terminal device 20 through the first receiving pin 110 .

[0119] In one embodiment, the communication information includes first type communication information, and the working status includes output status.

[0120] The second control module 130 is also used to switch the first transmitting pin 120 to the non-output state according to the second type of communication information, and when the first type of communication information sent by the terminal device 20 is received through the first receiving pin 110, switch the first transmitting pin 120 to the output state according to the first type of communication information.

[0121] As a specific embodiment, the first receiving pin 110 is used to connect to the second transmitting pin 210 of the terminal device 20 and the first data transmission pin 402 of the charging cable 30 through the data interface 310 of the charging cable 30. The first transmitting pin 120 is used to connect to the second receiving pin 220 of the terminal device 20 and the second data transmission pin 404 of the charging cable 30 through the data interface 310 of the charging cable 30.

[0122] The second control module 130 is further configured to send a second command to the second data transmission pin 404 of the charging cable 30 via the first transmitting pin 120 , so that the charging cable 30 switches the first data transmission pin 402 to an output state according to the second command, and to receive data sent by the first data transmission pin 402 via the first receiving pin 110 .

[0123] In an embodiment of the present application, the power supply device 10 can flexibly switch the working state of the first transmitting pin 120 according to the communication information of the terminal device 20. When the terminal device 20 needs to communicate with the charging cable 30, the first transmitting pin 120 is switched to a non-output state, thereby not affecting the communication between the terminal device 20 and the charging cable 30, ensuring the communication quality between the terminal device 20 and the charging cable 30, and when the terminal device 20 needs to communicate with the power supply device 10, the first transmitting pin 120 is switched back to the output state, and normal communication is performed with the terminal device 20 and the charging cable 30, which can meet the communication needs among the terminal device 20, the power supply device 10 and the charging cable 30, and does not require the addition of additional pins, thereby reducing costs.

[0124] like Figure 4 As shown, in one embodiment, a terminal device 20 is provided. The terminal device 20 may include a second transmitting pin 210, a second receiving pin 220, and a third control module 230. The second transmitting pin 210 is configured to connect to the first receiving pin 110 of the power supply device 10 via a charging cable 30. The second receiving pin 220 is configured to connect to the first transmitting pin 120 of the power supply device 10 via the charging cable 30. Optionally, the connection may be a communication connection.

[0125] The third control module 230 is used to switch the working state of the second transmitting pin 210 according to the communication information sent by the power supply device 10 when the communication information is received through the second receiving pin 220; wherein the working state includes the output state. When the second transmitting pin 210 is in the output state, the third control module 230 can send data to the power supply device 10 or the charging cable 30 through the second transmitting pin 210.

[0126] In one embodiment, the working state further includes a non-output state, which is an operating state in which the second transmitting pin 210 is unable to transmit data to the power supply device 10 and the charging cable 30. When the second transmitting pin 210 is in the non-output state, the third control module 230 is unable to transmit data to the power supply device 10 and the charging cable 30 via the second transmitting pin 210, and the communication information includes the second type of communication information.

[0127] The third control module 230 is further configured to switch the second transmitting pin 210 to a non-output state according to the second type of communication information when receiving the second type of communication information sent by the power supply device 10 through the second receiving pin 220 .

[0128] In one embodiment, the communication information includes first type of communication information.

[0129] The third control module 230 is also used to switch the second transmitting pin 210 to the non-output state according to the second type of communication information, and when the first type of communication information sent by the power supply device 10 is received through the second receiving pin 220, switch the second transmitting pin 210 to the output state according to the first type of communication information.

[0130] In a specific embodiment, the second transmitting pin 210 is used to connect to the first receiving pin 110 of the power supply device 10 and the first data transmission pin 402 of the charging cable through the data interface 310 of the charging cable 30. The second receiving pin 220 is used to connect to the first transmitting pin 120 of the power supply device 10 and the second data transmission pin 404 of the charging cable 30 through the data interface 310 of the charging cable 30.

[0131] The third control module 230 is further configured to send a first command to the first data transmission pin 402 of the charging cable 30 via the second transmitting pin 210 , so that the charging cable 30 switches the second data transmission pin 404 to an output state according to the first command, and to receive data sent by the second data transmission pin 404 via the second receiving pin 220 .

[0132] In an embodiment of the present application, the terminal device 20 can flexibly switch the working state of the second transmitting pin 210 according to the communication information of the power supply device 10. When the power supply device 10 needs to communicate with the charging cable 30, the second transmitting pin 210 is switched to a non-output state, thereby not affecting the communication between the power supply device 10 and the charging cable 30, ensuring the communication quality between the power supply device 10 and the charging cable 30, and when the power supply device 10 needs to communicate with the terminal device 20, the second transmitting pin 210 is switched back to the output state, and normal communication is performed with the power supply device 10 and the charging cable 30, which can meet the communication needs among the terminal device 20, the power supply device 10 and the charging cable 30, without adding additional pins, thereby reducing costs.

[0133] In one embodiment, a communication system is provided. The communication system may include a charging cable 30 as described in the above embodiments, a power supply device 10 as described in the above embodiments, and a terminal device 20 as described in the above embodiments. The power supply device 10 is connected to the terminal device 20 via the charging cable 30, and provides a charging voltage and a charging current to the terminal device 20 via the charging cable 30. The power supply device 10 and the terminal device 20 may also transmit data via the charging cable 30.

[0134] The charging cable 30 is used to be in a state capable of receiving data sent by the power supply device 10 or the terminal device 20 when the power supply device 10 and the terminal device 20 are transmitting data, and to be in a state capable of sending data to the power supply device 10 or the terminal device 20 when the charging cable 30 and the power supply device 10 or the terminal device 20 are transmitting data.

[0135] In one embodiment, the power supply device 10 is configured to be in a state capable of sending data to the terminal device 20 or the charging cable 30 when data is transmitted with the terminal device 20 or the charging cable 30, and to be in a state not sending data to the terminal device 20 and the charging cable 30 when data is transmitted between the terminal device 20 and the charging cable 30.

[0136] The terminal device 20 is configured to be in a state capable of sending data to the power supply device 10 or the charging cable 30 when data is being transmitted with the power supply device 10 or the charging cable 30, and to be in a state not sending data to the power supply device 10 and the charging cable 30 when data is being transmitted with the power supply device 10 and the charging cable 30.

[0137] In the embodiment of the present application, when any two of the three devices, namely the power supply device 10, the terminal device 20 and the charging cable 30, are transmitting data, the other device is in a state of not sending data, which does not affect the communication between the two devices performing data transmission, thereby ensuring the communication quality between the power supply device 10, the terminal device 20 and the charging cable 30.

[0138] In one embodiment, a communication method is provided that can be applied to the charging cables described in the above embodiments. The method may include: upon receiving communication information sent by a power supply device or a terminal device through an interface unit, switching the working state of the interface unit according to the communication information;

[0139] Among them, the working states are receiving state and output state. When the interface unit is in the receiving state, the interface unit can receive data sent by the power supply device or the terminal equipment. When the interface unit is in the output state, the interface unit can send data to the power supply device or the terminal equipment.

[0140] In one embodiment, the communication information includes first-category communication information and second-category communication information. Figure 9 As shown, when the interface unit receives communication information sent by the power supply device or the terminal equipment, the working state of the interface unit is switched according to the communication information, which may include the following steps:

[0141] Step 902: When receiving the second type of communication information sent by the power supply device or the terminal equipment through the interface unit, switch the interface unit to the output state according to the second type of communication information.

[0142] In one embodiment, the second type of communication information includes a first command and a second command. Step 902 may include: upon receiving a first command sent by a terminal device via a first data transmission pin, switching the second data transmission pin to an output state according to the first command to send data to the terminal device via the second data transmission pin; and upon receiving a second command sent by a power supply device via the second data transmission pin, switching the first data transmission pin to an output state according to the second command to send data to the power supply device via the first data transmission pin.

[0143] Step 904 : When the interface unit receives the first type of communication information sent by the power supply device or the terminal equipment, the interface unit is switched to a receiving state according to the first type of communication information.

[0144] In one embodiment, the first type of communication information includes a third command and a fourth command. Step 904 may include: after switching the second data transmission pin to an output state according to the first command, when a third command sent by the terminal device is received through the first data transmission pin, switching the second data transmission pin to a receiving state according to the third command; after switching the first data transmission pin to an output state according to the second command, when a fourth command sent by the power supply device is received through the second data transmission pin, switching the first data transmission pin to a receiving state according to the fourth command.

[0145] In an embodiment of the present application, the charging cable can flexibly switch the working state of the interface unit according to the communication information sent by the power supply device and the terminal device to meet the communication needs of three different situations: the power supply device and the terminal device, the power supply device and the charging cable, and the terminal device and the charging cable. There is no need to add additional pins to the power supply device or the terminal device, and the original data transmission line in the charging cable is used for communication without adding new signal lines, thereby reducing costs.

[0146] In one embodiment, another communication method is provided, which can be applied to the power supply device described in the above embodiments. The method includes: when receiving communication information sent by a terminal device via a first receiving pin, switching the working state of the first transmitting pin according to the communication information;

[0147] The working state includes an output state. When the first transmitting pin is in the output state, the first transmitting pin can send data to the terminal device or the charging cable.

[0148] In one embodiment, the working state also includes a non-output state. When the first transmitting pin is in the non-output state, the first transmitting pin cannot send data to the terminal device or the charging cable. The communication information includes first-category communication information and second-category communication information. When the communication information sent by the terminal device is received through the first receiving pin, the working state of the first transmitting pin is switched according to the communication information, including:

[0149] When the second type of communication information sent by the terminal device is received through the first receiving pin, the first transmitting pin is switched to the non-output state according to the second type of communication information; when the first type of communication information sent by the terminal device is received through the first receiving pin, the first transmitting pin is switched to the output state according to the first type of communication information.

[0150] In one embodiment, the method further includes: sending a second command to the second data transmission pin of the charging cable through the first transmitting pin, so that the charging cable switches the first data transmission pin to an output state according to the second command; and receiving data sent by the first data transmission pin through the first receiving pin.

[0151] In an embodiment of the present application, the power supply device can flexibly switch the working state of the first transmitting pin according to the communication information of the terminal device, which can meet the communication needs between the terminal device, the power supply device and the charging cable, and does not require the addition of additional pins, thereby reducing costs.

[0152] In one embodiment, another communication method is provided, which can be applied to the terminal device described in the above embodiments. The method may include: when receiving communication information sent by the power supply device through the second receiving pin, switching the working state of the second transmitting pin according to the communication information;

[0153] The working state includes an output state. When the second transmitting pin is in the output state, the second transmitting pin can send data to the power supply device or the charging cable.

[0154] In one embodiment, the working state further includes a non-output state, in which the second transmitting pin is in the non-output state and cannot send data to the power supply device and the charging cable. The communication information includes first-type communication information and second-type communication information.

[0155] The step of switching the working state of the second transmitting pin according to the communication information when the communication information sent by the power supply device is received through the second receiving pin includes: when the second type of communication information sent by the power supply device is received through the second receiving pin, switching the second transmitting pin to a non-output state according to the second type of communication information; when the first type of communication information sent by the power supply device is received through the second receiving pin, switching the second transmitting pin to an output state according to the first type of communication information.

[0156] In one embodiment, the method further includes: sending a first command to the first data transmission pin of the charging cable through the second transmitting pin, so that the charging cable switches the second data transmission pin to an output state according to the first command; and receiving data sent by the second data transmission pin through the second receiving pin.

[0157] In an embodiment of the present application, the terminal device can flexibly switch the working state of the second transmitting pin according to the communication information of the power supply device, which can meet the communication needs between the terminal device, the power supply device and the charging cable, and does not require the addition of additional pins, thereby reducing costs.

[0158] An embodiment of the present application discloses a charging cable, including a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the processor implements the communication method applied to the charging cable as described in the above embodiments.

[0159] An embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the communication method applied to a charging cable as described in the above embodiments is implemented.

[0160] An embodiment of the present application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it can implement the communication method applied to the charging cable as described in the above embodiments.

[0161] An embodiment of the present application discloses a power supply device, including a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the processor implements the communication method applied to the power supply device as described in the above embodiments.

[0162] An embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the communication method applied to a power supply device as described in the above embodiments is implemented.

[0163] An embodiment of the present application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program can be executed by a processor to implement the communication method applied to a power supply device as described in the above embodiments.

[0164] An embodiment of the present application discloses a terminal device, including a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the processor implements the communication method applied to the terminal device as described in the above embodiments.

[0165] An embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the communication method applied to a terminal device as described in the above embodiments is implemented.

[0166] An embodiment of the present application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program can be executed by a processor to implement the communication method applied to a terminal device as described in the above embodiments.

[0167] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing related hardware through a computer program. The program can be stored in a non-volatile computer-readable storage medium. When executed, the program can include the processes in the above-described method embodiments. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), or the like.

[0168] As used herein, any reference to memory, storage, database, or other medium may include nonvolatile and / or volatile memory. Suitable nonvolatile memory may include ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which serves as an external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced synchronous DRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus DRAM (RDRAM), and direct Rambus DRAM (DRDRAM).

[0169] The technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above-mentioned embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0170] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art could make various modifications and improvements without departing from the spirit of the present application, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application shall be determined by the appended claims.

Claims

1. A charging cable, characterized in that: It includes a data interface and a first control module, wherein: The data interface is used to connect to a power supply device and a terminal device; The first control module includes: an interface unit, configured to be connected to the data interface so as to communicate with the power supply device and the terminal equipment via the data interface; a control unit, configured to, when receiving communication information sent by the power supply device or the terminal equipment through the interface unit, switch the working state of the interface unit according to the communication information; The working state includes a receiving state and an output state. When the interface unit is in the receiving state, the control unit can receive data sent by the power supply device or the terminal device through the interface unit. When the interface unit is in the output state, the control unit can send data to the power supply device or the terminal device through the interface unit. When the terminal device is communicating with the charging cable, the transmitting pin of the power supply device is in a non-output state, and the transmitting pin of the power supply device is used to connect to the receiving pin of the terminal device through the charging cable. The transmitting pin of the power supply device being in the non-output state means that the transmitting pin of the power supply device is unable to send data to the terminal device and the charging cable. When the power supply device communicates with the charging cable, the transmitting pin of the terminal device is in a non-output state, and the transmitting pin of the terminal device is used to connect to the receiving pin of the power supply device through the charging cable. The transmitting pin of the terminal device being in the non-output state is a working state in which the transmitting pin of the terminal device cannot send data to the power supply device and the charging cable; When the power supply device and the terminal equipment need to communicate, the interface unit is in the receiving state.

2. The charging cable according to claim 1, wherein: The communication information includes first type of communication information for indicating that the power supply device and the terminal device need to communicate; The control unit is configured to switch the interface unit to the receiving state according to the first type of communication information when the interface unit receives the first type of communication information sent by the power supply device or the terminal equipment.

3. The charging cable according to claim 1, wherein: The communication information includes second-type communication information for indicating that the power supply device or the terminal device needs to communicate with the charging cable; The control unit is further configured to, when receiving the second type of communication information sent by the power supply device or the terminal equipment through the interface unit, switch the interface unit to the output state according to the second type of communication information.

4. The charging cable according to claim 3, characterized in that The interface unit comprises: a first data transmission pin connected to the first receiving pin of the power supply device through the data interface, and connected to the second transmitting pin of the terminal device; The second data transmission pin is connected to the second receiving pin of the terminal device through the data interface, and is connected to the first transmitting pin of the power supply device.

5. The charging cable according to claim 4, characterized in that The second type of communication information includes a first command and a second command; The control unit is further configured to, upon receiving the first command sent by the terminal device through the first data transmission pin, switch the second data transmission pin to the output state according to the first command, so as to send data to the terminal device through the second data transmission pin; The control unit is further configured to, when receiving the second command sent by the power supply device through the second data transmission pin, switch the first data transmission pin to the output state according to the second command, so as to send data to the power supply device through the first data transmission pin.

6. The charging cable according to claim 5, characterized in that The control unit is further configured to, after switching the second data transmission pin to the output state according to the first command, switch the second data transmission pin to the receiving state according to the third command if a third command sent by the terminal device and indicating a need to communicate with the power supply device is received through the first data transmission pin; The control unit is also used to, after switching the first data transmission pin to the output state according to the second command, switch the first data transmission pin to the receiving state according to the fourth command if a fourth command is received from the power supply device through the second data transmission pin to indicate the need to communicate with the terminal device.

7. The charging cable according to claim 5 or 6, characterized in that: The output state includes any one of a push-pull output mode and an open-drain output mode.

8. The charging cable according to any one of claims 3 to 6, characterized in that: The control unit is further used to send stored cable parameters to the power supply device or the terminal device after switching the interface unit to the output state according to the second type of communication information. The cable parameters include one or more of cable transmission current parameters, cable material, cable identification, and cable length.

9. The charging cable according to any one of claims 1 to 6, characterized in that: The data interface includes a first type of data pin and a second type of data pin, wherein: The first type of data pin is used to connect to the first receiving pin of the power supply device, and is used to connect to the second transmitting pin of the terminal device; The second type of data pin is used to connect to the first transmitting pin of the power supply device, and is used to connect to the second receiving pin of the terminal equipment.

10. A power supply device, characterized in that: include: A first receiving pin, used to connect to a second transmitting pin of a terminal device via a charging cable; A first transmitting pin, configured to be connected to a second receiving pin of the terminal device via the charging cable; a second control module, configured to, upon receiving communication information sent by the terminal device via the first receiving pin, switch the operating state of the first transmitting pin according to the communication information; wherein the operating state includes an output state and a non-output state, wherein when the first transmitting pin is in the output state, the second control module can transmit data to the terminal device or the charging cable via the first transmitting pin, and the non-output state is an operating state in which the first transmitting pin is unable to transmit data to the terminal device or the charging cable; When the terminal device communicates with the charging cable, the first transmitting pin is in a non-output state.

11. The power supply device according to claim 10, wherein: The communication information includes second type of communication information for indicating that the terminal device needs to communicate with the charging cable; The second control module is further configured to switch the first transmitting pin to the non-output state according to the second type of communication information when the second type of communication information sent by the terminal device is received through the first receiving pin.

12. The power supply device according to claim 11, wherein: The non-output state includes any one of a receiving state and a floating state.

13. The power supply device according to claim 11, wherein: The communication information includes first type of communication information for indicating that the terminal device needs to communicate with the power supply device; The second control module is also used to switch the first transmitting pin to the non-output state according to the second type of communication information, and when the first type of communication information sent by the terminal device is received through the first receiving pin, switch the first transmitting pin to the output state according to the first type of communication information.

14. The power supply device according to any one of claims 10 to 13, characterized in that: The first receiving pin is used to connect to the second transmitting pin of the terminal device and the first data transmission pin of the charging cable through the data interface of the charging cable; The first transmitting pin is used to connect to the second receiving pin of the terminal device and the second data transmission pin of the charging cable through the data interface of the charging cable.

15. The power supply device according to claim 14, wherein: The second control module is further used to send a second command to the second data transmission pin of the charging cable through the first transmitting pin to indicate the need to communicate with the charging cable, so that the charging cable switches the first data transmission pin to an output state according to the second command, and to receive data sent by the first data transmission pin through the first receiving pin.

16. A terminal device, characterized in that: include: A second receiving pin, configured to be connected to the first transmitting pin of the power supply device via a charging cable; a second transmitting pin, configured to be connected to the first receiving pin of the power supply device via the charging cable; a third control module, configured to, upon receiving communication information sent by the power supply device via the second receiving pin, switch the operating state of the second transmitting pin according to the communication information; wherein the operating state includes an output state and a non-output state, wherein when the second transmitting pin is in the output state, the third control module can transmit data to the power supply device or the charging cable via the second transmitting pin, and the non-output state is an operating state in which the second transmitting pin is unable to transmit data to the power supply device and the charging cable; When the terminal device communicates with the charging cable, the second transmitting pin is in a non-output state.

17. The terminal device according to claim 16, characterized in that The communication information includes second type of communication information for indicating that the power supply device needs to communicate with the charging cable; The third control module is further configured to switch the second transmitting pin to the non-output state according to the second type of communication information when the second type of communication information sent by the power supply device is received through the second receiving pin.

18. The terminal device according to claim 17, characterized in that The communication information includes first type of communication information for indicating that the power supply device needs to communicate with the terminal device; The third control module is also used to switch the second transmitting pin to the non-output state according to the second type of communication information, and when the first type of communication information sent by the power supply device is received through the second receiving pin, switch the second transmitting pin to the output state according to the first type of communication information.

19. The terminal device according to any one of claims 16 to 18, characterized in that: The second transmitting pin is used to connect to the first receiving pin of the power supply device and the first data transmission pin of the charging cable through the data interface of the charging cable; The second receiving pin is used to connect to the first transmitting pin of the power supply device and the second data transmission pin of the charging cable through the data interface of the charging cable.

20. The terminal device according to claim 19, characterized in that The third control module is further used to send a first command to the first data transmission pin of the charging cable through the second transmitting pin to indicate the need to communicate with the charging cable, so that the charging cable switches the second data transmission pin to an output state according to the first command, and to receive data sent by the second data transmission pin through the second receiving pin.

21. A communication system, characterized in that: It includes a charging cable, a power supply device, and a terminal device, wherein the power supply device is connected to the terminal device through the charging cable, wherein: The charging cable is configured to be capable of receiving data sent by the power supply device or the terminal device when the power supply device and the terminal device are transmitting data, and to be capable of sending data to the power supply device or the terminal device when the charging cable and the power supply device or the terminal device are transmitting data; When the terminal device is communicating with the charging cable, the transmitting pin of the power supply device is in a non-output state, and the transmitting pin of the power supply device is used to connect to the receiving pin of the terminal device through the charging cable. The transmitting pin of the power supply device being in the non-output state means that the transmitting pin of the power supply device is unable to send data to the terminal device and the charging cable. When the power supply device communicates with the charging cable, the transmitting pin of the terminal device is in a non-output state. The transmitting pin of the terminal device is used to connect to the receiving pin of the power supply device through the charging cable. The transmitting pin of the terminal device is in a non-output state, which means that the transmitting pin of the terminal device cannot send data to the power supply device and the charging cable.

22. A communication method, characterized in that: Applicable to a charging cable, the charging cable comprising an interface unit, the interface unit being connected to a data interface of the charging cable to communicate with a power supply device and a terminal device via the data interface; The method comprises: When receiving communication information sent by the power supply device or the terminal equipment through the interface unit, switching the working state of the interface unit according to the communication information; Wherein, the working state includes a receiving state and an output state. When the interface unit is in the receiving state, the interface unit can receive data sent by the power supply device or the terminal device. When the interface unit is in the output state, the interface unit can send data to the power supply device or the terminal device. When the terminal device is communicating with the charging cable, the transmitting pin of the power supply device is in a non-output state, and the transmitting pin of the power supply device is used to connect to the receiving pin of the terminal device through the charging cable. The transmitting pin of the power supply device being in the non-output state means that the transmitting pin of the power supply device is unable to send data to the terminal device and the charging cable. When the power supply device communicates with the charging cable, the transmitting pin of the terminal device is in a non-output state, and the transmitting pin of the terminal device is used to connect to the receiving pin of the power supply device through the charging cable. The transmitting pin of the terminal device being in the non-output state is a working state in which the transmitting pin of the terminal device cannot send data to the power supply device and the charging cable; When the power supply device and the terminal equipment need to communicate, the interface unit is in the receiving state.

23. A communication method, characterized in that: Applicable to a power supply device, the power supply device comprising a first receiving pin and a first transmitting pin, the first receiving pin being connected to a second transmitting pin of a terminal device via a charging cable, and the first transmitting pin being connected to a second receiving pin of the terminal device via the charging cable; The method comprises: When communication information sent by the terminal device is received through the first receiving pin, switching the working state of the first transmitting pin according to the communication information; The working state includes an output state and a non-output state. When the first transmitting pin is in the output state, the first transmitting pin can send data to the terminal device or the charging cable. The non-output state is a working state in which the first transmitting pin cannot send data to the terminal device and the charging cable. When the terminal device communicates with the charging cable, the first transmitting pin is in a non-output state.

24. A communication method, characterized in that: Applied to a terminal device, the terminal device includes a second receiving pin and a second transmitting pin, the second receiving pin is connected to the first transmitting pin of the terminal device via a charging cable, and the second transmitting pin is connected to the first receiving pin of the terminal device via the charging cable; the method includes: When receiving communication information sent by the power supply device through the second receiving pin, switching the working state of the second transmitting pin according to the communication information; The working state includes an output state and a non-output state. When the second transmitting pin is in the output state, the second transmitting pin can send data to the power supply device or the charging cable. The non-output state is a working state in which the second transmitting pin cannot send data to the power supply device and the charging cable. When the terminal device communicates with the charging cable, the second transmitting pin is in a non-output state.

Citation Information

Patent Citations

  • Charging cable identification method and device, charging cable and readable storage medium

    CN112269086A