Terminal equipment, power supply control method and device thereof and storage medium
By detecting the access of the OTG device and obtaining the power supply parameters of the terminal device, determining the power supply capacity information, and adjusting the output power supply parameters according to the charging application of the OTG device, the problem of power supply abnormality of the terminal device in the high-power discharge scenario is solved, and the stability and Efficient power supply process.
Patent Information
- Application Number
- CN202311016947.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-11
- Publication Date
- 2025-02-18
AI Technical Summary
Terminal equipment is prone to power supply abnormalities in high-power discharge scenarios, including over-temperature over-discharge problems, resulting in a decrease in power supply stability.
By detecting that the OTG device is connected, a power supply connection is established, and the power supply parameters of the terminal device are obtained. Based on these parameters, the current power supply capacity information is determined, the power supply capacity information is sent to the OTG device, and the output power supply parameters are adjusted according to the charging application information of the OTG device.
It realizes stable power supply of terminal equipment in high-power discharge scenarios, reduces the risk of over-temperature over-discharge, and improves the stability of the power supply process and the service life of terminal equipment.
Smart Images

Figure CN119482786A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of electronic equipment, and in particular to a terminal device and a power supply control method, device, and storage medium thereof. Background Art
[0002] OTG (On The Go) is a technology published by the USB standardization organization and mainly used for data exchange between different devices. A device with OTG function is an OTG device. An OTG device can be used as a master device or a slave device.
[0003] In the related technology, when a terminal device with OTG function detects that other OTG devices are connected, the OTG device can be powered by an internal power supply module. However, the terminal device can generally only provide a discharge power of no more than 10 watts for the OTG device. In a high-power discharge scenario, the terminal device is prone to power supply abnormalities. Summary of the invention
[0004] In order to achieve high-power discharge of terminal equipment, reduce the abnormal risks of overheating, over-discharge and other abnormalities of terminal equipment, and improve the stability of the high-power discharge process, the embodiments of the present disclosure provide a terminal equipment and its power supply control method, device, and storage medium.
[0005] In a first aspect, an embodiment of the present disclosure provides a power supply control method, which is applied to a terminal device, and the method includes:
[0006] When an OTG device is detected to be connected, a power supply connection is established for the terminal device to supply power to the OTG device;
[0007] In the process of powering the OTG device, one or more power supply parameters included in the terminal device are obtained, and current power supply capability information of the terminal device is determined based on the power supply parameters; the power supply parameters represent parameters related to the power supply capability of the terminal device;
[0008] Sending the power supply capability information to the OTG device, and receiving charging application information returned by the OTG device based on the power supply capability information;
[0009] The output power parameters for powering the OTG device are adjusted according to the charging application information.
[0010] In some implementations, when the OTG device is detected to be connected, establishing a power supply connection for the terminal device to power the OTG device includes:
[0011] When it is detected that an OTG device is connected, the charge pump circuit of the terminal device is used to power the OTG device.
[0012] In some implementations, in the process of powering the OTG device, acquiring one or more power supply parameters included in the terminal device includes:
[0013] In the process of supplying power to the OTG device, detecting each power supply parameter of the terminal device;
[0014] Based on the pre-configured correspondence between the power supply parameters and the gear values, in response to a change in the gear value of any power supply parameter, the gear value currently corresponding to each power supply parameter is obtained.
[0015] In some implementations, determining the current power supply capability information of the terminal device based on the power supply parameter includes:
[0016] Determine a target gear value from the gear value currently corresponding to each power supply parameter, wherein the target gear value is the gear value corresponding to the minimum power supply power;
[0017] Determine the target power supply power corresponding to the target gear value based on the pre-configured correspondence between the gear value and the power supply power;
[0018] The power supply capability information is determined based on the target power supply power.
[0019] In some implementations, determining the target gear value from the gear value currently corresponding to each power supply parameter includes:
[0020] The callback function is used to obtain the gear value currently corresponding to each power supply parameter, and the gear value is loaded into the voting device;
[0021] According to all the gear values in the voting device, the target gear value corresponding to the minimum power supply power is determined.
[0022] In some implementations, determining the power supply capability information based on the target power supply power includes:
[0023] Determine, from a plurality of charging gears supported by the terminal device, a candidate charging gear whose power is less than or equal to the target power supply power;
[0024] The power supply capability information is generated according to the candidate charging gear.
[0025] In some implementations, the power supply capability information includes at least one candidate charging gear, and sending the power supply capability information to the OTG device and receiving charging application information returned by the OTG device based on the power supply capability information includes:
[0026] Sending the power supply capability information to the OTG device, so that the OTG device determines a target charging gear from the at least one candidate charging gear, and generates the charging application information based on the target charging gear;
[0027] Receive the charging application information sent by the OTG device.
[0028] In some embodiments, the power supply parameter includes at least one of the following:
[0029] Temperature control system parameters, charging temperature parameters, battery remaining power parameters and screen brightness parameters.
[0030] In a second aspect, an embodiment of the present disclosure provides a power supply control device, which is applied to a terminal device, and the device includes:
[0031] A power supply module, configured to establish a power supply connection for the terminal device to supply power to the OTG device when an OTG device is detected to be connected;
[0032] A capability evaluation module is configured to obtain one or more power supply parameters included in the terminal device during the process of powering the OTG device, and determine the current power supply capability information of the terminal device based on the power supply parameters; the power supply parameters represent parameters related to the power supply capability of the terminal device;
[0033] An information transceiver module is configured to send the power supply capability information to the OTG device, and receive charging application information returned by the OTG device based on the power supply capability information;
[0034] The power adjustment module is configured to adjust output power parameters for supplying power to the OTG device according to the charging application information.
[0035] In some embodiments, the power supply module is configured as follows:
[0036] When it is detected that an OTG device is connected, the charge pump circuit of the terminal device is used to power the OTG device.
[0037] In some embodiments, the capability assessment module is configured to:
[0038] In the process of supplying power to the OTG device, detecting each power supply parameter of the terminal device;
[0039] Based on the pre-configured correspondence between the power supply parameters and the gear values, in response to a change in the gear value of any power supply parameter, the gear value currently corresponding to each power supply parameter is obtained.
[0040] In some embodiments, the capability assessment module is configured to:
[0041] The maximum gear value among the gear values currently corresponding to each power supply parameter is determined as the target gear value;
[0042] Determine the target power supply power corresponding to the target gear value based on the pre-configured correspondence between the gear value and the power supply power;
[0043] The power supply capability information is determined based on the target power supply power.
[0044] In some embodiments, the capability assessment module is configured to:
[0045] The callback function is used to obtain the gear value currently corresponding to each power supply parameter, and the gear value is loaded into the voting device;
[0046] According to all the gear values in the voting device, the target gear value corresponding to the minimum power supply power is determined.
[0047] In some embodiments, the capability assessment module is configured to:
[0048] Determine, from a plurality of charging gears supported by the terminal device, a candidate charging gear whose power is less than or equal to the target power supply power;
[0049] The power supply capability information is generated according to the candidate charging gear.
[0050] In some embodiments, the power supply capability information includes at least one candidate charging gear, and the information transceiver module is configured to:
[0051] Sending the power supply capability information to the OTG device, so that the OTG device determines a target charging gear from the at least one candidate charging gear, and generates the charging application information based on the target charging gear;
[0052] Receive the charging application information sent by the OTG device.
[0053] In some embodiments, the power supply parameter includes at least one of the following:
[0054] Temperature control system parameters, charging temperature parameters, battery remaining power parameters and screen brightness parameters.
[0055] In a third aspect, an embodiment of the present disclosure provides a terminal device, including:
[0056] Processor; and
[0057] A memory storing computer instructions, wherein the computer instructions are used to enable a processor to execute the method according to any embodiment of the first aspect.
[0058] In a fourth aspect, an embodiment of the present disclosure provides a storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the method according to any embodiment of the first aspect.
[0059] The power supply control method of the disclosed embodiment includes establishing a power supply connection between the terminal device and the OTG device when the OTG device is detected to be connected, determining the current power supply capability information according to one or more power supply parameters of the terminal device during the power supply process of the OTG device, sending the power supply capability information to the OTG device and receiving the returned charging application information, and adjusting the output power supply parameters according to the charging application information. In the disclosed embodiment, while realizing high-power power supply of the terminal device and the OTG device, the power supply capability of the terminal device is dynamically adjusted based on the power supply parameters during the power supply process, reducing the risk of overheating and over-discharging of the terminal device, ensuring the stability of power supply, and improving the service life of the battery and the terminal device. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0061] Figure 1 It is a schematic diagram of a power supply circuit of a terminal device in the related technology.
[0062] Figure 2 is a structural diagram of a power supply circuit in some embodiments of the present disclosure.
[0063] Figure 2a It is a schematic diagram of the principle of the power supply circuit in some embodiments of the present disclosure.
[0064] Figure 2b It is a schematic diagram of the principle of the power supply circuit in some embodiments of the present disclosure.
[0065] Figure 3 is a flowchart of a power supply control method according to some embodiments of the present disclosure.
[0066] Figure 4 is a flowchart of a power supply control method according to some embodiments of the present disclosure.
[0067] Figure 5is a flowchart of a power supply control method according to some embodiments of the present disclosure.
[0068] Figure 6 is a flowchart of a power supply control method according to some embodiments of the present disclosure.
[0069] Figure 7 It is a structural block diagram of a power supply control device in some embodiments of the present disclosure.
[0070] Figure 8 It is a structural block diagram of a terminal device in some implementation modes of the present disclosure. DETAILED DESCRIPTION
[0071] The technical solution of the present disclosure will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described implementation is a part of the implementation of the present disclosure, rather than all the implementations. Based on the implementation in the present disclosure, all other implementations obtained by ordinary technicians in the field without creative work are within the scope of protection of the present disclosure. In addition, the technical features involved in the different implementations of the present disclosure described below can be combined with each other as long as they do not conflict with each other.
[0072] OTG (On The Go) is a technology published by the USB standardization organization and mainly used for data exchange between different devices. A device with OTG function is an OTG device. An OTG device can be used as a master device or a slave device.
[0073] Common OTG devices include, for example, USB flash drives, Type C earphones, and mobile phone dongle accessories. When a terminal device with OTG function detects that other OTG devices are connected, it can power the OTG devices through the internal power supply module. For example, after the user inserts the USB flash drive into the charging port of the mobile phone, the mobile phone can detect that an OTG device is connected, and then power the USB flash drive through the charging port.
[0074] In the related art, the OTG power supply of the terminal device is generally provided by the PMIC (Power Management Integrated Circuit) of the terminal device. The common working voltage of the OTG device is 5V, and the battery of the terminal device is generally 3.7V to 4.3V. The PMIC of the terminal device boosts the battery voltage to 5V and then outputs it. The process of the terminal device supplying power to the OTG device is the process of the terminal device discharging.
[0075] With the development of battery technology, the battery energy density and battery capacity of terminal devices are getting higher and higher. For example, for some tablet computers, the battery capacity has exceeded 10,000 mAh, which is equivalent to the storage capacity of a mobile power bank.
[0076] In some scenarios, users expect to use a device with sufficient power to temporarily charge a device with insufficient power. For example, in an outdoor emergency, if the user's mobile phone runs out of power but the tablet has sufficient power, if the mobile phone can be connected to the tablet as an OTG device (Sink) that needs power, the tablet can be used as a power source (Source) to charge the mobile phone.
[0077] However, from the above, it can be seen that the OTG power supply voltage of existing terminal devices is only 5V, and can only provide a discharge power of no more than 10W at most. It is impossible to establish high-power fast charging with OTG devices, so the efficiency of using terminal devices to charge other OTG devices with higher power consumption is very low.
[0078] For ease of understanding, Figure 1 The power supply circuit structure of the terminal device in the related art is shown below. Figure 1 The circuit diagram illustrates the charging and discharging principle of conventional terminal equipment.
[0079] like Figure 1 As shown, the power supply circuit of the terminal device includes a Type C interface, a PMIC and a charge pump, and the PMIC and the charge pump are generally integrated chips.
[0080] When the terminal device is charging, the Type C interface is connected to the charger. At this time, the charger acts as the power source (Source) and the terminal device acts as the power consumption device (Sink). The current flow direction at this time can be referred to Figure 1 The dotted arrow direction in the figure means that after the power supply passes through the Type C interface and the Switch, one branch passes through the PMIC to power the system, and the other branch passes through the charge pump to step down the voltage and charge the battery.
[0081] During the charging process, the PMIC can perform a fast charging protocol handshake with the charger through the CC line. If the handshake is successful, the fast charging of the corresponding protocol can be achieved through the charge pump. The fast charging protocol may include, for example, PD (Power Delivery) fast charging protocol, QC (Quick Charge) fast charging protocol or other private fast charging protocols, etc., which is not limited in the present disclosure.
[0082] When an OTG device is inserted into the Type C port, the terminal device detects that the inserted device is an OTG device (such as a USB flash drive, headphones, etc.), so the terminal device needs to act as a power source (Source) and the OTG device as a power consumption device (Sink). The current flow direction at this time can be referred to Figure 1 The dotted arrow direction in the figure indicates that the battery voltage (3.7V to 4.3V) of the terminal device is boosted (5V) by the boost circuit in the PMIC and then powers the OTG device through the Switch and the Type C interface.
[0083] Due to the hardware limitation of PMIC itself, the OTG discharge power that terminal equipment can provide generally does not exceed 10W. For low-power OTG devices such as USB flash drives and headphones, the discharge power of terminal equipment is sufficient to meet their normal work. However, for high-power mobile phones, tablets and other devices, the OTG discharge power of terminal equipment cannot meet their charging requirements, so the terminal equipment cannot charge them, or can only establish very low-power charging, with poor charging speed and effect.
[0084] Based on this, an embodiment of the present disclosure provides a power supply circuit, which changes the traditional solution of using PMIC for discharge. Instead, on the basis of using a charge pump circuit for reverse boost discharge, a voltage conversion circuit is added to power the OTG device, thereby increasing the discharge power of the terminal device, and can interact with the OTG device for fast charging protocol to achieve fast charging of the OTG device.
[0085] Figure 2 The schematic diagram of the power supply circuit in some embodiments of the present disclosure is shown below. Figure 2 The structure and principle of the power supply circuit disclosed in the present invention are described.
[0086] like Figure 2 As shown, in some embodiments, the power supply circuit of the example of the present disclosure includes an input-output interface, a voltage conversion circuit, a charge pump circuit, and a processing unit.
[0087] The input / output interface (IO interface) refers to the power interface of the terminal device. Since the terminal device itself has the OTG function, the power interface can be used not only as a charging interface but also as a discharging interface. The input / output interface is used to connect external devices. When the terminal device is used as a power source (Source), the external device can be, for example, an OTG device; when the terminal device is used as a power consumption device (Sink), the external device can be, for example, a charger.
[0088] In the embodiments of the present disclosure, the input and output interface may be an interface of any form, such as a USB (Universal Serial Bus) interface, a Micro USB interface, a USB Type C interface, etc., and the present disclosure does not impose any limitation on this.
[0089] The charge pump circuit is a switched capacitor voltage converter. The charge pump has a high electrical efficiency and is therefore widely used in fast charging circuits of terminal devices as a high-power fast charging circuit. The charge pump circuit in the terminal device is usually a step-down circuit, and its operating modes include 2:1, 4:1, etc. For example, when the charge pump circuit works in 2:1 mode, its input voltage is 8V, and the output voltage will be 4V.
[0090] A voltage conversion circuit is a power supply circuit with adjustable input and output voltages, such as a Buck boost circuit, which can adjust the values of input voltage and output voltage according to configuration instructions.
[0091] A processing unit refers to a processor having one or more processing cores, which can perform single-thread or multi-thread operations, and is used to parse instructions to perform operations such as acquiring data, performing logical operations, and issuing operation processing results. In the embodiments of the present disclosure, the processing unit may include a processor of a terminal device, such as a CPU (Central Processing Unit) or a SoC (System on Chip) of the terminal device; it may also include a power management circuit, or include both a processor and a power management circuit, and the present disclosure does not limit this.
[0092] In the embodiments of the present disclosure, the power supply circuit may further include a power management circuit. The power management circuit refers to a power management chip of a terminal device, which is used to manage the power function of the terminal device and realize functions such as charging and OTG discharging of the terminal device. In some embodiments, the power management circuit may be a PMIC.
[0093] In the embodiments of the present disclosure, the charge pump circuit, the voltage conversion circuit and the power management circuit can be implemented in the form of integrated circuits. For example, the charge pump circuit can be a charge pump chip, the voltage conversion circuit can be a Buck boost chip, and the power management circuit can be a PMIC chip.
[0094] exist Figure 2 In the example, the power supply circuit includes two branches, namely a charging branch for charging a battery of a terminal device, and a discharging branch for supplying power to an OTG device.
[0095] For the charging branch, the input and output interfaces are respectively connected to the first power supply terminal VIN1 of the power management circuit and the first terminal VIN2 of the charge pump circuit through an on-off switch, the second terminal VOUT1 of the charge pump circuit and the second power supply terminal VBAT of the power management circuit are connected to the battery of the terminal device, and at the same time, the load terminal VPH of the power management circuit is connected to the system load.
[0096] When the input and output interfaces of the terminal device are connected to the charger, the terminal device acts as a power-consuming device (Sink), that is, the charger charges the terminal device. The direction of the charging current at this time can be as follows: Figure 2a Shown by the medium thick solid line.
[0097] like Figure 2a As shown, after the charging power passes through the on-off switch, one path passes through the first power supply terminal VIN1 of the power management circuit to power the power management circuit, and flows out through the load terminal VPH to power the system load. The other path flows into the first terminal VIN2 of the charge pump circuit. After the charge pump circuit steps down the input voltage, it flows out through the second terminal VOUT1 to charge the battery.
[0098] And at the beginning of charging, the protocol communication terminal CC of the power management circuit interacts with the charger through the fast charging protocol. After the fast charging protocol handshake is successful, the power management circuit applies to the charger for the corresponding voltage and current, thereby achieving high-power fast charging.
[0099] Regarding the above-mentioned charging process of the terminal device, those skilled in the art can undoubtedly understand and fully implement it based on the above disclosure, and this disclosure will not elaborate on it.
[0100] For the discharge branch, the output terminal VOUT2 of the voltage conversion circuit is connected to the input-output interface, and the input terminal VIN3 of the voltage conversion circuit is connected to the first terminal VIN2 of the charge pump circuit.
[0101] When the input and output interface of the terminal device is connected to the OTG device, the terminal device acts as a power source (Source) and the OTG device acts as a power consumption device (Sink). At this time, the discharge current direction can be as follows: Figure 2b Shown by the medium thick solid line.
[0102] like Figure 2bAs shown, the power supply current of the battery of the mobile terminal flows into the second end VOUT1 of the charge pump circuit. At this time, the charge pump circuit operates in a reverse boost mode, thereby increasing the power supply voltage output by the battery. For example, when the charge pump circuit operates in a 2:1 buck mode, its reverse is a 1:2 boost mode, so that the 3.7V~4.3V power supply voltage output by the battery is increased to about 8V after passing through the charge pump circuit, and reaches the input end VIN3 of the voltage conversion circuit through the first end VIN2 of the charge pump circuit. The voltage conversion circuit is powered on, and then the voltage / current of the power supply current is adjusted according to the required output voltage / current, and the adjusted power supply current is transmitted to the input-output interface through the output end VOUT2, thereby charging the OTG device at the opposite end.
[0103] It is worth noting that in the power supply circuit of the embodiment of the present invention, when powering the OTG device, the power management circuit is no longer used for power supply. This is because the discharge power that the power management circuit can output is relatively small, and a charge pump circuit is used for reverse boosting. The charge pump circuit itself is a transformer circuit suitable for high-power charging. Therefore, by using the charge pump circuit for reverse boosting, the battery output voltage can be increased to a higher level with very little loss, and then the voltage conversion circuit is used to accurately control the OTG power supply voltage based on the configuration parameters, so that a high-power OTG power supply voltage can be output.
[0104] In addition, in the embodiments of the present disclosure, when the terminal device is charging the OTG device, the power management circuit can also interact with the OTG device through the protocol communication terminal CC to perform fast charging protocol, and upon receiving the charging application information from the OTG device, match the relevant charging parameters through the voltage conversion circuit, thereby providing the OTG device with the required charging voltage / current, and establishing fast charging between the terminal device and the OTG device.
[0105] For example, in an example scenario, a tablet computer is used as the terminal device, and a smart phone is used as the OTG device. By using the power supply circuit of the embodiment of the present disclosure, the tablet computer as a power source can provide more than 30W of charging power for the smart phone. Compared with the traditional OTG power supply solution, the reverse power supply power of the terminal device is greatly improved, and the charging time of the OTG device is shortened.
[0106] However, it is understandable that terminal devices are different from pure power sources (Source) such as chargers and power banks. They also have their own system load power consumption, and as the operating conditions of the terminal devices change, the power voltage they can provide to OTG devices also fluctuates.
[0107] For example, when the terminal device supplies high-power power to the OTG device for a long time, the battery voltage drops quickly and generates high heat, affecting the user's normal use of the mobile terminal, and even triggering over-temperature protection to interrupt the power supply. Moreover, when supplying power to the OTG device, in scenarios such as turning on the screen, playing games, and watching videos, the load of the terminal device suddenly increases, which can easily cause the battery voltage to suddenly drop below the shutdown voltage, causing the terminal device to shut down abnormally, and easily causing the battery to over-discharge, accelerating the battery performance degradation.
[0108] Based on the above technical problems, the embodiments of the present disclosure provide a power supply control method, device, terminal device and storage medium, which aim to achieve high-power power supply for terminal devices and OTG devices, and dynamically adjust the maximum power supply capacity of the terminal device based on the parameters in the power supply process, thereby reducing the risks of overheating and over-discharge of the terminal device, ensuring power supply stability, and improving the service life of the battery and the terminal device.
[0109] It is worth noting that the power supply control method of the embodiment of the present disclosure can be applied to the aforementioned terminal device and executed by the processing unit of the terminal device.
[0110] like Figure 3 As shown, in some embodiments, the power supply control method of the present disclosure example includes:
[0111] S310: When it is detected that an OTG device is connected, a power supply connection is established for the terminal device to supply power to the OTG device.
[0112] Combination Figure 2 The power supply circuit shown, when the OTG device is inserted into the input and output interface of the terminal device, the terminal device can detect the OTG device. For example, in one example, the terminal device can determine whether the inserted device is an OTG device or a charger based on the detection level of the input and output interface. Those skilled in the art can understand this and will not be elaborated in this disclosure.
[0113] In the embodiments of the present disclosure, see Figure 2b As shown, when the terminal device detects that the OTG device is connected, the working mode of the charge pump circuit can be controlled to switch from the forward buck mode to the reverse boost mode, and the battery of the terminal device outputs the power supply to the charge pump circuit. The charge pump circuit works in the reverse boost mode, so that the charge pump circuit boosts the power supply output by the battery and outputs it to the voltage conversion circuit.
[0114] For example, in one example, when the charge pump circuit works in the 1:4 reverse boost mode, the voltage of the power supply provided by the battery is 4V, so the voltage of the power supply output to the voltage conversion circuit after the charge pump circuit will be increased to about 16V. The voltage conversion circuit configures the power supply output by the charge pump circuit accordingly, and then outputs it to the input and output interface, thereby realizing high-power power supply to the OTG device at the opposite end.
[0115] S320. In the process of supplying power to the OTG device, one or more power supply parameters included in the terminal device are obtained, and current power supply capability information of the terminal device is determined based on the power supply parameters.
[0116] Combined with the above, it can be seen that in the process of the terminal device providing high-power power to the OTG device, the power supply capacity that the terminal device can provide to the OTG device will also change with the influence of factors such as changes in the battery power level, battery temperature, and load conditions of the terminal device. Therefore, if high-power power supply is maintained all the time, the aforementioned power supply abnormality will easily occur, and even cause irreversible damage to the performance of the terminal device.
[0117] Therefore, in the embodiments of the present disclosure, when the terminal device provides high-power power supply to the OTG device, it is necessary to evaluate the current power supply capacity of the terminal device in combination with one or more power supply parameters of the terminal device, so as to determine the power supply capacity information of the terminal device under the current working conditions. The power supply capacity information can reflect the current maximum power supply capacity of the terminal device.
[0118] In the embodiments of the present disclosure, the power supply parameter of the terminal device refers to a parameter related to the power supply capability of the terminal device. In other words, the power supply parameter is a parameter that changes dynamically as the power supply capability of the terminal device changes.
[0119] For example, in some implementations, the power supply parameters of the terminal device may include charging temperature parameters, battery remaining power parameters, screen brightness parameters, temperature control system parameters, etc.
[0120] It is understandable that charging temperature is an important indicator to measure the heating of power supply. If the charging temperature is too high, it is very likely to cause a charging safety accident. Therefore, the change of charging temperature can reflect the change of the power supply capacity of the terminal device. In the embodiment of the present disclosure, the charging temperature parameter can be used as a power supply parameter.
[0121] The remaining battery power is related to the source voltage of the terminal device as a power source (Source). If the remaining battery power is very low, the voltage that the battery can output is very low, and it is easy to over-discharge, resulting in increased battery performance degradation. Therefore, the change in the remaining battery power can also reflect the change in the power supply capacity of the terminal device. In the embodiment of the present disclosure, the remaining battery power parameter can be used as a power supply parameter.
[0122] The screen brightness is related to the load of the terminal device itself. If the load of the terminal device itself is very high, the voltage of the power supply that can be output will be pulled down, and it is easy to have a power outage or abnormal shutdown. Therefore, the change of screen brightness can also reflect the change of the power supply capacity of the terminal device. In the embodiment of the present disclosure, the screen brightness parameter can be used as a power supply parameter.
[0123] The temperature control system refers to the Thermal module of the terminal device. The Thermal module is mainly responsible for the temperature control of the entire device. It is the temperature control capability provided by the bottom layer of the Android system. Its core work is to obtain a parameter value by comprehensively calculating the temperature of multiple parts of the device to evaluate whether the current charging temperature of the device is safe. In the embodiment of the present disclosure, the temperature control system parameter can be used as a power supply parameter.
[0124] Therefore, in the embodiments of the present disclosure, when the terminal device provides high-power power to the OTG device, one or more of the above-mentioned power supply parameters can be obtained, and the maximum power supply capacity that the terminal device can currently provide can be determined based on the current power supply parameters. This maximum power supply capacity is also the power supply capacity information described in the present disclosure.
[0125] It is worth noting that, in the process of the terminal device supplying high power to the OTG device, the above power supply parameters can be obtained once every preset time period, and the corresponding power supply capacity information can be determined. For example, in one example, in the process of the terminal device supplying high power to the OTG device, the power supply parameters can be obtained once every 1min to 5min, and the corresponding power supply capacity information can be determined according to the power supply parameters. In other words, the power supply capacity of the terminal device can be evaluated once every preset time period to ensure the safety and stability of the power supply process.
[0126] In other implementations, in order to avoid generating more redundant operations in the above fixed time period, increasing the computing burden and power consumption, the above power supply parameters can be obtained only once when a certain power supply parameter changes to a large extent, and the corresponding power supply capacity information can be determined.
[0127] It is understandable that in the initial stage of powering the OTG device when the terminal device is in standby mode, the terminal device battery has sufficient remaining power, generates less heat and has a very low load. At this time, if the power supply capacity of the terminal device is evaluated every 1 minute, it will undoubtedly generate a large number of redundant operations, increase the computing burden and power consumption.
[0128] Therefore, in some embodiments of the present disclosure, a corresponding gear value can be set in advance for each power supply parameter. Only when the gear value corresponding to a certain power supply parameter changes, it means that the power supply parameter has fluctuated to a large extent. At this time, each power supply parameter can be obtained through the aforementioned process, and the corresponding power supply capacity information can be determined according to the power supply parameter, thereby reducing redundant operations, reducing calculation burden and power consumption. This process is described below in the present disclosure and will not be described in detail here.
[0129] In some implementations, the power supply capability information of the terminal device is Source_Capabilities information, which is used to record the charging gears supported by the terminal device. The charging gears can be represented by current and voltage, such as 5V2A, 10V2A, 15V4A, etc.
[0130] According to the fast charging technology in the relevant technology, when the source (Source) and the opposite end (Sink) establish a fast charging connection, both the source and the opposite end will support many charging gears. For example, taking a mobile phone and a charger as an example, the charging gears supported by both parties may include 5V 2A, 9V 2A, 11V 3A, 20V 1A, 15V 4A, etc. The V in the charging gear represents voltage, A represents current, and the product of voltage and current is power.
[0131] Therefore, in the embodiments of the present disclosure, the terminal device also supports many charging gears, and these charging gears correspond to different powers. For example, in one example, the terminal device provides power to the OTG device including the following 4 charging gears:
[0132] Charging gear P1, output voltage 11V, output current 3A, maximum output power 33W;
[0133] Charging gear P2, output voltage 11V, output current 2A, maximum output power 22W;
[0134] Charging gear P3, output voltage 10V, output current 1.5A, maximum output power 15W;
[0135] Charging gear P4, output voltage 5V, output current 2A, maximum output power 10W.
[0136] It is understandable that under normal circumstances, the terminal device can provide high-power power supply with a maximum output power of 33W for the OTG device according to the charging gear P1. However, as the high-power power supply is carried out, the power supply capacity of the terminal device gradually decreases. If the power supply continues to be provided according to the maximum output power of 33W of the charging gear P1, the aforementioned series of problems are likely to occur.
[0137] Therefore, in the implementation manner of the present disclosure, the power supply capacity information determined based on the power supply parameters during the power supply process of the terminal device is used to determine the charging gears that the terminal device can currently provide, and these charging gears are the candidate charging gears described in the present disclosure.
[0138] For example, in one example, at a certain moment when the terminal device is supplying high-power power to the OTG device, based on multiple power supply parameters at that moment, it is determined that the maximum power supply capacity of the terminal device can only provide 15W power supply at charging gear P3, thereby determining that the current power supply capacity information can only include charging gear P3 and charging gear P4, and charging gear P3 and charging gear P4 are candidate charging gears included in the current power supply capacity information.
[0139] S330: Send power supply capability information to the OTG device, and receive charging application information returned by the OTG device based on the power supply capability information.
[0140] In the disclosed embodiment, after the terminal device determines the current power supply capability information through the aforementioned method process, it is necessary to send the power supply capability information to the OTG device end, so as to inform the OTG device of the power supply capability that can be currently provided for the OTG device to select.
[0141] For example, in some implementations, the terminal device can encrypt the current power supply capability information and send it to the OTG device through the protocol communication terminal CC of the power management circuit. After receiving the power supply capability information, the OTG device decrypts and parses the power supply capability information to obtain one or more candidate charging gears included in the power supply capability information.
[0142] For example, in one example, the OTG device parses the power supply capability information sent by the terminal device and obtains candidate charging gears including charging gear P3 and charging unit P4. Therefore, the OTG device needs to select the charging gear with the maximum power it supports from the candidate charging gears, and then generate charging application information according to the voltage / current information corresponding to the charging gear, and return the charging application information to the terminal device.
[0143] S340: Adjust output power parameters for powering the OTG device according to the charging application information.
[0144] In the disclosed embodiment, after receiving the charging application information returned by the OTG device, the terminal device can obtain the voltage / current information corresponding to the charging gear requested by the OTG device by parsing the charging application information, and then adjust the output power parameters for powering the OTG device according to the voltage / current information.
[0145] Combination Figure 2As shown, after receiving the charging application information returned by the OTG device, the terminal device configures the voltage conversion circuit based on the charging application information, so that the voltage conversion circuit outputs voltage and current of corresponding magnitude, thereby supplying power to the OTG device.
[0146] It can be understood that in the embodiments of the present disclosure, as the terminal device supplies high-power power to the OTG device, the power supply capacity of the terminal device continues to decrease. Therefore, through the aforementioned method process of the present disclosure, the power supply capacity of the terminal device can be dynamically evaluated and quantified, and the power supply process of the OTG device can be dynamically adjusted, thereby ensuring the stability and safety of the power supply process while supplying high-power power to the OTG device.
[0147] From the above, it can be seen that in the embodiments of the present disclosure, while achieving high-power power supply for terminal devices and OTG devices, the power supply capacity of the terminal device is dynamically adjusted based on the power supply parameters during the power supply process, thereby reducing the risks of overheating and over-discharge of the terminal device, ensuring power supply stability, and increasing the service life of the battery and the terminal device.
[0148] In the following implementation of the present disclosure, the power supply parameters of the terminal device include the above-mentioned charging temperature parameters, battery remaining power parameters, screen brightness parameters and temperature control system parameters. However, those skilled in the art should understand that the power supply parameters are not limited to these, and can also be any other parameters related to the power supply process of the terminal device, which will not be described in detail in the present disclosure.
[0149] In some implementations, each power supply parameter may be divided into a plurality of gears in advance, and a corresponding gear value may be assigned to each gear, that is, a corresponding relationship between each power supply parameter and the gear value may be configured.
[0150] For example, in an example, the charging temperature takes the battery temperature as an example, and the corresponding relationship between the charging temperature parameter and the gear value can be shown in the following table 1:
[0151] Table 1
[0152] Charging temperature parameters Gear value <30℃ 0 [30℃,45℃) 1 ≥45℃ 2
[0153] For example, in one example, the corresponding relationship between the battery remaining power parameter and the gear value can be shown in the following Table 2:
[0154] Table 2
[0155] Battery remaining power parameters Gear value ≥60% 0 [30%,60%) 1 <30% 2
[0156] For example, in an example, the corresponding relationship between the screen brightness parameter and the gear value can be shown in the following Table 3:
[0157] Table 3
[0158] Screen brightness parameters Gear value <500nit 0 [500nit, 800nit) 1 ≥800nit 2
[0159] For example, in an example, the corresponding relationship between the temperature control system parameters and the gear value can be shown in the following Table 4:
[0160] Table 4
[0161] Temperature control system parameters Gear value <thermal 0 0 [thermal 0, thermal 1) 1 ≥ thermal 1 2
[0162] It can be seen from the above examples that the larger the gear value of each power supply parameter is, the worse the current power supply state of the terminal device is, and thus the power supply capacity that can be provided should also be lower.
[0163] In some implementations, the power supply power of the terminal device corresponding to each gear value can be pre-configured, that is, the corresponding relationship between the gear value and the power supply power can be configured. For example, in an example, the corresponding relationship between the gear value and the power supply power can be shown in the following Table 5:
[0164] Table 5
[0165]
[0166]
[0167] In the example of the present disclosure, the larger the gear value, the smaller the corresponding power supply. However, those skilled in the art will appreciate that in other example implementations, the smaller the gear value, the smaller the corresponding power supply. It is only necessary to ensure that the gear value and the power supply have a certain corresponding relationship, and the present disclosure does not limit this.
[0168] Combine the following Figure 4 The implementation method describes the process of determining the current power supply capability information of the terminal device.
[0169] like Figure 4 As shown, in some implementations, the power supply control method of the present disclosure example, the process of determining the current power supply capability information of the terminal device includes:
[0170] S410. During the process of supplying power to the OTG device, detect each power supply parameter of the terminal device.
[0171] In the disclosed embodiment, after the terminal device establishes a high-power power supply connection with the OTG device, the terminal device can continuously monitor the parameter value of each power supply parameter during the power supply process. For example, in the above example, during the power supply process, the terminal device can continuously monitor the charging temperature parameter, the battery remaining power parameter, the screen brightness parameter, and the temperature control system parameter.
[0172] S420: Based on the pre-configured correspondence between power supply parameters and gear values, in response to a change in the gear value of any power supply parameter, obtain the gear value currently corresponding to each power supply parameter.
[0173] It is understandable that during the continuous power supply process of the terminal device, each power supply parameter will change as the discharge proceeds. Combined with the corresponding relationships shown in Tables 1 to 4 above, when the parameter value of a power supply parameter changes significantly, the corresponding gear value may change.
[0174] For example, taking the charging temperature parameters shown in Table 1 as an example, as the OTG power supply is carried out, the charging temperature parameters of the terminal device rise from the original 27°C to 31°C, and the gear value corresponding to the charging temperature parameter changes from 0 to 1, so that it can be determined that the gear value of the charging temperature parameter has changed. For other power supply parameters, the principle is the same, and this disclosure will not repeat them.
[0175] In the embodiment of the present disclosure, the power supply parameters may include multiple ones. As long as the gear value of any power supply parameter changes, the gear values currently corresponding to all power supply parameters can be obtained.
[0176] For example, in an example scenario, it is detected that the gear value corresponding to the charging temperature parameter changes from 0 to 1, and at this time, the gear values corresponding to all power supply parameters can be obtained, for example, as shown in Table 6 below:
[0177] Table 6
[0178] Power supply parameters Gear value Charging temperature parameters 1 Battery remaining power parameters 0 Screen brightness parameters 2 Temperature control system parameters 1
[0179] S430: Determine a target gear value from the gear values currently corresponding to each power supply parameter.
[0180] Based on the foregoing, it can be understood that the larger the gear value, the worse the current power supply status of the terminal device. Therefore, in the embodiment of the present disclosure, after obtaining the gear value of each power supply parameter, the maximum gear value can be determined from the gear value of each power supply parameter as the target gear value, and the target gear value can reflect the current power supply status of the terminal device.
[0181] In some implementations, the target gear value can be determined based on a voting mechanism. Specifically, the callback function of the voting device can be pre-configured and the corresponding voting item can be registered. The voting item is each of the aforementioned power supply parameters. When the gear value of any power supply parameter changes, the callback function can be used to retrieve the gear value corresponding to each power supply parameter, and then each power supply parameter can send the corresponding gear value to the voting device. The voting device compares all the gear values and selects the gear value with the minimum power supply as the target gear value, that is, in the above example, the maximum gear value is determined as the target gear value.
[0182] S440: Determine a target power supply power corresponding to the target gear value based on a pre-configured correspondence between the gear value and the power supply power.
[0183] In the disclosed embodiment, after the target gear value is determined, the target power supply power corresponding to the target gear value can be determined based on the correspondence between the gear value and the power supply power shown in Table 5 above.
[0184] For example, in the example in Table 6, according to the gear value of each power supply parameter shown in Table 6, the maximum target gear value can be determined to be 2, and then according to the corresponding relationship shown in Table 5, it can be determined that the power supply power corresponding to the target gear value 2 is 10W, which is the target power supply power of 10W.
[0185] S450: Determine power supply capability information based on the target power supply power.
[0186] It can be understood that the target power supply power determined above represents the maximum output power that the terminal device can currently provide to the OTG device. Therefore, the maximum power of the charging gear provided by the terminal device to the OTG device should not exceed the target power supply power. Figure 5 This process is described.
[0187] like Figure 5 As shown, in some embodiments, the power supply control method of the present disclosure example, the process of determining the power supply capability information based on the target power supply power includes:
[0188] S451. Determine a candidate charging gear whose power is less than or equal to the target power supply power from a plurality of charging gears supported by the terminal device.
[0189] S452: Generate power supply capability information according to the candidate charging gears.
[0190] It is understandable that the terminal device supports multiple charging gears, and the maximum charging power corresponding to the charging gears is different. After determining the target power supply power through the aforementioned process, the target power supply power represents the maximum output power that the terminal device can currently provide for the OTG device. Therefore, the maximum power of the charging gear provided by the terminal device to the OTG device should not exceed the target power supply power.
[0191] For example, taking the previous example, the charging gears supported by the terminal device include:
[0192] Charging gear P1, output voltage 11V, output current 3A, maximum output power 33W;
[0193] Charging gear P2, output voltage 11V, output current 2A, maximum output power 22W;
[0194] Charging gear P3, output voltage 10V, output current 1.5A, maximum output power 15W;
[0195] Charging gear P4, output voltage 5V, output current 2A, maximum output power 10W.
[0196] After the target power supply power is determined to be 10 W through the aforementioned process, it is determined that only the maximum output power of the charging gear P4 does not exceed the target power supply power of 10 W, and thus it can be determined that the candidate charging gears only include the charging gear P4.
[0197] After determining the candidate charging gear, the corresponding power supply capability information can be generated according to the candidate charging gear. The power supply capability information is the Source_Capabilities information. The power supply capability information records all the candidate charging gears that the terminal device can currently provide. For example, in the previous example, the power supply capability information only includes the charging gear P4.
[0198] like Figure 6 As shown, in some embodiments, the power supply control method of the present disclosure example, the process of sending power supply capability information to the OTG device and receiving charging application information includes:
[0199] S610: Send power supply capability information to the OTG device, so that the OTG device determines a target charging gear from at least one candidate charging gear, and generates charging application information based on the target charging gear.
[0200] S620: Receive charging application information sent by the OTG device.
[0201] In the embodiment of the present disclosure, after the terminal device determines the current power supply capability information through the aforementioned method process, the power supply capability information can be sent to the OTG device. The OTG device parses the power supply capability information to obtain one or more candidate charging gears currently provided by the terminal device, so that the OTG device can select the charging gear with the maximum power supported by itself from the candidate charging gears, and then generate charging application information according to the voltage / current information corresponding to the charging gear, and return the charging application information to the terminal device.
[0202] In some embodiments, the terminal device sends soft reset (soft_reset) information to the OTG device while sending power supply capability information to the OTG device, so that when the OTG device receives the soft reset information, it can re-determine the charging gear according to the aforementioned method process and return the corresponding charging application information to the terminal device.
[0203] From the above, it can be seen that in the embodiments of the present disclosure, while achieving high-power power supply for terminal devices and OTG devices, the power supply capacity of the terminal device is dynamically adjusted based on the power supply parameters during the power supply process, thereby reducing the risks of overheating and over-discharge of the terminal device, ensuring power supply stability, and increasing the service life of the battery and the terminal device.
[0204] In some embodiments, the present disclosure provides a power supply control device, which can be applied to the aforementioned terminal device.
[0205] like Figure 7 As shown, in some embodiments, the power supply control device of the example of the present disclosure includes:
[0206] The power supply module 10 is configured to establish a power supply connection for the terminal device to supply power to the OTG device when an OTG device is detected to be connected;
[0207] The capability evaluation module 20 is configured to obtain one or more power supply parameters included in the terminal device during the process of powering the OTG device, and determine the current power supply capability information of the terminal device based on the power supply parameters; the power supply parameters represent parameters related to the power supply capability of the terminal device;
[0208] The information transceiver module 30 is configured to send the power supply capability information to the OTG device, and receive the charging application information returned by the OTG device based on the power supply capability information;
[0209] The power adjustment module 40 is configured to adjust output power parameters for supplying power to the OTG device according to the charging application information.
[0210] In some embodiments, the power supply module 10 is configured as follows:
[0211] When it is detected that an OTG device is connected, the charge pump circuit of the terminal device is used to power the OTG device.
[0212] In some embodiments, the capability assessment module 20 is configured to:
[0213] In the process of supplying power to the OTG device, detecting each power supply parameter of the terminal device;
[0214] Based on the pre-configured correspondence between the power supply parameters and the gear values, in response to a change in the gear value of any power supply parameter, the gear value currently corresponding to each power supply parameter is obtained.
[0215] In some embodiments, the capability assessment module 20 is configured to:
[0216] Determine a target gear value from the gear value currently corresponding to each power supply parameter, wherein the target gear value is the gear value corresponding to the minimum power supply power;
[0217] Determine the target power supply power corresponding to the target gear value based on the pre-configured correspondence between the gear value and the power supply power;
[0218] The power supply capability information is determined based on the target power supply power.
[0219] In some embodiments, the capability assessment module 20 is configured to:
[0220] The callback function is used to obtain the gear value currently corresponding to each power supply parameter, and the gear value is loaded into the voting device;
[0221] According to all the gear values in the voting device, the target gear value corresponding to the minimum power supply power is determined.
[0222] In some embodiments, the capability assessment module 20 is configured to:
[0223] Determine, from a plurality of charging gears supported by the terminal device, a candidate charging gear whose power is less than or equal to the target power supply power;
[0224] The power supply capability information is generated according to the candidate charging gear.
[0225] In some embodiments, the power supply capability information includes at least one candidate charging gear, and the information transceiver module 30 is configured to:
[0226] Sending the power supply capability information to the OTG device, so that the OTG device determines a target charging gear from the at least one candidate charging gear, and generates the charging application information based on the target charging gear;
[0227] Receive the charging application information sent by the OTG device.
[0228] In some embodiments, the power supply parameter includes at least one of the following:
[0229] Temperature control system parameters, charging temperature parameters, battery remaining power parameters and screen brightness parameters.
[0230] In some embodiments, the present disclosure provides a terminal device, which includes the power supply circuit of any of the aforementioned embodiments.
[0231] In some embodiments, the terminal device of the present disclosure may be any type of device with an OTG function, such as a smart phone, a tablet computer, a laptop computer, a wearable device, etc., and the present disclosure is not limited to this.
[0232] In some embodiments, the present disclosure provides a storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the power supply method of any of the aforementioned embodiments.
[0233] Figure 8The terminal device structure in some embodiments of the present disclosure is shown in FIG. Figure 8 The terminal devices of some embodiments of the present disclosure are described.
[0234] Reference Figure 8 The terminal device 1800 may include one or more of the following components: a processing component 1802 , a memory 1804 , a power component 1806 , a multimedia component 1808 , an audio component 1810 , an input / output (I / O) interface 1812 , a sensor component 1816 , and a communication component 1818 .
[0235] The processing component 1802 generally controls the overall operation of the terminal device 1800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1802 may include one or more processors 1820 to execute instructions. In addition, the processing component 1802 may include one or more modules to facilitate the interaction between the processing component 1802 and other components. For example, the processing component 1802 may include a multimedia module to facilitate the interaction between the multimedia component 1808 and the processing component 1802. For another example, the processing component 1802 can read executable instructions from a memory to implement terminal device related functions.
[0236] The memory 1804 is configured to store various types of data to support operations on the terminal device 1800. Examples of such data include instructions for any application or method operating on the terminal device 1800, contact data, phone book data, messages, pictures, videos, etc. The memory 1804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0237] The power supply component 1806 provides power to various components of the terminal device 1800. The power supply component 1806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the terminal device 1800.
[0238] The multimedia component 1808 includes a display screen that provides an output interface between the terminal device 1800 and the user. In some embodiments, the multimedia component 1808 includes a front camera and / or a rear camera. When the terminal device 1800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.
[0239] The audio component 1810 is configured to output and / or input audio signals. For example, the audio component 1810 includes a microphone (MIC), and when the terminal device 1800 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1804 or sent via the communication component 1818. In some embodiments, the audio component 1810 also includes a speaker for outputting audio signals.
[0240] I / O interface 1812 provides an interface between processing component 1802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0241] The sensor assembly 1816 includes one or more sensors for providing various aspects of status assessment for the terminal device 1800. For example, the sensor assembly 1816 can detect the open / closed state of the terminal device 1800, the relative positioning of the components, such as the display and keypad of the terminal device 1800, and the sensor assembly 1816 can also detect the position change of the terminal device 1800 or a component of the terminal device 1800, the presence or absence of contact between the user and the terminal device 1800, the orientation or acceleration / deceleration of the terminal device 1800, and the temperature change of the terminal device 1800. The sensor assembly 1816 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1816 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1816 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0242] The communication component 1818 is configured to facilitate wired or wireless communication between the terminal device 1800 and other devices. The terminal device 1800 can access a wireless network based on a communication standard, such as Wi-Fi, 2G, 3G, 4G, 5G or 6G, or a combination thereof. In an exemplary embodiment, the communication component 1818 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1818 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0243] In an exemplary embodiment, the terminal device 1800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.
[0244] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the embodiments. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. The obvious changes or modifications derived therefrom are still within the scope of protection of the present invention.
Claims
1. A power supply control method, characterized in that: Applied to a terminal device, the method comprises: When an OTG device is detected to be connected, a power supply connection is established for the terminal device to supply power to the OTG device; In the process of powering the OTG device, one or more power supply parameters included in the terminal device are obtained, and current power supply capability information of the terminal device is determined based on the power supply parameters; the power supply parameters represent parameters related to the power supply capability of the terminal device; Sending the power supply capability information to the OTG device, and receiving charging application information returned by the OTG device based on the power supply capability information; The output power parameters for powering the OTG device are adjusted according to the charging application information.
2. The method according to claim 1, characterized in that When the OTG device is detected to be connected, establishing a power supply connection for the terminal device to supply power to the OTG device includes: When it is detected that an OTG device is connected, the charge pump circuit of the terminal device is used to power the OTG device.
3. The method according to claim 1, characterized in that In the process of powering the OTG device, obtaining one or more power supply parameters included in the terminal device includes: In the process of supplying power to the OTG device, detecting each power supply parameter of the terminal device; Based on the pre-configured correspondence between the power supply parameters and the gear values, in response to a change in the gear value of any power supply parameter, the gear value currently corresponding to each power supply parameter is obtained.
4. The method according to claim 3, characterized in that The determining the current power supply capability information of the terminal device based on the power supply parameter includes: Determine a target gear value from the gear value currently corresponding to each power supply parameter, wherein the target gear value is the gear value corresponding to the minimum power supply power; Determine the target power supply power corresponding to the target gear value based on the pre-configured correspondence between the gear value and the power supply power; The power supply capability information is determined based on the target power supply power.
5. The method according to claim 4, characterized in that The step of determining the target gear value from the gear value currently corresponding to each power supply parameter includes: The callback function is used to obtain the gear value currently corresponding to each power supply parameter, and the gear value is loaded into the voting device; According to all the gear values in the voting device, the target gear value corresponding to the minimum power supply power is determined.
6. The method according to claim 4, characterized in that The determining the power supply capability information based on the target power supply power includes: Determine, from a plurality of charging gears supported by the terminal device, a candidate charging gear whose power is less than or equal to the target power supply power; The power supply capability information is generated according to the candidate charging gear.
7. The method according to claim 1, characterized in that The power supply capability information includes at least one candidate charging gear, and the sending of the power supply capability information to the OTG device and receiving charging application information returned by the OTG device based on the power supply capability information includes: Sending the power supply capability information to the OTG device, so that the OTG device determines a target charging gear from the at least one candidate charging gear, and generates the charging application information based on the target charging gear; Receive the charging application information sent by the OTG device.
8. The method according to any one of claims 1 to 7, characterized in that: The power supply parameters include at least one of the following: Temperature control system parameters, charging temperature parameters, battery remaining power parameters and screen brightness parameters.
9. A power supply control device, characterized in that: Applied to a terminal device, the device comprises: A power supply module, configured to establish a power supply connection for the terminal device to supply power to the OTG device when an OTG device is detected to be connected; A capability evaluation module is configured to obtain one or more power supply parameters included in the terminal device during the process of powering the OTG device, and determine the current power supply capability information of the terminal device based on the power supply parameters; the power supply parameters represent parameters related to the power supply capability of the terminal device; An information transceiver module is configured to send the power supply capability information to the OTG device, and receive charging application information returned by the OTG device based on the power supply capability information; The power adjustment module is configured to adjust output power parameters for supplying power to the OTG device according to the charging application information.
10. A terminal device, characterized in that: include: processor; as well as A memory storing computer instructions, wherein the computer instructions are used to enable a processor to execute the method according to any one of claims 1 to 8.
11. A storage medium, characterized in that: Computer instructions are stored, and the computer instructions are used to make a computer execute the method according to any one of claims 1 to 8.