Reverse charging method, related apparatus and communication system

Through the reverse boost output capability of the direct charging chip and the cooperation of the bidirectional charging chip, the problem of insufficient reverse charging power of electronic devices is solved, more efficient reverse charging is achieved, and user experience and device safety are improved.

WO2025201414A1PCT designated stage Publication Date: 2025-10-02HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/085054
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-03-29
Filing Date
2025-03-26
Publication Date
2025-10-02

AI Technical Summary

Technical Problem

Existing electronic devices have limited power and low efficiency when reverse charging, making it difficult to meet users' charging needs.

Method used

By utilizing the reverse boost output capability of the direct charging chip, the battery voltage is increased and output according to a preset ratio, and the second device is charged through the bidirectional charging chip. The charging voltage and current are adjusted to match the device status, avoiding increased hardware costs.

Benefits of technology

It improves reverse charging efficiency, enhances user experience, prevents device overheating and battery depletion, and enhances the stability and safety of the charging process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025085054_02102025_PF_FP_ABST
    Figure CN2025085054_02102025_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides a reverse charging method, a related apparatus and a communication system. A first device can utilize the reverse boost output capability of a direct charging chip to increase a battery voltage in a preset proportion and output the battery voltage to charge a second device. Moreover, the first device can set the charging output capability of a plurality of gears. During reverse charging, the first device can stepwise adjust the gear of the charging output capability on the basis of a battery status. The method can improve the reverse charging efficiency of the first device on the basis of the direct charging chip without increasing the hardware cost, and can guarantee the reverse charging efficiency to the maximum extent under a continuous charging condition, thereby improving the user's reverse charging experience.
Need to check novelty before this filing date? Find Prior Art

Description

Reverse charging method, related device and communication system

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on March 29, 2024, with application number 202410385682.6, and priority to the Chinese patent application entitled “Reverse Charging Method, Related Devices and Communication System”, all contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of terminal technology, and in particular to a reverse charging method, related devices, and a communication system. Background Art

[0003] Currently, electronic devices such as mobile phones and tablets can achieve reverse charging thanks to the reverse output capabilities of charging chips. For example, a user can use one phone to charge another. This allows users to easily distribute power across multiple devices, improving the user experience when using multiple devices.

[0004] However, the power provided by electronic devices during reverse charging is limited, and the reverse charging efficiency is slow, which makes it difficult to meet users' reverse charging needs. Summary of the Invention

[0005] This application provides a reverse charging method, related apparatus, and communication system. A first device can utilize the reverse boost output capability of a direct charging chip to boost the battery voltage according to a preset ratio and output it to charge a second device. This can improve the reverse charging efficiency of the first device without increasing hardware costs, based on the direct charging chip.

[0006] In a first aspect, the present application provides a reverse charging method. The method is applied to a first device including a bidirectional charging chip, which has the ability to charge the battery of the first device and has the ability to increase and output the battery voltage of the first device according to a first ratio. The first device establishes a connection for charging with a second device; the first device sends a first message to the second device, the first message including a first voltage and a first current; the first device receives a first request from the second device, the first request including a second voltage and a second current; the first device uses the bidirectional charging chip to charge the second device, wherein the output voltage of the first device is a third voltage, the output current is a third current, the third voltage is less than or equal to the smaller value of the first voltage and the second voltage, and the third current is less than or equal to the smaller value of the first current and the second current.

[0007] The first ratio may be 1:2, 1:3, 1:4, etc. The bidirectional charging chip may be the direct charging chip shown in FIG. 3A of the present application. The connection for charging may be a wired connection.

[0008] As can be seen from the above method, the first device can use the bidirectional charging chip to increase the battery power of the first device according to a first ratio and then output it to the second device. This can improve the reverse charging efficiency of the proposed device without increasing hardware costs, and enhance the user experience of reverse charging using the first device.

[0009] In combination with the first aspect, in some embodiments, before sending the first message to the second device, the first device may determine the charging output capability of the first device based on the state of the first device. The charging output capability of the first device includes the maximum reverse charging voltage and the maximum reverse charging current currently supported by the first device. The first device can determine whether the maximum reverse charging voltage supported by the first device is greater than the first voltage threshold. For example, the maximum reverse charging voltage supported by the first device is the above-mentioned first voltage. The maximum reverse charging current supported by the first device is the above-mentioned first current. When the first voltage is greater than the first voltage threshold, the first device can send a first message to the second device and receive the first request from the second device. Then, the first device can determine whether the second voltage in the first request is greater than the first voltage threshold. When the second voltage is greater than the first voltage threshold, the first device can use the bidirectional charging chip to charge the second device. The above-mentioned first voltage threshold can be 5V, or it can be any value between 5V-7V.

[0010] After receiving the first request from the second device, the first device may further compare the first voltage and the second voltage, and use a voltage less than or equal to the smaller of the first and second voltages as the output voltage to charge the second device. The first device may further compare the first current and the second current, and use a current less than or equal to the smaller of the first and second currents as the output current to charge the second device.

[0011] In conjunction with the first aspect, in some embodiments, before sending the first message to the second device, the first device may further determine whether the first voltage is equal to a second voltage threshold. When the first voltage is equal to the second voltage threshold, the first device may send the first message to the second device and receive the first request from the second device. The first device may then determine whether the second voltage in the first request is equal to the second voltage threshold. When the second voltage is equal to the second voltage threshold, the first device may use the bidirectional charging chip to charge the second device. The second voltage threshold may be 9V, or any value between 7V and 9V.

[0012] In conjunction with the first aspect, in some embodiments, after sending the first message to the second device, the first device may further determine whether the first voltage is less than a second voltage threshold. When the first voltage is greater than or equal to the second voltage threshold, the first device may send the first message to the second device and receive the first request from the second device. The first device may then determine whether the second voltage in the first request is less than the second voltage threshold. When the second voltage is greater than or equal to the second voltage threshold, the first device may use the bidirectional charging chip to charge the second device.

[0013] In combination with the first aspect, in some embodiments, the first voltage and the first current are determined based on the battery status of the first device, and the battery status of the first device includes one or more of the following: the battery power of the first device, the battery voltage of the first device, and the battery temperature of the first device.

[0014] In combination with the first aspect, in some embodiments, when the battery power of the first device is in the first power range, the first voltage is the first voltage value, and the first current is the first current value; when the battery power of the first device is in the second power range, the first voltage is the first voltage value, and the first current is the second current value; when the battery power of the first device is in the third power range, the first voltage is the second voltage value, and the first current is the third current value; wherein, the second voltage value is less than the first voltage value, the second current value is less than the first current value, and the third current value is less than or equal to the second current value.

[0015] Exemplarily, the first power range may be (80%, 100%). The first voltage value may be 9V. The first current value may be 2A. The second power value may be (65%, 80%). The second current value may be 1.5A. The third power value may be (0%, 65%). The second voltage value may be 5V. The third current value may be 1.5A.

[0016] In combination with the first aspect, in some embodiments, when the battery temperature of the first device is less than a first temperature threshold, the first device may determine the charging output capability of the first device according to the battery power of the first device.

[0017] The first temperature threshold may be 45° C. or the like.

[0018] As can be seen, the above embodiment can reduce the risk of excessive reverse charging power causing the battery temperature of the electronic device 100 to become excessively high, thereby damaging the electronic device 100. Furthermore, as the battery level of the first device decreases, the first device can reduce the charging power it provides to the second device. This can prevent the battery of the first device from being depleted too quickly during reverse charging.

[0019] In combination with the first aspect, in some embodiments, before the first device sends a first message to the second device, the first device displays multiple power options, where the multiple power options are determined based on the battery status of the first device, and the multiple power options include a first power option corresponding to a first power, where the first power is the product of a first voltage and a first current; the first device receives an operation to select the first power option.

[0020] These multiple power options can refer to the power a1 reverse charging option 725 and the power a2 reverse charging option 726 shown in FIG. 7B of the present application.

[0021] As can be seen from the above embodiments, in a reverse charging scenario, the user can specify the charging output capacity of the first device during reverse charging, which can enhance the user's reverse charging experience.

[0022] In combination with the first aspect, in some embodiments, after the first device uses the bidirectional charging chip to charge the second device, the first device determines, based on the battery status of the first device, that the charging output capability of the first device is reduced from the first charging output capability to the second charging output capability, the first charging output capability includes a first voltage and a first current, and the second charging output capability includes a fourth voltage and a fourth current; the first device sends a second message to the second device, the second message includes a fourth voltage and a fourth current; the first device receives a second request sent by the second device, the second request includes a fifth voltage and a fifth current; the first device charges the second device, wherein the output voltage of the first device is a sixth voltage, the output current is a sixth current, the sixth voltage is less than or equal to the smaller of the fourth voltage and the fifth voltage, and the sixth current is less than or equal to the smaller of the fourth current and the fifth current.

[0023] If the fourth voltage and the fifth voltage are greater than the first voltage threshold, the first device charges the second device using the bidirectional charging chip.

[0024] The first device also includes a reverse charging chip, which has the ability to increase the battery voltage of the first device to within a first voltage range and output it. If the fourth voltage and / or the fifth voltage is less than or equal to the first voltage threshold, the first device disconnects the charging circuit corresponding to the bidirectional charging chip and uses the reverse charging chip to charge the second device; wherein, the sixth voltage is within the first voltage range.

[0025] The reverse charging chip can be the 5V boost chip shown in FIG3A of the present application.

[0026] In some embodiments, when the battery temperature of the first device increases from less than a first temperature threshold to greater than or equal to the first temperature threshold, the first device may determine that the charging output capacity of the first device has decreased from the first charging output capacity to a second charging output capacity. When the battery temperature of the first device is greater than or equal to the first temperature threshold, the voltage included in the charging output capacity of the first device may be a third voltage value, and the current included therein may be a fourth current value. For example, the third voltage value may be 5V, and the fourth current value may be 1.5A.

[0027] In some embodiments, the first device can determine whether the first device's charging output capability has decreased based on the first device's battery level. For example, when the first device's battery level decreases from the first power range to the second power range, the first device's charging output capability decreases. The first device can determine the first device's current charging output capability based on the current power range in which the battery level is located.

[0028] The first device's charging output capability decreases from the first charging output capability to the second charging output capability, which may indicate that the maximum reverse charging voltage currently supported by the first device decreases from the first voltage to the fourth voltage, and the maximum reverse charging current currently supported by the first device decreases from the first current to the fourth current. After receiving the second request from the second device, the first device may compare the fourth voltage and the fifth voltage, and use a voltage less than or equal to the smaller of the fourth and fifth voltages as the output voltage to charge the second device. The first device may also compare the fourth current and the fifth current, and use a current less than or equal to the smaller of the fourth and fifth currents as the output current to charge the second device.

[0029] As can be seen from the above embodiments, the first device can use the reverse boost output capability of the bidirectional charging chip to increase the power of the first device charging the second device. This can improve the efficiency of reverse charging of the first device without increasing the hardware cost. In addition, the battery voltage will gradually decrease as the battery discharges. The first device can negotiate the charging power with the second device based on the change in its charging output capability, thereby adjusting the reverse charging voltage and / or reverse charging current in a step-by-step manner. This can avoid the situation where the working gear of the charging chip that receives the charging input of the second device does not match the charging output of the first device, resulting in charging interruption. Therefore, the above embodiments can maximize the reverse charging efficiency without continuous charging, thereby improving the user's reverse charging experience.

[0030] In combination with the first aspect, in some embodiments, the first voltage interval is an interval greater than 4.5V and less than 5.5V.

[0031] In combination with the first aspect, in some embodiments, when the battery power of the first device drops to less than a first power level, the first device stops charging the second device.

[0032] In combination with the first aspect, in some embodiments, the first device obtains the battery power of the second device; when the battery power of the first device is lower than the battery power of the second device, and / or the battery power of the second device is greater than the second power, the first device stops charging the second device.

[0033] As can be seen, during the process of a first device charging a second device, the first device can determine whether to terminate reverse charging based on the battery level of the first device and / or the battery level of the second device. This can prevent the first device from running out of power due to reverse charging, which would affect the user's use of the first device.

[0034] In combination with the first aspect, in some embodiments, when the battery power of the first device drops to less than a third power level, and / or the time for the first device to charge the second device exceeds the first time level, the first device outputs a first prompt, and the first prompt is used to remind the user to pay attention to the power level of the first device.

[0035] As can be seen, during the process of a first device charging a second device, the first device can determine whether to prompt the user to pay attention to the battery level of the first device based on the battery level of the first device and / or the reverse charging duration. This can prevent the first device from running out of power due to reverse charging, which would affect the user's use of the first device.

[0036] In conjunction with the first aspect, in some embodiments, the protocol used by the first device and the second device for communication includes a power transmission (PD) charging protocol.

[0037] As can be seen from the above embodiments, the PD charging protocol is a widely used charging protocol in the current market. Using the PD charging protocol can improve the versatility of the reverse charging method of the present application.

[0038] In a second aspect, the present application provides an electronic device. The electronic device may include a bidirectional charging chip, a reverse charging chip, a memory, and a processor. The bidirectional charging chip may be used to charge the battery of the electronic device, or to increase and output the battery voltage of a first device according to a first ratio. The reverse charging chip may be used to increase and output the battery voltage of the first device to within a first voltage range. The memory may be used to store a computer program. The processor may be used to call the computer program so that the electronic device executes any possible implementation method as described in the first aspect.

[0039] In a third aspect, the present application provides a computer-readable storage medium comprising instructions, which, when executed on an electronic device, enables the electronic device to execute any possible implementation method in the first aspect.

[0040] In a fourth aspect, the present application provides a computer program product, which may include computer instructions. When the computer instructions are run on an electronic device, the electronic device executes any possible implementation method as in the first aspect.

[0041] In a fifth aspect, the present application provides a chip, which is applied to an electronic device. The chip includes one or more processors, and the processor is used to call computer instructions to enable the electronic device to execute any possible implementation method as in the first aspect.

[0042] It is understandable that the electronic device provided in the second aspect, the computer-readable storage medium provided in the third aspect, the computer program product provided in the fourth aspect, and the chip provided in the fifth aspect are all used to execute the methods provided in the embodiments of the present application. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the corresponding methods and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] FIG1 is a schematic diagram of a communication system provided in an embodiment of the present application;

[0044] FIG2A is a schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of the present application;

[0045] FIG2B is a schematic diagram of a software structure of an electronic device 100 provided in an embodiment of the present application;

[0046] FIG2C is a schematic structural diagram of another electronic device 100 provided in an embodiment of the present application;

[0047] FIG3A is a schematic diagram of another communication system provided in an embodiment of the present application;

[0048] FIG3B is a schematic diagram of another communication system provided in an embodiment of the present application;

[0049] FIG4 is a flow chart of a reverse charging method provided in an embodiment of the present application;

[0050] FIG5 is a flow chart of a reverse charging method provided in an embodiment of the present application;

[0051] FIG6 is a flow chart of another reverse charging method provided in an embodiment of the present application;

[0052] 7A to 7C are schematic diagrams of some reverse charging scenarios provided by embodiments of the present application;

[0053] 8A and 8B are schematic diagrams of other reverse charging scenarios provided by embodiments of the present application;

[0054] FIG9 is a flow chart of a reverse charging method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0055] The technical solutions in the embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the embodiments of the present application, the terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and claims of the present application, the singular expressions "a", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one or more (including two). The term "and / or" is used to describe the association relationship of associated objects, indicating that three relationships can exist; for example, A and / or B can represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0056] References to "one embodiment" or "some embodiments" etc. described in this specification mean that the specific features, structures or characteristics described in conjunction with the embodiment are included in one or more embodiments of the present application. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in another way. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in another way. The term "connected" includes direct and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated.

[0057] In the embodiments of this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplarily" or "for example" is intended to present the relevant concepts in a concrete manner.

[0058] This application provides a reverse charging method that can increase the reverse charging power of an electronic device by leveraging the reverse boost output capability of a direct charging chip in an electronic device. For example, when the battery voltage of an electronic device is 4.5 volts (V), the direct charging chip can increase the battery voltage to 9V at a ratio of 1:2. If the reverse charging current is 3 amperes (A), the electronic device can supply power to another electronic device at a reverse charging power of 27 watts (W).

[0059] The charging output capacity of an electronic device usually decreases as the battery power decreases. The electronic device can adjust the reverse charging voltage and / or reverse charging current in a step-by-step manner according to its own charging output capacity. The charging output capacity may include the maximum reverse charging voltage and maximum reverse charging current supported by the electronic device when charging other electronic devices. Optionally, the charging output capacity may include the maximum reverse charging power supported by the electronic device when charging other electronic devices. The reverse charging voltage and reverse charging current may be the voltage and current output by the electronic device when charging other electronic devices, respectively. This can maximize the reverse charging efficiency while continuously charging, and enhance the user's reverse charging experience. In addition, the electronic device can also provide multiple gears of charging output capacity for users to choose from. Users can choose the corresponding charging output capacity to charge other electronic devices according to their personal needs.

[0060] FIG1 exemplarily shows a schematic diagram of a communication system provided by the present application.

[0061] As shown in Figure 1, communication system 10 may include electronic devices 100 and 101. The types of electronic devices 100 and 101 may include: mobile phones, tablet computers, laptop computers, smart watches, smart bracelets, speakers, televisions, etc. The embodiments of this application do not limit the types of electronic devices 100 and 101.

[0062] Electronic device 100 and electronic device 101 can establish a wired connection. For example, the cable used to connect electronic device 100 and electronic device 101 can be a continuously transposed cable (CTC). The embodiment of the present application does not limit the type of the above-mentioned cable. Electronic device 100 can charge electronic device 101 via the cable.

[0063] In some embodiments, upon detecting that electronic device 100 and electronic device 101 are connected via the aforementioned cable, both electronic device 100 and electronic device 101 may prompt the user to determine the power supply device and the device to be charged. Upon receiving a user operation to select electronic device 100 as the power supply device and electronic device 101 as the device to be charged, electronic device 100 may charge electronic device 101. The power supply device may also be referred to as a master device or host. The device to be charged may also be referred to as a slave device or slave.

[0064] The electronic device 100 and the electronic device 101 are not limited to a wired connection, and can also establish a wireless connection. In particular, the electronic device 100 can supply power to the electronic device 101 through wireless reverse charging.

[0065] FIG. 2A exemplarily shows a schematic diagram of the hardware structure of the electronic device 100 .

[0066] As shown in Figure 2A, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0067] It is understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than those shown in FIG. 2A , or may combine or separate certain components, or may have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0068] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0069] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0070] Processor 110 may also include a memory for storing instructions and data. In some examples, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the instruction or data again, it can directly retrieve it from the memory. This avoids repeated accesses, reduces processor 110 latency, and thus improves system efficiency.

[0071] In the present application, a computer program may be stored in the memory, which is used to enable a controller or processor to implement the reverse charging method of the present application through an interface or protocol. For example, the computer program stored in the memory can be used to: establish a connection for charging with other electronic devices, monitor the battery status, determine the charging output capacity of the electronic device based on the battery status, negotiate the reverse charging voltage and reverse charging current with other electronic devices, control the battery as a power source to charge other electronic devices, adjust the reverse charging voltage and / or reverse charging current according to changes in the battery power, charge other electronic devices according to the charging output capacity selected by the user, stop reverse charging when the battery power is too low, etc.

[0072] The USB interface 130 is an interface that complies with USB standards and specifications, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The present embodiment of the application does not limit the type of USB interface 130. The USB interface 130 can be used to connect a charger to charge the electronic device 100, or to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. In some embodiments, the interface can also be used to connect other electronic devices to charge them or receive power from them.

[0073] The charging management module 140 is used to receive charging input from a charger or other electronic device. The charger can be a wireless charger or a wired charger. Other electronic devices can include, but are not limited to, mobile phones, tablets, laptops, power banks, and the like. While charging the battery 142, the charging management module 140 can also provide power to the electronic device through the power management module 141.

[0074] In some embodiments, the charging management module 140 may also be configured to draw power from the battery 142 to charge other electronic devices.

[0075] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to provide power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, and the wireless communication module 160.

[0076] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0077] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.

[0078] The mobile communication module 150 can provide wireless communication solutions, including 2G / 3G / 4G / 5G, for the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low-noise amplifier (LNA), and the like. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor and convert them into electromagnetic waves for radiation via the antenna 1.

[0079] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0080] The electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing that connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering.

[0081] The display screen 194 is used to display images, videos, etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.

[0082] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.

[0083] The ISP is used to process data fed back by the camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then transmitted to the ISP for processing and converted into an image visible to the naked eye.

[0084] The camera 193 is used to capture still images or videos. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0085] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0086] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU can enable intelligent cognitive applications in electronic device 100, such as image recognition, face recognition, speech recognition, and text comprehension.

[0087] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.

[0088] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0089] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0090] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some examples, the audio module 170 can be set in the processor 110, or some functional modules of the audio module 170 can be set in the processor 110. The speaker 170A, also known as the "speaker", is used to convert audio electrical signals into sound signals. The receiver 170B, also known as the "earpiece", is used to convert audio electrical signals into sound signals. The microphone 170C, also known as the "microphone" or "microphone", is used to convert sound signals into electrical signals. The headphone jack 170D is used to connect wired headphones.

[0091] The speaker 170A and receiver 170B described above may constitute an audio output device of the electronic device 100. The audio output device of the electronic device 100 is not limited to the speaker 170A and receiver 170B, and may also include other devices for playing audio. The microphone 170C described above may constitute an audio input device of the electronic device 100. The audio input device of the electronic device 100 is not limited to the microphone 170C, and may also include other devices for collecting sound signals.

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

[0093] Buttons 190 include a power button, a volume button, etc. Motor 191 can generate vibration prompts. Indicator 192 can be an indicator light that can be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0094] The SIM card interface 195 is used to connect a SIM card. A SIM card can be connected to and disconnected from the electronic device 100 by inserting or removing it from the SIM card interface 195. The electronic device 100 may support one or N SIM card interfaces, where N is a positive integer greater than 1. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some examples, the electronic device 100 uses an eSIM, or embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0095] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. Taking the system as an example, the software structure of the electronic device 100 is exemplarily described.

[0096] FIG. 2B exemplarily shows a schematic diagram of the software structure of the electronic device 100 .

[0097] The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, The system is divided into four layers, from top to bottom: application layer, application framework layer, Android runtime (Android Runtime) and system library, and kernel layer.

[0098] The application layer can include a series of application packages.

[0099] As shown in Figure 2B, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, short messaging, and reverse charging applications. The reverse charging application can be used to provide functions for managing and controlling reverse charging. For example, upon detecting that electronic device 100 has established a charging connection with another electronic device, the reverse charging application can display controls on the user interface to determine the power supply device and the device to be charged, allowing the user to select the power supply device or the device to be charged. For another example, the reverse charging application can also display multiple charging output levels on the user interface for the user to select. This allows electronic device 100 to charge other electronic devices based on the charging output level selected by the user. For another example, the reverse charging application can also display a notification on the user interface indicating that the battery of electronic device 100 is low, or a notification indicating that reverse charging has stopped due to low battery. This prevents the electronic device 100 from running out of power during reverse charging.

[0100] The application framework layer provides APIs and programming frameworks for applications in the application layer. The application framework layer includes some predefined functions.

[0101] As shown in FIG2B , the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, an activity manager, and the like.

[0102] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.

[0103] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0104] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.

[0105] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including answering, hanging up, etc.).

[0106] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0107] The Notification Manager allows applications to display notification information in the status bar (such as the pull-down notification bar). It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the Notification Manager is used to notify the completion of downloads, message reminders, etc. The Notification Manager can also be used to display notifications in the form of icons or scrolling text in the status bar at the top of the system, such as notifications from applications running in the background, or notifications that appear on the screen in the form of dialog windows. For example, text messages can be displayed in the status bar, prompts can be sounded, electronic devices can vibrate, indicator lights can flash, etc.

[0108] The Activity Manager is responsible for managing activities, starting, switching, and scheduling components in the system, as well as managing and scheduling applications. The Activity Manager can be called by upper-level applications to open corresponding activities.

[0109] In some embodiments, the application framework layer may further include a gesture recognition module. The gesture recognition module may be used to identify user operations on the screen of the electronic device 100, such as a single-finger click, a single-finger swipe up, a single-finger swipe down, and the like. The gesture recognition module may send information about the recognized gesture to the accessibility service. The accessibility service may then provide corresponding feedback based on the user's gesture, such as switching focus and reading a description of the node that has switched focus.

[0110] Android Runtime includes core libraries and a virtual machine. Android Runtime is responsible for scheduling and management of the Android system.

[0111] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.

[0112] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.

[0113] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0114] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.

[0115] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0116] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0117] A 2D graphics engine is a drawing engine for 2D drawings.

[0118] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.

[0119] FIG2C exemplarily shows a structural diagram of another electronic device 100 provided in the present application.

[0120] As shown in FIG. 2C , the electronic device 100 may include a communication module, a storage module, a processing module, a charging protocol module, and a reverse charging module.

[0121] The communication module can be used for the electronic device 100 to establish a communication connection with other electronic devices and transmit data. The communication module can refer to the mobile communication module 150 and the wireless communication module 160 shown in FIG. 2A .

[0122] The storage module can be used to store computer programs. The processing module executes the computer program in the storage module to implement the reverse charging method of the present application. In some embodiments, the storage module can also be used to store the charging output capabilities of multiple gears supported by the electronic device 100. For example, the charging output capabilities of these multiple gears may include: 9V / 3A (i.e. 27W), 9V / 2A (i.e. 18W), 9V / 1.5A (i.e. 13.5W), 5V / 1.5A (i.e. 7.5W), and so on. The charging output capability of the electronic device 100 may vary with the change of the battery power. The corresponding relationship between the charging output capability of the above-mentioned different gears and the battery power can be stored in the storage module. The corresponding relationship can refer to the following Table 1:

[0123] Table 1

[0124] The corresponding relationship between the charging output capability of different gears and the battery power level may include the corresponding relationship between the maximum reverse charging voltage and the maximum reverse charging current of different gears and the battery power level. Optionally, the corresponding relationship between the charging output capability of different gears and the battery power level may include the corresponding relationship between the maximum reverse charging power of different gears and the battery power level. The charging output capability of the electronic device 100 may represent the output upper limit of the electronic device 100 when powered.

[0125] As can be seen from Table 1 above, when the battery charge of the electronic device 100 is greater than 90% and less than or equal to 100%, the charging output capacity of the electronic device 100 can be 9V / 3A. The maximum reverse charging voltage supported by the electronic device 100 can be 9V, and the maximum reverse charging current can be 3A, that is, the maximum reverse charging power supported by the electronic device 100 is 27W. When the battery charge of the electronic device 100 is greater than 80% and less than or equal to 90%, the charging output capacity of the electronic device 100 can be 9V / 2A. The maximum reverse charging voltage supported by the electronic device 100 can be 9V, and the maximum reverse charging current can be 2A, that is, the maximum reverse charging power supported by the electronic device 100 is 18W. When the battery charge of the electronic device 100 is greater than 65% and less than or equal to 80%, the charging output capacity of the electronic device 100 can be 9V / 1.5A. The maximum reverse charging voltage supported by the electronic device 100 can be 9V, and the maximum reverse charging current can be 1.5A, that is, the maximum reverse charging power supported by the electronic device 100 is 13.5W. When the battery level of the electronic device 100 is greater than 0% and less than or equal to 65%, the charging output capacity of the electronic device 100 can be 5V / 1.5A. The maximum reverse charging voltage supported by the electronic device 100 can be 5V, and the maximum reverse charging current can be 1.5A, that is, the maximum reverse charging power supported by the electronic device 100 is 7.5W.

[0126] During reverse charging, the electronic device 100 can provide a charging output within its charging output capability. The charging output within the charging output capability of the electronic device 100 may include: the output voltage of the electronic device 100 is less than or equal to the maximum reverse charging voltage supported by the electronic device 100, and the output current of the electronic device 100 is less than or equal to the maximum reverse charging current supported by the electronic device 100. For example, the charging output capability of the electronic device 100 is 9V / 2A. The electronic device 100 can output a voltage less than or equal to 9V and a current less than or equal to 2A to the electronic device 101 to charge the electronic device 101.

[0127] Based on the above correspondence between the charging output capability and the battery power, the electronic device 100 can determine the current charging output capability of the electronic device 100 after the battery power changes.

[0128] It should be noted that, when the electronic device 100 is charging other electronic devices based on the charging output capacity of a certain gear, the reverse charging voltage and / or reverse charging current of the electronic device 100 can be dynamically changed. For example, as the battery power of the electronic device 100 decreases, the reverse charging voltage of the electronic device 100 for charging other electronic devices can be reduced from 9V to 8.8V, or 8.5V, etc. For another example, when the reverse charging current of the electronic device 100 for charging other electronic devices is 3A, if the charging current requested by the other electronic device changes to 2A, the electronic device 100 can change the reverse charging current from 3A to 2A.

[0129] The above correspondence between the charging output capacity and the battery power is only an example of the present application and should not be construed as limiting the present application. The storage module may store more or fewer levels of charging output capacity.

[0130] In some embodiments, in addition to the battery power, the charging output capability of the electronic device 100 may also be related to battery status such as battery voltage and battery temperature. Among them, the lower the battery voltage of the electronic device 100, the smaller the charging output capability of the electronic device 100 may be (for example, the maximum reverse charging voltage supported is reduced and / or the maximum reverse charging current supported is reduced). The higher the battery temperature of the electronic device 100, the lower the charging output capability of the electronic device 100. The embodiment of the present application does not limit the method for determining the charging output capability of the electronic device 100.

[0131] Here, a method for determining the charging output capability of the electronic device 100 according to the battery temperature and the battery power is exemplified.

[0132] When the battery temperature of the electronic device 100 is lower than a preset temperature threshold, the electronic device 100 can determine the charging output capacity of the electronic device 100 based on the correspondence between the battery power and the charging output capacity shown in Table 1 above. When the battery temperature of the electronic device 100 is greater than or equal to the preset temperature threshold, the electronic device 100 can determine that the charging output capacity of the electronic device 100 is the charging output capacity A. In the case where the charging output capacity of the electronic device 100 is the charging output capacity A, the electronic device 100 can use a 5V boost chip to charge the electronic device 101 at a low power. This can reduce the situation where the reverse charging power is too high, causing the battery temperature of the electronic device 100 to be too high, thereby damaging the electronic device 100. For example, the charging output capacity A can be 5V / 1.5A. The embodiment of the present application does not limit the charging output capacity A.

[0133] The temperature threshold may be 45° C., etc. The embodiment of the present application does not limit the value of the temperature threshold.

[0134] In some embodiments, the electronic device 100 may first determine whether the battery temperature of the electronic device 100 is less than a preset temperature threshold. Then, if the battery temperature is less than the preset temperature threshold, the electronic device 100 may determine the charging output capacity of the electronic device 100 based on the battery power of the electronic device 100. Alternatively, the electronic device 100 may first determine the battery power range in which the battery power of the electronic device 100 is currently located, then determine whether the battery temperature of the electronic device 100 is less than the temperature threshold, and ultimately determine the charging output capacity of the electronic device 100.

[0135] The embodiment of the present application does not limit the method by which the electronic device 100 determines the charging output capability of the electronic device 100 based on one or more of the battery power, battery temperature, and battery voltage.

[0136] The charging protocol module can be used for the electronic device 100 to negotiate the charging voltage and charging current when being charged or charging other electronic devices. For example, before the electronic device 100 receives charging input from the charger, the electronic device 100 can negotiate with the charger through the charging protocol module the charging voltage and charging current that the electronic device 100 can receive. In this way, the charger can charge the electronic device 100 according to the charging voltage and charging current that the electronic device 100 can receive, so as to avoid damage to the electronic device 100 caused by excessive charging voltage and / or charging current during the charging process. For another example, when the electronic device 100 is charging the electronic device 101, the electronic device 100 can first negotiate with the electronic device 101 through the charging protocol module on the reverse charging voltage and reverse charging current. The reverse charging voltage does not exceed the maximum reverse charging voltage supported by the electronic device 100, and does not exceed the charging voltage that the electronic device 101 can receive. The reverse charging current does not exceed the maximum reverse charging current supported by the electronic device 100, and does not exceed the charging current that the electronic device 101 can receive.

[0137] The charging protocol module may be a module based on the power delivery (PD) charging protocol, i.e., a PD module. Alternatively, the charging protocol module may be a module based on the quick charge (QC) protocol, or a module based on a charging protocol such as the super charge protocol (SCP). The embodiment of the present application does not limit the types of charging protocols supported by the charging protocol module.

[0138] The reverse charging module can be used to monitor the battery level of the electronic device 100 and determine the current charging output capacity of the electronic device 100 based on the corresponding relationship between the charging output capacity and the battery level in the storage module. The reverse charging module can also be used to obtain the charging output capacity requested by the device to be charged (such as the electronic device 101) from the charging protocol module, and then control the charging chip to draw power from the battery to charge the device to be charged based on the charging output capacity of the electronic device 100 and the charging output capacity requested by the device to be charged.

[0139] The reverse charging module can adjust the reverse charging voltage and / or reverse charging current according to the charging output capability of the electronic device 100 to maximize the reverse charging efficiency without continuous charging, thereby improving the user's reverse charging experience.

[0140] The structure shown in FIG2C does not constitute a specific limitation on the electronic device 100. In some embodiments, the electronic device 100 may further include more or fewer modules shown in FIG2C, or combine or separate some modules.

[0141] The structure of the electronic device 101 shown in FIG1 may refer to the structure of the electronic device 100 shown in FIG2A to FIG2C . The electronic device 101 may include more or fewer components than the electronic device 100. The structure of the electronic device 101 is not further described in this embodiment of the application.

[0142] FIG3A exemplarily shows a schematic diagram of another communication system provided by the present application.

[0143] As shown in Figure 3A, the communication system may include an electronic device 100 and an electronic device 101. The electronic device 100 may include a charging protocol chip, a buck charging chip, a direct charging chip, a 5V boost chip, a battery, and an interface. Among them, the circuits connecting the buck charging chip, the direct charging chip, the 5V boost chip, and the interface may be respectively provided with switches. The electronic device 101 may include a charging protocol chip, a buck charging chip, a direct charging chip, a battery, and an interface.

[0144] The charging protocol chip can be used by electronic devices to negotiate information such as the power supply device, the device to be charged, and the charging output based on the charging protocol. For example, electronic device 100 and electronic device 101 can use their respective charging protocol chips to negotiate the reverse charging voltage and reverse charging current.

[0145] In some embodiments, the charging protocol chip in electronic device 100 and electronic device 101 can be a PD chip based on the PD charging protocol. Since a large number of electronic devices currently on the market use the PD charging protocol, this application uses the PD protocol to negotiate reverse charging power during reverse charging, and can reverse charge any electronic device that supports the PD protocol. This can improve the versatility of the reverse charging method of this application.

[0146] The buck charger chip receives external charging input and supplies power to the battery. It steps down the received voltage to ensure it remains within the battery's operating voltage range. Therefore, the input voltage of the buck charger chip is higher than the battery voltage. The buck charger chip also boosts the received current and outputs it to the battery. This ensures that the input power and output power of the buck charger chip are equal.

[0147] The direct charging chip can be used to receive external charging input and power the battery. The direct charging chip can be a chip commonly used for high-voltage direct charging of the battery. In some embodiments, the direct charging chip can be a switched capacitor direct charger chip (switched capacitor direct charger), which can be referred to as an SC chip. The direct charging chip can reduce the received voltage to within the operating voltage range of the battery and increase the received current. In other words, the input voltage of the direct charging chip is higher than the battery voltage, but the input current is lower than the battery current.

[0148] Among them, the direct charging chip is more sensitive to changes in battery voltage than the step-down charging chip. When the input voltage of the step-down charging chip is within the preset operating voltage range, the step-down charging chip can work normally and charge the battery based on the external charging input. The input voltage of the step-down charging chip may not be affected by changes in battery voltage. The normal operation of the direct charging chip requires ensuring that the input voltage of the direct charging chip and the battery voltage meet a preset relationship. The input voltage of the direct charging chip will be affected by changes in battery voltage. In the scenario where the electronic device 100 charges the electronic device 101, the input voltage on the electronic device 101 side is provided by the electronic device 100 and is related to the battery status of the electronic device 100. The input voltage on the electronic device 101 side is difficult to change flexibly to adapt to changes in the battery voltage in the electronic device 101.

[0149] Therefore, when electronic device 100 is charging electronic device 101, electronic device 101 can turn on the switch between the step-down charging chip and the interface, connect the path between the step-down charging chip and the interface, and charge the battery through the step-down charging chip. When the path between the step-down charging chip and the interface is connected, the switch between the direct charging chip and the interface in electronic device 101 can be turned off, disconnecting the path between the direct charging chip and the interface.

[0150] In some embodiments, the step-down charging chip may include multiple gears of operating voltage, so that the battery can be charged according to input voltages of different sizes. For example, the step-down charging chip may include an operating voltage range of 7V-9V, and an operating voltage range of 4.5V-5.5V. The operating voltage range of 7V-9V can also be called a 9V working gear. The operating voltage range of 4.5V-5.5V can also be called a 5V working gear. In the process of electronic device 100 charging electronic device 101, if the output voltage of electronic device 100 is within the range of 7V-9V, electronic device 100 needs to negotiate the charging power with electronic device 101 in advance, so that the step-down charging chip of electronic device 101 adjusts the operating voltage range to the gear corresponding to 7V-9V. In this way, the step-down charging chip in electronic device 101 can work normally and charge the battery of electronic device 101. If the output voltage of the electronic device 100 is reduced to the range of 4.5V-5.5V, the electronic device 100 needs to negotiate the charging power with the electronic device 101 in advance so that the step-down charging chip of the electronic device 101 can adjust the operating voltage range to the gear corresponding to 4.5V-5.5V. Otherwise, if the output voltage of the electronic device 100 is reduced to below 7V, and the step-down charging chip in the electronic device 101 is still in the operating voltage range of 7V-9V, the working gear of the step-down charging chip in the electronic device 101 does not match the charging output of the electronic device 100, and the electronic device 101 will be disconnected from charging. The above embodiment can avoid the situation where the step-down charging chip of the electronic device 101 is still in the gear corresponding to 7V-9V after the output voltage of the electronic device 100 is reduced, resulting in a disconnection of charging.

[0151] In some embodiments, the direct charging chip has a reverse output capability and can output the battery's electrical energy to other external devices. The direct charging chip can also be called a bidirectional charging chip. The electronic device 100 can use the direct charging chip to implement a reverse charging function. During reverse output, the direct charging chip can raise the battery voltage according to a preset ratio. This can improve the efficiency of reverse charging. For example, the above-mentioned preset ratio can be 1:2. If the battery voltage of the electronic device 100 is 4.5V, the direct charging chip of the electronic device 100 can raise the battery voltage to 9V and output it. In this way, the electronic device 100 can charge the electronic device 101 with an output voltage of 9V. The embodiment of the present application does not limit the value of the above-mentioned preset ratio.

[0152] The 5V boost chip can be used to output the battery's electrical energy to other external devices. That is to say, in addition to the direct charging chip, the electronic device 100 can use the 5V boost chip to achieve the reverse charging function. The 5V boost chip can also be called a reverse charging chip. During reverse charging, the 5V boost chip can also boost the battery voltage and output it. Compared with the direct charging chip, the 5V boost chip boosts the battery voltage to a lesser extent. For example, the output voltage of the 5V boost chip can be less than or equal to 5V. Based on the 5V boost chip, the electronic device 100 can charge the electronic device 101 with an output voltage less than or equal to 5V. Among them, the output voltage and output current of the 5V boost chip may not decrease as the battery voltage of the electronic device 100 decreases. For example, the output voltage of the 5V boost chip can be basically stable at 5V, and the output current can be basically stable at 1.5A.

[0153] In some embodiments, the electronic device 100 can select a direct charging chip or a 5V boost chip for reverse charging according to the battery status. For example, when the battery voltage is greater than or equal to the preset voltage, the electronic device 100 can use a direct charging chip to charge the electronic device 101. When the battery voltage is less than the preset voltage, the electronic device 100 can use a 5V boost chip for reverse charging. The above-mentioned preset voltage can be 3.5V. The embodiment of the present application does not limit the value of the above-mentioned preset voltage. Optionally, when the battery power is greater than the preset power, the electronic device 100 can use a direct charging chip to charge the electronic device 101. When the battery power is less than the preset power, the electronic device 100 can use a 5V boost chip to charge the electronic device 101. The above-mentioned preset power can be 65%. The embodiment of the present application does not limit the value of the above-mentioned preset power.

[0154] Among them, the selection of a direct charging chip or a 5V boost chip for reverse charging based on the battery voltage can better reduce the situation of charging interruption. It is understandable that there may be errors in the battery power of the electronic device 100. When the battery power has not dropped to less than the above-mentioned preset power, the battery voltage may be relatively small. For example, when the battery power is higher than 65%, the battery voltage of the electronic device 100 is already lower than 3.5V. The direct charging chip of the electronic device 100 increases the battery voltage and outputs it. The output voltage may not be within the operating range of 7V-9V of the step-down charging chip in the electronic device 101. This may cause charging to be disconnected.

[0155] As can be seen, during reverse charging, the output voltage of the direct charging chip is higher than the output voltage of the 5V boost chip. Therefore, the electronic device 100 can achieve high-power reverse charging through the direct charging chip and normal-power reverse charging through the 5V boost chip.

[0156] The interface between electronic device 100 and electronic device 101 may be a USB interface. The embodiment of the present application does not limit the type of this interface. The interface of electronic device 100 may be connected to the interface of electronic device 101 via a cable. The charging protocol chips of electronic device 100 and electronic device 101 may communicate based on the above interface. Charging of electronic device 101 by electronic device 100 may also be implemented based on the above interface.

[0157] As shown in Figure 3A, an electronic device can choose a step-down charging chip or a direct charging chip to charge the battery in the electronic device. When the step-down charging chip is selected to charge the battery, the switch between the step-down charging chip and the interface can be turned on, and the path between the step-down charging chip and the interface is connected. The switch between the direct charging chip and the interface can be turned off, and the path between the direct charging chip and the interface is disconnected. When the direct charging chip is selected to charge the battery, the switch between the direct charging chip and the interface can be turned on, and the path between the direct charging chip and the interface is connected. The switch between the step-down charging chip and the interface can be turned off, and the path between the step-down charging chip and the interface is disconnected.

[0158] Electronic device 100 can choose to use a direct charging chip or a 5V boost chip to charge electronic device 101. When the direct charging chip is selected, the switch between the direct charging chip and the interface can be turned on, and the path between the direct charging chip and the interface is connected. The switch between the 5V boost chip and the interface can be turned off, and the path between the 5V boost chip and the interface is disconnected. When the 5V boost chip is selected, the switch between the 5V boost chip and the interface can be turned on, and the path between the 5V boost chip and the interface is connected. The switch between the direct charging chip and the interface can be turned off, and the path between the direct charging chip and the interface is disconnected.

[0159] FIG3B exemplarily shows a schematic diagram of another communication system provided by the present application.

[0160] As shown in FIG3B , the communication system may include an electronic device 100 and an electronic device 101. The electronic device 100 may include a charging protocol module, a fast reverse charging module, a normal reverse charging module, and a battery. The electronic device 101 may include a charging protocol module, a charging module, and a battery.

[0161] The charging protocol module can be used by electronic devices to negotiate information such as the power supply device, the device to be charged, and the charging output based on the charging protocol. For example, electronic device 100 and electronic device 101 can use their respective charging protocol modules to negotiate the reverse charging voltage and reverse charging current. The charging protocol used by the charging protocol module can be a charging protocol such as the PD charging protocol, the QC protocol, or the SCP protocol.

[0162] Both the fast reverse charging module and the ordinary reverse charging module can be used to output the electrical energy of the battery in the electronic device 100 to other external devices. Among them, the electronic device 100 can use the fast reverse charging module to implement the reverse charging function when the battery status meets the preset conditions. The fast reverse charging module can perform high-power reverse charging for other devices. When the battery status does not meet the preset conditions, the electronic device 100 can use the ordinary reverse charging module to implement the reverse charging function. The ordinary reverse charging module can perform low-power reverse charging for other devices. In other words, the output power of the fast reverse charging module is higher than the output power of the ordinary reverse charging module. The electronic device 100 can use the fast reverse charging module or the ordinary reverse charging module to charge other devices according to the battery status. The above-mentioned preset conditions may include one or more of the following: the battery voltage is greater than or equal to the preset voltage (such as 3.5V, etc.), the battery temperature is lower than the preset temperature, and the battery power is greater than the preset power (such as 65%).

[0163] The method for implementing the reverse charging function of the above-mentioned fast reverse charging module can be referred to the introduction of the direct charging chip shown in Figure 3A. The method for implementing the reverse charging function of the above-mentioned ordinary reverse charging module can be referred to the introduction of the 5V boost chip shown in Figure 3A. No further details will be given here.

[0164] The charging module in the electronic device 101 can be used to receive external charging input to supply power to the battery.

[0165] The components included in the electronic device 100 shown in Figures 3A and 3B are only exemplary illustrations of the present application and should not constitute a limitation to the present application.

[0166] Based on the above communication system and device structure, the reverse charging method provided by this application is introduced below.

[0167] FIG4 exemplarily shows a flow chart of a reverse charging method.

[0168] As shown in FIG. 4 , the method may include steps S411 to S423 .

[0169] S411 : The electronic device 100 establishes a connection with the electronic device 101 for charging.

[0170] In the embodiment of the present application, the connection for charging may be the wired connection shown in FIG. 1 .

[0171] S412 : Determine whether the electronic device 100 charges the electronic device 101 .

[0172] In some embodiments, electronic device 100 and electronic device 101 can determine which device is the power supply device and which device is the device to be charged based on the user's selection. For example, electronic device 100 can receive a user operation to set electronic device 100 as the power supply device. Then, electronic device 100 can communicate with electronic device 101 via a charging protocol to notify electronic device 101 that it is the device to be charged. The present embodiment of the application does not limit the method for determining the power supply device and the device to be charged in the reverse charging scenario.

[0173] S413: Determine whether the charging output capacity of the electronic device 100 is greater than charging output capacity 1.

[0174] In the embodiment of the present application, the electronic device 100 can determine the current charging output capability of the electronic device 100 based on the battery status of the electronic device 100. The battery status of the electronic device 100 may include the battery level. Based on the corresponding relationship between the charging output capability and the battery level (see Table 1 above), the electronic device 100 can determine the current charging output capability of the electronic device 100.

[0175] The charging output capacity 1 may be a critical charging output capacity when the electronic device 100 selects to use the direct charging chip or the 5V boost chip shown in FIG. 3A for reverse charging.

[0176] In some embodiments, the charging output capability of the electronic device 100 may include the maximum reverse charging voltage and maximum reverse charging current supported by the electronic device 100. The charging output capability 1 described above may include voltage 1 and current 1. For example, voltage 1 may be 5V. Current 1 may be 1.5A. The embodiment of the present application does not limit the size of the charging output capability 1.

[0177] Determining whether the charging output capability of the electronic device 100 is greater than the charging output capability 1 may include determining whether the maximum reverse charging voltage supported by the electronic device 100 is greater than the voltage 1.

[0178] If the maximum reverse charging voltage supported by the electronic device 100 is greater than the voltage 1, the electronic device 100 may execute the following step S414.

[0179] If the maximum reverse charging voltage supported by the electronic device 100 is less than or equal to the voltage 1, the electronic device 100 may execute the following step S417.

[0180] In some embodiments, the charging output capability of the electronic device 100 may include the maximum reverse charging power supported by the electronic device 100. The charging output capability 1 may include power 1. For example, power 1 may be the power corresponding to 5V / 1.5A, that is, 7.5W.

[0181] Determining whether the charging output capability of the electronic device 100 is greater than the charging output capability 1 may include determining whether the maximum reverse charging power supported by the electronic device 100 is greater than the power 1.

[0182] If the maximum reverse charging power supported by the electronic device 100 is greater than the power 1, the electronic device 100 may execute the following step S414.

[0183] If the maximum reverse charging power supported by the electronic device 100 is less than or equal to the power 1, the electronic device 100 may execute the following step S417.

[0184] It can be understood that the electronic device 100 determines whether the current charging output capacity of the electronic device 100 is greater than the charging output capacity 1 based on the corresponding relationship between the charging output capacity and the battery power, which can be equivalent to the electronic device 100 determining whether the battery power of the electronic device 100 is greater than the preset power. Among them, if the battery power is greater than the preset power, the electronic device 100 can use the direct charging chip to charge the electronic device 101. If the battery power is less than or equal to the preset power, the electronic device 100 can use a 5V boost chip to charge the electronic device 101. The above-mentioned preset power can be a value such as 65%. The embodiment of the present application does not limit the value of the above-mentioned preset power.

[0185] In some embodiments, the battery status may also include one or more items of status information, such as battery temperature and battery voltage. The electronic device 100 may determine the charging output capability of the electronic device 100 based on one or more of the battery level, battery temperature, and battery voltage. The lower the battery level, the lower the charging output capability of the electronic device 100. The higher the battery temperature, the lower the charging output capability of the electronic device 100. The lower the battery voltage, the lower the charging output capability of the electronic device 100.

[0186] In some embodiments, the charging output capability of the electronic device 100 can also be user-selectable. The electronic device 100 can determine the multiple charging output capabilities currently supported by the electronic device 100 based on the battery status of the electronic device 100. The electronic device 100 can provide the user with options corresponding to these multiple charging output capabilities. The electronic device 100 can use the user-selected charging output capability as the charging output capability of the electronic device 100. For example, the electronic device 100 supports charging output capabilities corresponding to 9V / 3A, 9V / 2A, 9V / 1.5A, and 5V / 1.5A. In response to the user selecting the charging output capability corresponding to 9V / 2A, the electronic device 100 can use the charging output capability corresponding to 9V / 2A as the current charging output capability of the electronic device 100. The electronic device 100 can charge other electronic devices at a charging output within the aforementioned user-selected charging output capability.

[0187] Optionally, step S413 may also be: determining whether the charging output capability of the electronic device 100 is a preset charging output capability.

[0188] From the above-mentioned correspondence between the charging output capability and the battery power, it can be seen that the charging output capability of the electronic device 100 may include the charging output capability of the 9V gear and the charging output capability of the 5V gear. If the current charging output capability of the electronic device 100 is the charging output capability of the 9V gear, the electronic device 100 can use the direct charging chip to charge other devices. If the current charging output capability of the electronic device 100 is not the charging output capability of the 9V gear, that is, the charging output capability of the 5V gear, the electronic device 100 can use the 5V boost chip to charge other devices. Therefore, the above-mentioned preset charging output capability can be the charging output capability of the 9V gear. The above-mentioned judgment of whether the charging output capability of the electronic device 100 is the preset charging output capability may include: judging whether the maximum reverse charging voltage supported by the electronic device 100 is 9V.

[0189] If the charging output capability of the electronic device 100 is the preset charging output capability, the electronic device 100 may execute the following step S414 .

[0190] If the charging output capability of the electronic device 100 is not the preset charging output capability, the electronic device 100 may execute the following step S417 .

[0191] In some embodiments, step S413 is optional. Specifically, after determining that the electronic device 100 is charging the electronic device 101, the electronic device 100 may determine the charging output capability of the electronic device 100 and execute step S414.

[0192] S414 : The electronic device 100 sends a message 1 to the electronic device 101 . The message 1 includes the charging output capability of the electronic device 100 .

[0193] In an embodiment of the present application, the message 1 may be used to inform the electronic device 101 of the charging output capability of the power supply device, so that the electronic device 101 selects the corresponding charging output capability to receive the charging input of the power supply device.

[0194] In some embodiments, the charging output capability of the electronic device 100 in Message 1 may include the maximum reverse charging voltage and maximum reverse charging current currently supported by the electronic device 100. For example, if the current charging output capability of the electronic device 100 is 9V / 2A, Message 1 may include content indicating that the electronic device 100 supports 9V / 2A power supply. Optionally, Message 1 may also include the reverse charging voltage and reverse charging current included in the charging output capability of other gears currently supported by the electronic device 100. The specific content of Message 1 is not limited in this embodiment of the application.

[0195] S415 : Determine whether the charging output capacity requested by the electronic device 101 is greater than charging output capacity 1.

[0196] In an embodiment of the present application, the electronic device 101 may send its requested charging output capability to the electronic device 100 according to message 1. The electronic device 100 may determine whether the charging output capability requested by the electronic device 101 is greater than the charging output capability 1. In some embodiments, the charging output capability requested by the electronic device 101 may specifically include the charging voltage and charging current requested by the electronic device 101. Generally, the charging output capability requested by the electronic device 101 is less than or equal to the current charging output capability of the electronic device 100. That is, the charging voltage requested by the electronic device 101 is generally less than or equal to the maximum reverse charging voltage currently supported by the electronic device 100, and the charging current requested by the electronic device 101 is generally less than or equal to the maximum reverse charging current currently supported by the electronic device 100.

[0197] The method for determining whether the charging output capacity requested by the electronic device 101 is greater than the charging output capacity 1 may refer to the introduction of the aforementioned step S413 .

[0198] If the charging output capacity requested by the electronic device 101 is greater than the charging output capacity rate 1, the electronic device 100 may execute the following step S416.

[0199] If the charging output capability requested by the electronic device 101 is less than or equal to the charging output capability 1, the electronic device 100 may execute the following step S417.

[0200] Optionally, step S415 may also be: determining whether the charging output capacity requested by the electronic device 101 is the preset charging output capacity. The above-mentioned preset charging output capacity may be a charging output capacity of a 9V gear. If the charging output capacity of the electronic device 100 and the charging output capacity requested by the electronic device 101 are both preset charging output capacities, the electronic device 100 may use a direct charging chip to charge the electronic device 101. If the charging output capacity requested by the electronic device 101 is not the preset charging output capacity, that is, the charging output capacity of the 5V gear, the electronic device 100 may use a 5V boost chip to charge the electronic device 101. Among them, the above-mentioned determination of the charging output capacity requested by the electronic device 101 may include: determining whether the charging voltage requested by the electronic device 101 is a preset voltage. The preset voltage may be 9V.

[0201] If the charging output capability requested by the electronic device 101 is the preset charging output capability, the electronic device 100 may execute the following step S416 .

[0202] If the charging output capability requested by the electronic device 101 is not the preset charging output capability, the electronic device 100 may execute the following step S417 .

[0203] S416 , the electronic device 100 charges the electronic device 101 with the charging output 1 , where the charging output 1 is greater than the output corresponding to the charging output capacity 1 .

[0204] In an embodiment of the present application, when the charging output capacity of the electronic device 100 is greater than the charging output capacity 1, and the charging output capacity requested by the electronic device 101 is greater than the charging output capacity 1, the electronic device 100 can charge the electronic device 101 with the charging output 1. Among them, the electronic device 100 can use the direct charging chip shown in Figure 3A or the fast reverse charging module shown in Figure 3B to charge the electronic device 101. The size of the above-mentioned charging output 1 can be determined by the charging output capacity requested by the electronic device 101 and the battery status of the electronic device 100. Charging output 1 is within the charging output capacity requested by the electronic device 101 and the charging output capacity of the electronic device 100.

[0205] The voltage included in charging output 1 may be less than or equal to the smaller value of the charging voltage requested by electronic device 101 and the maximum charging voltage supported by electronic device 100. The current included in charging output 1 may be less than or equal to the smaller value of the charging current requested by electronic device 101 and the maximum charging current supported by electronic device 100.

[0206] For example, when the charging output capability of the electronic device 100 is 9V / 2A and the charging output capability requested by the electronic device 101 is 9V / 1.5A, the electronic device 100 can charge the electronic device 101 with a charging voltage of 9V and a charging current of 1.5A. Alternatively, when the charging output capability of the electronic device 100 is 9V / 2A and the charging output capability requested by the electronic device 100 is 9V / 3A, the electronic device 100 can charge the electronic device 101 with a charging voltage of 9V and a charging current of 2A.

[0207] It should be noted that, during the process of the electronic device 100 charging the electronic device 101, the reverse charging voltage output by the electronic device 100 may be dynamically changed. For example, the reverse charging voltage output by the electronic device 100 may be obtained by raising the battery voltage by the direct charging chip in a ratio of 1:2. When the battery voltage of the electronic device 100 drops from 4.5V to 4.2V, the reverse charging voltage output by the electronic device 100 may drop from 9V to 8.4V. In other words, the actual power (or actual voltage) of the electronic device 100 charging the electronic device 101 may be lower than the charging power (or charging voltage) requested by the electronic device 101.

[0208] When the charging output capacity requested by the electronic device 101 is greater than the charging output capacity of the electronic device 100 , the electronic device 100 may charge the electronic device 101 at the charging output capacity of the electronic device 100 .

[0209] In addition, during the process of the electronic device 100 charging the electronic device 101, the reverse charging current output by the electronic device 100 may also change dynamically. When the battery power of the electronic device 100 decreases, the electronic device 100 may reduce the reverse charging current. Optionally, when the charging current requested by the electronic device 101 decreases, the electronic device 100 may reduce the reverse charging current. For example, during reverse charging, if the current required by the electronic device 101 is reduced from 1.5A to 1.2A, the electronic device 100 may reduce the output reverse charging current from 1.5A to 1.2A. The embodiment of the present application does not limit the method for the electronic device 100 to reduce the reverse charging current.

[0210] That is, during reverse charging, the charging output provided by the electronic device 100 to the electronic device 101 may change dynamically.

[0211] S417 , the electronic device 100 charges the electronic device 101 with the charging output 2 , where the charging output 2 is less than or equal to the output corresponding to the charging output capability 1 .

[0212] In an embodiment of the present application, when the charging output capacity of the electronic device 100 is less than or equal to the charging output capacity 1, or the charging output capacity requested by the electronic device 101 is less than or equal to the charging output capacity 1, the electronic device 100 can charge the electronic device 101 with the charging output 2. Among them, the electronic device 100 can use the 5V boost chip shown in Figure 3A or the ordinary reverse charging module shown in Figure 3B to charge the electronic device 101. The size of the above-mentioned charging output 2 can be determined by the charging output capacity requested by the electronic device 101 and the battery status of the electronic device 100. For example, the charging output capacity may include an output voltage less than or equal to 5V and an output current less than or equal to 1.5A.

[0213] In some embodiments, before the electronic device 100 charges the electronic device 101 with charging output 2, the electronic device 100 and the electronic device 101 may negotiate the charging output. Specifically, the electronic device 100 may send the charging output capability of the electronic device 100 (such as 5V / 1.5A) to the electronic device 101. The electronic device 101 may send the charging output capability requested by the electronic device 101 to the electronic device 100. When the charging output capability requested by the electronic device 101 is less than or equal to the charging output capability of the electronic device 100, the electronic device 100 may charge the electronic device 101 with the charging output capability requested by the electronic device 101. For example, the charging output capability requested by the electronic device 101 is 5V / 1A. Then, the above-mentioned charging output 2 may be 5V / 1A. The electronic device 100 may charge the electronic device 101 with a charging output of 5V / 1A.

[0214] In some embodiments, after determining that the electronic device 100 is a power supply device and the electronic device 101 is a device to be charged, the electronic device 100 may first use the 5V boost chip shown in FIG3A or the ordinary reverse charging module shown in FIG3B to perform low-power charging on the electronic device 101. Then, the electronic device 100 may perform steps S413 to S417 to determine whether to switch to using the direct charging chip shown in FIG3A or the fast reverse charging module shown in FIG3B to perform high-power charging on the electronic device 101, or to continue to charge the electronic device 101 at low power.

[0215] S418 : Obtain the battery status of the electronic device 100 .

[0216] After the electronic device 100 starts to charge the electronic device 101 , the electronic device 100 may obtain the battery status of the electronic device 100 at intervals (eg, 3 seconds, 5 seconds, 10 seconds, etc.).

[0217] S419 : Determine whether the charging output capacity of the electronic device 100 has decreased based on the battery status of the electronic device 100 .

[0218] In some embodiments, the electronic device 100 can determine whether the charging output capacity of the electronic device 100 has decreased based on the corresponding relationship between the charging output capacity and the battery power level shown in Table 1. For example, when the battery power level of the electronic device 100 decreases from 100% to 95%, the charging output capacity of the electronic device 100 does not decrease and remains at the charging output capacity corresponding to 9V / 3A. When the battery power level of the electronic device 100 decreases from 95% to 85%, the charging output capacity of the electronic device 100 decreases from the charging output capacity corresponding to 9V / 3A to the charging output capacity corresponding to 9V / 2A.

[0219] If the charging output capability of the electronic device 100 decreases, the electronic device 100 may execute the following step S420 .

[0220] If the charging output capability of the electronic device 100 has not decreased, the electronic device 100 may execute step S418 again and continue to charge the electronic device 101 according to the embodiment in step S416.

[0221] S420 : The electronic device 100 sends a message 2 to the electronic device 101 . The message 2 includes the charging output capability of the electronic device 100 . The charging output capability of the electronic device 100 is reduced to the charging output capability 2 .

[0222] In the embodiment of the present application, if the charging output capability of the electronic device 100 decreases to charging output capability 2, the electronic device 100 can negotiate the charging output again with the electronic device 101. The above message 2 can refer to the introduction of the above message 1.

[0223] For example, if the charging output capability of electronic device 100 decreases from 9V / 3A to 9V / 2A, electronic device 100 does not support the charging current exceeding 2A requested by electronic device 101. Message 2 may include content indicating that electronic device 100 supports 9V / 2A power supply.

[0224] S421 : Determine whether the charging output capacity requested by the electronic device 101 is less than or equal to charging output capacity 2.

[0225] In this embodiment of the present application, the electronic device 100 may send its requested charging output capability to the electronic device 100 according to message 2. If the charging output capability requested by the electronic device 100 is less than or equal to charging output capability 2, the electronic device 100 may execute the following step S422. If the charging output capability requested by the electronic device 100 is greater than charging output capability 2, the electronic device 100 may execute the following step S423.

[0226] Among them, the charging output capacity requested by the electronic device 101 is less than or equal to the charging output capacity of the electronic device 100, which may include: the charging voltage requested by the electronic device 101 is less than or equal to the maximum reverse charging voltage supported by the electronic device 100, and the charging current requested by the electronic device 101 is less than or equal to the maximum reverse charging current supported by the electronic device 100.

[0227] S422 : The electronic device 100 charges the electronic device 101 with a charging output 3 , where the charging output 3 is less than or equal to the output corresponding to the charging output capability 2 .

[0228] In the embodiment of the present application, if the charging output capability of the electronic device 100 is charging output capability 2, and the charging output capability requested by the electronic device 101 is less than or equal to charging output capability 2, the electronic device 100 can charge the electronic device 101 at charging output 3. Charging output 3 is a charging output within charging output capability 2.

[0229] In some embodiments, when the charging output capacity of the electronic device 100 drops to less than or equal to the charging output capacity 1, the electronic device 100 may switch from using the direct charging chip shown in FIG3A to using the 5V boost chip to charge the electronic device 101. For example, if the charging output capacity 2 is 5V / 1.5A, the electronic device 100 may disconnect the path between the direct charging chip and the interface shown in FIG3A and connect the path between the 5V boost chip and the interface, thereby charging the electronic device 101 through the 5V boost chip.

[0230] S423 : The electronic device 100 charges the electronic device 101 based on the charging output capability of the electronic device 100 and the charging output capability requested by the electronic device 101 .

[0231] In the embodiment of the present application, when electronic device 100 and electronic device 101 negotiate charging output, if the charging output capacity requested by electronic device 101 is greater than the charging output capacity of electronic device 100, electronic device 100 charges electronic device 101 based on the charging output capacity of electronic device 100 and the charging output capacity requested by electronic device 101. The charging output of electronic device 100 may be less than or equal to the output corresponding to the charging output capacity of electronic device 100, and also less than or equal to the output corresponding to the charging output capacity requested by electronic device 101.

[0232] The charging output capacity requested by electronic device 101 is greater than the charging output capacity of electronic device 100, which may include: the charging voltage requested by electronic device 101 is greater than the maximum reverse charging voltage supported by electronic device 100, and / or the charging current requested by electronic device 101 is greater than the maximum reverse charging current supported by electronic device 100.

[0233] For example, the charging output capability of electronic device 100 is 5V / 1.5A. If the charging output capability requested by electronic device 101 is 9V / 2A, electronic device 100 can charge electronic device 101 at a charging output of 5V / 1.5A. If the charging output capability requested by electronic device 101 is 9V / 1A, electronic device 100 can charge electronic device 101 at a charging output of 5V / 1A.

[0234] Step S423 is optional. In some embodiments, if the charging output capacity requested by electronic device 101 is greater than the charging output capacity of electronic device 100, electronic device 100 may stop charging electronic device 101 or charge electronic device 101 according to the lowest charging output capacity (e.g., 5V / 1.5A).

[0235] In some embodiments, after determining that the electronic device 100 is charging the electronic device 101 through the above step S412, the electronic device 100 may determine whether the charging output capacity of the electronic device 100 is less than the charging output capacity 3. If the charging output capacity of the electronic device 100 is less than the charging output capacity 3, the electronic device 100 may execute step S417. If the charging output capacity of the electronic device 100 is greater than or equal to the charging output capacity 3, the electronic device 100 may execute step S414. The above-mentioned charging output capacity 3 may be a charging output capacity of a 9V gear. Determining whether the charging output capacity of the electronic device 100 is less than the charging output capacity 3 may include: determining whether the maximum reverse charging voltage currently supported by the electronic device 100 is less than a preset voltage. The preset voltage may be 9V.

[0236] After the electronic device 100 sends the message 1 in the above step S414, it can receive the charging output capacity requested by the electronic device 101. The electronic device 100 can determine whether the charging output capacity requested by the electronic device 101 is less than the charging output capacity 3. If the charging output capacity requested by the electronic device 101 is less than the charging output capacity 3, the electronic device 100 can execute step S417. If the charging output capacity requested by the electronic device 101 is greater than or equal to the charging output capacity 3, the electronic device 100 can execute step S416. Determining whether the charging output capacity requested by the electronic device 101 is less than the charging output capacity 3 may include: determining whether the charging voltage requested by the electronic device 101 is less than a preset voltage. The preset voltage may be 9V.

[0237] It can be seen from the above method that the electronic device 100 can use the reverse boost output capability of the direct charging chip to increase the power of the electronic device 100 to charge the electronic device 101. In this way, the efficiency of reverse charging of the electronic device 100 can be improved without increasing the hardware cost. In addition, the battery voltage will gradually decrease as the battery discharges. The electronic device 100 can negotiate the charging output with the electronic device 101 according to the change in the charging output capability, thereby adjusting the reverse charging voltage and / or reverse charging current in a step-by-step manner. This can avoid the situation where the working gear of the charging chip that receives the charging input of the electronic device 101 does not match the charging output of the electronic device 100, resulting in charging interruption. Therefore, the above method can maximize the reverse charging efficiency without continuous charging, thereby improving the user's reverse charging experience.

[0238] FIG5 exemplarily shows a flow chart of a reverse charging method.

[0239] As shown in FIG. 5 , the method may include steps S511 to S529 .

[0240] S511: The charging protocol module of the electronic device 100 detects a reverse charging start event.

[0241] In some embodiments, the charging protocol module detecting the reverse charging start event may include: the charging protocol module detecting that an interface of the electronic device 100 is connected to another electronic device through a cable, and the electronic device 100 is a power supply device.

[0242] S512: The charging protocol module of the electronic device 100 sends a message to the reverse charging module indicating that the device to be charged is connected.

[0243] S513 : The reverse charging module of the electronic device 100 detects that the charging output capacity of the electronic device 100 is greater than the charging output capacity 1.

[0244] The method for the electronic device 100 to determine its charging output capability and the method for determining whether the charging output capability of the electronic device 100 is greater than the charging output capability 1 can refer to the introduction of step S413 shown in FIG. 4 .

[0245] In some embodiments, when the charging output capacity of the electronic device 100 is greater than the charging output capacity 1, the electronic device 100 can activate a high-power reverse charging circuit to charge other electronic devices. When the charging output capacity of the electronic device 100 is less than or equal to the charging output capacity 1, the electronic device 100 can activate a low-power reverse charging circuit to charge other electronic devices. The high-power reverse charging circuit may include a path from the direct charging chip of the electronic device 100 shown in Figure 3A to the interface. The low-power reverse charging circuit may include a path from the 5V boost chip of the electronic device 100 shown in Figure 3A to the interface.

[0246] S514: The reverse charging module of the electronic device 100 sends the charging output capability of the electronic device 100 to the charging protocol module.

[0247] S515 : The electronic device 100 sends the charging output capability of the electronic device 100 to the electronic device 101 through the charging protocol module.

[0248] After determining the charging output capability of the electronic device 100 , the electronic device 100 may negotiate the charging output with the electronic device 101 through the charging protocol module.

[0249] In some embodiments, the charging output capability of the electronic device 100 may include information such as the maximum reverse charging voltage and the maximum reverse charging current currently supported by the electronic device 100 .

[0250] S516 : The electronic device 101 requests the electronic device 100 to charge with a charging output capacity greater than the charging output capacity 1 .

[0251] According to the charging output capability of the electronic device 100 , the electronic device 101 may select a charging output that is within the charging output capability of the electronic device 100 and required by the electronic device 101 to request reverse charging from the electronic device 100 .

[0252] In some embodiments, the charging output capability requested by the electronic device 101 may include the charging voltage and charging current requested by the electronic device 101 .

[0253] S517: The charging protocol module of the electronic device 100 sends a message to the reverse charging module to start the high-power reverse charging circuit.

[0254] Based on the charging request of the electronic device 101, the charging protocol module of the electronic device 100 can send a message to the reverse charging module to start the high-power reverse charging circuit. The message can include the charging output capacity requested by the electronic device 101.

[0255] S518 : The reverse charging module of the electronic device 100 turns on the high-power reverse charging circuit.

[0256] In some embodiments, the reverse charging module can control the switch between the direct charging chip and the interface shown in Figure 3A. Upon receiving the message to turn on the high-power reverse charging circuit, the reverse charging module can turn on the switch between the direct charging chip and the interface, thereby connecting the direct charging chip and the interface. In this way, the electronic device 100 can use the direct charging chip to increase the battery voltage of the electronic device 100 and output it to perform high-power charging for the electronic device 101, thereby improving the reverse charging efficiency.

[0257] S519 , the electronic device 100 charges the electronic device 101 with the charging output p1 through the reverse charging module, and the charging output p1 is greater than the output corresponding to the charging output capacity 1.

[0258] The reverse charging module may determine the charging output according to the charging output capability of the electronic device 100 and the charging output capability requested by the electronic device 101 .

[0259] Step S519 may refer to step S416 shown in Fig. 4. Charging output p1 may refer to charging output 1 in step S416.

[0260] In some embodiments, upon receiving the message of access to the device to be charged sent by the charging protocol module in step S512, the reverse charging module may first turn on the low-power reverse charging circuit to charge the electronic device 101. That is, the reverse charging module may first turn on the switch between the 5V boost chip and the interface shown in FIG3A. Further, after the above steps S513 to S517, the reverse charging module may switch the reverse charging circuit from a low-power reverse charging circuit to a high-power reverse charging circuit. That is, the reverse charging module may turn off the switch between the 5V boost chip and the interface shown in FIG3A, and turn on the switch between the direct charging chip and the interface.

[0261] S520 : The reverse charging module of the electronic device 100 determines, based on the battery status of the electronic device 100 , that the charging output capacity of the electronic device 100 has decreased to charging output capacity 2 , and that charging output capacity 2 is less than or equal to charging output capacity 1 .

[0262] The reverse charging module can monitor the battery status of the electronic device 100. The reverse charging module can obtain the battery status of the electronic device 100 at regular intervals and determine the charging output capacity of the electronic device 100 based on the battery status. The method for the reverse charging module to determine whether the charging output capacity of the electronic device 100 has decreased can be referred to the aforementioned step S419.

[0263] In some embodiments, when the charging output capacity of the electronic device 100 decreases, the electronic device 100 can negotiate the charging output again with the electronic device 101 through the charging protocol module. This can avoid the situation where the working gear of the charging chip receiving the charging input of the electronic device 101 does not match the charging output of the electronic device 100, resulting in charging interruption.

[0264] S521: The reverse charging module of the electronic device 100 sends the charging output capability of the electronic device 100 to the charging protocol module.

[0265] S522 : The electronic device 100 sends the charging output capability of the electronic device 100 to the electronic device 101 through the charging protocol module.

[0266] S523 : The electronic device 101 requests the electronic device 100 to charge at a charging output capacity that is less than or equal to the charging output capacity 2 .

[0267] S524: The charging protocol module of the electronic device 100 sends a message to the reverse charging module to start the low-power reverse charging circuit.

[0268] S525: The reverse charging module of the electronic device 100 turns off the high-power reverse charging circuit and turns on the low-power reverse charging circuit.

[0269] When the charging output capacity of the electronic device 100 drops to less than or equal to charging output capacity 1, the reverse charging module can switch the reverse charging circuit from a high-power reverse charging circuit to a low-power reverse charging circuit. In other words, the reverse charging module can close the switch between the direct charging chip and the interface shown in Figure 3A above, and open the switch between the 5V boost chip and the interface.

[0270] S526 , the electronic device 100 charges the electronic device 101 with the charging output p2 through the reverse charging module, and the charging output p2 is less than or equal to the output corresponding to the charging output capability 2.

[0271] Step S526 may refer to step S422 shown in FIG4 . The charging output p2 may refer to the charging output 3 in step S422 . The power p4 may refer to the power 5 in step S422 .

[0272] S527: The charging protocol module of the electronic device 100 detects the end of the reverse charging event.

[0273] In some embodiments, the reverse charging end event may include: the charging connection between the electronic device 100 and the electronic device 101 is disconnected (for example, the cable connecting the electronic device 101 at the interface of the electronic device 100 is unplugged), the electronic device 100 receives a user operation to end the reverse charging, and the electronic device 100 ends the reverse charging when the battery power is lower than a preset power level (such as 15%).

[0274] In some embodiments, the electronic device 100 may also determine whether to terminate reverse charging based on the battery status of the electronic device 101. Specifically, the electronic device 100 may terminate reverse charging when the battery level of the electronic device 101 is higher than the battery level of the electronic device 100. Alternatively, the electronic device 100 may terminate reverse charging when the battery level of the electronic device 101 is higher than a preset level (e.g., 50%).

[0275] S528: The charging protocol module of the electronic device 100 sends a message to the reverse charging module to end reverse charging.

[0276] S529: The reverse charging module of the electronic device 100 turns off the low-power reverse charging circuit.

[0277] In some embodiments, if the charging protocol module detects a reverse charging end event when the high-power reverse charging circuit is turned on, the reverse charging module can turn off the high-power reverse charging circuit according to the reverse charging end message in step S528.

[0278] As can be seen from the above method, the electronic device 100 can use the reverse boost output capability of the direct charging chip to increase the power of the electronic device 100 to charge the electronic device 101. This can improve the efficiency of reverse charging of the electronic device 100 without increasing the hardware cost. In addition, the battery voltage will gradually decrease as the battery discharges. The electronic device 100 can negotiate the charging power with the electronic device 101 according to the change in its charging output capability, thereby adjusting the reverse charging voltage and / or reverse charging current in a step-by-step manner. This can avoid the situation where the working gear of the charging chip that receives the charging input of the electronic device 101 does not match the charging output of the electronic device 100, resulting in charging interruption. Therefore, the above method can maximize the reverse charging efficiency without continuous charging, thereby improving the user's reverse charging experience. Among them, the charging protocol used by the electronic device 100 can be the PD charging protocol. The PD charging protocol is a charging protocol that is widely used in the market. Using the PD charging protocol can improve the versatility of the reverse charging method of the present application.

[0279] FIG6 exemplarily shows a flow chart of another reverse charging method.

[0280] As shown in FIG. 6 , the method may include steps S611 to S617 .

[0281] S611 : The electronic device 100 charges the electronic device 101 .

[0282] S612: Determine whether the power level of the electronic device 100 drops to power level range 1.

[0283] S613: Stop charging the electronic device 101.

[0284] S614 , determining whether the power level of the electronic device 100 drops to power level range 2 , where the power level in power level range 2 is greater than the power level in power level range 1 .

[0285] After the electronic device 100 starts charging the electronic device 101 , the electronic device 100 may monitor the battery power in real time.

[0286] If the battery level of electronic device 100 drops to level range 1, electronic device 100 may stop charging electronic device 101 to prevent electronic device 101 from running out of power due to reverse charging. For example, level range 1 may be greater than 0% and less than or equal to 15%. This embodiment of the application does not limit the range of level range 1.

[0287] If the battery level of the electronic device 100 drops to level range 2, the electronic device 100 may execute step S616 below to prompt the user to pay attention to the battery level of the electronic device 100. For example, level range 2 may be greater than 15% and less than or equal to 30%. The present embodiment of the application does not limit the range of level range 2.

[0288] If the battery power of the electronic device 100 is greater than the maximum value in the power range 2, the electronic device 100 may execute the following step S615.

[0289] S615: Determine whether the duration for the electronic device 100 to charge the electronic device 101 exceeds duration 1.

[0290] The value of duration 1 can be 30 minutes, 1 hour, etc. The embodiment of the present application does not limit the value of duration 1. The duration of the electronic device 100 charging the electronic device 101 and the duration of the battery discharging the electronic device 100.

[0291] S616 : Output prompt 1, where prompt 1 is used to remind the user to pay attention to the battery level of the electronic device 100 .

[0292] It can be seen that the electronic device 100 can output prompt 1 based on the battery power and reverse charging duration of the electronic device 100. Specifically, when the battery power of the electronic device 100 is low (such as falling to power range 2 below), or when the electronic device 100 charges the electronic device 100 for a long time (such as the reverse charging duration exceeds duration 1), the electronic device 100 can output prompt 1 to remind the user to pay attention to the power level of the electronic device 100. This can prevent the electronic device 100 from being discharged too much and failing to meet the user's battery life requirements.

[0293] The present embodiment does not limit the order of executing step S614 and step S615. For example, electronic device 100 may first execute step S615. If the charging time of electronic device 101 does not exceed time 1, electronic device 100 may then execute step S614.

[0294] The above steps S614 and S615 are optional. For example, if the power level of the electronic device 100 does not drop to power level interval 1, the electronic device 100 can directly execute step S617. Alternatively, if the power level of the electronic device 100 does not drop to power level interval 2, the electronic device 100 can directly execute step S617. Alternatively, if the power level of the electronic device 100 does not drop to power level interval 1, the electronic device 100 can execute step S615. When it is determined that the duration of the electronic device 100 charging the electronic device 101 does not exceed duration 1, the electronic device 100 can execute step S617.

[0295] S617 : The electronic device 100 adjusts the charging output to the electronic device 101 according to the battery status and / or the charging output capability selected by the user.

[0296] Adjusting the charging output to the electronic device 101 may include adjusting the charging voltage and / or charging current to the electronic device 101 .

[0297] The method for the electronic device 100 to adjust the charging power supplied to the electronic device 101 may refer to the method shown in FIG. 4 or FIG. 5 .

[0298] In some embodiments, the electronic device 100 can obtain the battery level of the electronic device 101. The electronic device 100 can decide whether to end reverse charging based on the battery level of the electronic device 101, or prompt the user to pay attention to the battery level of the electronic device 100. For example, when the battery level of the electronic device 101 is higher than the battery level of the electronic device 100, the electronic device 100 can end reverse charging, or prompt the user that the current battery level of the electronic device 101 is higher than the battery level of the electronic device 100. Optionally, when the battery level of the electronic device 101 is higher than a preset level (such as 50%), the electronic device 100 can end reverse charging, or prompt the user to pay attention to the battery level of the electronic device 100. Alternatively, when the battery level of the electronic device 101 is higher than a preset level, the electronic device 100 can determine whether the duration of the electronic device 100 charging the electronic device 101 exceeds duration 1. If the duration of the electronic device 100 charging the electronic device 101 exceeds duration 1, the electronic device 100 can end reverse charging, or prompt the user to pay attention to the battery level of the electronic device 100.

[0299] Among them, the electronic device 100 can obtain the battery power of the electronic device 101 based on the charging protocol. For example, the charging protocol module of the electronic device 100 can send a message to the electronic device 101 requesting to obtain the battery power. Then, the charging protocol module of the electronic device 101 can send the battery power of the electronic device 101 to the electronic device 100. Optionally, the electronic device 100 can also obtain the battery power of the electronic device 100 through other communication methods (such as Bluetooth communication, Wi-Fi communication, etc.). The embodiment of the present application does not limit the method by which the electronic device 100 obtains the battery power of the electronic device 101.

[0300] As can be seen from the above method, during the process of electronic device 100 charging electronic device 101, electronic device 100 can determine whether to end reverse charging or whether to prompt the user to pay attention to the battery level of electronic device 100 based on one or more information including the battery level of electronic device 100, the reverse charging duration, and the battery level of electronic device 101. This can prevent the electronic device 100 from being depleted due to reverse charging, which may affect the user's use of electronic device 100.

[0301] 7A to 7C exemplarily illustrate some reverse charging scenario diagrams provided in this application.

[0302] As shown in FIG7A , electronic device 100 may display user interface 710. When an interface of electronic device 100 is connected to an interface of electronic device 101 via a cable, electronic device 100 may display prompt box 711. Prompt box 711 may be used to prompt the user that electronic device 100 has detected a wired connection with another electronic device. For example, the wired connection may be a USB connection.

[0303] In response to an operation on the prompt box 711, such as a click operation, the electronic device 100 may display the user interface 720 shown in FIG. 7B.

[0304] As shown in FIG7B , the user interface 720 may include multiple USB connection function options for the user to select functions implemented based on the USB connection. For example, the function options in the user interface 720 may include: a transfer photo option 721, a transfer file option 722, a charge only option 723, a reverse charge option 724, a power a1 reverse charge option 725, and a power a2 reverse charge option 726.

[0305] The transfer photo option 721 may be used to use the USB connection established between the electronic device 100 and other electronic devices as a data transmission channel for photo transmission.

[0306] The transfer file option 722 may be used to use the USB connection established between the electronic device 100 and other electronic devices as a data transmission channel for file transfer.

[0307] The charging only option 723 , the reverse charging option 724 , the power a1 reverse charging option 725 , and the power a2 reverse charging option 726 are all used to use the USB connection established between the electronic device 100 and other electronic devices as a connection for charging.

[0308] The difference is that the charging-only option 723 can be used to determine the electronic device 100 as a device to be charged. In other words, when the charging-only option 723 is selected, the electronic device 100 can be used as a charging device to accept charging input from other electronic devices.

[0309] Reverse charging option 724 can be used to determine electronic device 100 as a power supply device. When reverse charging option 724 is selected, electronic device 100 can determine the current charging output capability of electronic device 100 based on the battery status of electronic device 100, and then perform reverse charging according to the method shown in Figure 4 or Figure 5.

[0310] The power a1 reverse charging option 725 can be used to determine the electronic device 100 as a power supply device. When the power a1 reverse charging option 725 is selected, the electronic device 100 can perform reverse charging with power a1 as the current charging output capability of the electronic device 100. For example, the power a1 can be the power corresponding to 9V / 2A, and the electronic device 100 can provide a charging output within the charging output capability of 9V / 2A. The embodiment of the present application does not limit the size of the power a1. In particular, during the reverse charging process, the electronic device 100 can adjust the charging output according to the battery status of the electronic device 100. For details, please refer to the method shown in Figures 4 or 5 above.

[0311] The power a2 reverse charging option 726 can be used to determine the electronic device 100 as a power supply device. When the power a2 reverse charging option 726 is selected, the electronic device 100 can perform reverse charging with power a2 as the current charging output capability of the electronic device 100. Power a2 is different from power a1. For example, power a2 can be the power corresponding to 9V / 1.5A, and the electronic device 100 can provide a charging output within the charging output capability of 9V / 1.5A. The embodiment of the present application does not limit the size of power a2. In particular, during the reverse charging process, the electronic device 100 can adjust the charging output according to the battery status of the electronic device 100. For details, please refer to the method shown in Figures 4 or 5 above.

[0312] The aforementioned power a1 reverse charging option 725 and power a2 reverse charging option 726 may be options corresponding to different charging output capabilities. In some embodiments, whether the options corresponding to the above different charging output capabilities can be selected by the user may be related to the battery status of the electronic device 100. For example, if the battery status of the electronic device 100 does not support the electronic device 100 providing a charging output capability of one gear, the option corresponding to the charging output capability of this gear cannot be selected by the user.

[0313] As shown in FIG7B , the power indicator 727 of the electronic device 100 may indicate that the current power level of the electronic device 100 is 100%. At this time, the electronic device 100 can support both reverse charging with power a1 and reverse charging with power a2. Therefore, both the reverse charging option 725 with power a1 and the reverse charging option 726 with power a2 can be selected by the user.

[0314] As shown in Figure 7B, the power indicator 727 of the electronic device 100 can indicate that the current power of the electronic device 100 is 75%. At this time, the electronic device 100 can support power a2 reverse charging, but does not support power a1 reverse charging. Therefore, the power a1 reverse charging option 725 can be in a state that cannot be selected by the user (for example, the power a1 reverse charging option 725 is grayed out). The power a2 reverse charging option 726 can be in a state that can be selected by the user. Optionally, when the battery status of the electronic device 100 does not support the electronic device 100 to provide a gear of charging output capability, the electronic device 100 can cancel the display of the option corresponding to the charging output capability of this gear. For example, in Figure 7C, the electronic device 100 can cancel the display of the power a1 reverse charging option 725.

[0315] Not limited to the power a1 reverse charging option 725 and the power a2 reverse charging option 726 , the electronic device 100 may also provide options corresponding to more or fewer gears of charging output capabilities.

[0316] As can be seen from the above scenario, after the electronic device 100 establishes a wired connection with another electronic device, the user can specify the power supply device and the device to be charged. In addition, the user can also specify the charging output capacity of the electronic device 100 during reverse charging. This can enhance the user's reverse charging experience.

[0317] FIG8A and FIG8B exemplarily show schematic diagrams of other reverse charging scenarios provided by the present application.

[0318] In some embodiments, during reverse charging, when the battery level of the electronic device 100 is lower than a battery threshold 1, the electronic device 100 may display a prompt message to remind the user to pay attention to the battery level of the electronic device 100. For example, the battery threshold 1 may be 30%. The embodiment of the present application does not limit the value of the battery threshold 1.

[0319] As shown in Figure 8A, the battery level indicator 811 of the electronic device 100 may indicate that the current battery level of the electronic device 100 is 29%. When the battery level of the electronic device 100 is detected to be less than 30%, the electronic device 100 may display a prompt box 812. The prompt box 812 may be used to remind the user to pay attention to the battery level of the electronic device 100. For example, the content in the prompt box 812 may include: "Reverse charging in progress, please note that the device battery level is less than 30%." This application does not limit the content of the prompt box 812.

[0320] In some embodiments, when the duration of reverse charging of the electronic device 100 exceeds a preset duration, the electronic device 100 may display a prompt message for prompting the user to pay attention to the power level of the electronic device 100 .

[0321] In some embodiments, during reverse charging, when the battery level of electronic device 100 falls below battery threshold 2, electronic device 100 terminates reverse charging and displays a prompt message to the user notifying the user that reverse charging has ended. For example, battery threshold 2 may be 15%. The present embodiment does not limit the value of battery threshold 2.

[0322] As shown in Figure 8B, the power indicator 821 of the electronic device 100 can indicate that the current power level of the electronic device 100 is 14%. When it is detected that the power level of the electronic device 100 is less than 15%, the electronic device 100 can end reverse charging and display a prompt box 822. The prompt box 822 can be used to prompt the user that reverse charging has ended. For example, the content in the prompt box 822 may include: The power level is less than 15%, and reverse charging has been turned off. The embodiment of the present application does not limit the content of the prompt box 822.

[0323] In some embodiments, while electronic device 100 is charging electronic device 101, electronic device 100 may obtain the battery level of electronic device 101. When the battery level of electronic device 101 is higher than the battery level of electronic device 100, electronic device 100 may end reverse charging and display a prompt message to inform the user that reverse charging has ended.

[0324] As can be seen from the above scenario, during reverse charging, the electronic device 100 can determine whether to end reverse charging or whether to prompt the user to pay attention to the battery level of the electronic device 100 based on one or more of the following information: the battery level of the electronic device 100, the reverse charging duration, and the battery level of the electronic device 101. This can prevent the electronic device 100 from being depleted due to reverse charging, which would affect the user's use of the electronic device 100.

[0325] FIG9 exemplarily shows a flow chart of a reverse charging method provided in the present application.

[0326] The method shown in FIG9 can be applied to a first device including a bidirectional charging chip. The bidirectional charging chip has the ability to charge the battery of the first device and has the ability to increase and output the battery voltage of the first device according to a first ratio. The above-mentioned first ratio can be 1:2, 1:3, or 1:4. The method may include steps S911 to S914. Among them:

[0327] S911: The first device establishes a connection with the second device for charging.

[0328] The first device may be the electronic device 100 in the aforementioned embodiment. The second device may be the electronic device 101 in the aforementioned embodiment. For the connection for charging, reference may be made to the description of step S411 shown in FIG. 4 .

[0329] S912: The first device sends a first message to the second device, where the first message includes a first voltage and a first current.

[0330] The first message may refer to Message 1 in step S414. The first voltage and the first current may be used to reflect the current charging output capability of the first device. For example, the first voltage may be 9V, and the first current may be 3A, 2A, or 1.5A.

[0331] S913: The first device receives a first request from the second device, where the first request includes a second voltage and a second current.

[0332] The second device may send a first request to the first device in response to the first message. The second voltage and the second current may be used to reflect the charging output capability requested by the second device from the first device. For example, the second voltage may be 9V, and the second current may be 3A, 2A, or 1.5A, etc.

[0333] S914. The first device uses the bidirectional charging chip to charge the second device. The output voltage of the first device is a third voltage, the output current is a third current, the third voltage is less than or equal to the smaller value of the first current and the second voltage, and the third current is less than or equal to the smaller value of the first current and the second current.

[0334] The first device can determine the output voltage and output current based on the charging output capability of the first device and the charging output capability requested by the second device. During the process of the first device charging the second device, the first device can adjust the output voltage and output current of the first device based on the battery status of the first device.

[0335] The third voltage and the third current are the charging output of the first device, and reference may be made to the charging output 1 in step S416 shown in FIG. 4 .

[0336] As can be seen from the above method, the first device can use the bidirectional charging chip to increase the battery power of the first device according to a first ratio and then output it to the second device. This can improve the reverse charging efficiency of the proposed device without increasing hardware costs, and enhance the user experience of reverse charging using the first device.

[0337] In some embodiments, when both the first voltage and the second voltage are greater than a first voltage threshold, the first device may execute step S914. The first voltage threshold may be 5V.

[0338] In some embodiments, the first voltage and the first current are determined according to a battery status of the first device, where the battery status of the first device includes one or more of the following: battery charge of the first device, battery voltage of the first device, and battery temperature of the first device.

[0339] In some embodiments, when the battery power of the first device is in a first power range, the first voltage is a first voltage value, and the first current is a first current value; when the battery power of the first device is in a second power range, the first voltage is a first voltage value, and the first current is a second current value; when the battery power of the first device is in a third power range, the first voltage is a second voltage value, and the first current is a third current value; wherein, the second voltage value is less than the first voltage value, the second current value is less than the first current value, and the third current value is less than or equal to the second current value.

[0340] Exemplarily, the first power interval can be (80%, 100%). The first voltage value can be 9V. The first current value can be 2A. The second power value can be (65%, 80%). The second current value can be 1.5A. The third power value can be (0%, 65%). The second voltage value can be 5V. The third current value can be 1.5A. Not limited to the first power interval, the second power interval, and the third power interval, the power of the first device can also be divided into more or fewer power intervals corresponding to different charging output capabilities.

[0341] In some embodiments, when the battery temperature of the first device is less than a first temperature threshold, the first device may determine the charging output capacity of the first device based on the battery power of the first device. The first temperature threshold may be a value such as 45°C.

[0342] In some embodiments, before the first device sends a first message to the second device, the first device displays multiple power options, where the multiple power options are determined based on the battery status of the first device, and the multiple power options include a first power option corresponding to a first power, where the first power is the product of a first voltage and a first current; the first device receives an operation to select the first power option.

[0343] In some embodiments, after the first device uses the bidirectional charging chip to charge the second device, the first device determines, based on the battery status of the first device, that the charging output capability of the first device drops from the first charging output capability to the second charging output capability, where the first charging output capability includes a first voltage and a first current, and the second charging output capability includes a fourth voltage and a fourth current; the first device sends a second message to the second device, where the second message includes a fourth voltage and a fourth current; the first device receives a second request sent by the second device, where the second request includes a fifth voltage and a fifth current; the first device charges the second device, where the output voltage of the first device is a sixth voltage, the output current is a sixth current, the sixth voltage is less than or equal to the smaller of the fourth voltage and the fifth voltage, and the sixth current is less than or equal to the smaller of the fourth current and the fifth current.

[0344] In some embodiments, if the fourth voltage and the fifth voltage are greater than the first voltage threshold, the first device charges the second device using the bidirectional charging chip.

[0345] In some embodiments, the first device may further include a reverse charging chip, which has the ability to increase the battery voltage of the first device to within a first voltage range and output it. If the fourth voltage and / or the fifth voltage is less than or equal to the first voltage threshold, the first device disconnects the charging circuit corresponding to the bidirectional charging chip and uses the reverse charging chip to charge the second device; wherein, the sixth voltage is within the first voltage range.

[0346] In some embodiments, the first voltage range is greater than 4.5V and less than 5.5V.

[0347] As can be seen from the above embodiments, the first device can use the reverse boost output capability of the bidirectional charging chip to increase the power of the first device charging the second device. This can improve the efficiency of reverse charging of the first device without increasing the hardware cost. In addition, the battery voltage will gradually decrease as the battery discharges. The first device can negotiate the charging power with the second device based on the change in its charging output capability, thereby adjusting the reverse charging voltage and / or reverse charging current in a step-by-step manner. This can avoid the situation where the working gear of the charging chip that receives the charging input of the second device does not match the charging output of the first device, resulting in charging interruption. Therefore, the above embodiments can maximize the reverse charging efficiency without continuous charging, thereby improving the user's reverse charging experience.

[0348] In some embodiments, when the battery level of the first device drops below a first level, the first device stops charging the second device.

[0349] In some embodiments, the first device obtains the battery power of the second device; when the battery power of the first device is lower than the battery power of the second device, and / or the battery power of the second device is greater than the second power, the first device stops charging the second device.

[0350] In some embodiments, when the battery power of the first device drops to less than a third power level, and / or the time for the first device to charge the second device exceeds the first time level, the first device outputs a first prompt, and the first prompt is used to remind the user to pay attention to the power level of the first device.

[0351] As can be seen from the above embodiments, the first device can determine whether to terminate reverse charging or whether to prompt the user to pay attention to the battery level of the first device based on one or more of the battery level of the first device, the reverse charging market, and the battery level of the second device. This can prevent the first device from being depleted due to reverse charging, which would affect the user's use of the first device.

[0352] In some embodiments, the protocol used to communicate between the first device and the second device includes the Power Transmission (PD) charging protocol. As can be seen from the above embodiments, the PD charging protocol is a widely used charging protocol in the market. Using the PD charging protocol can enhance the versatility of the reverse charging method of the present application.

[0353] It is understood that the various user interfaces described in the embodiments of this application are merely exemplary interfaces and do not limit the scope of this application. In other embodiments, the user interface may adopt a different interface layout, include more or fewer controls, and add or remove other functional options. As long as they are based on the same inventive concept provided by this application, they are all within the scope of protection of this application.

[0354] It should be noted that, without causing any contradiction or conflict, any feature in any embodiment of the present application, or any part of any feature, can be combined, and the combined technical solution is also within the scope of the embodiments of the present application.

[0355] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A reverse charging method, characterized in that: The method is applied to a first device including a bidirectional charging chip, wherein the bidirectional charging chip is capable of charging a battery of the first device and is capable of increasing and outputting the battery voltage of the first device according to a first ratio. The method includes: The first device establishes a connection with the second device for charging; The first device sends a first message to the second device, where the first message includes a first voltage and a first current; The first device receives a first request from the second device, the first request including a second voltage and a second current; The first device uses the bidirectional charging chip to charge the second device, wherein the output voltage of the first device is a third voltage, the output current is a third current, the third voltage is less than or equal to the smaller value of the first voltage and the second voltage, and the third current is less than or equal to the smaller value of the first current and the second current.

2. The method according to claim 1, characterized in that The second voltage is greater than a first voltage threshold.

3. The method according to claim 1 or 2, characterized in that The first voltage and the first current are determined according to a battery status of the first device, where the battery status of the first device includes one or more of the following: a battery charge of the first device, a battery voltage of the first device, and a battery temperature of the first device.

4. The method according to any one of claims 1 to 3, characterized in that When the battery power of the first device is in the first power range, the first voltage is a first voltage value, and the first current is a first current value; when the battery power of the first device is in the second power range, the first voltage is a first voltage value, and the first current is a second current value; when the battery power of the first device is in the third power range, the first voltage is a second voltage value, and the first current is a third current value; wherein, the second voltage value is less than the first voltage value, the second current value is less than the first current value, and the third current value is less than or equal to the second current value.

5. The method according to claim 4, characterized in that A battery temperature of the first device is less than a first temperature threshold.

6. The method according to claim 1 or 2, characterized in that Before the first device sends the first message to the second device, the method further includes: The first device displays a plurality of power options, the plurality of power options being determined according to a battery status of the first device, the plurality of power options including a first power option corresponding to a first power, the first power being a product of the first voltage and the first current; The first device receives an operation of selecting the first power option.

7. The method according to any one of claims 1 to 6, characterized in that After the first device charges the second device using the bidirectional charging chip, the method further includes: The first device determines, based on a battery state of the first device, that a charging output capability of the first device decreases from a first charging output capability to a second charging output capability, where the first charging output capability includes the first voltage and the first current, and the second charging output capability includes a fourth voltage and a fourth current; The first device sends a second message to the second device, where the second message includes the fourth voltage and the fourth current; The first device receives a second request sent by the second device, where the second request includes a fifth voltage and a fifth current; The first device charges the second device, wherein the output voltage of the first device is a sixth voltage, the output current is a sixth current, the sixth voltage is less than or equal to the smaller value of the fourth voltage and the fifth voltage, and the sixth current is less than or equal to the smaller value of the fourth current and the fifth current.

8. The method according to claim 7, characterized in that The fourth voltage and the fifth voltage are greater than a first voltage threshold, and the first device charges the second device, specifically including: The first device charges the second device using the bidirectional charging chip.

9. The method according to claim 7, characterized in that The first device further includes a reverse charging chip, the reverse charging chip having the ability to increase the battery voltage of the first device to within a first voltage range and output the voltage, the fourth voltage and / or the fifth voltage being less than or equal to a first voltage threshold, and the first device charging the second device specifically comprising: The first device disconnects the charging circuit corresponding to the bidirectional charging chip and uses the reverse charging chip to charge the second device; wherein the sixth voltage is within the first voltage range.

10. The method according to claim 9, characterized in that The first voltage range is greater than 4.5V and less than 5.5V.

11. The method according to any one of claims 2 to 10, characterized in that The first voltage threshold is 5V.

12. The method according to claim 1, characterized in that Before the first device sends the first message to the second device, the method further includes: the first device determining whether the first voltage is a second voltage threshold; After the first device receives the first request from the second device, the method further includes: the first device determining whether the second voltage is the second voltage threshold.

13. The method according to claim 12, characterized in that The second voltage threshold is 9V.

14. The method according to any one of claims 1 to 13, characterized in that The method further comprises: When the battery power of the first device drops to less than a first power level, the first device stops charging the second device.

15. The method according to any one of claims 1 to 14, characterized in that The method further comprises: The first device obtains the battery power of the second device; When the battery power of the first device is lower than the battery power of the second device, and / or the battery power of the second device is greater than a second power, the first device stops charging the second device.

16. The method according to any one of claims 1 to 15, characterized in that The method further comprises: When the battery power of the first device drops to less than a third power level, and / or the time for the first device to charge the second device exceeds a first time level, the first device outputs a first prompt, and the first prompt is used to remind the user to pay attention to the power level of the first device.

17. The method according to any one of claims 1 to 16, characterized in that The protocol used by the first device and the second device to communicate includes a power transmission (PD) charging protocol.

18. An electronic device, characterized in that: The electronic device includes a bidirectional charging chip, a reverse charging chip, a memory and a processor, wherein the bidirectional charging chip is used to charge the battery of the electronic device, or to increase and output the battery voltage of the first device according to a first ratio; the reverse charging chip is used to increase the battery voltage of the first device to within a first voltage range and output it; the memory is used to store a computer program; and the processor is used to call the computer program so that the electronic device executes the method described in any one of claims 1 to 17.

19. A computer-readable storage medium storing instructions, characterized in that: When the instructions are executed on an electronic device, the electronic device is caused to execute the method according to any one of claims 1 to 17.

20. A computer program product, characterized in that The computer program product comprises computer instructions, and when the computer instructions are run on an electronic device, the electronic device executes the method according to any one of claims 1 to 17.

Citation Information

Patent Citations

  • Charging control method, terminal, and charger

    CN105846484A

  • Charging circuit, electronic equipment, and charging control method and device

    CN112928787A

  • Charging power adjustment method and device based on reverse wireless charging and storage medium

    CN115986964A

  • Reverse charging system, method and related device

    CN117639137A

  • Control system and method for improving battery output energy efficiency, and electronic device

    US20220216721A1