Reverse charging method, device and electronic device

By setting up two batteries in an electronic device and switching the charging mode according to the charging type, the heating problem caused by reverse charging is solved, achieving more efficient power transmission and lower device temperature.

CN112994184BActive Publication Date: 2024-09-03VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110440548.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-23
Publication Date
2024-09-03
Estimated Expiration
2041-04-23

AI Technical Summary

Technical Problem

Reverse charging of electronic devices can cause serious heating, affecting device performance and user experience.

Method used

Set two batteries in the electronic device, and according to the positional relationship between the coil and the battery, and the wiring distance relationship between the battery and the interface, the second battery is used to charge the coil during reverse wireless charging, and reverse charging is performed through the coil. During reverse wired charging, the first battery is used to perform reverse charging through the interface, thereby reducing loss and heat generation.

Benefits of technology

Through this method, the heat generated by the electronic device during the reverse charging process is effectively reduced, and the operating efficiency and user experience of the device are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112994184B
    Figure CN112994184B
Patent Text Reader

Abstract

The present application discloses a reverse charging method, device and electronic device, belonging to the field of battery technology. Applied to an electronic device, the electronic device includes a first device body and a second device body, the first device body is provided with a first battery and a coil, the first device body is provided with an interface, and the second device body is provided with a second battery, the method includes: obtaining the reverse charging type of the electronic device; performing a first reverse charging operation according to the reverse charging type; wherein the first reverse charging operation includes: when the reverse charging type includes reverse wireless charging, using the second battery to charge the coil and reverse charging through the coil; when the reverse charging type includes reverse wired charging, using the first battery to reverse charge through the interface.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of battery technology, and specifically relates to a reverse charging method, device and electronic equipment. Background Art

[0002] With the development of electronic products, electronic devices (such as mobile phones) have become one of the important tools for people to communicate. Traditional electronic devices usually have a built-in battery, and the electronic device can use the battery to realize the reverse charging function.

[0003] However, when an electronic device uses a battery for reverse charging, the power output of the battery may cause the electronic device to generate severe heat. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a reverse charging method, device and electronic device, which can solve the problem of serious heating caused by reverse charging of electronic devices.

[0005] In a first aspect, an embodiment of the present application provides a reverse charging method, which is applied to an electronic device, wherein the electronic device includes a first device body and a second device body, wherein a first battery and a coil are disposed in the first device body, an interface is disposed on the first device body, and a second battery is disposed in the second device body, wherein the method includes:

[0006] Get the reverse charging type of the electronic device;

[0007] performing a first reverse charging operation according to the reverse charging type;

[0008] Among them, the first reverse charging operation includes: when the reverse charging type includes reverse wireless charging, using the second battery to charge the coil and performing reverse charging through the coil; when the reverse charging type includes reverse wired charging, using the first battery to perform reverse charging through the interface.

[0009] In a second aspect, an embodiment of the present application provides an electronic device, including a first device body, a second device body, a first switch, a second switch, and a controller, wherein a first battery and a coil are provided in the first device body, an interface is provided on the first device body, a second battery is provided in the second device body, the first battery and the second battery are connected to the coil through the first switch, and the first battery and the second battery are connected to the interface through the second switch; the controller is electrically connected to the first switch and the second switch respectively;

[0010] The controller controls the connection status of the first battery and the second battery with the coil through the first switch, and controls the connection status of the first battery and the second battery with the interface through the second switch.

[0011] In a third aspect, an embodiment of the present application provides a reverse charging device, which is applied to an electronic device, wherein the electronic device includes a first device body and a second device body, wherein a first battery and a coil are disposed in the first device body, an interface is disposed on the first device body, and a second battery is disposed in the second device body. The device includes:

[0012] A first acquisition module, used to acquire the reverse charging type of the electronic device;

[0013] An execution module, configured to execute a first reverse charging operation according to the reverse charging type;

[0014] Among them, the first reverse charging operation includes: when the reverse charging type includes reverse wireless charging, using the second battery to charge the coil and performing reverse charging through the coil; when the reverse charging type includes reverse wired charging, using the first battery to perform reverse charging through the interface.

[0015] In a fourth aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.

[0016] In a fifth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0017] In a sixth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0018] In an embodiment of the present application, a first battery and a coil are arranged in a first device body of an electronic device, an interface is arranged on the first device body, a second battery is arranged in a second device body of the electronic device, and a reverse charging type of the electronic device is obtained; a first reverse charging operation is performed according to the reverse charging type; wherein the first reverse charging operation includes: when the reverse charging type includes reverse wireless charging, the second battery is used to charge the coil, and reverse charging is performed through the coil; when the reverse charging type includes reverse wired charging, the first battery is used to reverse charge through the interface. In this way, by arranging two batteries in the electronic device, and according to the positional relationship between the coil and the battery, and the wiring distance relationship between the battery and the interface, the second battery is used to charge the coil during reverse wireless charging, and reverse charging is performed through the coil, and the first battery is used to reverse charge through the interface during reverse wired charging, thereby reducing losses and thus reducing the heating of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 is a flow chart of a reverse charging method provided in an embodiment of the present application;

[0020] Figure 2a This is a schematic diagram of the fully unfolded front structure of a foldable screen mobile phone;

[0021] Figure 2b This is a schematic diagram of the unfolded structure of the back of a foldable screen mobile phone;

[0022] Figure 3 It is a schematic diagram of the circuit structure used for reverse charging in electronic equipment;

[0023] Figure 4 It is a schematic diagram of the UI interface setting of an electronic device;

[0024] Figure 5 This is a schematic diagram of the power display when the electronic device is locked;

[0025] Figure 6 It is one of the structural diagrams of the electronic device provided in the embodiment of the present application;

[0026] Figure 7 is a structural diagram of a reverse charging device provided in an embodiment of the present application;

[0027] Figure 8 This is the second structural diagram of the electronic device provided in the embodiment of the present application;

[0028] Fig. 9 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application. DETAILED DESCRIPTION

[0029] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0030] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0031] The reverse charging provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0032] Figure 1 is a flow chart of the reverse charging method provided in the embodiment of the present application, such as Figure 1 As shown, the following steps are included:

[0033] Step 101, obtaining the reverse charging type of the electronic device.

[0034] It should be noted that the reverse charging method provided in the embodiment of the present application is applied to an electronic device, which includes a first device body and a second device body, wherein the first device body is provided with a first battery and a coil, the first device body is provided with an interface, and the second device body is provided with a second battery.

[0035] The electronic device takes a foldable screen mobile phone as an example. Figure 2a This is a schematic diagram of the fully unfolded front structure of a folding screen mobile phone. Figure 2b This is a schematic diagram of the unfolded structure of the back of a folding screen mobile phone. Figure 2a and 2b As shown, the screen of the foldable screen mobile phone consists of a front main screen and a back sub-screen, and the main screen can be folded along the middle hinge. The front main screen of the mobile phone is composed of a main screen L1 on one side, a main screen L2 on the other side, and a foldable flexible screen in the middle. The back of the mobile phone is the back on one side and the sub-screen L3 on the other side.

[0036] In this application scenario, the electronic device includes two device bodies. In an optional implementation, the first device body may be the device body on the side including the back side, and the second device body may be the device body on the side including the secondary screen.

[0037] See also Figure 3 , Figure 3 It is a schematic diagram of the circuit structure used for reverse charging in electronic equipment, such as Figure 3 As shown, the first device body 301 has a first battery 3011 and a coil 3012 built in. The coil 3012 can be set directly above the first battery 3011. The coil 3012 can be used for sending and receiving wireless charging signals and power. An interface 3013 is also set on the first device body 301, such as the bottom. The interface 3013 can be used for wired charging and reverse wired OTG (On-The-Go) charging. The interface 3013 can be a Type-C interface. The second device body 302 has a second battery 3021 built in.

[0038] In addition, a temperature sensor for detecting the respective temperatures may be disposed on the surface or beside the first battery 3011 and the second battery 3021 , respectively. The temperature sensor may be a thermistor with a negative temperature coefficient (NTC).

[0039] A first switch 3031 may be provided between the circuit interface of the coil 3012 and the first battery 3011 to control the switching on and off of the first battery 3011 supplying power to the coil 3012;

[0040] A first switch 3032 may be provided between the circuit interface of the coil 3012 and the second battery 3021 to control the switching on and off of the second battery 3021 supplying power to the coil 3012;

[0041] A second switch 3041 may be provided between the circuit interface of the interface 3013 and the first battery 3011 to control the switching on and off of the first battery 3011 supplying power to the interface 3013;

[0042] A second switch 3042 may be provided between the circuit interface of the interface 3013 and the second battery 3021 to control the switching on and off of the second battery 3021 supplying power to the interface 3013 .

[0043] It can be understood that the first switch 303 includes a first switch 3031 and another first switch 3032 , and the first switch 304 includes a first switch 3041 and another first switch 3042 .

[0044] The reverse charging type of the electronic device may refer to a scenario in which the electronic device is reversely charged, and the reverse charging of the electronic device refers to switching the electronic device to a mobile power source for discharge to charge other electronic devices.

[0045] The reverse charging scenarios may generally include reverse wireless charging only, reverse OTG charging only, and a coexistence scenario of reverse wireless charging and reverse OTG charging.

[0046] The reverse charging type of the electronic device can be determined by a reverse charging identifier, and the reverse charging type of the electronic device is different when the parameter value of the reverse charging identifier is different.

[0047] The parameter value of the reverse charging identifier can be determined by detecting the reverse charging scenario of the electronic device. For example, when the reverse charging function of the electronic device is turned on, when it is detected that the back of the electronic device is close to another electronic device and the interface is not connected to other electronic devices, it can be determined that the parameter value of the reverse charging identifier is 0, indicating that the reverse charging type of the electronic device only includes reverse wireless charging.

[0048] For example, when it is detected that the interface of an electronic device is connected to another electronic device and the back is not close to other electronic devices, it can be determined that the parameter value of the reverse charging identifier is 1, indicating that the reverse charging type of the electronic device only includes reverse OTG charging.

[0049] For example, when it is detected that the interface of an electronic device is connected to another electronic device and the back of the electronic device is close to the other electronic device, the parameter value of the reverse charging identifier can be determined to be 2, indicating that the reverse charging type of the electronic device includes reverse wireless charging and reverse OTG charging.

[0050] Step 102, performing a first reverse charging operation according to the reverse charging type;

[0051] Among them, the first reverse charging operation includes: when the reverse charging type includes reverse wireless charging, using the second battery to charge the coil and performing reverse charging through the coil; when the reverse charging type includes reverse wired charging, using the first battery to perform reverse charging through the interface.

[0052] In this step, the first reverse charging operation performed is different depending on the reverse charging type. When the reverse charging type only includes reverse wireless charging, the first reverse charging operation performed can be to use the second battery to charge the coil and perform reverse charging through the coil.

[0053] In practical applications, such as Figure 3As shown, the first switch 3032 connecting the second battery 3021 and the coil 3012 can be controlled to be closed, so that the second battery 3021 is connected to the coil 3012, and the first switch 3031 connecting the first battery 3011 and the coil 3012 is controlled to be turned off, so that the first battery 3011 and the coil 3012 are not connected, so that the second battery 3021 is used to charge the coil 3012, and reverse charging is performed through the coil 3012. In this reverse charging scenario, the second battery 3021 is used to charge the coil 3012, and the coil 3012 can send wireless charging signals and power to supply power to other electronic devices wirelessly.

[0054] When the reverse charging type includes only reverse OTG charging, the first reverse charging operation performed may be reverse charging using the first battery through the interface.

[0055] In practical applications, such as Figure 3 As shown, the second switch 3041 connecting the first battery 3011 to the interface 3013 can be controlled to be closed, so that the first battery 3011 is connected to the interface 3013, and the second switch 3042 connecting the second battery 3021 to the interface 3013 can be controlled to be turned off, so that the second battery 3021 is not connected to the interface 3013, so as to use the first battery 3011 to perform reverse charging through the interface 3013. In this reverse charging scenario, the first battery 3011 is used to perform wired power supply to the outside through the interface 3013.

[0056] When the reverse charging type includes reverse wireless charging and reverse OTG charging, the first reverse charging operation performed may be reverse charging using the first battery through the interface, charging the coil using the second battery, and reverse charging through the coil.

[0057] In practical applications, such as Figure 3 As shown, the second switch 3041 connecting the first battery 3011 to the interface 3013 can be controlled to be closed, and the second switch 3042 connecting the second battery 3021 to the interface 3013 can be controlled to be turned off, so as to use the first battery 3011 to perform reverse charging through the interface 3013. At the same time, the first switch 3032 connecting the second battery 3021 to the coil 3012 can be controlled to be closed, and the first switch 3031 connecting the first battery 3011 to the coil 3012 can be controlled to be turned off, so as to use the second battery 3021 to charge the coil 3012, and perform reverse charging through the coil 3012. In this reverse charging scenario, the first battery 3011 is used to perform wired power supply to an electronic device through the interface 3013, and the second battery 3021 is used to charge the coil 3012, and the coil 3012 is used to perform wireless power supply to another electronic device.

[0058] In the actual implementation process, the electronic device may further include a controller, which may be electrically connected to the first switch and the second switch respectively to control the opening and closing of the first switch and the second switch, thereby controlling the connection status of the first battery and the second battery with the coil through the first switch, and controlling the connection status of the first battery and the second battery with the interface through the second switch.

[0059] Due to the positional relationship between the coil and the battery, the coil and the first battery are simultaneously arranged in the first device body, and the second battery is arranged in the second device body. The coil generates relatively large heat during reverse wireless charging, and more heat will be added when the first battery is used for wireless power supply. Therefore, during reverse wireless charging, the second battery can be used for reverse charging through the coil, which can reduce the heating of the electronic device.

[0060] Due to the wiring distance relationship between the battery and the interface, the interface is set on the first device body. During reverse OTG charging, the interface is closer to the first battery also set in the first device body than to the second battery set in the second device body. Therefore, when using the first battery for reverse charging through the interface, the power transmission loss is less than when using the second battery for reverse charging through the interface, which can effectively reduce the heat generation of the electronic device.

[0061] In this embodiment, a first battery and a coil are arranged in a first device body of an electronic device, an interface is arranged on the first device body, a second battery is arranged in a second device body of the electronic device, and a reverse charging type of the electronic device is obtained; a first reverse charging operation is performed according to the reverse charging type; wherein the first reverse charging operation includes: when the reverse charging type includes reverse wireless charging, the second battery is used to charge the coil, and reverse charging is performed through the coil; when the reverse charging type includes reverse wired charging, the first battery is used to reverse charge through the interface. In this way, by arranging two batteries in the electronic device, and according to the positional relationship between the coil and the battery, and the wiring distance relationship between the battery and the interface, the second battery is used to charge the coil during reverse wireless charging, and reverse charging is performed through the coil, and the first battery is used to reverse charge through the interface during reverse wired charging, thereby reducing losses and further reducing the heating of the electronic device.

[0062] Optionally, after step 102, the method further includes:

[0063] Acquire a first temperature value corresponding to the first battery and a second temperature value corresponding to the second battery;

[0064] When the first temperature value and the second temperature value meet a preset condition, switching the first reverse charging operation to a second reverse charging operation;

[0065] The second reverse charging operation is different from the first reverse charging operation.

[0066] In this implementation manner, the first temperature value corresponding to the first battery may be a real-time temperature value of the first battery during reverse charging, and the second temperature value corresponding to the second battery may be a real-time temperature value of the second battery during reverse charging.

[0067] During reverse charging, due to the power output of the first battery and the second battery, their temperatures will change in real time. The first temperature value and the second temperature value can be detected to switch the reverse charging operation, thereby reducing the heat generation.

[0068] Specifically, a first temperature value corresponding to the first battery can be detected by a first temperature sensor disposed on the surface or next to the first battery, and a second temperature value corresponding to the second battery can be detected by a second temperature sensor disposed on the surface or next to the second battery. At the same time, the controller can be connected to the first temperature sensor and the second temperature sensor respectively to obtain the first temperature value corresponding to the first battery and the second temperature value corresponding to the second battery.

[0069] Afterwards, it can be determined whether the first battery is overheated based on the first temperature value, and whether the second battery is overheated based on the second temperature value. When it is determined that the first battery or the second battery is overheated, it can be determined that the first temperature value and the second temperature value meet the preset conditions. At this time, the reverse charging operation to be performed can be switched, and the first reverse charging operation can be switched to the second reverse charging operation.

[0070] In this way, the temperature relationship between the first battery and the second battery can be used to switch the reverse charging operation when it is determined that the first battery or the second battery is overheated, thereby reducing the heating of the electronic device during the reverse charging process.

[0071] During the reverse charging process, different reverse charging types have different preset conditions, and accordingly, the second reverse charging operation is also different.

[0072] Optionally, the reverse charging type includes only reverse wireless charging or reverse wired charging;

[0073] The step of switching the first reverse charging operation to the second reverse charging operation when the first temperature value and the second temperature value meet a preset condition comprises:

[0074] In the case where the reverse charging type includes only reverse wireless charging, if the second temperature value is greater than a first threshold value and the first temperature value is less than the first threshold value, the second battery is switched to the first battery to charge the coil, and reverse charging is performed through the coil;

[0075] Alternatively, when the reverse charging type includes only reverse wired charging, if the first temperature value is greater than a first threshold and the second temperature value is less than the first threshold, the first battery is switched to the second battery and reverse charging is performed through the interface.

[0076] In this embodiment, when the reverse charging type only includes reverse wireless charging, when the reverse wireless charging starts, a default reverse charging method can be selected for reverse charging. The default reverse charging method can be to use the second battery to charge the coil and perform reverse charging through the coil. Accordingly, the first reverse charging operation of the default reverse charging method is performed.

[0077] It can be understood that the polling is performed at intervals of t, and the first temperature value corresponding to the first battery and the second temperature value corresponding to the second battery are detected by the temperature sensor. Then, based on the relationship between the first temperature value and the second temperature value and the first threshold, it can be determined whether to switch the first reverse charging operation to the second reverse charging operation.

[0078] Specifically, when the second temperature value is greater than the first threshold value and the first temperature value is less than the first threshold value, it can be said that the second battery being reverse charged is overheated, and the reverse charging operation can be switched, the second battery is switched to the first battery to charge the coil, and reverse charging is performed through the coil.

[0079] In the case where the reverse charging type only includes reverse wired charging, when the reverse wired charging starts, a default reverse charging method can be selected for reverse charging. The default reverse charging method can be reverse charging using the first battery through the interface. Accordingly, the first reverse charging operation of the default reverse charging method is executed.

[0080] It can be understood that the polling is performed at intervals of t, and the first temperature value corresponding to the first battery and the second temperature value corresponding to the second battery are detected by the temperature sensor. Then, based on the relationship between the first temperature value and the second temperature value and the first threshold, it can be determined whether to switch the first reverse charging operation to the second reverse charging operation.

[0081] Specifically, when the first temperature value is greater than the first threshold value and the second temperature value is less than the first threshold value, it can be said that the first battery being reverse charged is overheated, and the reverse charging operation can be switched, the first battery can be switched to the second battery, and reverse charging can be performed through the interface.

[0082] In practical applications, the first threshold value may be the same or different for different reverse charging types, and the first threshold value for determining whether the first battery and the second battery are overheated may be the same or different, which is not specifically limited here.

[0083] In this embodiment, when the reverse charging type includes only reverse wireless charging or reverse wired charging, it is determined whether the battery being reversely charged is overheated. If overheated, the reverse charging operation is switched to another battery for reverse charging. In this way, the overheated battery can dissipate heat, thus preventing the electronic device from overheating.

[0084] Optionally, when the first temperature value and the second temperature value meet a preset condition, after switching the first reverse charging operation to a second reverse charging operation, the method further includes:

[0085] After a preset time period during which the electronic device performs reverse charging, obtaining a third temperature value corresponding to the first battery and a fourth temperature value corresponding to the second battery;

[0086] When the third temperature value is less than the first threshold value, and the fourth temperature value is less than the first threshold value, controlling the first battery and the second battery to be reverse charged simultaneously;

[0087] When the third temperature value is greater than the first threshold value and the fourth temperature value is greater than the first threshold value, the first battery and the second battery are controlled to be reverse charged simultaneously.

[0088] In this embodiment, after a preset time period of reverse charging of the electronic device, for example, after the electronic device has powered other electronic devices for half an hour, in this application scenario, the two batteries may not be overheated, or both batteries may be overheated. For example, when the two batteries are frequently switched for reverse charging, if the second battery is detected to be overheated, the first battery is switched for reverse charging. During the reverse charging process, the first battery is detected to be overheated, and the heat of the second battery has not been fully dissipated, and the second battery is detected to be overheated. At this time, both batteries will be overheated.

[0089] For this application scenario, when the reverse charging type only includes reverse wireless charging or reverse wired charging, the third temperature value corresponding to the first battery and the fourth temperature value corresponding to the second battery can be obtained after a preset time period. When the third temperature value is less than the first threshold and the fourth temperature value is also less than the first threshold, it can be indicated that the reverse charging power is not enough to cause one battery to overheat. At this time, the first battery and the second battery can be controlled to be reverse charged at the same time, and the power of reverse charging of each battery can remain unchanged. In this way, the reverse charging power can be increased without overheating the electronic device, thereby improving the charging efficiency.

[0090] When the third temperature value is greater than the first threshold value, and the fourth temperature value is greater than the first threshold value, the reverse charging power will cause any battery to overheat. At this time, the first battery and the second battery can be controlled to be reversely charged at the same time. At the same time, the power of the two batteries for reverse charging can be reduced. Specifically, the total power of reverse charging can be divided into two and acted on the two batteries, that is, the total power of the battery for reverse charging is not changed. Since the power of the battery power supply is reduced, the temperature of the battery can be reduced. The other two batteries are powered at the same time, and their heat dissipation area will increase accordingly, so that the heat dissipation of the electronic device will be faster. Therefore, the temperature of the electronic device can be reduced to prevent the electronic device from continuously overheating.

[0091] In addition, after a preset time period when the electronic device is reverse charged, polling can be performed at intervals of t to obtain the temperature corresponding to the first battery and the temperature of the second battery. When only one battery is powered, if the battery being reverse charged is overheated, the other battery can be switched to supply power. In this way, the electronic device can be prevented from overheating by repeatedly switching the battery supplying power.

[0092] Optionally, the reverse charging type includes reverse wireless charging and reverse wired charging;

[0093] The step of switching the first reverse charging operation to the second reverse charging operation when the first temperature value and the second temperature value meet a preset condition comprises:

[0094] When the first temperature value is greater than a second threshold value and the second temperature value is greater than the second threshold value, adjusting power supply parameters of the first battery and the second battery during reverse charging so that the first reverse charging operation is switched to a second reverse charging operation;

[0095] Alternatively, when one of the first temperature value and the second temperature value is less than the second threshold and the other of the first temperature value and the second temperature value is greater than the second threshold, the second battery is switched to the first battery to charge the coil, and reverse charging is performed through the coil, and the first battery is switched to the second battery, and reverse charging is performed through the interface.

[0096] In this embodiment, when the reverse charging types include reverse wireless charging and reverse wired charging, at the beginning of reverse charging, a default reverse charging method can be selected for reverse charging. The default reverse charging method can be to use the first battery to perform reverse charging through the interface, use the second battery to charge the coil, and perform reverse charging through the coil. Accordingly, the first reverse charging operation of the default reverse charging method is performed.

[0097] It can be understood that the polling interval t detects the first temperature value corresponding to the first battery and the second temperature value corresponding to the second battery through the temperature sensor, and then determines whether to switch the first reverse charging operation to the second reverse charging operation based on the relationship between the first temperature value, the second temperature value and the second threshold. The first threshold and the second threshold can be the same or different, which is not limited here.

[0098] Specifically, when the first temperature value is greater than the second threshold value, and the second temperature value is greater than the second threshold value, it indicates that both batteries are overheated and need to switch to reverse charging operation. In this scenario, the existing reverse charging mode, that is, the existing power supply relationship, can be maintained, and the power supply parameters of the first battery and the second battery during reverse charging can be adjusted to switch the first reverse charging operation to the second reverse charging operation. In this way, by adjusting the power supply parameters, the temperature of the two batteries can be reduced to prevent the electronic device from overheating.

[0099] For example, the output power of the first battery and the second battery during reverse charging is reduced, that is, the two batteries are downgraded and the power output is reduced to supply power for reverse wireless charging and reverse OTG charging to reduce heat.

[0100] For another example, the power supply time of the first battery and the second battery during reverse charging is adjusted so that the first battery and the second battery are reverse charged alternately, such as polling charging. Specifically, the reverse charging can be performed in an intermittent manner. In a first time period, only the first battery is used for reverse wired charging. In a second time period, only the second battery is used for reverse wireless charging. The first time period and the second time period are continuous, so that time is given to the battery to dissipate heat and prevent the electronic device from overheating.

[0101] During reverse charging, when the first battery is used to perform reverse charging through the interface, the second battery is used to charge the coil, and reverse charging is performed through the coil, when one of the first temperature value and the second temperature value is less than the second threshold value, and the other of the first temperature value and the second temperature value is greater than the second threshold value, if it is detected that the first temperature value is less than the second threshold value, and the second temperature value is greater than the second threshold value, or it is detected that the first temperature value is greater than the second threshold value, and the second temperature value is less than the second threshold value, it means that one battery has a large power output demand and generates a lot of heat, and the other battery has a small power output demand and generates little heat. In this scenario, the reverse charging mode of the first battery and the second battery can be switched, and the power supply relationship of the first battery and the second battery can be swapped, so that the second battery can be used to perform reverse charging through the interface, the first battery can be used to charge the coil, and reverse charging can be performed through the coil, so that the electronic device can be prevented from overheating.

[0102] In addition, during the reverse charging process, when the first temperature value is less than the second threshold and the second temperature value is less than the second threshold at the same time, the default reverse charging method, that is, the existing power supply relationship, can be maintained, that is, the first battery is used to reverse charge through the interface, and the second battery is used to charge the coil, and reverse charging is performed through the coil.

[0103] Optionally, the adjusting power supply parameters of the first battery and the second battery during reverse charging includes:

[0104] reducing the output power of the first battery and the second battery when reverse charging is performed;

[0105] Alternatively, the power supply time of the first battery and the second battery during reverse charging is adjusted so that the first battery and the second battery are reversely charged alternately.

[0106] When the first temperature value is greater than the second threshold value, and the second temperature value is greater than the second threshold value, it indicates that both batteries are overheated and need to switch to reverse charging operation. Specifically, the output power of the first battery and the second battery during reverse charging can be reduced, that is, the two batteries downshift and reduce the power output to supply reverse wireless charging and reverse OTG charging to reduce heat.

[0107] Alternatively, the power supply time of the first battery and the second battery during reverse charging can also be adjusted so that the first battery and the second battery are reverse charged alternately, such as polling charging. Specifically, the reverse charging can be performed in an intermittent manner. In a first time period, only the first battery is used for reverse wired charging, and in a second time period, only the second battery is used for reverse wireless charging. The first time period and the second time period are continuous, which can give the battery a longer time to dissipate heat and prevent the electronic device from overheating.

[0108] In addition, when a change in the reverse charging type of the electronic device is detected, for example, the reverse charging type of the electronic device changes from charging through both reverse wireless charging and reverse OTG at the same time to a scenario of only reverse wireless charging or only reverse OTG charging, or for another example, the reverse charging type of the electronic device changes from only reverse wireless charging or only reverse OTG charging to a scenario of both reverse wireless charging and reverse OTG charging at the same time, at this time, the reverse charging mode of the first battery and the second battery can be first restored to the default reverse charging mode of the first battery and the second battery in the changed reverse charging scenario, and then the temperatures of the first battery and the second battery are polled to detect, and the reverse charging operation is switched based on the temperatures of the first battery and the second battery.

[0109] In addition, in order to make reverse charging more intelligent, you can set it in the user interface (UI) through interface design, see Figure 4 , Figure 4 This is a schematic diagram of the UI interface settings of an electronic device, such as Figure 4 As shown, users can set the smart reverse charging control on and off. The default state is on. After turning it on, users can be prompted to intelligently adjust the power supply strategy in the reverse wireless charging and reverse OTG charging scenes to improve the experience. The power supply strategies adopted are the first strategy, the second strategy, and the third strategy mentioned above.

[0110] After it is turned on, the submenu may include controls for turning on power limit, ending power limit, and displaying reverse charging status on the lock screen. The controls for turning on power limit and ending power limit are turned off by default. Users can reserve the power of electronic devices according to actual needs. If not set, a power threshold can be set by default. When the power threshold is reached, reverse charging ends.

[0111] Figure 5 This is a schematic diagram of the power display when the electronic device is locked. Figure 5 As shown, the control for displaying the reverse charging status on the lock screen can be turned on by default. After turning it on, the scene icon and battery power corresponding to reverse wireless charging or reverse OTG charging will be displayed on the lock screen.

[0112] When both reverse wireless charging and reverse OTG charging scenarios exist, the power levels of the two batteries and the corresponding scenario identifiers are displayed respectively, the coil is marked as the reverse wireless charging scenario icon, the interface is marked as the reverse OTG charging scenario icon, and the total power is divided into the sum of the power levels of the two batteries. When only one scenario exists, that is, only reverse wireless charging or reverse OTG charging, a percentage of the total power level and the scenario identifier corresponding to the reverse charging battery can be displayed, so that the user can perceive the scenario and power level of the electronic device's external power supply when the electronic device's screen is locked.

[0113] See also Figure 6 , Figure 6 is one of the structural diagrams of the electronic device provided in the embodiment of the present application, such as Figure 6 As shown, the electronic device 600 includes a first device body 601, a second device body 602, a first switch 603, a second switch 604 and a controller 605, wherein the first device body 601 is provided with a first battery 6011 and a coil 6012, the first device body 601 is provided with an interface 6013, the second device body 602 is provided with a second battery 6021, the first battery 6011 and the second battery 6021 are connected to the coil 6012 via the first switch 603, and the first battery 6011 and the second battery 6021 are connected to the interface 6013 via the second switch 604; the controller 605 is electrically connected to the first switch 603 and the second switch 604 respectively;

[0114] The controller 605 controls the connection status between the first battery 6011 and the second battery 6021 and the coil 6012 through the first switch 603 , and controls the connection status between the first battery 6011 and the second battery 6021 and the interface 6013 through the second switch 604 .

[0115] In this embodiment, a first battery and a coil are arranged in a first device body of the electronic device, an interface is arranged on the first device body, a second battery is arranged in a second device body of the electronic device, and the first battery and the second battery are connected to the coil through a first switch, and the first battery and the second battery are connected to the interface through a second switch; the controller is electrically connected to the first switch and the second switch, respectively. In this way, the controller can control the connection state of the first battery and the second battery with the coil through the first switch, and control the connection state of the first battery and the second battery with the interface through the second switch. In this way, according to the position relationship between the coil and the battery, and the wiring distance relationship between the battery and the interface, the second battery can be used to charge the coil during reverse wireless charging, and reverse charging can be performed through the coil. During reverse wired charging, the first battery is used to perform reverse charging through the interface, thereby reducing losses and further reducing the heating of the electronic device.

[0116] Optionally, the electronic device further includes a first temperature sensor and a second temperature sensor, the first temperature sensor being connected to the controller and used to detect a first temperature value corresponding to the first battery; the second temperature sensor being connected to the controller and used to detect a second temperature value corresponding to the second battery;

[0117] During the reverse charging process, the controller controls the connection status of the first battery and the second battery with the coil, and controls the connection status of the first battery and the second battery with the interface based on the first temperature value and the second temperature value.

[0118] In this way, the temperature relationship between the first battery and the second battery can be used to control the connection status of the first battery and the second battery with the coil, and control the connection status of the first battery and the second battery with the interface when it is determined that the first battery and / or the second battery is overheated, so as to switch the reverse charging operation, thereby reducing the heating of the electronic device during the reverse charging process.

[0119] It should be noted that the reverse charging method provided in the embodiment of the present application can be performed by a reverse charging device or a control module in the reverse charging device for performing the reverse charging method. In the embodiment of the present application, the reverse charging device provided in the embodiment of the present application is described by taking the reverse charging method performed by the reverse charging device as an example.

[0120] See also Figure 7 , Figure 7 : is a structural diagram of a reverse charging device provided in an embodiment of the present application, the reverse charging device is applied to an electronic device, the electronic device comprises a first device body and a second device body, the first device body is provided with a first battery and a coil, the first device body is provided with an interface, and the second device body is provided with a second battery, such as Figure 7 As shown, the reverse charging device 700 includes:

[0121] A first acquisition module 701 is used to acquire a reverse charging type of an electronic device;

[0122] An execution module, configured to execute a first reverse charging operation according to the reverse charging type;

[0123] Among them, the first reverse charging operation includes: when the reverse charging type includes reverse wireless charging, using the second battery to charge the coil and performing reverse charging through the coil; when the reverse charging type includes reverse wired charging, using the first battery to perform reverse charging through the interface.

[0124] Optionally, the device further comprises:

[0125] a second acquisition module, configured to acquire a first temperature value corresponding to the first battery and a second temperature value corresponding to the second battery;

[0126] A switching module, configured to switch the first reverse charging operation to a second reverse charging operation when the first temperature value and the second temperature value meet a preset condition;

[0127] The second reverse charging operation is different from the first reverse charging operation.

[0128] Optionally, the reverse charging type includes only reverse wireless charging or reverse wired charging; and the switching module includes:

[0129] a first switching unit, configured to, when the reverse charging type includes only reverse wireless charging, switch the second battery to charge the coil with the first battery if the second temperature value is greater than a first threshold and the first temperature value is less than the first threshold, and perform reverse charging through the coil;

[0130] A second switching unit is used to switch the first battery to the second battery and perform reverse charging through the interface when the reverse charging type only includes reverse wired charging and the first temperature value is greater than a first threshold and the second temperature value is less than the first threshold.

[0131] Optionally, the device further comprises:

[0132] A third acquisition module, configured to acquire a third temperature value corresponding to the first battery and a fourth temperature value corresponding to the second battery after a preset time period during which the electronic device performs reverse charging;

[0133] a first control module, configured to control the first battery and the second battery to be reverse charged simultaneously when the third temperature value is less than the first threshold value and the fourth temperature value is less than the first threshold value;

[0134] The second control module is configured to control the first battery and the second battery to be reverse charged simultaneously when the third temperature value is greater than the first threshold value and the fourth temperature value is greater than the first threshold value.

[0135] Optionally, the reverse charging type includes reverse wireless charging and reverse wired charging; and the switching module includes:

[0136] an adjusting unit, configured to adjust power supply parameters of the first battery and the second battery during reverse charging when the first temperature value is greater than a second threshold value and the second temperature value is greater than the second threshold value, so that the first reverse charging operation is switched to a second reverse charging operation;

[0137] A third switching unit is used to switch the second battery to the first battery to charge the coil and perform reverse charging through the coil, and switch the first battery to the second battery and perform reverse charging through the interface when one of the first temperature value and the second temperature value is less than the second threshold and the other of the first temperature value and the second temperature value is greater than the second threshold.

[0138] Optionally, the adjustment unit is specifically used to reduce the output power of the first battery and the second battery when they are reversely charged; or, to adjust the power supply time of the first battery and the second battery when they are reversely charged, so that the first battery and the second battery are reversely charged alternately.

[0139] In this embodiment, a first battery and a coil are arranged in a first device body of an electronic device, an interface is arranged on the first device body, a second battery is arranged in a second device body of the electronic device, and a reverse charging type of the electronic device is obtained by a first acquisition module 701; a first reverse charging operation is performed according to the reverse charging type by an execution module 702; wherein the first reverse charging operation includes: when the reverse charging type includes reverse wireless charging, the second battery is used to charge the coil, and reverse charging is performed through the coil; when the reverse charging type includes reverse wired charging, the first battery is used to reverse charge through the interface. In this way, by arranging two batteries in the electronic device, and according to the positional relationship between the coil and the battery, and the wiring distance relationship between the battery and the interface, the second battery is used to charge the coil during reverse wireless charging, and reverse charging is performed through the coil, and the first battery is used to reverse charge through the interface during reverse wired charging, thereby reducing losses and further reducing the heating of the electronic device.

[0140] The reverse charging device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device can be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0141] The reverse charging device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0142] The reverse charging device provided in the embodiment of the present application can achieve Figures 1 to 3 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0143] Alternatively, if Figure 8 As shown, an embodiment of the present application also provides an electronic device 800, including a processor 801, a memory 802, and a program or instruction stored in the memory 802 and executable on the processor 801. When the program or instruction is executed by the processor 801, each process of the above-mentioned reverse charging method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0144] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0145] Fig. 9 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0146] The electronic device 900 includes but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, and a processor 910 and other components.

[0147] Those skilled in the art can understand that the electronic device 900 can also include a power source (such as a battery) for supplying power to each component, and the power source can be logically connected to the processor 910 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. That is, the electronic device also includes a first device body and a second device body, the first device body is provided with a first battery and a coil, the first device body is provided with an interface, and the second device body is provided with a second battery.

[0148] Fig. 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0149] Among them, the processor 910 is used to obtain the reverse charging type of the electronic device; perform a first reverse charging operation according to the reverse charging type; wherein the first reverse charging operation includes: when the reverse charging type includes reverse wireless charging, using the second battery to charge the coil and reverse charging through the coil; when the reverse charging type includes reverse wired charging, using the first battery to reverse charge through the interface.

[0150] In this embodiment, the reverse charging type of the electronic device is obtained by the processor 910; a first reverse charging operation is performed according to the reverse charging type; wherein the first reverse charging operation includes: when the reverse charging type includes reverse wireless charging, the second battery is used to charge the coil, and reverse charging is performed through the coil; when the reverse charging type includes reverse wired charging, the first battery is used to reverse charge through the interface. In this way, by setting two batteries in the electronic device, and according to the positional relationship between the coil and the battery, and the wiring distance relationship between the battery and the interface, the second battery is used to charge the coil during reverse wireless charging, and reverse charging is performed through the coil, and the first battery is used to reverse charge through the interface during reverse wired charging, thereby reducing losses and further reducing the heating of the electronic device.

[0151] Optionally, the processor 910 is further used to obtain a first temperature value corresponding to the first battery and a second temperature value corresponding to the second battery; when the first temperature value and the second temperature value meet a preset condition, the first reverse charging operation is switched to a second reverse charging operation; wherein the second reverse charging operation is different from the first reverse charging operation.

[0152] Optionally, the reverse charging type only includes reverse wireless charging or reverse wired charging; the processor 910 is also used to, when the reverse charging type only includes reverse wireless charging, if the second temperature value is greater than a first threshold and the first temperature value is less than the first threshold, switch the second battery to the first battery to charge the coil and perform reverse charging through the coil; or, when the reverse charging type only includes reverse wired charging, if the first temperature value is greater than a first threshold and the second temperature value is less than the first threshold, switch the first battery to the second battery and perform reverse charging through the interface.

[0153] Optionally, the processor 910 is further used to obtain a third temperature value corresponding to the first battery and a fourth temperature value corresponding to the second battery after a preset time period for reverse charging of the electronic device; when the third temperature value is less than the first threshold and the fourth temperature value is less than the first threshold, control the first battery and the second battery to be reverse charged at the same time; when the third temperature value is greater than the first threshold and the fourth temperature value is greater than the first threshold, control the first battery and the second battery to be reverse charged at the same time.

[0154] Optionally, the reverse charging type includes reverse wireless charging and reverse wired charging; the processor 910 is further used to adjust the power supply parameters of the first battery and the second battery during reverse charging when the first temperature value is greater than a second threshold and the second temperature value is greater than the second threshold, so that the first reverse charging operation is switched to a second reverse charging operation; or, when one of the first temperature value and the second temperature value is less than the second threshold and the other of the first temperature value and the second temperature value is greater than the second threshold, switch the second battery to the first battery to charge the coil, and reverse charge through the coil, switch the first battery to the second battery, and reverse charge through the interface.

[0155] Optionally, the processor 910 is further used to reduce the output power of the first battery and the second battery during reverse charging; or, to adjust the power supply time of the first battery and the second battery during reverse charging, so that the first battery and the second battery are reverse charged alternately.

[0156] It should be understood that in the embodiment of the present application, the input unit 904 may include a graphics processor (Graphics Processing Unit, GPU) 9041 and a microphone 9042, and the graphics processor 9041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 907 includes a touch panel 9071 and other input devices 9072. The touch panel 9071 is also called a touch screen. The touch panel 9071 may include two parts: a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 909 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 910 can integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and applications, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 910.

[0157] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned reverse charging method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0158] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0159] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned reverse charging method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0160] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0161] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0162] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0163] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A reverse charging method, characterized in that: Applied to an electronic device, the electronic device includes a first device body and a second device body, the first device body is provided with a first battery and a coil, the first device body is provided with an interface, and the second device body is provided with a second battery, the method includes: Get the reverse charging type of the electronic device; performing a first reverse charging operation according to the reverse charging type; The first reverse charging operation includes: when the reverse charging type includes reverse wireless charging, using the second battery to charge the coil and performing reverse charging through the coil; when the reverse charging type includes reverse wired charging, using the first battery to perform reverse charging through the interface; After performing the first reverse charging operation according to the reverse charging type, the method further includes: Acquire a first temperature value corresponding to the first battery and a second temperature value corresponding to the second battery; When the first temperature value and the second temperature value meet a preset condition, switching the first reverse charging operation to a second reverse charging operation; wherein the second reverse charging operation is different from the first reverse charging operation; The reverse charging type only includes reverse wireless charging or reverse wired charging; The step of switching the first reverse charging operation to the second reverse charging operation when the first temperature value and the second temperature value meet a preset condition comprises: In the case where the reverse charging type includes only reverse wireless charging, if the second temperature value is greater than a first threshold value and the first temperature value is less than the first threshold value, the second battery is switched to the first battery to charge the coil, and reverse charging is performed through the coil; Alternatively, when the reverse charging type includes only reverse wired charging, if the first temperature value is greater than a first threshold value and the second temperature value is less than the first threshold value, the first battery is switched to the second battery, and reverse charging is performed through the interface; or, The reverse charging type includes reverse wireless charging and reverse wired charging; The step of switching the first reverse charging operation to the second reverse charging operation when the first temperature value and the second temperature value meet a preset condition comprises: When the first temperature value is greater than a second threshold value and the second temperature value is greater than the second threshold value, adjusting power supply parameters of the first battery and the second battery during reverse charging so that the first reverse charging operation is switched to a second reverse charging operation; Alternatively, when one of the first temperature value and the second temperature value is less than the second threshold and the other of the first temperature value and the second temperature value is greater than the second threshold, the second battery is switched to the first battery to charge the coil, and reverse charging is performed through the coil, and the first battery is switched to the second battery, and reverse charging is performed through the interface.

2. The method according to claim 1, characterized in that After the first reverse charging operation is switched to the second reverse charging operation when the first temperature value and the second temperature value meet a preset condition, the method further includes: After a preset time period during which the electronic device performs reverse charging, obtaining a third temperature value corresponding to the first battery and a fourth temperature value corresponding to the second battery; When the third temperature value is less than the first threshold value, and the fourth temperature value is less than the first threshold value, controlling the first battery and the second battery to be reverse charged simultaneously; Alternatively, when the third temperature value is greater than the first threshold value and the fourth temperature value is greater than the first threshold value, the first battery and the second battery are controlled to be reverse charged simultaneously.

3. The method according to claim 1, characterized in that The adjusting the power supply parameters of the first battery and the second battery during reverse charging includes: reducing the output power of the first battery and the second battery when reverse charging is performed; Alternatively, the power supply time of the first battery and the second battery during reverse charging is adjusted so that the first battery and the second battery are reversely charged alternately.

4. An electronic device, characterized in that: The reverse charging method according to any one of claims 1 to 3 comprises a first device body, a second device body, a first switch, a second switch and a controller, wherein the first device body is provided with a first battery and a coil, the first device body is provided with an interface, the second device body is provided with a second battery, the first battery and the second battery are connected to the coil through the first switch, and the first battery and the second battery are connected to the interface through the second switch; the controller is electrically connected to the first switch and the second switch respectively; The controller controls the connection status of the first battery and the second battery with the coil through the first switch, and controls the connection status of the first battery and the second battery with the interface through the second switch.

5. The electronic device according to claim 4, characterized in that: The electronic device further includes a first temperature sensor and a second temperature sensor, wherein the first temperature sensor is connected to the controller and is used to detect a first temperature value corresponding to the first battery; The second temperature sensor is connected to the controller and is used to detect a second temperature value corresponding to the second battery; During the reverse charging process, the controller controls the connection status of the first battery and the second battery with the coil, and controls the connection status of the first battery and the second battery with the interface according to the first temperature value and the second temperature value.

6. A reverse charging device, characterized in that: Applied to an electronic device, the electronic device comprises a first device body and a second device body, the first device body is provided with a first battery and a coil, the first device body is provided with an interface, the second device body is provided with a second battery, and the device comprises: A first acquisition module, used to acquire the reverse charging type of the electronic device; An execution module, configured to execute a first reverse charging operation according to the reverse charging type; The first reverse charging operation includes: when the reverse charging type includes reverse wireless charging, using the second battery to charge the coil and performing reverse charging through the coil; when the reverse charging type includes reverse wired charging, using the first battery to perform reverse charging through the interface; The device also includes: a second acquisition module, configured to acquire a first temperature value corresponding to the first battery and a second temperature value corresponding to the second battery; A switching module, configured to switch the first reverse charging operation to a second reverse charging operation when the first temperature value and the second temperature value meet a preset condition; wherein the second reverse charging operation is different from the first reverse charging operation; The reverse charging type only includes reverse wireless charging or reverse wired charging; the switching module includes: a first switching unit, configured to, when the reverse charging type includes only reverse wireless charging, switch the second battery to charge the coil with the first battery if the second temperature value is greater than a first threshold and the first temperature value is less than the first threshold, and perform reverse charging through the coil; a second switching unit, configured to, when the reverse charging type includes only reverse wired charging, switch the first battery to the second battery and perform reverse charging through the interface if the first temperature value is greater than a first threshold and the second temperature value is less than the first threshold; or, The reverse charging type includes reverse wireless charging and reverse wired charging; the switching module includes: an adjusting unit, configured to adjust power supply parameters of the first battery and the second battery during reverse charging when the first temperature value is greater than a second threshold value and the second temperature value is greater than the second threshold value, so that the first reverse charging operation is switched to a second reverse charging operation; A third switching unit is used to switch the second battery to the first battery to charge the coil and perform reverse charging through the coil, and switch the first battery to the second battery and perform reverse charging through the interface when one of the first temperature value and the second temperature value is less than the second threshold and the other of the first temperature value and the second temperature value is greater than the second threshold.

7. The device according to claim 6, characterized in that The device also includes: A third acquisition module, configured to acquire a third temperature value corresponding to the first battery and a fourth temperature value corresponding to the second battery after a preset time period during which the electronic device performs reverse charging; a first control module, configured to control the first battery and the second battery to be reverse charged simultaneously when the third temperature value is less than the first threshold value and the fourth temperature value is less than the first threshold value; The second control module is configured to control the first battery and the second battery to be reverse charged simultaneously when the third temperature value is greater than the first threshold value and the fourth temperature value is greater than the first threshold value.

8. The device according to claim 6, characterized in that The adjustment unit is specifically used to reduce the output power of the first battery and the second battery when they are reversely charged; or adjust the power supply time of the first battery and the second battery when they are reversely charged, so that the first battery and the second battery are reversely charged alternately.

9. An electronic device, characterized in that: It includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the reverse charging method as described in any one of claims 1 to 3.

10. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the reverse charging method as described in any one of claims 1 to 3 are implemented.