Charging method, chip, equipment and storage medium
By using the target protocol in the charging system to communicate with the power supply device and through the first non-target protocol, the problem of inconsistency between the electronic device and the charger or adapter is solved, and the effect of fast charging is achieved.
Patent Information
- Application Number
- CN202311323422.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-11
- Publication Date
- 2025-04-11
AI Technical Summary
The charging protocol between electronic devices and chargers or adapters is inconsistent, resulting in the inability to achieve fast charging, causing inconvenience to users.
Through a charging method, the power supply device is communicated with the power supply device using a target protocol and communicated with the charging device through a first non-target protocol, so that the power supply device can provide power according to the needs of the charging device.
It is achieved that without the target protocol, the charging device can be used for fast charging with the power supply device with the target protocol, solving the problem of fast charging caused by inconsistent protocols.
Smart Images

Figure CN119813406A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of charging of electronic terminal equipment, and specifically to a charging method, chip, equipment and storage medium. Background Art
[0002] With the advancement of science and technology and the rapid development of electronic devices, people pay more and more attention to the charging efficiency of electronic devices. In the specific use process, electronic devices often need to be used in combination with chargers or adapters. However, since the charging protocols carried by electronic devices and matching chargers or adapters may not be completely consistent, for example, the charger or adapter carries the UFCS (Universal Fast Charging Specification) protocol, while the matching electronic device does not have the UFCS protocol. At this time, when a charger or adapter carrying the UFCS protocol is used to charge an electronic device (the electronic device does not have the UFCS protocol), the charger or adapter cannot quickly charge the electronic device, and the electronic device cannot experience UFCS fast charging, which causes serious inconvenience to the user. Summary of the invention
[0003] The purpose of the present application is to provide a charging method, chip, device and storage medium, so as to improve the problem in the prior art that the electronic device cannot be quickly charged when the protocols carried by the charger or adapter and the matching electronic device are different.
[0004] In a first aspect, an embodiment of the present application provides a charging method, which is applied to a charging device, comprising:
[0005] Based on the target protocol, power supply information related to the target power supply device is obtained, and the target power supply device is provided with the target protocol;
[0006] Based on the first non-target protocol, sending power supply information related to the target power supply device to the target charging device;
[0007] Based on the first non-target protocol, receiving charging parameter information of the target charging device, the charging parameter information matches the power supply information;
[0008] Based on the target protocol, the charging parameter information of the target charging device is sent to the target power supply device, so that the target power supply device charges the target charging device.
[0009] In a possible implementation manner of the first aspect, the power supply information related to the target power supply device includes: power supply configuration parameters of the target power supply device and power supply configuration parameters of a cable electrically connected to an output terminal of the target power supply device.
[0010] In a possible implementation manner of the first aspect, after sending the charging parameter information of the target charging device to the target power supply device based on the target protocol, the method further includes:
[0011] Based on the target protocol, feedback information of the target power supply device is obtained, where the feedback information is used to indicate the result of the target power supply device performing power supply configuration according to the charging parameter information of the target charging device;
[0012] Based on the first non-target protocol, the feedback information is sent to the target charging device.
[0013] In a possible implementation manner of the first aspect, after sending the charging parameter information of the target charging device to the target power supply device based on the target protocol, the method further includes:
[0014] If the feedback information of the target power supply device is not obtained within the preset time, the charging parameter information of the target charging device is received again based on the first non-target protocol; wherein the feedback information is used to indicate the result of the power supply configuration performed by the target power supply device according to the charging parameter information of the target charging device.
[0015] In a possible implementation of the first aspect, before acquiring power supply information related to the target power supply device based on the target protocol, the method further includes: determining whether the external device is the target power supply device in response to an access operation of the external device;
[0016] Based on the target protocol, the power supply information related to the target power supply device is obtained, including:
[0017] When the external device is a target power supply device, power supply information related to the target power supply device is obtained based on the target protocol.
[0018] In a possible implementation manner of the first aspect, the target protocol is the UFCS protocol.
[0019] In a possible implementation manner of the first aspect, the first non-target protocol is a PD protocol.
[0020] In a possible implementation manner of the first aspect, determining whether the external device is a target power supply device includes:
[0021] Based on the target protocol, establish a communication connection with the external device;
[0022] After the communication connection with the external device is successful, it is determined that the external device is a target power supply device.
[0023] In a possible implementation manner of the first aspect, the method further includes:
[0024] In the process of charging the target power supply device to the target charging device, based on the target protocol, obtaining the updated power supply configuration parameters of the target power supply device;
[0025] Based on the first non-target protocol, sending the updated power supply configuration parameters of the target power supply device to the target charging device;
[0026] The re-execution step is based on the first non-target protocol, receiving the charging parameter information of the target charging device and the step is based on the target protocol, sending the charging parameter information of the target charging device to the target power supply device.
[0027] In a second aspect, an embodiment of the present application provides a charging device, including:
[0028] A target protocol unit, used to obtain power supply information related to a target power supply device based on a target protocol, wherein the target power supply device is provided with a target protocol;
[0029] A first non-target protocol unit, configured to send power supply information related to a target power supply device to a target charging device based on a first non-target protocol;
[0030] The first non-target protocol unit is further used to receive charging parameter information of the target charging device based on the first non-target protocol, where the charging parameter information matches the power supply information;
[0031] The target protocol unit is further configured to send charging parameter information of the target charging device to the target power supply device based on the target protocol, so that the target power supply device charges the target charging device.
[0032] In a third aspect, an embodiment of the present application provides a chip comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, an electronic device is triggered to execute the method of the first aspect.
[0033] In a possible implementation of the third aspect, the chip also includes: a D+ pin, a D- pin, a CC1 pin and a CC2 pin; wherein the D+ pin of the chip is used to be externally connected to the D+ pin of the first port; the D- pin of the chip is used to be externally connected to the D- pin of the first port; the CC1 pin of the chip is used to be externally connected to the CC1 pin of the second port; and the CC2 pin of the chip is used to be externally connected to the CC2 pin of the second port.
[0034] In a fourth aspect, an embodiment of the present application provides an electronic device, and the electronic device includes the chip of the third aspect.
[0035] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the electronic device executes the method of the first aspect.
[0036] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium including a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute the method of the first aspect.
[0037] By adopting the solution provided in the embodiment of the present application, the target power supply device is communicated with through the target protocol, and the target charging device is communicated with through the first non-target protocol, so that the target power supply device can provide power to the target charging device based on the needs of the target charging device. Therefore, by adopting the solution provided in the embodiment of the present application, the target charging device can be matched with the power supply device having the target protocol when it does not have the target protocol, and the target power supply device can provide power to the target charging device based on the target protocol for fast charging. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 A schematic diagram of a charging method provided in an embodiment of the present application.
[0039] Figure 2a A schematic diagram of a charging method provided in an embodiment of the present application.
[0040] Figure 2b A schematic diagram of a charging method provided in an embodiment of the present application.
[0041] Figure 2c A schematic diagram of a charging method provided in an embodiment of the present application.
[0042] Figure 3 A flowchart for determining whether an external device is a target power supply device in response to an access operation of the external device provided in an embodiment of the present application.
[0043] Figure 4 A charging device is provided in an embodiment of the present application.
[0044] Figure 5 A schematic diagram of the connection relationship between a chip, a first port, a second port, a target power supply device and a target charging device provided in an embodiment of the present application.
[0045] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention.
[0046] Figure 7A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention.
[0047] Figure 8 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0048] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0049] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0050] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0051] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0052] If the charging protocols of an electronic device and its matching charger or adapter are inconsistent, the charger or adapter will not be able to fully utilize the charging advantages of the charger or adapter when charging the electronic device. For example, the charger or adapter contains the UFCS protocol.
[0053] As a new domestic industry universal charging protocol, the UFCS (Universal Fast Charging Specification) protocol aims to develop a converged fast charging standard for mobile terminals, solve the problem of incompatibility between interoperable fast charging, and serve as the basis for the long-term evolution of fast charging technology, promote the interoperability of manufacturers' fast charging technology in existing terminals in the industry, and guide and standardize the product development and production of equipment manufacturers (upstream and downstream industry chains) to create a fast, safe and compatible charging environment for end users. With the advancement of technology, the UFCS protocol has been first applied to mobile phone products and mobile phone chargers.
[0054] Since the UFCS protocol was launched a short time ago, most mobile terminal devices currently used by users (such as laptops or mobile phones) do not support UFCS protocol charging in terms of software and hardware. Therefore, most mobile terminal devices currently used by users cannot experience UFCS fast charging. In addition, since the current development trend of notebooks tends to be thin and light, notebooks cannot integrate interfaces with thicker connectors (such as USB Type-A, HDMI, etc.). When an external USB keyboard and mouse is required, or the display is expanded through the HDMI interface, an adapter device will be used to expand the function of the interface. The adapter device can be a Dock (expansion dock). And because the notebook interface is limited, the notebook also needs to use the Type-C interface on the adapter device for charging and data functions. However, the existing adapter devices do not support the UFCS protocol, which results in: even if the existing mobile terminal devices support the UFCS protocol in software and hardware, UFCS fast charging cannot be achieved through the adapter device.
[0055] In view of the above problems, the embodiments of the present application provide a charging method, apparatus, chip, device and storage medium, which can realize fast charging of electronic devices that do not have a fast charging protocol using a charger or adapter that has a fast charging protocol. The following is a detailed description.
[0056] Figure 1 A schematic diagram of a charging method provided in an embodiment of the present application.
[0057] See also Figure 1 , the embodiment of the present application provides a charging method, applied to a charging device, comprising:
[0058] Step S101 : The charging device obtains power supply information related to a target power supply device based on a target protocol, and the target power supply device is provided with a target protocol.
[0059] In an embodiment of the present application, the charging device may be a connector between a target power supply device and a target charging device, such as an expansion dock. The charging device communicates with the target power supply device using a target protocol, and receives power supply information related to the target power supply device provided by the target power supply device. Among them, the target protocol is a fast charging protocol, and in some embodiments it may be a UFCS protocol. The target power supply device refers to a power supply device. The power supply device may be a device that can draw power from a power consumption network (the power consumption network may be a power supply network of the national power grid or other power supply network that can provide power to power consumption devices) and provide the electronic device with the current or voltage required for charging. For example, the target power supply device may be a charger or an adapter. The power supply device may also be a device that stores electricity itself, such as a mobile power supply. It should be noted that in addition to the above-mentioned products, the target power supply device may also be other types of power supply devices.
[0060] In step S101, the charging device communicates with the target power supply device based on the target protocol to obtain power supply information related to the target power supply device. When supplying power, the power supply power, power supply current, power supply voltage and other parameter information used by different power supply devices may be different. Therefore, in order to provide more reasonable and efficient power supply configuration parameters to the target charging device, it is necessary to obtain the power supply information of the target power supply device.
[0061] As a possible implementation, the power supply information related to the target power supply device may include: power supply configuration parameters of the target power supply device and power supply configuration parameters of the cable electrically connected to the output terminal of the target power supply device. At this time, the power supply information related to the target power supply device obtained based on the target protocol includes:
[0062] Based on the target protocol, power supply configuration parameters of the target power supply device and power supply configuration parameters of the cable electrically connected to the output terminal of the target power supply device are obtained.
[0063] Among them, the power supply configuration parameters of the target power supply device include: the maximum allowable output power and voltage and current configuration information of the target power supply device. The cable refers to the transmission line used by the target charging device to transmit data, current or voltage to the target power supply device, such as a data cable with a type-c port. The cable is electrically connected to the output end of the target power supply device. The output end of the target power supply device is a port that outputs electrical energy to the outside. The power supply configuration parameters of the cable include: the maximum current, maximum voltage or maximum power allowed to be transmitted by the cable.
[0064] In this step, the charging device communicates with the target power supply device based on the target protocol and receives the power supply configuration parameters provided by the target power supply device. The way in which the charging device obtains the power supply configuration parameters of the cable is determined based on the hardware conditions of the cable itself. For example, when a cable chip is provided on the cable, the charging device can obtain the power supply configuration parameters of the cable by receiving the power supply configuration parameters sent by the cable chip or by reading the power supply configuration parameters stored in the cable chip. When a cable chip is not provided on the cable, the charging device can determine the power supply configuration parameters of the cable by the voltage at both ends of the cable. The voltage at both ends of the cable can be obtained by a voltage division method.
[0065] In this step, the charging device obtains the output capacity of the target power supply device and the cable by obtaining the power supply configuration parameters of the target power supply device and the power supply configuration parameters of the cable electrically connected to the output end of the target power supply device to ensure power safety.
[0066] Step S102: Based on the first non-target protocol, the charging device sends power supply information related to the target power supply device to the target charging device.
[0067] In an embodiment of the present application, the relevant power supply information obtained from the target power supply device is sent to the target charging device through the first non-target protocol. The first non-target protocol is a different protocol from the target protocol, that is, the first non-target protocol is different from the target protocol. The first non-target protocol is a charging protocol, and it can also be a fast charging protocol different from the target protocol. For example, in some embodiments, the first non-target protocol is a PD (Power Delivery power output) protocol. The first non-target protocol is provided in the target charging device. That is, the target charging device is loaded with the first non-target protocol. The target charging device refers to an electronic device that needs to be charged. The target charging device can be an electronic product such as a laptop computer, a mobile phone, and a tablet computer. It should be noted that in addition to the above-mentioned electronic products, the target charging device can also be other electronic devices that need to be charged. That is, the target charging device can be an electronic product such as a laptop computer, a mobile phone, and a tablet computer, which is only an illustrative example of the target charging device, not a limitation.
[0068] In step S102, in order to be compatible with the target charging device that does not have the target protocol, the charging device communicates with the target charging device through the first non-target protocol, and sends the power supply information related to the target power supply device to the target charging device. Combined with step S101, the target protocol and the first non-target protocol can be docked or converted (the conversion or docking here should be understood as the target power supply device with the target protocol and the target charging device with the first non-target protocol can indirectly communicate).
[0069] As a possible implementation manner, based on the first non-target protocol, the charging device sending the power supply information related to the target power supply device to the target charging device includes:
[0070] Based on the first non-target protocol, the charging device sends the power supply configuration parameters of the target power supply device and the power supply configuration parameters of the cable electrically connected to the output terminal of the target power supply device to the target charging device. The charging device communicates with the target charging device based on the first non-target protocol, and sends the acquired power supply configuration parameters of the target power supply device and the power supply parameters of the cable electrically connected to the output terminal of the target power supply device to the target charging device.
[0071] Step S103: Based on the first non-target protocol, the charging apparatus receives charging parameter information of the target charging device, where the charging parameter information is used to configure the target power supply device.
[0072] In an embodiment of the present application, the charging device receives the charging parameter information sent by the target charging device through the first non-target protocol to obtain the power demand of the target charging device, and thereby ensure the power safety of the target charging device during the charging process. The charging parameter information of the target charging device is determined by the target charging device based on its own hardware conditions, battery management strategy and received power supply information. The charging parameter information includes: the maximum input power or voltage and current configuration information allowed by the target charging device. Among them, in some implementations, the voltage and current configuration information can be presented in the form of a voltage and current configuration table. The maximum input power refers to the maximum charging power allowed by the target charging device under the premise of ensuring power safety, where power safety includes that the hardware facilities of the target charging device operate in a safe state, for example, the hardware facilities of the target charging device operate within a set voltage or current range.
[0073] In step S103, the charging device communicates with the target charging device through the first non-target protocol to obtain the charging parameter information of the target charging device, thereby ensuring the power safety of the charging device during the charging process.
[0074] Step S104: Based on the target protocol, the charging device sends the charging parameter information of the target charging device to the target power supply device, so that the target power supply device charges the target charging device.
[0075] In the embodiment of the present application, the charging device sends the charging parameter information received from the target charging device to the target power supply device through the target protocol. The target power supply device configures the maximum output power provided to the target charging device based on the charging parameter configuration, which ensures the power safety of the target charging device on the one hand, and realizes fast charging of the target charging device on the other hand; thus, the target power supply device provides power to the target charging device according to the target protocol, realizing fast charging of the target charging device.
[0076] In step S104, the charging device communicates with the target power supply device based on the target protocol, and sends the charging parameter information of the target charging device to the target power supply device, so that the target power supply device can configure the power supply based on the charging parameter information of the target charging device, thereby ensuring the safety of electricity use and providing power based on the needs of the target charging device.
[0077] The charging method provided in the embodiment of the present application communicates with the target power supply device through the target protocol, and communicates with the target charging device through the first non-target protocol, so that the target power supply device can provide power to the target charging device based on the needs of the target charging device. Therefore, the scheme provided in the embodiment of the present application can realize the transfer between the target protocol in the target power supply device and the first non-target protocol between the target charging device, and enable the target power supply device to provide power to the target charging device based on the target protocol for fast charging. For example, when the target protocol is the UFCS protocol, the charging method provided in the embodiment of the present application can be realized: a terminal (such as a laptop) that does not support the UFCS protocol itself can be charged by the charging method provided in the present application with a UFCS protocol charger. UFCS fast charging. A notebook that supports UFCS fast charging itself, due to the limitation of the number of ports, needs to be connected to the docking station to achieve connection with the charger or adapter during actual use. The docking station is based on the charging method provided in the embodiment of the present application, which enables the charger or adapter to perform UFCS fast charging on the notebook.
[0078] Figure 2a A schematic diagram of a charging method provided in an embodiment of the present application. Figure 2b A schematic diagram of a charging method provided in an embodiment of the present application.
[0079] See also Figure 2a , Figure 2b In one embodiment of the present application, a charging method includes:
[0080] S201 , in response to an access operation of an external device, the charging apparatus determines whether the external device is a target power supply device, and a target protocol is set in the target power supply device.
[0081] When an external device is connected, respond and determine whether the external device is the target power supply device to start the subsequent steps.
[0082] In one implementation of this embodiment, Figure 3 As shown, in response to the access operation of the external device, determining whether the external device is a target power supply device includes:
[0083] S301 : Based on a second non-target protocol, in response to an access operation of an external device, a charging device determines whether the external device is a power supply device.
[0084] The second non-target protocol may be the same as or different from the first non-target protocol. The second non-target protocol is not the same as the target protocol, and the second non-target protocol is different from the target protocol.
[0085] When the external device is a power supply device, the charging apparatus executes step S302 .
[0086] S302: Based on the target protocol, the charging device establishes a communication connection with the external device.
[0087] The charging device can start the handshake process of the target protocol to shake hands with the external device, thereby establishing a communication connection with the external device. The purpose of the handshake process is to identify the charging device and the external device. When the target protocol is UFCS, the handshake process is: the charging device detects whether the pulse sequence of the D+ pin or D- pin of the external device meets the set pulse sequence. When the pulse sequence of the D+ pin or D- pin of the external device meets the set pulse sequence, the handshake is successful.
[0088] When the communication connection with the external device is successful, step S303 is executed.
[0089] S303, after the communication connection between the external device is successful, the charging device determines that the external device is a target power supply device.
[0090] For example, after the charging device successfully shakes hands with the external device, the charging device determines that the external device is the target power supply device. When the handshake with the external device is unsuccessful and the number of handshakes does not reach the third set threshold, the charging device repeats step S302 until the number of handshakes reaches the third set threshold or the handshake is successful.
[0091] After the handshake with the external device fails and the number of handshakes reaches the third set threshold, the charging device executes step S304.
[0092] S304: Based on the preset priority of the non-target protocol, the charging device determines the type of the external power supply device, so that the external power supply device charges the target charging device according to the type of the external power supply device.
[0093] The non-target protocol refers to the remaining charging protocols other than the target protocol loaded in the device for executing the charging method. The non-target protocol includes at least the first non-target protocol.
[0094] In one implementation of this embodiment, among the non-target protocols, the first non-target protocol has the highest priority. Taking the first non-target protocol with the highest priority (i.e., the first priority) as an example, the specific implementation process of determining the type of the external power supply device in step S304 is as follows: Based on the first non-target protocol, determine whether the power supply device is the first power supply device, and the first non-target protocol is set in the first power supply device. Specifically, it can be determined whether the power supply device is the first power supply device by the pin state corresponding to the first non-target protocol. For example, the first non-target protocol can be a PD protocol, and the charging device determines whether the external power supply device is the first power supply device by judging whether the signal state of the CC pin of the power supply device meets the state specified by the PD protocol. When the external power supply device is not the first power supply device, the charging device determines whether the external power supply device is the second power supply device based on the non-target protocol of the second priority. The second power supply device carries the non-target protocol of the second priority, and so on, the type of the external power supply device is obtained. After determining the type of the external power supply device, based on the type of the power supply device, the power supply device charges the target charging device. For example, when the external power supply device is a first power supply device, the target charging device is charged based on a first non-target protocol.
[0095] It should be noted that the execution order between S301 and S304 in the above embodiment is only a schematic illustration and is not a limitation on the execution order. For example, after step S301 and before S302, step S304 can be executed, but only the non-target protocol of the first priority in step S304 is executed to determine whether the external power supply device is the first power supply device. When the external power supply device is the first power supply device, the charging device enables the first power supply device to charge the target charging device based on the first non-target protocol. When the external power supply device is not the first power supply device, the charging device executes steps S302 to S304 again to determine the type of the external power supply device based on the priority of the non-target protocol other than the first non-target protocol.
[0096] When it is determined that the external device is a target power supply device, step S202 is executed.
[0097] Step S202: Based on the target protocol, the charging device obtains power supply information related to the target power supply equipment.
[0098] The target power supply device is provided with a target protocol. The specific implementation of step S202 can refer to step S101 and will not be described in detail here.
[0099] Before executing the step of obtaining power supply information related to the target power supply device based on the target protocol, determining whether the external device is the target power supply device can ensure that the subsequent steps (obtaining power supply information related to the target power supply device based on the target protocol) proceed smoothly.
[0100] Step S203: Based on the first non-target protocol, the charging device sends power supply information related to the target power supply device to the target charging device.
[0101] The specific implementation of step S203 may refer to step S102 and will not be described in detail here.
[0102] Step S204: Based on the first non-target protocol, the charging device receives the charging parameter information of the target charging equipment, and the charging parameter information matches the power supply information.
[0103] The specific implementation of step S204 may refer to step S103 and will not be described in detail here.
[0104] Step S205: Based on the target protocol, the charging device sends the charging parameter information of the target charging device to the target power supply device.
[0105] The specific implementation of step S205 may refer to step S104 and will not be described in detail here.
[0106] Step S206: Based on the target protocol, the charging device obtains feedback information from the target power supply device, where the feedback information is used to indicate the result of power supply configuration performed by the target power supply device according to the charging parameter information of the target charging device.
[0107] In the embodiment of the present application, the charging device receives feedback information from the target power supply device through the target protocol. The feedback information includes the configuration result of the target power supply device configured based on the charging parameter information of the target charging device.
[0108] In one implementation of the present embodiment, the configuration result of the target power supply device configured based on the charging parameter information of the target charging device includes configuration success or configuration failure. Wherein, when the charging parameters include the maximum input power allowed by the target charging device, configuration success means that the target power supply device has completed the maximum output power configuration based on the charging parameter information of the target charging device. At this time, the maximum output power configured by the target power supply device is less than or equal to the maximum allowed output power of the target power supply device, and the maximum output power configured by the target power supply device is less than or equal to the maximum input power allowed by the target charging device, and the maximum output power configured by the target power supply device is less than or equal to the maximum power allowed to be transmitted by the cable.
[0109] In one implementation of the present embodiment, the configuration result of the target power supply device configured based on the charging parameter information of the target charging device includes configuration success or configuration failure. Wherein, when the charging parameters include the voltage and current configuration information of the target charging device, configuration success means that the target power supply device has completed the voltage and current configuration based on the charging parameter information of the target charging device. Wherein, the maximum current in the current voltage configured by the target power supply device is less than or equal to the maximum current in the voltage and current configuration information provided by the target power supply device, and the maximum current in the current voltage configured by the target power supply device is less than or equal to the maximum current in the voltage and current configuration information provided by the target charging device, and the maximum current in the current voltage configured by the target power supply device is less than or equal to the maximum current allowed to be transmitted by the cable. At the same time, the maximum voltage in the current voltage configured by the target power supply device is less than or equal to the maximum voltage in the voltage and current configuration information provided by the target power supply device, and the maximum voltage in the current voltage configured by the target power supply device is less than or equal to the maximum voltage in the voltage and current configuration information provided by the target charging device, and the maximum voltage in the current voltage configured by the target power supply device is less than or equal to the maximum voltage allowed to be transmitted by the cable.
[0110] S207: Based on the first non-target protocol, the charging device sends feedback information to the target charging device.
[0111] Based on the first non-target protocol, the charging device sends feedback information to the target charging device, so that the target power supply device charges the target charging device. The charging device sends the received feedback information of the target power supply device to the target charging device through the first non-target protocol.
[0112] In steps S206 and S207, feedback information of the target power supply device is obtained and sent to the target charging device, so that the target charging device can understand whether the target power supply device has completed the power supply configuration, that is, whether the target power supply device has completed the preparation work before power supply. When the target power supply device has completed the power supply configuration, the target charging device will control the opening of the power supply line between the target power supply device and the target charging device, so as to charge.
[0113] In this embodiment, before the target charging device starts the charging circuit with the target power supply device, it is necessary to know whether the target power supply device has completed the preparatory work before charging, that is, whether the power supply configuration has been completed. After the target power supply device has successfully configured the power supply, the target charging device will start the charging circuit with the target power supply device. In this way, the target power supply device provides power to the target charging device according to the target protocol, thereby realizing fast charging of the target charging device.
[0114] Step S208: If the feedback information of the target power supply device is not obtained within the preset time, the charging device re-receives the charging parameter information of the target charging device based on the first non-target protocol.
[0115] The feedback information is used to indicate the result of the target power supply device performing power supply configuration according to the charging parameter information of the target charging device. In step S208, the feedback information includes the configuration result of the target power supply device performing configuration according to the charging parameter information of the target charging device.
[0116] In one implementation of the present embodiment, in step S208, the configuration result of the target power supply device being configured based on the charging parameter information of the target charging device includes a successful configuration. When the target power supply device is configured based on the charging parameter information of the target charging device and the configuration is successful, the target power supply device sends feedback information to the outside. When the target power supply device is configured based on the charging parameter information of the target charging device, but the configuration fails, the target power supply device does not send feedback information to the outside. Therefore, if the feedback information of the target power supply device is not obtained within the preset time, it means that the configuration has failed. At this time, it is necessary to re-receive the charging parameter information of the target charging device based on the first non-target protocol, and re-execute steps S205 to S208 until the number of repetitions reaches the first set threshold or the feedback information of the target power supply device is obtained within the preset time.
[0117] In one implementation of this embodiment, in step S208, the configuration result of the target power supply device configured based on the charging parameter information of the target charging device includes configuration success or configuration failure. The target power supply device is configured based on the parameter information of the target charging device. When the configuration is successful, the target power supply device sends feedback information to the outside. At this time, the feedback information includes that the configuration result of the target power supply device configured based on the charging parameter information of the target charging device is configuration success. The target power supply device is configured based on the parameter information of the target charging device. When the configuration fails, the target power supply device sends feedback information to the outside. At this time, the feedback information includes that the configuration result of the target power supply device configured based on the charging parameter information of the target charging device is configuration failure. Based on this, in this implementation, if the feedback information of the target power supply device is not obtained within the preset time, it means that the communication path between the target power supply device and the target power supply device fails. At this time, it is necessary to re-receive the charging parameter information of the target charging device based on the first non-target protocol, and re-execute steps S205 to S208 until the number of repetitions reaches the second set threshold or the feedback information of the target power supply device is obtained within the preset time.
[0118] In step S208, if the target power supply device does not receive feedback information within the preset time, the charging parameter information of the target charging device is received again based on the first non-target protocol. This step aims to re-communicate the target power supply device and the target charging information about the power supply configuration and retry to complete the power supply configuration of the target power supply device.
[0119] Figure 2c A schematic diagram of a charging method provided in an embodiment of the present application.
[0120] See also Figure 2c In one embodiment of the present application, the charging method further includes:
[0121] Step S209 , during the process of the target power supply device charging the target charging device, the charging apparatus obtains the updated power supply configuration parameters of the target power supply device based on the target protocol.
[0122] The power supply configuration parameters of the target power supply device before the update are inconsistent with the power supply configuration parameters after the update.
[0123] In one implementation of the present embodiment, the maximum allowable output power in the power supply configuration parameters of the target power supply device after the update is less than the maximum allowable output power in the power supply configuration parameters of the target power supply device before the update. The advantage of step S209 is that an update mechanism for the power supply configuration parameters of the target power supply device is established to ensure electricity safety. For example, as the charging time of the target power supply device to the target charging device increases, the target power supply device may become hot. In order to ensure electricity safety, the target power supply device needs to reduce the output power at this time. However, in order to match the power supply of the target power supply device with the needs of the target charging device, it is necessary to notify the target charging device before reducing the output power. Therefore, it is necessary to update the power supply configuration parameters of the target power supply device, and after receiving the updated power supply configuration parameters of the target power supply device, step S210 is executed.
[0124] S210: Based on the first non-target protocol, the updated power supply configuration parameters of the target power supply device are sent to the target charging device.
[0125] After step S210 is completed, step S204 to step S205 are re-executed, that is, the step of receiving the charging parameter information of the target charging device based on the first non-target protocol and the step of sending the charging parameter information of the target charging device to the target power supply device based on the target protocol are re-executed.
[0126] It should be noted that, in the embodiment of the present application, steps S209 to S210 are executed only after the power supply configuration parameters of the target power supply device are updated. If the power supply configuration parameters of the target power supply device are not updated, steps S209 to S210 do not need to be executed.
[0127] Figure 4 A charging device is provided in an embodiment of the present application.
[0128] See also Figure 4 , an embodiment of the present application also provides a charging device, the charging device includes: a target protocol unit 401 and a non-target protocol unit 402. Among them, the target protocol unit 401 is used to obtain power supply information related to the target power supply device based on the target protocol, and the target power supply device is provided with the target protocol. The non-target protocol unit 402 is used to send the power supply information related to the target power supply device to the target charging device based on the first non-target protocol. The non-target protocol unit 402 is also used to receive the charging parameter information of the target charging device based on the first non-target protocol, and the charging parameter information is used to configure the target power supply device. The target protocol unit 401 is also used to send the charging parameter information of the target charging device to the target power supply device based on the target protocol, so that the target power supply device charges the target charging device.
[0129] The charging device provided in the embodiment of the present application can implement the charging method provided in any of the aforementioned embodiments. The charging device provided in the embodiment of the present application communicates with the target power supply device through the target protocol, and communicates with the target charging device through the first non-target protocol, so that the target power supply device can provide power to the target charging device based on the needs of the target charging device. Therefore, by adopting the solution provided in the embodiment of the present application, it is possible to achieve communication between the target protocol in the target power supply device and the first non-target protocol between the target charging device, and enable the target power supply device to provide power to the target charging device based on the target protocol for fast charging.
[0130] Taking the target protocol as the UFCS protocol as an example, the charging device provided by the embodiment of the present application can achieve: when a notebook that does not support the UFCS protocol is charged by the charging method provided by the present application with a UFCS protocol charger, UFCS fast charging can be performed. When a notebook that supports UFCS fast charging itself needs an expansion dock to connect to a charger or adapter during actual use due to the limitation of the number of ports, the expansion dock can enable the charger or adapter to perform UFCS fast charging on the notebook based on the charging method provided by the embodiment of the present application.
[0131] In one embodiment of the present application, the target protocol unit 401 includes: a first receiving module. The first receiving module is used to obtain the power supply configuration parameters of the target power supply device and the power supply configuration parameters of the cable electrically connected to the output end of the target power supply device based on the target protocol. The non-target protocol unit 402 includes a first sending module. The first sending module is used to send the power supply configuration parameters of the target power supply device and the power supply configuration parameters of the cable electrically connected to the output end of the target power supply device to the target charging device based on the first non-target protocol.
[0132] In one embodiment of the present application, the target protocol unit 401 includes a second receiving module. The second receiving module is used to obtain feedback information of the target power supply device based on the target protocol, and the feedback information is used to indicate the result of the target power supply device performing power supply configuration according to the charging parameter information of the target charging device. The non-target protocol unit 402 includes a second sending module. The second sending module is used to send the feedback information to the target charging device based on the first non-target protocol.
[0133] In one embodiment of the present application, the target protocol unit 401 includes: a third sending module, which is used to send the charging parameter information of the target charging device to the target power supply device based on the target protocol. The non-target protocol unit 402 includes: a third receiving module. The third receiving module is used to receive the charging parameter information of the target charging device based on the first non-target protocol; wherein the charging parameter information of the target charging device is used to configure the target power supply device.
[0134] In one embodiment of the present application, the second receiving module is also used to: if the feedback information of the target power supply device is not obtained within the preset time, then re-receive the charging parameter information of the target charging device based on the first non-target protocol; wherein the feedback information is used to indicate the result of the power supply configuration performed by the target power supply device according to the charging parameter information of the target charging device.
[0135] In one embodiment of the present application, the non-target protocol unit 402 includes a response module, which is used to respond to the access operation of the external device. The target protocol unit 401 includes a determination module. The determination module is used to determine whether the external device is a target power supply device, and the target power supply device is provided with a target protocol. When the external device is a target power supply device, the target protocol unit 401 obtains power supply information related to the target power supply device based on the target protocol.
[0136] In an embodiment of the present application, the determination module is used to start the target protocol handshake process to shake hands with the external device based on the target protocol. After the handshake with the external device is successful, the determination unit determines that the external device is a target power supply device.
[0137] In one embodiment of the present application, during the process of the target power supply device charging the target charging device, the first receiving module is further used to obtain the updated power supply configuration parameters of the target power supply device based on the target protocol. The first sending module sends the updated power supply configuration parameters of the target power supply device to the target charging device based on the first non-target protocol.
[0138] Figure 5 A schematic diagram of the connection relationship between a chip, a first port, a second port, a target power supply device and a target charging device provided in an embodiment of the present application.
[0139] The embodiment of the present application further provides a chip 511, including a memory for storing computer program instructions and a processor for executing program instructions, wherein when the computer program instructions are executed by the processor, the chip 511 is triggered to execute the charging method provided in any of the above embodiments. The chip 511 integrates a target protocol and at least one non-target protocol. The at least one non-target protocol includes a first non-target protocol.
[0140] Taking the UFCS protocol as an example, the chip provided by this application can enable a notebook that does not support the UFCS protocol to be charged by the charging method provided by this application with a UFCS protocol charger, and can perform UFCS fast charging. For notebooks that support UFCS fast charging, due to the limitation of the number of ports, when actually using them, an expansion dock is required to connect to a charger or adapter. The expansion dock can enable the charger or adapter to perform UFCS fast charging on the notebook based on the charging method provided by the embodiment of this application.
[0141] See also Figure 5 In one embodiment of the present application, the chip 511 also includes: a D+ pin, a D- pin, a CC1 pin and a CC2 pin; wherein the D+ pin of the chip 511 is used to be externally connected to the D+ pin of the first port 512; the D- pin of the chip 511 is used to be externally connected to the D- pin of the first port 512; the CC1 pin of the chip 511 is used to be externally connected to the CC1 pin of the second port 513; and the CC2 pin of the chip 511 is used to be externally connected to the CC2 pin of the second port 513.
[0142] See also Figure 5In one implementation of this embodiment, the first port 512 is a type-c interface, and the second port 513 is a type-c interface. When the electronic device 510 provided in this embodiment is working, the first port 512 is externally connected to the target power supply device, and the target power supply device 520 is provided with a target protocol module 521; and / or a first non-target protocol module 522. The target protocol module 521 in the target power supply device 520 is provided with a D+ pin and a D- pin. When the target power supply device 520 is connected to the electronic device 510 provided in this embodiment, the D+ pin of the target protocol module 521 in the target power supply device 520 is electrically connected to the D+ pin of the first port 512, and the D- pin of the target protocol module 521 in the target power supply device 520 is electrically connected to the D- pin of the first port 512. The first non-target protocol module 522 in the target power supply device 520 is provided with a CC1 pin and a CC2 pin. When the target power supply device 520 is connected to the electronic device 510 provided in this embodiment, the CC1 pin of the first non-target protocol module 522 in the target power supply device 520 is electrically connected to the CC1 pin of the first port 512, and the CC2 pin of the first non-target protocol module 522 in the target power supply device 520 is electrically connected to the CC2 pin of the first port 512. The second port 513 is used to externally connect the target charging device 520, and the target charging device 530 is provided with a first non-target protocol module 531. The first non-target protocol module 531 in the target charging device 530 is provided with a CC1 pin and a CC2 pin. When the target charging device 530 is connected to the electronic device 510 provided in this embodiment, the CC1 pin of the first non-target protocol module 531 in the target charging device 530 is electrically connected to the CC1 pin of the second port 513, and the CC2 pin of the first non-target protocol module in the target charging device 530 is electrically connected to the CC2 pin of the second port 513.
[0143] Figure 6 A schematic diagram of an electronic device provided in an embodiment of the present application.
[0144] See also Figure 6, an embodiment of the present application further provides an electronic device 610, and the electronic device 610 includes a chip 611 provided by any of the aforementioned embodiments. Among them, the structure of the electronic device 610 refers to the electronic device 510. The structure of the chip 611 can refer to the chip 511. The electronic device may be a docking station. Taking the target protocol as the UFCS protocol as an example, the electronic device 610 provided by the present application can realize UFCS fast charging when a notebook that does not support the UFCS protocol is charged by the charging method provided by the present application in combination with a UFCS protocol charger. For a notebook that supports UFCS fast charging, due to the limitation of the number of ports, when an expansion dock is required to realize the connection with a charger or adapter during actual use, the expansion dock can enable the charger or adapter to perform UFCS fast charging on the notebook based on the charging method provided by the embodiment of the present application.
[0145] See also Figure 6 In one embodiment of the present application, the electronic device 610 further includes: a first port 612, a second port 613, a USB hub 614, and a USB interface 615. The first port 612 and the second port 613 are electrically connected to the chip, respectively. Among them, the first port 612 and the second port 613 can be type-c interfaces, respectively. The D+ pin of the chip 611 is connected to the D+ pin of the first port 612; the D- pin of the chip 611 is connected to the D- pin of the first port 612; the CC1 pin of the chip 611 is connected to the CC1 pin of the second port 613; the CC2 pin of the chip 611 is connected to the CC2 pin of the second port 613. The D+ pin of the second port 613 is electrically connected to the D+ pin of the USB hub 614; the D- pin of the second port 613 is electrically connected to the D- pin of the USB hub 614. The USB integrator 614 is electrically connected to the USB interface 615. The USB hub 614 is electrically insulated from the first port 612.
[0146] In this embodiment, the electrical insulation between the USB hub 614 and the first port 612 can ensure that a relatively high transmission speed is always maintained between the second port 612 and the chip 611 .
[0147] Figure 7 A schematic diagram of an electronic device provided in an embodiment of the present application.
[0148] See also Figure 7In one embodiment of the present application, the electronic device 710 includes: a chip 711, a first port 712, a second port 713, a USB hub 714 and a USB interface 715. The structure of the chip 711 can refer to the chip 511. The first port 712 and the second port 713 can be type-c interfaces respectively. The connection relationship between the chip 711, the first port 712, the second port 713, the USB hub 714 and the USB interface 715 in the electronic device 710 refers to the connection relationship between the chip 611, the first port 612, the second port 613, the USB hub 614 and the USB interface 615. The electronic device 710 also includes a switch unit 716. The USB integrator includes a D+ pin and a D- pin. The switch unit 716 includes: a first switch, a second switch and a switch control module. The D+ pin and D- pin of the USB integrator are electrically connected to the D+ pin and D- pin of the first port 120 through the first switch; the D+ pin and D- pin of the chip 110 are electrically connected to the D+ pin and D- pin of the first port 120 through the second switch. The first switch and the second switch are controlled by a switch control module. The switch control module is electrically connected to the chip 711, and the switch control module can control the conduction and disconnection of the first switch and the second switch respectively.
[0149] In one implementation of this embodiment, the first port 712 is a type-c interface, and the second port 713 is a type-c interface. The first port 712 is used for an external power supply device, and the second port 713 is used for an external charging device. Alternatively, the first port 712 is used for an external hardware storage device, and the second port 713 is used for an external terminal device with processing function (such as a computer, notebook, etc.).
[0150] In this embodiment, when the external device is a power supply device, the switch control module controls the first switch to be turned off and the second switch to be turned on, so that the chip can communicate with the target power supply device based on the target protocol (for example, UFCS protocol) based on the D+ pin and the D- pin as a charging port to achieve charging. When the external device is a storage device, such as a hard disk or a USB flash drive, the switch control module controls the first switch to be turned on and the second switch to be turned off, so that the D+ pin and the D- pin of the first port are used as data transmission ports.
[0151] An embodiment of the present application provides an electronic device, comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the electronic device executes the method of the first aspect.
[0152] Figure 8 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention.
[0153] In a possible implementation of this embodiment, please refer to Figure 8 , corresponding to the above embodiment, the present application further provides an electronic device 800. The electronic device 800 may include: a processor 801, a memory 802 and a communication unit 803. These components communicate through one or more buses. Those skilled in the art can understand that the structure of the electronic device shown in the figure does not constitute a limitation on the embodiment of the present invention. It can be a bus structure or a star structure, and can also include more or less components than shown in the figure, or combine certain components, or arrange components differently.
[0154] The communication unit 803 is used to establish a communication channel so that the electronic device can communicate with other devices, receive user data sent by other devices or send user data to other devices.
[0155] The processor 801 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It runs or executes software programs and / or modules stored in the memory 802, and calls data stored in the memory to perform various functions of the electronic device and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of multiple packaged ICs with the same or different functions. For example, the processor 801 can include only a central processing unit (CPU). In an embodiment of the present invention, the CPU can be a single computing core or multiple computing cores.
[0156] The memory 802 is used to store the execution instructions of the processor 801. The memory 802 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.
[0157] When the execution instructions in the memory 802 are executed by the processor 801 , the electronic device 800 can execute part or all of the steps in each embodiment of the charging method provided by the present invention.
[0158] In a specific implementation, the present invention further provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment of the charging method provided by the present invention. The storage medium may be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0159] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention or some parts of the embodiments.
[0160] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the device embodiment and the terminal embodiment, since they are basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.
Claims
1. A charging method, applied to a charging device, characterized in that: include: Based on the target protocol, obtaining power supply information related to the target power supply device, wherein the target power supply device is provided with the target protocol; Based on the first non-target protocol, sending the power supply information related to the target power supply device to the target charging device; Based on the first non-target protocol, receiving charging parameter information of the target charging device, wherein the charging parameter information is used to configure the target power supply device; Based on the target protocol, the charging parameter information of the target charging device is sent to the target power supply device, so that the target power supply device charges the target charging device.
2. The charging method according to claim 1, characterized in that: Based on the target protocol, the power supply information related to the target power supply device includes: power supply configuration parameters of the target power supply device and power supply configuration parameters of a cable electrically connected to an output terminal of the target power supply device.
3. The charging method according to claim 1, characterized in that: After sending the charging parameter information of the target charging device to the target power supply device based on the target protocol, the method further includes: Based on the target protocol, obtaining feedback information of the target power supply device, where the feedback information is used to indicate the result of power supply configuration performed by the target power supply device according to the charging parameter information of the target charging device; Based on the first non-target protocol, the feedback information is sent to the target charging device.
4. The charging method according to claim 1, characterized in that: After sending the charging parameter information of the target charging device to the target power supply device based on the target protocol, the method further includes: If no feedback information from the target power supply device is obtained within the preset time, the charging parameter information of the target charging device is received again based on the first non-target protocol; wherein the feedback information is used to indicate the result of the power supply configuration performed by the target power supply device according to the charging parameter information of the target charging device.
5. The charging method according to claim 1, characterized in that: Before acquiring the power supply information related to the target power supply device based on the target protocol, the method further includes: In response to an access operation of an external device, determining whether the external device is a target power supply device; The acquiring of power supply information related to the target power supply device based on the target protocol includes: When the external device is a target power supply device, power supply information related to the target power supply device is acquired based on a target protocol.
6. The charging method according to any one of claims 1 to 5, characterized in that: The target protocol is the UFCS protocol.
7. The charging method according to claim 5, characterized in that: Determining whether the external device is a target power supply device includes: Based on the target protocol, establishing a communication connection with the external device; After the communication connection with the external device is successful, it is determined that the external device is the target power supply device.
8. The charging method according to claim 1, characterized in that: Also includes: In the process of the target power supply device charging the target charging device, based on the target protocol, acquiring updated power supply configuration parameters of the target power supply device; Based on the first non-target protocol, sending the updated power supply configuration parameters of the target power supply device to the target charging device; The step of re-executing is based on the first non-target protocol, receiving the charging parameter information of the target charging device and the step of sending the charging parameter information of the target charging device to the target power supply device based on the target protocol.
9. A chip, characterized in that: It comprises a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the chip is triggered to execute the method according to any one of claims 1 to 8.
10. The chip according to claim 9, characterized in that: The chip also includes: a D+ pin, a D- pin, a CC1 pin and a CC2 pin; wherein the D+ pin of the chip is used to be externally connected to the D+ pin of the first port; the D- pin of the chip is used to be externally connected to the D- pin of the first port; the CC1 pin of the chip is used to be externally connected to the CC1 pin of the second port; and the CC2 pin of the chip is used to be externally connected to the CC2 pin of the second port.
11. An electronic device, characterized in that: The electronic device comprises the chip according to claim 9 or 10.
12. An electronic device, characterized in that: The electronic device comprises a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the electronic device executes the method according to any one of claims 1 to 8.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 8.