[go: up one dir, main page]

CN111817379B - Charger, data line and charging equipment - Google Patents

Charger, data line and charging equipment Download PDF

Info

Publication number
CN111817379B
CN111817379B CN202010673749.8A CN202010673749A CN111817379B CN 111817379 B CN111817379 B CN 111817379B CN 202010673749 A CN202010673749 A CN 202010673749A CN 111817379 B CN111817379 B CN 111817379B
Authority
CN
China
Prior art keywords
pin
charging
charged
interface
controller
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010673749.8A
Other languages
Chinese (zh)
Other versions
CN111817379A (en
Inventor
罗方丁
刘彦彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010673749.8A priority Critical patent/CN111817379B/en
Publication of CN111817379A publication Critical patent/CN111817379A/en
Application granted granted Critical
Publication of CN111817379B publication Critical patent/CN111817379B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • H02J7/40
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R27/00Coupling parts adapted for co-operation with two or more dissimilar counterparts
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R31/00Coupling parts supported only by co-operation with counterpart
    • H01R31/06Intermediate parts for linking two coupling parts, e.g. adapter
    • H01R31/065Intermediate parts for linking two coupling parts, e.g. adapter with built-in electric apparatus
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

本申请公开了一种充电器、数据线和充电设备,属于通信技术领域。其中,充电器包括:第一Type‑A接口、PD充电处理单元、非PD充电单元和第一控制器;所述第一Type‑A接口包括D‑引脚和D+引脚,所述非PD充电单元与所述D+引脚以及所述D‑引脚连接,所述PD充电处理单元与所述D‑引脚连接,所述第一控制器与所述PD充电处理单元、所述非PD充电单元以及所述D+引脚连接;其中,所述第一控制器基于经所述D+引脚上接收的通信信号启动所述PD充电处理单元以进行PD充电,或者启动所述非PD充电单元以进行非PD充电。本申请实施例能够与具有Type‑A接口的数据线连接,并支持PD充电功能。

Figure 202010673749

The application discloses a charger, a data cable and a charging device, which belong to the technical field of communication. The charger includes: a first Type-A interface, a PD charging processing unit, a non-PD charging unit, and a first controller; the first Type-A interface includes a D-pin and a D+ pin, and the non-PD charging unit includes a D-pin and a D+ pin. The charging unit is connected to the D+ pin and the D-pin, the PD charging processing unit is connected to the D-pin, the first controller is connected to the PD charging processing unit, the non-PD The charging unit and the D+ pin are connected; wherein the first controller activates the PD charging processing unit to perform PD charging based on the communication signal received on the D+ pin, or activates the non-PD charging unit for non-PD charging. The embodiment of the present application can be connected to a data line with a Type-A interface, and supports the PD charging function.

Figure 202010673749

Description

Charger, data line and charging equipment
Technical Field
This application belongs to communication technology field, concretely relates to charger, data line and battery charging outfit.
Background
With the development of science and technology, the application of rapid charging is more and more extensive.
In the related art, a Power Delivery (PD) protocol is generally used for fast charging, a charger supporting PD protocol charging needs to communicate by using a CC signal line, and the charger supporting PD protocol charging generally uses a third standard (Type-C) interface and is matched with a Type-C to Type-C data line. For a data line adopting a first Standard (Type-A or Standard-A) interface, the data line communicates through a D +/D-signal line and cannot support PD protocol charging, so that the Type-A interface on the conventional data line does not support PD protocol charging.
Disclosure of Invention
The embodiment of the application aims to provide a charger, a data line and charging equipment, and the problem that the data line with a Type-A interface does not support PD protocol charging can be solved.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a charger, including: the device comprises a first Type-A interface, a PD charging processing unit, a non-PD charging unit and a first controller;
the first Type-A interface comprises a D-pin and a D + pin, the non-PD charging unit is connected with the D + pin and the D-pin, the PD charging processing unit is connected with the D-pin, and the first controller is connected with the PD charging processing unit, the non-PD charging unit and the D + pin;
wherein the first controller activates the PD charging processing unit for PD charging or activates the non-PD charging unit for non-PD charging based on a communication signal received over the D + pin.
In a second aspect, an embodiment of the present application provides a data line, including: the second Type-A interface and the Type-C interface are connected through a cable, the second Type-A interface and the Type-C interface both comprise a D + pin and a D-pin, the Type-C interface further comprises a first CC pin, and the second Type-A interface is connected with the D + pin in the Type-C interface;
a second controller and a switching circuit are arranged on the data line, a detection end of the second controller is connected with the D + pin, a first end of the second controller is connected with a control end of the switching circuit, and the switching circuit is respectively connected with a D-pin in a second Type-A interface, a first CC pin and a D-pin in a Type-C interface;
the second controller controls the switching circuit to communicate the D-pin in the second Type-A interface with the first CC pin or the D-pin in the Type-C interface based on the communication signal transmitted through the D + pin.
In a third aspect, an embodiment of the present application provides a charging apparatus, including: the charger is the charger of the first aspect, the data line is the data line of the second aspect, the first Type-A interface with the second Type-A interface connection, and the first Type-A interface with D + pin and D-pin one-to-one in the second Type-A interface are connected.
In this application embodiment, the charger includes a first Type-a interface, so as to be able to connect to a Type-a to Type-C data line, and in addition, the charger detects a communication signal on a D + pin through a first controller, and controls the non-PD charging unit to perform non-PD charging negotiation with the device to be charged through the D + pin and the D-pin under the condition that the D + pin has non-PD charging signal transmission, or controls the PD charging unit to perform PD charging negotiation with the device to be charged through the D-pin under the condition that the D + pin has no non-PD charging signal transmission.
Drawings
Fig. 1 is a structural diagram of a charging device provided in an embodiment of the present application;
fig. 2 is a structural diagram of a charger provided in an embodiment of the present application;
FIG. 3 is a circuit diagram of a data line provided by an embodiment of the present application;
fig. 4 is a flowchart of an operation of a charging device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The charger, the data line and the charging device provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Please refer to fig. 1, fig. 2 and fig. 3, wherein fig. 1 is a structure of a charging apparatus according to an embodiment of the present disclosure; fig. 2 is a structural diagram of a charger provided in an embodiment of the present application; fig. 3 is a circuit diagram of a data line provided in an embodiment of the present application.
The charging equipment that this application embodiment provided includes charger 1 and data line 2 that matches each other, and wherein, charger 1 and data line 2 all include Type-A interface 21, and this Type-A interface 21 includes D + pin, D-pin, VBUS pin and GND pin, and this Type-A interface 21's structure is the same with the structure of Type-A interface 21 among the prior art, and it is no longer repeated here.
In addition, the Type-C interface 22 of the data line 2 further includes a CC1 pin, and different from the CC1 pin in the prior art that is suspended or grounded, the CC1 pin is connected to the D-pin in the Type-a interface 21 in the initial state that the data line 2 provided by the embodiment of the present application is not connected to a power supply.
In this way, the D-trace can be multiplexed to transmit the CC signal to the PD charging processing unit 12 in the charger 1, so that when the charger 1 is connected to the first device to be charged supporting PD charging through the data line 2 and is connected to the power supply, the PD charging processing unit 12 performs PD charging negotiation with the device to be charged through the D-trace and the CC1 pin, thereby implementing the PD charging function. In specific implementation, when the charger 1 is connected with a first device to be charged supporting PD charging through the data line 2, the first device to be charged transmits a charging communication signal through the pin CC1, but does not transmit the charging communication signal through the pin D + and the pin D-so that the charger 1 and the data line 2 can transmit the charging signal through the pin D-which is in communication with the pin CC1, and at this time, the charging device does not receive the charging communication signal through the pin D + so that the charger 1 and the data line 2 can know that the charging device to which the charger 1 belongs is connected with the first device to be charged, thereby starting the PD charging function.
In addition, when the charger 1 is connected with a second device to be charged, which does not support PD charging, through the data line 2 and is connected with a power supply, the device to be charged, which does not support PD charging, outputs a non-PD charging signal to the first controller 14 in the charger 1 and the second controller 24 in the data line 2 through the D + pin, so that the data line 2 switches the D-pin in the Type-a interface 21 to be communicated with the D-pin in the Type-C interface 22, and the charger 1 controls the non-PD charging unit 13 to perform non-PD charging negotiation with the device to be charged through the D + pin and the D-pin in the Type-C interface 22, thereby implementing the non-PD charging function. In specific implementation, when the charger 1 is connected to a second device to be charged, which does not support PD charging, through the data line 2, the second device to be charged transmits a charging communication signal through the D + pin and the D-pin, instead of transmitting the charging communication signal through the CC1 pin, so that the charger 1 and the data line 2 can receive the charging communication signal through the D + pin, and accordingly, the charger 1 and the data line 2 can know that the charging device to which the charger 1 belongs is connected to the second device to be charged, thereby starting the PD charging function.
It should be noted that the non-PD charging unit 13 may be a charging unit that performs charging negotiation with a device to be charged through communication signals transmitted over a D + pin and a D-pin, and specifically, the non-PD charging unit 13 may also be referred to as a D +/D-charging unit.
Specifically, as shown in fig. 1 and 2, the charger 1 includes: a first Type-a interface 11, a PD charging processing unit 12, a non-PD charging unit 13, and a first controller 14;
the first Type-A interface 11 comprises a D-pin and a D + pin, the non-PD charging unit 13 is connected with the D + pin and the D-pin, the PD charging processing unit 12 is connected with the D-pin, and the first controller 14 is connected with the PD charging processing unit 12, the non-PD charging unit 13 and the D + pin;
wherein the first controller 14 activates the PD charging processing unit 12 for PD charging or activates the non-PD charging unit 13 for non-PD charging based on the communication signal received over the D + pin.
Specifically, in the case where the non-PD charging unit 13 is activated, the non-PD charging unit 13 transmits a non-PD charging signal via the D-pin and the D + pin, and in the case where the PD charging processing unit 12 is activated, the PD charging processing unit 12 transmits a PD charging signal via the D-pin.
In a specific implementation, the first controller 14 may be a Micro Controller Unit (MCU), and the CC communication protocol and the D +/D communication protocol may be stored in the first controller 14 in advance. The PD charging signal is a communication signal transmitted through a CC pin and accords with a CC communication protocol. In addition, the non-PD charging signal is a communication signal transmitted through a D + pin and a D-pin, and conforms to a D +/D-communication protocol.
In addition, the first controller 14 may be a non-PD charging signal (which may also be referred to as a non-PD charging negotiation signal or a D +/D-handshake signal, etc.) based on the communication signal received over the D + pin.
In a specific implementation, the communication signal received by the pin D + may be analyzed to obtain the communication content carried by the communication signal, so as to determine which charging mode is selected by the device to be charged connected to the charger 1 through the data line, and when the device to be charged selects PD charging, the first controller 14 starts the PD charging unit 12; when the device to be charged selects the non-PD charging, the first controller 14 starts the non-PD charging unit 13.
In this embodiment, the charging mode selected or supported by the device to be charged may be determined according to the communication signal received via the D + pin, and the device to be charged may be charged according to the charging mode.
As an optional implementation manner, when the charger 1 is connected to a device to be charged through the data line 2, under the action of the first controller 14, the PD charging processing unit 12 performs PD charging on the device to be charged based on the CC communication signal transmitted through the D-pin;
in the case that the PD charging fails, under the action of the first controller 14, the non-PD charging unit 13 non-PD charges the device to be charged based on the communication signal transmitted through the D + pin and the D-pin.
Specifically, when the charger 1 is connected to the device to be charged through the data line, if the device to be charged and the charger 1 perform non-PD charging negotiation, the device to be charged sends a non-PD charging signal through the D + pin and the D-pin to perform non-PD charging negotiation with the non-PD charging unit 13, thereby implementing the non-PD charging function.
In addition, when the charger 1 is connected to the device to be charged through the data line 2, if the PD charging negotiation is performed between the device to be charged and the charger 1, the device to be charged does not send a non-PD charging signal through the D + pin and the D-pin, but sends a PD charging signal through the CC1 pin and the D-wire, so as to perform the PD charging negotiation with the PD charging unit 12, thereby implementing the PD charging function.
In this embodiment, taking the priority of the PD charging function higher than the priority of the non-PD charging as an example, the charging device preferentially performs the PD fast charging on the device to be charged, and when the device to be charged does not support the PD charging, the non-PD charging function is executed again.
It should be noted that, in a specific implementation, the priority of the PD charging function may be lower than the priority of the non-PD charging, so that the charging device performs the non-PD charging on the device to be charged preferentially, and when the non-PD charging fails, the PD charging function is executed again.
In addition, in a specific implementation, whether a PD charging function or a non-PD charging function is performed can be determined by detecting whether a signal is transmitted on the D + pin. Specifically, when the first controller 14 detects that the communication signal is transmitted on the D + pin, it is determined that the device to be charged selects the non-PD charging function, and the device to be charged successfully handshakes with the charger 1 provided in the embodiment of the present application, so as to execute the non-PD charging function.
In addition, when the first controller 14 detects the five-communication signal transmission on the D + pin, it is determined that the device to be charged selects the PD charging function, thereby performing the PD charging function.
In the embodiment, whether the device to be charged selects the non-PD charging mode can be determined only by detecting whether the signal is transmitted on the D + pin, so that the communication signal transmitted on the D + pin is prevented from being analyzed, and the process of determining the charging mode selected by the device to be charged can be reduced.
In a specific implementation, the charger 1 may be connected to a device to be charged through a conventional data line or the data line 2 provided in this embodiment, and when the charger 1 is connected to a power source and the device to be charged, and the first controller 14 controls the PD charging processing unit 12 to output a CC communication signal through the D-pin, the non-PD charging unit 13 may not be activated, so as to avoid interference with the PD charging signal on the D-pin when the non-PD charging unit 13 is activated.
Specifically, when the charger 1 is connected to a device to be charged supporting PD charging through the data line 2 provided in this embodiment of the present application, the device to be charged supporting PD charging does not send a non-PD charging signal to the charging device through the D + pin and the D-pin, so that the first controller 14 detects that no communication signal is transmitted on the D + pin, and at this time, the first controller 14 controls the PD charging processing unit 12 to output a CC communication signal through the D-pin, and can perform PD charging on the device to be charged supporting PD charging.
Certainly, if the charger 1 is connected to the device to be charged which does not support PD charging through the data line 2 provided in the embodiment of the present application, the PD communication will be unsuccessful, and the device to be charged which does not support PD charging will send the non-PD charging signal to the charger 1 through the D + pin and the D-pin, so that the charger 1 starts the non-PD charging processing unit 13 in response to the non-PD charging signal, and at this time, the PD charging processing unit 12 may not be started, so as to avoid the interference of the non-PD charging signal on the D-pin when the PD charging processing unit 12 is started.
In addition, when the charger 1 is connected to the device to be charged through the conventional data line, the CC pin and the D-pin in the conventional data line 2 are not connected, so that PD communication cannot be supported, at this time, the non-PD charging signal is transmitted only through the D + pin and the D-pin, that is, the first controller 14 acquires the non-PD charging signal through the D + pin, so that the charger 1 starts the non-PD charging processing unit 13 in response to the non-PD charging signal, and at this time, the PD charging processing unit 12 may not be started.
In the embodiment of the application, the PD charging can be preferentially carried out on the to-be-charged equipment, and the non-PD charging is carried out on the to-be-charged equipment when the PD charging fails.
In this application embodiment, the charger includes a first Type-a interface, so as to be able to connect with a Type-a to Type-C data line, and in addition, the charger detects a communication signal on a D + pin through a first controller, and controls the non-PD charging unit to perform charging negotiation with the device to be charged through the D + pin and the D-pin under the condition that the D + pin has non-PD charging signal transmission, or controls the PD charging unit to perform charging negotiation with the device to be charged through the D-pin under the condition that the D + pin has no non-PD charging signal transmission.
Referring to fig. 1 and fig. 3, a data line 2 according to an embodiment of the present disclosure includes: the second Type-a interface 21 and the Type-C interface 22 are connected through a cable 23, the second Type-a interface 21 and the Type-C interface 22 both include a D + pin and a D-pin, the Type-C interface 22 further includes a first CC pin (i.e., a CC1 pin as shown in fig. 1 and 3), and the second Type-a interface 21 and the D + pin in the Type-C interface 22 are connected;
a second controller 24 and a switching circuit 25 are arranged on the data line, a detection end of the second controller 24 is connected with the pin D + and a first end of the second controller 24 is connected with a control end of the switching circuit 25, and the switching circuit 25 is connected with a second end of the D-wiring, the pin CC1 and the pin D-in the Type-C interface 22 respectively;
the second controller 24 controls the switching circuit 25 to communicate the CC1 pin or the D-pin in the Type-C interface 22 with the second end of the D-trace based on the communication signal received via the D + pin.
In specific implementation, the D + pin in the second Type-a interface 21 and the D + pin in the Type-C interface 22 are connected through a D + trace, and the D-pin in the second Type-a interface 21 and the D-pin in the Type-C interface 22 are connected through a D-trace, at this time, the switching circuit 25 may be disposed on the D-trace.
Specifically, a D-pin in the second Type-A interface 21 is connected to a first end of a D-trace, a first end of the switching circuit 25 is connected to a second end of the D-trace, a second end of the switching circuit 25 is connected to a first CC pin, and a third end of the switching circuit 25 is connected to the D-pin in the Type-C interface 22. The second controller 24 controls the first end of the switching circuit 25 to communicate with the second end or the third end of the switching circuit 25 based on the communication signal received via the D + pin, that is, the second controller 24 can control the switching circuit 25 to communicate the D-pin of the second Type-a interface 21 with the CC1 pin or the D-pin of the Type-C interface 22.
In a specific implementation, the second controller 24 may also be a Micro Controller Unit (MCU), and the second controller 24 can control the switching circuit 25 to communicate the D-trace with the D-pin in the Type-C interface 22 or communicate the D-trace with the CC1 pin based on a communication signal on the D + pin.
The second controller 24 has the same meaning as the first controller 14 in the embodiment of the charger 1 shown in fig. 2 based on the communication signal received via the D + pin, and will not be described herein again.
The switching circuit 25 may be a switch, a switch group, or the like, and is not particularly limited herein.
In specific implementation, under the condition that the D-trace is communicated with the D-pin in the Type-C interface 22, the non-PD charging communication channel between the charger and the device to be charged can be communicated through the data line 2, so that the charger charges the device to be charged in a non-PD manner.
In addition, under the condition that the D-wiring is communicated with the CC1 pin, a PD charging communication channel between the charger and the equipment to be charged can be communicated through the data line 2, so that the charger performs PD charging on the equipment to be charged.
In specific implementation, in an initial state that the data line 2 is not connected to the power supply, the D-trace may be connected to the pin CC1, and when the data line 2 is connected to the charger and the device to be charged and is connected to the power supply, the PD charging signal is preferentially transmitted through the D-trace and the pin CC1, and when PD charging communication fails, the D-trace is connected to the pin D in the Type-C interface 22, so as to transmit the non-PD charging signal through the D + trace and the D-trace, and perform non-PD charging negotiation on the device to be charged.
Therefore, the PD charging communication channel can be communicated preferentially, the non-PD charging communication channel is communicated when the PD charging communication fails, the charger preferentially charges the PD of the equipment to be charged, and the charger charges the non-PD of the equipment to be charged when the PD charging communication fails.
As an optional implementation manner, in a case that the data line 2 is connected to the charger and the device to be charged respectively, and the second controller 24 does not receive the communication signal transmitted through the D + pin, the second controller 24 controls the switching circuit 25 to communicate the CC1 pin with the second end of the D-trace;
under the condition that the data line 2 is respectively connected with the charger and the device to be charged and the second controller 24 receives the signal transmitted by the D + pin, the second controller 24 controls the switching circuit 25 to communicate the D-pin of the Type-C interface 22 with the second end of the D-trace.
In a specific implementation, the second controller 24 can detect whether there is a received signal transmission on the D + pin, and when there is a received signal transmission on the D + pin, it indicates that the device to be charged selects a charger connected to the data line 2 for non-PD charging communication to perform charging negotiation, so as to communicate the D + trace and the D-trace, so as to support the non-PD charging negotiation between the charger and the device to be charged.
In addition, when no receiving signal is transmitted on the pin D + indicates that the device to be charged does not select the charger connected with the data line 2 for performing charging negotiation, so that the pin D-routing and the pin CC1 are connected, and PD charging negotiation is performed between the charger and the device to be charged through the PD charging signal transmitted by the pin D-routing and the pin CC 1.
In this embodiment, the second controller 24 can determine whether the device to be charged selects the non-PD charging mode only by detecting whether there is signal transmission on the D + trace, so as to avoid analyzing the communication signal transmitted on the D + pin, and reduce the process of determining the charging mode selected by the device to be charged.
As an optional implementation, the data line 2 is further provided with a first resistor Rp, the Type-C interface 22 further includes a second CC pin (e.g., the CC2 pin shown in fig. 1 and fig. 3), the switching circuit 25 is further connected to the CC2 pin and a first end of the first resistor Rp, respectively, and a second end of the first resistor Rp is connected to the VBUS trace in the cable 23;
wherein, in case that the data line 2 connects the charger and the device to be charged respectively, and the second controller 24 does not receive the communication signal transmitted through the D + pin, the second controller 24 is further configured to control the switching circuit 25 to disconnect the pin CC2 from the first end of the first resistor Rp.
Or, in the case that the data line 2 connects the charger 1 and the device to be charged respectively, and the second controller 24 receives the communication signal transmitted through the D + pin, the second controller 24 is further configured to control the switching circuit 25 to connect the CC2 pin with the first end of the first resistor Rp.
In a specific implementation, in the case that the switching circuit 25 communicates the CC2 pin with the first end of the first resistor Rp, the switching circuit 25 also communicates the second end of the D-trace with the D-pin in the Type-C interface 22, so as to allow the charging device to perform non-PD charging on the device to be charged through the electrical signal on the CC2 pin.
At this moment, the effect of the data line 2 that this application embodiment provided is the same with the conventional Type-A to Type-C data line among the prior art, and the charger can only be through D + pin and D-pin and the equipment of waiting to charge negotiation charging parameter, can only carry out non-PD to charge to the equipment of waiting to charge promptly.
Specifically, the following relationship among the pins in the second Type-a interface 21, the pins in the Type-C interface 22, and the traces in the cable 23 can be referred to as follows:
TABLE 1
Figure BDA0002583297530000101
Figure BDA0002583297530000111
As an alternative implementation, the switching circuit 25 includes a first switch K1 and a second switch K2, a first end of the first switch K1 is connected to the second end of the D-trace, a second end of the first switch K1 is connected to the pin CC1, and a third end of the first switch K1 is connected to the pin D in the Type-C interface 22; a first end of the second switch K2 is connected with a pin CC2, and a second end of the second switch K2 is connected with a first end of the first resistor Rp; and the first terminal of the second controller 24 is connected to the control terminal of the first switch K1 and the control terminal of the second switch K2;
under the condition that the data line 2 is respectively connected with the charger and the device to be charged and the second controller 24 does not receive the communication signal transmitted by the D + pin, the second controller 24 controls the first switch K1 to connect the second end of the D-trace with the CC1 pin, and the second switch K2 is disconnected;
under the condition that the data line 2 is respectively connected with the charger and the device to be charged, and the second controller 24 receives the communication signal transmitted through the D + pin, the second controller 24 is configured to control the first switch K1 to communicate the second end of the D-trace with the D-pin in the Type-C interface 22, and the second switch K2 is closed.
In the present embodiment, the first switch K1 may be a single-pole double-throw switch. Specifically, the fixed end of the first switch K1 is connected to the second end of the D-trace, and the two movable ends of the first switch K1 can be connected to the pin CC1 and the pin D in the Type-C interface 22.
In a specific implementation, the first switch K1 and the second switch K2 may be digital signal control switches, and the second controller 24 sends corresponding digital control signals to the control terminal of the first switch K1 and the control terminal of the second switch K2 to adjust the switching states of the first switch K1 and the second switch K2.
Of course, in practical implementation, the first switch K1 and the second switch K2 may also be analog circuits, such as: the second controller 24 sends corresponding analog control signals to the control end of the first switch K1 and the control end of the second switch K2 to adjust the switching states of the first switch K1 and the second switch K2.
In the present embodiment, the first switch K1 and the second switch K2 are provided for the switching unit 25, so that the control logic and the configuration of the switching unit 25 can be simplified.
The data line 2 that this application embodiment provided can communicate D-pin or CC1 pin in D-line and Type-C interface 22 to when D-line and CC1 pin communicate, can multiplex D-line transmission CC signal, thereby support the requirement of PD charging communication, and when being connected with the charger 1 that this application embodiment provided, can realize the PD function of charging.
It should be noted that the charger 1 provided in the embodiment of the present application can also be connected to a conventional data line to perform non-PD charging on a device to be charged, and the data line 2 provided in the embodiment of the present application can also be connected to a conventional charger to perform non-PD charging on a device to be charged, and a specific work flow thereof is as follows:
step 401, determine whether it is a standard charger.
Wherein, the above-mentioned charger of standard configuration can be understood as: any kind of charger 1 that the embodiment of this application provided.
If the determination result in this step is yes, step 402 is executed; if the determination result in this step is "no", step 403 is executed.
Step 402, judging whether the data line is a standard data line.
Wherein, the above-mentioned data line of standard configuration can be understood as: any kind of data line 2 that the embodiment of this application provided.
If the determination result in this step is "no", execute step 404; if the determination result in this step is yes, step 405 is executed.
Step 404, perform non-PD charging.
It should be noted that the pin CC2 in the conventional data line is communicated with the VBUS through the first resistor Rp, and when the device to be charged detects an electrical signal on the pin CC2, the device to be charged performs a memorable non-PD charging negotiation with the charging device through the pin D + and the pin D-so that the first controller in the charger 1 receives a communication signal through the pin D + and controls the non-PD charging processing unit to start up to perform non-PD charging on the device to be charged.
Step 405, the second controller controls CC1 to communicate with the D-trace, and CC2 is disconnected from the first resistor Rp.
Step 406, determining whether the device to be charged supports PD charging.
If the determination result in this step is yes, step 407 is executed; if the determination result in this step is "no", step 408 is executed.
Specifically, if the determination result in step 406 is yes, it indicates that the device to be charged does not send the charge negotiation signal through the D + pin and the D-pin, and at this time, the first controller 14 and the second controller 24 do not detect transmission of the communication signal through the D + pin.
In addition, in the case that the determination result of step 406 is "no", it indicates that the device to be charged sends a charging negotiation signal through the D + pin and the D-pin, and at this time, the first controller 14 and the second controller 24 detect transmission of a communication signal through the D + pin.
Step 407, PD charging is performed.
And step 408, the second controller controls the D-pin in the Type-C interface to be communicated with the D-wiring, the CC2 is communicated with the first resistor Rp, and the first controller controls the non-PD charging processing unit to be started.
Step 409, non-PD charging is performed.
And step 403, judging whether the data line is a standard data line.
If the determination result in this step is "no", step 410 is executed; if the determination result in this step is yes, step 411 is executed.
Step 410, perform non-PD charging.
Step 411, the second controller controls the D-pin in the Type-C interface to be communicated with the D-trace, the CC2 is communicated with the first resistor Rp, and the first controller controls the non-PD charging processing unit to start.
In an initial state before this step, the second controller controls CC1 to communicate with the D-trace, and CC2 is disconnected from the first resistor Rp, and the first controller controls the PD charging processing unit to start.
Step 412, perform non-PD charging.
Through the above work flow, the charger 1 and the data line 2 provided by the embodiment of the application can form a charging device, and the charging device can realize PD charging or non-PD charging of the device to be charged. In addition, the charger 1 provided by the embodiment of the present application can also constitute a charging device with a conventional data line, so as to perform non-PD charging on a device to be charged. And the data line 2 provided by the embodiment of the application can also form a charging device with a conventional charger to perform non-PD charging on the device to be charged.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and electronic devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, but may include performing functions in a substantially simultaneous manner or in a reverse order depending on the functionality involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (9)

1. A charger, comprising: the device comprises a first Type-A interface, a PD charging processing unit, a non-PD charging unit and a first controller;
the first Type-A interface comprises a D-pin and a D + pin, the non-PD charging unit is connected with the D + pin and the D-pin, the PD charging processing unit is connected with the D-pin, and the first controller is connected with the PD charging processing unit, the non-PD charging unit and the D + pin;
the first controller starts the PD charging processing unit based on the communication signal received by the D + pin so that the PD charging processing unit performs PD charging on the equipment to be charged based on the CC communication signal transmitted by the D-pin, or starts the non-PD charging unit to perform non-PD charging.
2. The charger according to claim 1, wherein when the charger is connected to a device to be charged through a data line, the PD charging processing unit, under the action of the first controller, performs PD charging on the device to be charged based on a CC communication signal transmitted through the D-pin;
under the action of the first controller, the non-PD charging unit carries out non-PD charging on the device to be charged based on the communication signals transmitted by the D + pin and the D-pin when the PD fails to charge.
3. The charger according to claim 2, wherein when the charger is connected to a device to be charged via a data line and the first controller detects that a communication signal is transmitted through the D + pin, the first controller controls the PD charging processing unit to output a PD charging signal via the D-pin and controls the non-PD charging unit to stop outputting a non-PD charging signal;
when the charger is connected with a device to be charged through a data line and the first controller detects that no communication signal is transmitted on the D + pin, the first controller controls the PD charging processing unit to stop outputting a PD charging signal and controls the non-PD charging unit to output a non-PD charging signal through the D + pin and the D-pin.
4. A data line, comprising: the device comprises a first Type-A interface, a second Type-C interface, a first CC (component carrier) pin and a second CC interface, wherein the first Type-C interface is connected with the second Type-A interface through a cable;
a second controller and a switching circuit are arranged on the data line, a detection end of the second controller is connected with the D + pin, a first end of the second controller is connected with a control end of the switching circuit, and the switching circuit is respectively connected with the D-pin in the second Type-A interface, the first CC pin and the D-pin in the Type-C interface;
the second controller controls the switching circuit to communicate the D-pin in the second Type-A interface with the first CC pin or the D-pin in the Type-C interface based on the communication signal transmitted through the D + pin.
5. The data line of claim 4, wherein when the data line is connected to a charger and a device to be charged respectively, and the second controller does not receive the communication signal transmitted through the D + pin, the second controller controls the switching circuit to connect the first CC pin to the D-pin in the second Type-a interface;
and under the condition that the data line is respectively connected with a charger and the equipment to be charged and the second controller receives the communication signal transmitted by the D + pin, the second controller controls the switching circuit to communicate the D-pin in the Type-C interface with the D-pin in the second Type-A interface.
6. The data line according to claim 5, wherein a first resistor is further disposed on the data line, the Type-C interface further includes a second CC pin, the switching circuit is further connected to the second CC pin and a first end of the first resistor, respectively, and a second end of the first resistor is connected to a VBUS trace in the cable;
the second controller is further used for controlling the switching circuit to disconnect the second CC pin from the first end of the first resistor under the condition that the data line is respectively connected with a charger and the device to be charged and the second controller does not receive the communication signal transmitted by the D + pin;
or,
and under the condition that the data line is respectively connected with a charger and equipment to be charged and the second controller receives a communication signal transmitted by the D + pin, the second controller is also used for controlling the switching circuit to communicate the second CC pin with the first end of the first resistor.
7. The data line of claim 6, wherein the switching circuit comprises a first switch and a second switch, a first terminal of the first switch is connected to a D-pin in the second Type-a interface, a second terminal of the first switch is connected to the first CC pin, and a third terminal of the first switch is connected to a D-pin in the Type-C interface; a first end of the second switch is connected with the second CC pin, and a second end of the second switch is connected with a first end of the first resistor; the first end of the second controller is respectively connected with the control end of the first switch and the control end of the second switch;
under the condition that the data line is respectively connected with a charger and equipment to be charged and the second controller does not receive the communication signal transmitted by the D + pin, the second controller controls the first switch to connect the D-pin in the second Type-A interface with the first CC pin and disconnect the second switch;
the data line is respectively connected with a charger and a device to be charged, the second controller is used for controlling the first switch to communicate the D-pin in the second Type-A interface with the D-pin in the Type-C interface under the condition that the second controller receives the communication signal transmitted by the D + pin, and the second switch is closed.
8. A charging device comprises a charger and a data line, wherein the charger is the charger according to any one of claims 1 to 3, the data line is the data line according to any one of claims 4 to 7, the first Type-A interface is connected with the second Type-A interface, and the first Type-A interface is connected with the D + pins and the D-pins in the second Type-A interface in a one-to-one correspondence manner.
9. The charging device according to claim 8, wherein in a case where the charging device is connected to a device to be charged, if the device to be charged is a first device to be charged, the first terminal of the switching circuit communicates with the second terminal of the switching circuit, and the charging device PD-charges the first device to be charged based on a CC communication signal transmitted through the D-pin; if the device to be charged is a second device to be charged, the first end of the switching circuit is communicated with the third end of the switching circuit, and the charging device carries out non-PD charging on the second device to be charged based on the communication signals transmitted by the D-pin and the D + pin;
when the charging device determines that the device to be charged supports PD charging based on the communication signal transmitted by the D-pin, determining that the device to be charged is the first device to be charged;
when the charging device determines that the device to be charged supports non-PD charging based on the received communication signal transmitted through the D + pin, the charging device determines that the device to be charged is the second device to be charged.
CN202010673749.8A 2020-07-14 2020-07-14 Charger, data line and charging equipment Active CN111817379B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010673749.8A CN111817379B (en) 2020-07-14 2020-07-14 Charger, data line and charging equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010673749.8A CN111817379B (en) 2020-07-14 2020-07-14 Charger, data line and charging equipment

Publications (2)

Publication Number Publication Date
CN111817379A CN111817379A (en) 2020-10-23
CN111817379B true CN111817379B (en) 2022-05-13

Family

ID=72842827

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010673749.8A Active CN111817379B (en) 2020-07-14 2020-07-14 Charger, data line and charging equipment

Country Status (1)

Country Link
CN (1) CN111817379B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107508331B (en) * 2017-07-11 2024-10-29 道县龙威盛科技有限公司 Charging unit and charging device
CN108233130B (en) * 2017-08-01 2019-11-15 珠海市魅族科技有限公司 USB cable, USB interface and adapter
CN108988431B (en) * 2018-08-07 2021-09-17 安克创新科技股份有限公司 Multi-protocol charging device and multi-protocol charging method
CN109726156A (en) * 2018-12-24 2019-05-07 努比亚技术有限公司 OTG equipment, charge control method, terminal and storage medium

Also Published As

Publication number Publication date
CN111817379A (en) 2020-10-23

Similar Documents

Publication Publication Date Title
US20230134179A1 (en) Charging circuit and charging cable
JP6875547B2 (en) Adapters, terminals, and adapter systems
CN111817382B (en) Charger, data line and charging equipment
US7849238B2 (en) Multiple-apparatus connection system and the method thereof
CN106356918B (en) A fast charging identification method and terminal equipment
CN101695189B (en) Method for conducting data synchronization by earphone, and corresponding earphone and mobile terminal
CN103744821A (en) Method and device for realizing USB OTG (Universal Serial Bus On-The-Go) function of mobile terminal
CN111817380B (en) Chargers, cables, charging equipment and electronic equipment
CN103631744A (en) Accessory apparatus, system, and method for supporting hierarchical connection
CN108964187A (en) The charging method of terminal and terminal room
CN107734436A (en) The apparatus and method and computer-readable recording medium to be communicated according to USB
CN111509818B (en) Charger, data line and charging equipment
CN105048018B (en) The charging method and device of a kind of terminal with data exchanging function
CN111817383B (en) Adapter, charger and charging equipment
CN107885688B (en) A kind of signal switching method and device
CN111817379B (en) Charger, data line and charging equipment
CN111817384B (en) Data line and charging equipment
CN213399565U (en) Charging circuits and electronic equipment
CN212846570U (en) Type-C interface circuit and touch-control all-in-one
CN102236374B (en) motherboard
CN105006853B (en) Method for outputting charging current and power amplifier
CN108874716B (en) Charging communication connection device and method for portable equipment
CN110582079B (en) Bluetooth connection setting method and device, computer readable storage medium and terminal
CN107451067A (en) Download test processing methods and related products
CN116390067A (en) Earphone connection method, device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant