Charging method, device, and medium

By adjusting the reverse charging current and voltage in real time and according to the multi-dimensional operating status of the first electronic device, the problem of excessive temperature and unstable operation caused by reverse charging is solved, and the user experience and device reliability are improved.

WO2024193283A1PCT designated stage expired Publication Date: 2024-09-26HUAWEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/078092
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-23
Filing Date
2024-02-22
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

During the reverse charging process of electronic devices, the temperature of the source device is too high due to the high voltage and high current requested by the receiving device, affecting its normal operation and reducing the user experience.

Method used

By detecting the real-time operating status of the first electronic device, the current and voltage during the reverse charging process are adjusted to ensure that power is provided to the second electronic device while ensuring its normal operation, including based on the current remaining power, battery voltage, and system function. The output current and voltage are determined by consumption, battery temperature, and operating application status.

Benefits of technology

It effectively avoids operating problems caused by high temperature or low battery of source equipment, improving user experience and equipment reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024078092_26092024_PF_FP
    Figure CN2024078092_26092024_PF_FP
Patent Text Reader

Abstract

The present application relates to the technical field of mobile terminals. Disclosed are a charging method, a device, and a medium. The charging method of the present application comprises: detecting that a first electronic device establishes a charging connection with a second electronic device; acquiring a charging request of the second electronic device, wherein the charging request includes a requested charging voltage and a requested charging current; upon determining that the first electronic device is in a first operation state, using the requested charging voltage and the requested charging current as a power supply voltage and a power supply current, which are provided for the second electronic device; and upon determining that the first electronic device is in a second operation state, determining, on the basis of the second operation state and the charging request, a first power supply voltage and a first power supply current, which are provided for the second electronic device. The solution implements power supply to the second electronic device while ensuring normal operation of the first electronic device, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Charging method, device and medium

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 23, 2023, with application number 202310326452.8 and application name “A Charging Method, Device and Medium”. The entire contents of the above application are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of mobile terminal technology, and in particular to a charging method, device, and medium. Background Art

[0003] Mobile phones and other electronic devices are now widely used in our daily lives. These devices typically have a basic forward charging function, which allows them to be charged using a charging device at a power of 5W-10W. To increase charging speeds, most electronic devices also offer super-fast charging, with charging powers exceeding 20W.

[0004] In some embodiments, electronic devices can also provide reverse charging capabilities for other electronic devices (such as mobile phones, tablets, watches, and other electronic devices). During reverse charging of electronic devices, the source device (i.e., the device providing power) always uses the voltage and current requested by the receiving device (i.e., the device to be charged) as the voltage and current when powering the receiving device. In some cases, this can cause the source device to overheat or its own applications to fail to run, affecting the normal operation of the source device and reducing the user experience.

[0005] Summary of the Invention

[0006] In order to power a second electronic device while ensuring normal operation of a first electronic device, an embodiment of the present application provides a charging method, device, and medium.

[0007] In a first aspect, an embodiment of the present application provides a charging method for a first electronic device, the method comprising: detecting that a charging connection is established between the first electronic device and a second electronic device; obtaining a charging request from the second electronic device, the charging request including a charging request voltage and a charging request current; determining that the first electronic device is in a first operating state, and using the charging request voltage and the charging request current as the power supply voltage and power supply current provided to the second electronic device; determining that the first electronic device is in a second operating state, and based on the second operating state and the charging request, determining a first power supply voltage and a first power supply current provided to the second electronic device, wherein the first power supply voltage is equal to the charging request voltage, and the first power supply current is less than the charging request current.

[0008] In the embodiments of the present application, the first electronic device can determine the power supply voltage and current to be provided by the first electronic device to the second electronic device based on the operating status of the first electronic device and the charging request of the second electronic device. This ensures that the first electronic device can power the second electronic device while ensuring normal operation, thereby improving the user experience.

[0009] It is understood that, in this application, the first supply voltage being equal to the requested charge voltage may not be absolutely equal, and a certain error may exist. For example, the error may be within a preset threshold, such as 0.1V. It is understood that the equality described elsewhere in this application may also be understood as not being absolutely equal, and a certain error may exist.

[0010] In one possible implementation, at least one of the first operating state or the second operating state includes multiple dimensions of operating states, and the multiple dimensions of operating states include at least one of the current remaining power of the first electronic device, the current battery voltage, the current system power consumption, the current battery temperature, or the current running application state.

[0011] In one possible implementation, determining that the first electronic device is in the first operating state includes: determining the output currents corresponding to the operating states of multiple dimensions of the first electronic device; determining the current output current of the first electronic device based on the output currents corresponding to the operating states of multiple dimensions of the first electronic device; when the current output current of the first electronic device is greater than or equal to the charging request current, determining that the first electronic device is in the first operating state.

[0012] In one possible implementation, determining that the first electronic device is in the second operating state includes: when a current output current of the first electronic device is less than a charge request current, determining that the first electronic device is in the second operating state.

[0013] In one possible implementation, the current output current of the first electronic device is determined based on the output currents corresponding to the operating states of multiple dimensions of the first electronic device, including: determining the gears of each dimension corresponding to the first electronic device based on the operating states of the multiple dimensions of the first electronic device; determining the output currents corresponding to the gears of each dimension based on the gears of each dimension corresponding to the first electronic device; and using the minimum output current among the output currents corresponding to the gears of each dimension as the current output current of the first electronic device.

[0014] It can be understood that the minimum output current among the output currents corresponding to the gears in each dimension is the power supply current that can be provided to the second electronic device while ensuring the normal operation of the first electronic device.

[0015] In one possible implementation, based on the second operating state and the charging request, determining a first supply voltage and a first supply current provided to the second electronic device includes: using the charging request voltage as the first supply voltage provided to the second electronic device; and using the current output current of the first electronic device as the first supply current provided to the second electronic device.

[0016] In one possible implementation, before obtaining the charging request of the second electronic device, it also includes: the first electronic device determines the type of the first electronic device; when the first electronic device determines that the type of the first electronic device is a source device, it determines whether the first electronic device and the second electronic device have successfully negotiated a fast charging protocol; when the first electronic device and the second electronic device have successfully negotiated a fast charging protocol, the first electronic device obtains the charging request of the second electronic device.

[0017] In one possible implementation, the method further includes: when the first electronic device fails to successfully negotiate a fast charging protocol with the second electronic device, the first electronic device supplies power to the second electronic device based on a preset charging voltage and a preset charging current.

[0018] It can be understood that in the present application, the preset charging voltage and the preset charging current can be the initial voltage and initial current preset in the first electronic device mentioned in the present application.

[0019] In one possible implementation, the method further includes: determining that the first electronic device is in a third operating state, and supplying power to the second electronic device based on a preset charging voltage and a preset charging current; the third operating state includes at least one of the following:

[0020] The state of the first electronic device is abnormal; the voltage of the first electronic device is lower than the first preset voltage threshold; the remaining power of the first electronic device is lower than the first preset power threshold; the temperature of the first electronic device exceeds the first preset temperature threshold.

[0021] It can be understood that the abnormal state of the first electronic device may be an abnormality of the host of the first electronic device. The first preset voltage threshold, the first preset power threshold and the first preset temperature threshold can be set according to actual conditions and are not specifically limited here.

[0022] In a second aspect, an embodiment of the present application provides an electronic device, comprising: a memory for storing instructions executed by one or more processors of the electronic device, and a processor, which is one of the one or more processors of the electronic device, for implementing any charging method provided by the above-mentioned first aspect and various possible implementations of the above-mentioned first aspect.

[0023] In a third aspect, an embodiment of the present application provides a readable medium having instructions stored thereon. When the instructions are executed on an electronic device, the electronic device implements any one of the charging methods provided by the first aspect and various possible implementations of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] FIG1 is a schematic diagram showing a charging scenario of an electronic device according to some embodiments of the present application;

[0025] FIG2 is a schematic diagram showing a charging scenario of an electronic device according to some embodiments of the present application;

[0026] FIG3 is a schematic diagram showing a flow chart of a charging method according to some embodiments of the present application;

[0027] FIG4 shows a schematic structural diagram of a charging device according to some embodiments of the present application;

[0028] FIG5 shows a schematic structural diagram of a charging device according to some embodiments of the present application;

[0029] FIG6 shows a schematic structural diagram of a charging circuit according to some embodiments of the present application;

[0030] FIG7 is a schematic diagram showing a charging method according to some embodiments of the present application;

[0031] FIG8 is a schematic diagram showing a charging method according to some embodiments of the present application;

[0032] FIG9 is a schematic diagram showing a charging method according to some embodiments of the present application;

[0033] FIG10 shows a schematic structural diagram of a charging device according to some embodiments of the present application. DETAILED DESCRIPTION

[0034] The illustrative embodiments of the present application include, but are not limited to, a charging method, device, and medium.

[0035] It can be understood that the technical solution of the present application is applicable to the scenario in which a first electronic device and a second electronic device are charged. The first electronic device mentioned in the embodiment of the present application can be a device that provides power, and the second electronic device can be a device that receives power from the first electronic device. For example, as shown in Figure 1, the first electronic device can be a mobile phone 10, and the second electronic device can be a mobile phone 20. When the mobile phone 10 charges the mobile phone 20, the mobile phone 10 and the mobile phone 20 can establish a connection through a wired connection such as a data cable to enable the mobile phone 10 to charge the mobile phone 20. In some embodiments, as shown in Figure 2, the mobile phone 10 and the mobile phone 20 can also establish a connection through a wireless connection to enable the mobile phone 10 to charge the mobile phone 20.

[0036] As previously mentioned, in some embodiments, during reverse charging of an electronic device, the source device (i.e., the device providing power) always uses the voltage and current requested by the receiving device (i.e., the device to be charged) as the voltage and current when powering the receiving device, which in some cases affects the normal operation of the source device and reduces the user experience.

[0037] For example, Figure 3 shows a flow chart of a charging method in some embodiments. The charging method shown in Figure 3 can be performed by the first electronic device shown in Figure 4. As shown in Figure 4, the first electronic device may include a control module, an alarm module, a data line charging module, a drive module, and a wireless charging module. The charging method includes: when the control module of the first electronic device receives a charging request sent by the second electronic device to the first electronic device, controlling the first electronic device to enter a reverse charging mode, wherein the charging request carries the voltage and current requested by the second electronic device. The control module controls the data line charging module or drives the wireless charging module through the drive module to charge the second electronic device based on the voltage and current requested by the second electronic device. When the control module determines that the first electronic device has completed charging the second electronic device, it controls the alarm module to output a charging completion prompt message.

[0038] During the reverse charging process of the above-mentioned charging method, the first electronic device is always charged according to the voltage and current requested by the second electronic device. As a result, in some cases, the first electronic device may overheat or its own applications may not be able to run. For example, in some cases, the first electronic device is running a large mobile game. At this time, the first electronic device charges the second electronic device based on the voltage and current requested by the second electronic device, causing the temperature of the first electronic device to increase sharply. In some cases, the remaining power of the first electronic device is already low, such as 5%. At this time, the first electronic device is still charged based on the voltage and current requested by the second electronic device, which may cause some applications of the first electronic device to fail to run or the first electronic device to shut down, reducing the user experience.

[0039] To address the above-mentioned issues, an embodiment of the present application provides a charging method. During reverse charging, a first electronic device can adjust the current during reverse charging in real time based on the real-time operating status of the first electronic device. The real-time operating status of the first electronic device may include various aspects of the first electronic device, such as the current remaining power, current battery voltage, current system power consumption, current battery temperature, and current running application status. In this way, power can be supplied to the second electronic device while ensuring the normal operation of the first electronic device, thereby improving the user experience.

[0040] In some embodiments, the above-mentioned method of adjusting the current during reverse charging in real time according to the real-time operating status of the first electronic device can be: the first electronic device obtains the current during reverse charging according to the current requested by the second electronic device and the real-time operating status of the first electronic device.

[0041] In some embodiments, the first electronic device may obtain the current during the reverse charging process based on the current requested by the second electronic device and the real-time operating state of the first electronic device. The first electronic device may obtain the output current corresponding to each aspect (dimension) of the operating state, for example, the output current I1 corresponding to the current remaining power, the output current I2 corresponding to the current battery voltage, the output current I3 corresponding to the current system power consumption, the output current I4 corresponding to the current battery temperature, the output current I5 corresponding to the current running application state, etc. When the current requested by the second electronic device is less than or equal to the minimum output current among the above output currents (i.e., when the operating state of the first electronic device is in the first operating state mentioned in this application), the current requested by the second electronic device is used as the current during the reverse charging process. When the current requested by the second electronic device is greater than the minimum output current among the above output currents (i.e., when the operating state of the first electronic device is in the second operating state mentioned in this application), the minimum output current among the above output currents is used as the current during the reverse charging process.

[0042] In some embodiments, the first electronic device may use the voltage requested by the second electronic device as the voltage during the reverse charging process.

[0043] It is understood that in the embodiments of the present application, when the voltage requested by the second electronic device is used as the voltage during the reverse charging process, a certain error can be allowed. For example, the error can be within a preset threshold, such as 0.1V. That is, the voltage within the set error range of the voltage requested by the second electronic device can be used as the voltage during the reverse charging process. It is understood that the equality described elsewhere in this application can also be understood as not absolute equality, and a certain error is allowed.

[0044] The following first introduces the structure of the electronic device mentioned in this application. The first electronic device and the second electronic device mentioned in the embodiments of this application can be any of the electronic devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPCs), netbooks, and personal digital assistants (PDAs).

[0045] The following takes the example that the first electronic device and the second electronic device are both mobile phones to introduce the structures of the first electronic device and the second electronic device.

[0046] As shown in Figure 5, the mobile phone may include a processor 110, a power module 140, a memory 180, a mobile communication module 130, a wireless communication module 120, a sensor module 190, an audio module 150, a camera 170, an interface module 160, a button 101, a display screen 102 and a charging circuit 103, etc.

[0047] It should be understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on mobile phones. In other embodiments of the present application, the mobile phone may include more or fewer components than shown in the figure, or some components may be combined or separated, or the components may be arranged differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0048] The processor 110 may include one or more processing units, for example, a processing module or processing circuit including a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processing (DSP), a microprocessor (MCU), an artificial intelligence (AI) processor, or a programmable logic device (FPGA). Different processing units may be independent devices or integrated into one or more processors. A storage unit may be provided in the processor 110 for storing instructions and data. In some embodiments, the storage unit in the processor 110 is a cache memory 180.

[0049] It can be understood that the charging method in the embodiment of the present application can be executed by the processor 110 of the corresponding electronic device.

[0050] The power module 140 may include a power supply, a power management component, and the like. The power supply may be a battery. The power management component manages the charging of the power supply and the supply of power to other modules. In some embodiments, the power management component includes a charging management module and a power management module. The charging management module receives charging input from a charger; the power management module connects the power supply, the charging management module, and the processor 110. The power management module receives input from the power supply and / or the charging management module to power the processor 110, the display 102, the camera 170, and the wireless communication module 120.

[0051] The mobile communication module 130 may include but is not limited to an antenna, a power amplifier, a filter, a low noise amplifier (LNA), etc. The mobile communication module 130 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied on mobile phones. The mobile communication module 130 can receive electromagnetic waves through the antenna, filter, amplify and other processing on the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 130 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna. In some embodiments, at least some of the functional modules of the mobile communication module 130 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 130 can be set in the same device as at least some of the modules of the processor 110.

[0052] The wireless communication module 120 may include an antenna. The wireless communication module 120 may provide wireless communication solutions for mobile phones, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), and other wireless communication technologies. The mobile phone can communicate with the network and other devices through wireless communication technologies.

[0053] In some embodiments, the mobile communication module 130 and the wireless communication module 120 of the mobile phone may also be located in the same module.

[0054] Display screen 102 is used to display human-computer interaction interfaces, images, videos, etc. Display screen 102 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a quantum dot light-emitting diode (QLED), etc.

[0055] The sensor module 190 may include a proximity sensor, a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.

[0056] The audio module 150 is used to convert digital audio information into an analog audio signal output, or convert analog audio input into a digital audio signal. The audio module 150 can also be used to encode and decode audio signals. In some embodiments, the audio module 150 can be set in the processor 110, or some functional modules of the audio module 150 can be set in the processor 110. In some embodiments, the audio module 150 may include a speaker, an earpiece, a microphone, and a headphone jack. The camera 170 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the image signal processing (ISP) to be converted into a digital image signal. The mobile phone can achieve the shooting function through the ISP, camera 170, video codec, graphics processing unit (GPU), display screen 102, and application processor.

[0057] Interface module 160 includes an external memory interface, a USB interface, and a subscriber identification module (SIM) card interface. The external memory interface can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone. The external memory card communicates with processor 110 via the external memory interface to implement data storage. A universal serial bus interface is used for communication between the mobile phone and other electronic devices. The subscriber identification module card interface is used to communicate with a SIM card installed in the mobile phone, for example, to read or write phone numbers stored on the SIM card.

[0058] In some embodiments, the mobile phone further includes a button 101, a motor, and an indicator. The button 101 may include a volume button, an on / off button, and the like. The motor is used to vibrate the mobile phone, for example, when a user's phone is called, to prompt the user to answer the call. The indicator may include a laser pointer, a radio frequency indicator, an LED indicator, and the like.

[0059] In some embodiments, as shown in FIG6 , the charging circuit 103 may include a reverse charging path and a forward charging path. The reverse charging path includes an external power supply module, a reverse fast charging protocol module, and an insertion detection module. The forward charging path may include a battery, a charging module (buck / sc), a fast charging protocol chip, and an insertion detection module. The functions of each module are described below.

[0060] In the embodiment of the present application, the external power supply module can be used to power the receiving device via a data line or electromagnetic induction.

[0061] In an embodiment of the present application, the reverse fast charging protocol module can be used to establish a communication connection with a receiving electronic device via a data cable or a wireless connection.

[0062] In an embodiment of the present application, the insertion detection module can be used to determine whether the electronic device is a source device or a sink device. For example, when the electronic device is identified as a source device (such as host / source), the electronic device is determined to be a source device and the electronic device is controlled to supply power to the outside. When the electronic device is identified as a sink device (such as device / sink), the electronic device is determined to be a sink device and is used to receive power from the charging device.

[0063] In an embodiment of the present application, the fast charging protocol chip can be used to establish a charging connection with a charging device via a data cable or a wireless connection.

[0064] In the embodiment of the present application, the charging module (buck / sc) can be used to receive the voltage and current provided by the charging device and store the voltage and current in the battery.

[0065] In the embodiment of the present application, the battery can be used to store charge and to provide external power.

[0066] Optionally, the above components are only an example. In actual applications, the components in the above modules may be added or deleted according to actual needs. Figures 5 and 6 should not be understood as limiting the embodiments of the present application.

[0067] The following is a detailed description of the charging method provided in the embodiment of the present application. As shown in Figure 7, Figure 7 shows a flow chart of a charging method in the embodiment of the present application. The charging method can be performed by the first electronic device, and the charging method includes:

[0068] 701: Detecting that a first electronic device establishes a charging connection with a second electronic device.

[0069] It is understood that in some embodiments, the charging connection established between the first electronic device and the second electronic device can be a wired connection established by any means, such as a data cable. For example, as shown in FIG1 , the first electronic device and the second electronic device are connected via a universal serial bus (USB) data cable, and current is transmitted via the USB data cable.

[0070] In some embodiments, the charging connection established between the first electronic device and the second electronic device may also be a wireless connection. For example, as shown in FIG2 , the first electronic device and the second electronic device may establish a connection via a wireless method such as Bluetooth, infrared, or wireless fidelity (Wi-Fi). If the first electronic device and the second electronic device are within the same Wi-Fi coverage area or within the coverage area of ​​a short-range communication such as Bluetooth, they establish a connection after searching for each other and charging is performed via electromagnetic signals.

[0071] It will be understood that the embodiments of the present application are not limited to establishing a charging connection between two electronic devices, but may also establish a charging connection between one electronic device and multiple devices.

[0072] 702: Determine whether the first electronic device is a source device.

[0073] If the judgment result is yes, it proves that the first electronic device is charging the second electronic device at this time, and the process goes to 703: setting the initial voltage and initial current. If the judgment result is no, it proves that the second electronic device is charging the first electronic device at this time, and the process goes to 710: entering the forward charging process.

[0074] It can be understood that in the embodiment of the present application, after the first electronic device establishes a charging connection with the second electronic device, the first electronic device can identify whether the first electronic device is a source device through the insertion detection module.

[0075] For example, when the insertion detection module of the first electronic device recognizes that the first electronic device has a source end identifier (such as host / source), it can be determined that the first electronic device is a source end device. At this time, the charging type of the first electronic device is reverse charging, and the first electronic device is used to charge the second electronic device. At this time, the second electronic device can be any terminal electronic device such as a mobile phone or a watch. When the insertion detection module of the first electronic device recognizes that the first electronic device has a receiving end identifier (such as device / sink), it can be determined that the first electronic device is a receiving end device. At this time, the charging type is forward charging, and the first electronic device is used to receive the charge of the second electronic device. At this time, the second electronic device can be a terminal electronic device or a conventional charging device, such as a socket, a power bank, etc.

[0076] 703: Set the initial voltage and initial current.

[0077] In some embodiments, the initial voltage and the initial current may be fixed values ​​preset in the first electronic device, for example, the preset initial voltage = 5V, the initial current = 500mA; or the preset initial voltage = 5V, the initial current = 1A.

[0078] 704: Determine whether the first electronic device and the second electronic device have successfully negotiated the fast charging protocol. If the judgment result is yes, go to 705: Obtain the voltage and current requested by the second electronic device; if the judgment result is no, go to 709: Charge the second electronic device based on the initial voltage and initial current.

[0079] In this embodiment of the present application, when reverse charging begins, after setting the initial external power supply voltage and current, the reverse fast charging protocol module of the first electronic device can perform a communication handshake with the fast charging protocol module of the second electronic device. If the handshake and identification of the fast charging protocol are successful, it is determined that the second electronic device supports the corresponding fast charging protocol, and the first electronic device can obtain the voltage and current requested by the second electronic device.

[0080] If the second electronic device does not initiate a protocol handshake, or the fast charging protocol recognition fails, it is determined that the first electronic device charges the second electronic device through a normal reverse charging process, that is, the first electronic device charges the second electronic device based on the initial voltage and initial current.

[0081] 705: Obtain the voltage and current requested by the second electronic device.

[0082] In an embodiment of the present application, the second electronic device may send the requested voltage and current to the first electronic device via a wired or wireless method. In some embodiments, the voltage and current requested by the second electronic device to the first electronic device may be the voltage and current preset in the fast charging protocol of the second electronic device. And the voltage and current preset in the fast charging protocol are generally higher voltages and currents. For example, the voltage preset in the fast charging protocol may be any voltage from 8V to 10V, and the current may be any current from 1.5A to 2.5A. For example, the voltage preset for the second electronic device is 8.8V, and the current is 2.5A. It will be understood that the voltage and current preset in the above-mentioned fast charging protocol are only examples, and the specific ones can be determined based on the hardware specifications of the second electronic device.

[0083] 706: Determine the reverse output voltage and current according to the real-time operating status of the first electronic device.

[0084] In an embodiment of the present application, the real-time operating status of the first electronic device may include various aspects of the first electronic device, such as the current remaining power, current battery voltage, current system power consumption, current battery temperature, and current application status.

[0085] In an embodiment of the present application, a method for determining the reverse output voltage and current based on the real-time operating status of the first electronic device includes: the first electronic device uses the voltage requested by the second electronic device as the voltage during the reverse charging process. The first electronic device obtains the output current corresponding to each operating status, for example, the output current I1 corresponding to the current remaining power, the output current I2 corresponding to the current battery voltage, the output current I3 corresponding to the current system power consumption, the output current I4 corresponding to the current battery temperature, the output current I5 corresponding to the current operating application status, etc. When the current requested by the second electronic device is less than or equal to the minimum output current among the above output currents, the first electronic device uses the current requested by the second electronic device as the current during the reverse charging process. When the current requested by the second electronic device is greater than the minimum output current among the above output currents, the first electronic device uses the minimum current among the above currents as the current during the reverse charging process.

[0086] The following describes a method for determining the output current corresponding to each aspect according to the real-time operating status of each aspect of the first electronic device.

[0087] In an embodiment of the present application, the states of the first electronic device such as the remaining battery power, battery voltage, system power consumption, battery temperature and the current running application state can be divided into several gears in advance, and then the gears corresponding to the current remaining power, current battery voltage, current system power consumption, current battery temperature and the current running application state are determined respectively, and the corresponding recoil current is determined based on the gears corresponding to the current remaining power, current battery voltage, current system power consumption, current battery temperature and the current running application state.

[0088] For example, for the battery power, the remaining battery power of 80%-100% can be divided into the first gear, and the preset recoil current corresponding to the first gear is 2.5A; the remaining battery power of 70%-80% can be divided into the second gear, and the preset recoil current corresponding to the second gear is 2.2A; the remaining battery power of 40%-70% can be divided into the third gear, and the preset recoil current corresponding to the third gear is 1.7A.

[0089] For example, when it is obtained that the current remaining power of the first electronic device is 75%, it can be determined that the gear corresponding to the current remaining power is the second gear, and the output kickback current I1 corresponding to the current gear is 2.2A.

[0090] For the battery voltage, the remaining battery voltage of 4.3V-4.5V can be divided into the first gear, and the preset kickback current corresponding to the first gear is 2.5A. The remaining battery voltage of 4V-4.3V can be divided into the second gear, and the preset kickback current corresponding to the second gear is 2.2A. The remaining battery voltage of 3.7V-4.3V can be divided into the third gear, and the preset kickback current corresponding to the third gear is 1.7A.

[0091] For example, when the current battery voltage of the first electronic device is obtained to be 4.4V, it can be determined that the gear corresponding to the current battery voltage is the first gear, and the output kickback current I2 corresponding to the current gear is 2.5A.

[0092] For system power consumption, the system power consumption of 0-2W during operation can be divided into the first gear, and the preset recoil current corresponding to the first gear is 2.5A. The system power consumption of 2W-4W during operation can be divided into the second gear, and the preset recoil current corresponding to the second gear is 2.2A. The system power consumption of 4W-8W during operation can be divided into the third gear, and the preset recoil current corresponding to the third gear is 1.7A.

[0093] For example, when the current system power consumption of the first electronic device is obtained to be 3W, it can be determined that the gear corresponding to the current system power consumption is the second gear, and the output kickback current I3 corresponding to the current gear is 2.2A.

[0094] For the battery temperature, the battery temperature less than 33°C can be divided into the first gear, and the preset recoil current corresponding to the first gear is 2.5A. The battery temperature of 33°C-35°C can be divided into the second gear, and the preset recoil current corresponding to the second gear is 2.2A. The battery temperature of 35°C-37°C can be divided into the third gear, and the preset recoil current corresponding to the third gear is 2A. The battery temperature of 37°C-39°C can be divided into the fourth gear, and the preset recoil current corresponding to the fourth gear is 1.8A. The battery temperature greater than 39°C can be divided into the fifth gear, and the preset recoil current corresponding to the fifth gear is 1.3A.

[0095] For example, when the current battery temperature of the first electronic device is 34°C, it can be determined that the gear corresponding to the current battery temperature is the second gear, and the output recoil current I4 corresponding to the current gear is 2.2 A. Wherein, system power consumption = total battery power consumption - external recoil power.

[0096] For the currently running application state, the launched applications that do not include high-power applications can be divided into the first tier, with a preset kickback current of 2.5 A. The launched applications that include high-power applications can be divided into the second tier, with a preset kickback current of 1.7 A. Among them, high-power applications can include gaming applications, video applications, camera applications, and other high-power applications.

[0097] For example, when it is obtained that only a music application is currently started on the first electronic device, it can be determined that the gear corresponding to the current running application state is the first gear, and the output kickback current I5 corresponding to the current gear is 2.5A.

[0098] In some embodiments, corresponding recoil currents can also be set for screen on and screen off. For example, the screen off mode is set to the first level, and the corresponding recoil current is preset to 2.5A. The screen on mode is set to the second level, and the corresponding recoil current is preset to 1.7A.

[0099] In this embodiment of the present application, the requested voltage of 8.8V of the second electronic device can be used as the reverse output voltage. Based on the outputtable kickback current, the current outputtable current of the first electronic device can be determined to be 2.2A. Based on the current outputtable current of 2.2A and the requested current of 2.5A of the second electronic device, it can be determined that the reverse output current is 2.2A.

[0100] In some embodiments, the minimum value of the outputtable recoil current corresponding to any one or more of the remaining battery power, battery voltage, system power consumption, battery temperature, and current running application state of the first electronic device can be used as the current outputtable current of the first electronic device.

[0101] When the current outputtable current of the first electronic device is greater than or equal to the current requested by the second electronic device, it is determined that the first electronic device is in the first operating state, and the first electronic device uses the voltage requested by the second electronic device as the reverse output voltage, and the first electronic device uses the current requested by the second electronic device as the reverse output current.

[0102] When the current outputtable current of the first electronic device is less than the current requested by the second electronic device, it is determined that the first electronic device is in the second operating state, and the first electronic device uses the voltage requested by the second electronic device as the reverse output voltage, and the first electronic device uses the current outputtable current as the reverse output current to ensure the normal operation of the first electronic device.

[0103] 707 : Charging the second electronic device based on the determined reverse output voltage and current.

[0104] It can be understood that in the embodiment of the present application, the external power supply module of the first electronic device can charge the second electronic device based on the reverse output voltage and current determined above.

[0105] 708: Determine whether the operating status of the first electronic device meets the first preset condition. If the judgment result is yes, go to 709: Charge the second electronic device based on the initial voltage and initial current. If the judgment result is no, go to 705: Obtain the voltage and current requested by the second electronic device.

[0106] In an embodiment of the present application, the first preset condition may include at least one of the following: the host of the first electronic device is abnormal; the host voltage of the first electronic device is lower than the first preset voltage threshold; the remaining power of the first electronic device is lower than the first preset power threshold; the temperature of the first electronic device exceeds the first preset temperature threshold.

[0107] It is understood that when the first electronic device meets the first preset condition, it is determined that the first electronic device is in the third operating state. At this time, the first electronic device can no longer continue to provide high-voltage, high-current, high-power fast charging to the second electronic device. Therefore, in order to ensure the normal use of the first electronic device's own functions, the output voltage is adjusted to the initial voltage and the output current is adjusted to the initial current, and the normal reverse charging process is carried out.

[0108] In some embodiments, when it is determined that the first electronic device meets the first preset condition, the first electronic device may stop charging the second electronic device.

[0109] 709: Charging the second electronic device based on the initial voltage and the initial current.

[0110] In some embodiments, during the process of the first electronic device charging the second electronic device based on the initial voltage and the initial current, when it is determined that the first electronic device meets the second preset condition, the first electronic device stops charging the second electronic device.

[0111] In an embodiment of the present application, the second preset condition may include at least one of the following: the host voltage of the first electronic device is lower than the second preset voltage threshold; the remaining power of the first electronic device is lower than the second preset power threshold; the temperature of the first electronic device exceeds the second preset temperature threshold.

[0112] 710: Entering the forward charging process.

[0113] It is understood that in the forward charging process, the first electronic device can receive power from the second electronic device. In this case, the second electronic device can be a terminal electronic device or a conventional charging device, such as a socket, a power bank, etc.

[0114] In an embodiment of the present application, the first electronic device adjusts the voltage and current output to the second electronic device according to the real-time operating status. In this way, the second electronic device can be powered while ensuring the normal operation of the first electronic device, avoiding situations such as the first electronic device overheating and its own application being unable to run, thereby improving the user experience.

[0115] As shown in FIG8 , FIG8 is a flow chart of a charging method according to an embodiment of the present application. Unlike FIG7 , FIG8 takes the first electronic device as a mobile phone 10 and the second electronic device as a mobile phone 20 as an example to introduce the charging method provided by the present application. The method shown in FIG8 can be executed by the mobile phone 10. As shown in FIG8 , the charging method includes:

[0116] 801: Detection of the insertion of the mobile phone 20.

[0117] In the embodiment of the present application, as shown in FIG1 , the mobile phone 20 can establish a charging connection with the mobile phone 10 via a data cable. When the insertion detection module of the mobile phone 10 detects that the mobile phone 20 is inserted, it can automatically identify the identification of the mobile phone 10 to determine whether the mobile phone 10 is the source device.

[0118] 802: Identify the mobile phone 10 as a source device.

[0119] It is understood that when the mobile phone 20 needs to be powered by the mobile phone 10, the insertion detection module of the mobile phone 10 recognizes the presence of a source identifier (such as source) in the mobile phone 10, which can prove that the mobile phone 10 is a source device. That is, the mobile phone 10 enters the reverse charging mode.

[0120] 803: Set the initial voltage.

[0121] In the embodiment of the present application, the external power supply module of the mobile phone 10 can be set to an initial voltage of 5V to power the mobile phone 20. In some embodiments, the external power supply module of the mobile phone 10 can also be set to 3V to power the mobile phone 20.

[0122] In some embodiments, the initial current may be set to 500 mA or 1 A to power the mobile phone 20 .

[0123] 804: Determine whether the mobile phone 10 and the mobile phone 20 have successfully negotiated the fast charging protocol. If the judgment result is yes, go to 805: Query the requested voltage and requested current of the mobile phone 20. If the judgment result is no, go to 811: Execute the normal reverse charging process.

[0124] In the embodiment of the present application, when reverse charging begins, after the mobile phone 10 sets the initial external power supply voltage and current, the reverse fast charging protocol module of the mobile phone 10 can perform a communication handshake with the fast charging protocol module of the mobile phone 20. If the handshake and recognition of the fast charging protocol are successful, it is determined that the mobile phone 20 supports the corresponding fast charging protocol, and the mobile phone 10 can query the requested voltage and requested current of the mobile phone 20.

[0125] If the mobile phone 20 does not initiate a protocol handshake, or the fast charging protocol recognition fails, it is determined that the mobile phone 10 charges the mobile phone 20 through a normal reverse charging process, that is, the mobile phone 10 charges the mobile phone 20 based on the initial voltage and initial current.

[0126] 805: Query the requested voltage and requested current of the mobile phone 20.

[0127] In the embodiment of the present application, the mobile phone 20 can send a request voltage and a request current to the mobile phone 10 via a wired manner. In some embodiments, the voltage and current requested by the mobile phone 20 from the mobile phone 10 can be the voltage and current preset in the fast charging protocol of the mobile phone 20. The voltage and current preset in the fast charging protocol are generally higher voltages and currents. For example, the voltage and current preset in the fast charging protocol can be 8.8V and 2.5A.

[0128] 806: Current limiting is performed according to the status of the mobile phone 10 (voltage, power level, power consumption status, scenario, etc.).

[0129] In the embodiment of the present application, limiting the current according to the state of the mobile phone 10 may refer to determining the reverse output voltage and current according to the real-time operating state of the mobile phone 10 .

[0130] In the embodiment of the present application, the real-time operating status of the mobile phone 10 may include various aspects such as the current remaining power of the mobile phone 10, the current battery voltage, the current system power consumption, the current battery temperature, and the current application status.

[0131] In an embodiment of the present application, the method for determining the reverse output voltage and current based on the real-time operating status of the mobile phone 10 includes: the mobile phone 10 uses the voltage requested by the mobile phone 20 as the voltage during the reverse charging process. The mobile phone 10 obtains the output current corresponding to each of the operating states, for example, the output current I1 corresponding to the current remaining power, the output current I2 corresponding to the current battery voltage, the output current I3 corresponding to the current system power consumption, the output current I4 corresponding to the current battery temperature, the output current I5 corresponding to the current running application state, etc. When the current requested by the mobile phone 20 is less than or equal to the minimum output current among the above output currents, the mobile phone 10 uses the current requested by the mobile phone 20 as the current during the reverse charging process. When the current requested by the mobile phone 20 is greater than the minimum current among the above currents, the mobile phone 10 uses the minimum output current among the above output currents as the current during the reverse charging process.

[0132] 807: Output high voltage and current.

[0133] It can be understood that in the embodiment of the present application, the external power supply module of the mobile phone 10 can charge the mobile phone 20 based on the reverse output voltage and current determined above, wherein the reverse output voltage and current determined above are generally high voltage and high current.

[0134] 808: Determine whether the mobile phone 10 meets the first preset condition. If the judgment result is yes, go to 811: Execute the normal reverse charging process. If the judgment result is no, go to 805: Query the requested voltage and requested current of the mobile phone 20 to dynamically adjust the output current.

[0135] In an embodiment of the present application, the first preset condition may include at least one of the following: the host of the mobile phone 10 is abnormal; the host voltage of the mobile phone 10 is lower than the first preset voltage threshold; the remaining power of the mobile phone 10 is lower than the first preset power threshold; the temperature of the mobile phone 10 exceeds the first preset temperature threshold.

[0136] It is understood that when the mobile phone 10 meets the first preset condition, it is determined that the mobile phone 10 can no longer continue to provide high-voltage, high-current, high-power fast charging to the mobile phone 20. Therefore, in order to ensure the normal use of the mobile phone 10 itself, the output voltage is adjusted to the initial voltage and the output current is adjusted to the initial current, and the normal reverse charging process is carried out.

[0137] In some embodiments, when the mobile phone 10 meets the first preset condition, the mobile phone 10 may also stop charging the mobile phone 20 .

[0138] 809: Identify the mobile phone 10 as a receiving device.

[0139] It can be understood that in the embodiment of the present application, when the insertion detection module of the mobile phone 10 recognizes the presence of a receiving end identifier (such as sink) in the mobile phone 10, it can be proved that the mobile phone 10 is a receiving end device, that is, the mobile phone 10 enters the forward charging mode and executes the forward charging process.

[0140] 810: Entering the forward charging process.

[0141] 811: Execute a normal reverse charging process (eg, 5V / 500mA or 5V / 1A).

[0142] In the embodiment of the present application, in a normal reverse charging process, the mobile phone 10 can power the mobile phone 20 through the external power supply module based on the initial voltage and initial current. For example, the mobile phone 10 can power the mobile phone 20 through the external power supply module based on 5V / 500mA or 5V / 1A.

[0143] In some embodiments, during the process of the mobile phone 10 charging the mobile phone 20 based on the initial voltage and the initial current, when it is determined that the mobile phone 10 meets the second preset condition, the mobile phone 10 can stop charging the mobile phone 20.

[0144] In the embodiment of the present application, the second preset condition may include at least one of the following: the host voltage of the mobile phone 10 is lower than the second preset voltage threshold; the remaining power of the mobile phone 10 is lower than the second preset power threshold; the temperature of the mobile phone 10 exceeds the second preset temperature threshold.

[0145] In the embodiment of the present application, the mobile phone 10 adjusts the voltage and current output to the mobile phone 20 according to the real-time operating status, so that the mobile phone 20 is powered without affecting the normal use of the mobile phone 10, avoiding situations such as the mobile phone 10 overheating, being pulled by large current, and the user being unable to use the mobile phone 10, thereby improving the user experience.

[0146] In addition, FIG9 shows a schematic flow chart of the charging method provided by some comparative embodiments, wherein the charging method shown in FIG9 is applied to the electronic device shown in FIG10 , and the electronic device shown in FIG10 includes a charging downstream port (CDP) interface chip, a processor, a switch, an integrated circuit (IC), and a standard downstream port (SDP) port. It can be understood that the electronic device shown in FIG10 uses a CDP chip. Since the CDP communication protocol stipulates that the maximum transmission current of the CDP interface chip is 1.5A, the maximum value of the reverse charging current output by the electronic device shown in FIG10 is 1.5A. And the circuit shown in FIG10 can provide a voltage of 5V.

[0147] As shown in Figure 9, the charging method includes: when the processor of the electronic device detects that an on-the-go (OTG) adapter is inserted into the SDP port, the total current is obtained and sent to the control IC; wherein the total current = reverse charging current + the current consumed when the application of the first electronic device is running, and the initial value of the reverse charging current is the CDP maximum transmission current. The control IC compares the total current with the rated battery current. If the total current is greater than the rated battery current within a preset time period, the reverse charging current is reduced. If the total current is less than or equal to the rated battery current within the preset time period, power is supplied to the outside based on the CDP maximum transmission current.

[0148] The above charging method can only reduce the reverse charging current according to the current consumed by the application of the first electronic device during the reverse charging process. The adjustment rule is single and in some cases, it is still difficult to ensure the normal operation of the electronic device.

[0149] The charging method provided in the embodiment of the present application can adjust the current during the reverse charging process in real time according to various states of the first electronic device, such as the current remaining power, current battery voltage, current system power consumption, current battery temperature, and current running application state. It comprehensively considers the running state of the first electronic device, can effectively ensure the normal operation of the first electronic device, and improves the user experience.

[0150] The various embodiments of the mechanisms disclosed in this application can be implemented in hardware, software, firmware, or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer program or program code executed on a programmable system, which includes at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device.

[0151] Program code can be applied to input instructions to perform the functions described herein and generate output information. The output information can be applied to one or more output devices in a known manner. For purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.

[0152] Program code can be implemented with high-level procedural language or object-oriented programming language to communicate with the processing system. When necessary, program code can also be implemented with assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language. In some cases, the disclosed embodiments can be implemented with hardware, firmware, software or any combination thereof. The disclosed embodiments can also be implemented as instructions carried or stored thereon by one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which can be read and executed by one or more processors. For example, instructions can be distributed over a network or by other computer-readable media. Thus, a machine-readable medium may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including but not limited to floppy disks, optical disks, optical discs, compact disc-read only memory (CD-ROMs), magneto-optical disks, read-only memory (ROM), random-access memory (RAM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic or optical cards, flash memory, or tangible machine-readable storage for transmitting information via the Internet in the form of electrical, optical, acoustical, or other propagated signals (e.g., carrier waves, infrared signals, digital signals, etc.). Thus, a machine-readable medium includes any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a form readable by a machine (e.g., a computer).

[0153] In the drawings of this application, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Rather, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a particular figure does not imply that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.

[0154] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems raised by this application. In addition, in order to highlight the innovative part of this application, the above-mentioned device embodiments of this application do not introduce units / modules that are not closely related to solving the technical problems raised by this application. This does not mean that other units / modules do not exist in the above-mentioned device embodiments.

[0155] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "including a" does not exclude the presence of other identical elements in the process, method, article or device that includes the element.

[0156] Although the present application has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the application.

Claims

1. A charging method, It is characterized in that For a first electronic device, the method includes: Detecting that the first electronic device and the second electronic device establish a charging connection; Acquiring a charging request of the second electronic device, where the charging request includes a charging request voltage and a charging request current; Determining that the first electronic device is in a first operating state, and using the charging request voltage and the charging request current as a power supply voltage and a power supply current provided to the second electronic device; Determine that the first electronic device is in a second operating state, and based on the second operating state and the charging request, determine a first power supply voltage and a first power supply current provided to the second electronic device, wherein the first power supply voltage is equal to the charging request voltage, and the first power supply current is less than the charging request current.

2. The charging method according to claim 1, It is characterized in that At least one of the first operating state or the second operating state includes operating states in multiple dimensions, and the operating states in multiple dimensions include at least one of the current remaining power, current battery voltage, current system power consumption, current battery temperature, or current running application state of the first electronic device.

3. The charging method according to any one of claims 1 to 2, It is characterized in that The determining that the first electronic device is in a first operating state includes: Determine output currents corresponding to the operating states of multiple dimensions of the first electronic device respectively; Determining a current output current of the first electronic device based on the output currents respectively corresponding to the operating states of multiple dimensions of the first electronic device; When the current outputtable current of the first electronic device is greater than or equal to the charging request current, it is determined that the first electronic device is in the first operating state.

4. The charging method according to claim 3, It is characterized in that The determining that the first electronic device is in the second operating state includes: When the current outputtable current of the first electronic device is less than the charging request current, it is determined that the first electronic device is in the second operating state.

5. The charging method according to claim 3, It is characterized in that The determining the current output current of the first electronic device based on the output currents respectively corresponding to the operating states of the multiple dimensions of the first electronic device includes: Determining a gear position of each dimension corresponding to the first electronic device based on the operating status of the first electronic device in multiple dimensions; Based on the gear positions of each dimension corresponding to the first electronic device, determining the output currents corresponding to the gear positions of each dimension respectively; The minimum output current among the output currents corresponding to the gears in each dimension is used as the current output current of the first electronic device.

6. The charging method according to claim 5, It is characterized in that The determining, based on the second operating state and the charging request, a first supply voltage and a first supply current provided to the second electronic device includes: using the charging request voltage as a first supply voltage provided to the second electronic device; The currently outputtable current of the first electronic device is used as the first supply current provided to the second electronic device.

7. The charging method according to any one of claims 1 to 6, It is characterized in that Before obtaining the charging request of the second electronic device, the method further includes: The first electronic device determines the type of the first electronic device; When the first electronic device determines that the type of the first electronic device is a source device, determining whether the first electronic device and the second electronic device have successfully negotiated a fast charging protocol; When the first electronic device successfully negotiates the fast charging protocol with the second electronic device, the first electronic device obtains a charging request from the second electronic device.

8. The charging method according to claim 7, It is characterized in that The method further comprises: When the first electronic device fails to successfully negotiate the fast charging protocol with the second electronic device, the first electronic device supplies power to the second electronic device based on a preset charging voltage and a preset charging current.

9. The charging method according to any one of claims 1 to 8, It is characterized in that The method further comprises: Determining that the first electronic device is in a third operating state, and supplying power to the second electronic device based on a preset charging voltage and a preset charging current; The third operating state includes at least one of the following: The state of the first electronic device is abnormal; The voltage of the first electronic device is lower than a first preset voltage threshold; The remaining power of the first electronic device is lower than a first preset power threshold; The temperature of the first electronic device exceeds a first preset temperature threshold.

10. An electronic device, It is characterized in that The device comprises: a memory for storing instructions executed by one or more processors of the electronic device, and the processor, which is one of the one or more processors of the electronic device, for executing the charging method according to any one of claims 1 to 9.

11. A readable medium, It is characterized in that The readable medium stores instructions, which, when executed on an electronic device, enable the electronic device to execute the charging method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Charging method, equipment and medium

    CN118693936A

  • Charging control method and device

    CN111277013A

  • System power consumption calculation method and electronic equipment

    CN115441541A

  • Portable charger and a method of powering electronic devices

    WO2015029078A2