[go: up one dir, main page]

CN119813406A - A charging method, chip, device and storage medium - Google Patents

A charging method, chip, device and storage medium Download PDF

Info

Publication number
CN119813406A
CN119813406A CN202311323422.8A CN202311323422A CN119813406A CN 119813406 A CN119813406 A CN 119813406A CN 202311323422 A CN202311323422 A CN 202311323422A CN 119813406 A CN119813406 A CN 119813406A
Authority
CN
China
Prior art keywords
target
power supply
charging
protocol
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311323422.8A
Other languages
Chinese (zh)
Inventor
熊高文
刘静德
王涵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202311323422.8A priority Critical patent/CN119813406A/en
Publication of CN119813406A publication Critical patent/CN119813406A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

本申请实施例提供一种充电方法、芯片、设备及存储介质。其中,充电方法应用于充电装置,充电方法包括:基于目标协议,获取目标供电设备相关的供电信息,目标供电设备内设置有目标协议;基于第一非目标协议,将目标供电设备相关的供电信息发送至目标充电设备;基于第一非目标协议,接收目标充电设备的充电参数信息,充电参数信息用于配置目标供电设备;基于目标协议,将目标充电设备的充电参数信息发送至目标供电设备,以使目标供电设备向目标充电设备充电。本申请用于改善现有技术中充电器或适配器与搭配的电子设备载有的协议不同时,无法对电子设备进行快速充电的问题。

The embodiments of the present application provide a charging method, chip, device and storage medium. Among them, the charging method is applied to a charging device, and the charging method includes: based on the target protocol, obtaining power supply information related to the target power supply device, and 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 the charging parameter information of the target charging device, and the charging parameter information is used to configure the target power supply device; based on the target protocol, sending 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. The present application is used to improve the problem in the prior art that the electronic device cannot be quickly charged when the charger or adapter carries a different protocol from the matching electronic device.

Description

Charging method, chip, device and storage medium
Technical Field
The present application relates to the field of charging of electronic terminal devices, and in particular, to a charging method, a chip, a device, and a storage medium.
Background
With the progress of science and technology, the rapid development of electronic devices, the charging efficiency of electronic devices is becoming more and more important. In a specific use process, the electronic device is often matched with a charger or an adapter. However, since the charging protocol carried by the electronic device and the collocated charger or adapter is not necessarily completely consistent, for example, UFCS (Universal FAST CHARGING Specification, rapid charging Specification) protocols are carried in the charger or adapter, and UFCS protocols are not carried on the electronic device collocated with the charger or adapter. At this time, when the charger or the adapter carrying UFCS protocol is used to charge the electronic device (no UFCS protocol in the electronic device), the charger or the adapter cannot rapidly charge the electronic device, and the electronic device cannot experience UFCS rapid charging, which causes serious inconvenience to the user.
Disclosure of Invention
The application aims to provide a charging method, a chip, equipment and a storage medium, which are used for solving the problem that the electronic equipment cannot be charged rapidly when a charger or an adapter in the prior art is different from a matched electronic equipment in a loaded protocol.
In a first aspect, an embodiment of the present application provides a charging method, which is applied to a charging device, including:
Based on a target protocol, acquiring power supply information related to target power supply equipment, wherein the target protocol is arranged in the target power supply equipment;
Based on a first non-target protocol, power supply information related to the target power supply equipment is sent to the target charging equipment;
Receiving charging parameter information of target charging equipment based on a first non-target protocol, wherein the charging parameter information is matched with power supply information;
And based on the target protocol, sending the charging parameter information of the target charging equipment to the target power supply equipment so as to enable the target power supply equipment to charge the target charging equipment.
In a possible implementation manner of the first aspect, the power supply information related to the target power supply device includes a power supply configuration parameter of the target power supply device and a power supply configuration parameter of a cable electrically connected to an output terminal of the target power supply device.
In a possible implementation manner of the first aspect, after the sending, based on a target protocol, charging parameter information of the target charging device to the target power supply device, the method further includes:
Based on a target protocol, acquiring feedback information of the target power supply equipment, wherein the feedback information is used for representing a result of power supply configuration of the target power supply equipment according to charging parameter information of the target charging equipment;
The feedback information is sent to the target charging device based on the first non-target protocol.
In a possible implementation manner of the first aspect, after the sending, based on the target protocol, charging parameter information of the target charging device to the target power supply device, the method further includes:
And if the feedback information of the target power supply equipment is not acquired within the preset time, re-receiving the charging parameter information of the target charging equipment based on the first non-target protocol, wherein the feedback information is used for indicating a result of power supply configuration of the target power supply equipment according to the charging parameter information of the target charging equipment.
In a possible implementation manner 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;
Based on the target protocol, acquiring power supply information related to the target power supply equipment comprises:
And when the external equipment is the target power supply equipment, acquiring power supply information related to the target power supply equipment based on a target protocol.
In a possible implementation manner of the first aspect, the target protocol is UFCS protocol.
In one possible implementation manner of the first aspect, the first non-target protocol is a PD protocol.
In a possible implementation manner of the first aspect, determining whether the external device is the target power supply device includes:
establishing communication connection with external equipment based on a target protocol;
After the communication connection with the external equipment is successful, the external equipment is determined to be the target power supply equipment.
In a possible implementation manner of the first aspect, the method further includes:
Acquiring updated power supply configuration parameters of the target power supply equipment based on a target protocol in the process that the target power supply equipment charges the target charging equipment;
Based on a first non-target protocol, the updated power supply configuration parameters of the target power supply equipment are sent to the target charging equipment;
the re-executing step is based on a first non-target protocol, the receiving step is based on a charging parameter information of the target charging device, and the step is based on the target protocol, and the charging parameter information of the target charging device is sent to the target power supply device.
In a second aspect, an embodiment of the present application provides a charging device, including:
the target protocol unit is used for acquiring power supply information related to target power supply equipment based on a target protocol, wherein the target protocol is arranged in the target power supply equipment;
the first non-target protocol unit is used for transmitting power supply information related to the target power supply equipment to the target charging equipment based on the first non-target protocol;
The first non-target protocol unit is further used for receiving charging parameter information of the target charging equipment based on the first non-target protocol, and the charging parameter information is matched with the power supply information;
The target protocol unit is further used for sending the charging parameter information of the target charging equipment to the target power supply equipment based on the target protocol so as to enable the target power supply equipment to charge the target charging equipment.
In a third aspect, an embodiment of the application provides a chip comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger an electronic device to perform the method of the first aspect.
In one possible implementation manner of the third aspect, the chip further includes a d+ pin, a D-pin, a CC1 pin, and a CC2 pin, where the d+ pin of the chip is used to connect with the d+ pin of the first port, the D-pin of the chip is used to connect with the D-pin of the first port, the CC1 pin of the chip is used to connect with the CC1 pin of the second port, and the CC2 pin of the chip is used to connect with the CC2 pin of the second port.
In a fourth aspect, an embodiment of the present application provides an electronic device, including the chip of the third aspect.
In a fifth aspect, an embodiment of the application provides an electronic device comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, cause the electronic device to perform the method of the first aspect.
In a sixth aspect, an embodiment of the present application provides a computer readable storage medium, where the computer readable storage medium includes a stored program, where the program when run controls a device in which the computer readable storage medium is located to perform the method of the first aspect.
By adopting the scheme provided by the embodiment of the application, the target power supply equipment is communicated with the target power supply equipment through the target protocol and is communicated with the target charging equipment through the first non-target protocol, so that the target power supply equipment can provide power for the target charging equipment based on the requirement of the target charging equipment. Therefore, by adopting the scheme provided by the embodiment of the application, the target charging equipment can be matched with the power supply equipment with the target protocol under the condition that the target protocol is not provided, and the target power supply equipment can provide power for the target charging equipment based on the target protocol so as to carry out rapid charging.
Drawings
Fig. 1 is a schematic flow chart of a charging method according to an embodiment of the present application.
Fig. 2a is a schematic flow chart of a charging method according to an embodiment of the present application.
Fig. 2b is a schematic flow chart of a charging method according to an embodiment of the present application.
Fig. 2c is a schematic flow chart of a charging method according to an embodiment of the present application.
Fig. 3 is a flowchart of determining whether an external device is a target power supply device in response to an access operation of the external device according to an embodiment of the present application.
Fig. 4 is a charging device according to an embodiment of the present application.
Fig. 5 is a schematic diagram of a connection relationship among a chip, a first port, a second port, a target power supply device and a target charging device according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
For a better understanding of the technical solution of the present application, the following detailed description of the embodiments of the present application refers to the accompanying drawings.
It should be understood that the described embodiments are merely some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terminology used in the embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely an association relationship describing the associated object, and means that three relationships may exist, for example, a and/or b, and may mean that a single first exists while a single first and a single second exist. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
When the charging protocols carried by the electronic equipment and the matched charger or adapter are inconsistent, the charging advantages of the charger or adapter can not be fully exerted when the charger or adapter is used for charging the electronic equipment. The UFCS protocol is described as an example of the charger or the adapter.
UFCS (Universal FAST CHARGING Specification, fusion rapid charging technical Specification) protocol is used as a new domestic industry Universal charging protocol, aims to formulate a fusion rapid charging standard of a mobile terminal, solves the problem of incompatibility of interworking rapid charging, is used as a basis of long-term evolution of rapid charging technology, promotes interworking use of existing terminals in industry of manufacturer rapid charging technology, guides and standardizes product development and production of equipment manufacturers (upstream and downstream industrial chains), and creates a rapid, safe and compatible charging use environment for end users. Along with the improvement of technology, UFCS protocols have been applied to mobile phone products and mobile phone chargers.
Because of the short push-out time of UFCS protocol, most of the mobile terminal devices (such as notebooks or mobile phones) currently used by users do not support UFCS protocol charging on software and hardware. Therefore, most of the mobile terminal devices currently used by users cannot experience UFCS quick charges. In addition, because the development trend of the current notebook tends to be light and thin, the notebook cannot integrate thicker interfaces (such as USB Type-A, HDMI interfaces) of the connector, and when the external USB keyboard and mouse are required or the display is expanded through the HDMI interface, the function of the interface is expanded by using the switching device, and the switching device can be Dock. And because the notebook interface is limited, the notebook also needs to be charged and data functions through the Type-C interface on the switching device. However, the existing switching device does not support UFCS protocols, which results in that even if the existing mobile terminal device supports UFCS protocols on software and hardware, the quick charging of UFCS cannot be realized through the switching device.
In view of the above problems, embodiments of the present application provide a charging method, apparatus, chip, device, and storage medium, which can implement fast charging of an electronic device that is not loaded with a fast charging protocol by using a charger or an adapter loaded with the fast charging protocol. The following is a detailed description.
Fig. 1 is a schematic flow chart of a charging method according to an embodiment of the present application.
Referring to fig. 1, an embodiment of the present application provides a charging method, which is applied to a charging device, including:
in step S101, the charging device obtains power supply information related to the target power supply device based on the target protocol, where the target protocol is set in the target power supply device.
In an embodiment of the present application, the charging device may be a connector between the target power supply device and the target charging device, for example, a docking station. The charging device communicates with the target power supply equipment by utilizing a target protocol and receives power supply information related to the target power supply equipment, which is provided by the target power supply equipment. Wherein the target protocol is a fast charge protocol, which may be UFCS protocols in some embodiments. The target power supply device refers to a power supply device. The power supply device may be a device capable of taking power from a power consumption network (the power consumption network may be a power supply network of a national power grid or other power supply network capable of providing power energy to electric devices) and providing a current or voltage required for charging to the electronic device. For example, the target power supply device may be a charger or an adapter or the like. The power supply device may be a device that stores electric power itself, such as a mobile power supply. It should be noted that, in addition to the above products, the target power supply device may be another kind of power supply device.
In step S101, the charging device communicates with the target power supply device based on the target protocol, and obtains power supply information related to the target power supply device. When power is supplied, the power supply power, the power supply current, the power supply voltage and other parameter information adopted by different power supply devices can be different, so that the power supply information of the target power supply device needs to be acquired in order to provide more reasonable and efficient power supply configuration parameters for the target charging device.
As one possible implementation, the power supply information related to the target power supply device may include a power supply configuration parameter of the target power supply device and a power supply configuration parameter of a cable electrically connected to an output terminal of the target power supply device. At this time, the acquiring, based on the target protocol, power supply information related to the target power supply device includes:
Based on a target protocol, acquiring power supply configuration parameters of target power supply equipment and power supply configuration parameters of cables electrically connected with output ends of the target power supply equipment.
The power supply configuration parameters of the target power supply equipment comprise maximum allowable output power of the target power supply equipment and voltage and current configuration information. The cable refers to a transmission line, such as a data line with a type-c port, for the target charging device to transmit data, current, or voltage to the target power supply device. The cable is electrically connected with the output end of the target power supply equipment. The output terminal of the target power supply device is a port which points to the outside to output electric energy. The power supply configuration parameters of the cable include the maximum current, maximum voltage or maximum power the cable is allowed to transmit.
In this step, the charging device communicates with the target power supply device based on the target protocol, and receives the power supply configuration parameter provided by the target power supply device. The manner 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 disposed on the cable, the charging device may obtain the power supply configuration parameter of the cable by receiving the power supply configuration parameter sent by the cable chip or by reading the power supply configuration parameter stored in the cable chip. When no cable chip is arranged on the cable, the charging device can determine the power supply configuration parameters of the cable through the voltages at the two ends of the cable. The voltage across the cable can be obtained by voltage division.
In this step, the charging device obtains the output capacities 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 with the output end of the target power supply device, so as to ensure the power consumption safety.
In step S102, the charging device sends power supply information related to the target power supply device to the target charging device based on the first non-target protocol.
In the embodiment of the application, the related power supply information acquired from the target power supply equipment is sent to the target charging equipment through a first non-target protocol. The first non-target protocol is a different protocol than the target protocol, i.e. the first non-target protocol is different from the target protocol. The first non-target protocol is a charging protocol, and may be a fast charging protocol different from the target protocol. For example, in some embodiments the first non-target protocol is the PD (Power Delivery) protocol. The target charging device is internally provided with a first non-target protocol. I.e. the target charging device carries the first non-target protocol inside. The target charging device refers to an electronic device that needs to be charged. The target charging equipment can be electronic products such as notebook computers, mobile phones, tablet computers and the like. It should be noted that, besides the above electronic products, the target charging device may be other electronic devices that need to be charged. That is, the target charging device may be an electronic product such as a notebook computer, a mobile phone, a tablet computer, etc., which is merely a schematic example of the target charging device, not a limitation.
In step S102, in order to be compatible with a target charging device that does not have a target protocol, the charging apparatus communicates with the target charging device through a first non-target protocol, and transmits power supply information related to the target power supply device to the target charging device. In connection with step S101, a docking or conversion of the target protocol with the first non-target protocol can be achieved (conversion or docking herein is understood to mean that a communication can be achieved indirectly between the target power supply device with the target protocol and the target charging device with the first non-target protocol).
As one possible implementation manner, based on the first non-target protocol, the sending, by the charging apparatus, power supply information related to the target power supply device to the target charging device includes:
Based on a first non-target protocol, the charging device transmits to the target charging device a power supply configuration parameter of the target power supply device and a power supply configuration parameter of a cable electrically connected to an output of the target power supply device. The charging device communicates with the target charging device based on a first non-target protocol, and transmits the acquired information of the power supply configuration parameters of the target power supply device and the power supply parameters of the cable electrically connected with the output end of the target power supply device to the target charging device.
Step S103, based on the first non-target protocol, the charging device receives charging parameter information of the target charging device, where the charging parameter information is used to configure the target power supply device.
In the embodiment of the application, the charging device receives the charging parameter information sent by the target charging equipment through the first non-target protocol to acquire the power consumption requirement of the target charging equipment, and thus the power consumption safety of the target charging equipment in the charging process is ensured. The charging parameter information of the target charging device is determined by the target charging device based on the hardware condition of the target charging device, the battery management policy and the received power supply information. The charging parameter information includes maximum input power or voltage current configuration information allowed by the target charging device. In some implementations, the voltage-current configuration information may be presented in the form of a voltage-current configuration table. The maximum input power refers to the maximum charging power allowed by the target charging device on the premise of ensuring the electricity utilization safety, wherein the electricity utilization safety comprises that the hardware facility of the target charging device works in a safe state, for example, the hardware facility of the target charging device works in a set voltage or current range.
In step S103, the charging device communicates with the target charging device through the first non-target protocol, and obtains charging parameter information of the target charging device, so as to ensure electricity consumption safety of the charging device in the charging process.
In step S104, based on the target protocol, the charging apparatus transmits 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.
In the embodiment of the application, the charging device sends the charging parameter information received from the target charging equipment to the target power supply equipment through the target protocol. The target power supply equipment configures the maximum output power provided for the target charging equipment based on the charging parameters, so that the power utilization safety of the target charging equipment is ensured, and the target charging equipment is rapidly charged, so that the target power supply equipment provides electric energy for the target charging equipment according to a target protocol, and the rapid charging of the target charging equipment is realized.
In step S104, the charging device communicates with the target power supply device based on the target protocol, and 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 performs power supply configuration based on the charging parameter information of the target charging device, which not only ensures power consumption safety, but also can perform power supply based on the requirement of the target charging device.
According to the charging method provided by the embodiment of the application, the target power supply equipment is communicated with the target power supply equipment through the target protocol, and the target power supply equipment is communicated with the target charging equipment through the first non-target protocol, so that the target power supply equipment can supply power to the target charging equipment based on the requirement of the target charging equipment. Therefore, by adopting the scheme provided by the embodiment of the application, the switching between the target protocol in the target power supply equipment and the first non-target protocol between the target charging equipment can be realized, and the target power supply equipment can provide power for the target charging equipment based on the target protocol so as to carry out rapid charging. For example, when the target protocol is UFCS, the charging method provided by the embodiment of the application can realize that a terminal (such as a notebook computer) which does not support UFCS protocol can perform UFCS quick charging when being charged by matching the charging method provided by the application with a UFCS protocol charger. The notebook computer supporting UFCS quick charging is limited by the number of ports, and when the docking station is required to be connected with the charger or the adapter in an actual use, the docking station can enable the charger or the adapter to carry out UFCS quick charging on the notebook computer based on the charging method provided by the embodiment of the application.
Fig. 2a is a schematic flow chart of a charging method according to an embodiment of the present application. Fig. 2b is a schematic flow chart of a charging method according to an embodiment of the present application.
Referring to fig. 2a and 2b, in an embodiment of the application, a charging method includes:
S201, responding to the access operation of the external equipment, the charging device determines whether the external equipment is a target power supply equipment, and a target protocol is arranged in the target power supply equipment.
And responding when the external equipment is accessed, and judging whether the external equipment is a target power supply equipment or not. To initiate the subsequent steps.
In one implementation manner of this embodiment, as shown in fig. 3, the determining, in response to the access operation of the external device, whether the external device is the target power supply device includes:
s301, based on a second non-target protocol, responding to an access operation of the external device, and determining whether the external device is a power supply device by the charging device.
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 protocol as the target protocol and the second non-target protocol is not the same protocol as the target protocol.
When the external device is a power supply device, the charging apparatus executes step S302.
S302, based on a target protocol, the charging device establishes communication connection with external equipment.
The charging device can handshake with the external device through a handshake flow of starting a target protocol, so that communication connection with the external device is established. The purpose of the handshake process is to identify the identity between the charging device and the external device. When the target protocol is UFCS, the handshake process is to detect whether the pulse sequence of the D+ pin or the D-pin of the external device accords with the set pulse sequence or not by the charging device. When the pulse sequence of the D+ pin or the D-pin of the external device accords with the set pulse sequence, the handshake is successful.
When the communication connection with the external device is successful, step S303 is executed.
And S303, after the communication connection between the external devices is successful, the charging device determines that the external devices are target power supply devices.
For example, after the charging device successfully handshakes with the external device, the charging device determines that the external device is the target power supply device. And when the handshake with the external equipment is unsuccessful and the handshake frequency does not reach the third set threshold, the charging device repeatedly executes the step S302 until the handshake frequency reaches the third set threshold or the handshake is successful.
After the handshake with the external device is unsuccessful, and the handshake frequency reaches a third set threshold, the charging device executes step S304.
S304, based on the preset priority of the non-target protocol, the charging device determines the type of the external power supply equipment, so that the external power supply equipment charges the target charging equipment according to the type result of the external power supply equipment.
The non-target protocol refers to the rest of charging protocols except the target protocol, which are carried in the device for executing the charging method. The non-target protocols include at least a first non-target protocol.
In one implementation of this embodiment, the priority of the first non-target protocol is highest among the non-target protocols. 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, determining whether the power supply device is the first power supply device based on the first non-target protocol, where the first non-target protocol is set in the first power supply device. Specifically, whether the power supply device is the first power supply device may be determined by a pin state corresponding to the first non-target protocol. For example, the first non-target protocol may be a PD protocol, and the charging device determines whether the external power supply device is the first power supply device by determining whether the signal state of the CC pin of the power supply device meets the state specified by the PD protocol. And when the external power supply equipment is not the first power supply equipment, the charging device determines whether the external power supply equipment is the second power supply equipment or not based on a non-target protocol of the second priority. The second power supply device carries a non-target protocol of a second priority, and the like, so as to obtain the type of the external power supply device. After the type of the external power supply equipment is determined, the power supply equipment charges the target charging equipment based on the type of the power supply equipment. 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.
It should be noted that the execution sequence between S301 to S304 in the above embodiment is only a schematic illustration and is not a limitation of the execution sequence. For example, after step S301, step S304 may be performed before step S302, but only the non-target protocol of the first priority in step S304 is performed, and it is determined whether the external power supply device is the first power supply device. When the external power supply equipment is the first power supply equipment, the charging device enables the first power supply equipment to charge the target charging equipment based on the first non-target protocol. When the external power supply device is not the first power supply device, the charging apparatus further executes the step S302 to the step S304 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.
When it is determined that the external device is the target power supply device, step S202 is executed.
In step S202, the charging device obtains power supply information related to the target power supply device based on the target protocol.
Wherein, the target power supply equipment is internally provided with a target protocol. The specific implementation of step S202 may refer to step S101, which is not described herein.
Before the step of acquiring the power supply information related to the target power supply equipment is executed based on the target protocol, whether the external equipment is the target power supply equipment is determined, so that the follow-up step (acquiring the power supply information related to the target power supply equipment based on the target protocol) can be ensured to be smoothly carried out.
In step S203, the charging apparatus transmits power supply information related to the target power supply device to the target charging device based on the first non-target protocol.
The specific implementation of step S203 may refer to step S102, which is not described herein.
In step S204, based on the first non-target protocol, the charging device receives charging parameter information of the target charging device, where the charging parameter information is matched with the power supply information.
The specific implementation of step S204 may refer to step S103, which is not described herein.
In step S205, the charging apparatus transmits the charging parameter information of the target charging device to the target power supply device based on the target protocol.
The specific implementation of step S205 may refer to step S104, which is not described herein.
Step S206, based on the target protocol, the charging device obtains feedback information of the target power supply device, where the feedback information is used to represent a result of power supply configuration of the target power supply device according to the charging parameter information of the target charging device.
In the embodiment of the application, the charging device receives feedback information of the target power supply equipment through the target protocol. The feedback information includes a configuration result of the target power supply device configured based on the charging parameter information of the target charging device.
In one implementation of this embodiment, the configuration result of the target power supply device configured based on the charging parameter information of the target charging device includes a configuration success or a configuration failure. Wherein, when the charging parameter includes the maximum input power allowed by the target charging device, the successful configuration 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 of the target power supply device configuration is equal to or less than the maximum allowable output power of the target power supply device, and the maximum output power of the target power supply device configuration is equal to or less than the maximum allowable input power of the target charging device, and the maximum output power of the target power supply device configuration is equal to or less than the maximum allowable power of the cable for transmission.
In one implementation of this embodiment, the configuration result of the target power supply device configured based on the charging parameter information of the target charging device includes a configuration success or a configuration failure. Wherein, when the charging parameter includes the voltage-current configuration information of the target charging device, the successful configuration means that the target power supply device has completed the voltage-current configuration based on the charging parameter information of the target charging device. The maximum current in the current voltage configured by the target power supply device is smaller than or equal to the maximum current in the voltage and current configuration information provided by the target power supply device, the maximum current in the current voltage configured by the target power supply device is smaller 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 smaller than or equal to the maximum current allowed to be transmitted by the cable. Meanwhile, the maximum voltage in the current voltage configured by the target power supply device is smaller than or equal to the maximum voltage in the voltage-current configuration information provided by the target power supply device, the maximum voltage in the current voltage configured by the target power supply device is smaller than or equal to the maximum voltage in the voltage-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 smaller than or equal to the maximum voltage allowed to be transmitted by the cable.
S207, based on the first non-target protocol, the charging device sends feedback information to the target charging device.
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 equipment to the target charging equipment through a first non-target protocol.
In steps S206 and S207, feedback information of the target power supply device is acquired and sent to the target charging device, so that the target charging device knows 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 the power supply. When the target power supply equipment completes power supply configuration, the target charging equipment can control to start a power supply line between the target power supply equipment and the target charging equipment, so that charging is performed.
In this embodiment, before the target charging device turns on the charging circuit with the target power supply device, it is necessary to know whether the target power supply device has completed the preparation work before charging, that is, whether the power supply configuration has been completed. After the target power supply equipment is configured and successful, the target charging equipment starts a charging circuit with the target power supply equipment. Therefore, the target power supply equipment provides electric energy for the target charging equipment according to the target protocol, and the rapid charging of the target charging equipment is realized.
In step S208, if the feedback information of the target power supply device is not obtained within the preset time, the charging device receives the charging parameter information of the target charging device again based on the first non-target protocol.
The feedback information is used for indicating a result of power supply configuration of the target power supply equipment according to the charging parameter information of the target charging equipment. In step S208, the feedback information includes a configuration result of the target power supply device configured based on the charging parameter information of the target charging device.
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 that the configuration was successful. And when the target power supply equipment is configured based on the charging parameter information of the target charging equipment and the configuration is successful, the target power supply equipment externally sends feedback information. When the target power supply equipment is configured based on the charging parameter information of the target charging equipment, but the configuration fails, the target power supply equipment does not send feedback information to the outside. Therefore, if the feedback information of the target power supply device is not acquired within the preset time, the configuration fails, at this time, the charging parameter information of the target charging device needs to be received again based on the first non-target protocol, and steps S205 to S208 are executed again until the repetition number reaches the first set threshold or the feedback information of the target power supply device is acquired within the preset time.
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 a configuration success or a configuration failure. The target power supply equipment is configured based on the parameter information of the target charging equipment, and when the configuration is successful, the target power supply equipment sends feedback information to the outside, and at the moment, the feedback information comprises a configuration result that the target power supply equipment is configured based on the charging parameter information of the target charging equipment, and the configuration result is that the configuration is successful. The target power supply equipment performs configuration based on the parameter information of the target charging equipment, and when the configuration fails, the target power supply equipment externally sends feedback information, and at the moment, the feedback information comprises a configuration result that the target power supply equipment performs configuration based on the charging parameter information of the target charging equipment, wherein the configuration result is the configuration failure. Based on this, in the present implementation manner, if the feedback information of the target power supply device is not obtained within the preset time, this means that a communication path between the target power supply device and the target power supply device is faulty, and at this time, the charging parameter information of the target charging device needs to be received again based on the first non-target protocol, and steps S205 to S208 are executed again until the repetition number reaches the second set threshold or the feedback information of the target power supply device is obtained within the preset time.
In step S208, if the feedback information of the target power supply device is not acquired within the preset time, the charging parameter information of the target charging device is received again based on the first non-target protocol. The step aims at re-enabling the target power supply equipment and the target charging information to communicate with the power supply configuration, and re-attempting to enable the target power supply equipment to complete the power supply configuration.
Fig. 2c is a schematic flow chart of a charging method according to an embodiment of the present application.
Referring to fig. 2c, in an embodiment of the application, the charging method further includes:
in step S209, during the process of charging the target power supply device to the target charging device, the charging device obtains the updated power supply configuration parameters of the target power supply device based on the target protocol.
The power supply configuration parameters before updating of the target power supply equipment are inconsistent with the power supply configuration parameters after updating.
In one implementation of this embodiment, the maximum allowable output power in the updated power supply configuration parameters of the target power supply device is smaller than the maximum allowable output power in the power supply configuration parameters of the target power supply device before updating. The step S209 has the advantage that an update mechanism of the power supply configuration parameters of the target power supply device is set up to ensure the power consumption safety. For example, as the charging time period of the target power supply device to the target charging device increases, the target power supply device may generate heat and scald, and in order to ensure the power use safety, the target power supply device needs to reduce the output power. But in order to match the power supply of the target power supply device with the demand of the target charging device, it is necessary to notify the target charging device before the output power is reduced. Therefore, the power supply configuration parameters of the target power supply device need to be updated, and step S210 is performed after the updated power supply configuration parameters of the target power supply device are received.
S210, based on the first non-target protocol, the updated power supply configuration parameters of the target power supply equipment are sent to the target charging equipment.
After the completion of step S210, step S204 to step S205 are re-executed. That is, the re-executing step receives charging parameter information of the target charging device based on the first non-target protocol and the step transmits the charging parameter information of the target charging device to the target power supply device based on the target protocol.
It should be noted that, in the embodiment of the present application, the steps S209 to S210 are only performed after the power supply configuration parameters of the target power supply device are updated, and the steps S209 to S210 are not required to be performed if the power supply configuration parameters of the target power supply device are not updated.
Fig. 4 is a charging device according to an embodiment of the present application.
Referring to fig. 4, the embodiment of the application further provides a charging device, which includes a target protocol unit 401 and a non-target protocol unit 402. The target protocol unit 401 is configured to obtain power supply information related to a target power supply device based on a target protocol, where the target power supply device is provided with the target protocol. The non-target protocol unit 402 is configured to send 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 further configured to receive charging parameter information of the target charging device based on the first non-target protocol, where the charging parameter information is used to configure the target power supply device. The target protocol unit 401 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.
The charging device provided by the embodiment of the application can realize the charging method provided by any one of the embodiments. According to the charging device provided by the embodiment of the application, the target power supply equipment is communicated with the target power supply equipment through the target protocol, and the target power supply equipment is communicated with the target charging equipment through the first non-target protocol, so that the target power supply equipment can supply power to the target power supply equipment based on the requirement of the target power supply equipment. Therefore, by adopting the scheme provided by the embodiment of the application, the communication between the target protocol in the target power supply equipment and the first non-target protocol between the target charging equipment can be realized, and the target power supply equipment can provide power for the target charging equipment based on the target protocol so as to carry out rapid charging.
Taking UFCS as an example, the charging device provided by the embodiment of the application can realize UFCS quick charging when a notebook which does not support UFCS protocol is charged by matching the charging method provided by the application with a UFCS protocol charger. The notebook computer supporting UFCS quick charging is limited by the number of ports, and when the docking station is required to be connected with the charger or the adapter in an actual use, the docking station can enable the charger or the adapter to carry out UFCS quick charging on the notebook computer based on the charging method provided by the embodiment of the application.
In one embodiment of the present application, the target protocol unit 401 includes a first receiving module. The first receiving module is used for acquiring power supply configuration parameters of the target power supply equipment and power supply configuration parameters of a cable electrically connected with the output end of the target power supply equipment based on a target protocol. The non-target protocol unit 402 comprises a first sending module. The first sending module is used for sending the power supply configuration parameters of the target power supply equipment and the power supply configuration parameters of the cable electrically connected with the output end of the target power supply equipment to the target charging equipment based on the first non-target protocol.
In an embodiment of the present application, the target protocol unit 401 includes a second receiving module. The second receiving module is used for acquiring feedback information of the target power supply equipment based on the target protocol, wherein the feedback information is used for representing a result of power supply configuration of the target power supply equipment according to charging parameter information of the target charging equipment. The non-target protocol unit 402 comprises a second transmitting module. The second sending module is used for sending the feedback information to the target charging equipment based on the first non-target protocol.
In an embodiment of the present application, the target protocol unit 401 includes a third sending module, where the third sending module is configured to send 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 comprises a third receiving module. The third receiving module is used for receiving charging parameter information of the target charging equipment based on the first non-target protocol, wherein the charging parameter information of the target charging equipment is used for configuring the target power supply equipment.
In an embodiment of the application, the second receiving module is further configured to, if feedback information of the target power supply device is not obtained within a preset time, re-receive charging parameter information of the target charging device based on the first non-target protocol, where the feedback information is used to indicate a result of power supply configuration performed by the target power supply device according to the charging parameter information of the target charging device.
In an embodiment of the present application, the non-target protocol unit 402 includes a response module, where the response module is configured to respond to an access operation of the external device. The target protocol unit 401 comprises a determination module. The determining module is used for determining whether the external device is a target power supply device, and a target protocol is arranged in the target power supply device. 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 a target protocol.
In an embodiment of the present application, the determining module is configured to start a handshake procedure of the target protocol to handshake with the external device based on the target protocol. After the handshake with the external device is successful, the determining unit determines that the external device is the target power supply device.
In an embodiment of the present application, in a process that the target power supply device charges the target charging device, the first receiving module is further configured to obtain, based on the target protocol, the updated power supply configuration parameter of the target power supply device. The first sending module sends the updated power supply configuration parameters of the target power supply equipment to the target charging equipment based on the first non-target protocol.
Fig. 5 is a schematic diagram of a connection relationship among a chip, a first port, a second port, a target power supply device and a target charging device according to an embodiment of the present application.
The present application also provides a chip 511 comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the chip 511 to perform the charging method provided in any of the previous embodiments. The chip 511 has integrated therein a target protocol and at least one non-target protocol. The at least one non-target protocol includes a first non-target protocol.
Taking UFCS as an example, the chip provided by the application can realize UFCS quick charging when a notebook which does not support UFCS protocol is charged by matching the charging method provided by the application with a UFCS protocol charger. The notebook computer supporting UFCS quick charging is limited by the number of ports, and when the docking station is required to be connected with the charger or the adapter in an actual use, the docking station can enable the charger or the adapter to carry out UFCS quick charging on the notebook computer based on the charging method provided by the embodiment of the application.
Referring to fig. 5, in an embodiment of the present application, the chip 511 further includes a d+ pin, a D-pin, a CC1 pin, and a CC2 pin, wherein the d+ pin of the chip 511 is used for connecting with the d+ pin of the first port 512, the D-pin of the chip 511 is used for connecting with the D-pin of the first port 512, the CC1 pin of the chip 511 is used for connecting with the CC1 pin of the second port 513, and the CC2 pin of the chip 511 is used for connecting with the CC2 pin of the second port 513.
Referring to fig. 5, in an implementation manner of the present 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 works, the first port 512 is externally connected with a 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 d+ pin and D-pin are provided on the target protocol module 521 in the target power supply device 520. 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 520 has a CC1 pin and a CC2 pin provided thereon. 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 for externally connecting to a target charging device 520, and a first non-target protocol module 531 is disposed in the target charging device 530. 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.
Fig. 6 is a schematic diagram of an electronic device according to an embodiment of the present application.
Referring to fig. 6, an embodiment of the present application further provides an electronic device 610, where the electronic device 610 includes the chip 611 provided in any of the foregoing embodiments. Wherein the structure of the electronic device 610 refers to the electronic device 510. The structure of the chip 611 can be referred to as the chip 511. The electronic device may be a docking station. Taking the object protocol as UFCS protocol as an example, the electronic device 610 provided by the application can realize UFCS quick charging when a notebook which does not support UFCS protocol is charged by matching the charging method provided by the application with a UFCS protocol charger. The notebook computer supporting UFCS quick charging is limited by the number of ports, and when the docking station is required to be connected with the charger or the adapter in an actual use, the docking station can enable the charger or the adapter to carry out UFCS quick charging on the notebook computer based on the charging method provided by the embodiment of the application.
Referring to FIG. 6, in an 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. The first port 612 and the second port 613 may be type-c interfaces, respectively. The D+ pin of the chip 611 and the D+ pin of the first port 612, the D-pin of the chip 611 and the D-pin of the first port 612, the CC1 pin of the chip 611 and the CC1 pin of the second port 613, and the CC2 pin of the chip 611 and 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, and 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 a USB interface 615. The USB hub 614 is electrically isolated from the first port 612.
In the present embodiment, the electrical insulation between the USB hub 614 and the first port 612 can ensure that a high transmission speed is always maintained between the second port 612 and the chip 611.
Fig. 7 is a schematic diagram of an electronic device according to an embodiment of the present application.
Referring to fig. 7, in an embodiment of the application, an 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 may be referred to as a chip 511. The first port 712 and the second port 713 may be type-c interfaces, respectively. The connection relationship of 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 of the chip 611, the first port 612, the second port 613, the USB hub 614, and the USB interface 615. The electronic device 710 further comprises a switching unit 716. The USB integrator comprises a D+ pin and a D-pin. The switching unit 716 includes a first switch, a second switch, and a switch control module. The d+ pin and the D-pin of the USB integrator are electrically connected to the d+ pin and the D-pin of the first port 120 through the first switch, respectively, and the d+ pin and the D-pin of the chip 110 are electrically connected to the d+ pin and the D-pin of the first port 120 through the second switch, respectively. The first switch and the second switch are respectively controlled by the switch control module. The switch control module is electrically connected with the chip 711, and the switch control module can control the on and off of the first switch and the second switch respectively.
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 for an external power supply device and the second port 713 is for an external charging device. Or the first port 712 is used to external hardware storage devices and the second port 713 is used to external terminal devices (e.g., computers, notebooks, etc.) with processing capabilities.
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 a target protocol (for example, UFCS protocol) based on the d+ pin and the D-pin as charging ports, thereby realizing charging. When the external device is a storage device, such as a hard disk or a USB flash disk, 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.
An embodiment of the application provides an electronic device comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, cause the electronic device to perform the method of the first aspect.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
In a possible implementation manner of this embodiment, referring to fig. 8, the present application further provides an electronic device 800 corresponding to the above embodiment. The electronic device 800 may include a processor 801, a memory 802, and a communication unit 803. The components may communicate via one or more buses, and it will be appreciated by those skilled in the art that the configuration of the electronic device shown in the drawings is not limiting of the embodiments of the application, as it may be a bus-like structure, a star-like structure, or include more or fewer components than shown, or may be a combination of certain components or a different arrangement of components.
Wherein the communication unit 803 is configured to establish a communication channel, so that the electronic device may communicate with other devices. Receiving user data sent by other devices or sending user data to other devices.
The processor 801, which is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and/or processes data by running or executing software programs and/or modules stored in the memory 802, and invoking data stored in the memory. The processor may be comprised of integrated circuits (INTEGRATED CIRCUIT, ICs), such as a single packaged IC, or may be comprised of packaged ICs that connect multiple identical or different functions. For example, the processor 801 may include only a central processing unit (central processing unit, CPU). In the embodiment of the invention, the CPU can be a single operation core or can comprise multiple operation cores.
The memory 802, for storing instructions for execution by the processor 801, the memory 802 may be implemented by any type of volatile or non-volatile memory device, or 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.
The execution of the instructions in memory 802, when executed by processor 801, enables electronic device 800 to perform some or all of the steps of embodiments of the charging methods provided by the present invention.
In a specific implementation, the present invention further provides a computer storage medium, where the computer storage medium may store a program, where the program may include some or all of the steps in each embodiment of the charging method provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a random-access memory (random access memory, RAM), or the like.
It will be apparent to those skilled in the art that the techniques of embodiments of the present invention may be implemented in software plus a necessary general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in essence or what contributes to the prior art in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the embodiments or some parts of the embodiments of the present invention.
The same or similar parts between the various embodiments in this specification are referred to each other. In particular, for the device embodiment and the terminal embodiment, since they are substantially similar to the method embodiment, the description is relatively simple, and reference should be made to the description in the method embodiment for relevant points.

Claims (13)

1. A charging method applied to a charging device, comprising:
Acquiring power supply information related to target power supply equipment based on a target protocol, wherein the target protocol is arranged in the target power supply equipment;
based on a first non-target protocol, power supply information related to the target power supply equipment is sent to target charging equipment;
receiving charging parameter information of the target charging equipment based on the first non-target protocol, wherein the charging parameter information is used for configuring the target power supply equipment;
and transmitting the charging parameter information of the target charging equipment to the target power supply equipment based on the target protocol so as to enable the target power supply equipment to charge the target charging equipment.
2. The charging method of claim 1, wherein the power supply information associated with the target power supply device includes a power supply configuration parameter of the target power supply device and a power supply configuration parameter of a cable electrically connected to an output terminal of the target power supply device based on a target protocol.
3. The charging method according to claim 1, wherein after transmitting the charging parameter information of the target charging device to the target power supply device based on a target protocol, the method further comprises:
Based on a target protocol, acquiring feedback information of a target power supply device, wherein the feedback information is used for representing a result of power supply configuration of the target power supply device according to charging parameter information of the target charging device;
and sending the feedback information to the target charging equipment based on the first non-target protocol.
4. The charging method according to claim 1, wherein after the target protocol-based transmission of the charging parameter information of the target charging device to the target power supply device, the method further comprises:
And if the feedback information of the target power supply equipment is not acquired within the preset time, re-receiving the charging parameter information of the target charging equipment based on the first non-target protocol, wherein the feedback information is used for indicating a result of power supply configuration of the target power supply equipment according to the charging parameter information of the target charging equipment.
5. The charging method according to claim 1, wherein before the target protocol-based acquisition of the power supply information related to the target power supply device, the method further comprises:
responding to access operation of external equipment, and determining whether the external equipment is a target power supply equipment;
The obtaining power supply information related to the target power supply equipment based on the target protocol comprises the following steps:
And when the external equipment is the target power supply equipment, acquiring power supply information related to the target power supply equipment based on a target protocol.
6. The charging method according to any one of claims 1 to 5, wherein the target protocol is UFCS protocol.
7. The charging method of claim 5, wherein the determining whether the external device is a target power supply device comprises:
Establishing communication connection with the external equipment based on the target protocol;
and after the communication connection with the external equipment is successful, determining that the external equipment is the target power supply equipment.
8. The charging method according to claim 1, characterized by further comprising:
Acquiring updated power supply configuration parameters of the target power supply equipment based on the target protocol in the process that the target power supply equipment charges the target charging equipment;
based on the first non-target protocol, the updated power supply configuration parameters of the target power supply equipment are sent to the target charging equipment;
The re-executing step is based on the first non-target protocol, the receiving step is based on the charging parameter information of the target charging device, and the step is based on the target protocol, and the charging parameter information of the target charging device is sent to the target power supply device.
9. A chip comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the chip to perform the method of any of claims 1-8.
10. The chip of claim 9, further comprising a D+ pin, a D-pin, a CC1 pin, and a CC2 pin, wherein the D+ pin of the chip is used for connecting with the D+ pin of the first port, the D-pin of the chip is used for connecting with the D-pin of the first port, the CC1 pin of the chip is used for connecting with the CC1 pin of the second port, and the CC2 pin of the chip is used for connecting with the CC2 pin of the second port.
11. An electronic device comprising the chip of claim 9 or 10.
12. An electronic device comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, cause the electronic device to perform the method of any one of claims 1 to 8.
13. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program when run controls a device in which the computer readable storage medium is located to perform the method according to any one of claims 1-8.
CN202311323422.8A 2023-10-11 2023-10-11 A charging method, chip, device and storage medium Pending CN119813406A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311323422.8A CN119813406A (en) 2023-10-11 2023-10-11 A charging method, chip, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311323422.8A CN119813406A (en) 2023-10-11 2023-10-11 A charging method, chip, device and storage medium

Publications (1)

Publication Number Publication Date
CN119813406A true CN119813406A (en) 2025-04-11

Family

ID=95272111

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311323422.8A Pending CN119813406A (en) 2023-10-11 2023-10-11 A charging method, chip, device and storage medium

Country Status (1)

Country Link
CN (1) CN119813406A (en)

Similar Documents

Publication Publication Date Title
US10910853B2 (en) Quick charging method, power adapter and mobile terminal
EP3982506B1 (en) Terminal device charging method and apparatus, and storage medium
US10389153B2 (en) Charging control method and mobile terminal
CN106415490B (en) Mobile terminal, power adapter and upgrading method thereof
CN110492575B (en) Quick charging system and method for handheld device and handheld device
EP3171484A1 (en) Mobile terminal, power supply adapter, and upgrading method thereof
CN111049214A (en) A charging method, terminal and charging adapter
EP3923443A1 (en) Communication method, power adaptor and terminal
EP3084557A1 (en) Method and apparatus for charging electronic device with usb connection
US20180097315A1 (en) Power adapter, terminal device, charging system, and charging method
CN106416196B (en) Mobile terminal, power adapter and upgrading method thereof
CN111817097A (en) Charging control method and data cable
CN109254210B (en) Electronic equipment port type detection method and device, detection circuit and electronic equipment
KR102315230B1 (en) ELECTRONIC DEVICE WITH USB Type-C CONNECTOR
US11513784B2 (en) Software update device and software update method using same
CN110518668A (en) For the quick charging system and method for handheld device, handheld device
CN112825401A (en) Charging line, charger, charging control method and charging device
CN111988864A (en) Data transmission method and device based on wireless charging equipment
CN119813406A (en) A charging method, chip, device and storage medium
CN107329924A (en) A kind of data interaction system and method
CN107204636A (en) Charging method for detecting battery voltage to adjust power supply current in charging process
CN108092363B (en) Charging method and device
CN116647785A (en) Earphone box control method, device, earphone box and computer-readable storage medium
CN119651814A (en) Method, device, equipment and storage medium for switching fast charging protocol of charging device
CN107359661A (en) Charger, charging system and charging method

Legal Events

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