Charging method and device and storage medium

By using the single-wire channel charging protocol in smart terminals, the compatibility problem of fast charging protocol and USB2.0 data transmission is solved, and fast charging and data transmission is achieved while improving the user experience.

CN119070412APending Publication Date: 2024-12-03BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310637863.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-31
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

The existing fast charging protocol is based on D+/D-channel communication and is not compatible with fast charging and USB2.0 data transmission, affecting the user experience.

Method used

Send and receive signals through a single-wire channel, determine the charging protocol supported by the device to be charged, realize the target charging protocol based on a single-wire channel, reduce the communication channel, and be compatible with other charging protocols to achieve fast charging and USB2.0 data transmission.

Benefits of technology

It realizes compatibility between fast charging and USB 2.0 data transmission, improves user experience, saves cables, and reduces the use of communication channels.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119070412A_ABST
    Figure CN119070412A_ABST
Patent Text Reader

Abstract

The invention relates to a charging method and device and a storage medium. The charging method comprises the steps that under the condition that power supply equipment is connected with to-be-charged equipment, a first signal is sent to the to-be-charged equipment through a single-line channel, and the first signal is used for representing a target charging protocol supported by the power supply equipment; receiving a second signal sent by the to-be-charged device through the single-line channel, wherein the second signal is a signal which responds to the first signal when the to-be-charged device determines to support the target charging protocol; and in response to the received second signal, determining that the to-be-charged equipment supports the target charging protocol, and charging the to-be-charged equipment based on the target charging protocol. According to the invention, the charging communication between the power supply equipment and the to-be-charged equipment based on the single-line channel is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of charging of smart mobile terminals, and in particular to a charging method, device and storage medium. Background Art

[0002] As the performance of smart terminals continues to improve, the power consumption of smart terminals continues to increase, the battery capacity continues to increase, and the demand for fast charging of smart terminals continues to increase. In recent years, various terminal manufacturers have developed their own fast charging protocols.

[0003] At present, the fast charging protocol developed by various terminal manufacturers is a fast charging protocol based on D+ / D- (Data+ / Data-) channel communication.

[0004] However, since the USB2.0 data transmission process is also implemented based on the charging protocol of D+ / D- (Data+ / Data-) channel communication, the charging protocol based on D+ / D- (Data+ / Data-) channel communication is not compatible with fast charging and USB2.0 data transmission, thus affecting the user experience of fast charging and USB2.0 data transmission scenarios. Summary of the invention

[0005] In order to overcome the problems existing in the related art, the present disclosure provides a charging method, a device and a storage medium.

[0006] According to a first aspect of an embodiment of the present disclosure, a charging method is provided, including: when a power supply device is connected to a device to be charged, sending a first signal to the device to be charged through a single-line channel, the first signal being used to characterize a target charging protocol supported by the power supply device; receiving a second signal sent by the device to be charged through the single-line channel, the second signal being a signal that the device to be charged responds to the first signal when determining that it supports the target charging protocol; in response to receiving the second signal, determining that the device to be charged supports the target charging protocol, and charging the device to be charged based on the target charging protocol.

[0007] In one implementation, sending the first signal to the device to be charged through the single-line channel includes: sending the first signal to the device to be charged through the single-line channel within a first time period.

[0008] In one implementation, before receiving a second signal sent by the device to be charged through the single-line channel, the method further includes: waiting for a second time period after sending the first signal.

[0009] In one embodiment, the charging protocol supported by the power supply device is the target charging protocol, and the second duration is determined based on the communication duration, which is the duration for the power supply device to communicate with the device to be charged and trigger the device to be charged to send the second signal.

[0010] In one embodiment, the charging protocols supported by the power supply device include a first charging protocol and a second charging protocol, the first charging protocol is the target charging protocol, and the second charging protocol is another charging protocol different from the first charging protocol; the second duration is determined based on the duration of the power supply device sending a third signal, and the third signal is used to characterize the second charging protocol.

[0011] In one embodiment, the method further includes: within the second time period, sending the third signal to the device to be charged through the single-line channel.

[0012] In one embodiment, the method further includes: in response to receiving a fourth signal, charging the device to be charged based on the second charging protocol; the fourth signal is a signal responding to the third signal.

[0013] In one implementation, the other charging protocols include at least one of the following: a power transmission PD protocol and a power transmission PD private protocol.

[0014] In one embodiment, the method further includes: if the second signal is not received within a third time period, resending the first signal; the third time period is a set time period after sending the first signal.

[0015] In one implementation, the first signal is a square wave signal.

[0016] In one implementation, sending the first signal through the single-line channel includes: raising the level of the single-line channel to a first level, repeating N times to form a first signal, and sending the first signal, where N is a positive integer.

[0017] In one implementation, the second signal is a level signal used by the power supply device to charge the device to be charged based on the target charging protocol.

[0018] In one implementation, the second signal is formed by pulling up the level of the single-line channel to a second level and maintaining the level.

[0019] In one implementation, the single-line channel is a CC channel.

[0020] According to a second aspect of an embodiment of the present disclosure, a charging method is provided, including: receiving a first signal, the first signal being sent through a single-line channel when a power supply device is triggered to charge a device to be charged, the first signal being used to characterize a target charging protocol supported by the power supply device; in response to the device to be charged supporting the target charging protocol, sending a second signal to the power supply device through the single-line channel, the second signal being a signal that the device to be charged responds to the first signal when it is determined that the device to be charged supports the target charging protocol; and charging based on the target charging protocol.

[0021] In one embodiment, the method further includes: after receiving the first signal, within a second time period, receiving a third signal sent by the power supply device through the single-line channel, the third signal being used to characterize a second charging protocol; the second charging protocol is a charging protocol other than the first charging protocol, the first charging protocol is the target charging protocol, and the charging protocols supported by the power supply device include the first charging protocol and the second charging protocol.

[0022] In one embodiment, the method further includes: in response to receiving the third signal, determining the priority of the first charging protocol and the second charging protocol; if the priority of the second charging protocol is higher than the priority of the first charging protocol, sending a fourth signal, wherein the fourth signal is a signal for the charged device to respond to the third signal when it is determined that the second charging protocol is supported.

[0023] In one implementation, before sending the second signal, the method further includes: determining that a priority of the first charging protocol is higher than a priority of the second charging protocol.

[0024] In one implementation, the other charging protocols include at least one of the following: a power transmission PD protocol and a power transmission PD private protocol.

[0025] In one embodiment, the method further includes: re-receiving the first signal.

[0026] In one implementation, the first signal is a square wave signal.

[0027] In one implementation, the first signal is formed by pulling up the level of the single-line channel to a first level and repeating N times, where N is a positive integer.

[0028] In one implementation, the second signal is a level signal used by the power supply device to charge the device to be charged based on the target charging protocol.

[0029] In one implementation, sending the second signal to the power supply device through the single-line channel includes: raising the level of the single-line channel to a second level and maintaining it to form a second signal, and sending the second signal.

[0030] In one implementation, the single-line channel is a CC channel.

[0031] According to a third aspect of an embodiment of the present disclosure, a charging device is provided, comprising: a sending unit, for sending a first signal to a device to be charged through a single-line channel when a power supply device and the device to be charged are connected, the first signal being used to characterize a target charging protocol supported by the power supply device; a receiving unit, for receiving a second signal sent by the device to be charged through the single-line channel, the second signal being a signal that the device to be charged responds to the first signal when determining that it supports the target charging protocol; and a processing unit, for determining, in response to receiving the second signal, that the device to be charged supports the target charging protocol, and charging the device to be charged based on the target charging protocol.

[0032] In one implementation, the sending unit sends the first signal to the device to be charged through the single-line channel in the following manner: sending the first signal to the device to be charged through the single-line channel within a first time period.

[0033] In one implementation, before receiving the second signal sent by the device to be charged through the single-line channel, the processing unit is configured to: wait for a second time period after sending the first signal.

[0034] In one embodiment, the charging protocol supported by the power supply device is the target charging protocol, and the second duration is determined based on the communication duration, which is the duration for the power supply device to communicate with the device to be charged and trigger the device to be charged to send the second signal.

[0035] In one embodiment, the charging protocols supported by the power supply device include a first charging protocol and a second charging protocol, the first charging protocol is the target charging protocol, and the second charging protocol is another charging protocol different from the first charging protocol; the second duration is determined based on the duration of the power supply device sending a third signal, and the third signal is used to characterize the second charging protocol.

[0036] In one implementation, the sending unit is used to: send the third signal to the device to be charged through the single-line channel within the second time period.

[0037] In one embodiment, the processing unit is used to: in response to receiving a fourth signal, charge the device to be charged based on the second charging protocol; the fourth signal is a signal responding to the third signal.

[0038] In one implementation, the other charging protocols include at least one of the following: a power transmission PD protocol and a power transmission PD private protocol.

[0039] In one embodiment, the sending unit is further used to: resend the first signal if the second signal is not received within a third time period; the third time period is a set time period after sending the first signal.

[0040] In one implementation, the first signal is a square wave signal.

[0041] In one implementation, the sending unit sends the first signal through the single-line channel in the following manner: raising the level of the single-line channel to a first level, repeating N times to form a first signal, and sending the first signal, where N is a positive integer.

[0042] In one implementation, the second signal is a level signal used by the power supply device to charge the device to be charged based on the target charging protocol.

[0043] In one implementation, the second signal is formed by pulling up the level of the single-line channel to a second level and maintaining the level.

[0044] In one implementation, the single-line channel is a CC channel.

[0045] According to a fourth aspect of an embodiment of the present disclosure, a charging device is provided, including: a receiving unit, for receiving a first signal, the first signal being sent through a single-line channel when the power supply device is triggered to charge a device to be charged, the first signal being used to characterize a target charging protocol supported by the power supply device; a sending unit, for sending a second signal to the power supply device through the single-line channel in response to the device to be charged supporting the target charging protocol, the second signal being a signal that the device to be charged responds to the first signal when determining that it supports the target charging protocol; and a processing unit, for charging based on the target charging protocol.

[0046] In one embodiment, the receiving unit is used to: after receiving the first signal, receive a third signal sent by the power supply device through the single-line channel within a second time period, and the third signal is used to characterize a second charging protocol; the second charging protocol is another charging protocol different from the first charging protocol, the first charging protocol is the target charging protocol, and the charging protocols supported by the power supply device include the first charging protocol and the second charging protocol.

[0047] In one embodiment, the device includes: in response to receiving the third signal, the processing unit is used to determine the priority of the first charging protocol and the second charging protocol; if the priority of the second charging protocol is higher than the priority of the first charging protocol, the sending unit is used to send a fourth signal, and the fourth signal is a signal that the charged device responds to the third signal when it determines that it supports the second charging protocol.

[0048] In one implementation, before sending the second signal, the processing unit is configured to: determine that a priority of the first charging protocol is higher than a priority of the second charging protocol.

[0049] In one implementation, the other charging protocols include at least one of the following: a power transmission PD protocol and a power transmission PD private protocol.

[0050] In one implementation, the receiving unit is used to: re-receive the first signal.

[0051] In one implementation, the first signal is a square wave signal.

[0052] In one implementation, the first signal is formed by pulling up the level of the single-line channel to a first level and repeating N times, where N is a positive integer.

[0053] In one implementation, the second signal is a level signal used by the power supply device to charge the device to be charged based on the target charging protocol.

[0054] In one implementation, the sending unit sends the second signal to the power supply device through the single-line channel in the following manner: raising the level of the single-line channel to a second level and maintaining it to form a second signal, and sending the second signal.

[0055] In one implementation, the single-line channel is a CC channel.

[0056] According to a fifth aspect of an embodiment of the present disclosure, a charging device is provided, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to: execute the charging method described in the first aspect or any one of the embodiments of the first aspect.

[0057] According to the sixth aspect of an embodiment of the present disclosure, a storage medium is provided, in which instructions are stored. When the instructions in the storage medium are executed by a processor of a power supply device or a device to be charged, the terminal is enabled to execute any one of the charging methods described above.

[0058] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: when the power supply device is triggered to charge the device to be charged, the signal transmission between the power supply device and the device to be charged can be received or sent through a single-line channel, thereby reducing the channels required for communication and saving wires; and through the target charging protocol of the present disclosure, while achieving single-line channel fast charging, USB2.0 data transmission based on the charging protocol of D+ / D- (Data+ / Data-) channel communication can also be performed, thereby improving the user experience.

[0059] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0061] Figure 1 The figure is a flow chart of a charging method according to an exemplary embodiment.

[0062] Figure 2a is a flow chart showing another charging method according to an exemplary embodiment.

[0063] Figure 2b The figure is a flow chart of a charging method according to an exemplary embodiment.

[0064] Figure 3 The figure is a flow chart of a charging method according to an exemplary embodiment.

[0065] Figure 4a The invention is a flow chart showing a method of receiving a second signal sent by a device to be charged through a single-line channel according to an exemplary embodiment.

[0066] Figure 4b The present invention is a flowchart showing another method of receiving a second signal sent by a device to be charged through a single-line channel according to an exemplary embodiment.

[0067] Figure 5a The figure is a flow chart of a charging method according to an exemplary embodiment.

[0068] Figure 5b is a flow chart showing another charging method according to an exemplary embodiment.

[0069] Figure 6 The figure is a flow chart of a charging method according to an exemplary embodiment.

[0070] Figure 7a The figure is a flow chart of a charging method according to an exemplary embodiment.

[0071] Figure 7b The figure is a flow chart of a charging method according to an exemplary embodiment.

[0072] Figure 8 The figure is a schematic diagram showing a handshake method of a target charging protocol based on single-line channel communication according to an exemplary embodiment.

[0073] Fig. 9 The diagram is a schematic diagram showing a handshake method of a compatible communication protocol according to an exemplary embodiment.

[0074] Fig.10 is a schematic diagram showing a charging method according to an exemplary embodiment.

[0075] Fig.11 is a schematic diagram showing a charging method according to an exemplary embodiment.

[0076] Fig.12 is a block diagram of a charging device according to an exemplary embodiment.

[0077] Fig.13 is a block diagram of a charging device according to an exemplary embodiment.

[0078] Fig.14 The invention is a block diagram of a device for charging according to an exemplary embodiment. DETAILED DESCRIPTION

[0079] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure.

[0080] As the performance of smart terminals continues to improve, the power consumption of smart terminals continues to increase, the battery capacity continues to increase, and the demand for fast charging of smart terminals continues to increase. In recent years, various terminal manufacturers have developed their own fast charging protocols.

[0081] At present, the fast charging protocol developed by various terminal manufacturers is a fast charging protocol based on D+ / D- (Data+ / Data-) channel communication.

[0082] However, since the USB2.0 data transmission process is also implemented based on the charging protocol of D+ / D- (Data+ / Data-) channel communication, the charging protocol based on D+ / D- (Data+ / Data-) channel communication is not compatible with fast charging and USB2.0 data transmission, thus affecting the user experience of fast charging and USB2.0 data transmission scenarios.

[0083] In view of this, the present disclosure proposes a charging method, and through the charging communication of a single-line channel, the channels required for communication are reduced, and the D+ / D- (Data+ / Data-) channels are not occupied. And through the protocol based on the single-line channel communication of the present disclosure, it can be compatible with other charging communication protocols, thereby realizing the scenario of fast charging and USB2.0 data transmission at the same time, improving the user experience.

[0084] The charging method provided in the present disclosure is mainly applied to power supply equipment and devices to be charged. The device to be charged can be quickly charged through a protocol based on single-line channel communication. The device to be charged in the present disclosure can be a smart phone, and can also be expanded to other smart mobile terminals, which is not specifically limited in the present disclosure.

[0085] In addition, the charging method provided in the embodiment of the present disclosure is mainly applied in the normal charging scenario of a smart phone, and can also be extended to the charging scenarios of other smart mobile terminals, and the present disclosure does not make any specific limitations on this.

[0086] The charging methods provided in the following embodiments are applied to power supply equipment.

[0087] Figure 1 is a flow chart of a charging method according to an exemplary embodiment. Figure 1 As shown, it is applied to power supply equipment and includes the following steps.

[0088] In step S101, when the power supply device is connected to the device to be charged, a first signal is sent to the device to be charged through a single-line channel.

[0089] In the embodiment of the present disclosure, the first signal is used to characterize the target charging protocol supported by the power supply device. The target charging protocol is a protocol based on single-line channel communication provided by the present disclosure.

[0090] In one embodiment, when the device to be charged receives the first signal through the single-line channel, the device to be charged may determine that the power supply device supports the target charging protocol.

[0091] The prerequisite for the power supply device to be triggered to charge the device to be charged is that a connection between the power supply device and the device to be charged is established through a USB cable.

[0092] In one embodiment, after the power supply device and the device to be charged are connected via a USB cable, the power supply device is triggered to charge the device to be charged.

[0093] Further, taking the connection of a USB Type-C cable as an example, the specific implementation process of how to determine that the power supply device supplies power to the device to be charged when the power supply device is connected to the device to be charged is explained as follows:

[0094] DFP (downstream port) is the port for power supply device, and UFP (upstream port) is the port for device to be charged. There is a pull-up resistor on the Configuration Channel (CC) in DFP, and there is a corresponding pull-down resistor in UFP. Before DFP and UFP are connected, VBUS has no output. After the two are connected, DFP detects that the level of CC pin is pulled low, and DFP recognizes that UFP device is connected and turns on MOSFET on VBUS to power UFP device.

[0095] In step S102, a second signal sent by the device to be charged is received through a single-line channel, where the second signal is a signal that the device to be charged responds to the first signal when it determines that it supports the target charging protocol.

[0096] In one embodiment, after the power supply device sends a first signal of the supported target charging protocol to the device to be charged through a single-line channel, if a second signal sent by the device to be charged is received through the single-line channel within a very short time, it can be determined that the device to be charged also supports the target charging protocol.

[0097] In step S103, in response to receiving the second signal, it is determined that the device to be charged supports the target charging protocol, and the device to be charged is charged based on the target charging protocol.

[0098] When the power supply device receives the second information sent by the device to be charged, the power supply device may determine that the device to be charged supports the target charging protocol, and quickly charge the device to be charged using the target charging protocol through the determined target charging protocol.

[0099] In the embodiment of the present disclosure, different signals are transmitted mutually between the power supply device and the device to be charged based on a single-line channel.

[0100] Through the above embodiments, the target charging protocol based on the single-line channel communication can reduce the channels required for communication, and the single-line channel does not occupy the D+D- channel, which helps to realize the scenario of simultaneous fast charging and USB2.0 data transmission, thereby improving the user experience.

[0101] In one implementation, within a first time period, a first signal is sent to the device to be charged via a single-line channel.

[0102] In response to the power supply device being triggered to charge the device to be charged, based on a first time period, a first signal is sent to the device to be charged through a single-line channel, so as to facilitate establishment of a target charging protocol based on single-line channel communication between the device to be charged and the power supply device, wherein the target charging protocol is a fast charging protocol.

[0103] In one embodiment, if the protocols supported by the power supply device include a target charging protocol and other charging protocols different from the target charging protocol, the first signal determined based on the target charging protocol needs to be sent before the signals of other charging protocols are sent, that is, it is sent to the device to be charged through a single-line channel to avoid conflicts between the first signal and the signals of other charging protocols, which may result in the inability to establish communication.

[0104] In one implementation, after the power supply device sends the first signal to the device to be charged through the single-line channel within the first time period, it needs to wait for the second time period.

[0105] In the embodiment of the present disclosure, the action performed by the power supply device within the second time period is determined according to the charging protocol supported by the power supply device.

[0106] In one embodiment, if the charging protocols supported by the power supply device only include the target charging protocol, the second duration is determined based on the communication duration, where the communication duration is the duration for the power supply device to communicate with the device to be charged and trigger the device to be charged to send a second signal.

[0107] In one example, in the disclosed embodiment, the communication duration may be an average value, a median value, a maximum value, etc. obtained from communication duration data of multiple tests, and the second duration is determined based on the communication duration, so as to avoid waiting for too long. The communication duration data of the test may be historical data.

[0108] In another example, in the embodiment of the present disclosure, the communication duration may be determined based on the actual communication duration.

[0109] Figure 2a is a flow chart of another charging method according to an exemplary embodiment. Figure 2a As shown, the following steps are included.

[0110] In step S201, in response to the charging protocols supported by the power supply device including a single target charging protocol, a first signal is sent to the device to be charged through a single-line channel within a first time period.

[0111] In one embodiment, if the first time length is 0 to 100 milliseconds, the power supply device needs to send the first signal to the device to be charged within 0 to 100 milliseconds through a single-line channel.

[0112] In step S202, a second signal sent by the device to be charged is received through a single-line channel, where the second signal is a signal that the device to be charged responds to the first signal when it determines that it supports the target charging protocol.

[0113] The specific implementation of step S202 can be referred to Figure 1 The specific implementation of step S102 will not be explained here.

[0114] In step S203, in response to receiving the second signal, it is determined that the device to be charged supports the target charging protocol, and the device to be charged is charged based on the target charging protocol.

[0115] The specific implementation of step S203 can be found in Figure 1 The specific implementation of step S103 will not be explained here.

[0116] In one embodiment, after the power supply device sends the first signal to the device to be charged through the single-line channel within the first time period, it waits for a second time period. During the second time period, the power supply device attempts to establish communication with the device to be charged based on the target charging protocol, that is, triggers the device to be charged to send the second signal by sending the first signal.

[0117] In the embodiment of the present disclosure, when the power supply device is triggered to charge the device to be charged, a first signal is sent to the device to be charged in a very short time, so as to quickly establish a target charging protocol between the power supply device and the device to be charged to achieve fast charging.

[0118] In one embodiment, if the charging protocols supported by the power supply device include a first charging protocol and a second charging protocol, the second duration is determined based on the duration of the power supply device sending a third signal, and the third signal is used to characterize the second charging protocol. Among them, the first charging protocol in the embodiment of the present disclosure is substantially the same as the target charging protocol in the above embodiment, and the second charging protocol is a charging protocol other than the first charging protocol, so the second charging protocol is substantially the same as the other charging protocols other than the target charging protocol in the above embodiment. Therefore, the first charging protocol and the target charging protocol as well as the second charging protocol and the other charging protocols other than the target charging protocol can be equivalently replaced in the present disclosure.

[0119] Figure 2b is a flow chart of a charging method according to an exemplary embodiment. Figure 2b As shown, the following steps are included.

[0120] In step S301, in response to the charging protocols supported by the power supply device including a first charging protocol and a second charging protocol, a first signal is sent to the device to be charged through a single-line channel within a first time period.

[0121] In one embodiment of the present disclosure, a target charging protocol based on single-line channel communication is compatible with other charging protocols different from the target charging protocol. In this case, a first signal of the power supply device is sent to the device to be charged before a third signal of the other charging protocol different from the target charging protocol is sent.

[0122] In the embodiment of the present disclosure, other charging protocols different from the target charging protocol can be determined according to the time of sending the protocol signal set by the protocol itself, which is not specifically described in the present disclosure.

[0123] In one embodiment, if the start time of the power supply device sending the third signal is 101 milliseconds, the power supply device sends the third signal to the device to be charged between 100 and 250 milliseconds. To avoid protocol conflicts, the time for the power supply device to send the first signal can be set to 0 to 100 milliseconds, that is, the first duration is 0 to 100 milliseconds.

[0124] In step S302, a second signal sent by the device to be charged is received through a single-line channel, where the second signal is a signal that the device to be charged responds to the first signal when it determines that it supports the target charging protocol.

[0125] The specific implementation of step S302 can be referred to Figure 1 The specific implementation of step S102 will not be explained here.

[0126] In step S303, in response to receiving the second signal, it is determined that the device to be charged supports the target charging protocol, and the device to be charged is charged based on the target charging protocol.

[0127] The specific implementation of step S303 can be found in Figure 1 The specific implementation of step S103 will not be explained here.

[0128] In one embodiment, since the power supply device supports the target charging protocol and is compatible with other charging protocols different from the target charging protocol, after the power supply device sends the first signal to the device to be charged through the single-line channel within the first time period, it waits for the second time period. Within the second time period, the power supply device sends a third signal based on other charging protocols different from the target charging protocol to the device to be charged.

[0129] In one embodiment, if the duration of sending the third signal based on another charging protocol different from the target charging protocol is 100-250 milliseconds, the second duration is 100-250 milliseconds.

[0130] In the embodiment of the present disclosure, after the power supply device sends the first signal and the third signal to the device to be charged, it receives the second signal sent by the device to be charged, wherein the second signal is a signal that the device to be charged responds to the first signal when it determines that it supports the target charging protocol. Two situations can be described: one is that the device to be charged only supports the target charging protocol based on the first signal; the other is that the device to be charged supports both the target charging protocol based on the first signal and other charging protocols different from the target charging protocol based on the third signal, but the device to be charged sets the priority of the target charging protocol to be higher than the priority of other charging protocols.

[0131] Through the above embodiments, the target charging protocol based on the single-line channel communication can reduce the channels required for communication and save wires, and the target charging protocol based on the single-line channel communication can be compatible with other charging protocols.

[0132] The third signal is used to represent other charging protocols different from the target charging protocol, which may be one charging protocol, two charging protocols, etc., and is not specifically limited in the present disclosure.

[0133] In one embodiment, if the power supply device supports the target charging protocol and is compatible with two other charging protocols different from the target charging protocol, the second duration is determined according to the total duration of sending signals of the two other charging protocols different from the target charging protocol.

[0134] Through the above embodiments, the target charging protocol based on the single-line channel communication can reduce the channels required for communication and save wires, and the target charging protocol based on the single-line channel communication can be compatible with other charging protocols.

[0135] Figure 3 is a flow chart of a charging method according to an exemplary embodiment. Figure 3 As shown, the following steps are included.

[0136] In step S401, in response to the charging protocols supported by the power supply device including a first charging protocol and a second charging protocol, a first signal is sent to the device to be charged through a single-line channel within a first time period.

[0137] The specific implementation of step S401 can be referred to Figure 3 The specific implementation of step S301 will not be explained here.

[0138] In step S402, in response to receiving the fourth signal, the device to be charged is charged based on the second charging protocol.

[0139] In the embodiment of the present disclosure, the fourth signal is a signal responding to the third signal.

[0140] According to the above embodiment, two situations can be described: one is that the device to be charged only supports other charging protocols based on the third signal that are different from the target charging protocol; the other is that the device to be charged supports both the target charging protocol based on the first signal and other charging protocols based on the third signal that are different from the target charging protocol, but the device to be charged is set to give other charging protocols a higher priority than the target charging protocol.

[0141] In another embodiment of the present disclosure, the device to be charged can set priorities for the charging protocols it supports. Therefore, when the device to be charged receives multiple charging protocols sent by the power supply device, it can filter out the charging protocols supported by the device to be charged and select the most appropriate charging protocol based on the priority set for the charging protocol by the device to be charged.

[0142] When the power supply device sends the first signal and the third signal to the device to be charged in chronological order through the single-line channel, and the power supply device receives the fourth signal sent by the device to be charged, the power supply device can determine that the device to be charged supports other charging protocols.

[0143] Furthermore, when the device to be charged supports the target charging protocol and other charging protocols, the power supply device receives the fourth signal sent by the device to be charged. It can be understood that the device to be charged sets the priority of other charging protocols higher than the target charging protocol in advance based on the target charging protocol and other charging protocols supported by itself.

[0144] Through the above embodiments, the target charging protocol based on the single-line channel communication can reduce the channels required for communication and save wires, and the target charging protocol based on the single-line channel communication can be compatible with other charging protocols.

[0145] In one implementation, other charging protocols include at least one of the following: a power transmission PD protocol and a power transmission PD private protocol.

[0146] The power supply device and the device to be charged may be compatible with at least one of the power transmission PD protocol and the power transmission PD private protocol while supporting the target charging protocol.

[0147] In another embodiment, if the other charging protocol compatible with the power supply device is the power transmission PD protocol, then when the power supply device is connected to the device to be charged, within a first time period, a first signal is sent to the device to be charged through a single-line channel; within a second time period, a third signal based on the power transmission PD protocol is sent to the device to be charged through the single-line channel.

[0148] If the second signal sent by the device to be charged is received through the single-line channel, the priority of the target charging protocol is higher than other charging protocols. If the fourth signal sent by the device to be charged is received through the single-line channel, other charging protocols have a higher priority than the target charging protocol.

[0149] Furthermore, after sending the signal, the power supply device will wait for a period of time before receiving a signal in response to a charging protocol sent by the device to be charged through the single-line channel.

[0150] The following embodiments will mainly explain in detail the receiving of the second signal sent by the device to be charged through the single-line channel.

[0151] Figure 4a is a flow chart showing a method of receiving a second signal sent by a device to be charged through a single-line channel according to an exemplary embodiment. Figure 4a As shown, the following steps are included.

[0152] In step S501, in response to the charging protocols supported by the power supply device including a single target charging protocol, a first signal is sent to a device to be charged via a single-line channel within a first time period.

[0153] In step S502, within a third time period, a second signal sent by the device to be charged is received through the single-line channel.

[0154] The third time period is a set time period after sending the first signal.

[0155] In the embodiment of the present disclosure, if the charging protocols supported by the power supply device only include the target charging protocol, that is, the power supply device is not compatible with other charging protocols. The power supply device sends a first signal to the device to be charged through a single-line channel within a first time period, and receives a second signal sent by the device to be charged through the single-line channel within a third time period.

[0156] In one embodiment, such as within 0 to 100 milliseconds, the power supply device sends a first signal based on the target charging protocol to the device to be charged through a single-line channel, and after 100 milliseconds, such as within 200 to 250 milliseconds, receives a second signal sent by the device to be charged through the single-line channel.

[0157] While fast charging is achieved through the target charging protocol based on single-line channel communication between the power supply device and the charged device, data transmission with USB2.0 can also be achieved, improving the user experience.

[0158] Figure 4b is a flowchart showing another method of receiving a second signal sent by a device to be charged through a single-line channel according to an exemplary embodiment. Figure 4b As shown, the following steps are included.

[0159] In step S601, in response to the charging protocols supported by the power supply device including a target charging protocol and other charging protocols different from the target charging protocol, a first signal is sent to a device to be charged through a single-line channel within a first time period.

[0160] In step S602, within a second time period, a third signal is sent to the device to be charged through the single-line channel.

[0161] In step S603, within a third time period, a second signal sent by the device to be charged is received through the single-line channel.

[0162] In one embodiment, if the power supply device supports the target charging protocol based on single-line channel communication and is also compatible with the power transmission PD protocol, the first signal can be sent to the device to be charged through the single-line channel within 0 to 100 milliseconds; within 100 milliseconds to 250 milliseconds, the third signal can be sent to the device to be charged through the single-line channel. After 250 milliseconds, wait for a period of time, such as between 250 and 650 milliseconds, and receive the second signal sent by the device to be charged through the single-line channel.

[0163] While fast charging is achieved through the target charging protocol based on single-line channel communication between the power supply device and the charged device, data transmission with USB2.0 can also be achieved, improving the user experience.

[0164] In another embodiment, if the priority of other charging protocols supported by the device to be charged is higher than the target charging protocol, a fourth signal sent by the device to be charged is received through the single-line channel within the second time period. The specific implementation of this embodiment can refer to the implementation of the above embodiment, and no specific explanation is given here.

[0165] In yet another embodiment, if the second signal is not received within a third period of time, the first signal is resent.

[0166] Figure 5a is a flow chart of a charging method according to an exemplary embodiment. Figure 5a As shown, the following steps are included.

[0167] In step S701, in response to the charging protocols supported by the power supply device including a single target charging protocol, a first signal is sent to the device to be charged through a single-line channel within a first time period.

[0168] In step S702, if the second signal is not received within the third time period, the first signal is resent.

[0169] In one embodiment, if the charging protocols supported by the power supply device only include the target charging protocol, that is, the power supply device is not compatible with other charging protocols. In this case, if the second signal sent by the device to be charged is not received within the third time period, the power supply device resends the first signal, and the number of times the power supply device resends the first signal shall not exceed twice.

[0170] If the power supply device receives a second signal sent by the device to be charged through the single-line channel after resending the first signal for the second time, it is determined that the device to be charged supports the target charging protocol, and the device to be charged is charged based on the target charging protocol.

[0171] Figure 5b is a flow chart of another charging method according to an exemplary embodiment. Figure 5b As shown, the following steps are included.

[0172] In step S801, in response to the charging protocols supported by the power supply device including a target charging protocol and other charging protocols different from the target charging protocol, a first signal is sent to a device to be charged through a single-line channel within a first time period.

[0173] In step S802, a third signal is sent to the device to be charged via the single-line channel.

[0174] In step S803, if the second signal is not received within the third time period, the first signal is resent.

[0175] In an embodiment of the present disclosure, if the target charging protocol based on single-line channel communication is also compatible with other charging protocols, in this case, if the response signal sent by the device to be charged is not received within the third time period, the power supply device resends the first signal and the third signal, and the power supply device resends the first signal no more than three times, and the third signal can be resent according to its own charging protocol rules, which is not specifically explained in the present disclosure.

[0176] The target charging protocol based on single-line channel communication provided by the present disclosure can achieve compatibility with other charging protocols.

[0177] In one implementation, the first signal is a square wave signal; and the second signal is a level signal used by the power supply device to charge the device to be charged based on a target charging protocol.

[0178] In one implementation, the level of the single-line channel is pulled up to a first level, and this is repeated N times to form a first signal, and the first signal is sent to the device to be charged, where N is a positive integer.

[0179] In one implementation, the second signal is formed by pulling up the level of the single-line channel to a second level and maintaining the level.

[0180] The present disclosure provides a charging protocol based on a single-line channel, wherein the single-line channel may be a CC channel.

[0181] Among them, in the embodiment of the present disclosure, the square wave signal is a signal that the power supply device determines the handshake waveform 1 in the form of a square wave based on the target charging protocol and is transmitted from the power supply device to the device to be charged without distortion within the required time.

[0182] The present disclosure provides a target charging protocol based on single-line channel communication. Within a first time period, after sending a first signal to a device to be charged through a single-line channel, if the device to be charged supports the target charging protocol, the device to be charged will actively raise the CC level to a level value according to the level signal used when charging itself, and maintain the level value to form a handshake waveform 2. It can be understood that handshake waveform 2 is the second signal.

[0183] The charging methods provided in the following embodiments are applied to a device to be charged.

[0184] Figure 6 is a flow chart of a charging method according to an exemplary embodiment. Figure 6 As shown, the following steps are included.

[0185] In step S901, a first signal is received.

[0186] The first signal is sent through a single-wire channel when the power supply device is triggered to charge the device to be charged. The first signal is used to represent a target charging protocol supported by the power supply device.

[0187] The specific implementation of step S901 can be referred to Figure 1 The specific implementation of step S101 will not be explained here.

[0188] In step S902, in response to the device to be charged supporting the target charging protocol, a second signal is sent to the power supply device through the single-line channel.

[0189] In the embodiment of the present disclosure, the second signal is a signal that the charged device responds to the first signal when determining that it supports the target charging protocol.

[0190] In step S903, charging is performed based on the target charging protocol.

[0191] In the embodiment of the present disclosure, when the device to be charged receives a first signal sent by the power supply device through a single-wire channel, the device to be charged can determine that the power supply device supports the target charging protocol. If the device to be charged also supports the protocol, a second signal in response to the first signal will be sent to the power supply device according to a predetermined signal of the target charging protocol.

[0192] Through the above embodiments, the target charging protocol based on the single-line channel communication can reduce the channels required for communication, and the single-line channel does not occupy the D+D- channel, which helps to realize the scenario of simultaneous fast charging and USB2.0 data transmission, thereby improving the user experience.

[0193] Figure 7a is a flow chart of a charging method according to an exemplary embodiment. Figure 7a As shown, the following steps are included.

[0194] In step S1001, a first signal is received.

[0195] The specific implementation of step S1001 in the embodiment of the present disclosure can be referred to Figure 1 The specific implementation of step S101 will not be explained here.

[0196] In step S1002, after receiving the first signal, a third signal sent by the power supply device is received through the single-line channel within a second time period.

[0197] In the embodiment of the present disclosure, the third signal is used to characterize the second charging protocol.

[0198] In the embodiment of the present disclosure, the device to be charged receives and accepts the first signal within the first time period.

[0199] When the charging protocols supported by the power supply device only include the target charging protocol, it can be understood that the power supply device is not compatible with other charging protocols. In this case, when the time is greater than the preparation time for the power supply device to send the first signal after being triggered to charge the device to be charged, the first signal can be accepted.

[0200] In one embodiment, if the preparation time for sending the first signal after the power supply device is triggered to charge the device to be charged is within 0 to 100 milliseconds in the first time period, that is, the first time is 0 to 100 milliseconds, the device to be charged receives the first signal sent by the power supply device through the single-line channel after more than 0 to 100 milliseconds; if the device to be charged receives the third first signal sent by the power supply device 2 milliseconds, 3 milliseconds, 4 milliseconds... after passing through the single-line channel in the second time period greater than 0 to 100 to 250 milliseconds, the maximum limit can be 400 milliseconds, without specific limitation.

[0201] In the embodiment of the present disclosure, by receiving the first signal in a very short time, it is convenient to quickly establish a target charging protocol between the power supply device and the device to be charged to achieve fast charging.

[0202] Figure 7b is a flow chart of a first duration charging method according to an exemplary embodiment. Figure 7b As shown, the following steps are included.

[0203] In step S1101, after receiving the first signal, a third signal of a first duration sent by a power supply device is received through a single-line channel within a second duration.

[0204] The first duration is in step S1102 , in response to receiving the third signal, determining the priority of the first charging protocol and the second charging protocol.

[0205] In step S1103 , if the priority of the second charging protocol is higher than the priority of the first charging protocol, a fourth signal is sent.

[0206] In the embodiment of the present disclosure, the fourth signal is a signal that the charged device responds to the third signal when it determines that it supports the second charging protocol.

[0207] By receiving the third signal sent by the power supply device through a single-line channel, the device to be charged can determine that the power supply device supports other charging protocols, and then determine whether the device to be charged supports it. When supporting other charging protocols, it is also necessary to determine the priority of each charging protocol in the device to be charged.

[0208] In the embodiment of the present disclosure, the target charging protocol based on single-line channel communication can also be compatible with other charging protocols. Based on the first signal and the third signal received by the charged device, in this case, the priority of the first charging protocol and the second charging protocol is determined, that is, the priority of the target charging protocol and the other charging protocols.

[0209] In one embodiment, the device to be charged may set a priority for the charging protocol it supports. The higher the priority, the more a signal based on the charging protocol with a high priority is sent to the power supply device for responding based on the charging protocol.

[0210] Through the above embodiments, the target charging protocol based on the single-line channel communication can reduce the channels required for communication and save wires, and the target charging protocol based on the single-line channel communication can be compatible with other charging protocols.

[0211] In another embodiment of the present disclosure, it is determined that the priority of the first charging protocol is higher than the priority of the second charging protocol. Therefore, the device to be charged sends the second signal to the power supply device through the single-line channel.

[0212] The single-wire channel communication protocol disclosed in the present invention can be compatible with other charging communication protocols.

[0213] In one embodiment of the present disclosure, the priority can be set according to the power of each charging protocol. The greater the power, the higher the priority, which helps the device to be charged to achieve fast charging based on the charging protocol with higher power; or the priority of the target charging protocol based on single-line channel communication provided by the present disclosure is set to be greater than the priority of other charging protocols, so as to facilitate fast charging based on a single-line channel. It can be seen that the method for setting priority provided by the present disclosure is not limited to the above two setting methods, and can be specifically set according to actual conditions. The target charging protocol based on single-line channel communication can reduce the channels required for communication and save wires, and the target charging protocol based on single-line channel communication can achieve compatibility with other charging protocols.

[0214] In one embodiment, other charging protocols include at least one of the following: a power transmission PD protocol and a power transmission PD private protocol.

[0215] The power supply device and the device to be charged may be compatible with at least one of the power transmission PD protocol and the power transmission PD private protocol while supporting the target charging protocol.

[0216] In another embodiment, if the other charging protocol compatible with the device to be charged is the power transmission PD protocol, after the power supply device is triggered to charge the device to be charged, a first signal is received through a single-line channel within a first time period; and a third signal based on the power transmission PD protocol is received within a second time period.

[0217] If the second signal is sent to the power supply device via a single-line channel, the device to be charged sets the priority of the target charging protocol higher than the power transmission PD protocol. If the fourth signal is sent to the power supply device via a single-line channel, the device to be charged sets the priority of the power transmission PD protocol higher than the target charging protocol.

[0218] In another embodiment, if the device to be charged does not send the second signal within the third and second time periods, the first signal is received again. Figure 5a , 5b The specific implementation of the illustrated embodiment will not be described in detail here.

[0219] first duration second duration second duration first duration second duration second duration In one embodiment, the first signal is a square wave signal; the second signal is a level signal used by the power supply device to charge the device to be charged based on the target charging protocol.

[0220] In one implementation, the first signal is formed by pulling up the level of the single-line channel to a first level and repeating this process N times, where N is a positive integer.

[0221] In one implementation, the second signal is formed by pulling up the level of the single-line channel to a second level and maintaining the formed signal.

[0222] The present disclosure provides a charging protocol based on a single-line channel, wherein the single-line channel may be a CC channel.

[0223] Among them, in the embodiment of the present disclosure, the square wave signal is a signal that the power supply device determines the handshake waveform 1 in the form of a square wave based on the target charging protocol and is transmitted from the power supply device to the device to be charged without distortion within the required time.

[0224] The present disclosure provides a target charging protocol based on single-line channel communication. Within a first time period, after sending a first signal to a device to be charged through a single-line channel, if the device to be charged supports the target charging protocol, the device to be charged will actively raise the CC level to a level value according to the level signal used when charging itself, and maintain the level value to form a handshake waveform 2. It can be understood that handshake waveform 2 is the second signal.

[0225] The following embodiments will mainly take the CC (Configuration Channel) channel as an example to explain in detail the charging method and target charging protocol provided by the present disclosure. CC (Configuration Channel) is a key channel newly added in USB Type-C, which has the functions of detecting forward and reverse insertion, detecting the voltage and current that the USB connection can provide, establishing and managing the connection between USB device data and VBUS, etc.

[0226] Since the fast charging protocols based on D+ / D- (Data+ / Data-) channel communication currently developed by various terminal manufacturers are difficult to achieve fast charging and USB2.0 data transmission at the same time, the present disclosure provides a handshake method of a target charging protocol based on single-line channel communication. Figure 8 FIG. 1 is a schematic diagram showing a handshake method of a target charging protocol based on single-line channel communication according to an exemplary embodiment. Figure 8 As shown, by performing handshake on the single-wire channel communication protocol provided by the present disclosure between the power supply device and the device to be charged, preparation is made for a charging method provided by the present disclosure.

[0227] If the power supply device only supports the target charging protocol, the target charging protocol can be called protocol U1. Fig.12 As shown, the CC channel of the device to be charged is toggling. When a power supply device is detected to be inserted, the level of the CC channel will change. The power supply device will actively pull up the level to V1 within the first time length T1 (0-100 milliseconds) after insertion, and repeat N times to form a specific handshake waveform 1, where N is an integer greater than 2. At this time, after the device to be charged receives the waveform, it can be determined that the power supply device supports a specific protocol U1; after waiting for the second time length Twait (Twait>2 milliseconds), if the device to be charged supports protocol U1, it will actively pull up the CC level to V2 and maintain the formation of handshake waveform 2. At this time, the power supply device determines that the device to be charged supports U1, and the charging device and the power supply device have completed the handshake. The subsequent charging device actively sends a ping message, and the power supply device replies with an ack message to complete the establishment of the U1 protocol. After that, the message interaction can be carried out normally and the power adjustment can be realized according to the message interaction.

[0228] Among them, after Twait, if the second information of the device to be charged, that is, handshake waveform 2, is not received within the third time length Tretry, the handshake waveform 1 is retransmitted, and the retransmission is not more than 2 times, wherein Tretry can be 400 milliseconds.

[0229] At present, the PD protocol has been widely used in smart terminals by various equipment manufacturers, but because various equipment manufacturers have made some customizations when designing the PD interface, incompatibility often occurs in the process of matching with third-party accessories. The charging method provided by the present invention can achieve compatibility with the power transmission PD protocol and the power transmission PD private protocol of CC channel communication, and can achieve normal selection of the protocol according to different priority settings. Take the power supply equipment and the charging equipment to be charged that support the protocol U1, the power transmission PD protocol, and the power transmission PD private protocol of the present invention as an example.

[0230] Fig. 9is a schematic diagram showing a handshake method of a compatible communication protocol according to an exemplary embodiment. Fig. 9 As shown, the specific implementation of Twait before can refer to Fig.12 The specific implementation method will not be explained in detail here.

[0231] When a power supply device is detected to be plugged in, the power supply device forms a specific handshake waveform 1 within the first time length T1. At this time, the device to be charged can determine that the power supply device supports the specific protocol U1 after receiving the handshake waveform 1. During the second waiting time length Twait, which can be 250 milliseconds, the power supply device will actively send SourceCapabilities because it supports the power transmission PD protocol. The power supply device will normally make a request because it supports the PD protocol. The power supply device normally responds to the request and sends PS_RDY after adjusting to the requested voltage.

[0232] After the Twait time, since the three protocols of protocol U1, power transmission PD protocol, and power transmission PD private protocol are supported, the device to be charged can select according to its own setting of the priority of each charging protocol. When the U1 priority is set to the highest, the (1) solution is adopted. After raising the CC level, the PD protocol is directly disconnected, and then ping communication is performed to establish the U1 protocol. Subsequently, charging control is performed normally according to the U1 protocol. When the priority of the power transmission PD protocol is the highest, the (2) solution is adopted. The U1 protocol is disconnected, and communication and power adjustment are performed according to the power transmission PD private protocol. When the power transmission PD protocol has the highest priority, the (2) solution is adopted. The U1 protocol is disconnected, and communication and power adjustment are performed according to the power transmission PD protocol.

[0233] Among them, if the power supply device does not receive the second information of the device to be charged within the third time length Tretry (for example, Tretry = 400ms), that is, handshake waveform 2, the power supply device resends handshake waveform 1, and U1 is resent no more than 3 times. Other protocols can be resent according to their own protocol rules.

[0234] The charging method provided in the embodiment of the present disclosure is applicable to the process of interactive charging between a power supply device and a device to be charged.

[0235] Fig.10 is a schematic diagram of a charging method according to an exemplary embodiment. Fig.10 As shown, the following steps are included.

[0236] In step 1.0, the device to be charged is triggered to charge.

[0237] The power supply device is triggered to charge the device to be charged.

[0238] In one example, when the power supply device detects that a charging device is plugged in, it determines that it is triggered to charge the device to be charged.

[0239] In step 1.1, the power supply device sends a first signal through a single-wire channel.

[0240] The first signal is used to characterize the target charging protocol supported by the power supply device.

[0241] In the embodiment of the present disclosure, the power supply device is triggered to charge the device to be charged, the power supply device sends a first signal to the device to be charged through a single-line channel, and the device to be charged receives the first signal through the single-line channel.

[0242] In step 1.2, the device to be charged determines whether it supports the target charging protocol.

[0243] In the embodiment of the present disclosure, after receiving the first signal, the device to be charged determines whether it supports the target charging protocol supported by the power supply device. If the device to be charged supports the target charging protocol, it responds to the first signal and sends a second signal.

[0244] In step 1.3, the device to be charged sends a second signal through the single-line channel.

[0245] In response to the device to be charged supporting the target charging protocol, a second signal is sent to the power supply device through the single-line channel, and the power supply device receives the second signal through the single-line channel.

[0246] It is understandable that if the power supply device does not receive the second signal within the third time period, the first signal is resent. The third time period is a set time period after the first signal is sent.

[0247] In step 1.4, it is determined whether the device to be charged supports the target charging protocol.

[0248] When the power supply device receives the second signal, it can determine that the device to be charged supports the target charging protocol.

[0249] In step 1.5, charging is performed based on the target charging protocol.

[0250] The device to be charged and the power supply device establish fast charging communication based on the target charging protocol through the first signal and the second signal to charge the device to be charged.

[0251] Through the above embodiments, the target charging protocol based on the single-line channel communication can reduce the channels required for communication, and the single-line channel does not occupy the D+D- channel, which helps to realize the scenario of simultaneous fast charging and USB2.0 data transmission, thereby improving the user experience.

[0252] Fig.11is a schematic diagram of a charging method according to an exemplary embodiment. Fig.11 As shown, the following steps are included.

[0253] In step 2.0, the power supply device is triggered to charge the device to be charged.

[0254] In step 2.1, the power supply device determines that supported charging protocols include a target charging protocol and other charging protocols different from the target charging protocol.

[0255] In addition to supporting the target charging protocol, the power supply device is also compatible with other charging protocols that are different from the target charging protocol.

[0256] In step 2.2, the power supply device sends a first signal through the single-line channel for a first period of time.

[0257] The first signal is used to represent a target charging protocol supported by the power supply device.

[0258] In one example, a first signal is sent through a single-line channel within a first duration.

[0259] The first duration is used to ensure that the power supply device is not affected in sending the third signal.

[0260] In response to the power supply device being triggered to charge the device to be charged, the power supply device sends a first signal to the device to be charged through the single-line channel, and the device to be charged receives the first signal through the single-line channel.

[0261] The device to be charged determines that it supports the target charging protocol and sends a second signal.

[0262] In step 2.3, the power supply device sends a third signal through the single-wire channel.

[0263] The third signal is used to characterize other charging protocols.

[0264] In one example, the power supply device sends the third signal to the device to be charged through a single-line channel within a second time period.

[0265] The second duration is the duration required to send other charging protocols.

[0266] If the power supply device supports the target charging protocol and other charging protocols, the power supply device sends a third signal representing the other charging protocols to the device to be charged, and the device to be charged receives the third signal.

[0267] In step 2.41, the device to be charged determines that the target charging protocol has a higher priority than other charging protocols.

[0268] In the embodiment of the present disclosure, the device to be charged determines to support the target charging protocol and other charging protocols. Based on the priorities corresponding to the target charging protocol and other charging protocols, the charging protocol to be used is determined.

[0269] In one example, if charging is performed using a target charging protocol, it is determined that the target charging protocol has a higher priority than other charging protocols;.

[0270] In step 2.51, the device to be charged sends a second signal through the single-wire channel.

[0271] In response to the device to be charged supporting the target charging protocol, a second signal is sent to the power supply device through the single-line channel, and the power supply device receives the second signal through the single-line channel.

[0272] When the power supply device receives the second signal, it can determine that the device to be charged supports the target charging protocol.

[0273] It is understandable that if the power supply device does not receive the second signal within the third time period, the first signal is resent. The third time period is a set time period after the first signal is sent.

[0274] In step 2.61, charging is performed based on the target charging protocol.

[0275] When the priority of its target charging protocol is higher than other charging protocols, the device to be charged sends a second signal to establish a fast charging communication based on the target charging protocol to charge the device to be charged.

[0276] For example, after raising the CC level, the PD protocol or PD private protocol is directly disconnected, and then ping communication is performed to establish the target charging protocol, and then charging control is performed normally according to the target charging protocol.

[0277] In one example, if other charging protocols are used for charging, it is determined that the other charging protocols have a higher priority than the target charging protocol.

[0278] In step 2.42, the device to be charged determines that it supports other charging protocols, and the other charging protocols have a higher priority than the target charging protocol.

[0279] In response to the device to be charged supporting other standard charging protocols, a fourth signal is sent to the power supply device through the single-line channel, and the power supply device receives the fourth signal through the single-line channel.

[0280] When the power supply device receives the fourth signal, it can determine that the device to be charged supports other charging protocols.

[0281] It is understandable that if the power supply device does not receive the fourth signal within the fourth time period, the third signal is resent. The fourth time period is a set time period after sending the third signal.

[0282] In step 2.52, the device to be charged sends a fourth signal.

[0283] In step 2.62, charging is performed based on other charging protocols.

[0284] When the priority of other charging protocols is higher than the target charging protocol, the device to be charged sends a fourth signal to establish charging communication based on other charging protocols to charge the device to be charged.

[0285] In the embodiment of the present disclosure, after the device to be charged receives the first signal and the third signal, it can be determined that the power supply device supports the target charging protocol and other charging protocols, and it is necessary to determine whether the device to be charged supports other charging protocols. If the device to be charged does not support other charging protocols, the device to be charged sends a second signal to the power supply device, and the power supply device receives the second signal. If the device to be charged supports other charging protocols, the signal of the charging protocol with the highest priority is selected and sent according to the priority setting of the target charging protocol and other charging protocols by the device to be charged.

[0286] Through the above embodiments, the target charging protocol based on the single-line channel communication can reduce the channels required for communication, and the single-line channel does not occupy the D+D- channel. In addition, the target charging protocol based on the single-line channel communication can be compatible with other charging protocols, which helps to realize the scenario of simultaneous fast charging and USB2.0 data transmission, and improve the user experience.

[0287] Based on the same concept, an embodiment of the present disclosure also provides a charging device.

[0288] It is understandable that in order to realize the above functions, the charging device provided in the embodiment of the present disclosure includes hardware structures and / or software modules corresponding to the execution of each function. In combination with the units and algorithm steps of each example disclosed in the embodiment of the present disclosure, the embodiment of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present disclosure.

[0289] Fig.12 is a block diagram of a charging device according to an exemplary embodiment. Fig.12 The device 100 includes a sending unit 101, a receiving unit 102 and a processing unit 103.

[0290] The sending unit 101 is configured to send a first signal to the device to be charged through a single-line channel when the power supply device is connected to the device to be charged, where the first signal is used to represent a target charging protocol supported by the power supply device.

[0291] The receiving unit 102 is configured to receive a second signal sent by the device to be charged through a single-line channel, where the second signal is a signal that the device to be charged responds to the first signal when it determines that it supports the target charging protocol.

[0292] The processing unit 103 is configured to, in response to receiving the second signal, determine that the device to be charged supports the target charging protocol, and charge the device to be charged based on the target charging protocol.

[0293] In one implementation, the sending unit 101 is configured to send the first signal to the device to be charged through a single-line channel: within a first time period, the first signal is sent to the device to be charged through the single-line channel.

[0294] In one implementation, the sending unit 101 is configured to send a third signal to the device to be charged through a single-line channel within a second time period.

[0295] In one implementation, the sending unit 101 is configured to resend the first signal if the second signal is not received within a third time period; the third time period is a set time period after the first signal is sent.

[0296] In one implementation, the sending unit 101 is configured to send a first signal through a single-line channel: pull up a level of the single-line channel to a first level, repeat N times, form a first signal, and send the first signal.

[0297] In one implementation, the processing unit 103 is configured to charge the device to be charged based on the second charging protocol in response to receiving a fourth signal; the fourth signal is a signal responding to the third signal.

[0298] In one implementation, before receiving the second signal sent by the device to be charged through the single-line channel, the processing unit 103 is configured to wait for a second time period after sending the first signal.

[0299] In one embodiment, the charging protocol supported by the power supply device is a target charging protocol, and the second duration is determined based on the communication duration, which is the duration for the power supply device to communicate with the device to be charged and trigger the device to be charged to send a second signal.

[0300] In one embodiment, the charging protocols supported by the power supply device include a first charging protocol and a second charging protocol, the first charging protocol is a target charging protocol, and the second charging protocol is another charging protocol different from the first charging protocol; the second duration is determined based on the duration of the power supply device sending a third signal, and the third signal is used to characterize the second charging protocol.

[0301] In one implementation, other charging protocols include at least one of the following: a power transmission PD protocol and a power transmission PD private protocol.

[0302] In one implementation, the first signal is a square wave signal.

[0303] In one implementation, the second signal is a level signal used by the power supply device when charging the device to be charged based on the target charging protocol.

[0304] In one implementation, the second signal is formed by pulling up the level of the single-line channel to a second level and maintaining the formed signal.

[0305] In one embodiment, the single-wire channel is a CC channel.

[0306] Fig.13 is a block diagram of a charging device according to an exemplary embodiment. Fig.13 The device 200 includes a receiving unit 201, a sending unit 202 and a processing unit 203.

[0307] The receiving unit 201 is configured to receive a first signal, where the first signal is sent through a single-line channel when the power supply device is triggered to charge the device to be charged, and the first signal is used to represent a target charging protocol supported by the power supply device.

[0308] The sending unit 202 is configured to send a second signal to the power supply device through a single-line channel in response to the device to be charged supporting the target charging protocol, wherein the second signal is a signal that the device to be charged responds to the first signal when it is determined that the device to be charged supports the target charging protocol.

[0309] The processing unit 203 is configured to perform charging based on a target charging protocol.

[0310] In one embodiment, the receiving unit 201 is configured to receive a third signal sent by the power supply device through a single-line channel within a second time period after receiving the first signal, and the third signal is used to characterize the second charging protocol; the second charging protocol is a charging protocol other than the first charging protocol, the first charging protocol is a target charging protocol, and the charging protocols supported by the power supply device include the first charging protocol and the second charging protocol.

[0311] In one implementation, the receiving unit 201 is configured to re-receive the first signal.

[0312] In one implementation, if the priority of the second charging protocol is higher than the priority of the first charging protocol, the sending unit 202 is configured to send a fourth signal, which is a signal that the charged device responds to the third signal when it determines that it supports the second charging protocol.

[0313] In one implementation, the sending unit 202 is configured to send a fourth signal, where the fourth signal is a signal that the device to be charged responds to the third signal when the device to be charged determines that it supports the second charging protocol.

[0314] In one implementation, the sending unit 202 is configured to send the second signal to the power supply device through the single-line channel: pull up the level of the single-line channel to a second level and maintain it to form a second signal, and send the second signal.

[0315] In one implementation, in response to receiving the third signal, the processing unit 203 is configured to determine a priority between the first charging protocol and the second charging protocol.

[0316] In one implementation, before sending the second signal, the processing unit 203 is configured to determine that the priority of the first charging protocol is higher than the priority of the second charging protocol.

[0317] In one implementation, other charging protocols include at least one of the following: a power transmission PD protocol and a power transmission PD private protocol.

[0318] In one implementation, the first signal is a square wave signal.

[0319] In one implementation, the first signal is formed by pulling up the level of the single-line channel to a first level and repeating this process N times, where N is a positive integer.

[0320] In one implementation, the second signal is a level signal used by the power supply device when charging the device to be charged based on the target charging protocol.

[0321] In one embodiment, the single-wire channel is a CC channel.

[0322] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0323] Fig.14 is a block diagram of a device 300 for charging according to an exemplary embodiment. For example, the device 300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0324] Reference Fig.14 , the device 300 may include one or more of the following components: a processing component 302 , a memory 304 , a power component 306 , a multimedia component 308 , an audio component 310 , an input / output (I / O) interface 312 , a sensor component 314 , and a communication component 316 .

[0325] The processing component 302 generally controls the overall operation of the device 300, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 302 may include one or more processors 320 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 302 may include one or more modules to facilitate the interaction between the processing component 302 and other components. For example, the processing component 302 may include a multimedia module to facilitate the interaction between the multimedia component 308 and the processing component 302.

[0326] The memory 304 is configured to store various types of data to support operations on the device 300. Examples of such data include instructions for any application or method operating on the device 300, contact data, phone book data, messages, pictures, videos, etc. The memory 304 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0327] The power component 306 provides power to the various components of the device 300. The power component 306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 300.

[0328] The multimedia component 308 includes a screen that provides an output interface between the device 300 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 308 includes a front camera and / or a rear camera. When the device 300 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0329] The audio component 310 is configured to output and / or input audio signals. For example, the audio component 310 includes a microphone (MIC), and when the device 300 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 304 or sent via the communication component 316. In some embodiments, the audio component 310 also includes a speaker for outputting audio signals.

[0330] I / O interface 312 provides an interface between processing component 302 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0331] The sensor assembly 314 includes one or more sensors for providing various aspects of the status assessment of the device 300. For example, the sensor assembly 314 can detect the open / closed state of the device 300, the relative positioning of components, such as the display and keypad of the device 300, the sensor assembly 314 can also detect the position change of the device 300 or a component of the device 300, the presence or absence of user contact with the device 300, the orientation or acceleration / deceleration of the device 300, and the temperature change of the device 300. The sensor assembly 314 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 314 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 314 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0332] The communication component 316 is configured to facilitate wired or wireless communication between the device 300 and other devices. The device 300 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 316 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 316 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0333] In an exemplary embodiment, the apparatus 300 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.

[0334] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 304 including instructions, and the instructions can be executed by the processor 320 of the device 300 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0335] It is to be understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The singular forms "a", "the" and "the" are also intended to include plural forms, unless the context clearly indicates other meanings.

[0336] It is further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not indicate a specific order or degree of importance. In fact, the expressions "first", "second", etc. can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.

[0337] It can be further understood that, unless otherwise specified, “connection” includes a direct connection without other components between the two, and also includes an indirect connection with other components between the two.

[0338] It is further understood that, although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order shown or in a serial order, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.

[0339] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure.

[0340] It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended claims.

Claims

1. A charging method, characterized in that: include: When the power supply device is connected to the device to be charged, a first signal is sent to the device to be charged through a single-line channel, where the first signal is used to represent a target charging protocol supported by the power supply device; receiving, through the single-line channel, a second signal sent by the device to be charged, where the second signal is a signal that the device to be charged responds to the first signal when determining that it supports the target charging protocol; In response to receiving the second signal, it is determined that the device to be charged supports the target charging protocol, and the device to be charged is charged based on the target charging protocol.

2. The method according to claim 1, characterized in that The sending of the first signal to the device to be charged through a single-line channel includes: Within a first time period, a first signal is sent to the device to be charged through a single-line channel.

3. The method according to claim 1, characterized in that Before receiving the second signal sent by the device to be charged through the single-line channel, the method further includes: After sending the first signal, wait for a second time period.

4. The method according to claim 3, characterized in that The charging protocol supported by the power supply device is the target charging protocol, and the second duration is determined based on the communication duration, which is the duration for the power supply device to communicate with the device to be charged and trigger the device to be charged to send the second signal.

5. The method according to claim 3, characterized in that: The charging protocols supported by the power supply device include a first charging protocol and a second charging protocol, the first charging protocol is the target charging protocol, and the second charging protocol is another charging protocol different from the first charging protocol; The second duration is determined based on a duration for the power supply device to send a third signal, and the third signal is used to represent the second charging protocol.

6. The method according to claim 5, characterized in that The method further comprises: During the second time period, the third signal is sent to the device to be charged through the single-line channel.

7. The method according to claim 6, characterized in that The method further comprises: In response to receiving the fourth signal, charging the device to be charged based on the second charging protocol; The fourth signal is a signal responding to the third signal.

8. The method according to any one of claims 5 to 7, characterized in that The other charging protocols include at least one of the following: a power transmission PD protocol and a power transmission PD private protocol.

9. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: If the second signal is not received within a third time period, resending the first signal; The third duration is a set duration after sending the first signal.

10. The method according to any one of claims 1 to 7, characterized in that The first signal is a square wave signal.

11. The method according to any one of claims 1 to 7, characterized in that: The sending of the first signal through the single-line channel includes: The level of the single-line channel is pulled up to a first level, and this is repeated N times to form a first signal, and the first signal is sent, where N is a positive integer.

12. The method according to any one of claims 1 to 7, characterized in that The second signal is a level signal used by the power supply device to charge the device to be charged based on the target charging protocol.

13. The method according to any one of claims 1 to 7, characterized in that The second signal is a signal formed by pulling up the level of the single-line channel to a second level and maintaining the level.

14. The method according to any one of claims 1 to 7, characterized in that: The single-line channel is a CC channel.

15. A charging method, characterized in that: include: Receiving a first signal, where the first signal is sent through a single-line channel when the power supply device is triggered to charge the device to be charged, and the first signal is used to represent a target charging protocol supported by the power supply device; In response to the device to be charged supporting the target charging protocol, sending a second signal to the power supply device through the single-line channel, wherein the second signal is a signal that the device to be charged responds to the first signal when it is determined that the device to be charged supports the target charging protocol; Charging is performed based on the target charging protocol.

16. The method according to claim 15, characterized in that The method further comprises: After receiving the first signal, receiving a third signal sent by the power supply device through the single-line channel within a second time period, wherein the third signal is used to represent a second charging protocol; The second charging protocol is another charging protocol different from the first charging protocol, the first charging protocol is the target charging protocol, and the charging protocols supported by the power supply device include the first charging protocol and the second charging protocol.

17. The method according to claim 16, characterized in that The method further comprises: In response to receiving the third signal, determining a priority between the first charging protocol and the second charging protocol; If the priority of the second charging protocol is higher than the priority of the first charging protocol, a fourth signal is sent, where the fourth signal is a signal that the device to be charged responds to the third signal when it is determined that the device to be charged supports the second charging protocol.

18. The method according to claim 16, characterized in that Before sending the second signal, the method further includes: It is determined that the priority of the first charging protocol is higher than the priority of the second charging protocol.

19. The method according to any one of claims 16 to 18, characterized in that The other charging protocols include at least one of the following: a power transmission PD protocol and a power transmission PD private protocol.

20. The method according to any one of claims 15 to 19, characterized in that The method further comprises: The first signal is received again.

21. The method according to any one of claims 15 to 19, characterized in that The first signal is a square wave signal.

22. The method according to any one of claims 15 to 19, characterized in that The first signal is formed by pulling up the level of the single-line channel to a first level and repeating N times, where N is a positive integer.

23. The method according to any one of claims 15 to 19, characterized in that The second signal is a level signal used by the power supply device to charge the device to be charged based on the target charging protocol.

24. The method according to any one of claims 15 to 19, characterized in that The sending a second signal to the power supply device through the single-line channel includes: The level of the single-line channel is pulled up to a second level and maintained to form a second signal, and the second signal is sent.

25. The method according to any one of claims 15 to 19, characterized in that The single-line channel is a CC channel.

26. A charging device, characterized in that: include: a sending unit, configured to send a first signal to the device to be charged through a single-line channel when the power supply device is connected to the device to be charged, wherein the first signal is used to indicate a target charging protocol supported by the power supply device; a receiving unit, configured to receive, through the single-line channel, a second signal sent by the device to be charged, wherein the second signal is a signal that the device to be charged responds to the first signal when determining that the device to be charged supports the target charging protocol; The processing unit is configured to, in response to receiving the second signal, determine that the device to be charged supports the target charging protocol, and charge the device to be charged based on the target charging protocol.

27. A charging device, characterized in that: include: A receiving unit, configured to receive a first signal, wherein the first signal is sent through a single-line channel when the power supply device is triggered to charge the device to be charged, and the first signal is used to characterize a target charging protocol supported by the power supply device; a sending unit, configured to send a second signal to the power supply device through the single-line channel in response to the device to be charged supporting the target charging protocol, wherein the second signal is a signal that the device to be charged responds to the first signal when it is determined that the device to be charged supports the target charging protocol; A processing unit is used to charge based on the target charging protocol.

28. A charging device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: execute the charging method described in any one of claims 1-25.

29. A storage medium, characterized in that: The storage medium stores instructions. When the instructions in the storage medium are executed by a processor of a power supply device or a device to be charged, the terminal is enabled to execute the charging method described in any one of claims 1-25.