Power supply control method and electronic equipment
Through monitoring and dynamically adjusting power supply, the problem of mismatch between the battery life of the first and second bodies in electronic devices is solved, and dynamic balance of power and improvement of user experience is achieved.
Patent Information
- Application Number
- CN202510708914.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-29
- Publication Date
- 2025-08-01
AI Technical Summary
In electronic devices with the first body and the second body, since the first body consumes more power and the second body consumes less power, resulting in a problem of mismatch in battery life, such as mismatch in battery life of the game console and the controller.
By monitoring the power parameters and working state of the first body and the second body, dynamically adjusting the power supply, controlling the battery of the second body to power the target load module of the first body, including powering the high-power and low-power modules in the low-power mode, powering only the low-power module in the high-power mode, and switching power supply when the power consumption reaches the threshold.
It effectively avoids the battery life of the first body and the second body battery, improves the user experience, and ensures the dynamic adjustment of the power of the electronic device under different working conditions.
Smart Images

Figure CN120414809A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of power supply, and in particular to a power supply control method and an electronic device. Background Art
[0002] For an electronic device having a first body and a second body, if batteries are respectively provided inside the first body and the second body, and the power consumption of the first body is relatively high while the power consumption of the second body is relatively low, it will cause the problem that the battery life of the first body does not match that of the second body.
[0003] For example, a game console and a game console controller. Among them, the battery of the game console can supply power for 2 - 5 hours, while the battery of the controller can be used for 18 hours, which will cause the problem that the battery life of the game console does not match that of the controller. Summary of the Invention
[0004] In view of this, this application provides a power supply control method and an electronic device, and the specific solutions are as follows:
[0005] A power supply control method includes:
[0006] When it is determined that the first body and the second body of the electronic device are connected, determine a first power parameter of a first battery in the first body and a second power parameter of a second battery in the second body. Among them, the second body of the electronic device can obtain an operation instruction of the user on the second body and send the operation instruction to the first body of the electronic device so that the first body responds to the operation instruction;
[0007] Determine the working state of the electronic device;
[0008] Based on the first power parameter, the second power parameter, and the working state of the electronic device, determine a target load module in the first body;
[0009] Control the second battery in the second body to supply power to the target load module.
[0010] Further, the determining the target load module in the first body based on the first power parameter, the second power parameter, and the working state of the electronic device includes:
[0011] When the working state of the electronic device indicates that the electronic device is in a low power consumption mode, based on the first power parameter and the second power parameter, determine the low power consumption module and the high power consumption module in the first body as the target load module.
[0012] Further, determining the target load module in the first body based on the first power parameter, the second power parameter, and the working state of the electronic device includes:
[0013] When the working state of the electronic device indicates that the electronic device is not in the low-power consumption mode, determining the low-power consumption module in the first body as the target load module based on the first power parameter and the second power parameter.
[0014] Further, it further includes:
[0015] Controlling the first battery in the first body to supply power to the high-power consumption module in the first body.
[0016] Further, the first power parameter represents the power consumed by the first battery during the current power consumption process, the second power parameter represents the remaining power of the second battery, and determining the target load module in the first body based on the first power parameter, the second power parameter, and the working state of the electronic device includes:
[0017] If it is determined that the first power parameter reaches the power consumption threshold and the second power parameter is higher than the power remaining threshold, determining the target load module in the first body based on the working state of the electronic device.
[0018] Further, it further includes:
[0019] Obtaining the first operating parameter of the first body and the second operating parameter of the second body;
[0020] Estimating the first remaining duration of the first battery based on the remaining power of the first battery and the first operating parameter;
[0021] Estimating the second remaining duration of the second battery based on the second power parameter of the second battery and the second operating parameter;
[0022] Determining the power consumption threshold based on the first remaining duration and the second remaining duration.
[0023] Further, controlling the second battery in the second body to supply power to the target load module includes:
[0024] If the electronic device includes at least two second bodies, determining the priority order for the at least two second bodies to supply power to the target load module;
[0025] Determining the target second body from the at least two second bodies based on the priority order;
[0026] Controlling the second battery in the target second body to supply power to the target load module.
[0027] Further, determining the priority order for the at least two second bodies to supply power to the target load module includes at least one of the following:
[0028] Determining the priority order for the at least two second bodies to supply power to the target load module based on the power consumption of each second body among the at least two second bodies;
[0029] Determining the priority order for the at least two second bodies to supply power to the target load module based on the remaining power of the second batteries respectively corresponding to the at least two second bodies;
[0030] Determining the preset priority order for the at least two second bodies to supply power to the target load module.
[0031] Further, controlling the second battery in the target second body to supply power to the target load includes:
[0032] Controlling the target second body to supply power to the target load module at a first charging power;
[0033] Controlling the non-target second bodies among the at least two second bodies to supply power to the target load module at a second charging power, where the first charging power is less than the second charging power, and the non-target second bodies are other second bodies among the at least two second bodies except the target second body.
[0034] An electronic device includes:
[0035] A first body and a second body, after the second body is connected to the first body, it can obtain an operation instruction of the user on the second body and send the operation instruction to the first body, so that the first body responds to the operation instruction;
[0036] The second body at least includes a second battery;
[0037] The first body at least includes a first battery, a load module, and a processor;
[0038] The processor is configured to, when determining that the first body is connected to the second body, determine a first power parameter of the first battery and a second power parameter of the second battery; determine the working state of the electronic device; determine a target load module in the load module of the first body based on the first power parameter, the second power parameter, and the working state of the electronic device; control the second battery to supply power to the target load module. Description of the Drawings
[0039] To more clearly illustrate the technical solutions in the embodiments of the present application or the related art, the following will briefly introduce the drawings required for the description of the embodiments or the related art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0040] Figure 1 Flowchart of a power supply control method disclosed in an embodiment of the present application;
[0041] Figure 2 Flowchart of a power supply control method disclosed in an embodiment of the present application;
[0042] Figure 3 Schematic diagram of powering different load modules in the first body when an electronic device in an embodiment of the present application is in different working states;
[0043] Figure 4 Schematic diagram of the power supply of an electronic device based on a power supply control method disclosed in an embodiment of the present application;
[0044] Figure 5 Flowchart of a power supply control method disclosed in an embodiment of the present application;
[0045] Figure 6 Flowchart of a power supply control method disclosed in an embodiment of the present application;
[0046] Figure 7 Schematic diagram of the structure of an electronic device disclosed in an embodiment of the present application. Detailed implementation manners
[0047] The following describes the embodiments of the present application in combination with the drawings in the embodiments of the present application. The terms used in the implementation part of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.
[0048] The following describes the embodiments of the present application in combination with the drawings. Those of ordinary skill in the art know that with the development of technology and the emergence of new scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.
[0049] In the description, claims and the above-mentioned drawings of this application, terms such as "first" and "second" are used to distinguish similar objects, and do not necessarily describe a specific order or sequence. It should be understood that such terms can be interchanged under appropriate circumstances, which is only a way of distinguishing objects with the same attributes when describing embodiments of this application. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion, so that a process, method, system, product or device including a series of units does not have to be limited to those units, but may include other units not clearly listed or inherent to these processes, methods, products or devices.
[0050] This application discloses a power supply control method, and its flowchart is as Figure 1 shown, including:
[0051] Step S11: When the first body and the second body of the electronic device are connected, determine the first power parameter of the first battery in the first body and the second power parameter of the second battery in the second body. The second body of the electronic device can obtain the operation instruction of the user on the second body and send the operation instruction to the first body of the electronic device, so that the first body responds to the operation instruction;
[0052] Step S12: Determine the working state of the electronic device;
[0053] Step S13: Determine the target load module in the first body set based on the first power parameter, the second power parameter and the working state of the electronic device;
[0054] Step S14: Control the second battery in the second body to supply power to the target load module.
[0055] For an electronic device having a first body and a second body, if batteries are respectively arranged inside the first body and the second body, and the power consumption of the first body is relatively large while the power consumption of the second body is relatively small, it will cause the problem that the battery life of the first body does not match that of the second body.
[0056] For example, a game console and a game console controller. Among them, the battery of the game console can supply power for 2 - 5 hours, while the battery of the controller can be used for 18 hours, which will cause the problem that the battery life of the game console does not match that of the controller.
[0057] Based on this, in this solution, the first power parameter of the first battery in the first body, the second power parameter of the second battery in the second body, and the working state of the electronic device are obtained, and the target load module in the first body is determined based on the obtained first power parameter, second power parameter, and working state, and the second battery in the second body is controlled to supply power to the target load module in the first body, so as to avoid the problem of mismatch in battery life between the first battery in the first body and the second battery in the second body when the power consumption of the first battery in the first body is too large, thereby improving the user experience when using the electronic device.
[0058] The electronic device includes a first body and a second body. The first body and the second body can be connected by wire or wirelessly. The first body has a processor that can perform processing functions. When the first body and the second body are connected, the second body can receive a user's instruction and send the instruction to the first body, and the processor in the first body can respond to the instruction and perform corresponding operations.
[0059] The first body also includes a first battery, and the second body includes a second battery. The first battery in the first body can supply power to each module in the first body, and the second battery in the second body can supply power to each module in the second body.
[0060] When the electronic device is in an operating state, it is necessary to monitor the working state of the electronic device. The working state of the electronic device can include the working state of the electronic device system, which can be specifically a low-power mode or a high-power mode, etc. The monitoring of the working state of the electronic device can be real-time monitoring, or it can be monitored once every specific time interval. Or, as long as the working state of the electronic device changes, the electronic device will store its changed working state, so as to facilitate the retrieval of the working state of the electronic device at any time during the later power supply control process.
[0061] When the first body and the second body of the electronic device are connected, it is necessary to monitor the first power parameter of the first battery in the first body and the second power parameter of the second battery in the second body. The monitoring of the first power parameter and the second power parameter can be real-time monitoring to ensure that as long as it is determined based on the monitored information that the current power supply switching condition is met (that is, it is determined based on the monitored operating state, first power parameter, and second power parameter that the power supply battery of the target load module needs to be switched), the power supply battery is switched, for example: switching from power supply by the first battery to power supply by the second battery; or it can be monitored once every target time interval to ensure that under the condition of having a certain monitoring frequency, the problem of high power consumption caused by monitoring relevant information can be avoided.
[0062] In addition, if the first power parameter and the second power parameter are monitored once every target duration, and the monitoring of the working state of the electronic device is monitored once every specific duration, the specific duration and the target duration can be the same duration. Moreover, the first monitoring of the first power parameter and the second power parameter is performed simultaneously with the first monitoring of the working state of the electronic device, so as to ensure that the first power parameter, the second power parameter, and the working state can always be monitored simultaneously.
[0063] After the first power parameter, the second power parameter, and the working state are monitored, the first power parameter, the second power parameter, and the working state can be analyzed to determine whether the power supply switching condition is met, that is, whether it is necessary to determine the target load module in the first body and control the first battery in the first body to stop supplying power to the target load module, but switch to the second battery in the second body to supply power to the target load module.
[0064] When it is determined that the current does not meet the power supply switching condition, the current power supply state still needs to be maintained, that is: if the first battery is currently supplying power to the first body and the second battery is supplying power to the second body, the first battery still needs to supply power to the first body and the second battery still needs to supply power to the second body; if the first battery is currently supplying power to the first body and the second body, the first battery still needs to supply power to the first body and the second body, etc.
[0065] When it is determined that the current meets the power supply switching condition, the current power supply state needs to be switched, that is: regardless of the current power supply state, when it is determined that the power supply switching condition is met, the target load module in the first body will be determined, and the second battery will be controlled to supply power to the target load module.
[0066] After the target load module in the first body is determined, if the current target load module is powered by the first battery, control the first battery to stop supplying power to the target load module, but instead supply power to it with the second battery, so as to avoid the problem of mismatch in battery life between the first battery and the second battery caused by the relatively small remaining power of the first battery and the relatively large remaining power of the second battery; if the current target load module is powered by a power supply, control the power supply to stop supplying power to the target load module, but instead supply power to it with the second battery.
[0067] In the power supply control method disclosed in this embodiment, when it is determined that the first body and the second body of the electronic device are connected, the first power parameter of the first battery in the first body and the second power parameter of the second battery in the second body are determined. After determining the working state of the electronic device, the target load module in the first body is determined based on the first power parameter, the second power parameter, and the working state of the electronic device, and the second battery in the second body is controlled to supply power to the target load module. It realizes determining that the second battery in the second body supplies power to the target load module in the first body based on the power parameter of the battery in the first body, the power parameter of the battery in the second body, and the working state, and supplies power to the target load module in the first body through the second battery in the second body, avoiding the problem of mismatched battery life between the battery in the first body and the battery in the second body, so as to improve the user experience of using the electronic device.
[0068] This embodiment discloses a power supply control method, and its flowchart is as Figure 2 shown, including:
[0069] Step S21: When it is determined that the first body and the second body of the electronic device are connected, determine the first power parameter of the first battery in the first body and the second power parameter of the second battery in the second body. The second body of the electronic device can obtain the operation instruction of the user on the second body and send the operation instruction to the first body so that the first body responds to the operation instruction;
[0070] Step S22: Determine the working state of the electronic device;
[0071] Step S23: When the working state of the electronic device indicates that the electronic device is in the low power consumption mode, determine the low power consumption module and the high power consumption module in the first body as the target load module based on the first power parameter and the second power parameter;
[0072] Step S24: Control the second battery in the second body to supply power to the target load module.
[0073] When the working state of the electronic device is different, when the power supply switching condition is met, the determined target load module is also different. However, no matter how the target load module changes, it is the load module in the first body.
[0074] The load modules in the first body can be classified into low-power modules and high-power modules. That is, when the electronic device is in a non-low-power mode state, the power consumption of each load module in the first body is determined. The load modules with a power consumption greater than a certain target power consumption threshold among the load modules are determined as high-power modules, and the load modules with a power consumption less than the target power consumption threshold are determined as low-power modules. Whether the power consumption of a certain load module is high-power or low-power can be determined based on the power consumption situation during a certain period, under specific conditions (such as triggering the high-performance mode) and when running application programs (such as running games), or can be comprehensively determined according to the historical operating power consumption.
[0075] After each load module in the first body is defined as a high-power module or a low-power module, as the working state of the electronic device changes, for example, the working state of the electronic device switches from a non-low-power operating state to a low-power operating state. At this time, even if a load module is defined as a high-power module, its power consumption is no longer greater than the target power consumption threshold. However, at this time, for the convenience of distinction, the load module defined as a high-power module is still defined as a high-power load module. That is, as the working state of the electronic device changes, each load module defined as a high-power module or a low-power module, even if its power consumption changes, its definition does not change.
[0076] The high-power modules in the first body can be: processors (such as CPUs), memories (such as Memories), USBs, etc.; the low-power modules in the first body can be: solid-state drives SSDs, audio processing modules Audio, image acquisition modules Camera, etc.
[0077] The working state of the electronic device can be divided into a low-power mode and a non-low-power mode. The non-low-power mode means that the system of the electronic device is in a normal working state or a game state, and the low-power mode means that the system of the electronic device is in a standby state, a sleep or a hibernation state.
[0078] It should be noted that since the electronic device operates with the first body and the second body, the second body can receive the user's operation instructions and send the operation instructions to the first body, and the first body responds to them. The first body has a processor that can perform complex processing operations. The second body may not include a processor and does not need to perform processing operations. Or, the second body may also include a processor. Even if the second body includes a processor, the processor only needs to perform simple processing on the received operation instructions. Therefore, the electrical energy required by the loads inside the second body is relatively low, and the electrical energy required by the loads inside the first body is relatively high. Based on this, the power of the second battery in the second body is usually less than the power of the first battery in the first body. When designing the electronic device, it is only necessary to ensure that the power of the second battery can supply the operation of the second body. The power of the first battery needs to supply the operation of the first body. In some specific cases, the power of the first battery also needs to supply the operation of the second body. Even if the power of the second battery in the second body is less than the power of the first battery in the first body, usually, the battery life of the first battery in the first body is also less than the battery life of the second battery in the second body.
[0079] Therefore, when it is determined that the power supply switching condition is met based on the first power parameter and the second power parameter, even if the second battery in the second body is controlled to supply power to the target load module in the first body, the target load module selected in the first body is usually a load module with relatively low power consumption.
[0080] When the working state of the electronic device indicates that the electronic device is in the low-power mode, at this time, whether it is a high-power module or a low-power module in the first body, their operating power consumption is relatively low. Even if the second battery in the second body is used to supply power to the high-power module in the first body, it will not cause a large amount of energy consumption. Therefore, the high-power module and the low-power module in the first body can both be determined as the target load module, and the second battery in the second body is used to supply power to the target load module, that is, the second battery in the second body is used to supply power to the high-power module and the low-power module in the first body, so as to ensure that during the process of consuming the electrical energy of the second battery in the second body, the electrical energy consumption of the first battery in the first body is effectively reduced, and the situation of battery life mismatch between the first battery and the second battery is further avoided.
[0081] The power supply control method disclosed in this embodiment, when the first body and the second body of the electronic device are connected, determines the first power parameter of the first battery in the first body, the second power parameter of the second battery in the second body, and the working state of the electronic device. When the working state of the electronic device indicates that it is currently in the low-power mode, based on the first power parameter and the second power parameter, determines the low-power module and the high-power module in the first body as the target load modules, and controls the second battery in the second body to supply power to the target load modules, so as to realize that the target load modules are determined based on the working state of the electronic device, that is, the working state of the electronic device is different, and the target load modules are different. It realizes that in different working states, the second battery is controlled to supply power to different target load modules, ensuring that the power of the first battery and the second battery can be dynamically adjusted according to the different working states of the electronic device, and avoiding the situation of battery life mismatch between the first battery and the second battery.
[0082] Further, in the power supply control method disclosed in this embodiment, determining the target load module in the first body based on the first power parameter, the second power parameter, and the working state of the electronic device can be specifically:
[0083] When the working state of the electronic device indicates that the electronic device is in a non-low-power mode, based on the first power parameter and the second power parameter, determines the low-power module in the first body as the target load module.
[0084] When the working state of the electronic device indicates that the electronic device is in a non-low-power mode, at this time, the power consumption of the high-power module in the first body is relatively high, and the power consumption of the low-power module in the first body is still relatively low. Since the total electric energy of the second battery in the second body is relatively small compared to the high-power module operating at high power in the first body, in this case, the high-power module in the first body cannot be determined as the target load module, and only the low-power module with relatively low power consumption can be used as the target load module.
[0085] When it is determined that the electronic device is in a non-low-power mode, it is necessary to first determine whether the power supply switching condition is met based on the first power parameter and the second power parameter. If the power supply switching condition is met, the low-power module in the first body is determined as the target load module to control the second battery in the second body to supply power to the low-power module in the first body; if the power supply switching condition is not met, the current power supply state is still maintained, for example: each load module in the first body is powered by the first battery, and each load module in the second body is powered by the second battery or the first battery.
[0086] Further, when it is determined that the power supply switching condition is currently met, the low-power module in the first body is determined as the target load module, and when controlling the second battery in the second body to supply power to the low-power module in the first body, the first battery in the first body is controlled to supply power to the high-power module in the first body.
[0087] Since during the design of the electronic device, the first battery in the first body is used to supply power to each load module in the first body, and the second battery in the second body is used to supply power to each load module in the second body. To avoid the situation of mismatched battery life between the first battery and the second battery, when the power supply switching condition is met, the second battery can be controlled to supply power to the load module with relatively low current consumption at present, while for the load module with relatively high current consumption at present, the first battery is still required to supply power to it to ensure the operation of each load module in the first body.
[0088] As Figure 3 shown, it is a schematic diagram of supplying power to different load modules in the first body when the electronic device is in different working states. Whether the working state of the electronic device indicates that the electronic device is in a low-power mode or a non-low-power mode, the load modules corresponding to the low-power module and the high-power module in the first body will not change. When the working state of the electronic device indicates that the electronic device is in a non-low-power mode, the high-power module in the first body is powered by the first battery, and the low-power module in the first body is powered by the second battery; when the working state of the electronic device indicates that the electronic device is in a low-power mode, the low-power module and the high-power module in the first body are powered by the second battery.
[0089] Further, the power supply schematic diagram of the electronic device based on the power supply control method disclosed in this embodiment can be as Figure 4 shown, including: a first body and a second body. The first body includes: a first battery (it may also include an adapter for receiving the power supply of an external power source, which is not shown in this figure), a first voltage conversion chip, a second voltage conversion chip, a high-power module and a low-power module. The second body includes: a second battery, a third voltage conversion chip and a fourth voltage conversion chip.
[0090] Figure 4 Two different power supply methods are shown in [the figure]. One is that the first battery supplies power to the first body and the second body, and the flow direction of electric energy is represented by a dotted arrow in the figure; the other is that the second battery supplies power to the second body and the target load module in the first body, and the flow direction of electric energy is represented by a solid arrow in the figure.
[0091] For the case of the first battery power supply, the first battery supplies power to the high-power consumption module and the low-power consumption module in the first body. At the same time, the electric energy output by the first battery undergoes the first voltage conversion through the first voltage conversion chip and then reaches the second body. In the second body, it undergoes the second voltage conversion through the third voltage conversion chip and then reaches the second battery, realizing the situation of powering the first body and the second body through the first battery;
[0092] For the case of the second battery power supply, the second battery supplies power to the second body. At the same time, the electric energy output by the second battery undergoes the first voltage conversion through the fourth voltage conversion chip and then reaches the first body. In the first body, it undergoes the second voltage conversion through the second voltage conversion chip and then is output to the target load module of the first body. If the electronic device is in the low-power consumption mode, the electric energy after the second voltage conversion is output to the high-power consumption module and the low-power consumption module. If the electronic device is in the non-low-power consumption mode, the electric energy after the second voltage conversion is output to the low-power consumption module. At this time, the high-power consumption module is still powered by the first battery.
[0093] This embodiment discloses a power supply control method, and its flowchart is as Figure 5 shown, including:
[0094] Step S51: When it is determined that the first body and the second body of the electronic device are connected, determine the first power parameter of the first battery in the first body and the second power parameter of the second battery in the second body. The second body of the electronic device can obtain the operation instruction of the user on the second body and send the operation instruction to the first body of the electronic device so that the first body responds to the operation instruction;
[0095] Step S52: Determine the working state of the electronic device;
[0096] Step S53: If it is determined that the first power parameter reaches the power consumption threshold and the second power parameter is higher than the power remaining threshold, determine the target load module in the first body based on the working state of the electronic device. The first power parameter represents the power consumed by the first battery in the current power consumption process, and the second power parameter represents the remaining power of the second battery;
[0097] Step S54: Control the second battery in the second body to supply power to the target load module.
[0098] The first power parameter is the power parameter of the first battery in the first body. In this embodiment, it can specifically represent the power consumed by the first battery in the current power consumption process, that is, the total power consumed by the first battery during this monitoring process.
[0099] Among them, the specific process of this monitoring can be as follows: Start monitoring when the electronic device starts to run. At this time, determine the initial power of the first battery in the first body. During the operation of the electronic device, determine the first power parameter of the first battery in the first body, that is, when it is necessary to monitor the first power parameter, determine the current power of the first battery. The difference between the initial power of the first battery and the current power of the first battery is the current first power parameter, that is, the power consumed during this monitoring process, which is also the power consumed during the current power consumption process.
[0100] If the electronic device has been running for a period of time, determine the initial power of the first battery in the first body when powering each load module in the first body through the first battery. As the electronic device runs, when it is necessary to monitor the first power parameter, determine the current power of the first battery. The difference between the initial power of the first battery and the current power of the first battery is the current first power parameter, that is, the power consumed during this monitoring process, which is also the power consumed during the current power consumption process.
[0101] The first power parameter reaches the power consumption threshold, which can be specifically: the power consumed during the current power consumption process reaches a certain power value, or the percentage of the power consumed during the current power consumption process in the total power of the first battery reaches a certain percentage threshold. For example, if the certain percentage threshold is 10%, then during the current power consumption process, when the power of the first battery drops from 90% to 80%, it can be determined that the first power parameter reaches the power consumption threshold.
[0102] In addition, the second power parameter represents the remaining power of the second battery. The second power parameter does not need to consider the initial power, and only needs to obtain the remaining power of the second battery when it is necessary to determine the second power parameter.
[0103] The second power parameter is higher than the power remaining threshold, that is, when the remaining power of the second battery is higher than the power remaining threshold, it can be determined that the current power of the second battery is sufficient and can still supply power to the target load module in the first body.
[0104] In this embodiment, when it is determined that the first power parameter reaches the power consumption threshold and the second power parameter is higher than the power remaining threshold, determine the target load module in the first body based on the working state of the electronic device. That is, only when the current consumption of the first battery reaches a certain value, in order to avoid the battery life of the first battery being too short compared to the battery life of the second battery, at least part of the load modules in the first body can be powered by the second battery to achieve the purpose of consuming the power of the second battery and saving the power of the first battery at the same time; at the same time, it is also necessary to ensure that the remaining power of the second battery is sufficient to determine that the power supply switching condition is met and at least part of the load modules in the first body are powered by the second battery.
[0105] For example, during the operation of an electronic device, monitor the power consumption of the first battery and the remaining power of the second battery simultaneously. As long as the power consumption of the first battery reaches 10% (e.g., the power of the first battery drops from 100% to 90%), and at the same time, the remaining power of the second battery is higher than 40%, control the second battery to supply power to the target load module in the first body. Then, when certain conditions are met during the second battery supplying power to the target load module in the first body, continue to switch to the power supply mode where the first battery supplies power to the first body and the second battery supplies power to the second body. After that, continue to monitor the power consumption of the first battery and the remaining power of the second battery simultaneously. As long as the power consumption of the first battery reaches 10% (e.g., the power of the first battery drops from 90% to 80%), and at the same time, the remaining power of the second battery is higher than 40%, control the second battery to supply power to the target load module in the first body, and execute the above cycle process until the remaining power of the second battery is not higher than 40% or until there is an external power source to charge the first battery and the second battery.
[0106] Among them, when certain conditions are met during the second battery supplying power to the target load module in the first body, continue to switch to the power supply mode where the first battery supplies power to the first body and the second battery supplies power to the second body. The certain conditions can specifically be: the duration of the second battery supplying power to the target load module in the first body reaches the target duration, or stop when the power consumption of the second battery reaches a certain specific threshold from the start of the second battery supplying power to the target load module in the first body. That is, after controlling the second battery to supply power to the target load module in the first body, it is still necessary to continue monitoring the second battery. When it is determined that the second battery meets certain conditions, switch to the first battery supplying power to the target load module in the first body. At this time, the second battery only supplies power to the second body to avoid the problem of excessive power consumption of the second battery.
[0107] In addition, it should be noted that in the case where there is an external power source to charge the first battery and the second battery, or there is an external power source to supply power to the first body and the second body, the solution disclosed in this embodiment does not need to be considered. The solution disclosed in this embodiment is only applied in the case where there is no external power source to charge the first battery and the second battery and no external power source to supply power to the first body and the second body.
[0108] The power supply control method disclosed in this embodiment, when the first body and the second body of the electronic device are connected, determines a first power parameter representing the consumed power of the first battery during the current power consumption process and a second power parameter representing the remaining power of the second battery. When it is determined that the first power parameter reaches the power consumption threshold and the second power parameter is higher than the power remaining threshold, based on the working state of the electronic device, a target load module in the first body is determined, and the second battery is controlled to supply power to the target load module. In this solution, if the first battery has consumed a certain amount of power and at the same time the remaining power of the second battery is sufficient, it is necessary to determine the target load module in the first body based on the working state of the electronic device and supply power to it by the second battery, so as to avoid the situation that the first battery consumes too much power while the second battery still has a lot of remaining power. By dynamically adjusting the battery supplying power to the target load module of the first body, the battery life of the first battery and the second battery can be ensured to match.
[0109] Further, the power supply control method disclosed in this embodiment may further include:
[0110] Obtain a first operating parameter of the first body and a second operating parameter of the second body, and estimate a first remaining duration of the first battery based on the remaining power of the first battery and the first operating parameter; estimate a second remaining duration of the second battery based on the second power parameter of the second battery and the second operating parameter; determine the power consumption threshold based on the first remaining duration and the second remaining duration.
[0111] During the operation of the electronic device, to determine whether to supply power to the target load module of the first body by the second battery, it is necessary to determine based on whether the first power parameter reaches the power consumption threshold and whether the second power parameter is higher than the power remaining threshold at the same time; and after controlling the second battery to supply power to the target load module of the first body, it is also necessary to monitor the second battery. When it meets certain conditions, switch back to supplying power to the target load module of the first body by the first battery, and the second battery no longer supplies power to it; then, continue to monitor the power parameters of the first battery and the second battery. That is, this is a continuous process. During the continuous process, the power of both the first battery and the second battery will decrease. Then, as the power of the first battery and the second battery decreases, it is necessary to dynamically adjust the judgment condition (i.e., the power consumption threshold) for whether to supply power to the target load module of the first body by the second battery, so that the battery life of the first battery and the second battery can be kept matching.
[0112] Specifically, during the operation of the electronic device, monitor the operating parameters of the first body and the operating parameters of the second body to obtain the first operating parameters of the first body and the second operating parameters of the second body, so that the electrical energy consumed by each load module on the first body can be determined through the first operating parameters of the first body, and the electrical energy consumed by each load module on the second body can be determined through the second operating parameters of the second body.
[0113] Based on the first operating parameters, determine the electrical energy consumed by each load module on the first body, and then combine it with the current remaining power of the first battery on the first body. If the first body continues to operate according to the first operating parameters, the duration that the current remaining power of the first battery can supply the first body to continue operating can be predicted, that is, the first remaining duration. For example: the current remaining power of the first battery is 60%. If it continues to operate according to the current first operating parameters of the first body, it is estimated that the remaining 60% of the power of the first battery can still operate for 4 hours, then the first remaining duration is 4 hours.
[0114] Correspondingly, based on the second operating parameters, determine the electrical energy consumed by each load module on the second body, and then combine it with the current remaining power of the second battery on the second body (i.e., the second power parameter). If the second body continues to operate according to the second operating parameters, the duration that the current remaining power of the second battery can supply the second body to continue operating can be predicted, that is, the second remaining duration. For example: the current remaining power of the second battery is 50%. If it continues to operate according to the current second operating parameters of the second body, it is estimated that the remaining 50% of the power of the second battery can still operate for 9 hours, then the second remaining duration is 9 hours.
[0115] After estimating the first remaining duration of the first battery and the second remaining duration of the second battery, the power consumption threshold can be adjusted based on the first remaining duration and the second remaining duration to adjust the conditions for switching the power supply battery.
[0116] That is: if the first remaining duration is significantly less than the second remaining duration, the power consumption threshold can be reduced so that as long as the remaining power of the second battery is higher than the power remaining threshold, and at the same time, the first battery consumes a small amount of power, it can be switched to the second battery to supply power to the target load module of the first body, thereby reducing the duration of the first battery supplying power to the target load module;
[0117] If the first remaining duration is close to the second remaining duration, since the capacity of the first battery itself is greater than the capacity of the second battery, the power consumption threshold can be increased so that when the remaining power of the second battery is higher than the power remaining threshold, only when the first battery consumes a higher amount of power can it be switched to the second battery to supply power to the target load module of the first body, thereby increasing the duration of the first battery supplying power to the target load module.
[0118] This solution dynamically adjusts the power consumption threshold based on the actual operating parameters of the electronic device, and realizes dynamic adjustment of the battery life of the first battery and the second battery by dynamically adjusting the power consumption threshold, so as to ensure that the remaining usage time of the first battery matches the remaining usage time of the second battery and ensure the user experience.
[0119] This embodiment discloses a power supply control method, and its flowchart is as Figure 6 shown, including:
[0120] Step S61: When it is determined that the first body and the second body of the electronic device are connected, determine the first power parameter of the first battery in the first body and the second power parameter of the second battery in the second body. The second body of the electronic device can obtain the operation instruction of the user on the second body and send the operation instruction to the first body of the electronic device, so that the first body responds to the operation instruction;
[0121] Step S62: Determine the working state of the electronic device;
[0122] Step S63: Determine the target load module in the first body based on the first power parameter, the second power parameter and the working state of the electronic device;
[0123] Step S64: If the electronic device includes at least two second bodies, determine the priority order for the at least two second bodies to supply power to the target load module;
[0124] Step S65: Determine the target second body from the at least two second bodies based on the priority order;
[0125] Step S66: Control the second battery in the target second body to supply power to the target load module.
[0126] When the first body and the second body of the electronic device are connected, determine the first power parameter of the first battery in the first body, the second power parameter of the second battery in the second body and the working state of the electronic device. Based on the first power parameter, the second power parameter and the working state of the electronic device, determine whether the power supply switching condition is satisfied currently. If it is determined that the power supply switching condition is satisfied, it is necessary to further determine the target load module in the first body and control the second battery in the second body to supply power to the target load module.
[0127] If there are at least two second bodies in the electronic device, when determining whether the power supply switching condition is satisfied, it needs to be jointly determined based on the second power parameter of the second battery of each second body among the at least two second bodies, the first power parameter, and the working state of the electronic device; moreover, when the second battery in the second body supplies power to the target load module, at least part of the second batteries of at least two second bodies can be selected to supply power to the target load module. When the number of second bodies is greater than 2, the selected part of the second bodies can be 1, or 2, or multiple, where the multiple can be the same as the number of second bodies or less than the number of second bodies; when the number of second bodies is 2, the at least part of the second bodies selected can be 1 or 2.
[0128] At least part of the at least two second bodies can be selected to supply power to the target load module according to the priority order of the at least two second bodies supplying power to the target load module.
[0129] The second body with the highest priority can be directly selected from the at least two second bodies as the target second body according to the priority order, and only the second battery in the target second body supplies power to the target load module, while the other second bodies among the at least two second bodies do not need to supply power to the target load module; further, when the power of the second battery in the target second body is lower than a certain power threshold, the next second body is selected as the target second body according to the priority order until the second battery in each second body serves as the target second body to supply power to the target load module once. After that, the power supply is switched back to the first battery in the first body to supply power to the target load module, and the second battery in any second body no longer supplies power to the target load module;
[0130] Or, each time a second body is selected as the target second body according to the priority order. After that, when the switching condition is satisfied, the power supply is switched back to the first battery to supply power to the target load module, and the second body no longer supplies power to the target load module. At this time, the target second body when the switching condition is satisfied is recorded. Until the second battery of the second body needs to supply power to the target load module again, continue to supply power to the target load module with the second battery of the target second body recorded when the switching condition is satisfied.
[0131] Or, the target number of second bodies with the highest priority can be selected from the at least two second bodies as the target second body according to the priority order. This method is the same as the method of supplying power to the target load module when selecting one second body as the target second body, and will not be elaborated here.
[0132] Further, the target second body is determined from at least two second bodies according to the priority order, and the second battery of the target second body is controlled to supply power to the target load module, which can be specifically:
[0133] Control the target second body to supply power to the target load module at the first charging power; control the non-target second bodies among at least two second bodies to supply power to the target load module at the second charging power, where the first charging power is less than the second charging power, and the non-target second bodies are the other second bodies among at least two second bodies except the target second body.
[0134] In this embodiment, after the target second body is determined from at least two second bodies according to the priority order, the second battery of the target second body supplies power to the target load module. At the same time, the second batteries of the non-target second bodies among at least two second bodies also need to supply power to the target load module, but the charging power is different from that of the second battery of the target second body supplying power to the target load module, and the charging power of the second battery of the target second body is greater than that of the second battery of the non-target second body.
[0135] Select the target second body from at least two second bodies according to the priority order of supplying power to the target load module. The second bodies among at least two second bodies other than the target second body are used as non-target second bodies. At this time, the number of selected target second bodies can be 1 or multiple.
[0136] The target second body determined according to the priority order of supplying power to the target load module is the optimal second body for supplying power to the target load module. Therefore, the second battery of the target second body should be preferentially used to supply power to the target load module. In this embodiment, in order to avoid a large difference in battery life between the target second body and the non-target second bodies, while the second battery of the target second body supplies power to the target load module, the second batteries of the non-target second bodies can be controlled to also supply power to the target load module, but different charging powers need to be maintained. Still, the second battery of the target second body is the main power supply for the target load module, and the second batteries of the non-target second bodies are the auxiliary power supply for the target load module. This can not only ensure that there is enough electric energy to supply power to the target load module but also avoid the rapid consumption of the power in the second battery of the target second body, resulting in a large difference in the remaining power between the second battery of the target second body and the second batteries of the non-target second bodies.
[0137] Further, determining the priority order of at least two second bodies supplying power to the target load module may include at least one of the following:
[0138] Determine the priority order for at least two second bodies to supply power to the target load module based on the power consumption of each second body among the at least two second bodies; determine the priority order for at least two second bodies to supply power to the target load module based on the remaining power of the second batteries respectively corresponding to the at least two second bodies; determine the preset priority order for at least two second bodies to supply power to the target load module.
[0139] The capacities of the second batteries in at least two second bodies may be the same or different, and the power consumption of the loads in at least two second bodies per unit time (i.e., power consumption) may be the same or different.
[0140] The priority order can be determined according to the magnitude of the power consumption of each second body among at least two bodies. The higher the power consumption, the lower the priority order, and the lower the power consumption, the higher the priority order.
[0141] In addition, when determining the priority order according to the power consumption, the capacity of the second battery in each second body can also be combined to determine the priority order, that is: if the capacities of the second batteries in each second body are the same, then as long as the power consumption of a certain second body is large, the remaining capacity of the second battery in this second body must be less than the capacity of the batteries in other bodies; if the capacities of the second batteries in at least two second bodies are different, the power consumption and the battery capacity can be used as two parameters, and weights can be set for each parameter, thereby obtaining a calculated value, and the priority order can be determined according to this calculated value.
[0142] Alternatively, the priority order can be determined according to the magnitude of the remaining power of the second batteries in at least two second bodies. The more the remaining power, the higher the priority order, and the less the remaining power, the lower the priority order.
[0143] In addition, when determining the priority order according to the remaining power, the power consumption of the second body can also be combined to determine the priority order, that is: if the power consumption of each second body is the same, the sorting is directly carried out according to the remaining power; if the power consumption of at least two second bodies is different, the remaining power and the power consumption can be used as two parameters, and weights can be set for each parameter, thereby obtaining a calculated value, and the priority order can be determined according to this calculated value.
[0144] In addition, it can also be: preset the priority order of at least two second bodies. When the second battery of the second body is required to supply power to the target load module, directly determine the target second body according to the preset priority order, and control the second battery of the target second body to supply power to the target load module.
[0145] For the power supply control method disclosed in this embodiment, when it is determined that the second battery of the second body needs to supply power to the target load module in the first body based on the first power parameter of the first battery, the second power parameter of the second battery, and the power supply state of the electronic device, it is necessary to first determine the target load module in the first body. Since the electronic device includes at least two second bodies, when determining that the second battery of the second body supplies power to the target load module, it is also necessary to determine the priority order for at least two second bodies to supply power to the target load module, and supply power to the target load module according to this priority order, so as to ensure that the power supply of at least two second bodies to the target load module can conform to the priority order, avoid the problem of inconsistent battery life between the first battery and the second battery, and at the same time avoid the problem of inconsistent battery life of at least two second bodies.
[0146] This embodiment discloses an electronic device, and its structural schematic diagram is as Figure 7 shown, including:
[0147] A first body 71 and a second body 72.
[0148] After the second body 72 is connected to the first body 71, it can obtain the operation instruction of the user for the second body 72 and send the operation instruction to the first body 71, so that the first body 71 responds to the operation instruction;
[0149] The second body 72 includes at least a second battery;
[0150] The first body 71 includes at least a first battery, a load module, and a processor;
[0151] The processor is used to determine the first power parameter of the first battery and the second power parameter of the second battery when it is determined that the first body 71 is connected to the second body 72; determine the working state of the electronic device; determine the target load module in the load module of the first body based on the first power parameter, the second power parameter, and the working state of the electronic device; control the second battery to supply power to the target load module.
[0152] Further, the processor is used for:
[0153] When the working state of the electronic device indicates that the electronic device is in the low-power mode, determine the low-power module and the high-power module in the first body as the target load module based on the first power parameter and the second power parameter.
[0154] Further, the processor is used for:
[0155] When the working state of the electronic device indicates that the electronic device is in the non-low-power mode, determine the low-power module in the first body as the target load module based on the first power parameter and the second power parameter.
[0156] Further, the processor is further configured to:
[0157] Control the first battery in the first body to supply power to the high-power consumption modules in the first body.
[0158] Further, the first power parameter represents the power consumed by the first battery during the current power consumption process, and the second power parameter represents the remaining power of the second battery. The processor is configured to:
[0159] If it is determined that the first power parameter reaches the power consumption threshold and the second power parameter is higher than the power remaining threshold, determine the target load module in the first body based on the working state of the electronic device.
[0160] Further, the processor is further configured to:
[0161] Obtain the first operating parameter of the first body and the second operating parameter of the second body; estimate the first remaining duration of the first battery based on the remaining power of the first battery and the first operating parameter; estimate the second remaining duration of the second battery based on the second power parameter of the second battery and the second operating parameter; determine the power consumption threshold based on the first remaining duration and the second remaining duration.
[0162] Further, the processor is configured to:
[0163] If the electronic device includes at least two second bodies, determine the priority order for the at least two second bodies to supply power to the target load module; determine the target second body from the at least two second bodies based on the priority order; control the second battery in the target second body to supply power to the target load module.
[0164] Further, the processor is configured to:
[0165] Determine the priority order for the at least two second bodies to supply power to the target load module based on the power consumption of each of the at least two second bodies; or, determine the priority order for the at least two second bodies to supply power to the target load module based on the remaining power of the second batteries respectively corresponding to the at least two second bodies; or, determine the pre-set priority order for the at least two second bodies to supply power to the target load module.
[0166] Further, the processor is configured to:
[0167] Control the target second body to supply power to the target load module at the first charging power;
[0168] Control the non-target second bodies among the at least two second bodies to supply power to the target load module at the second charging power, where the first charging power is less than the second charging power, and the non-target second bodies are the other second bodies except the target second body among the at least two second bodies.
[0169] The electronic device disclosed in this embodiment is implemented based on the power supply control method disclosed in the above embodiment, which will not be elaborated here.
[0170] For the electronic device disclosed in this embodiment, when it is determined that the first body and the second body of the electronic device are connected, the first power parameter of the first battery in the first body and the second power parameter of the second battery in the second body are determined. After determining the working state of the electronic device, the target load module in the first body is determined based on the first power parameter, the second power parameter, and the working state of the electronic device, and the second battery in the second body is controlled to supply power to the target load module. This realizes determining to supply power to the target load module in the first body through the battery in the second body based on the power parameter of the battery in the first body, the power parameter of the battery in the second body, and the working state, and supplying power to the target load module in the first body through the second battery in the second body, avoiding the problem of mismatched battery life between the battery in the first body and the battery in the second body, so as to improve the user experience of the electronic device.
[0171] In addition, it should be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the attached drawings of the device embodiments provided in this application, the connection relationship between the modules indicates that they have a communication connection, which can be specifically implemented as one or more communication buses or signal lines.
[0172] Through the description of the above embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by dedicated hardware including application-specific integrated circuits, dedicated CPUs, dedicated memories, dedicated components, etc. Generally, functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structures used to implement the same function can also be diverse, such as analog circuits, digital circuits, or dedicated circuits. However, for this application, in more cases, software program implementation is a better implementation method. Based on such an understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium, such as a floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk, or optical disc of a computer, and includes several instructions to enable a computer device (which can be a personal computer, training device, or network device, etc.) to execute the methods described in various embodiments of this application.
[0173] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product.
[0174] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another, for example, the computer instructions may be transmitted from a website, computer, training device, or data center to another website, computer, training device, or data center by wire (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that a computer can store, or a data storage device such as a training device or data center that includes one or more integrated available media. The available medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)), etc.
Claims
1. A power supply control method, comprising: When it is determined that the first body and the second body of the electronic device are connected, determining a first power parameter of a first battery in the first body and a second power parameter of a second battery in the second body, wherein the second body of the electronic device can obtain an operation instruction of the user on the second body and send the operation instruction to the first body of the electronic device, so that the first body responds to the operation instruction; Determining the working state of the electronic device; Determining a target load module in the first body based on the first power parameter, the second power parameter and the working state of the electronic device; Controlling the second battery in the second body to supply power to the target load module.
2. The method according to claim 1, wherein determining the target load module in the first body based on the first power parameter, the second power parameter and the working state of the electronic device comprises: When the working state of the electronic device indicates that the electronic device is in a low power consumption mode, determining a low power consumption module and a high power consumption module in the first body as the target load module based on the first power parameter and the second power parameter.
3. The method according to claim 1, wherein determining the target load module in the first body based on the first power parameter, the second power parameter and the working state of the electronic device comprises: When the working state of the electronic device indicates that the electronic device is not in a low power consumption mode, determining a low power consumption module in the first body as the target load module based on the first power parameter and the second power parameter.
4. The method according to claim 3, further comprising: Controlling the first battery in the first body to supply power to the high power consumption module in the first body.
5. The method according to claim 1, wherein the first power parameter represents the consumed power of the first battery during the current power consumption process, the second power parameter represents the remaining power of the second battery, and determining the target load module in the first body based on the first power parameter, the second power parameter and the working state of the electronic device comprises: If it is determined that the first power parameter reaches a power consumption threshold and the second power parameter is higher than a power remaining threshold, determining the target load module in the first body based on the working state of the electronic device.
6. The method according to claim 5, further comprising: Obtaining a first operation parameter of the first body and a second operation parameter of the second body; Estimating a first remaining duration of the first battery based on the remaining power of the first battery and the first operation parameter; Estimating a second remaining duration of the second battery based on the second power parameter of the second battery and the second operation parameter; Determining the power consumption threshold based on the first remaining duration and the second remaining duration.
7. The method according to claim 1, wherein controlling the second battery in the second body to supply power to the target load module comprises: If the electronic device includes at least two second bodies, determine the priority order for the at least two second bodies to supply power to the target load module; Based on the priority order, determine a target second body from the at least two second bodies; Control the second battery in the target second body to supply power to the target load module.
8. The method according to claim 7, wherein determining the priority order for the at least two second bodies to supply power to the target load module includes at least one of the following: Determine the priority order for the at least two second bodies to supply power to the target load module based on the power consumption of each second body in the at least two second bodies; Determine the priority order for the at least two second bodies to supply power to the target load module based on the remaining power of the second batteries respectively corresponding to the at least two second bodies; Determine the preset priority order for the at least two second bodies to supply power to the target load module.
9. The method according to claim 7, wherein controlling the second battery in the target second body to supply power to the target load includes: Control the target second body to supply power to the target load module at a first charging power; Control the non-target second bodies among the at least two second bodies to supply power to the target load module at a second charging power, the first charging power being less than the second charging power, and the non-target second bodies being the other second bodies except the target second body among the at least two second bodies.
10. An electronic device, comprising: A first body and a second body, after the second body is connected to the first body, it can obtain an operation instruction of the user on the second body and send the operation instruction to the first body, so that the first body responds to the operation instruction; The second body at least includes a second battery; The first body at least includes a first battery, a load module and a processor; The processor is configured to determine a first power parameter of the first battery and a second power parameter of the second battery when it is determined that the first body is connected to the second body; Determine the working state of the electronic device; determine a target load module in the load module of the first body based on the first power parameter, the second power parameter and the working state of the electronic device; control the second battery to supply power to the target load module.