Electronic devices, methods, apparatuses, and storage media

CN123019143APending Publication Date: 2026-10-30BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510526967.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-24
Publication Date
2026-10-30

AI Technical Summary

Technical Problem

[0002]随着技术的发展,手机作为终端载体为用户提供了越来越多样的功能体验,人们对于手机的依赖程度越来越高,在日常的生活和工作中,人们可以将手机作为电源向其他设备进行充电,在该场景下,手机的剩余电量需要大于一定的数值才能作为供电设备向其他设备进行供电,用户体验欠佳

Benefits of technology

[0012]本公开提出的电子设备、方法和装置,响应于待充电设备与移动终端的供电接口连接,获取第一反充电压,响应于第一反充电压大于或者等于预设的切换参考电压输出第二反充电压,并切换移动终端进入大功率反充模式,以对待充电设备进行大功率电量反充。本公开中,在第一反充电压大于或者等于切换参考电压时输出第二反充电压,以对待充电设备进行大功率电量反充,降低了电子设备的剩余电量对于电子设备作为供电设备进行电量反充的影响程度,通过第一反充电压对应的小功率反充模式以及第二反充电压对应的大功率反充模式对待充电设备进行电量反充,提高了移动终端对于待充电设备的电量反充效率,优化了用户的电量反充体验。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123019143A_ABST
    Figure CN123019143A_ABST
Patent Text Reader

Abstract

The present disclosure provides an electronic device, a method, an apparatus and a storage medium, wherein the system comprises a power manager, a charge pump and a power supply interface, one end of the power supply interface is connected with the power manager and the charge pump respectively, and the other end of the power supply interface is connected with a device to be charged, wherein the power manager is configured to output a first reverse charging voltage in response to the device to be charged being connected with the power supply interface; and the charge pump is configured to output a second reverse charging voltage in response to identifying that the first reverse charging voltage is greater than or equal to a preset switching reference voltage, so as to perform high-power electric quantity reverse charging on the device to be charged. The influence of the residual electric quantity of the electronic device on the electric quantity reverse charging of the electronic device as a power supply device is reduced, the electric quantity reverse charging efficiency of the mobile terminal on the device to be charged is improved, and the electric quantity reverse charging experience of the user is optimized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of data processing technology, and in particular to an electronic device, method, apparatus and storage medium. Background Technology

[0002] With the development of technology, mobile phones, as terminal carriers, provide users with increasingly diverse functional experiences, and people are becoming more and more dependent on mobile phones. In daily life and work, people can use mobile phones as a power source to charge other devices. In this scenario, the remaining battery power of the mobile phone needs to be greater than a certain value before it can be used as a power supply device to supply power to other devices, resulting in a poor user experience. Summary of the Invention

[0003] This disclosure aims to at least partially address one of the technical problems in the related art.

[0004] Therefore, the first aspect of this disclosure proposes an electronic device.

[0005] The second aspect of this disclosure proposes a charging method.

[0006] The third aspect of this disclosure provides a charging device.

[0007] The fourth aspect of this disclosure provides for a computer-readable storage medium.

[0008] The first aspect of this disclosure provides an electronic device, including: a power manager, a charge pump, and a power supply interface. One end of the power supply interface is connected to both the power manager and the charge pump, and the other end of the power supply interface is connected to a device to be charged. The power manager is configured to output a first reverse charging voltage in response to the device to be charged being connected to the power supply interface. The charge pump is configured to output a second reverse charging voltage in response to detecting that the first reverse charging voltage is greater than or equal to a preset switching reference voltage, so as to perform high-power reverse charging on the device to be charged.

[0009] A second aspect of this disclosure provides a charging method, comprising: in response to the connection of the power supply interface between the device to be charged and the mobile terminal, acquiring a first reverse charging voltage output by the mobile terminal; in response to recognizing that the first reverse charging voltage is greater than or equal to a preset switching reference voltage, outputting a second reverse charging voltage, and switching the mobile terminal into a high-power reverse charging mode to perform high-power reverse charging on the device to be charged.

[0010] A third aspect of this disclosure provides a charging device, comprising: an acquisition module, configured to acquire a first reverse charging voltage output by the mobile terminal in response to a connection between the power supply interface of the device to be charged and the mobile terminal; and a reverse charging module, configured to output a second reverse charging voltage in response to detecting that the first reverse charging voltage is greater than or equal to a preset switching reference voltage, and switch the mobile terminal into a high-power reverse charging mode to perform high-power reverse charging on the device to be charged.

[0011] The fourth aspect of this disclosure provides a computer-readable storage medium that, when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, enables the electronic device to perform the charging method as described in the second aspect above.

[0012] The electronic device, method, and apparatus disclosed herein, in response to the connection of the power supply interface between the device to be charged and the mobile terminal, acquire a first reverse charging voltage, output a second reverse charging voltage in response to the first reverse charging voltage being greater than or equal to a preset switching reference voltage, and switch the mobile terminal into a high-power reverse charging mode to perform high-power reverse charging of the device to be charged. In this disclosure, outputting the second reverse charging voltage when the first reverse charging voltage is greater than or equal to the switching reference voltage to perform high-power reverse charging of the device to be charged reduces the impact of the remaining battery power of the electronic device on the reverse charging of the electronic device as a power supply device. By using a low-power reverse charging mode corresponding to the first reverse charging voltage and a high-power reverse charging mode corresponding to the second reverse charging voltage to perform reverse charging of the device to be charged, the efficiency of reverse charging of the device to be charged by the mobile terminal is improved, and the user's reverse charging experience is optimized.

[0013] It should be understood that the description herein is not intended to identify key or essential features of the embodiments thereof, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description

[0014] The above and / or additional aspects and advantages of this disclosure will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, in which:

[0015] Figure 1 This is a schematic diagram of an electronic device according to an embodiment of the present disclosure;

[0016] Figure 2 This is a schematic diagram of an electronic device according to another embodiment of the present disclosure;

[0017] Figure 3 This is a schematic flowchart of a charging method according to an embodiment of the present disclosure;

[0018] Figure 4 This is a schematic flowchart of a charging method according to another embodiment of the present disclosure;

[0019] Figure 5 This is a schematic flowchart of a charging method according to another embodiment of the present disclosure;

[0020] Figure 6 This is a schematic diagram of the structure of a charging device according to an embodiment of the present disclosure. Detailed Implementation

[0021] Embodiments of this disclosure are described in detail below. Examples of these embodiments are illustrated in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this disclosure, and should not be construed as limiting this disclosure.

[0022] An electronic device, method, apparatus, and storage medium according to embodiments of this disclosure are described below with reference to the accompanying drawings.

[0023] Figure 1 This is a schematic diagram of an electronic device according to an embodiment of the present disclosure, as shown below. Figure 1 As shown, the electronic device 100 includes a power manager 11, a charge pump 12, and a power supply interface 13. One end of the power supply interface 13 is connected to both the power manager 11 and the charge pump 12, and the other end of the power supply interface 13 is connected to the device to be charged.

[0024] Power manager 11 is configured to output a first reverse charging voltage in response to the device to be charged being connected to power interface 13;

[0025] The charge pump 12 is used to output a second reverse charging voltage in response to the detection that the first reverse charging voltage is greater than or equal to a preset switching reference voltage, so as to perform high-power reverse charging on the device to be charged.

[0026] In this embodiment of the disclosure, the device to be charged can be connected to... Figure 1 One end of the power supply interface 13 shown is connected to the electronic device 100 to reverse charge the device to be charged via the electronic device 100.

[0027] like Figure 1 As shown, the electronic device 100 includes a power manager 11 and a charge pump 12 (Charging Protocol, CP). The power manager 11 and charge pump 12 can be connected to the other end of the power supply interface 13, respectively. In this scenario, it can be used... Figure 1 The power manager 11 shown can reverse charge the device to be charged, or it can be used via... Figure 1 The charge pump shown reverse-charges the device to be charged.

[0028] Optionally, when the device to be charged is connected to the power supply interface 13, the power manager 11 can reverse charge the device to be charged, and determine the voltage of the power manager 11 when reversing the charge of the device to be charged in this scenario as the first reversing charging voltage.

[0029] In this embodiment of the disclosure, the first reverse charging voltage output by the power manager 11 may not be able to provide high-power reverse charging for the device to be charged. In this scenario, the charge pump 12 can detect and identify the first reverse charging voltage output by the power manager 11. When the first reverse charging voltage is detected to be greater than or equal to the preset switching reference voltage, it can be determined that the current electronic device 100 can reverse charge the device to be charged based on the high-power reverse charging mode.

[0030] The switching reference voltage can be determined based on relevant simulation results or other methods; no specific limitations are made here.

[0031] This can be understood as follows: when the reverse charging voltage provided by the electronic device 100 to the device to be charged is greater than or equal to the switching reference voltage, it can be determined that the current electronic device 100 can achieve high-power reverse charging of the device to be charged.

[0032] Optionally, high-power reverse charging of the device to be charged can be achieved by the charge pump 12. The reverse charging voltage of the charge pump 12 in the high-power reverse charging mode can be obtained as the second reverse charging voltage. In this scenario, the electronic device 100 can achieve high-power reverse charging of the device to be charged based on the second reverse charging voltage.

[0033] It should be noted that the power manager proposed in this embodiment can be obtained based on the battery voltage power management integrated circuit (PMIC) in related technologies, or it can be obtained based on other components that can realize the functions proposed in this disclosure, and no specific limitation is made here.

[0034] The electronic device disclosed herein includes a power manager, a charge pump, and a power supply interface. One end of the power supply interface is connected to both the power manager and the charge pump, and the other end is connected to the device to be charged. The power manager outputs a first reverse charging voltage in response to the device being charged being connected to the power supply interface. The charge pump outputs a second reverse charging voltage in response to detecting that the first reverse charging voltage is greater than or equal to a preset switching reference voltage. In this disclosure, when the first reverse charging voltage output by the power manager is greater than or equal to the preset switching reference voltage, the second reverse charging voltage output by the charge pump enables high-power reverse charging of the device to be charged. This improves the timeliness of the high-power reverse charging mode switching of the electronic device and increases the charging efficiency of the electronic device in reversing the charge of the device to be charged. Compared to related technologies where the remaining battery power of the mobile terminal must reach a set value before reversing the charge of the device to be charged, this reduces the impact of the remaining battery power on the reversing of the electronic device. By switching between low-power and high-power reverse charging, the safety of the electronic device reversing the charge of the system to be charged is improved, and the user's reversing charging experience is optimized.

[0035] In the above embodiments, regarding electronic devices, it is also possible to combine Figure 2 understand, Figure 2 This is a schematic diagram of an electronic device according to another embodiment of the present disclosure, such as... Figure 2 As shown, the electronic device 200 includes a power manager 21, a charge pump 22, a power supply interface 23, a first overvoltage protection component 24, a second overvoltage protection component 25, a battery 26, and a power supply component 27, wherein...

[0036] Optionally, the second reverse charging voltage is determined based on the first reverse charging voltage and a preset high-power reverse charging voltage index.

[0037] In this embodiment of the disclosure, the high-power reverse charging mode has a preset high-power reverse charging voltage index. The high-power reverse charging voltage index and the first reverse charging voltage can be processed by a preset algorithm, and the second reverse charging voltage output by the charge pump 12 can be obtained according to the result of the algorithm processing.

[0038] As an example, if the first reverse charging voltage is set to 4.1V and the high-power reverse charging voltage exponent is 2, then in this example, the first reverse charging voltage and the high-power reverse charging voltage exponent can be multiplied together, and the resulting product 8.2V can be determined as the second reverse charging voltage output by the charge pump.

[0039] Optionally, the power supply interface 23 is used to connect the electronic device 200 to a corresponding external device, wherein, in response to the external device being a device to be charged, the electronic device reverse-charges the device to be charged.

[0040] In this embodiment of the disclosure, the power supply interface 23 can be understood as the connection interface between the electronic device 200 and the external device. That is, the external device can connect to the electronic device 200 through the connection with the power supply interface 23.

[0041] In this scenario, when the external device connected to the power supply interface 23 is a device to be charged, it can be determined that the electronic device 200 is the power supply end of the device to be charged. In this scenario, the electronic device 200 can be used to reverse charge the device to be charged.

[0042] Optionally, in response to an external device being a power supply device, the power supply device charges the electronic device.

[0043] In this embodiment of the disclosure, the external device connected to the power supply interface 23 may be a power supply device for the electronic device 200. In this scenario, the power supply device can charge the electronic device 200 through the connection relationship established with the power supply interface 23.

[0044] Optionally, one end of the power supply interface 23 is connected to the first end of the first overvoltage protection component 24, the second end of the first overvoltage protection component 24 is connected to the first end of the second overvoltage protection component 25 and the power line voltage port of the charge pump 22, and the third end of the first overvoltage protection component 24 is connected to the first gate control signal port of the charge pump 22.

[0045] Optionally, the second end of the second overvoltage protection component 25 is connected to the signal input port of the power manager 21, and the third end of the second overvoltage protection component 25 is connected to the second gate control signal port in the power manager 21.

[0046] Optionally, the switching node voltage regulation port in the power manager 21 is connected to the power supply component 27, and the voltage rail port in the power manager 21 and the output voltage port of the charge pump 22 are respectively connected to the battery 26.

[0047] like Figure 2 As shown, in Figure 2 In the scenario shown, the PMIC is the power manager 21 in the reverse charging device system 200, such as... Figure 2 As shown, one end of the power supply port 23 is connected to the first end of the first overvoltage protection component 24 (OVP), the second end of the first overvoltage protection component 24 is connected to the first end of the second overvoltage protection component 25 (OVP), and the second end of the second overvoltage protection component 25 is connected to... Figure 2The signal input port (USB Input, UBSIN) of the PMIC shown is connected, and the third terminal of the second overvoltage protection component 25 is connected to the second gate control signal port (Gate Control Signal, GATE) of the PMIC. Based on this connection, the PMIC, which acts as the power manager 21, can connect to the power supply interface 23 to reverse charge the device to be charged connected to the power supply interface 23.

[0048] It should be noted that the power supply interface 23 proposed in this embodiment can be a TYPE-C interface or other types of Universal Serial Bus (USB) interface, and no specific limitation is made here.

[0049] In this embodiment of the disclosure, the electronic device 200 also includes Figure 2 The charge pump (CP) 22 shown is in Figure 2 In the scenario shown, the third terminal of the first overvoltage protection component 24 is connected to the first gate control signal port (GATE) of the charge pump 22, and the second terminal of the first overvoltage protection component 24 is connected to the voltage line voltage port (VoltageBus, VBUS) of the charge pump 22. Based on this connection, the charge pump 22 can be connected to the power supply interface 23, thereby enabling reverse charging of the device to be charged connected to the power supply interface 23.

[0050] like Figure 2 As shown, the electronic device 200 also includes Figure 2 The power supply component 27 and the battery 26 shown are in Figure 2 In the scenario shown, the voltage regulation port (VSW) of the PMIC's switching node is connected to the power supply component 27 to enable the PMIC to supply power to the components connected to the power supply component 27.

[0051] The power supply component 27 can be a high-voltage power rail (VPH) or other types of power supply components, which are not specifically limited here.

[0052] Furthermore, the PMIC's voltage rail port (Voltage Battery, VBAT) and the CP's output voltage port (VOUT) are each connected to... Figure 2 The battery connection shown enables the battery to supply power to the PMIC and CP.

[0053] In this embodiment of the present disclosure, when the device to be charged is connected to the power supply interface 23, the PMIC can begin reverse charging of the device to be charged. The reverse charging voltage output by the PMIC reaches... Figure 2 When the voltage is shown at 5V, the CP enables the inverted 1:2 output. Figure 2 The reverse charging voltage of 2*Vbat shown means that when the PMIC recognizes the reverse charging voltage of 2*Vbat output by the CP, it can enter the protection state. In this scenario, the electronic device 200 can perform high-power reverse charging of the device to be charged through the CP.

[0054] The electronic device disclosed herein performs high-power reverse charging of the device to be charged via a second reverse charging voltage output by a charge pump when the first reverse charging voltage output by the battery manager is greater than or equal to a preset switching reference voltage. This improves the timeliness of the high-power reverse charging mode switching of the electronic device and enhances the charging efficiency of the electronic device in reversing the charge of the device to be charged. Compared with related technologies, where the remaining power of the mobile terminal must reach a set value before reversing the charge of the device to be charged, this reduces the impact of the remaining power on the reversing of the electronic device. By switching between low-power and high-power reverse charging and by setting up a first overvoltage protection component and a second overvoltage protection component, the safety of the electronic device reversing the charge of the system to be charged is improved, and the user's reversing charging experience is optimized.

[0055] This disclosure also proposes a charging method that can be combined with Figure 3 , Figure 3 This is a schematic flowchart of a charging method according to an embodiment of the present disclosure, as shown below. Figure 3 As shown, the method includes:

[0056] S301, in response to the connection of the power supply interface between the device to be charged and the mobile terminal, obtains the first reverse charging voltage output by the mobile terminal.

[0057] In this embodiment of the disclosure, when the device to be charged is connected to the power supply interface of the mobile terminal, it can be determined that the mobile terminal needs to reverse charge the device to be charged. The mobile terminal can be a mobile phone or other types of mobile terminals, and no specific limitation is made here.

[0058] Optionally, the power manager configured in the mobile terminal can reverse charge the device to be charged, and the voltage when the mobile terminal reverse charges the device in this scenario can be determined as the first reverse charging voltage output by the mobile terminal.

[0059] The power manager can be a PMIC or other types of power managers; no specific limitation is made here.

[0060] It should be noted that when an external device is connected to the power supply interface of a mobile terminal, the mobile terminal can identify and determine whether the connected external device is a device that needs to be reverse-charged.

[0061] Optionally, the remaining battery power of the external device and the mobile terminal can be compared. If the remaining battery power of the external device connected to the power supply interface is higher than that of the mobile terminal, it can be determined that the external device is not a device that needs to be recharged.

[0062] Optionally, after the external device is connected to the power supply interface, the mobile terminal can send a power reversal confirmation pop-up to the user. When the user confirms the power reversal of the external device through the pop-up, it can be determined that the external device is a device that needs to be reversed.

[0063] Optionally, a corresponding reverse charging option can be set in the mobile terminal. When the user operates the reverse charging option, it can be determined that the external device connected to the power supply interface is the device to be charged that needs to be reverse charged.

[0064] S302, in response to recognizing that the first reverse charging voltage is greater than or equal to a preset switching reference voltage, outputs a second reverse charging voltage and switches the mobile terminal into a high-power reverse charging mode to perform high-power reverse charging on the device to be charged.

[0065] In scenarios where the power manager is a PMIC, the first reverse charging voltage provided by the PMIC to the device to be charged may not be able to achieve high-power reverse charging of the device to be charged. In this scenario, the first reverse charging voltage can be detected and identified by the charge pump configured in the mobile terminal. When the first reverse charging voltage is detected to be greater than or equal to the preset switching reference voltage, it can be determined that the current mobile terminal meets the conditions for high-power reverse charging of the device to be charged. In this scenario, the mobile terminal can be switched to high-power reverse charging mode.

[0066] The reference voltage for switching can be determined based on the relevant performance parameters of the mobile terminal when it performs reverse charging, or it can be determined based on other parameters; no specific limitation is made here.

[0067] Optionally, the reverse charging voltage output by the charge pump in high-power reverse charging mode can be obtained. This reverse charging voltage is the second reverse charging voltage output by the mobile terminal. In this scenario, the mobile terminal can achieve high-power reverse charging of the device to be charged based on the second reverse charging voltage output by the charge pump.

[0068] As an example, the first reverse charging voltage output by the PMIC is set to 4.1V. In this example, when the charge pump in the mobile terminal detects that the first reverse charging voltage is greater than the preset switching reference voltage, the mobile terminal can enter the high-power reverse charging mode.

[0069] In this mode, if the preset ratio between the first reverse charging voltage and the second reverse charging voltage is set to 1:2, the charge pump can use 8.2V, which is twice the first reverse charging voltage, as its output second reverse charging voltage. The mobile terminal can then perform high-power reverse charging on the device to be charged based on the 8.2V second reverse charging voltage.

[0070] The charging method proposed in this disclosure, in response to the connection of the power supply interface between the device to be charged and the mobile terminal, obtains a first reverse charging voltage, and in response to the first reverse charging voltage being greater than or equal to a preset switching reference voltage, outputs a second reverse charging voltage, and switches the mobile terminal into a high-power reverse charging mode to perform high-power reverse charging on the device to be charged. In this disclosure, outputting a second reverse charging voltage when the first reverse charging voltage is greater than or equal to the switching reference voltage to perform high-power reverse charging on the device to be charged improves the timeliness of the high-power reverse charging mode switching of the electronic device and improves the charging efficiency of the electronic device for reversing the charge on the device to be charged. Compared with related technologies where the remaining battery power of the mobile terminal must reach a set value before reversing the charge on the device to be charged, this method reduces the impact of the remaining battery power on the reversing charging of the electronic device and optimizes the user's reversing charging experience.

[0071] In the above embodiments, the charging method can also be combined with... Figure 4 understand, Figure 4 This is a schematic flowchart of a charging method according to another embodiment of the present disclosure, as shown below. Figure 4 As shown, the method includes:

[0072] S401, obtain the high-power reverse charging voltage index under high-power reverse charging mode, and obtain the second reverse charging voltage of the mobile terminal under high-power reverse charging mode based on the high-power reverse charging voltage index.

[0073] In this embodiment of the disclosure, a preset ratio between the first reverse charging voltage and the second reverse charging voltage can be obtained, and a high-power reverse charging voltage index in the high-power reverse charging mode can be determined based on this ratio. The high-power reverse charging voltage index can be understood as the second reverse charging voltage in the high-power mode being a multiple of the first reverse charging voltage in the low-power mode.

[0074] In this scenario, the first reverse charging voltage and the high-power reverse charging voltage exponent can be processed by an algorithm, and the second reverse charging voltage can be obtained based on the result of the algorithm processing.

[0075] As an example, the first reverse charging voltage can be multiplied by the exponent of the high-power reverse charging voltage, and the voltage corresponding to the product value can be used as the second reverse charging voltage output by the mobile terminal in the high-power reverse charging mode.

[0076] S402 performs high-power reverse charging of the device to be charged based on the second reverse charging voltage.

[0077] In this embodiment of the disclosure, the mobile terminal can charge the device to be charged based on the second reverse charging voltage, thereby realizing high-power reverse charging of the device to be charged.

[0078] As an example, such as Figure 5 As shown, in Figure 5 In the scenario shown, when the device to be charged is connected to the power supply interface of the mobile terminal, it can be determined that the mobile terminal has started reverse charging the device to be charged. In this example, the first reverse charging voltage can be detected and identified by a charge pump. When the first reverse charging voltage is detected to be greater than or equal to a preset switching reference voltage, it can be determined that the mobile terminal has entered reverse charging mode. Figure 5 The high-power reverse charging mode is shown.

[0079] like Figure 5 As shown, after the mobile terminal enters the high-power reverse charging mode, the second reverse charging voltage output by the mobile terminal in the high-power reverse charging mode can be obtained, and the device to be charged can be reverse charged in high power through the second reverse charging voltage.

[0080] When a mobile terminal performs high-power reverse charging on a device under charge based on the second reverse charging voltage, the second reverse charging voltage can be dynamically adjusted according to the reverse charging status of the mobile terminal. This can be understood in conjunction with the following:

[0081] Optionally, it can be identified whether the second reverse charging voltage is less than the preset high-power reverse charging reference voltage. Based on the identification result, the mobile terminal is switched to a low-power charging mode, and the device to be charged is continued to be reverse charged based on the low-power charging mode. The high-power reverse charging reference voltage is obtained based on the disconnection voltage of the device to be charged and the preset margin voltage.

[0082] In this embodiment of the disclosure, the relationship between the second reverse charging voltage and the high-power reverse charging reference voltage can be identified through the PMIC or CP configured in the mobile terminal. Based on the identification result, it can be determined whether the current second reverse charging voltage can support the mobile terminal to reverse charge the device to be charged with high power, and whether the mobile terminal needs to switch to low-power reverse charging mode.

[0083] Alternatively, the high-power reverse charging reference voltage can be obtained based on the following formula:

[0084] VBUS ref =VBUSdisconnect +V buffer

[0085] In the above formula, VBUS ref VBUS represents the high-power reverse charging reference voltage. disconnect This indicates the upper limit of voltage that would cause the power supply interface of the mobile terminal to disconnect from the device being charged, in V. buffer This indicates the preset margin voltage.

[0086] This can be understood as follows: when the second reverse charging voltage is greater than or equal to the high-power reverse charging reference voltage, the mobile terminal can support high-power reverse charging of the device to be charged.

[0087] Optionally, in response to the identification result indicating that the second reverse charging voltage is less than the high-power reverse charging reference voltage, the reverse charging current of the mobile terminal under the second reverse charging voltage is obtained and adjusted to increase the second reverse charging voltage until the increased second reverse charging voltage is greater than or equal to the high-power reverse charging reference voltage, and the reverse charging power corresponding to the increased second reverse charging voltage is obtained.

[0088] In this embodiment of the disclosure, when the identification result indicates that the second reverse charging voltage is less than the high-power reverse charging reference voltage, the second reverse charging voltage can be adjusted so that the adjusted second reverse charging voltage can support high-power reverse charging of the device to be charged.

[0089] Optionally, the current of the mobile terminal under the second reverse charging voltage can be obtained as the reverse charging current, and the second reverse charging voltage can be adjusted by adjusting the reverse charging current. Specifically, the current reverse charging current of the mobile terminal can be reduced by adjusting the broadcast power of the power supply device (SynchronousRectification Controller, SRC), thereby increasing the second reverse charging voltage by reducing the reverse charging current.

[0090] Furthermore, the relationship between the improved second reverse charging voltage and the high-power reverse charging reference voltage is identified. When it is identified that the improved second reverse charging voltage is still less than the high-power reverse charging reference voltage, the process can continue to improve the second reverse charging voltage by adjusting the reverse charging current until the improved second reverse charging voltage is greater than the high-power reverse charging reference voltage.

[0091] In this embodiment of the disclosure, when it is identified that the improved second reverse charging voltage is greater than or equal to the high-power reverse charging reference voltage, it can be determined that the improved second reverse charging voltage can support the mobile terminal to perform high-power reverse charging of the device to be charged. In this scenario, the mobile terminal can perform reverse charging of the device to be charged based on the improved second reverse charging voltage and the high-power reverse charging mode.

[0092] In a scenario where the device to be charged is recharged based on the improved second recharge voltage, the power of the mobile terminal when recharging the device may change as the remaining power of the device increases. In this scenario, the power can be determined as the recharge power corresponding to the second recharge voltage, and the recharge power can be used to determine whether the mobile terminal needs to switch from high-power recharge mode to low-power recharge mode.

[0093] Among them, based on the reverse charging power, the mobile terminal is switched to a low-power reverse charging mode, and the device to be charged continues to reverse charge based on the low-power charging mode.

[0094] Optionally, in response to the detection that the reverse charging power is less than the preset high-power reverse charging power threshold, the mobile terminal switches to low-power charging mode and continues to reverse charge the device to be charged based on the low-power charging mode.

[0095] In this embodiment of the disclosure, the reverse charging power can be compared with a preset high-power reverse charging power threshold. When it is detected that the reverse charging power is less than the high-power reverse charging power threshold, it can be determined that the current mobile terminal's reverse charging power for the device to be charged is the reverse charging power that can be supported in the low-power reverse charging mode. Therefore, it can be determined that the current device to be charged does not need the mobile terminal to continue to perform high-power reverse charging.

[0096] In this scenario, the mobile terminal can be switched from the current high-power reverse charging mode to the low-power reverse charging mode, and the device to be charged can be reverse charged based on the low-power reverse charging mode.

[0097] Optionally, in response to the detection that the reverse charging power is greater than the high-power reverse charging threshold, the system returns to obtain the new reverse charging power corresponding to the new second reverse charging voltage until the new reverse charging power is less than the high-power reverse charging threshold. Then, the mobile terminal switches to low-power charging mode and continues to reverse charge the device to be charged based on the low-power charging mode.

[0098] In this embodiment of the disclosure, when the reverse charging power is detected to be greater than or equal to the high-power reverse charging threshold, it can be determined that the current device to be charged still needs the mobile terminal to perform high-power reverse charging. Therefore, it can be determined that the current mobile terminal can remain in the high-power reverse charging mode.

[0099] In this scenario, the system can return to acquire a new second reverse charging voltage. Based on the identification and adjustment process of the second reverse charging voltage proposed above, the system can continue to identify and adjust the new second reverse charging voltage until the new reverse charging power corresponding to the new second reverse charging voltage is less than the high-power reverse charging threshold. Then, it can be determined that the mobile terminal can switch from the high-power reverse charging mode to the low-power reverse charging mode.

[0100] This can be understood as follows: in high-power reverse charging mode, the current charging status of the device to be charged is obtained by comparing the reverse charging power with the preset high-power reverse charging power threshold, thereby dynamically detecting whether the mobile terminal needs to switch from high-power reverse charging mode to low-power reverse charging mode.

[0101] It should be noted that the external device connected to the mobile terminal may be a device to be charged or a power supply device, which can be understood in conjunction with the following:

[0102] Optionally, in response to the connection of the power supply interface between the external device and the mobile terminal, and the external device being the device to be charged, the mobile terminal performs reverse charging of the device to be charged.

[0103] In this embodiment of the disclosure, devices other than the mobile terminal can be identified as external devices. For any external device, the external device can be connected to the mobile terminal through the power supply interface provided by the mobile terminal. In this scenario, it is possible to identify whether the external device is a device to be charged that needs to be reverse-charged.

[0104] When an external device connected to the mobile terminal is identified as a device to be charged, the reverse charging method proposed in the above embodiments can be used to reverse charge the device to be charged.

[0105] Optionally, in response to the connection of the power supply interface between the external device and the mobile terminal, and the external device being a power supply device, the mobile terminal is charged through the power supply device.

[0106] In this embodiment of the disclosure, for an external device connected to the power supply interface of a mobile terminal, when the external device is a power supply device that can supply power to the mobile terminal, it can be determined that the mobile terminal does not need to enter the reverse charging mode. In this scenario, the mobile terminal can be charged through the power supply device.

[0107] As an example, such as Figure 5 As shown, in Figure 5 In the scenario shown, when the mobile terminal enters the high-power reverse charging mode, it can obtain the second reverse charging voltage output by the CP and identify the relationship between the second reverse charging voltage and the high-power reverse charging reference voltage.

[0108] like Figure 5 As shown, when the second reverse charging voltage is detected to be less than the high-power reverse charging single-phase voltage, the reverse charging current can be reduced to increase the second reverse charging voltage. If the increased second reverse charging voltage is still less than the high-power reverse charging reference voltage, the adjustment can be repeated to continue increasing the second reverse charging voltage until the increased second reverse charging voltage is greater than or equal to the high-power reverse charging reference voltage.

[0109] Furthermore, such as Figure 5 As shown, when the enhanced second reverse charging voltage is detected to be greater than or equal to the high-power reverse charging reference voltage, the reverse charging power corresponding to the enhanced second reverse charging voltage can be obtained, and the relationship between the reverse charging power and the preset high-power reverse charging power threshold can be determined, such as... Figure 5 As shown, when the reverse charging power is detected to be less than the high-power reverse charging power threshold, it can be determined that the current device to be charged does not need the mobile terminal to provide high-power reverse charging. In this scenario, the mobile terminal can exit the high-power reverse charging mode and switch to the low-power reverse charging mode to provide low-power reverse charging to the device to be charged.

[0110] like Figure 5 As shown, Figure 5 The scenario shown includes a polling module, which has a preset polling time interval. The polling module can start the execution round of each mode switching determination strategy based on the polling time interval. The mode switching determination strategy can be understood in conjunction with the determination process proposed above, which identifies whether the mobile terminal has switched from high-power reverse charging mode to low-power reverse charging mode by detecting the second reverse charging voltage. It will not be elaborated here.

[0111] It should be noted that the execution of the mode switching determination strategy has a preset power consumption overhead. For the two preset polling time intervals, based on the set time range, the power consumption required for the execution of the mode switching determination strategy with the shorter polling time interval is greater than the power consumption required for the execution of the mode switching determination strategy with the longer polling time interval.

[0112] The charging method proposed in this disclosure dynamically adjusts the second reverse charging voltage based on the relationship between the second reverse charging voltage and the high-power reverse charging reference voltage, thereby improving the stability of the mobile terminal performing high-power reverse charging on the device to be charged. By obtaining a reverse charging power lower than the high-power reverse charging power threshold through multiple cycles, the reverse charging mode of the mobile terminal is switched, improving the accuracy of the reverse charging mode switching of the mobile terminal, improving the timeliness of switching between high-power and low-power reverse charging modes, optimizing the reverse charging method of the mobile terminal on the device to be charged, improving the safety and stability of the reverse charging of the mobile terminal on the device to be charged, and optimizing the user's reverse charging experience.

[0113] Corresponding to the charging methods proposed in the above embodiments, one embodiment of this disclosure also proposes a charging device. Since the charging device proposed in this disclosure corresponds to the charging methods proposed in the above embodiments, the implementation methods of the above charging methods are also applicable to the charging device proposed in this disclosure, and will not be described in detail in the following embodiments.

[0114] Figure 6This is a schematic diagram of the structure of a charging device according to an embodiment of the present disclosure, as shown below. Figure 6 As shown, the charging device 600 includes an acquisition module 61 and a reverse charging module 62, wherein:

[0115] The acquisition module 61 is used to acquire the first reverse charging voltage output by the mobile terminal in response to the connection of the power supply interface between the device to be charged and the mobile terminal;

[0116] The reverse charging module 62 is used to respond to the detection that the first reverse charging voltage is greater than or equal to the preset switching reference voltage, output the second reverse charging voltage, and switch the mobile terminal into the high-power reverse charging mode to perform high-power reverse charging of the device to be charged.

[0117] In this embodiment of the disclosure, the reverse charging module 62 is further configured to: obtain the high-power reverse charging voltage index under the high-power reverse charging mode, and obtain the second reverse charging voltage of the mobile terminal under the high-power reverse charging mode based on the high-power reverse charging voltage index; and perform high-power reverse charging on the device to be charged based on the second reverse charging voltage.

[0118] In this embodiment of the present disclosure, the device further includes a switching module, configured to: identify whether the second reverse charging voltage is less than a preset high-power reverse charging reference voltage; switch the mobile terminal to a low-power charging mode according to the identification result, and continue to reverse charge the device to be charged based on the low-power charging mode, wherein the high-power reverse charging reference voltage is obtained based on the disconnection voltage of the device to be charged and a preset margin voltage.

[0119] In this embodiment of the disclosure, the switching module is further configured to: in response to the identification result indicating that the second reverse charging voltage is less than the high-power reverse charging reference voltage, obtain the reverse charging current of the mobile terminal under the second reverse charging voltage and adjust it to increase the second reverse charging voltage until the increased second reverse charging voltage is greater than or equal to the high-power reverse charging reference voltage, obtain the reverse charging power corresponding to the increased second reverse charging voltage; based on the reverse charging power, switch the mobile terminal to enter the low-power reverse charging mode, and continue to reverse charge the device to be charged based on the low-power charging mode.

[0120] In this embodiment of the disclosure, the switching module is further configured to: in response to recognizing that the reverse charging power is less than a preset high-power reverse charging power threshold, switch the mobile terminal to a low-power charging mode and continue to reverse charge the device to be charged based on the low-power charging mode; in response to recognizing that the reverse charging power is greater than or equal to the high-power reverse charging threshold, return to obtain a new reverse charging power corresponding to a new second reverse charging voltage, until the new reverse charging power is less than the high-power reverse charging threshold, switch the mobile terminal to a low-power charging mode, and continue to reverse charge the device to be charged based on the low-power charging mode.

[0121] In this embodiment of the disclosure, the reverse charging module 62 is further configured to: in response to the connection of the power supply interface between the external device and the mobile terminal, and the external device being a device to be charged, reverse charge the device to be charged through the mobile terminal; and in response to the connection of the power supply interface between the external device and the mobile terminal, and the external device being a power supply device, charge the mobile terminal through the power supply device.

[0122] The charging device disclosed herein, in response to the connection of the power supply interface between the device to be charged and the mobile terminal, acquires a first reverse charging voltage, and outputs a second reverse charging voltage in response to the first reverse charging voltage being greater than or equal to a preset switching reference voltage. It then switches the mobile terminal into a high-power reverse charging mode to perform high-power reverse charging on the device to be charged. In this disclosure, outputting the second reverse charging voltage when the first reverse charging voltage is greater than or equal to the switching reference voltage to perform high-power reverse charging on the device to be charged improves the timeliness of the high-power reverse charging mode switching of the electronic device and increases the charging efficiency of the electronic device in reversing the charge on the device to be charged. Compared to related technologies where the remaining battery power of the mobile terminal must reach a set value before reversing the charge on the device to be charged, this reduces the impact of the remaining battery power on the reversing charge of the electronic device and optimizes the user's reversing charging experience.

[0123] To achieve the above embodiments, this disclosure also provides a chip, including one or more interface circuits and one or more processors; the interface circuits are used to receive signals and send signals to the processors, the signals including computer instructions stored in a memory, and when the processor executes the computer instructions, the chip causes the chip to perform the steps of the charging method and / or touch point prediction method provided in the above embodiments.

[0124] To achieve the above embodiments, this disclosure also provides a computer-readable storage medium and a computer program product.

[0125] To implement the above embodiments, this disclosure also proposes a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the charging method provided in the above embodiments.

[0126] To implement the above embodiments, this disclosure also proposes a computer program product having a computer program stored thereon, wherein the computer program is executed by a processor to provide the charging method in the above embodiments.

[0127] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this disclosure. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0128] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this disclosure, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0129] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing custom logic functions or processes, and the scope of preferred embodiments of this disclosure includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as will be understood by those skilled in the art to which embodiments of this disclosure pertain.

[0130] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-including system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples of computer-readable media (a non-exhaustive list) include: electrical connections (electronic devices) having one or more wires, portable computer disk drives (magnetic devices), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and compact disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which the program can be printed, because the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.

[0131] It should be understood that various parts of this disclosure can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0132] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.

[0133] Furthermore, the functional units in the various embodiments of this disclosure can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.

[0134] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of the present disclosure have been shown and described above, it is to be understood that the above embodiments are exemplary and should not be construed as limiting the present disclosure. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present disclosure.

[0135] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.

[0136] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.

Claims

1. An electronic device, characterized in that, The device includes a power manager, a charge pump, and a power supply interface. One end of the power supply interface is connected to both the power manager and the charge pump, and the other end is connected to the device to be charged. The power manager is configured to output a first reverse charging voltage in response to the device to be charged being connected to the power supply interface; The charge pump is configured to output a second reverse charging voltage in response to detecting that the first reverse charging voltage is greater than or equal to a preset switching reference voltage, so as to perform high-power reverse charging on the device to be charged.

2. The device according to claim 1, characterized in that, The second reverse charging voltage is determined based on the first reverse charging voltage and a preset high-power reverse charging voltage index.

3. The device according to claim 2, characterized in that, The power supply interface is used to connect the electronic device to a corresponding external device, wherein... In response to the external device being the device to be charged, the electronic device reverse-charges the device to be charged. In response to the external device being a power supply device, the electronic device is charged through the power supply device.

4. The device according to claim 1, characterized in that, The device also includes a first overvoltage protection component, a second overvoltage protection component, a battery, and a power supply component, wherein... One end of the power supply interface is connected to the first end of the first overvoltage protection component, the second end of the first overvoltage protection component is connected to the first end of the second overvoltage protection component and the power line voltage port of the charge pump, and the third end of the first overvoltage protection component is connected to the first gate control signal port of the charge pump. The second terminal of the second overvoltage protection component is connected to the signal input port of the power manager, and the third terminal of the second overvoltage protection component is connected to the second gate control signal port in the power manager. The switching node voltage regulation port in the power manager is connected to the power supply component, and the voltage rail port in the power manager and the output voltage port of the charge pump are respectively connected to the battery.

5. A charging method, characterized in that, The method includes: In response to the connection of the power supply interface between the device to be charged and the mobile terminal, the first reverse charging voltage output by the mobile terminal is obtained; In response to the detection that the first reverse charging voltage is greater than or equal to a preset switching reference voltage, a second reverse charging voltage is output, and the mobile terminal is switched into a high-power reverse charging mode to perform high-power reverse charging on the device to be charged.

6. The method according to claim 5, characterized in that, The step of responding to the detection that the first reverse charging voltage is greater than or equal to a preset switching reference voltage, outputting a second reverse charging voltage, and switching the mobile terminal into a high-power reverse charging mode to perform high-power reverse charging on the device to be charged includes: Obtain the high-power reverse charging voltage index under the high-power reverse charging mode, and obtain the second reverse charging voltage of the mobile terminal under the high-power reverse charging mode based on the high-power reverse charging voltage index; The device to be charged is reverse-charged with high power based on the second reverse charging voltage.

7. The method according to claim 6, characterized in that, After performing high-power reverse charging on the device to be charged based on the second reverse charging voltage, the method further includes: Identify whether the second reverse charging voltage is less than the preset high-power reverse charging reference voltage; Based on the identification result, the mobile terminal is switched to a low-power charging mode, and the device to be charged continues to be reverse-charged based on the low-power charging mode. The high-power reverse-charging reference voltage is obtained based on the disconnection voltage of the device to be charged and a preset margin voltage.

8. The method according to claim 7, characterized in that, The step of switching the mobile terminal into a low-power charging mode based on the identification result, and continuing to reverse charge the device to be charged based on the low-power charging mode, includes: In response to the identification result indicating that the second reverse charging voltage is less than the high-power reverse charging reference voltage, the reverse charging current of the mobile terminal under the second reverse charging voltage is obtained and adjusted to increase the second reverse charging voltage until the increased second reverse charging voltage is greater than or equal to the high-power reverse charging reference voltage, and the reverse charging power corresponding to the increased second reverse charging voltage is obtained. Based on the reverse charging power, the mobile terminal is switched to the low-power reverse charging mode, and the device to be charged continues to be reverse charged based on the low-power charging mode.

9. The method according to claim 7, characterized in that, The step of switching the mobile terminal into the low-power charging mode based on the reverse charging power, and continuing to reverse charge the device to be charged based on the low-power charging mode, includes: In response to the detection that the reverse charging power is less than the preset high-power reverse charging power threshold, the mobile terminal switches to the low-power charging mode and continues to reverse charge the device to be charged based on the low-power charging mode; In response to the detection that the reverse charging power is greater than or equal to the high-power reverse charging threshold, the system returns to obtain the new reverse charging power corresponding to the new second reverse charging voltage until the new reverse charging power is less than the high-power reverse charging threshold. Then, the mobile terminal switches to the low-power charging mode and continues to reverse charge the device to be charged based on the low-power charging mode.

10. The method according to claim 5, characterized in that, The method further includes: In response to the connection of an external device to the power supply interface of the mobile terminal, and the external device being the device to be charged, the mobile terminal performs reverse charging of the device to be charged. In response to the connection between the external device and the power supply interface of the mobile terminal, and the external device being a power supply device, the mobile terminal is charged through the power supply device.

11. A charging device, characterized in that, The device includes: The acquisition module is used to acquire the first reverse charging voltage output by the mobile terminal in response to the connection of the power supply interface between the device to be charged and the mobile terminal; The reverse charging module is used to respond to the detection that the first reverse charging voltage is greater than or equal to a preset switching reference voltage, output a second reverse charging voltage, and switch the mobile terminal into a high-power reverse charging mode to perform high-power reverse charging on the device to be charged.

12. A computer-readable storage medium, wherein when instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the method as described in any one of claims 5-10.