Charging control method, device, terminal equipment and storage medium

By implementing the charging control method in the terminal device, the adjustable working parameter range of the power supply equipment is obtained and detected, and the charging parameters are adjusted as needed, the charging efficiency problem caused by the differences in the protocols and parameters of different power supply equipment is solved, and the charging adaptability and efficiency are improved.

CN119765540APending Publication Date: 2025-04-04GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411805450.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-09
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

The fast charging protocols adopted by different manufacturers are different, and even if the same fast charging protocol is used, the output voltage and output current that the power supply equipment can support will be different, resulting in the terminal equipment being unable to charge normally and the charging efficiency is low.

Method used

By implementing a charging control method in the terminal device, the adjustable working parameter range supported by the target power supply device is obtained, and whether the target charging parameters are within the range. If not within the range, the target power supply device is controlled to charge the terminal device according to the target output voltage.

Benefits of technology

It increases the adaptability of terminal equipment to charge different power supply equipment, avoids charging interruptions and abnormal conditions, and improves charging efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119765540A_ABST
    Figure CN119765540A_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a charging control method, device, terminal device and storage medium. It relates to the field of charging technology. Applied to a terminal device, the method includes: when the terminal device is connected to a target power supply device, obtaining an adjustable operating parameter range supported by the target power supply device; the target power supply device is a power supply device that supports a programmable power output PPS function; detecting whether the target charging parameter is within the adjustable operating parameter range supported by the target power supply device, the target charging parameter includes the operating voltage and operating current that the terminal device expects the target power supply device to output; if the target charging parameter is not within the adjustable operating parameter range supported by the target power supply device, controlling the target power supply device to charge the terminal device according to the target output voltage. In this application, the adaptability of the terminal device to charging with different PPS adapters can be increased, and the efficiency of charging the terminal device can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of charging technology, and in particular to a charging control method, apparatus, terminal device and storage medium. Background Art

[0002] With the development of science and technology, various terminal devices appear in people's daily lives. When the terminal device is low on power, it is necessary to connect the terminal device to a power supply device, which provides power and charges the terminal device.

[0003] At present, since fast charging can often bring higher charging efficiency, more and more terminal devices and power supply equipment have supported fast charging technology. Different manufacturers often use different fast charging protocols, and even if the same fast charging protocol is used, the output voltage and output current supported by the power supply equipment will be different. For example, in the power delivery (PD) protocol, programmable power supply (PPS) is part of the standard, which mainly provides more flexible power delivery. The size of the programmable voltage output (Augmented Power Data Object, APDO) supported by different power supply equipment is different. When the APDO supported by the power supply equipment does not match the voltage or current required by the terminal device, the terminal device will continuously re-initiate the query interaction with the power supply equipment, resulting in a situation where normal charging cannot be performed, and there is a problem of low charging efficiency. Summary of the invention

[0004] In order to solve the problems of related technologies, increase the adaptability of terminal devices to charging different power supply devices, and improve the charging efficiency of terminal devices, the embodiments of the present application provide a charging control method, device, terminal device, and storage medium. The technical solution is as follows:

[0005] In one aspect, an embodiment of the present application provides a charging control method, which is applied to a terminal device, and the method includes:

[0006] When the terminal device is connected to a target power supply device, an adjustable operating parameter range supported by the target power supply device is obtained; the target power supply device is a power supply device that supports a programmable power output (PPS) function, and the adjustable operating parameter range includes a voltage operating range and a current operating range corresponding to the PPS function supported by the target power supply device;

[0007] Detecting whether a target charging parameter is within an adjustable operating parameter range supported by the target power supply device, the target charging parameter including an operating voltage and an operating current that the terminal device expects the target power supply device to output;

[0008] If the target charging parameter is not within the adjustable operating parameter range supported by the target power supply device, the target power supply device is controlled to charge the terminal device according to a target output voltage, where the target output voltage is a fixed output voltage selected from various fixed output voltages supported by the target power supply device.

[0009] In another aspect, an embodiment of the present application provides a charging control device, which is applied to a terminal device, and the device includes:

[0010] A first acquisition module is used to obtain an adjustable operating parameter range supported by a target power supply device when the terminal device is connected to the target power supply device; the target power supply device is a power supply device that supports a programmable power output PPS function, and the adjustable operating parameter range includes a voltage operating range and a current operating range corresponding to the PPS function supported by the target power supply device;

[0011] A first detection module, used to detect whether a target charging parameter is within an adjustable operating parameter range supported by the target power supply device, the target charging parameter including an operating voltage and an operating current that the terminal device expects the target power supply device to output;

[0012] The first control module is used to control the target power supply device to charge the terminal device according to a target output voltage if the target charging parameter is not within the adjustable operating parameter range supported by the target power supply device, and the target output voltage is a fixed output voltage selected from various fixed output voltages supported by the target power supply device.

[0013] In another aspect, the present application provides a terminal device, which includes a processor and a memory, wherein the memory stores a computer program that can be executed on the processor, and when the processor executes the computer program, it implements the charging control method as described in one aspect above.

[0014] In another aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the charging control method as described in one aspect above.

[0015] On the other hand, an embodiment of the present application provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute to implement the charging control method as described in one aspect above.

[0016] On the other hand, an embodiment of the present application provides an application publishing platform, which is used to publish a computer program product, wherein when the computer program product runs on a computer, the computer is executed to implement the charging control method as described in one aspect above.

[0017] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:

[0018] When the terminal device is connected to the target power supply device, the adjustable operating parameter range supported by the target power supply device is obtained; the target power supply device is a power supply device that supports the programmable power output PPS function, and the adjustable operating parameter range includes the voltage operating range and current operating range corresponding to the PPS function supported by the target power supply device; it is detected whether the target charging parameters are within the adjustable operating parameter range supported by the target power supply device, and the target charging parameters include the operating voltage and operating current that the terminal device expects the target power supply device to output; if the target charging parameters are not within the adjustable operating parameter range supported by the target power supply device, the target power supply device is controlled to charge the terminal device according to the target output voltage, and the target output voltage is a fixed output voltage selected from various fixed output voltages supported by the target power supply device. In the present application, when the adapter connected to the terminal device is the target power supply device, by detecting whether the target charging parameters are within the adjustable operating parameter range supported by the target power supply device, if the target charging parameters are not within the adjustable operating parameter range supported by the target power supply device, the adapter will be controlled to charge according to the target output voltage, and the interactive process of repeatedly inquiring the adapter will not be executed, thereby avoiding charging interruptions, charging abnormalities, etc., increasing the adaptability of the terminal device to charging different target power supply devices, and improving the efficiency of charging the terminal device. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0020] Figure 1 A schematic diagram of a charging scenario for charging in a terminal device provided by an exemplary embodiment of the present application;

[0021] Figure 2 A schematic diagram of an exemplary structure of a terminal device provided by an exemplary embodiment of the present application;

[0022] Figure 3 A method flow chart of a charging control method provided for an exemplary embodiment of the present application;

[0023] Figure 4 A method flow chart of a charging control method provided for an exemplary embodiment of the present application;

[0024] Figure 5 A method flow chart of executing a charging control method in a mobile phone according to an exemplary embodiment of the present application;

[0025] Figure 6 A structural block diagram of a charging control device provided by an exemplary embodiment of the present application;

[0026] Figure 7 A schematic diagram of the structure of another example of a charging control device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0028] The term "multiple" as used herein refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0029] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0030] The solution provided by the present application can be used in real-life scenarios where people use terminal devices for charging in daily life. To facilitate understanding, some nouns and application scenarios involved in the embodiments of the present application are first briefly introduced below.

[0031] AICL (Auto Input Current Limited) process: plays a key role in Android charging development, dynamically adjusting the charging current according to the power supply capability. When the input voltage exceeds the preset threshold (such as 4.75V), the system will gradually increase the charging current until the voltage is lower than the threshold value, thereby ensuring the safety and efficiency of the charging process. This mechanism is designed to be compatible with different types of chargers and prevent overload.

[0032] With the development of science and technology, various terminal devices appear in people's daily lives. People can use terminal devices for work, entertainment, study, etc. When the terminal device is low on power, it needs to be charged.

[0033] Normally, the terminal device needs to be connected to an adapter for charging. Please refer to Figure 1 , which shows a schematic diagram of a charging scenario in a terminal device provided by an exemplary embodiment of the present application. Figure 1 As shown, a terminal device 101 and a power supply device 102 are included.

[0034] Optionally, the terminal device is a rechargeable electronic device. For example, the terminal device may include but is not limited to wearable devices (such as bracelets, smart watches, smart glasses, etc.), mobile phones, tablet computers, laptops, smart glasses, smart watches, MP3 players (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) players, desktop computers, laptops, etc.

[0035] Optionally, the circuit connection of the power supply device 102 is exemplary. In actual applications, the terminal device 101 may also support wireless charging, and the power supply device 102 may also be a power supply device that supports wireless charging. The power supply device 102 may be an actual adapter, a charging head, a power bank, or other electronic devices that provide charging functions.

[0036] Please refer to Figure 2 , which shows a schematic diagram of an example structure of a terminal device provided by an exemplary embodiment of the present application. Figure 2 The terminal device shown includes components such as a processor 210, a memory 220, a transceiver 230, a display unit 240, an input unit 250, a sensor 260, an audio circuit 270, and a battery module 280.

[0037] The processor 210 is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device. By running or executing software programs and / or modules stored in the memory 220, and calling data stored in the memory 220, the processor 210 performs various functions of the terminal device and processes data, thereby monitoring the terminal device as a whole. Optionally, the processor 210 may include one or more processing units; optionally, the processor 210 may integrate an application processor, which mainly processes operating devices, user interfaces, and application programs, etc. Of course, other processors may also be included, which are not listed here one by one.

[0038] The memory 220 can be used to store software programs and modules. The processor 210 executes various functional applications and data processing of the terminal device by running the software programs and modules stored in the memory 220. The memory 220 can mainly include a program storage area and a data storage area, wherein the program storage area can store operating devices, at least one application required for a function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the terminal device (such as audio data, a phone book, etc.), etc. In addition, the memory 220 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0039] The transceiver 230 can provide wireless communication solutions for terminal devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The transceiver 230 can be one or more devices that integrate at least one communication processing module, for example, the antenna and the baseband processor are integrated into the transceiver 230, or the antenna and the modem processor are integrated into the transceiver 230, etc., which are not limited here. Optionally, the terminal device can communicate with the above-mentioned devices through its own transceiver 230. Figure 1 Establish a wireless communication connection with the base station in the network.

[0040] The display unit 240 may be used to display information input by the user or information provided to the user and various menus of the terminal device. The display unit 240 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc., which is not limited here.

[0041] The input unit 250 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the terminal device. Specifically, the input unit 250 can collect the user's operations on or near it, and drive the corresponding connection device according to a pre-set program. In addition, the input unit 250 may include a touch panel, which can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel, the input unit 250 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of function keys (such as volume control keys, switch keys, etc.), trackballs, joysticks, etc.

[0042] The terminal device may also include at least one sensor 260, such as a gyroscope sensor, a motion sensor, and other sensors. The motion sensor may include an acceleration sensor for detecting the magnitude of acceleration in all directions, and the magnitude and direction of gravity when stationary, which may be used for applications that identify the posture of the terminal device, such as horizontal and vertical screen switching, related games, magnetometer posture calibration, etc. As for other sensors that may be configured in the terminal device, such as a pressure gauge, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., they will not be described in detail here.

[0043] The audio circuit 270 may include a speaker and a microphone, and may provide an audio interface between the user and the terminal device. The audio circuit 270 may transmit the received audio data to the speaker after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 270 and converted into audio data, and then the audio data is output to the processor 210 for processing, and then sent to another terminal device through the video circuit, or the audio data is output to the memory 220 for further processing.

[0044] The terminal device also includes a battery module 280 for supplying power to various components. Optionally, the battery module 280 can be logically connected to the processor 210 through a power management device, so that the power management device can manage functions such as charging, discharging, and power consumption.

[0045] Although not shown, the terminal device may further include a camera. Optionally, the camera may be located at the front or rear of the terminal device, which is not limited in the embodiment of the present application.

[0046] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the terminal device. In other embodiments of the present application, the terminal device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0047] In the above Figure 1 In the scenario shown, since fast charging often brings higher charging efficiency, more and more terminal devices and power supply devices have supported fast charging technology and provided fast charging functions. For example, taking the power supply device as an adapter, it can support charging protocols of fast charging technologies such as Power Delivery (PD), Quick Charge (QC), VOOC, and SuperVOOC (SVOOC). However, different manufacturers often use different fast charging protocols, and even if the same fast charging protocol is used, the output voltage and output current supported by the adapter will be different.

[0048] For example, in the PD protocol, PPS is part of the standard, which mainly provides more flexible power delivery. The PPS function allows the adapter to dynamically adjust its output voltage and output current, thereby optimizing the charging process to a greater extent, improving charging efficiency and reducing power loss. Adapters that support the PPS function usually support a range of voltage and current outputs, including common fixed output voltages (also called fixed-step voltages) and programmable voltage ranges. Among them, fixed output voltages can support: 5V, 9V, 12V, 15V, 20V, etc., and programmable voltage ranges can support: 3.3V to 21V or 3.3V to 11V, etc.

[0049] The specific capabilities supported by the adapter also vary depending on the brand and model of the charger. Typical examples are as follows:

[0050] PDO1: 5V, 3A;

[0051] PDO2: 9V, 3A;

[0052] PDO3: 12V, 3A;

[0053] PDO4: 15V, 3A;

[0054] PDO5: 20V, 3A;

[0055] APDO1: 3.3V~11V, 3A;

[0056] APDO2: 3.3V~16V, 3A;

[0057] APDO3: 3.3V~21V / 3A.

[0058] Among them, 3A refers to the maximum current supported by the adapter under the above working voltage, and PDO (PowerData Object) is a fixed output voltage. For example, an adapter can support two working modes of PDO1 and PDO2. APDO is a programmable voltage output. Since the size of APDO supported by different adapters is different, charging problems often occur when the APDO supported by the adapter does not match the voltage or current required by the terminal device. For example, some adapters are not standardized, and the maximum APDO they set can only support 10V, while the minimum voltage supported in the PPS function is 11V, 3A, which is equivalent to the minimum power corresponding to the PPS function is 33W. At this time, because APDO is illegal, the terminal device will continue to re-initiate query interaction with the adapter, and then cannot charge normally, and there is a problem of low charging efficiency.

[0059] In order to solve the above problems existing in the related art, a charging control method is provided in an embodiment of the present application. When the target charging parameter is not within the adjustable operating parameter range supported by the power supply device supporting the PPS function, the target power supply device can continue to be controlled to charge the terminal device according to the target output voltage, and the inquiry process will not be repeated, thereby improving the charging efficiency.

[0060] Please refer to Figure 3 , which shows a method flow chart of a charging control method provided by an exemplary embodiment of the present application, and the charging control method can be applied to a terminal device. Figure 3 As shown, the charging control method may include the following steps:

[0061] Step 301, when the terminal device is connected to the target power supply device, obtain the adjustable working parameter range supported by the target power supply device; the target power supply device is a power supply device that supports the programmable power output PPS function, and the adjustable working parameter range includes the voltage working range and current working range corresponding to the PPS function supported by the target power supply device.

[0062] The target power supply device may be an adapter, a charging head, a power bank, or other electronic devices that provide charging functions. In this solution, the power supply device can support various charging protocols, and supporting the PPS standard content in the PD protocol is equivalent to supporting the PPS function. Such a power supply device that supports the PPS function is regarded as the target power supply device in this solution. That is, the target power supply device is used to charge the terminal device, and the manufacturer can decide which protocol to use, which is not limited by this solution.

[0063] That is, the target power supply device mentioned in this solution refers to the power supply device that supports the PPS standard content in the PD protocol. For the terminal device, after establishing a connection with the power supply device, it can be known through the handshake process between the two whether the power supply device supports the PPS standard content in the PD protocol. If it does, it means that it has the PPS function and is the target power supply device. If it does not, it means that it does not support the PPS function and is not the target power supply device.

[0064] Optionally, the terminal device accessing the target power supply device may mean that the charging interface provided by the terminal device is directly connected to the charging cable provided by the target power supply device, or it may mean that during the wireless charging process, the terminal device and the target power supply device establish a wireless connection, which is not limited here.

[0065] Optionally, taking the target power supply device as an adapter that supports the PPS function as an example, the adjustable operating parameter range includes the voltage operating range and current operating range supported by the PPS adapter. Taking the above-mentioned APDO as an example, 3.3V~11V, 3A means that the PPS adapter supports adjusting its own output voltage within 3.3V~11V, and adjusting its own output current within 0~3A. When the PPS adapter is connected, the terminal device can obtain the adjustable operating parameter range of the PPS adapter. Of course, if the adapter is not a PPS adapter, the terminal device will not execute the process of this solution.

[0066] Step 302 , detecting whether the target charging parameters are within the adjustable operating parameter range supported by the target power supply device, the target charging parameters including the operating voltage and operating current that the terminal device expects the target power supply device to output.

[0067] Optionally, after obtaining the above-mentioned adjustable operating parameter range, the terminal device subsequently detects the target charging parameter required by itself to check whether the target charging parameter is within the adjustable operating parameter range.

[0068] Among them, the target charging parameters are the operating voltage and current that the terminal device currently needs the target power supply device to output. That is, based on its own needs, the terminal device needs the target power supply device to output a certain operating voltage and current. The current and voltage values ​​required by the terminal device are the target charging parameters.

[0069] Step 303: If the target charging parameter is not within the adjustable operating parameter range supported by the target power supply device, control the target power supply device to charge the terminal device according to the target output voltage, where the target output voltage is a fixed output voltage selected from various fixed output voltages supported by the target power supply device.

[0070] Optionally, the terminal device can obtain corresponding detection results through the above-mentioned detection process. If it is determined that the target charging parameter is not within the adjustable operating parameter range supported by the target power supply device, the target power supply device is controlled to charge the terminal device according to the target output voltage. If it is determined that the target charging parameter is within the adjustable operating parameter range supported by the target power supply device, the target power supply device is controlled to charge the terminal device according to the PPS fast charging protocol.

[0071] Optionally, the various fixed output voltages supported by the target power supply device can be acquired in advance. For example, when the adjustable operating parameter range supported by the target power supply device is acquired as described above, the various fixed output voltages supported by the target power supply device can be acquired at the same time. For example, the PDOs supported by the target power supply device include PDO1: 5V, 3A and PDO2: 9V, 3A, and the supported adjustable operating parameter range is APDO1: 3.3V~11V, 3A. After the terminal device is connected to the target power supply device, it can acquire the adjustable operating parameter range and various fixed output voltages supported by the target power supply device.

[0072] After executing step 302, if it is determined that the target charging parameter is not within the adjustable operating parameter range supported by the target power supply device, a fixed output voltage is selected from the various fixed output voltages supported by the target power supply device as the target output voltage, and the target power supply device is controlled to charge the terminal device according to the target output voltage.

[0073] To summarize, when the terminal device is connected to the target power supply device, the adjustable operating parameter range supported by the target power supply device is obtained; the target power supply device is a power supply device that supports the programmable power output PPS function, and the adjustable operating parameter range includes the voltage operating range and current operating range corresponding to the PPS function supported by the target power supply device; it is detected whether the target charging parameters are within the adjustable operating parameter range supported by the target power supply device, and the target charging parameters include the operating voltage and operating current that the terminal device expects the target power supply device to output; if the target charging parameters are not within the adjustable operating parameter range supported by the target power supply device, the target power supply device is controlled to charge the terminal device according to the target output voltage, and the target output voltage is a fixed output voltage selected from various fixed output voltages supported by the target power supply device. In the present application, when the adapter connected to the terminal device is the target power supply device, by detecting whether the target charging parameters are within the adjustable operating parameter range supported by the target power supply device, if the target charging parameters are not within the adjustable operating parameter range supported by the target power supply device, the adapter will be controlled to charge according to the target output voltage, and the interactive process of repeatedly inquiring the adapter will not be executed, thereby avoiding charging interruptions, charging abnormalities, etc., increasing the adaptability of the terminal device to charging different target power supply devices, and improving the efficiency of charging the terminal device.

[0074] In one possible implementation, after selecting the target output voltage, the terminal device can also control the output current of the target power supply device to be the maximum load current corresponding to the target output voltage during charging, so that the target power supply device can charge the terminal device according to the target output voltage and the maximum load current corresponding to the target output voltage, thereby achieving the fastest charging effect and improving charging efficiency.

[0075] Please refer to Figure 4 , which shows a method flow chart of a charging control method provided by an exemplary embodiment of the present application, and the charging control method can be applied to a terminal device. Figure 4 As shown, the charging control method may include the following steps:

[0076] Step 401, when the terminal device is connected to the target power supply device, obtain the adjustable working parameter range supported by the target power supply device, the target power supply device is a power supply device that supports the programmable power output PPS function, and the adjustable working parameter range includes the voltage working range and current working range corresponding to the PPS function supported by the target power supply device.

[0077] Optionally, when the terminal device needs to be charged, the user can connect the terminal device to the power supply device, and the terminal device detects the connected power supply device to determine whether it is a power supply device with a PPS function. If it is a power supply device with a PPS function, it is the target power supply device and the process of this solution is executed. If it does not have the PPS function, the process of this solution does not need to be executed. If other fast charging protocols are supported, other fast charging processes can be executed.

[0078] For example, on the terminal device, the port for charging the terminal device is a Universal Serial Bus (USB)-Type-C interface provided by the terminal device, and the power supply device is provided with a USB interface. When the terminal device is connected to the power supply device, it can be electrically connected through a charging cable with a USB interface at one end and a USB-Type-C interface at the other end. When the terminal device is connected to the power supply device, the terminal device can obtain a data packet transmitted through the Configuration Channel (CC) line of the USB Type-C interface; identify the data packet to determine whether the power supply device connected to the terminal device is the target power supply device.

[0079] For example, for a power supply device with a PPS function, the power supply broadcasts the Source Cap message in the transmitted data packet. After the terminal device parses the power supply broadcast Source Cap message, it can obtain the various voltage parameters supported by the power supply device. If it includes a programmable voltage range, it means that the power supply device has the PPS function. If it does not include a programmable voltage range, it means that the power supply device does not have the PPS function.

[0080] Optionally, for a power supply device that uses other interfaces for power supply, the terminal device may also determine whether the power supply device has the PPS function through other methods (such as indicators or marks), and this solution does not limit this.

[0081] Optionally, the connection between the terminal device and the power supply device can be a wired connection or a wireless connection. In practical applications, various power supply devices can support various fast charging protocols.

[0082] Optionally, when it is determined that the power supply device connected to the terminal device is the target power supply device, the terminal device can obtain the range of adjustable operating parameters supported by the power supply device. Still taking the power supply device as the above-mentioned adapter as an example, the process for the terminal device to obtain the range of adjustable operating parameters supported by the power supply device can be as follows: receiving a power broadcast message sent by the PPS adapter, the power broadcast message containing the range of adjustable operating parameters supported by the PPS adapter; according to the power broadcast message, obtaining the range of adjustable operating parameters supported by the PPS adapter. In other words, for the adapter with a USB interface, in fact, this solution can already obtain the range of adjustable operating parameters supported by the power supply device during the process of determining whether the connected power supply device is the target power supply device.

[0083] Optionally, the adjustable operating parameter range includes a voltage operating range and a current operating range corresponding to the PPS function supported by the target power supply device. For example, the adjustable operating parameter range may be as follows: the voltage operating range may be 3.3V to 21V or 3.3V to 11V, etc., and the current operating range may be 0 to 3A.

[0084] Step 402 , detecting whether the target charging parameters are within the adjustable operating parameter range supported by the target power supply device, the target charging parameters including the operating voltage and operating current that the terminal device expects the target power supply device to output.

[0085] Optionally, before executing step 402, the terminal device may obtain the operating voltage and operating current output by the target power supply device that it currently needs, and obtain the target charging parameters according to the operating voltage and operating current.

[0086] For example, the terminal device can obtain the target charging parameters in the following manner: obtain the current operating parameters of the terminal device, the current operating parameters include the battery voltage of the terminal device, the battery charging curve, the rated charging voltage, the rated charging current, the rated charging power, and one or more of the current application scenarios; determine the current value and voltage value required for the terminal device to charge based on the current operating parameters; and obtain the current value and voltage value as the target charging parameters.

[0087] For example, taking the target charging parameters including the current battery voltage of the terminal device and the battery charging curve as an example, the current battery voltage can be obtained in the terminal device, and the charging voltage and charging current required at the current battery voltage in the battery charging curve can be compared to determine the current value and voltage value required for charging the terminal device. Alternatively, the target charging parameters include the rated charging voltage and the rated charging current. In some special scenarios, the terminal device needs to be charged according to the rated charging voltage and the rated charging current. Then the current value required for charging the terminal device is the rated charging current, and the required voltage value is the rated charging voltage. Among them, special scenarios can be pre-set by developers, such as the special scenario is a standby state scenario or a shutdown state scenario.

[0088] Optionally, the terminal device may record the acquired target charging parameters in the form of voltage-current pairs, for example, represented by a voltage-current pair request (V, I), where V represents the voltage value required for charging of the terminal device, and I represents the current value required for charging of the terminal device.

[0089] Optionally, when the adjustable operating parameter range includes a voltage operating range and a current operating range, the detection of this step may include: detecting whether the voltage value in the target charging parameter is within the voltage operating range, and detecting whether the current value in the target charging parameter is within the current operating range. If the voltage value in the target charging parameter is within the voltage operating range, and the current value in the target charging parameter is within the current operating range, the target charging parameter is deemed to be within the adjustable operating parameter range supported by the target power supply device. If the voltage value in the target charging parameter is not within the voltage operating range, or the current value in the target charging parameter is not within the current operating range, the target charging parameter is deemed not to be within the adjustable operating parameter range supported by the target power supply device.

[0090] Taking the above-mentioned adjustable operating parameter range including the voltage operating range of 3.3V to 11V and the current operating range of 0 to 3A as an example, after obtaining the target charging parameter request (V, I), detect whether V in request (V, I) is between 3.3V and 11V, and detect whether I in request (V, I) is between 0 and 3A. If V in request (V, I) is between 3.3V and 11V, and I in request (V, I) is between 0 and 3A, it means that the target charging parameter is within the adjustable operating parameter range supported by the target power supply device. If V in request (V, I) = 12V, which is not between 3.3V and 11V, or I in request (V, I) = 4A, which is not between 0 and 3A, it means that the target charging parameter is not within the adjustable operating parameter range supported by the target power supply device.

[0091] Step 403: if the target charging parameter is not within the adjustable operating parameter range supported by the target power supply device, obtain each fixed output voltage supported by the target power supply device.

[0092] Step 404: Acquire the maximum load current corresponding to each fixed output voltage according to each fixed output voltage supported by the target power supply device.

[0093] Optionally, through the above detection, if it is determined that the target charging parameter is not within the adjustable operating parameter range supported by the target power supply device, the various fixed output voltages supported by the target power supply device are obtained, and based on the various fixed output voltages supported by the target power supply device, the maximum load current corresponding to each fixed output voltage is obtained.

[0094] Optionally, the various fixed output voltages supported by the target power supply device may be obtained at the same time as the adjustable operating parameter range is obtained in the above step 401, but are stored in the terminal device in advance, and when needed here, the various fixed output voltages can be obtained from the storage location. Alternatively, in the case where the target power supply device is an adapter of a USB interface, the terminal device may also continue to obtain the various supported fixed output voltages from the Source Cap message transmitted through the CC line.

[0095] Optionally, taking the case where the terminal device is an Android system, the terminal device can obtain the maximum load current corresponding to each fixed output voltage in the following manner: based on each fixed output voltage supported by the target power supply device, execute the AICL process respectively to obtain the maximum load current corresponding to each fixed output voltage. Optionally, for other systems or different terminal devices, the method of obtaining the maximum load current may be different, which is not limited here.

[0096] For example, in one possible implementation, the terminal device sequentially sets the current output voltage of the target power supply device to be one of the fixed output voltages, and controls the output current of the target power supply device to increase from the lowest current value to the highest current value according to the preset collection interval; each time the output current of the target power supply device is adjusted, the current output voltage of the target power supply device is collected, and it is detected whether the current output voltage is lower than the preset voltage threshold; if the current output voltage is lower than the preset voltage threshold, the current output current of the target power supply device is obtained as the maximum load current corresponding to the fixed output voltage set here; until each fixed output voltage is traversed. Optionally, the preset collection interval can be preset by the developer.

[0097] Among them, every time the output current increases according to the preset collection interval, the output current obtained needs to collect the current output voltage of the target power supply device once. For example, the current output voltage of the target power supply device is a fixed output voltage of 5V and 9V, the preset collection interval is 200ma, the minimum current value is 500ma, and the maximum current value is 2100ma. The terminal device can first control the current output voltage of the target power supply device to be 5V, and execute the AICL process on the software, and control the output current of the target power supply device in turn from 500ma, and increase at intervals of 200ma to the maximum current value of 2100ma. At the output currents of 500ma, 700ma, 900ma, etc., collect the current output voltage of the target power supply device, and detect whether the current output voltage is lower than the preset voltage threshold. If it is lower than the preset voltage threshold at a certain current, the current is obtained as the maximum load current.

[0098] Optionally, for different fixed output voltages, different preset voltage thresholds are set. The preset voltage threshold can also be obtained from the target power supply device when the above-mentioned fixed output voltages are obtained, which is not limited here.

[0099] Take the fixed output voltage of 5V as an example, the preset voltage threshold is 4.5V, after executing the AICL process, if the current output voltage is found to be lower than 4.5V at 900ma, then the maximum pull current corresponding to 5V is 900ma. By analogy, the same AICL process can be performed for 9V to obtain the maximum pull current corresponding to 9V.

[0100] It should be noted that, in the process of executing the AICL process above, in addition to increasing to the maximum current according to the above-mentioned preset current interval, various fixed detection current points can also be set in the terminal device, for example, 500ma 900ma 1200ma 1500ma 1700ma 2000ma. According to the fixed detection current point, the current is increased from 500ma to each fixed detection current point in sequence, and the current output voltage of the corresponding target power supply device is collected to detect whether the current output voltage is lower than the preset voltage threshold, so as to obtain the corresponding maximum load current.

[0101] Step 405 , selecting a fixed output voltage from various fixed output voltages as a target output voltage, and controlling the target power supply device to charge the terminal device according to the target output voltage and the maximum load current corresponding to the target output voltage.

[0102] Optionally, by acquiring each fixed output voltage and the maximum load current corresponding to each fixed output voltage, a fixed output voltage is selected from each fixed output voltage as the target output voltage, and the maximum load current corresponding to the target output voltage is selected as the output voltage and output current provided by the target power supply device during charging.

[0103] That is, through the above detection, if it is determined that the target charging parameters are not within the adjustable operating parameter range supported by the target power supply device, the target output voltage and the corresponding maximum load current are determined according to steps 403 to 405, and the target power supply device is controlled to charge the terminal device according to the target output voltage and the maximum load current corresponding to the target output voltage.

[0104] In one possible implementation, the terminal device can obtain the various fixed charging powers supported by the target power supply device according to the various fixed output voltages supported by the target power supply device and the maximum load current corresponding to each fixed output voltage; and select the fixed output voltage based on each fixed charging power. For example, the terminal device can select a fixed output voltage from various fixed output voltages as the target output voltage as follows: compare the various fixed charging powers, select the fixed charging power with the largest power value from various fixed charging powers as the target charging power, and obtain the fixed output voltage corresponding to the target charging power as the target output voltage.

[0105] For example, if the target power supply device supports two fixed output voltages of 5V and 9V, through the above AICL process, if the maximum load current corresponding to 5V is Q1 and the maximum load current corresponding to 9V is Q2, the terminal device can calculate a fixed charging power according to 5V*Q1, and another fixed charging power according to 9V*Q2. By comparing these two fixed charging powers, if 5V*Q1 is greater than 9V*Q2, then charge with the voltage of 5V and the corresponding maximum load current. If 9V*Q2 is greater than 5V*Q1, then charge with the voltage of 9V and the corresponding maximum load current.

[0106] Alternatively, the terminal device can select a fixed output voltage from various fixed output voltages as the target output voltage as follows: obtain the current application scenario of the terminal device, select a charging power that meets the application scenario from various fixed charging powers as the target charging power, and obtain the fixed output voltage corresponding to the target charging power as the target output voltage.

[0107] That is, the terminal device itself will select the target charging power from various fixed charging powers based on the current application scenario. For example, in the game scenario, in order to control the charging temperature from rising quickly, the charging speed can be slowed down, so a fixed output power between 9W and 12W can be selected. In the shutdown scenario, the terminal device needs to be charged quickly, and a fixed output power between 15W and 20W can be selected. In other words, based on different application scenarios, a corresponding fixed charging power within the charging power of the application scenario is selected. For example, in the game scenario, the above 5V*Q1 is between 9W and 12W, and the terminal selects 5V*Q1 as the target charging power, and then obtains the fixed output voltage corresponding to the target charging power is 5V, and the maximum load current corresponding to the fixed output voltage is Q1, and then controls the target power supply device to charge the terminal device according to the target output voltage and the maximum load current corresponding to the target output voltage.

[0108] Optionally, the above two methods of selecting a fixed charging power as the target charging power are exemplary. In actual applications, the terminal device may also consider other factors, such as charging speed, charging temperature, etc., and select a fixed charging power that is more suitable for the current situation as the target charging power. Examples will not be given one by one here.

[0109] Step 406: If the target charging parameter is within the adjustable operating parameter range supported by the target power supply device, control the target power supply device to charge the terminal device according to the PPS fast charging protocol.

[0110] Optionally, if it is determined that the target charging parameters are within the adjustable operating parameter range supported by the target power supply device, it means that it complies with the PPS function provided by the target charging device, and the PPS fast charging process can be directly performed.

[0111] In one possible implementation, when the above-mentioned terminal device is electrically connected to the adapter via a USB Type-C interface, and when the terminal device is connected to a target power supply device with a programmable power output, before obtaining the adjustable operating parameter range supported by the target power supply device, the terminal device may also perform the following steps: when the terminal device is connected to the adapter, obtain a data packet transmitted through the configuration channel CC line of the USB Type-C interface; identify the data packet to determine whether the terminal device is connected to the target power supply device; when the power supply device connected to the terminal device is the target power supply device, control the target power supply device to operate according to a default output voltage; the fixed output voltages supported by the target power supply device are the remaining fixed output voltages except the default output voltage.

[0112] Among them, identifying the data packet transmitted by the CC line is to parse the Source Cap message and obtain the APDO capability and PDO capability of the target power supply device. In one solution, the terminal device can also control the target power supply device to work according to the default output voltage when it is determined that the connected power supply device is the target power supply device; the various fixed output voltages supported by the target power supply device are the remaining fixed output voltages except the default output voltage. Among them, the default output voltage is the lowest working voltage in the PDO capability.

[0113] That is to say, after the power supply device is inserted, the terminal device recognizes that the power supply device is the target power supply device, and can first control the target power supply device to operate according to the default output voltage, and execute the AICL process to obtain the maximum load current corresponding to the default output voltage.

[0114] Below, we take the case where the terminal device is a mobile phone and the target power supply device is an adapter that supports the PPS function as an example to illustrate the implementation method of this solution. Figure 5 , which shows a flowchart of a method for executing a charging control method in a mobile phone according to an exemplary embodiment of the present application. The charging control method can be applied to a mobile phone. Figure 5 As shown, the charging control method may include the following steps:

[0115] Step 501, the mobile phone waits for the adapter to be inserted.

[0116] Step 502, identifying whether the adapter supports the PPS function.

[0117] The mobile phone waits for the adapter to be inserted. When the adapter is inserted, it is identified through the packet on the CC line that the adapter supports the PPS function, and step 503 is executed. If it is not a PPS adapter, other fast charging processing procedures are followed, and step 511 is executed.

[0118] Step 503, the output voltage of the adapter is the default 5V, AICL is executed, and the maximum load current corresponding to 5V is obtained.

[0119] Optionally, here we take the adapter's supported PDO capabilities of PDO1: 5V, 3A and PDO2: 9V, 3A as an example. Here the default output voltage is 5V. In the process of obtaining the adapter's APDO capability, AICL can be executed on 5V at the same time to obtain the maximum load current corresponding to 5V. If it is found that the requested voltage and current do not meet the APDO range supported by the adapter, AICL can be executed on other fixed output voltages without executing it on 5V, thereby improving overall efficiency.

[0120] Step 504: Obtain the APDO capability of the adapter and the voltage and current pair requested by the mobile phone.

[0121] Step 505: Detect whether the voltage and current pair requested by the mobile phone is within the APDO range.

[0122] If yes, execute step 510, if no, execute step 506. The voltage-current pair is equivalent to the target operating parameter, and the APDO range is the adjustable operating parameter range.

[0123] Step 506, assuming that the output voltage of the adapter is 9V, AICL is executed to obtain the maximum load current corresponding to 9V.

[0124] Step 507, detecting whether the maximum pull-load current corresponding to 5V* is greater than the maximum pull-load current corresponding to 9V*.

[0125] If yes, go to step 508, if no, go to step 509.

[0126] In this example, the adapter supports two PDO values, 5V and 9V. Therefore, AICL only needs to be executed for 9V. Of course, the fixed output voltage supported by the adapter can also be other PDO values. AICL can be executed one by one here to obtain the maximum load current corresponding to each other PDO value.

[0127] Step 508, charging is performed according to 5V and the corresponding maximum load current.

[0128] Step 509, charging is performed according to 9V and the corresponding maximum load current.

[0129] Step 510, enter the PPS fast charging process.

[0130] Step 511, enter other fast charging processes.

[0131] Through the above process, the problem that non-standard PPS adapters cannot charge can be solved. At the same time, through AICL action, the charging power of the PDO 5V and 9V gears supported by the adapter is compared. When the demand is met, the most suitable power gear is selected for charging, taking into account the charging speed and charging temperature rise.

[0132] To summarize, when the terminal device is connected to the target power supply device, the adjustable operating parameter range supported by the target power supply device is obtained; the target power supply device is a power supply device that supports the programmable power output PPS function, and the adjustable operating parameter range includes the voltage operating range and current operating range corresponding to the PPS function supported by the target power supply device; it is detected whether the target charging parameters are within the adjustable operating parameter range supported by the target power supply device, and the target charging parameters include the operating voltage and operating current that the terminal device expects the target power supply device to output; if the target charging parameters are not within the adjustable operating parameter range supported by the target power supply device, the target power supply device is controlled to charge the terminal device according to the target output voltage, and the target output voltage is a fixed output voltage selected from various fixed output voltages supported by the target power supply device. In the present application, when the adapter connected to the terminal device is the target power supply device, by detecting whether the target charging parameters are within the adjustable operating parameter range supported by the target power supply device, if the target charging parameters are not within the adjustable operating parameter range supported by the target power supply device, the adapter will be controlled to charge according to the target output voltage, and the interactive process of repeatedly inquiring the adapter will not be executed, thereby avoiding charging interruptions, charging abnormalities, etc., increasing the adaptability of the terminal device to charging different target power supply devices, and improving the efficiency of charging the terminal device.

[0133] The following are device embodiments of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.

[0134] Please refer to Figure 6 , which shows a structural block diagram of a charging control device provided by an exemplary embodiment of the present application. The charging control device 600 can be used in a terminal device to execute all or part of the steps performed by the terminal device in the methods provided by the above-mentioned various embodiments. The charging control device 600 includes:

[0135] The first acquisition module 601 is used to obtain the adjustable operating parameter range supported by the target power supply device when the terminal device is connected to the target power supply device; the target power supply device is a power supply device that supports the programmable power output PPS function, and the adjustable operating parameter range includes the voltage operating range and the current operating range corresponding to the PPS function supported by the target power supply device;

[0136] A first detection module 602, configured to detect whether a target charging parameter is within an adjustable operating parameter range supported by the target power supply device, the target charging parameter including an operating voltage and an operating current that the terminal device expects the target power supply device to output;

[0137] The first control module 603 is used to control the target power supply device to charge the terminal device according to a target output voltage if the target charging parameter is not within the adjustable operating parameter range supported by the target power supply device, and the target output voltage is a fixed output voltage selected from various fixed output voltages supported by the target power supply device.

[0138] To summarize, when the terminal device is connected to the target power supply device, the adjustable operating parameter range supported by the target power supply device is obtained; the target power supply device is a power supply device that supports the programmable power output PPS function, and the adjustable operating parameter range includes the voltage operating range and current operating range corresponding to the PPS function supported by the target power supply device; it is detected whether the target charging parameters are within the adjustable operating parameter range supported by the target power supply device, and the target charging parameters include the operating voltage and operating current that the terminal device expects the target power supply device to output; if the target charging parameters are not within the adjustable operating parameter range supported by the target power supply device, the target power supply device is controlled to charge the terminal device according to the target output voltage, and the target output voltage is a fixed output voltage selected from various fixed output voltages supported by the target power supply device. In the present application, when the adapter connected to the terminal device is the target power supply device, by detecting whether the target charging parameters are within the adjustable operating parameter range supported by the target power supply device, if the target charging parameters are not within the adjustable operating parameter range supported by the target power supply device, the adapter will be controlled to charge according to the target output voltage, and the interactive process of repeatedly inquiring the adapter will not be executed, thereby avoiding charging interruptions, charging abnormalities, etc., increasing the adaptability of the terminal device to charging different target power supply devices, and improving the efficiency of charging the terminal device.

[0139] Optionally, the first control module 603 includes: a first acquisition unit, a second acquisition unit and a first control unit;

[0140] The first acquisition unit is used to acquire each fixed output voltage supported by the target power supply device;

[0141] The second acquisition unit is used to acquire the maximum load current corresponding to each fixed output voltage supported by the target power supply device;

[0142] The first control unit is used to select a fixed output voltage from the various fixed output voltages as the target output voltage, and control the target power supply device to charge the terminal device according to the target output voltage and the maximum load current corresponding to the target output voltage.

[0143] Optionally, the second acquiring unit is further used to:

[0144] Based on each fixed output voltage supported by the target power supply device, an automatic input current limiting AICL process is executed respectively to obtain the maximum load current corresponding to each fixed output voltage.

[0145] Optionally, the second acquiring unit is further used to:

[0146] sequentially setting the current output voltage of the target power supply device to be one of the fixed output voltages, and controlling the output current of the target power supply device to increase from a minimum current value to a maximum current value according to a preset collection interval;

[0147] Each time the output current of the target power supply device is adjusted, the current output voltage of the target power supply device is collected, and whether the current output voltage is lower than a preset voltage threshold is detected;

[0148] If the current output voltage is lower than the preset voltage threshold, the current output current of the target power supply device is obtained as the maximum load current corresponding to the fixed output voltage set here; until each fixed output voltage is traversed.

[0149] Optionally, the device further comprises:

[0150] A second acquisition module, configured to acquire, before selecting a fixed output voltage from the fixed output voltages as the target output voltage, the fixed charging powers supported by the target power supply device according to the fixed output voltages supported by the target power supply device and the maximum load currents corresponding to the fixed output voltages;

[0151] The first control unit is further configured to:

[0152] comparing the fixed charging powers, selecting a fixed charging power with a maximum power value from the fixed charging powers as the target charging power, and acquiring a fixed output voltage corresponding to the target charging power as the target output voltage; or,

[0153] The current application scenario of the terminal device is obtained, a charging power that meets the application scenario is selected from the various fixed charging powers as the target charging power, and a fixed output voltage corresponding to the target charging power is obtained as the target output voltage.

[0154] Optionally, the device further comprises:

[0155] A third acquisition module is used to obtain the current working parameters of the terminal device when the terminal device is connected to the target power supply device, and the current working parameters include one or more of the battery voltage, battery charging curve, rated charging voltage, rated charging current, rated charging power, and current application scenario of the terminal device;

[0156] A first determination module, used to determine the current value and voltage value required for charging the terminal device according to the current working parameters;

[0157] The fourth acquisition module is used to acquire the current value and the voltage value as the target charging parameter.

[0158] Optionally, the device further comprises:

[0159] The second control module is used to control the target power supply device to charge the terminal device according to the PPS fast charging protocol if the target charging parameter is within the adjustable working parameter range supported by the target power supply device.

[0160] Optionally, the first acquisition module 601 includes: a first receiving unit and a third acquisition unit;

[0161] The first receiving unit is configured to receive a power broadcast message sent by the target power supply device, wherein the power broadcast message includes an adjustable working parameter range supported by the target power supply device;

[0162] The third acquisition unit is used to acquire the adjustable working parameter range supported by the target power supply device according to the power broadcast message.

[0163] Optionally, the terminal device is electrically connected to the power supply device via a universal serial bus USB Type-C interface, and the apparatus further includes:

[0164] A fourth acquisition module, configured to obtain a data packet transmitted through a configuration channel CC line of the USB Type-C interface when the terminal device is connected to a target power supply device, before obtaining the adjustable working parameter range supported by the target power supply device, when the terminal device is connected to the power supply device;

[0165] A second determination module is used to identify the data packet to determine whether the power supply device connected to the terminal device is the target power supply device;

[0166] The third control module is used to control the target power supply device to operate according to the default output voltage when the power supply device connected to the terminal device is the target power supply device; the fixed output voltages supported by the target power supply device are the remaining fixed output voltages except the default output voltage.

[0167] Please refer to Figure 7 , which is a structural diagram of another example of a charging control device provided in an embodiment of the present application. Among them, the charging control device 700 can be a terminal device, which can implement the functions of the method provided in an embodiment of the present application. Among them, the charging control device 700 can be a chip system. In the embodiment of the present application, the chip system can be composed of a chip, or it can include a chip and other discrete devices.

[0168] In terms of hardware implementation, the communication module may be a transceiver, which is integrated into the charging control device 700 to form a communication interface 703 .

[0169] The charging control device 700 includes at least one processor 701, which is used to implement or support the charging control device 700 to implement the functions of the terminal device in the method provided in the embodiment of the present application. Exemplarily, the processor 701 can execute the steps of obtaining the adjustable operating parameter range supported by the target power supply device when the terminal device is connected to the target power supply device; detecting whether the target charging parameter is within the adjustable operating parameter range supported by the target power supply device; if the target charging parameter is not within the adjustable operating parameter range supported by the target power supply device, controlling the target power supply device to charge the terminal device according to the target output voltage. Please refer to the detailed description in the method example for details, which will not be repeated here.

[0170] The charging control device 700 may also include at least one memory 702 for storing program instructions and / or data. The memory 702 is coupled to the processor 701. The coupling in the embodiment of the present application is an indirect coupling or communication connection between devices, units or modules, which may be electrical, mechanical or other forms, for information exchange between devices, units or modules. The processor 701 may operate in conjunction with the memory 702. The processor 701 may execute program instructions stored in the memory 702. At least one of the at least one memory may be included in the processor.

[0171] The charging control device 700 may also include a communication interface 703 for communicating with other devices through a transmission medium, so that the device in the charging control device 700 can communicate with other devices. Exemplarily, the other device may be a network-side device. The processor 701 may use the communication interface 703 to send and receive data. The communication interface 703 may specifically be a transceiver.

[0172] The specific connection medium between the communication interface 703, the processor 701 and the memory 702 is not limited in the embodiment of the present application. Figure 7 In the embodiment, the memory 702, the processor 701 and the communication interface 703 are connected via a bus 704. Figure 7 The connections between other components are shown in bold lines, which are only for illustration and are not intended to be limiting. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0173] In the embodiment of the present application, the processor 701 can be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the methods, steps and logic block diagrams disclosed in the embodiment of the present application. The general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware processor to be executed, or can be executed by a combination of hardware and software modules in the processor.

[0174] In an embodiment of the present application, the memory 702 may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., or a volatile memory (volatile memory), such as a random access memory (RAM). The memory is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory in the embodiment of the present application may also be a circuit or any other device that can implement a storage function, for storing program instructions and / or data.

[0175] Optionally, an embodiment of the present application further provides a terminal device, the terminal device including a memory and a processor, the memory storing a computer program executable on the processor, and the processor executing the computer program to implement all or part of the steps performed by the terminal device in the charging control method of each of the above embodiments.

[0176] Optionally, an embodiment of the present application further provides a computer-readable medium having a computer program stored thereon, and when the computer program is executed by a processor, it implements all or part of the steps performed by the terminal device in the charging control method of each of the above embodiments.

[0177] Optionally, an embodiment of the present application further provides a chip, which includes an executable computer program. When the chip executes the computer program, it implements all or part of the steps performed by the terminal device in the charging control method of each of the above embodiments.

[0178] Optionally, an embodiment of the present application further provides a computer program product, which, when executed on a computer, enables the computer to execute the charging control method of each of the above embodiments, including all or part of the steps executed by a terminal device.

[0179] Optionally, an embodiment of the present application further provides an application publishing platform, which is used to publish a computer program product, wherein when the computer program product runs on a computer, the computer executes the charging control method of each embodiment as described above, and all or part of the steps executed by the terminal device.

[0180] It should be noted that: when the device provided in the above embodiment performs the control of the terminal device, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0181] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0182] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0183] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A charging control method, characterized in that: Applied to a terminal device, the method comprises: When the terminal device is connected to a target power supply device, an adjustable operating parameter range supported by the target power supply device is obtained; the target power supply device is a power supply device that supports a programmable power output (PPS) function, and the adjustable operating parameter range includes a voltage operating range and a current operating range corresponding to the PPS function supported by the target power supply device; Detecting whether a target charging parameter is within an adjustable operating parameter range supported by the target power supply device, the target charging parameter including an operating voltage and an operating current that the terminal device expects the target power supply device to output; If the target charging parameter is not within the adjustable operating parameter range supported by the target power supply device, the target power supply device is controlled to charge the terminal device according to a target output voltage, where the target output voltage is a fixed output voltage selected from various fixed output voltages supported by the target power supply device.

2. The method according to claim 1, characterized in that: Controlling the target power supply device to charge the terminal device according to the target output voltage includes: Obtaining each fixed output voltage supported by the target power supply device; According to each fixed output voltage supported by the target power supply device, obtaining the maximum load current corresponding to each fixed output voltage; A fixed output voltage is selected from the various fixed output voltages as the target output voltage, and the target power supply device is controlled to charge the terminal device according to the target output voltage and the maximum load current corresponding to the target output voltage.

3. The method according to claim 2, characterized in that The acquiring, according to each fixed output voltage supported by the target power supply device, a maximum load current corresponding to each fixed output voltage, comprises: Based on each fixed output voltage supported by the target power supply device, an automatic input current limiting AICL process is executed respectively to obtain the maximum load current corresponding to each fixed output voltage.

4. The method according to claim 3, characterized in that The method of executing the automatic input current limiting AICL process based on each fixed output voltage supported by the target power supply device to obtain the maximum load current corresponding to each fixed output voltage includes: sequentially setting the current output voltage of the target power supply device to be one of the fixed output voltages, and controlling the output current of the target power supply device to increase from a minimum current value to a maximum current value according to a preset collection interval; Each time the output current of the target power supply device is adjusted, the current output voltage of the target power supply device is collected, and whether the current output voltage is lower than a preset voltage threshold is detected; If the current output voltage is lower than the preset voltage threshold, the current output current of the target power supply device is obtained as the maximum load current corresponding to the fixed output voltage set here; until each fixed output voltage is traversed.

5. The method according to claim 2, characterized in that: Before selecting a fixed output voltage from the fixed output voltages as the target output voltage, the method further includes: Acquire each fixed charging power supported by the target power supply device according to each fixed output voltage supported by the target power supply device and the maximum load current corresponding to each fixed output voltage; The step of selecting a fixed output voltage from the fixed output voltages as the target output voltage comprises: comparing the fixed charging powers, selecting a fixed charging power with a maximum power value from the fixed charging powers as the target charging power, and acquiring a fixed output voltage corresponding to the target charging power as the target output voltage; or, The current application scenario of the terminal device is obtained, a charging power that meets the application scenario is selected from the various fixed charging powers as the target charging power, and a fixed output voltage corresponding to the target charging power is obtained as the target output voltage.

6. The method according to any one of claims 1 to 5, characterized in that: In the case where the terminal device is connected to the target power supply device, the method further includes: Acquire current operating parameters of the terminal device, where the current operating parameters include one or more of a battery voltage, a battery charging curve, a rated charging voltage, a rated charging current, a rated charging power, and a current application scenario of the terminal device; Determining the current value and voltage value required for charging the terminal device according to the current operating parameters; The current value and the voltage value are obtained as the target charging parameters.

7. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: If the target charging parameter is within the adjustable operating parameter range supported by the target power supply device, the target power supply device is controlled to charge the terminal device according to the PPS fast charging protocol.

8. The method according to any one of claims 1 to 5, characterized in that: The obtaining of the adjustable operating parameter range supported by the target power supply device includes: Receiving a power broadcast message sent by the target power supply device, wherein the power broadcast message includes an adjustable working parameter range supported by the target power supply device; According to the power broadcast message, an adjustable operating parameter range supported by the target power supply device is obtained.

9. The method according to any one of claims 1 to 5, characterized in that: The terminal device is electrically connected to the power supply device through a universal serial bus USB Type-C interface. When the terminal device is connected to the target power supply device, before obtaining the adjustable working parameter range supported by the target power supply device, the method further includes: When the terminal device is connected to a power supply device, obtaining a data packet transmitted through a configuration channel CC line of the USB Type-C interface; Identify the data packet to determine whether the power supply device connected to the terminal device is the target power supply device; When the power supply device connected to the terminal device is the target power supply device, the target power supply device is controlled to operate according to a default output voltage; the fixed output voltages supported by the target power supply device are the remaining fixed output voltages except the default output voltage.

10. A charging control device, characterized in that: Applied to a terminal device, the device comprises: A first acquisition module is used to obtain an adjustable operating parameter range supported by a target power supply device when the terminal device is connected to the target power supply device; the target power supply device is a power supply device that supports a programmable power output PPS function, and the adjustable operating parameter range includes a voltage operating range and a current operating range corresponding to the PPS function supported by the target power supply device; A first detection module, used to detect whether a target charging parameter is within an adjustable operating parameter range supported by the target power supply device, the target charging parameter including an operating voltage and an operating current that the terminal device expects the target power supply device to output; The first control module is used to control the target power supply device to charge the terminal device according to a target output voltage if the target charging parameter is not within the adjustable operating parameter range supported by the target power supply device, and the target output voltage is a fixed output voltage selected from various fixed output voltages supported by the target power supply device.

11. A terminal device, characterized in that: The terminal device includes a memory and a processor, the memory stores a computer program that can be run on the processor, and the processor implements the charging control method according to any one of claims 1 to 9 when executing the computer program.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the charging control method according to any one of claims 1 to 9 is implemented.