A charging method and a rechargeable data cable
By using the message interval mechanism to ensure that multiple devices are supplied with high voltage power at the same time when charging multiple devices, the problems of low charging power and low efficiency in the prior art are solved, and a more efficient charging process is achieved.
Patent Information
- Application Number
- CN202411718721.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-27
- Publication Date
- 2025-04-04
AI Technical Summary
When charging multiple devices, existing rechargeable data cables have low charging power and low charging efficiency, resulting in waste of power from the power supply side.
By sending a message to the first device at the first moment and sending a message to the second device at a interval, it is ensured that high voltage power supply is provided to the first device and the second device at the third moment.
It realizes high-voltage power supply when charging multiple devices, improves charging power and efficiency, and avoids power waste from the power supply side.
Smart Images

Figure CN119765534A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of power supplies, and in particular relates to a charging method and a rechargeable data cable. Background Art
[0002] With the development of smart mobile terminals, especially smart terminal devices are given more and more functions. More and more functions mean that the power consumption of smart terminal devices will increase. When the power of smart terminal devices is low, they need to be charged with a rechargeable data cable.
[0003] In the related art, a rechargeable data cable can charge multiple electronic devices, but the charging power is small and the charging efficiency is low, which seriously wastes the power of the power supplier. Summary of the invention
[0004] The present application provides a charging method and a rechargeable data cable, which solve the problem of low charging power and low charging efficiency when charging multiple devices.
[0005] In a first aspect, a charging method is provided, the method comprising: sending a first message to a first device at a first moment, the first message being used to indicate a power configuration option of a power supplier; sending the first message to a second device at a second moment, the time length between the first moment and the second moment being used to indicate: a time difference between a first time period in which the first device applies for a first voltage and a second time period in which the second device applies for the first voltage; and starting to supply power to the first device and the second device with the first voltage at a third moment.
[0006] The charging method provided in the first aspect sends a first message to the first device at a first moment, and then sends a first message to the second device at a second moment after a period of time. This can ensure that the first device and the second device are simultaneously powered with high voltage at a third moment, thereby solving the problems of low charging power, low charging efficiency and power waste on the power supplier.
[0007] Optionally, before sending the first message to the first device at the first moment, the above method also includes: sending the first message to the first device and recording a fourth moment of sending the first message; receiving a first request message sent by the first device, wherein the first request message is used to request the first voltage, and recording a fifth time when the first device requests the first voltage; determining the first time period based on the fourth moment and the fifth moment.
[0008] In this implementation manner, the time required for the first device to apply for the first voltage may be determined based on the fourth moment and the fifth moment.
[0009] Optionally, the above method also includes: sending the first message to the second device, and recording the sixth time of sending the first message; receiving a second request message sent by the second device, the second request message is used to request the first voltage, and recording the seventh time when the second device requests the first voltage; determining the second time period based on the sixth time and the seventh time.
[0010] In this implementation manner, the time required for the second device to apply for the first voltage may be determined based on the fifth moment and the sixth moment.
[0011] Optionally, the method further includes: sending a second message to the first device, wherein the second message is used to instruct the power supplier to supply power at a second voltage.
[0012] In this implementation, before the first device is powered by the first voltage, the first device is powered by the second voltage.
[0013] It should be understood that the first voltage refers to a voltage greater than 5V, and the second voltage refers to a voltage less than or equal to 5V.
[0014] Optionally, the above method also includes: sending the second message to the second device.
[0015] In this implementation, before supplying power to the second device with the first voltage, supplying power to the second device with the second voltage.
[0016] Optionally, the first message and / or the second message is a Source_Capabilities message.
[0017] In a second aspect, a rechargeable data cable is provided, comprising at least one processor and a memory, wherein the at least one processor is used to execute the method in the above first aspect or any possible implementation manner of the first aspect.
[0018] In a third aspect, a rechargeable data cable is provided, comprising at least one processor and an interface circuit, wherein the at least one processor is used to execute the method in the above first aspect or any possible implementation of the first aspect.
[0019] In a fourth aspect, a rechargeable data cable is provided, the rechargeable data cable comprising a chip, the chip being used to execute the method in the above first aspect or any possible implementation of the first aspect.
[0020] According to a fifth aspect, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, the computer program is used to execute the method in the first aspect or any possible implementation of the first aspect.
[0021] According to a sixth aspect, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed, it is used to execute the method in the first aspect or any possible implementation of the first aspect.
[0022] In the seventh aspect, a chip or integrated circuit is provided, which includes: a processor, used to call and run a computer program from a memory, so that a device equipped with the chip or integrated circuit executes the method in the first aspect or any possible implementation of the first aspect.
[0023] The technical effects of the device provided in the present application can refer to the technical effects of the above-mentioned first aspect or each implementation method of the first aspect, and will not be repeated here.
[0024] Compared with the prior art, the present invention has the following beneficial effects:
[0025] The present application provides a charging method, which sends a first message to a first device at a first moment, and then sends a first message to a second device at a second moment after a period of time, so as to ensure that the first device and the second device are powered by high voltage (first voltage) at the same time at a third moment, thereby solving the problems of low charging power, low charging efficiency and power waste of the power supplier. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0027] Figure 1 The electronic device control system architecture diagram based on the USB-C interface is shown;
[0028] Figure 2 shows a power supply system software flow chart;
[0029] Figure 3 A schematic diagram of the power configuration process of DFP and UFP is shown;
[0030] Figure 4 A schematic flow chart of a charging method 400 provided in an embodiment of the present application is shown;
[0031] Figure 5 A method for determining a first time period and a second time period provided in an embodiment of the present application is shown;
[0032] Figure 6 A schematic diagram of a charging method is shown;
[0033] Figure 7 A schematic block diagram of a communication device provided in an embodiment of the present application is shown;
[0034] Figure 8 A schematic diagram of the structure of the device provided in the embodiment of the present application is shown. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0036] First of all, before introducing the embodiments of the charging method and device provided by the present application, it is necessary to explain some of the terms that will be mentioned below. When the present application mentions the terms "first", "second" and other ordinal numbers, they are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, "multiple" means two or more.
[0037] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0038] These and other aspects of the embodiments of the present invention will become clear with reference to the following description and drawings. In these descriptions and drawings, some specific implementations of the embodiments of the present invention are specifically disclosed to represent some ways of implementing the principles of the embodiments of the present invention, but it should be understood that the scope of the embodiments of the present invention is not limited thereto. On the contrary, the embodiments of the present invention include all changes, modifications and equivalents that fall within the spirit and connotation of the appended claims.
[0039] First, before introducing the charging method provided in the embodiment of the present application, a brief introduction is given to the charging system architecture involved in the present application.
[0040] Figure 1 The electronic device control system architecture diagram based on the USB-C interface is shown in FIG. Figure 1As shown, the system architecture includes a power adapter, a USB-C port 1, a USB-C port 3, a power module 4, a USB-C port 5, a switch module 6, a switch module 7 and a USB Power Delivery (USB PD) protocol unit 2, etc.
[0041] Among them, USB PD is a fast charging protocol that allows higher power levels to be provided through USB connections. The CC channel of the power adapter establishes a connection with the CC channel of the USB PD protocol unit 2 through the USB-C port 5, thereby releasing power. After passing through the power module 4, a stable power supply is provided to the USB PD protocol unit 2, providing current for the entire system. The switch module 6 and the switch module 7 are responsible for controlling the conduction of the power supply.
[0042] It should be understood that Figure 1 The black color in the middle is the power signal transmission; the dotted line is the CC channel of the USB-C port, which represents the transmission channel of the USB PD protocol, and the dotted line is the control signal transmission.
[0043] Furthermore, the USB PD protocol unit 2 is connected to the USB-C port 1 through the CC channel, and the USB-C port 1 is connected to the mobile phone or computer. In other words, the USB PD protocol unit 2 provides the power information of the power adapter to the mobile phone or computer of the USB-C port 1 through the CC channel.
[0044] The USB PD protocol unit 2 and the USB-C port 3 are connected through the CC channel, and the USB-C port 3 is connected to the mobile phone or computer. In other words, the USB PD protocol unit 2 provides power information of the power adapter to the mobile phone or computer of the USB-C port 3 through the CC channel control.
[0045] Figure 2 The power supply system software flow chart is shown as Figure 2As shown, the adapter is powered on and initialized, and the USB PD protocol unit 2 saves the received Source_Capabilities1 of the power supply adapter, and sends a Request to the adapter to complete the power configuration. USB-C port 1 determines whether device 1 is connected. When USB-C port 1 is connected to device 1, USB PD protocol unit 2 turns on switch module 7, sends Source_Capabilities1 to device 1, and communicates with device 1 and the adapter to complete the power configuration. Then, when USB-C port 1 is connected to device 1, it is determined whether USB-C port 3 is connected to device 2. When USB-C port 3 is connected to device 2, USB PD protocol unit 2 disconnects power from the power adapter and reconnects, turns on switch module 6 and switch module 7, and sends Source_Capabilities2 with only 5V voltage to the two devices respectively. The sum of the current is equal to the current of the 5V gear in Source_Capabilities1, and communicates with the two devices and the adapter to complete the power configuration. When the two devices and the adapter complete the power configuration, if device 1 is unplugged, USB PD protocol unit 2 disconnects power from the power adapter and reconnects. If device 1 is not unplugged and device 2 is unplugged, USB PD protocol unit 2 is powered off and reconnected to the power adapter.
[0046] When USB-C port 1 is not connected to device 1, determine whether USB-C port 3 is connected to device 2. When USB-C port 3 is connected to device 2, USB PD protocol unit 2 turns on switch module 6, sends Source_Capabilities1 to device 2, and communicates with device 2 and the adapter to complete power configuration. Determine whether USB-C port 1 is connected to device 1. When USB-C port 1 is connected to device 1, USBPD protocol unit 2 disconnects power from the power adapter and reconnects, turns on switch module 6 and switch module 7, sends Source_Capabilities2 with only 5V voltage to the two devices respectively, and the sum of the current is equal to the current of the 5V gear in Source_Capabilities1, and communicates with the two devices and the adapter to complete power configuration. If USB-C port 1 is not connected to device 1, determine whether device 2 is unplugged. If device 2 is unplugged, USB PD protocol unit 2 disconnects power from the power adapter and reconnects.
[0047] It should be understood that the two parties involved in the USB PD protocol communication in the figure are the downstream facing port (DFP) and the upstream facing port (UFP), where DFP is the power supply party and UFP is the power receiving party. The entire process of PDF and UFP completing power configuration through the USB PD protocol is as shown above. Figure 2 As shown. Combined Figure 1 and Figure 2 , USB-C port 1 is DFP relative to device 1, USB-C port 3 is DFP relative to device 2, device 1 is equivalent to USB-C port 1 being UFP, and device 2 is equivalent to USB-C port 3 being UFP. Similarly, the adapter is DFP relative to USB-C port 5, and USB-C port 5 is UFP relative to the adapter. After USB PD protocol unit 2 receives Request1 from device 1 through USB-C port 1, it will also send Request2 to the adapter through USB-C port 5. Alternatively, after USB PD protocol unit 2 receives Request1 from device 2 through USB-C port 3, it will also send Request2 to the adapter through USB-C port 5. The voltage positions of Request1 and Request2 are the same, but the current sizes may be different. Similarly, after USB PD protocol unit 2 receives Accept and PS_RDY from the adapter through USB-C port 5, it will also send them to device 1 through USB-C port 1, or to device 2 through USB-C port 3. This is the process of USB PD protocol unit 2 completing power configuration with the device and adapter.
[0048] Among them, PS_RDY (Power Supply Ready) is an important signal, which indicates that the power supply is ready and stable and can start supplying power. This signal is transmitted on the configuration channel (CC) of the USB Type-C interface and is used to indicate the power status information.
[0049] Figure 3 The schematic diagram of the power configuration process of DFP and UFP is shown as follows: Figure 3As shown, DFP detects UFP access through CC channel level changes, DFP sends Source_Capabilities message to UFP, UFP replies GoodCRC message to DFP after receiving Source_Capabilities, indicating that the message has been received, UFP selects appropriate power according to received Source_Capabilities and sends Request message to inform DFP, DFP replies GoodCRC message to UFP after receiving Request message, DFP evaluates the power value in Request, if it does not meet the value provided in Source_Capabilities, it sends Reject message to UFP, otherwise, it sends Accept message. After receiving Reject or Accept message, UFP replies GoodCRC message to DFP, DFP sends PS_RDY to UFP to inform that power is ready, UFP receives PS_RDY message, sends PS_RDY to DFP, and charges at the requested power value, so far, the power configuration of DFP and UFP is completed.
[0050] Combination Figures 1 to 3 When USB-C port 1 and USB-C port 3 are both connected to devices, only 5V voltage can be provided to the two devices for charging. It can be seen that the charging power is small, resulting in slow charging speed and serious waste of adapter power.
[0051] In summary, how to enable the power adapter to provide higher voltage and improve charging speed while charging multiple devices and avoid waste of adapter power is a problem that needs to be solved.
[0052] In view of this, the present application provides a charging method, which includes: sending a first message to a first device at a first moment, the first message is used to indicate the power configuration option of the power supplier; sending a first message to a second device at a second moment, the time length between the first moment and the second moment is used to indicate: the time difference between the first time period when the first device applies for the first voltage and the second time period when the second device applies for the first voltage; and starting to supply power to the first device and the second device at a third moment with the first voltage. This method can enable the power supplier to supply power to the first device and the second device at a high voltage (i.e., the first voltage) at the same time, solving the problem of power waste of the power supplier.
[0053] The charging method provided in the embodiment of the present application is described in detail below with reference to the accompanying drawings.
[0054] Figure 4 A schematic flow chart of a charging method 400 provided in an embodiment of the present application is shown. Figure 4 As shown, the method 400 includes steps S410-S430.
[0055] S410. Send a first message to a first device at a first moment, where the first message is used to indicate a power configuration option of a power supplier.
[0056] In the embodiment of the present application, the first message is used to indicate the power configuration options of the power supplier. Exemplarily, the first message may be a Source_Capabilities message.
[0057] The rechargeable data cable sends the power configuration options that can be provided by the power supplier to the first device at a first moment, thereby completing the power configuration with the first device.
[0058] Specifically, the USB PD protocol unit in the rechargeable data line can send a Source_Capabilities message to the first device, thereby completing power configuration with the first device.
[0059] S420. Send a first message to the second device at a second moment, where the time length between the first moment and the second moment is used to indicate: a time difference between a first time period in which the first device applies for a first voltage and a second time period in which the second device applies for the first voltage.
[0060] It should be understood that after the rechargeable data cable is connected to the first device, and also connected to the second device, in other words, when the rechargeable data cable needs to supply power to the first device and the second device at the same time, the rechargeable data cable sends the power configuration options that can be provided by the power supplier to the second device at the second moment, thereby completing the power configuration with the second device.
[0061] Specifically, the USB PD protocol unit in the rechargeable data line can send a Source_Capabilities message to the second device, thereby completing power configuration with the second device.
[0062] It should be understood that there is a time interval or time length between the first moment and the second moment, and the time length between the first moment and the second moment is used to indicate: the time difference between the first time period when the first device applies for the first voltage and the second time period when the second device applies for the first voltage.
[0063] When the rechargeable data line sends the first message to the second device at the second moment, it can be ensured that the first device and the second device are powered with the first voltage at the same moment.
[0064] It should be noted that the first voltage refers to a voltage greater than 5V.
[0065] Optionally, an example method for determining the first time period and the second time period is provided in an embodiment of the present application, such as Figure 5As shown, the method includes steps S510 to S540.
[0066] S510: The rechargeable data cable sends a first message to the first device, and records a fourth time when the first message is sent.
[0067] Specifically, the USB PD protocol unit in the rechargeable data line sends a Source_Capabilities message to the first device, and starts recording a fourth moment when the first device applies for the first voltage.
[0068] S520: The first device sends a first request message to the chargeable data line, and records a fifth time of requesting the first voltage.
[0069] Specifically, the first device sends a first request message to the USB PD protocol unit in the rechargeable data line, where the first request message is used to request a first voltage. After the USB PD protocol unit completes power configuration with the power supplier, the fifth moment of requesting the first voltage is recorded.
[0070] Optionally, the power supplier may be a power adapter.
[0071] S530: The rechargeable data cable sends a first message to the second device, and records a sixth time when the first message is sent.
[0072] Specifically, the USB PD protocol unit in the rechargeable data line sends a Source_Capabilities message to the second device, and starts recording the sixth moment when the second device applies for the first voltage.
[0073] S540: The second device sends a second request message to the chargeable data line, and records a seventh time of requesting the first voltage.
[0074] Specifically, the second device sends a second request message to the USB PD protocol unit in the rechargeable data line, where the second request message is used to request the first voltage. After the USB PD protocol unit completes power configuration with the power supplier, the seventh moment of requesting the first voltage is recorded.
[0075] It should be noted that the above method 500 is executed before step S410.
[0076] The difference between the fourth moment and the fifth moment obtained in the above method 500 is the first time period for the first device to apply for the first voltage, and the difference between the sixth moment and the seventh moment is the second time period for the second device to apply for the first voltage.
[0077] S430: Start supplying power to the first device and the second device with the first voltage at a third moment.
[0078] Finally, the rechargeable data line starts to supply power to the first device and the second device at the first voltage at the third moment, that is, the first device and the second device are supplied with high voltage power at the same time.
[0079] Specifically, the USB PD protocol unit in the rechargeable data line applies for high voltage to the adapter, and completes power configuration with the adapter, the first device, and the second device respectively within a standard time.
[0080] In this embodiment, after sending the first message to the first device at the first moment, a first message is sent to the second device at the second moment after an interval, which can ensure that the first device and the second device are powered with high voltage at the same time at the third moment, thereby solving the problems of low charging power, low charging efficiency and power waste on the power supplier.
[0081] Optionally, before step S410, the USB PD protocol unit sends a second message to the first device, where the second message is used to instruct the power supplier to supply power at a second voltage.
[0082] Optionally, before step S410, the USB PD protocol unit sends a second message to the second device, where the second message is used to instruct the power supplier to supply power at a second voltage.
[0083] It should be understood that the second voltage is a voltage less than or equal to 5V.
[0084] In other words, before step S410, the USB PD protocol unit supplies power to the first device or the second device at a voltage of 5 V. That is, when the first request message in step S520 is used to request the first voltage, the USB PD protocol unit supplies power to the first device at the second voltage (5 V), and when the second request message in step S540 is used to request the first voltage, the USB PD protocol unit supplies power to the second device at the second voltage (5 V).
[0085] Below Figure 6 Taking device 1 (first device) and device 2 (second device) in the example, the specific process of the charging method provided by the present application is described.
[0086] Figure 6 A schematic diagram of a charging method is shown in FIG. Figure 6 As shown, the adapter is powered on and initialized, the USB PD protocol unit 2 saves the received Source_Capabilities1 of the power supply adapter, and sends Request1 to the adapter to complete the power configuration.
[0087] In some embodiments of the present application, USB-C port 1 determines whether device 1 is connected. If USB-C port 1 is connected to device 1, USB PD protocol unit 2 turns on switch module 7, sends Source_Capabilities1 to device 1, and starts recording the fourth moment when device 1 applies for high voltage, and determines whether Request2 of device 1 is 5V voltage.
[0088] In some possible implementations of this embodiment, if the device 1 does not request a 5V voltage, the USB PD protocol unit 2 communicates with the device 1 and the adapter to complete the power configuration and ends recording the fifth moment when the device 1 applies for high voltage.
[0089] It should be understood that the difference between the fourth moment and the fifth moment is a first time period, and the first time period indicates how long it takes for device 1 to apply for high voltage after receiving Source_Capabilities1.
[0090] Then, USB-C port 3 determines whether device 2 is connected. When USB-C port 3 is connected to device 2, USB PD protocol unit 2 sends Source_Capabilities3 with only 5V voltage to device 1, and completes power configuration with device 1 and adapter. After device 1 is connected, device 1 is charged with 5V voltage.
[0091] USB PD protocol unit 2 sends Source_Capabilities3 to device 2, starts recording the time when device 2 applies for high voltage, and records the sixth moment when device 2 applies for high voltage. If device 1 is unplugged, USB PD protocol unit 2 sends Request1 to the adapter to complete the power configuration. If device 1 is not unplugged and device 2 is unplugged, USB PD protocol unit 2 sends Request1 to the adapter to complete the power configuration. If device 1 is not unplugged and device 2 is not unplugged, determine whether Request4 of device 2 is a 5V voltage. If device 2 is a 5V voltage, USB PD protocol unit 2 completes the power configuration with device 2 and continues to wait for device 2 to apply for high voltage. If device 2 is not a 5V voltage, USB PD protocol unit 2 sends Reject to device 2 and then sends Source_Capabilities3 with only 5V voltage to device 2, and completes the power configuration with device 2 and the adapter; maintains 5V to charge device 2, and ends recording the seventh moment when device 2 applies for high voltage.
[0092] It should be understood that the difference between the sixth moment and the seventh moment is the second time period, and the second time period indicates how long it takes for the device 2 to apply for high voltage after receiving Source_Capabilities3.
[0093] In another possible implementation of this embodiment, if the device 1 requests a 5V voltage, the USB PD protocol unit 2 and the device 1 complete the power configuration. Then, the USB-C port 3 determines whether the device 2 is connected. When the USB-C port 3 is connected to the device 2, the USB PD protocol unit 2 sends Source_Capabilities3 to the device 1 and the device 2 respectively, completes the power configuration with the two devices and the adapter, and restarts recording the fourth moment when the device 1 applies for high voltage and the sixth moment when the device 2 applies for high voltage.
[0094] In other embodiments of the present application, if USB-C port 1 is not connected to device 1 and USB-C port 3 is connected to device 2, the USB PD protocol unit 2 turns on the switch module 6, sends Source_Capabilities1 to device 2, and starts recording the sixth moment when device 2 applies for high voltage, and determines whether Request4 of device 2 is a 5V voltage.
[0095] If the voltage requested by device 2 is not 5V, USB PD protocol unit 2 communicates with device 2 and adapter to complete power configuration, and ends recording the seventh moment when device 2 applies for high voltage. Then, it is determined whether USB-C port 1 is connected to device 1. When USB-C port 1 is connected to device 1, USB PD protocol unit 2 sends Source_Capabilities3 with only 5V voltage to device 2, and completes power configuration with device 2 and adapter; USB PD protocol unit 2 sends Source_Capabilities3 to device 1, starts recording the time when device 1 applies for high voltage, and records the fourth moment when device 1 applies for high voltage. Then, if device 1 is unplugged, USB PD protocol unit 2 sends Request1 to the adapter to complete power configuration. If device 1 is not unplugged and device 2 is unplugged, USB PD protocol unit 2 sends Request1 to the adapter to complete power configuration. If device 1 is not unplugged and device 2 is not unplugged, it is determined whether Request2 of device 1 is a 5V voltage. If device 1 is a 5V voltage, USB PD protocol unit 2 completes power configuration with device 1 and waits for device 1 to apply for high voltage. If the voltage of device 1 is not 5V, USB PD protocol unit 2 sends a Reject to device 1 and then sends Source_Capabilities3 with only 5V voltage to device 1, and completes power configuration with device 1 and the adapter; maintains 5V to charge device 1, and ends recording the fifth moment when device 1 applies for high voltage.
[0096] In a possible implementation of this embodiment, if device 2 requests a 5V voltage, USB PD protocol unit 2 and device 2 complete power configuration. Then, it is determined whether USB-C port 1 is connected to device 1. When USB-C port 1 is connected to device 1, USB PD protocol unit 2 sends Source_Capabilities 3 to device 1 and device 2 respectively, completes power configuration with the two devices and the adapter, and restarts recording the fourth moment when device 1 applies for high voltage and the sixth moment when device 2 applies for high voltage.
[0097] Based on the above two embodiments, if device 1 and device 2 request a 5V voltage, if device 1 applies for high voltage first, the USB PD protocol unit 2 sends a Reject to device 1 and then sends Source_Capabilities3 with only 5V voltage to device 1, and completes the power configuration with device 1 and the adapter; maintains 5V to charge device 1, and ends recording the fifth moment when device 1 applies for high voltage. Then determine whether Request5 of device 2 is a 5V voltage. If Request5 of device 2 is a 5V voltage, the USB PD protocol unit 2 completes the power configuration with device 2. Wait for device 2 to apply for high voltage. If Request5 of device 2 is not a 5V voltage, the USB PD protocol unit 2 sends a Reject to device 2 and then sends Source_Capabilities3 with only 5V voltage to device 2, and completes the power configuration with device 2 and the adapter; maintains 5V to charge device 2; and ends recording the seventh moment when device 2 applies for high voltage.
[0098] If device 2 applies for high voltage first, USB PD protocol unit 2 sends a Reject to device 2 and then sends Source_Capabilities3 with only 5V voltage to device 2, and completes power configuration with device 2 and the adapter; maintains 5V to charge device 2, and ends recording the seventh moment when device 2 applies for high voltage. Then it is determined whether Request3 of device 1 is a 5V voltage. If Request2 of device 1 is a 5V voltage, USB PD protocol unit 2 completes power configuration with device 1 and waits for device 1 to apply for high voltage. If Request2 of device 1 is not a 5V voltage, USB PD protocol unit 2 sends a Reject to device 1 and then sends Source_Capabilities3 with only 5V voltage to device 1, and completes power configuration with device 1 and the adapter; maintains 5V to charge device 1; and ends recording the fifth moment when device 1 applies for high voltage.
[0099] Based on the above process, a first time period for the device 1 to apply for high voltage and a second time period for the device 1 to apply for high voltage can be determined.
[0100] Determine whether the high-voltage time period (first time period) applied by device 1 is greater than the high-voltage time period (second time period) applied by device 2. If the high-voltage time applied by device 1 is greater than the high-voltage time applied by device 2, the time difference between the high-voltage time applied by device 1 and the high-voltage time applied by device 2 is calculated, and USB PD protocol unit 2 sends Source_Capabilities3 to device 1 and completes power configuration on device 1. If the time difference is up, USB PD protocol unit 2 sends Source_Capabilities3 to device 2 and completes power configuration on device 2. This allows device 1 and device 2 to apply for high voltage at the same time. USB PD protocol unit 2 applies for high voltage to the adapter, and completes power configuration with the adapter, device 1, and device 2 within the standard time.
[0101] If the time when device 1 applies for high voltage is less than the time when device 2 applies for high voltage, the time difference between the time when device 1 applies for high voltage and the time when device 2 applies for high voltage is calculated, and USB PD protocol unit 2 sends Source_Capabilities3 to device 2 and completes the power configuration on device 2. If the time difference is up, USB PD protocol unit 2 sends Source_Capabilities3 to device 1 and completes the power configuration on device 1. This allows device 1 and device 2 to apply for high voltage at the same time. USB PD protocol unit 2 applies for high voltage to the adapter, and completes the power configuration with the adapter, device 1, and device 2 respectively within the standard time.
[0102] The above describes the method embodiment provided by the present application, and the following describes the device embodiment provided by the present application. It should be understood that the description of the device embodiment corresponds to the description of the method embodiment, so the content not described in detail can be referred to the method embodiment above, and for the sake of brevity, it will not be repeated here.
[0103] Figure 7 is a schematic block diagram of a communication device provided in an embodiment of the present application. Figure 7 As shown, the communication device 700 may include a transceiver unit 710 and / or a processing unit 720. The transceiver unit 710 may implement corresponding communication functions, and the processing unit 720 is used to perform data processing. The transceiver unit 710 may also be referred to as a communication interface or a communication unit. Optionally, the device 700 may also include a storage unit, which may be used to store instructions and / or data, and the processing unit 720 may read the instructions and / or data in the storage unit, so that the device implements the aforementioned method embodiment.
[0104] Specifically, the transceiver unit 710 is used to send a first message to a first device at a first moment, where the first message is used to indicate a power configuration option of a power supplier;
[0105] sending the first message to the second device at a second moment, where the time length between the first moment and the second moment is used to indicate: a time difference between a first time period in which the first device applies for a first voltage and a second time period in which the second device applies for the first voltage;
[0106] At a third moment, the first device and the second device begin to be powered by the first voltage.
[0107] Optionally, the transceiver unit 710 is further configured to send the first message to the first device, and record a fourth time at which the first message is sent;
[0108] receiving a first request message sent by the first device, where the first request message is used to request the first voltage, and recording a fifth time at which the first device requests the first voltage;
[0109] Optionally, the processing unit 720 is configured to determine the first time period based on the fourth moment and the fifth moment.
[0110] Optionally, the transceiver unit 710 is further configured to send the first message to the second device, and record a sixth time of sending the first message;
[0111] receiving a second request message sent by the second device, where the second request message is used to request the first voltage, and recording a seventh time at which the second device requests the first voltage;
[0112] Optionally, the processing unit 720 is configured to determine the second time period based on the sixth moment and the seventh moment.
[0113] Optionally, the transceiver unit 710 is further used to send a second message to the first device, where the second message is used to instruct the power supplier to supply power at a second voltage.
[0114] Optionally, the transceiver unit 710 is further used to send the second message to the second device.
[0115] The embodiment of the present application also provides a rechargeable data cable, Figure 8 This is a schematic diagram of the structure of the device provided in the embodiment of the present application. Figure 8 As shown, the device 800 includes a processor 801, a memory 802, a communication interface 803 and a bus 804. The processor 801, the memory 802, the communication interface 803 and the bus 804 can also communicate through other means such as wireless transmission. The memory 802 is used to store instructions, the processor 801 is used to execute the instructions stored in the memory 802, the memory 802 stores program code 8021, and the processor 801 can call the program code 8021 stored in the memory 802 to execute Figure 4-Figure 6 The charging method is shown.
[0116] It should be understood that in the embodiment of the present application, the processor 801 may be a CPU, and the processor 801 may also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.
[0117] The memory 802 may include a read-only memory and a random access memory, and provide instructions and data to the processor 801. The memory 802 may also include a non-volatile random access memory. The memory 802 may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct memory bus random access memory (DR RAM).
[0118] In addition to the data bus, the bus 804 may also include a power bus, a control bus, and a status signal bus. Figure 8 Various buses are labeled as bus 804.
[0119] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented using software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded or executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center containing one or more available media sets. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium. The semiconductor medium can be a solid state drive (SSD).
[0120] The embodiment of the present application further provides a computer readable medium for storing computer program code, the computer program including instructions for executing the charging method of the embodiment of the present application in the above method 100. The readable medium may be a read-only memory (ROM) or a random access memory (RAM), which is not limited in the embodiment of the present application.
[0121] The present application also provides a computer program product, which includes instructions. When the instructions are executed, the device or equipment respectively performs operations corresponding to the above method 100.
[0122] The embodiment of the present application further provides a system chip, which includes: a processing unit and a communication unit, the processing unit, for example, may be a processor, and the communication unit, for example, may be an input / output interface, a pin or a circuit, etc. The processing unit may execute computer instructions to enable the chip in the charging pile to execute any of the charging methods provided in the embodiment of the present application.
[0123] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A charging method, characterized in that: The method comprises: Sending a first message to a first device at a first moment, wherein the first message is used to indicate a power configuration option of a power supplier; sending the first message to the second device at a second moment, where the time length between the first moment and the second moment is used to indicate: a time difference between a first time period in which the first device applies for a first voltage and a second time period in which the second device applies for the first voltage; At a third moment, the first device and the second device begin to be powered by the first voltage.
2. The method according to claim 1, characterized in that Before sending the first message to the first device at the first moment, the method further includes: sending the first message to the first device, and recording a fourth time at which the first message is sent; receiving a first request message sent by the first device, where the first request message is used to request the first voltage, and recording a fifth time at which the first device requests the first voltage; The first time period is determined based on the fourth time and the fifth time.
3. The method according to claim 2, characterized in that The method further comprises: sending the first message to the second device, and recording a sixth time at which the first message is sent; receiving a second request message sent by the second device, where the second request message is used to request the first voltage, and recording a seventh time at which the second device requests the first voltage; The second time period is determined based on the sixth time and the seventh time.
4. The method according to claim 3, characterized in that The method further comprises: A second message is sent to the first device, where the second message is used to instruct a power supplier to supply power at a second voltage.
5. The method according to claim 3 or 4, characterized in that: Before receiving the first request message sent by the first device, the method further includes: The second message is sent to the second device.
6. The method according to any one of claims 1 to 5, characterized in that The first voltage is greater than 5V, and the second voltage is less than or equal to 5V.
7. The method according to any one of claims 2 to 6, characterized in that: The first message and / or the second message is a Source_Capabilities message.
8. A rechargeable data cable, characterized in that: The data line is used to execute the method according to any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method according to any one of claims 1 to 7 when executed by a processor.
10. A chip, characterized in that: include: A processor, configured to call and run a computer program from a memory, so that a device equipped with the chip executes a method as claimed in any one of claims 1 to 7.