Patent Description:
With the development of science and technology, fast charging is increasingly and widely applied.

In the related art, a power delivery (Power Delivery, PD) protocol is generally used for fast charging. A charger that supports PD protocol charging needs to perform communication by using a CC signal cable. The charger that supports the PD protocol charging generally uses a Standard-C (Type-C) port and a Type-C to Type-C data cable. A data cable using a Standard-A (Type-A or Standard-A) port performs communication through a D+/D-signal cable and cannot support the PD protocol charging. Therefore, a Type-A port on a conventional data cable does not support the PD protocol charging.

Document <CIT> discloses a charger comprising a first Type-A port, a charging module, and a first power delivery, PD, transceiving module; wherein the first Type-A port comprises a data pin, a first terminal of the charging module is connected to the data pin, a second terminal of the charging module is connected to a first terminal of the first PD transceiving module, and a second terminal of the first PD transceiving module is connected to the data pin; wherein in a case that the first PD transceiving module receives a first signal transmitted through the data pin, the data cable is the first data cable; and in a case that the first PD transceiving module does not receive the first signal transmitted through the data pin, the data cable is the second data cable, and the first data cable generates the first signal when connected to the to-be-charged device. Document <CIT> discloses also a data cable according to the preamble of claim <NUM>.

Embodiments of this application are intended to provide a charger, a data cable, and a charging device, which can resolve a problem that a data cable with a Type-A port does not support PD protocol charging.

To resolve the foregoing technical problem, this application is implemented as follows.

According to a first aspect, an embodiment of this application provides a charger, including a first Type-A port, a charging module, and a first PD transceiving module,.

According to a second aspect, an embodiment of this application provides a data cable, including: a second Type-A port and a Type-C port, where the second Type-A port and the Type-C port are connected by a cable, the second Type-A port and the Type-C port each include a CC pin and a data pin, and CC pins and data pins in the second Type-A port and the Type-C port are connected in a one-to-one correspondence;.

According to a third aspect, an embodiment of this application provides a charging device, including: a charger and a data cable, where the charger is the charger according to the first aspect, the data cable is the data cable according to the second aspect, and a data pin in the first Type-A port is correspondingly connected to a data pin in the second Type-A port.

In the embodiments of this application, the PD transceiving module is disposed in the charger, so that mutual conversion between a PD signal and the common mode signal transmitted through the data pin may be implemented through the PD transceiving module, while no interference with the differential mode signal transmitted through the data pin is caused. Therefore, the data pin in the Type-A port may be reused to implement transmission of the PD signal, and then the charging device including the charger and the Type-A to Type-C data cable can support the PD charging.

The terms "first", "second", and the like in the specification and claims of this application are used to distinguish between similar objects instead of describing a specific order or sequence. It should be understood that data used in this way may be interchangeable in an appropriate case, so that the embodiments of this application can be implemented in a sequence other than those shown or described herein, and objects distinguished by "first" and "second" are generally of a same type, and a quantity of objects is not limited. For example, there may be one or more first targets. In addition, in the specification and the claims, "and/or" represents at least one of connected objects, and a character "/" generally represents an "or" relationship between associated objects.

With reference to the accompanying drawings, the following describes in detail a charger, data cable, and charging device provided according to the embodiments of this application based on specific embodiments and application scenarios thereof.

Referring to both <FIG> and <FIG>, <FIG> is a structure of a charging device according to an embodiment of this application; and <FIG> is a structural diagram of a charger according to an embodiment of this application, where a charger <NUM> includes a first Type-A port <NUM>, and a data cable <NUM> is a Type-A to Type-C data cable, and a second Type-A port <NUM> of the data cable <NUM> is matched with the first Type-A port <NUM>, and a Type-C port of the data cable <NUM> can be connected to a to-be-charged device.

The charger <NUM> includes the first Type-A port <NUM>, a charging module <NUM>, and a first PD transceiving module <NUM>. The first Type-A port <NUM> includes a data pin, a first terminal of the charging module <NUM> is connected to the data pin, a second terminal of the charging module <NUM> is connected to a first terminal of the first PD transceiving module <NUM>, and a second terminal of the first PD transceiving module <NUM> is connected to the data pin.

In a case that the charger <NUM> is connected to the data cable <NUM>, if the data cable <NUM> is a first data cable, the first PD transceiving module <NUM> is in an operating state, and the charging module <NUM> performs non-PD charging on a to-be-charged device based on a differential mode signal transmitted through the data pin, or the charging module <NUM> performs PD charging on a to-be-charged device based on a common mode signal processed by the first PD transceiving module <NUM> and transmitted through the data pin.

In a case that the charger <NUM> is connected to the data cable <NUM>, if the data cable <NUM> is a second data cable, the first PD transceiving module <NUM> is in a non-operating state, and the charging module <NUM> performs non-PD charging on the to-be-charged device based on a differential mode signal transmitted through the data pin.

In a case that the first PD transceiving module <NUM> receives a first signal transmitted through the data pin, the data cable <NUM> is the first data cable. In a case that the first PD transceiving module <NUM> does not receive the first signal transmitted through the data pin, the data cable <NUM> is the second data cable, and the first data cable generates the first signal when connected to the to-be-charged device.

In specific implementation, data pins may be data pins in a second generation of universal serial bus (USB <NUM>): a D+ pin (also called a positive data pin) and a D- pin (also called a negative data pin). Definitely, in specific implementation, the data pins may also be data pins in a third generation of universal serial bus (USB <NUM>): a TX pin, an RX pin, and the like. For ease of understanding, the data pins are represented as a D+ pin and a D- pin in embodiments shown in <FIG>, and a type of the data pins is not limited herein.

In addition, the second terminal of the first PD transceiving module <NUM> may include a receive terminal and a transmit terminal. In this case, the first PD transceiving module <NUM> may obtain a communication signal in the data pin through the receive terminal, and may further send the common mode signal to the data pin through the transmit terminal.

In addition, when the first PD transceiving module <NUM> is in the operating state, the second terminal thereof is in communication with the data pin. Specifically, the first terminal of the first PD transceiving module <NUM> is in communication with the second terminal thereof, so as to convert a PD signal received at the first terminal into a common mode signal and then transmit the common mode signal to the data pin at the second terminal, and convert the common mode signal obtained by the data pin at the second terminal into a PD signal and then transmit the PD signal to the charging module <NUM> through the first terminal.

In addition, when the first PD transceiving module <NUM> is in the non-operating state, the second terminal thereof may be disconnected from the data pin. Specifically, the first terminal of the first PD transceiving module <NUM> may be disconnected from the second terminal thereof, so as to prevent interference with a signal in the data pin.

In specific implementation, at least a PD charging communication protocol is configured in the charging module <NUM>, and the first terminal of the first PD transceiving module <NUM> is configured to transmit communication information of the communication protocol.

It should be noted that, in specific implementation, the charging module <NUM> may further be configured with a non-PD charging communication protocol, such as a communication protocol for transmission of a communication signal through a data pin. In this case, the charging module <NUM> directly negotiates, through the data pin, non-PD charging with a to-be-charged device, without conversion through the first PD transceiving module <NUM>. Specifically, in a case that the data pins include the D+ pin and D- pin, the charging module <NUM> may be configured with a preset communication protocol, and a communication signal in the preset communication protocol is transmitted through the D+ pin and D- pin, and a charging parameter of DP and DM fast charging may be determined through negotiation of the communication signal in the preset communication protocol, so as to implement the DP and DM fast charging standardly equipped for the charging device against a to-be-charged device. Definitely, in specific implementation, a general protocol may also be configured in the charging module <NUM>, and the communication signal in the general protocol may also be transmitted through the D+ pin and the D- pin. The communication signal in the general protocol transmitted through the D+ pin and the D- pin can implement the DP and DM charging non-standardly equipped for the charging device against a to-be-charged device, in a principle that is the same as a process of the DP and DM charging in the prior art, which will not be repeated herein again.

In this implementation, a communication signal of non-PD charging is the differential mode signal transmitted through the data pin. This way, communication signals transmitted through the data pin may be subtracted, to eliminate a common mode signal and then obtain a differential mode signal; or communication signals transmitted through the data pin are added, to eliminate a differential mode signal and then obtain a common mode signal.

In application, the differential mode signal and the common mode signal transmitted through the data pin have different code rates. Specifically, in a case that the data pins are the D+ pin and D- pin, a code rate for transmitting a differential mode signal through the data pins may be <NUM> (megahertz) or <NUM>, and then a code rate for transmitting a common mode signal through the D+ pin and D- pin is not equal to <NUM> or <NUM>.

In addition, when a Type-C port of a data cable connected to the charger or a to-be-charged device obtains communication signals transmitted through the data pin, the communication signals are added, to obtain a common mode signal, and then a PD signal is obtained based on the common mode signal.

In addition, after the Type-C port of the data cable connected to the charger or a to-be-charged device may further convert the PD signal transmitted to the charger into the common mode signal, and then the common mode signal is transmitted to the first PD transceiving module <NUM> through the data pin, and the first PD transceiving module <NUM> obtains the communication signals transmitted through the data pin and performs addition, to obtain the common mode signal corresponding to the PD signal. Therefore, PD communication between the charger and the to-be-charged device can be implemented. In addition, a PD charging parameter of the to-be-charged device is determined according to PD communication content, and then PD charging can be implemented.

In specific implementation, the first data cable may be a data cable matched with the charger <NUM>, and the second data cable may be a data cable unmatched with the charger <NUM>. Specifically, the first data cable may be the data cable <NUM> shown in <FIG> and <FIG>, and the data cable <NUM> includes: a second Type-A port <NUM> and a Type-C port <NUM>. The second Type-A port <NUM> and Type-C port <NUM> are connected by a cable <NUM>. The second Type-A port <NUM> and the Type-C port <NUM> each include a CC pin and a data pin, and CC pins and data pins in the second Type-A port <NUM> and the Type-C port <NUM> are connected in a one-to-one correspondence.

The data cable <NUM> is provided with a second PD transceiving module <NUM>. A first terminal of the second PD transceiving module <NUM> is connected to the CC pin, and a second terminal of the second PD transceiving module <NUM> is connected to the data pin.

In a case that the data cable <NUM> is connected to a charger <NUM>, if the charger <NUM> is a first charger, the second PD transceiving module <NUM> is in an operating state, and the second PD transceiving module <NUM> is configured to perform mutual conversion on a common mode signal transmitted through the data pin and a PD charging signal transmitted through the CC pin, so as to perform PD charging on a to-be-charged device. Alternatively, the data cable <NUM> and the first charger perform, based on a differential signal transmitted through the data pin, non-PD charging on a to-be-charged device.

In a case that the data cable <NUM> is connected to a charger <NUM>, if the charger <NUM> is a second charger, the second PD transceiving module <NUM> is in a non-operating state, and the data cable <NUM> and the second charger perform non-PD charging on the to-be-charged device based on the differential signal transmitted through the data pin.

In a case that the second PD transceiving module <NUM> receives a second signal transmitted through the data pin, the charger <NUM> is the first charger. In a case that the second PD transceiving module <NUM> does not receive the second signal transmitted through the data pin, the charger <NUM> is the second charger, and the data cable <NUM> generates a first signal when connected to the to-be-charged device, and the first charger generates the second signal in response to the first signal.

The first charger may be the charger <NUM> shown in <FIG> and <FIG>.

In this implementation, the second PD transceiving module <NUM> has a same structure as the first PD transceiving module <NUM>, but a difference is that: the first terminal of the first PD transceiving module <NUM> is connected to the charging module <NUM>, while the first terminal of the second PD transceiving module <NUM> is connected to the CC pin, so that the second PD transceiving module <NUM> is configured to implement mutual conversion between the PD signal transmitted through the CC pin and the common mode signal transmitted through the data pin.

This way, without making any change to a structure of the to-be-charged device, the charger and the Type-A to Type-C data cable provided by the embodiment of this application can perform PD charging on the to-be-charged device that supports the PD charging.

As an optional implementation, when the second PD transceiving module <NUM> determines, based on an electrical signal transmitted through the CC pin, that the data cable <NUM> generates a first signal when inserted into the to-be-charged device, and the first signal is transmitted to the first PD transceiving module <NUM> through the data pin.

In the first PD transceiving module <NUM>, a first terminal of the first PD transceiving module <NUM> is in communication with a second terminal of the first PD transceiving module <NUM> in response to the first signal, and a second signal is generated. The second signal is transmitted to the second PD transceiving module <NUM> through the data pin, and in the second PD transceiving module <NUM>, a first terminal of the second PD transceiving module <NUM> is in communication with a second terminal of the second PD transceiving module <NUM> in response to the second signal.

That the data cable <NUM> is inserted into the to-be-charged device may be that the Type-C port of the data cable <NUM> is inserted into a Type-C port of the to-be-charged device that supports the PD charging.

As an optional implementation, the second PD controller is configured to generate the first signal when a first preset electrical signal from a CC pin is detected by a second common mode input amplifier, and transmit the first signal to the positive data pin and the negative data pin through a second waveform adjustment circuit and a second common mode output amplifier. When the data cable is connected to a to-be-charged device that supports the PD charging, and the CC pin is grounded through a first resistor in the to-be-charged device that supports the PD charging, the CC pin has the first preset electrical signal.

The first preset electrical signal may be a voltage range. For example, in case that a detected voltage value of the CC pin is less than 3V (volt), it is determined that a data cable is connected to the to-be-charged device that supports the PD charging, so that the charger <NUM> may be triggered to enable the PD charging; and in a case that a detected voltage value of the CC pin is greater than or equal to 3V, it is determined that a data cable is connected to a to-be-charged device that does not support the PD charging, so that the charger <NUM> may be triggered to enable the non-PD charging. It should be noted that the voltage value of the first preset electrical signal being less than 3V is just an example. In specific implementation, a voltage value on CC wiring and a resistance value of the first resistor may be used for determining, which is not specifically limited herein.

It should be noted that, in actual application, if the to-be-charged device that supports the PD charging has a pull-down resistor (that is, the first resistor) connected to the CC pin, the second PD transceiving module <NUM> may send the first signal to the first PD transceiving module <NUM> through the data pin when determining that the CC pin is pulled down by the pull-down resistor based on an electrical signal value from the CC pin. When the first PD transceiving module <NUM> receives the first signal, it is determined that the charger <NUM> is connected, through the data cable, to the to-be-charged device that supports the PD charging, and sends, in response to the first signal, a second signal to the second PD transceiving module <NUM> through the data pin, so as to trigger, through the second signal, PD charging negotiation with the to-be-charged device. In specific implementation, the second signal may be a start of packet (Start of Packet, SOP) command of an output module.

In addition, the second charger may be a charger that does not match the data cable <NUM>, specifically a charger that does not support the PD charging, a charger that does not have the first PD transceiving module <NUM>, or the like. When the data cable <NUM> is connected to the second charger, the second charger will not transmit the second signal through the data pin in response to the first signal. In this case, the CC pin on the data cable <NUM> may be connected to a VBUS pin through the pull-up resistor, and a structure of the CC pin connected to the VBUS pin through the pull-up resistor is the same as a structure of a CC pin in the Type-C port in the prior art and has the same function, which will not be repeated herein.

As an optional implementation, as shown in <FIG>, data pins include a positive data pin (D+ pin as shown in <FIG>) and a negative data pin (D- pin as shown in <FIG>). A first PD transceiving module <NUM> includes a first PD controller <NUM>, a first waveform adjustment circuit <NUM>, a first common mode output amplifier <NUM>, a first filter circuit <NUM>, and a first common mode input amplifier <NUM>.

A first terminal of the first PD controller <NUM> is connected to a second terminal of a charging module <NUM>, and a second terminal of the first PD controller <NUM> is connected to a first terminal of the first waveform adjustment circuit <NUM>, a second terminal of the first waveform adjustment circuit <NUM> is connected to a first terminal of the first common mode output amplifier <NUM>, a second terminal of the first common mode output amplifier <NUM> is connected to the D+ pin, and a third terminal of the first common mode output amplifier <NUM> is connected to the D- pin. A third terminal of the first PD controller <NUM> is connected to a first terminal of the first filter circuit <NUM>, a second terminal of the first filter circuit <NUM> is connected to a first terminal of the first common mode input amplifier <NUM>, a second terminal of the first common mode input amplifier <NUM> is connected to the D+ pin, and a third terminal of the first common mode input amplifier <NUM> is connected to the D- pin.

The first waveform adjustment circuit <NUM> is configured to convert a square wave signal transmitted by the first PD controller <NUM> into a sine wave signal and reduce an amplitude of the sine wave signal. The first common mode output amplifier <NUM> is configured to convert a reduced sine wave signal into a common mode signal, and perform common mode transmission through the D+ pin and the D- pin.

The first common mode input amplifier <NUM> is configured to amplify the common mode signal transmitted through the D+ pin and the D- pin, and the first filter circuit <NUM> is configured to perform filtering on an amplified common mode signal, convert a filtered and amplified common mode signal into the square wave signal and then transmit the square wave signal to the first PD controller <NUM>.

In specific implementation, the first filter circuit <NUM> and the first common mode input amplifier <NUM> are further configured to obtain the first signal transmitted through the D+ pin and the D- pin, and transmit the first signal to the first PD controller <NUM>. The first PD controller <NUM> is further configured to inform a control unit in the charging module <NUM> of the first signal, to respond to the first signal and generate a second signal. The second signal is transmitted to the D+ pin and the D- pin through the first PD controller <NUM>, the first waveform adjustment circuit <NUM>, and the first common mode output amplifier <NUM>, and is obtained by a second PD transceiving module <NUM> in the data cable <NUM>.

In addition, a PD signal output by the first PD controller <NUM> is a square wave signal, the square wave signal is adjusted to a sine wave signal by the first waveform adjustment circuit <NUM>, and then the sine wave signal is adjusted to a common mode signal by the first common mode output amplifier <NUM>, so that the common mode signal is transmitted in common mode through the D+ pin and the D- pin. In specific implementation, the common mode signal may be two same small sine signals.

In this implementation, the common mode signal transmitted through the D+ pin and the D- pin is obtained by the first filter circuit <NUM> and the first common mode input amplifier <NUM>, and after the common mode signal is processed, the common mode signal is converted into a PD square wave signal and then transmitted to the first PD controller <NUM>, so as to provide a recognizable PD signal to the charging module <NUM> through the first PD controller <NUM>. In addition, the PD signal transmitted by the charging module <NUM> is modulated by the first PD controller <NUM>, and processed by the first waveform adjustment circuit <NUM> and the first common mode output amplifier <NUM>, and then a common mode signal which can be transmitted through the D+ pin and the D- pin is formed, and the common mode signal is transmitted to the to-be-charged device through the D+ pin and the D- pin, thereby implementing PD charging between the charger and the to-be-charged device.

As an optional implementation, as shown in <FIG>, the first PD controller <NUM> is configured to generate a PD charging signal when a value of a first electrical signal from a positive data pin (D+ pin as shown in <FIG>) and a negative data pin (D- pin as shown in <FIG>) detected by the first common mode input amplifier <NUM> is less than a preset value, and configured to transmit the PD charging signal to the positive data pin and the negative data pin through the first waveform adjustment circuit <NUM> and the first common mode output amplifier <NUM>, so as to perform PD charging on the to-be-charged device. The preset value does not overlap a value of a second electrical signal from the D+ pin and the D- pin during transmission of a non-PD charging signal.

In specific implementation, the value of the first electrical signal may be a voltage value of a communication signal transmitted through the D+ pin and the D- pin, and the preset value may be 500mV.

Specifically, the preset value may be greater than a high threshold VHSOH of a high-speed (High-speed, HS) signal of USB <NUM> and less than a high threshold VOH of a low-speed (Low-speed, LS) signal.

In this implementation, the first PD controller <NUM> may transmit a PD communication signal at a time other than a transmission time for transmitting a non-PD charging signal through the D+ pin and the D- pin, so that mutual interference between the PD communication signal and the non-PD charging signal can be prevented.

As an optional implementation, the first common mode input amplifier <NUM> is configured to amplify a first communication signal transmitted through the positive data pin (the D+ pin as shown in <FIG>) and a second communication signal transmitted through the negative data pin (the D- pin as shown in <FIG>), and obtain a common mode signal based on the first communication signal and the second communication signal.

In specific implementation, the first communication signal and the second communication signal may be common mode signals output by the second PD transceiving module <NUM> in the data cable <NUM> connected to the charger <NUM>. Specifically, the second PD transceiving module <NUM> can convert a PD charging signal transmitted by a to-be-charged device through the CC pin into the first communication signal and the second communication signal, and transmit the first communication signal through the D+ pin and the second communication pin through the D- pin. This way, the first common mode input amplifier <NUM> may receive the first communication signal through the D+ pin and the second communication signal through the D- pin.

In addition, the first common mode input amplifier <NUM> may include an adding circuit, and that the common mode signals are obtained based on the first communication signal and the second communication signal may be understood as that one signal is obtained from common mode signals by adding the first communication signal and the second communication signal.

In this implementation, the first common mode input amplifier <NUM> converts two signals transmitted in common mode through the D+ pin and the D- pin into one signal, to facilitate mediation by the first PD controller.

As an optional implementation, the first common mode output amplifier <NUM> is configured to split a sine wave signal processed by the first waveform adjustment circuit <NUM> into a third communication signal and a fourth communication signal, and the third communication signal and the fourth communication signal are common mode signals.

In specific implementation, the third communication signal and the fourth communication signal may be same sine signals, and the same sine signals are transmitted in common mode on the D+ pin and the D- pin.

In this implementation, first, a square wave signal output by the first PD controller <NUM> is adjusted by the first waveform adjustment circuit <NUM> into the sine wave signal, and then the sine wave signal is split into common mode signals by the first common mode output amplifier <NUM>, so as to facilitate common mode transmission through the D+ pin and the D- pin.

It should be noted that a PD transceiving module is also disposed in a data cable connected to the charger <NUM> or in the to-be-charged device connected to the data cable, and the PD transceiving module is connected to the D+ pin, the D- pin, and the CC pin. Therefore, when the third communication signal and the fourth communication signal transmitted in common mode is received through the D+ pin and the D- pin, the communication signals are added, to keep a common mode signal (that is, a PD charging signal), and then the common mode signal is transmitted to the PD charging module in the to-be-charged device through the CC pin, to implement the PD charging.

As an optional implementation, in a case that the charger <NUM> is connected to the first data cable, if a priority of the non-PD charging is greater than a priority of the PD charging, the non-PD charging is performed on the to-be-charged device; and if the non-PD charging fails, the PD charging is performed on the to-be-charged device.

In a case that the charger <NUM> is connected to the first data cable, if the priority of the PD charging is greater than the priority of the non-PD charging, the PD charging is performed on the to-be-charged device; and if the PD charging fails, the non-PD charging is performed on the to-be-charged device.

In specific implementation, the non-PD charging may be a charging mode based on a preset communication protocol, and a communication signal in the preset protocol may be transmitted through a data pin.

In application, the preset communication protocol is also pre-configured in a to-be-charged device standardly equipped for the charger <NUM>, so that a charging parameter may be negotiated based on the preset communication protocol, and the standardly equipped to-be-charged device may be charged based on a standard and according to the charging parameter determined through negotiation.

In addition, when the charging device shown in <FIG> is connected to a non-standardly equipped to-be-charged device, the non-standardly equipped to-be-charged device is not configured with the preset communication protocol, so only PD communication may be implemented.

Definitely, as shown in <FIG>, the charging device may further be connected to a to-be-charged device that is not standardly equipped and does not support the PD charging. In this case, a charging parameter may be negotiated according to a general charging protocol (for example, a general communication protocol for a communication signal that can be transmitted on the D+ pin and the D- pin), and the non-standardly equipped to-be-charged device is charged according to the charging parameter determined through negotiation, or the to-be-charged device is charged directly according to a default charging parameter.

In this implementation, a priority of the PD charging and a priority of the non-PD charging are set in advance, so that a charging protocol with a high priority may be used for charging the to-be-charged device.

As an optional implementation, the data pins include a positive data pin and a negative data pin, and the second PD transceiving module <NUM> includes a second PD controller, a second waveform adjustment circuit, a second common mode output amplifier, a second filter circuit, and a second common mode input amplifier.

A first terminal of the second PD controller is connected to the CC pin, a second terminal of the second PD controller is connected to a first terminal of the second waveform adjustment circuit, a second terminal of the second waveform adjustment circuit is connected to a first terminal of the second common mode output amplifier, a second terminal of the second common mode output amplifier is connected to the positive data pin, and a third terminal of the second common mode output amplifier is connected to the negative data pin. A third terminal of the second PD controller is connected to a first terminal of the second filter circuit, a second terminal of the second filter circuit is connected to a first terminal of the second common mode input amplifier, a second terminal of the second common mode input amplifier is connected to the positive data pin, and a third terminal of the second common mode input amplifier is connected to the negative data pin.

The second PD controller is configured to obtain a square wave signal transmitted through the CC pin. The second waveform adjustment circuit is configured to convert the square wave signal obtained by the second PD controller into a sine wave signal and reduce an amplitude of the sine wave signal. The second common mode output amplifier is configured to convert a reduced sine wave signal into common mode signals and perform common mode transmission through the positive data pin and the negative data pin.

The second common mode input amplifier is configured to amplify the common mode signals transmitted through the positive data pin and the negative data pin. The second filter circuit is configured to perform filtering on the amplified common mode signal, convert a filtered and amplified common mode signal into a square wave signal, and then transmit the square wave signal to the second PD controller, for transmission to the to-be-charged device through the CC pin.

It should be noted that the second PD transceiving module <NUM> in the data cable <NUM> may have a same structure and a same operating principle as the first PD transceiving module <NUM> in <FIG>, but a difference is that: the first terminal of the first PD transceiving module <NUM> is connected to the charging module <NUM>, while the first terminal of the second PD transceiving module <NUM> is connected to the CC pin, so that the second PD transceiving module <NUM> is configured to implement mutual conversion between the PD signal transmitted through the CC pin and the common mode signal transmitted through the data pin. An operating principle of the second PD transceiving module <NUM> will not be further described herein.

As an optional implementation, the second common mode input amplifier is configured to obtain a third communication signal transmitted through the positive data pin and a fourth communication signal transmitted through the negative data pin, and obtain a common mode signal based on the third communication signal and the fourth communication signal.

In specific implementation, the third communication signal and the fourth communication signal may be common mode signals output by the first PD transceiving module <NUM> in the charger <NUM> connected to the data cable <NUM>. Specifically, the first PD transceiving module <NUM> can convert a PD charging signal output by a charging module into the third communication signal and the fourth communication signal, and transmit the third communication signal on the D+ pin and the fourth communication signal on the D- pin. This way, the second common mode input amplifier can receive the third communication signal through the D+ pin and the fourth communication signal through the D- pin.

For a structure and operating principle of the second common mode input amplifier, please refer to the structure and operating principle of the first common mode input amplifier, and the second common mode input amplifier can play a same role as the first common mode input amplifier, which will not be described herein again.

As an optional implementation, the second common mode output amplifier is configured to split the sine wave signal processed by the second waveform adjustment circuit into a first communication signal and a second communication signal, where the first communication signal and the second communication signal are common mode signals.

For an operating principle of the second common mode output amplifier, please refer to the operating principle of the first common mode output amplifier. In addition, the second common mode output amplifier can play a same role as the first common mode output amplifier, which will not be described herein again.

It can be understood that the embodiments described in the present disclosure may be implemented by hardware, software, firmware, middleware, microcode, or a combination thereof. For implementation with hardware, the module, unit, submodule, subunit, and the like may be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), a digital signal processor (Digital Signal Processing, DSP), a digital signal processing device (DSP Device, DSPD), a programmable logic device (Programmable Logic Device, PLD), a field-programmable gate array (Field-Programmable Gate Array, FPGA), a general-purpose processor, a controller, a microcontroller, a microprocessor, another electronic unit for implementing the functions of this application, or a combination thereof.

It should be noted that, in this specification, the terms "include", "comprise", or their any other variant is intended to cover a non-exclusive inclusion, so that a process, a method, an article, or an apparatus that includes a list of elements not only includes those elements but also includes other elements which are not expressly listed, or further includes elements inherent to such process, method, article, or apparatus. An element limited by "includes a. " does not, without more constraints, preclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element. In addition, it should be noted that the scope of the method and the electronic device in the embodiments of this application is not limited to performing functions in an illustrated or discussed sequence, and may further include performing functions in a basically simultaneous manner or in a reverse sequence according to the functions concerned. For example, the described method may be performed in an order different from that described, and the steps may be added, omitted, or combined. In addition, features described with reference to some examples may be combined in other examples.

Based on the descriptions of the foregoing implementations, a person skilled in the art may clearly understand that the method in the foregoing embodiment may be implemented by software in addition to a necessary universal hardware platform or by hardware only. In most circumstances, the former is a preferred implementation. Based on such understanding, the technical solutions of this application essentially, or the part contributing to the prior art may be implemented in a form of a software product. The computer software product is stored in a storage medium (for example, a ROM/RAM, a magnetic disk, or a compact disc), and includes several instructions for instructing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, a network device, or the like) to perform the method described in the embodiments of this application.

Claim 1:
A charger (<NUM>), comprising a first Type-A port (<NUM>), a charging module (<NUM>), and a first power delivery, PD, transceiving module (<NUM>); wherein
the first Type-A port (<NUM>) comprises a data pin, a first terminal of the charging module (<NUM>) is connected to the data pin, a second terminal of the charging module (<NUM>) is connected to a first terminal of the first PD transceiving module (<NUM>), and a second terminal of the first PD transceiving module (<NUM>) is connected to the data pin;
in a case that the charger (<NUM>) is connected to a data cable (<NUM>), if the data cable (<NUM>) is a first data cable, the first PD transceiving module (<NUM>) is in an operating state, and the charging module (<NUM>) performs non-PD charging on a to-be-charged device based on a differential mode signal transmitted through the data pin, or the charging module (<NUM>) performs PD charging on the to-be-charged device based on a common mode signal processed by the first PD transceiving module (<NUM>) and transmitted through the data pin;
in a case that the charger (<NUM>) is connected to the data cable (<NUM>), if the data cable (<NUM>) is a second data cable, the first PD transceiving module (<NUM>) is in a non-operating state, and the charging module (<NUM>) performs non-PD charging on the to-be-charged device based on a differential mode signal transmitted through the data pin; wherein
in a case that the first PD transceiving module (<NUM>) receives a first signal transmitted through the data pin, the data cable (<NUM>) is the first data cable; and in a case that the first PD transceiving module (<NUM>) does not receive the first signal transmitted through the data pin, the data cable (<NUM>) is the second data cable, and the first data cable generates the first signal when connected to the to-be-charged device.