A smart terminal, charging and discharging method, device and medium
By using two batteries and processors in a smart terminal, intelligently managing battery charging and discharging, the problem of accelerated battery consumption is solved, extending battery life and improving user experience.
Patent Information
- Application Number
- CN202111140611.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-28
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2041-09-28
AI Technical Summary
The frequent use of smart terminals and the increase in power consumption of applications have led to an accelerated battery consumption, and users need to charge frequently, which reduces the battery life and affects the user experience.
It provides a smart terminal, including two batteries and a processor, and intelligently determines which battery is charged or discharged by comparing the remaining battery capacity of each battery with a preset battery threshold to avoid damage to the battery by frequent charging and discharging.
It effectively extends the service life of the battery, reduces the charging frequency of the battery by users, and improves the user experience.
Smart Images

Figure CN113937849B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart terminal technology, and in particular to a smart terminal, a charging and discharging method, a device and a medium. Background Art
[0002] With the rapid development of smart terminals, smart terminals have become an indispensable part of people's daily lives. In the related art, a battery is installed in the smart terminal, and the battery installed in the smart terminal is directly charged through Type-C or a magnetic suction path, and the normal operation of the smart terminal is ensured based on the discharge of the battery installed in the smart terminal.
[0003] However, due to the frequent use of smart terminals by people and the installation of more and more applications in smart terminals, the battery power is consumed faster and faster, so users need to charge the battery frequently. Too frequent charging and discharging will reduce the battery life and affect the user experience. Summary of the invention
[0004] The present application provides a smart terminal, charging and discharging methods, devices and media to solve the problem in the prior art that with the frequent use of smart terminals and the increase in power consumption of applications, users need to frequently charge the battery, thereby reducing the battery life and affecting the user experience.
[0005] In a first aspect, the present application provides a smart terminal, the smart terminal comprising: a first battery, a second battery and a processor;
[0006] The processor is used to obtain a first remaining power of the first battery and a second remaining power of the second battery; if it is determined that the first remaining power or the second remaining power is less than a preset power threshold, or the first remaining power is greater than the preset power threshold and less than the second remaining power, then control the charging of the first battery; if it is determined that the second remaining power or the first remaining power is less than the preset power threshold, or the second remaining power is greater than the preset power threshold and less than the first remaining power, then control the charging of the second battery.
[0007] In a second aspect, the present application further provides a smart terminal, the smart terminal comprising: a first battery, a second battery and a processor;
[0008] The processor is used to obtain a first remaining power of the first battery and a second remaining power of the second battery; if it is determined that the second remaining power is less than the first remaining power, the first battery is controlled to be discharged; if it is determined that the first remaining power is less than the second remaining power, the second battery is controlled to be discharged.
[0009] In a third aspect, the present application further provides a charging method, the method comprising:
[0010] Obtaining a first remaining power of the first battery and a second remaining power of the second battery;
[0011] If it is determined that the first remaining power or the second remaining power is less than a preset power threshold, or the first remaining power is greater than the preset power threshold and less than the second remaining power, the first battery is controlled to be charged; if it is determined that the second remaining power or the first remaining power is less than the preset power threshold, or the second remaining power is greater than the preset power threshold and less than the first remaining power, the second battery is controlled to be charged.
[0012] In a fourth aspect, the present application further provides a discharge method, the method comprising:
[0013] Obtaining a first remaining power of the first battery and a second remaining power of the second battery;
[0014] If it is determined that the second remaining power is less than the first remaining power, the first battery is controlled to be discharged; if it is determined that the first remaining power is less than the second remaining power, the second battery is controlled to be discharged.
[0015] In a fifth aspect, the present application also provides an electronic device, comprising a processor and a memory, wherein the memory is used to store program instructions, and the processor is used to implement the steps of the above-mentioned charging method when executing the computer program stored in the memory.
[0016] In a sixth aspect, the present application further provides an electronic device, comprising a processor and a memory, wherein the memory is used to store program instructions, and the processor is used to implement the steps of the above-mentioned discharge method when executing the computer program stored in the memory.
[0017] In a seventh aspect, the present application further provides a computer-readable storage medium storing a computer program, which implements the steps of the above-mentioned charging method when executed by a processor.
[0018] In an eighth aspect, the present application further provides a computer-readable storage medium storing a computer program, which implements the steps of the above-mentioned discharge method when executed by a processor.
[0019] In the present application, a first remaining power of a first battery and a second remaining power of a second battery are obtained; if it is determined that the first remaining power or the second remaining power is less than a preset power threshold, or the first remaining power is greater than the preset power threshold and less than the second remaining power, the first battery is controlled to be charged; if it is determined that the second remaining power or the first remaining power is less than the preset power threshold, or the second remaining power is greater than the preset power threshold and less than the first remaining power, the second battery is controlled to be charged. Since in the present application, the smart terminal includes a first battery and a second battery, compared with a single battery, it avoids the user from frequently charging the battery, and can determine whether to charge the first battery or the second battery based on the comparison result between the first remaining power of the first battery and the second remaining power of the second battery, and the comparison result between the first remaining power and the second remaining power and the preset power threshold, respectively, so that different batteries can be charged according to different situations, which plays a certain protective role on the battery, can effectively improve the battery life, and improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0021] Figure 1 A schematic diagram of the structure of a smart terminal provided in some embodiments of the present application;
[0022] Figure 2 A schematic diagram of the structure of a smart terminal provided in some embodiments of the present application;
[0023] Figure 3 A schematic diagram of the internal structure of a smart terminal provided in some embodiments of the present application;
[0024] Figure 4 A schematic diagram of a Type-C charging process provided in some embodiments of the present application;
[0025] Figure 5 A schematic diagram of a charging process based on a charger provided in some embodiments of the present application;
[0026] Figure 6 A schematic diagram of a discharge process provided for some embodiments of the present application;
[0027] Figure 7 A schematic diagram of a process for determining whether a battery state is abnormal provided in some embodiments of the present application;
[0028] Figure 8 A schematic diagram of a charging method provided in some embodiments of the present application;
[0029] Fig. 9 A process schematic diagram of a discharge method provided in some embodiments of the present application;
[0030] Fig.10 A schematic diagram of the structure of an electronic device provided for some embodiments of the present application;
[0031] Fig.11 A schematic diagram of the structure of an electronic device provided for some embodiments of the present application. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0033] In the present application, a first remaining power of a first battery and a second remaining power of a second battery are obtained; if it is determined that the first remaining power or the second remaining power is less than a preset power threshold, or the first remaining power is greater than the preset power threshold and less than the second remaining power, the first battery is controlled to be charged; if it is determined that the second remaining power or the first remaining power is less than the preset power threshold, or the second remaining power is greater than the preset power threshold and less than the first remaining power, the second battery is controlled to be charged. Since in the present application, the smart terminal includes a first battery and a second battery, compared with a single battery, it avoids the user from frequently charging the battery, and can determine whether to charge the first battery or the second battery based on the comparison result between the first remaining power of the first battery and the second remaining power of the second battery, and the comparison result between the first remaining power and the second remaining power and the preset power threshold, respectively, so that different batteries can be charged according to different situations, which plays a certain protective role on the battery, can effectively improve the battery life, and improve the user experience.
[0034] In order to avoid users from frequently charging the battery and to increase the service life of the battery, the embodiments of the present application provide a smart terminal, a charging and discharging method, a device and a medium.
[0035] Embodiment 1:
[0036] Figure 1A schematic diagram of the structure of a smart terminal provided in some embodiments of the present application, the smart terminal includes: a first battery 101, a second battery 102 and a processor 103;
[0037] The processor 103 is used to obtain a first remaining power of the first battery 101 and a second remaining power of the second battery 102; if it is determined that the first remaining power or the second remaining power is less than a preset power threshold, or the first remaining power is greater than the preset power threshold and less than the second remaining power, then control the charging of the first battery 101; if it is determined that the second remaining power or the first remaining power is less than the preset power threshold, or the second remaining power is greater than the preset power threshold and less than the first remaining power, then control the charging of the second battery 102.
[0038] In order to avoid the problem that the battery of the smart terminal needs to be frequently charged due to frequent use or high power consumption of applications, in the present application, the smart terminal includes two batteries, namely a first battery and a second battery.
[0039] When charging two batteries in a smart terminal, in order to protect the batteries contained in the smart terminal, it is possible to determine which battery of the first battery and the second battery to charge based on the first remaining power of the first battery and the second remaining power of the second battery. Among them, the first remaining power and the second remaining power can be specific power values, or they can be the ratio of the remaining power values of the first battery and the second battery to the total power values of the corresponding batteries when they are fully charged, such as 50%, 80%, etc. Because the total power of the battery is different, for the convenience of comparison, the remaining power can be represented by the ratio of the remaining power value to the total power value when the battery is fully charged in the embodiment of the present application. Therefore, according to the first remaining power of the first battery and the second remaining power of the second battery, the battery with low remaining power in the first battery and the second battery can be determined, and the battery with low remaining power can be charged first. Among them, when charging the battery, it can be charged based on Type-C or based on a charger.
[0040] Specifically, in the present application, after obtaining the first remaining power of the first battery and the second remaining power of the second battery, it is possible to determine which battery to charge based on the comparison results of the first remaining power of the first battery or the second remaining power of the second battery with the preset power threshold, and the comparison results of the first remaining power and the second remaining power. Specifically, if the first remaining power of the first battery is less than the preset power threshold, or the second remaining power of the second battery is less than the preset power threshold, or the first remaining power is greater than the preset power threshold and less than the second remaining power, then control to charge the first battery; if the second remaining power is less than the preset power threshold, or the first remaining power is less than the preset power threshold, or the second remaining power is greater than the preset power threshold and less than the first remaining power, then control to charge the second battery. Among them, the preset power threshold is used to measure whether the remaining power of the battery is too low. The preset power threshold can be 5%, 7%, etc.
[0041] In the present application, the first remaining power of the first battery and the second remaining power of the second battery can be determined in real time, and the first remaining power and the second remaining power can be compared. According to the comparison result of the first remaining power and the second remaining power, it is determined in real time which battery to charge. In order to reduce the workload of the processor, the power of the battery can be divided into corresponding power ranges in advance, and each power range can be set with corresponding stages, wherein the higher the stage number, the more corresponding remaining power.
[0042] In the process of determining which battery to charge, the stage corresponding to the power of the first battery and the stage corresponding to the power of the second battery can be compared first. If the stage corresponding to the power of the first battery is smaller than the stage corresponding to the power of the second battery, it means that the first remaining power of the first battery is less than the second remaining power of the second battery, and the first battery is controlled to be charged; if the stage corresponding to the power of the first battery is larger than the stage corresponding to the power of the second battery, it means that the first remaining power of the first battery is larger than the second remaining power of the second battery, and the second battery is controlled to be charged; if the stage corresponding to the power of the first battery is the same as the stage corresponding to the power of the second battery, the first remaining power and the second remaining power are compared, and based on the battery with the smaller remaining power between the first remaining power and the second remaining power, the battery with the smaller remaining power is controlled to be charged.
[0043] In the present application, since the stages corresponding to each power range are pre-set, as long as the stage corresponding to the power of one battery is higher than the stage corresponding to the power of another battery, when the battery at the lower stage is charged, as long as the stage corresponding to the power of the battery at the lower stage does not change, the remaining power of the battery at this stage must be smaller than that of the battery at the higher stage. Therefore, in order to reduce the workload of the processor, whenever the stage corresponding to the power of the battery being charged changes, the stages corresponding to the power of the two batteries can be compared again to determine the remaining power of the two batteries, so as to determine which battery to charge next.
[0044] For example, it is divided into four stages, namely stage 0, stage 1, stage 2 and stage 3. The power range corresponding to stage 0 is 2%-5%, the power range corresponding to stage 1 is 6%-35%, the power range corresponding to stage 2 is 36%-70%, and the power range corresponding to stage 3 is 71%-100%. If the first remaining power of the first battery is 60% at this time, which is in stage 2, and the second remaining power of the second battery is 30% at this time, which is in stage 1, and the preset power threshold is 5%, since the current first remaining power is greater than the second remaining power, and the second remaining power is not less than the preset power threshold, the second battery is controlled to charge. After the second battery is charged for a period of time, the stage corresponding to the power of the second battery changes from stage 1 to stage 2, that is, when the second battery is charged to a second remaining power of 36%, since the second remaining power is still less than the first remaining power at this time, the second battery continues to be charged, and the first battery is not charged. After the second battery is charged for a period of time, the stage corresponding to the power of the second battery changes from stage 2 to stage 3, that is, when the second battery is charged to a second remaining power of 71%, since the second remaining power is greater than the first remaining power at this time, the first battery is charged and the charging of the second battery is stopped until both batteries are fully charged.
[0045] Embodiment 2:
[0046] In order to determine the first remaining power of the first battery and the second remaining power of the second battery, based on the above embodiment, in the present application, the smart terminal further includes: a first power meter 104 and a second power meter 105, the first power meter 104 is connected to the first battery 101, and the second power meter 105 is connected to the second battery 102;
[0047] The first power meter 104 is used to measure a first remaining power of the first battery 101;
[0048] The second power meter 105 is used to measure a second remaining power of the second battery 102;
[0049] The processor 103 is specifically configured to obtain the first remaining power measured by the first power meter 104 and the second remaining power measured by the second power meter 105 .
[0050] In the present application, in order to enable the processor to determine whether to charge the first battery or the second battery according to the first remaining power of the first battery and the second remaining power of the second battery, the smart terminal includes two power meters, namely a first power meter and a second power meter, the first power meter is connected to the first battery and is used to measure the first remaining power of the first battery, and the second power meter is connected to the second battery and is used to measure the second remaining power of the second battery. The processor obtains the first remaining power measured by the first power meter and the second remaining power measured by the second power meter.
[0051] Embodiment 3:
[0052] In order to protect the first battery, based on the above embodiments, in the present application, the processor is specifically used to control trickle charging of the first battery if it is determined that the first remaining power is less than a preset power threshold.
[0053] In the present application, if the processor determines that the first remaining power is less than a preset power threshold, it means that the first remaining power of the first battery is too low. In order to protect the first battery, the first battery can be charged with a relatively small current, that is, the first battery is controlled to be trickle charged, wherein the current during trickle charging is generally tens of milliamperes or hundreds of milliamperes.
[0054] In order to realize trickle charging of the first battery, on the basis of the above embodiments, in the present application, the smart terminal further includes: a first switch unit 106 and a first charging chip 107, wherein the first switch unit 106 is connected to the first charging chip 107;
[0055] The processor is specifically configured to control the first switch unit to be connected if it is determined that the first remaining power is less than the preset power threshold, so that the first charging chip performs trickle charging on the first battery.
[0056] In the present application, in order to ensure that the first battery of the smart terminal can be trickle charged, the smart terminal also includes: a first switch unit and a first charging chip, the first switch unit is connected to the first charging chip, and the first switch unit is connected to the first battery, the first switch unit is used to connect or disconnect the circuit, and the first charging chip is used to charge the first battery with a set first charging current under the control of the processor. The set first charging current is tens of milliamperes or hundreds of milliamperes. Therefore, when it is determined that the first remaining power of the first battery is less than the preset power threshold, the first switch unit is controlled to be connected so that the first charging chip performs trickle charging on the first battery.
[0057] In order to charge the first battery, on the basis of the above embodiments, in the present application, the processor is specifically used to fast charge the first battery if the second remaining power is less than a preset power threshold, or the first remaining power is greater than the preset power threshold and less than the second remaining power.
[0058] In the present application, if the second remaining power of the second battery is less than the preset power threshold, it means that the second remaining power of the second battery is too low. Therefore, in order to ensure the safety of the second battery, the second battery can be trickle charged. In order to improve the efficiency of charging, and in the process of charging the second battery, the second battery is charged with a lower and safe current, so while the second battery is trickle charged, the first battery can also be fast charged, that is, if the second remaining power is less than the preset power threshold, the first battery is fast charged.
[0059] If the first remaining power of the first battery is greater than the preset power threshold and less than the second remaining power, it means that the remaining power of the first battery and the second battery is not particularly low. Therefore, the battery with the lower remaining power among the first battery and the second battery can be directly fast charged, that is, the first battery can be fast charged.
[0060] In order to realize fast charging of the first battery, on the basis of the above embodiments, in the present application, the smart terminal 101 further includes: a second switch unit 108 and a second charging chip 109, and the second switch unit 108 is connected to the second charging chip 109;
[0061] The processor 103 is specifically used to control the second switch unit 108 to be connected if the second remaining power is less than a preset power threshold, or the first remaining power is greater than the preset power threshold and less than the second remaining power, so that the second charging chip 109 fast charges the first battery 101.
[0062] In the present application, in order to ensure that the first battery of the smart terminal can be fast charged, the smart terminal also includes: a second switch unit and a second charging chip, and the second switch unit is connected to the second charging chip, and the second switch unit is connected to the first battery, the second switch unit is used to connect or disconnect the circuit, and the second charging chip is used to charge the first battery with a set second charging current under the control of the processor. Wherein, if charging is based on Type-C, the set second charging current is 3A, and if charging is based on a charger, the set second charging current is 2A. Therefore, when it is determined that the second remaining power of the second battery is less than the preset power threshold, or the first remaining power is greater than the preset power threshold and less than the second remaining power, the second switch unit is controlled to be connected, so that the second charging chip can fast charge the first battery.
[0063] Embodiment 4:
[0064] In order to protect the second battery, based on the above embodiments, in the present application, the processor is specifically used to control trickle charging of the second battery if it is determined that the second remaining power is less than the preset power threshold.
[0065] In the present application, if the processor determines that the second remaining power is less than a preset power threshold, it means that the second remaining power of the second battery is too low. In order to protect the second battery, the second battery can be charged with a relatively small current, that is, the second battery is controlled to be trickle charged, wherein the current during trickle charging is generally tens of milliamperes or hundreds of milliamperes.
[0066] In order to realize trickle charging of the second battery, on the basis of the above embodiments, in the present application, the smart terminal further includes: a third switch unit 110 and a third charging chip 111, wherein the third switch unit 110 is connected to the third charging chip 111;
[0067] The processor 103 is specifically configured to control the third switch unit 110 to be connected if it is determined that the second remaining power is less than the preset power threshold, so that the third charging chip 111 performs trickle charging on the second battery 102 .
[0068] In the present application, in order to ensure that the second battery of the smart terminal can be trickle charged, the smart terminal also includes: a third switch unit and a third charging chip, and the third switch unit is connected to the third charging chip, and the third switch unit is connected to the second battery, the third switch unit is used to connect or disconnect the circuit, and the third charging chip is used to charge the second battery with a set third charging current under the control of the processor. The set third charging current is tens of milliamperes or hundreds of milliamperes. Therefore, when it is determined that the second remaining power of the second battery is less than the preset power threshold, the third switch unit is controlled to be connected, so that the third charging chip performs trickle charging on the second battery.
[0069] In order to fast charge the second battery, on the basis of the above embodiments, in the present application, the processor 103 is specifically used to fast charge the second battery 102 if the first remaining power is less than the preset power threshold, or the second remaining power is greater than the preset power threshold and less than the first remaining power.
[0070] In the present application, if the first remaining power of the first battery is less than the preset power threshold, it means that the first remaining power of the first battery is too low. Therefore, in order to ensure the safety of the first battery, the first battery can be trickle charged. In order to improve the efficiency of charging, and in the process of charging the first battery, the first battery is charged with a lower and safe current, so while the first battery is trickle charged, the second battery can also be fast charged, that is, if the first remaining power is less than the preset power threshold, the second battery is fast charged.
[0071] If the second remaining power of the second battery is greater than the preset power threshold and less than the first remaining power, it means that the remaining power of the first battery and the second battery is not particularly low. Therefore, the battery with the lower remaining power among the first battery and the second battery can be directly fast charged, that is, the second battery can be fast charged.
[0072] In order to realize fast charging of the second battery, on the basis of the above embodiments, in the present application, the smart terminal further includes: a fourth switch unit 112 and a fourth charging chip 113, wherein the fourth switch unit 112 is connected to the fourth charging chip 113;
[0073] The processor 103 is specifically used to control the fourth switch unit 112 to be connected if the first remaining power is less than the preset power threshold, or the second remaining power is greater than the preset power threshold and less than the first remaining power, so that the fourth charging chip 113 fast charges the second battery 102.
[0074] In the present application, in order to ensure that the second battery of the smart terminal can be fast charged, the smart terminal also includes: a fourth switch unit and a fourth charging chip, and the fourth switch unit is connected to the fourth charging chip, and the fourth switch unit is connected to the second battery, the fourth switch unit is used to connect or disconnect the circuit, and the fourth charging chip is used to charge the second battery with a set fourth charging current under the control of the processor. Wherein, if charging is based on Type-C, the set fourth charging current is 3A, and if charging is based on a charger, the set fourth charging current is 2A. Therefore, when it is determined that the first remaining power of the first battery is less than the preset power threshold, or the second remaining power is greater than the preset power threshold and less than the first remaining power, the fourth switch unit is controlled to be connected, so that the fourth charging chip can fast charge the second battery.
[0075] Embodiment 5:
[0076] Figure 2 A schematic diagram of the structure of a smart terminal provided in some embodiments of the present application, the smart terminal includes: a first battery 201, a second battery 202 and a processor 203;
[0077] The processor 203 is used to obtain a first remaining power of the first battery 201 and a second remaining power of the second battery 202. If it is determined that the second remaining power is less than the first remaining power, the processor 203 controls the discharge of the first battery 201. If it is determined that the first remaining power is less than the second remaining power, the processor 203 controls the discharge of the second battery 202.
[0078] In the present application, when controlling the discharge of two batteries in the smart terminal, in order to protect the batteries contained in the smart terminal, it is possible to determine which of the first battery and the second battery to discharge based on the first remaining power of the first battery and the second remaining power of the second battery. For example, based on the first remaining power of the first battery and the second remaining power of the second battery, determine the battery with more remaining power among the first battery and the second battery, and control the battery with more remaining power to discharge first. Specifically, in the present application, after obtaining the first remaining power of the first battery and the second remaining power of the second battery, if the first remaining power is less than the second remaining power, the second battery is controlled to discharge, and if the first remaining power is greater than the second remaining power, the first battery is controlled to discharge.
[0079] Embodiment 6:
[0080] In order to determine the first remaining power of the first battery and the second remaining power of the second battery, based on the above embodiments, in the present application, the smart terminal further includes: a first power meter 204 and a second power meter 205, wherein the first power meter 204 is connected to the first battery 201, and the second power meter 205 is connected to the second battery 202;
[0081] The first power meter 204 is used to measure a first remaining power of the first battery 201;
[0082] The second power meter 205 is used to measure a second remaining power of the second battery 202;
[0083] The processor 203 is specifically configured to obtain the first remaining power measured by the first power meter 204 and the second remaining power measured by the second power meter 205 .
[0084] In the present application, in order to enable the processor to determine whether to discharge the first battery or the second battery according to the first remaining power of the first battery and the second remaining power of the second battery, the smart terminal includes two fuel meters, namely a first fuel meter and a second fuel meter, the first fuel meter is connected to the first battery and is used to measure the first remaining power of the first battery, and the second fuel meter is connected to the second battery and is used to measure the second remaining power of the second battery. The processor obtains the first remaining power measured by the first fuel meter and the second remaining power measured by the second fuel meter.
[0085] Embodiment 7:
[0086] In order to realize the discharge of the first battery, on the basis of the above embodiments, in the present application, the smart terminal 201 further includes: a fifth switch unit 206, the fifth switch unit 206 is connected to the first battery 201;
[0087] The processor 203 is specifically configured to control the fifth switch unit 206 to be connected if it is determined that the second remaining power is less than the first remaining power, so as to discharge the first battery 201.
[0088] In the present application, in order to ensure that the first battery of the smart terminal can be controlled to discharge, the smart terminal also includes a fifth switch unit, which is connected to the first battery, wherein the fifth switch unit is used to connect or disconnect the circuit. Therefore, if it is determined that the second remaining power of the second battery is less than the first remaining power of the first battery, the fifth switch unit is controlled to be connected to allow the first battery to discharge.
[0089] Embodiment 8:
[0090] In order to realize the discharge of the second battery, on the basis of the above embodiments, in the present application, the smart terminal 201 further includes: a sixth switch unit 207, the sixth switch unit 207 is connected to the second battery 202;
[0091] The processor 203 is specifically configured to control the sixth switch unit 207 to be connected if it is determined that the first remaining power is less than the second remaining power, so as to discharge the second battery 201.
[0092] In the present application, in order to ensure that the second battery of the smart terminal can be controlled to discharge, the smart terminal also includes a sixth switch unit, which is connected to the second battery, wherein the sixth switch unit is used to connect or disconnect the circuit. Therefore, if it is determined that the first remaining power of the first battery is less than the second remaining power of the second battery, the sixth switch unit is controlled to be connected to allow the second battery to discharge.
[0093] Figure 3 A schematic diagram of the internal structure of a smart terminal provided in some embodiments of the present application, Figure 4 A schematic diagram of a Type-C charging process provided in some embodiments of the present application. Figure 5 A schematic diagram of a charging process based on a charger provided in some embodiments of the present application, Figure 6 A discharge process diagram is provided for some embodiments of the present application. Figure 3 , Figure 4 , Figure 5 as well as Figure 6 Provide explanation.
[0094] The intelligent terminal includes a processor, a battery 1, a battery 2, an electronic switch 1, an electronic switch 2, an electronic switch 3, an electronic switch 4, an electronic switch 5, a parallel charging chip, a seat charging chip IC1, a seat core charging chip IC2, a power meter 1, a power meter 2, an LED 1 lamp, an LED 2 lamp, an overvoltage protection circuit 1, and an overvoltage protection circuit 2.
[0095] In order to protect the circuit, the Type-C charging port is connected to the overvoltage protection circuit 1, and the overvoltage protection circuit 1 is respectively connected to the electronic switch 1 and the electronic switch 2. The electronic switch 1 is connected to the parallel charging chip, and the parallel charging chip is respectively connected to the electronic switch 3 and the electronic switch 4, the electronic switch 3 is connected to the battery 1, and the electronic switch 4 is connected to the battery 2. The electronic switch 2 is connected to the bidirectional soft switch, and the bidirectional soft switch is connected to the charging cradle chip IC1, the charging cradle chip IC2, and the overvoltage protection circuit 2. In order to protect the circuit, the overvoltage protection circuit 2 is connected to the charging port of the charging cradle, the charging cradle chip IC1 is connected to the battery 1, the charging cradle chip IC2 is connected to the battery 2, the battery 1 is connected to the fuel meter 1, the battery 2 is connected to the fuel meter 2, the fuel meter 1 is connected to the LED lamp 1, and the fuel meter 2 is connected to the LED lamp 2. The processor is respectively connected to the parallel charging chip based on the external interface 12C1, connected to the charging cradle chip IC1, the fuel meter 1 and the LED lamp 1 based on the external interface 12C2, and connected to the charging cradle chip IC2, the fuel meter 2 and the LED lamp 2 based on the external interface 12C3.
[0096] When charging based on Type-C:
[0097] In the present application, the battery 1 is the first battery, and the battery 2 is the second battery. According to the circuit structure of the intelligent terminal, when charging the first battery, the first battery can be charged through the first path corresponding to the Type-C charging port-overvoltage protection circuit 1-electronic switch 1-parallel charging chip-electronic switch 3-battery 1, and the first battery can also be charged through the second path corresponding to the Type-C charging port-electronic switch 2-bidirectional soft switch-seat charging chip IC1-battery 1. When charging the second battery, the second battery can be charged according to the third path corresponding to the Type-C charging port-overvoltage protection circuit 1-electronic switch 1-parallel charging chip-electronic switch 4-battery 1, and the second battery can also be charged through the fourth path corresponding to the Type-C charging port-electronic switch 2-bidirectional soft switch-seat charging chip IC2-battery 2.
[0098] If the first remaining power of the first battery is less than the preset power threshold, and the second remaining power of the second battery is less than the preset power threshold, the control performs trickle charging on both the first battery and the second battery. The first battery can be trickle charged according to the first path or the second path. Since each charging chip can only be used to charge one battery, if the first battery is trickle charged according to the first path, the second battery can only be trickle charged based on the fourth path; if the first battery is trickle charged according to the second path, the second battery can be trickle charged based on the third path or the fourth path.
[0099] Wherein, if the first battery is trickle charged based on the first path, the first switch unit includes: electronic switch 1, electronic switch 3, the first charging chip is a parallel charging chip, specifically, the processor configures the parallel charging chip according to the external interface 12C1, and controls the electronic switch 1 and the electronic switch 3 to close, so as to trickle charge the first battery. At this time, the second battery can only be trickle charged based on the fourth path, that is, the third switch circuit includes: electronic switch 2, bidirectional soft switch, the third charging chip is a seat charging chip IC2, at this time, the processor configures the seat charging chip IC2 according to the external interface 12C3, and controls the electronic switch 2 and the bidirectional soft switch to close, so as to trickle charge the second battery; if the first battery is trickle charged based on the second path, the first switch unit includes: electronic switch 2, bidirectional soft switch, the first charging chip is a seat charging chip IC1, specifically, the processor configures the seat charging chip IC1 according to the external interface 12C2, and controls the electronic switch 2 and the bidirectional soft switch to close, so as to trickle charge the first battery. At this time, the second battery can be trickle charged based on the third path or the fourth path, that is, the third switch circuit can include: electronic switch 2, bidirectional soft switch, and the third charging chip can be a seat charging chip IC2; the third switch circuit can also include: electronic switch 1, electronic switch 4, and the third charging chip can also be a parallel charging chip. Specifically, the processor configures the seat charging chip IC2 according to the external interface 12C3, and controls the electronic switch 2 and the bidirectional soft switch to be closed to enable trickle charging of the second battery, or configures the parallel charging chip according to the external interface 12C1, and controls the electronic switch 1 and the electronic switch 4 to be closed to enable trickle charging of the second battery.
[0100] If the second remaining power of the second battery is less than the preset power threshold, and the first remaining power of the first battery is greater than the preset power threshold, the first battery is controlled to be fast charged, and the second battery is controlled to be trickle charged. The first battery can be fast charged according to the first path or the second path. Since each charging chip can only be used to charge one battery, if the first battery is fast charged according to the first path, the second battery can only be trickle charged based on the fourth path. If the first battery is fast charged according to the second path, the second battery can be trickle charged based on the third path or the fourth path. Among them, if the first battery is fast charged based on the first path, the second switch unit may include: an electronic switch 1, an electronic switch 3, the second charging chip is a parallel charging chip, the processor configures the parallel charging chip based on the external interface 12C1, and controls the electronic switch 1 and the electronic switch 3 to be turned off, and the first battery is fast charged. At this time, the second battery can only be trickle charged based on the fourth path, that is, the third switch circuit includes: an electronic switch 2, a bidirectional soft switch, and the third charging chip is a seat charging chip IC2. At this time, the processor configures the seat charging chip IC2 according to the external interface 12C3, and controls the electronic switch 2 and the bidirectional soft switch to be turned off to allow the second battery to be trickle charged; if the first battery is fast charged based on the second path, the second switch unit may include: an electronic switch 2, a bidirectional soft switch, and the second charging chip may also be a seat charging chip IC1. Specifically, the processor configures the seat charging chip IC1 according to the external interface 12C2, and controls the electronic switch 2 and the bidirectional soft switch to be turned off to allow the first battery to be fast charged. At this time, the second battery can be trickle charged based on the third path or the fourth path, that is, the third switch unit can be an electronic switch 1 or an electronic switch 4, and the second charging chip is a parallel charging chip. The third switch unit can also include: an electronic switch 2, a bidirectional soft switch, and the third charging chip is a seat charging chip IC2. Specifically, the processor configures the parallel charging chip based on the external interface 12C1, and controls the electronic switch 1 and the electronic switch 4 to be turned off, so as to trickle charge the second battery, or configures the seat charging chip IC2 according to the external interface 12C3, and controls the electronic switch 2 and the bidirectional soft switch to be turned off, so as to trickle charge the second battery.
[0101] If the first remaining power of the first battery is less than a preset power threshold and the second remaining power of the second battery is greater than the preset power threshold, the first battery is controlled to be trickle charged, and the second battery is controlled to be fast charged. The first battery can be trickle charged according to the first path or the second path. Since each charging chip can only be used to charge one battery, if the first battery is trickle charged according to the first path, the second battery can only be fast charged based on the fourth path. If the first battery is trickle charged according to the second path, the second battery can be fast charged based on the third path or the fourth path. Among them, if the first battery is trickle charged based on the first path, the first switch unit includes: an electronic switch 1, an electronic switch 3, the first charging chip is a parallel charging chip, the processor configures the parallel charging chip based on the external interface 12C1, and controls the electronic switch 1 and the electronic switch 3 to be turned off, and the first battery is trickle charged. At this time, the second battery can only be fast charged based on the fourth path, that is, the fourth switch circuit includes: an electronic switch 2, a bidirectional soft switch, and the fourth charging chip is a seat charging chip IC2. At this time, the processor configures the seat charging chip IC2 according to the external interface 12C3, and controls the electronic switch 2 and the bidirectional soft switch to be turned off, so that the second battery is fast charged; if the first battery is trickle charged based on the second path, the first switch unit includes: an electronic switch 2, a bidirectional soft switch, the second charging chip can also be a seat charging chip IC1, the processor configures the seat charging chip IC1 based on 12C2, and controls the electronic switch 2 and the bidirectional soft switch to be turned off, so that the first battery is trickle charged. At this time, the second battery can be fast charged based on the third path or the fourth path, that is, the fourth switch unit can be an electronic switch 2, a bidirectional soft switch, and the fourth charging chip is a seat charging chip IC2. The fourth switch unit can also be an electronic switch 1, an electronic switch 4, and the fourth charging chip can also be a parallel charging chip. Specifically, the processor configures the seat charging chip IC2 based on 12C3, and controls the electronic switch 2 and the bidirectional soft switch to be turned off to fast charge the second battery, or configures the parallel charging chip based on the external interface 12C1, and controls the electronic switch 1 and the electronic switch 4 to be turned off to fast charge the second battery.
[0102] If the first remaining power of the first battery and the second remaining power of the second battery are both greater than the preset power threshold, and the first remaining power is less than the second remaining power, the first battery is controlled to be fast charged, and the first battery can be fast charged according to the first path or the second path. If the first battery is fast charged based on the first path, the second switch unit includes: an electronic switch 1, an electronic switch 3, and the second charging chip is a parallel charging chip. Specifically, the processor configures the parallel charging chip based on the external interface 12C1, and controls the electronic switch 1 and the electronic switch 3 to be turned off, so as to fast charge the first battery. If the first battery is fast charged based on the second path, the second switch unit can also include: an electronic switch 2, a bidirectional soft switch, and the second charging chip can also be a charging seat chip IC1. Specifically, the processor configures the charging seat chip IC1 based on 12C2, and controls the electronic switch 2 and the bidirectional soft switch to be turned off, so as to fast charge the first battery.
[0103] If the first remaining power of the first battery and the second remaining power of the second battery are both greater than the preset power threshold, and the second remaining power is less than the first remaining power, the second battery is controlled to be fast charged, and the second battery can be fast charged according to the third path or the fourth path. If the second battery is fast charged based on the third path, the fourth switch unit can be an electronic switch 1 or an electronic switch 4, and the fourth charging chip is a parallel charging chip. Specifically, the processor configures the parallel charging chip based on the external interface 12C1, and controls the electronic switch 1 and the electronic switch 4 to be turned off, so as to fast charge the second battery. If the second battery is fast charged based on the fourth path, the fourth switch unit is an electronic switch 2, a bidirectional soft switch, and the fourth charging chip is a seat charging chip IC2. Specifically, the processor configures the seat charging chip IC2 based on 12C3, and controls the electronic switch 2 and the bidirectional soft switch to be turned off, so as to fast charge the second battery.
[0104] When charging based on the charger:
[0105] According to the circuit structure of the smart terminal, when charging the first battery, the first battery can be charged through the fifth path corresponding to the charging port of the cradle-overvoltage protection circuit 2-electronic switch 2-electronic switch 1-parallel charging chip-electronic switch 3-battery 1, and the first battery can also be charged through the sixth path corresponding to the charging port of the cradle-overvoltage protection circuit 2-bidirectional soft switch-cradle chip IC1-battery 1. When charging the second battery, the second battery can be charged according to the seventh path corresponding to the charging port of the cradle-overvoltage protection circuit 2-electronic switch 2-electronic switch 1-parallel charging chip-electronic switch 4-battery 1, and the second battery can also be charged through the seventh path corresponding to the charging port of the cradle-overvoltage protection circuit 2-bidirectional soft switch-cradle chip IC2-battery 2.
[0106] If the first remaining power of the first battery is less than the preset power threshold, and the second remaining power of the second battery is less than the preset power threshold, the first battery is controlled to be trickle charged, and the second battery is controlled to be trickle charged. The first battery can be trickle charged according to the fifth path or the sixth path. Since each charging chip can only be used to charge one battery, if the first battery is trickle charged according to the fifth path, the second battery can only be trickle charged based on the eighth path. If the first battery is trickle charged according to the sixth path, the second battery can be trickle charged based on the seventh path or the eighth path. Wherein, if the first battery is trickle charged based on the fifth path, the first switch unit includes: an electronic switch 1, a bidirectional soft switch, an electronic switch 2, and an electronic switch 3. The first charging chip can be a parallel charging chip. Specifically, the processor configures the parallel charging chip according to the external interface 12C1, and controls the electronic switch 1, the bidirectional soft switch, the electronic switch 2, and the electronic switch 3 to be closed, so as to trickle charge the first battery. At this time, the second battery can only be trickle charged based on the eighth path, that is, the third switch circuit includes: a bidirectional soft switch, the third charging chip is a seat charging chip IC2, specifically, the processor configures the seat charging chip IC2 based on 12C3, and controls the bidirectional soft switch to be closed, so that the second battery is trickle charged. If the first battery is trickle charged based on the sixth path, the first switch unit includes: a bidirectional soft switch, the first charging chip can also be a seat charging chip IC1, specifically, the processor configures the seat charging chip IC1 based on 12C2, and controls the bidirectional soft switch to be closed, so that the first battery is trickle charged. At this time, the second battery can be trickle charged based on the seventh path or the eighth path, that is, the third switch circuit includes: a bidirectional soft switch, the third charging chip is a seat charging chip IC2, the third switch circuit can also include: electronic switch 1, electronic switch 2, bidirectional soft switch, electronic switch 4, and the third charging chip can be a parallel charging chip. Specifically, the processor configures the charging chip IC2 according to the external interface 12C3, and controls the bidirectional soft switch to be closed to enable trickle charging of the second battery, or configures the parallel charging chip according to the external interface 12C1, and controls the electronic switch 1, the electronic switch 2, the bidirectional soft switch, and the electronic switch 4 to be closed to enable trickle charging of the second battery.
[0107] If the second remaining power of the second battery is less than the preset power threshold, and the first remaining power of the first battery is greater than the preset power threshold, the first battery is controlled to be fast charged, and the second battery is controlled to be trickle charged. The first battery can be fast charged according to the fifth path or the sixth path. Since each charging chip can only be used to charge one battery, if the first battery is fast charged according to the fifth path, the second battery can only be trickle charged based on the eighth path. If the first battery is fast charged according to the sixth path, the second battery can be trickle charged based on the seventh path or the eighth path. Among them, if the first battery is fast charged based on the fifth path, the second switch unit includes: electronic switch 1, electronic switch 2, bidirectional soft switch, electronic switch 3, and the second charging chip is a parallel charging chip. Specifically, the processor configures the parallel charging chip based on the external interface 12C1, and controls the electronic switch 1, electronic switch 2, bidirectional soft switch and electronic switch 3 to be turned off, so as to fast charge the first battery. At this time, the second battery can only be trickle charged based on the eighth path, that is, the third switch circuit includes: a bidirectional soft switch, and the third charging chip is a seat charging chip IC2. Then, the seat charging chip IC2 is configured based on 12C3, and the bidirectional soft switch is controlled to be turned off, so as to trickle charge the second battery. If the first battery is fast charged based on the sixth path, the second switch unit includes: a bidirectional soft switch, and the second charging chip is a seat charging chip IC1. Specifically, the processor configures the seat charging chip IC1 based on 12C2, and controls the bidirectional soft switch to be turned off, so as to fast charge the first battery. At this time, the second battery can be trickle charged based on the seventh path or the eighth path, that is, the third switch unit may include: electronic switch 1, electronic switch 2, bidirectional soft switch and electronic switch 4, the third charging chip is a parallel charging chip, the third switch unit includes: a bidirectional soft switch, the third charging chip is a seat charging chip IC2, the processor configures the parallel charging chip based on the external interface 12C1, and controls the electronic switch 1, the electronic switch 2, the bidirectional soft switch and the electronic switch 4 to be turned off, so as to trickle charge the second battery, or the processor configures the seat charging chip IC2 based on 12C3, and controls the bidirectional soft switch to be turned off, so as to trickle charge the second battery.
[0108] If the first remaining power of the first battery is less than the preset power threshold, and the second remaining power of the second battery is greater than the preset power threshold, the first battery is controlled to be trickle charged, and the second battery is controlled to be fast charged. The first battery can be trickle charged according to the fifth path or the sixth path. Since each charging chip can only be used to charge one battery, if the first battery is trickle charged according to the fifth path, the second battery can only be fast charged based on the eighth path. If the first battery is trickle charged according to the sixth path, the second battery can be fast charged based on the seventh path or the eighth path. Wherein, if the first battery is trickle charged based on the fifth path, the first switch unit includes: electronic switch 1, electronic switch 2, bidirectional soft switch and electronic switch 3. The first charging chip is a parallel charging chip. Specifically, the processor configures the parallel charging chip based on the external interface 12C1, and controls the electronic switch 1, electronic switch 2, bidirectional soft switch and electronic switch 3 to be closed, so as to trickle charge the first battery. At this time, the second battery can only be fast charged based on the eighth path, that is, the fourth switch unit is a bidirectional soft switch, and the fourth charging chip is the charging chip IC2. Specifically, the processor configures the charging chip IC2 based on 12C3, and controls the bidirectional soft switch to be closed to enable the second battery to be fast charged; if the first battery is trickle charged based on the sixth path, the first switch unit includes: a bidirectional soft switch, and the first charging chip is the charging chip IC1. Specifically, the processor configures the charging chip IC1 based on 12C2, and controls the bidirectional soft switch to be closed to enable the first battery to be trickle charged. At this time, the second battery can be fast charged based on the seventh path or the eighth path, that is, the fourth switch unit can be an electronic switch 1, an electronic switch 2, a bidirectional soft switch and an electronic switch 4, and the fourth charging chip is a parallel charging chip. The fourth switch unit can also be a bidirectional soft switch, and the fourth charging chip is a charging chip IC2. Specifically, the processor configures the parallel charging chip based on the external interface 12C1, and controls the electronic switch 1, the electronic switch 2, the bidirectional soft switch and the electronic switch 4 to be turned off, so as to fast charge the second battery, or the processor configures the charging chip IC2 based on 12C3, and controls the bidirectional soft switch to be turned off, so as to fast charge the second battery.
[0109] If the first remaining power of the first battery and the second remaining power of the second battery are both greater than the preset power threshold, and the first remaining power is less than the second remaining power, the first battery is controlled to be fast charged, and the first battery can be fast charged according to the fifth path or the sixth path. If the first battery is fast charged based on the fifth path, the second switch unit includes: electronic switch 1, electronic switch 2, bidirectional soft switch and electronic switch 3. The second charging chip is a parallel charging chip. Specifically, the processor configures the parallel charging chip based on the external interface 12C1, and controls the electronic switch 1, the electronic switch 2, the bidirectional soft switch and the electronic switch 3 to be turned off, so as to fast charge the first battery. If the first battery is fast charged based on the sixth path, the second switch unit includes: a bidirectional soft switch. The second charging chip is a seat charging chip IC1. Specifically, the processor configures the seat charging chip IC1 based on 12C2, and controls the bidirectional soft switch to be turned off, so as to fast charge the first battery.
[0110] If the first remaining power of the first battery and the second remaining power of the second battery are both greater than the preset power threshold, and the second remaining power is less than the first remaining power, the second battery is controlled to be fast charged, and the second battery can be fast charged according to the seventh path or the eighth path. If the second battery is fast charged based on the seventh path, the fourth switch unit includes: electronic switch 1, electronic switch 2, bidirectional soft switch and electronic switch 4, and the fourth charging chip is a parallel charging chip. Specifically, the processor configures the parallel charging chip based on the external interface 12C1, and controls the electronic switch 1, the electronic switch 2, the bidirectional soft switch and the electronic switch 4 to be turned off, so as to fast charge the second battery. If the second battery is fast charged based on the eighth path, the fourth switch unit includes: a bidirectional soft switch, and the fourth charging chip is a seat charging chip IC2. Specifically, the processor configures the seat charging chip IC2 based on 12C3, and controls the bidirectional soft switch to be turned off, so as to fast charge the second battery.
[0111] If charging with a charger and Type-C at the same time:
[0112] The charging principle is the same as the above-mentioned charging based on the dock charger alone and charging based on Type-C alone, and will not be elaborated here. However, in order to ensure that the battery is protected when fast charging is performed based on the dock charger and based on Type-C at the same time, it is necessary to control the current when the first battery or the second battery is fast charged. Generally, based on Type-C, the first battery or the second battery is fast charged with a current of 3A, and based on the dock charger, the first battery or the second battery is fast charged with a current of 2A. When based on the dock charger and Type-C at the same time, the first battery or the second battery can be fast charged with a current of 1A, thereby ensuring the safety of battery charging. In the present application, the size of the battery for charging the battery is controlled based on the charging chip in the smart terminal.
[0113] When discharging:
[0114] If the first remaining power of the first battery is greater than the second remaining power of the second battery, the fifth switch unit is controlled to be connected to discharge the first battery, and the fifth electronic switch is connected to the first battery. Specifically, the fifth switch unit includes: an electronic switch 3, and the processor controls the electronic switch 3 to be turned on to discharge the first battery.
[0115] If the second remaining power of the second battery is greater than the first remaining power of the first battery, the sixth switch unit is controlled to be connected to discharge the second battery, and the sixth electronic switch is connected to the second battery. Specifically, the sixth switch unit includes: an electronic switch 4, and the processor controls the electronic switch 4 to be turned on to discharge the second battery.
[0116] The smart terminal also includes a first LED light and a second LED light, wherein the first LED light is used to display different colors according to the first remaining power measured by the power meter 1, that is, the first power meter, and the first LED light is used to display different colors according to the second remaining power measured by the power meter 2, that is, the second power meter. For example, if the first remaining power is less than 5%, the red light flashes, if the first remaining power is less than 30%, the yellow light flashes, if it is greater than 31%, the green light flashes, and so on.
[0117] In this application, whether in the charging state or the discharging state, the state of the smart terminal and the battery state need to be detected in real time. If a Type-C or charger is inserted, the current state of the smart terminal is determined to be a charging state; if a Type-C or charger is not inserted, the current state of the smart terminal is determined to be a discharging state.
[0118] After determining that the current state of the smart terminal is a charging state, determine whether the battery state on the smart terminal is abnormal. If the battery state is abnormal, perform abnormal processing. If the battery state is not abnormal, determine whether the battery charging has changed, that is, whether it is necessary to change from charging the first battery to charging the second battery, or whether it is necessary to change from charging the second battery to charging the first battery. If not, keep the current charging state unchanged. If so, determine the target charging state that needs to be changed to.
[0119] If the target charging state is to fast charge one of the first battery or the second battery, it is determined whether the smart terminal is charging based on Type-C or the dock charger at this time. If charging based on Type-C, a current of 3A is configured to charge the first battery or the second battery. If charging based on the dock charger, a current of 2A is configured to charge the first battery or the second battery. If charging based on both Type-C and the dock charger, a current of 1A is configured to charge the first battery or the second battery.
[0120] If the target charging state is to fast charge the first battery and trickle charge the second battery, it is determined whether the smart terminal is charging based on Type-C or the charger. If it is charged based on Type-C, a current of 3A is configured to fast charge the first battery. If it is charged based on the charger, a current of 2A is configured to fast charge the first battery. If it is charged based on both Type-C and the charger, a current of 1A is configured to charge the first battery.
[0121] If the target charging state is to fast charge the second battery and trickle charge the first battery, determine whether the smart terminal is charging based on Type-C or the dock charger at this time. If charging based on Type-C, configure a current of 3A to fast charge the second battery. If charging based on the dock charger, configure a current of 2A to fast charge the second battery. If charging based on both Type-C and the dock charger, configure a current of 1A to charge the second battery.
[0122] After determining that the current state of the smart terminal is a discharge state, if it is determined that the smart terminal only has the first battery, the first battery is controlled to discharge; if it is determined that the smart terminal only has the second battery, the second battery is controlled to discharge. If there are a first battery and a second battery, it can be determined whether the stage corresponding to the power of the first battery is less than the stage corresponding to the power of the second battery. If so, it is determined that the first remaining power is less than the second remaining power, and the second battery is controlled to discharge. If it is determined that the stage corresponding to the power of the first battery is equal to less than the stage corresponding to the power of the second battery, it is determined whether the first remaining power is less than the second remaining power. If so, the second battery is controlled to discharge. If not, the first battery is controlled to discharge. If it is determined that the stage corresponding to the power of the first battery is greater than the stage corresponding to the power of the second battery, the first battery is controlled to discharge.
[0123] Figure 7 A schematic diagram of a process for determining whether a battery state is abnormal is provided in some embodiments of the present application. Figure 7 Provide explanation.
[0124] Detect whether the detection pins of the first battery and the second battery are interrupted. If so, it can be determined whether the back cover of the first battery is open. If so, it means that the first battery may be replaced at this time. Then determine whether the second battery exists. If so, switch to the second battery. If not, handle the exception. It can also be determined whether the back cover of the second battery is open. If so, it means that the second battery may be replaced at this time. Then determine whether the first battery exists. If so, switch to the first battery. If not, handle the exception. And after the battery is switched, continue to detect whether the detection pins of the first battery and the second battery are interrupted.
[0125] Embodiment 9:
[0126] In order to avoid users from frequently charging the battery and to increase the battery life, the present application provides a discharge method, which is applied to a smart terminal. Figure 8 A process diagram of a charging method provided in some embodiments of the present application, the process comprising the following steps:
[0127] S801: Obtain a first remaining power of the first battery and a second remaining power of the second battery.
[0128] S802: If it is determined that the first remaining power or the second remaining power is less than a preset power threshold, or the first remaining power is greater than the preset power threshold and less than the second remaining power, control the charging of the first battery; if it is determined that the second remaining power or the first remaining power is less than the preset power threshold, or the second remaining power is greater than the preset power threshold and less than the first remaining power, control the charging of the second battery.
[0129] In a possible implementation manner, obtaining a first remaining power of the first battery and a second remaining power of the second battery includes:
[0130] The first remaining power measured by the first power meter and the second remaining power measured by the second power meter are obtained.
[0131] In a possible implementation, if it is determined that the first remaining power is less than a preset power threshold, controlling charging of the first battery includes:
[0132] If it is determined that the first remaining power is less than a preset power threshold, control is performed to perform trickle charging on the first battery.
[0133] In a possible implementation, if it is determined that the first remaining power is less than a preset power threshold, controlling the first battery to be trickle charged includes:
[0134] If it is determined that the first remaining power is less than the preset power threshold, the first switch unit is controlled to be connected so that the first charging chip performs trickle charging on the first battery.
[0135] In a possible implementation, if it is determined that the second remaining power is less than a preset power threshold, or the first remaining power is greater than the preset power threshold and less than the second remaining power, controlling charging of the first battery includes:
[0136] If the second remaining power is less than a preset power threshold, or the first remaining power is greater than the preset power threshold and less than the second remaining power, the first battery is fast charged.
[0137] In a possible implementation, if the second remaining power is less than a preset power threshold, or the first remaining power is greater than the preset power threshold and less than the second remaining power, fast charging the first battery includes:
[0138] If the second remaining power is less than a preset power threshold, or the first remaining power is greater than the preset power threshold and less than the second remaining power, the second switch unit is controlled to be connected so that the second charging chip fast charges the first battery.
[0139] In a possible implementation, if it is determined that the second remaining power is less than the preset power threshold, controlling charging of the second battery includes:
[0140] If it is determined that the second remaining power is less than the preset power threshold, control the second battery to be trickle charged.
[0141] In a possible implementation, if it is determined that the second remaining power is less than the preset power threshold, controlling the trickle charging of the second battery includes:
[0142] If it is determined that the second remaining power is less than the preset power threshold, the third switch unit is controlled to be connected, so that the third charging chip performs trickle charging on the second battery.
[0143] In a possible implementation, if it is determined that the first remaining power is less than the preset power threshold, or the second remaining power is greater than the preset power threshold and less than the first remaining power, controlling charging of the second battery includes:
[0144] If the first remaining power is less than the preset power threshold, or the second remaining power is greater than the preset power threshold and less than the first remaining power, the second battery is fast charged.
[0145] In a possible implementation, if the first remaining power is less than the preset power threshold, or the second remaining power is greater than the preset power threshold and less than the first remaining power, fast charging the second battery includes:
[0146] If the first remaining power is less than the preset power threshold, or the second remaining power is greater than the preset power threshold and less than the first remaining power, the fourth switch unit is controlled to be connected so that the fourth charging chip and the second battery are fast charged.
[0147] The method is applied to a smart terminal. The specific process of the smart terminal executing the charging method can be referred to the other embodiments above, and the specific content will not be repeated here.
[0148] Embodiment 10:
[0149] In order to avoid users from frequently charging the battery and to increase the battery life, the present application provides a discharge method, which is applied to a smart terminal. Fig. 9 A process diagram of a discharge method provided in some embodiments of the present application, the process includes the following steps:
[0150] S901: Obtain a first remaining power of the first battery and a second remaining power of the second battery.
[0151] S902: If it is determined that the second remaining power is less than the first remaining power, control the first battery to be discharged; if it is determined that the first remaining power is less than the second remaining power, control the second battery to be discharged.
[0152] In a possible implementation manner, obtaining a first remaining power of the first battery and a second remaining power of the second battery includes:
[0153] The first remaining power measured by the first power meter and the second remaining power measured by the second power meter are obtained.
[0154] In a possible implementation manner, if it is determined that the second remaining power is less than the first remaining power, controlling the first battery to discharge includes:
[0155] If it is determined that the second remaining power is less than the first remaining power, the fifth switch unit is controlled to be connected to discharge the first battery.
[0156] In a possible implementation manner, if it is determined that the first remaining power is less than the second remaining power, controlling the discharge of the second battery includes:
[0157] If it is determined that the first remaining power is less than the second remaining power, the sixth switch unit is controlled to be connected to discharge the second battery.
[0158] The method is applied to a smart terminal. The specific process of the smart terminal executing the discharging method can be referred to the other embodiments above, and the specific content will not be repeated here.
[0159] Embodiment 11:
[0160] Fig.10 This is a schematic diagram of an electronic device structure provided by some embodiments of the present application. Based on the above embodiments, the embodiments of the present application further provide an electronic device, such as Fig.10As shown, it includes: a processor 1001, a communication interface 1002, a memory 1003 and a communication bus 1004, wherein the processor 1001, the communication interface 1002, and the memory 1003 communicate with each other through the communication bus 1004;
[0161] The memory 1003 stores a computer program. When the program is executed by the processor 1001, the processor 1001 performs the following steps:
[0162] Obtaining a first remaining power of the first battery and a second remaining power of the second battery;
[0163] If it is determined that the second remaining power is less than the first remaining power, the first battery is controlled to be discharged; if it is determined that the first remaining power is less than the second remaining power, the second battery is controlled to be discharged.
[0164] Further, the processor 1001 is further configured to obtain the first remaining power measured by the first power meter and the second remaining power measured by the second power meter.
[0165] Furthermore, the processor 1001 is further configured to control trickle charging of the first battery if it is determined that the first remaining power is less than a preset power threshold.
[0166] Furthermore, the processor 1001 is further configured to control the first switch unit to be connected if it is determined that the first remaining power is less than the preset power threshold, so that the first charging chip performs trickle charging on the first battery.
[0167] Furthermore, the processor 1001 is also used to fast charge the first battery if the second remaining power is less than a preset power threshold, or the first remaining power is greater than the preset power threshold and less than the second remaining power.
[0168] Furthermore, the processor 1001 is also used to control the second switch unit to be connected if the second remaining power is less than a preset power threshold, or the first remaining power is greater than the preset power threshold and less than the second remaining power, so that the second charging chip fast charges the first battery.
[0169] Furthermore, the processor 1001 is further configured to control trickle charging of the second battery if it is determined that the second remaining power is less than the preset power threshold.
[0170] Furthermore, the processor 1001 is further configured to control the third switch unit to be connected if it is determined that the second remaining power is less than the preset power threshold, so that the third charging chip performs trickle charging on the second battery.
[0171] Furthermore, the processor 1001 is also used to fast charge the second battery if the first remaining power is less than the preset power threshold, or the second remaining power is greater than the preset power threshold and less than the first remaining power.
[0172] Furthermore, the processor 1001 is also used to control the fourth switch unit to be connected so that the second battery of the fourth charging chip is fast charged if the first remaining power is less than the preset power threshold, or the second remaining power is greater than the preset power threshold and less than the first remaining power.
[0173] The communication interface 1002 is used for communication between the above electronic device and other devices.
[0174] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0175] The above-mentioned processor can be a general-purpose processor, including a central processing unit, a network processor (Network Processor, NP), etc.; it can also be a digital signal processing processor (Digital Signal Processing, DSP), an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc.
[0176] Embodiment 12:
[0177] Fig.11 This is a schematic diagram of an electronic device structure provided by some embodiments of the present application. Based on the above embodiments, the embodiments of the present application further provide an electronic device, such as Fig.11 As shown, it includes: a processor 1101, a communication interface 1102, a memory 1103 and a communication bus 1104, wherein the processor 1101, the communication interface 1102, and the memory 1103 communicate with each other through the communication bus 1104;
[0178] The memory 1103 stores a computer program. When the program is executed by the processor 1101, the processor 1101 performs the following steps:
[0179] Obtaining a first remaining power of the first battery and a second remaining power of the second battery;
[0180] If it is determined that the second remaining power is less than the first remaining power, the first battery is controlled to be discharged; if it is determined that the first remaining power is less than the second remaining power, the second battery is controlled to be discharged.
[0181] Further, the processor 1101 is further configured to obtain the first remaining power measured by the first power meter and the second remaining power measured by the second power meter.
[0182] Furthermore, the processor 1101 is further configured to control the fifth switch unit to be connected so as to discharge the first battery if it is determined that the second remaining power is less than the first remaining power.
[0183] Furthermore, the processor 1101 is further configured to control the sixth switch unit to be connected so as to discharge the second battery if it is determined that the first remaining power is less than the second remaining power.
[0184] The communication interface 1102 is used for communication between the above electronic device and other devices.
[0185] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0186] The above-mentioned processor can be a general-purpose processor, including a central processing unit, a network processor (Network Processor, NP), etc.; it can also be a digital signal processing processor (Digital Signal Processing, DSP), an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc.
[0187] Embodiment 13:
[0188] On the basis of the above embodiments, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program executable by a processor, and when the program runs on the processor, the processor implements the following steps when executing:
[0189] Obtaining a first remaining power of the first battery and a second remaining power of the second battery;
[0190] If it is determined that the second remaining power is less than the first remaining power, the first battery is controlled to be discharged; if it is determined that the first remaining power is less than the second remaining power, the second battery is controlled to be discharged.
[0191] In a possible implementation manner, obtaining a first remaining power of the first battery and a second remaining power of the second battery includes:
[0192] The first remaining power measured by the first power meter and the second remaining power measured by the second power meter are obtained.
[0193] In a possible implementation, if it is determined that the first remaining power is less than a preset power threshold, controlling charging of the first battery includes:
[0194] If it is determined that the first remaining power is less than a preset power threshold, control is performed to perform trickle charging on the first battery.
[0195] In a possible implementation, if it is determined that the first remaining power is less than a preset power threshold, controlling the first battery to be trickle charged includes:
[0196] If it is determined that the first remaining power is less than the preset power threshold, the first switch unit is controlled to be connected so that the first charging chip performs trickle charging on the first battery.
[0197] In a possible implementation, if it is determined that the second remaining power is less than a preset power threshold, or the first remaining power is greater than the preset power threshold and less than the second remaining power, controlling charging of the first battery includes:
[0198] If the second remaining power is less than a preset power threshold, or the first remaining power is greater than the preset power threshold and less than the second remaining power, the first battery is fast charged.
[0199] In a possible implementation, if the second remaining power is less than a preset power threshold, or the first remaining power is greater than the preset power threshold and less than the second remaining power, fast charging the first battery includes:
[0200] If the second remaining power is less than a preset power threshold, or the first remaining power is greater than the preset power threshold and less than the second remaining power, the second switch unit is controlled to be connected so that the second charging chip fast charges the first battery.
[0201] In a possible implementation, if it is determined that the second remaining power is less than the preset power threshold, controlling charging of the second battery includes:
[0202] If it is determined that the second remaining power is less than the preset power threshold, control the second battery to be trickle charged.
[0203] In a possible implementation, if it is determined that the second remaining power is less than the preset power threshold, controlling the trickle charging of the second battery includes:
[0204] If it is determined that the second remaining power is less than the preset power threshold, the third switch unit is controlled to be connected, so that the third charging chip performs trickle charging on the second battery.
[0205] In a possible implementation, if it is determined that the first remaining power is less than the preset power threshold, or the second remaining power is greater than the preset power threshold and less than the first remaining power, controlling charging of the second battery includes:
[0206] If the first remaining power is less than the preset power threshold, or the second remaining power is greater than the preset power threshold and less than the first remaining power, the second battery is fast charged.
[0207] In a possible implementation, if the first remaining power is less than the preset power threshold, or the second remaining power is greater than the preset power threshold and less than the first remaining power, fast charging the second battery includes:
[0208] If the first remaining power is less than the preset power threshold, or the second remaining power is greater than the preset power threshold and less than the first remaining power, the fourth switch unit is controlled to be connected so that the fourth charging chip and the second battery are fast charged.
[0209] Embodiment 14:
[0210] On the basis of the above embodiments, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program executable by a processor, and when the program runs on the processor, the processor implements the following steps when executing:
[0211] Obtaining a first remaining power of the first battery and a second remaining power of the second battery;
[0212] If it is determined that the second remaining power is less than the first remaining power, the first battery is controlled to be discharged; if it is determined that the first remaining power is less than the second remaining power, the second battery is controlled to be discharged.
[0213] In a possible implementation manner, obtaining a first remaining power of the first battery and a second remaining power of the second battery includes:
[0214] The first remaining power measured by the first power meter and the second remaining power measured by the second power meter are obtained.
[0215] In a possible implementation manner, if it is determined that the second remaining power is less than the first remaining power, controlling the first battery to discharge includes:
[0216] If it is determined that the second remaining power is less than the first remaining power, the fifth switch unit is controlled to be connected to discharge the first battery.
[0217] In a possible implementation manner, if it is determined that the first remaining power is less than the second remaining power, controlling the discharge of the second battery includes:
[0218] If it is determined that the first remaining power is less than the second remaining power, the sixth switch unit is controlled to be connected to discharge the second battery.
[0219] Since in the present application, the smart terminal includes a first battery and a second battery, compared with a single battery, the user is prevented from frequently charging the battery, and can determine whether to charge the first battery or the second battery based on a comparison result between the first remaining power of the first battery and the second remaining power of the second battery, and a comparison result between the first remaining power and the second remaining power and a preset power threshold, respectively. In this way, different batteries can be charged according to different situations, which plays a certain protective role on the battery, can effectively increase the battery life, and improve the user experience.
[0220] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0221] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0222] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0223] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0224] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A smart terminal, It is characterized in that The smart terminal includes: a first battery, a second battery and a processor; The processor is configured to obtain a first remaining power of the first battery and a second remaining power of the second battery; if it is determined that the first remaining power or the second remaining power is less than a preset power threshold, or the first remaining power is greater than the preset power threshold and less than the second remaining power, then control the first battery to be charged; if it is determined that the second remaining power or the first remaining power is less than the preset power threshold, or the second remaining power is greater than the preset power threshold and less than the first remaining power, then control the second battery to be charged; If it is determined that the first remaining power is greater than the preset power threshold and less than the second remaining power, controlling to charge the first battery includes: If the number of stages corresponding to the first remaining power is less than the number of stages corresponding to the second remaining power, controlling the first battery to be charged; If it is determined that the second remaining power is greater than the preset power threshold and less than the first remaining power, controlling the second battery to be charged includes: If the stage number corresponding to the first remaining power is greater than the stage number corresponding to the first remaining power, controlling the second battery to be charged; Also includes: If the number of stages corresponding to the first remaining power is the same as the number of stages corresponding to the second remaining power, controlling to charge the battery having the smaller remaining power between the first remaining power and the second remaining power; Among them, the higher the stage number, the more remaining power it corresponds to; Charging the first battery and / or the second battery based on a charger and / or Type-C; Charging the first battery and / or the second battery includes: trickle charging or fast charging; If the first battery or the second battery is fast charged and charged based on Type-C, charging is performed with a first preset current; If the first battery or the second battery is fast charged and charged based on a charger, charging is performed with a second preset current; If the first battery or the second battery is fast charged and is charged based on Type-C and a charger, charging is performed with a third preset current; The first preset current is greater than the second preset current, and the second preset current is greater than the third preset current.
2. The intelligent terminal according to claim 1, It is characterized in that The smart terminal further includes: a first switch unit and a first charging chip, wherein the first switch unit is connected to the first charging chip; The processor is specifically configured to control the first switch unit to be connected if it is determined that the first remaining power is less than the preset power threshold, so that the first charging chip performs trickle charging on the first battery.
3. The intelligent terminal according to claim 1, It is characterized in that The smart terminal further includes: a second switch unit and a second charging chip, wherein the second switch unit is connected to the second charging chip; The processor is specifically used to control the second switch unit to be connected so that the second charging chip can fast charge the first battery if the second remaining power is less than a preset power threshold, or the first remaining power is greater than the preset power threshold and less than the second remaining power.
4. The intelligent terminal according to claim 1, It is characterized in that The smart terminal further includes: a third switch unit and a third charging chip, wherein the third switch unit is connected to the third charging chip; The processor is specifically configured to control the third switch unit to be connected if it is determined that the second remaining power is less than the preset power threshold, so that the third charging chip performs trickle charging on the second battery.
5. The intelligent terminal according to claim 1, It is characterized in that The smart terminal further includes: a fourth switch unit and a fourth charging chip, wherein the fourth switch unit is connected to the fourth charging chip; The processor is specifically used to control the fourth switch unit to be connected so that the fourth charging chip and the second battery perform fast charging if the first remaining power is less than the preset power threshold, or the second remaining power is greater than the preset power threshold and less than the first remaining power.
6. A smart terminal, It is characterized in that The smart terminal includes: a first battery, a second battery and a processor; The processor is configured to obtain a first remaining power of the first battery and a second remaining power of the second battery; if it is determined that the second remaining power is less than the first remaining power, control the first battery to be discharged; if it is determined that the first remaining power is less than the second remaining power, control the second battery to be discharged; If it is determined that the second remaining power is less than the first remaining power, controlling the first battery to discharge includes: If the number of stages corresponding to the second remaining power is less than the number of stages corresponding to the first remaining power, controlling the first battery to be discharged; If it is determined that the first remaining power is less than the second remaining power, controlling the second battery to discharge includes: If the number of stages corresponding to the first remaining power is less than the number of stages corresponding to the second remaining power, controlling the second battery to be discharged; Also includes: If the number of stages corresponding to the first remaining power is the same as the number of stages corresponding to the second remaining power, controlling the battery with the larger remaining power between the first remaining power and the second remaining power to be discharged; Among them, the higher the stage number, the more remaining power it corresponds to; Charging the first battery and / or the second battery based on a charger and / or Type-C; Charging the first battery and / or the second battery includes: trickle charging or fast charging; If the first battery or the second battery is fast charged and charged based on Type-C, charging is performed with a first preset current; If the first battery or the second battery is fast charged and charged based on a charger, charging is performed with a second preset current; If the first battery or the second battery is fast charged and is charged based on Type-C and a charger, charging is performed with a third preset current; The first preset current is greater than the second preset current, and the second preset current is greater than the third preset current.
7. The intelligent terminal according to claim 6, It is characterized in that The smart terminal further includes: a fifth switch unit, wherein the fifth switch unit is connected to the first battery; The processor is specifically configured to control the fifth switch unit to be connected so as to discharge the first battery if it is determined that the second remaining power is less than the first remaining power.
8. The intelligent terminal according to claim 6, It is characterized in that The smart terminal further includes: a sixth switch unit, wherein the sixth switch unit is connected to the second battery; The processor is specifically configured to control the sixth switch unit to be connected so as to discharge the second battery if it is determined that the first remaining power is less than the second remaining power.
9. A charging method, It is characterized in that The method comprises: Obtaining a first remaining power of the first battery and a second remaining power of the second battery; If it is determined that the first remaining power or the second remaining power is less than a preset power threshold, or the first remaining power is greater than the preset power threshold and less than the second remaining power, then control to charge the first battery; if it is determined that the second remaining power or the first remaining power is less than the preset power threshold, or the second remaining power is greater than the preset power threshold and less than the first remaining power, then control to charge the second battery; If it is determined that the first remaining power is greater than the preset power threshold and less than the second remaining power, controlling to charge the first battery includes: If the number of stages corresponding to the first remaining power is less than the number of stages corresponding to the second remaining power, controlling the first battery to be charged; If it is determined that the second remaining power is greater than the preset power threshold and less than the first remaining power, controlling the second battery to be charged includes: If the stage number corresponding to the first remaining power is greater than the stage number corresponding to the first remaining power, controlling the second battery to be charged; The method further comprises: If the number of stages corresponding to the first remaining power is the same as the number of stages corresponding to the second remaining power, controlling to charge the battery having the smaller remaining power between the first remaining power and the second remaining power; Among them, the higher the stage number, the more remaining power it corresponds to; Charging the first battery and / or the second battery based on a charger and / or Type-C; Charging the first battery and / or the second battery includes: trickle charging or fast charging; If the first battery or the second battery is fast charged and charged based on Type-C, charging is performed with a first preset current; If the first battery or the second battery is fast charged and charged based on a charger, charging is performed with a second preset current; If the first battery or the second battery is fast charged and is charged based on Type-C and a charger, charging is performed with a third preset current; The first preset current is greater than the second preset current, and the second preset current is greater than the third preset current.
10. A discharge method, It is characterized in that The method comprises: Obtaining a first remaining power of the first battery and a second remaining power of the second battery; If it is determined that the second remaining power is less than the first remaining power, control the first battery to be discharged; if it is determined that the first remaining power is less than the second remaining power, control the second battery to be discharged; If it is determined that the second remaining power is less than the first remaining power, controlling the first battery to discharge includes: If the number of stages corresponding to the second remaining power is less than the number of stages corresponding to the first remaining power, controlling the first battery to be discharged; If it is determined that the first remaining power is less than the second remaining power, controlling the second battery to discharge includes: If the number of stages corresponding to the first remaining power is less than the number of stages corresponding to the second remaining power, controlling the second battery to be discharged; The method further comprises: If the number of stages corresponding to the first remaining power is the same as the number of stages corresponding to the second remaining power, controlling the battery with the larger remaining power between the first remaining power and the second remaining power to be discharged; Among them, the higher the stage number, the more remaining power it corresponds to; The first battery and / or the second battery is trickle charged or fast charged based on the charger and / or Type-C. When fast charging is performed, the first battery or the second battery is charged with a first preset current based on Type-C, or is charged with a second preset current based on the charger, or is charged with a third preset current based on Type-C and the charger. The first preset current is greater than the second preset current, and the second preset current is greater than the third preset current.
11. An electronic device, It is characterized in that The electronic device includes a processor and a memory, wherein the memory is used to store program instructions, and the processor is used to implement the steps of the charging method of claim 9 or the discharging method of claim 10 when executing the computer program stored in the memory.
12. A computer-readable storage medium, It is characterized in that The device stores a computer program, which, when executed by a processor, implements the steps of the charging method of claim 9 or the discharging method of claim 10.
