A power supply control method and device, electronic equipment and storage medium
Patent Information
- Application Number
- CN202610874116.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-16
- Publication Date
- 2026-10-30
AI Technical Summary
现有双供电系统多采用模块独立供电模式,能源资源利用率偏低,使用体验受限
[0014]本公开的电源控制方法、装置、电子设备及存储介质,在电子设备处于第一工作模式下,结合两个电源模组的规格参数与电量参数,筛选目标电源模组对两个功能模块进行供电。在保障电子设备整机系统稳定可靠运行的前提下,对双电源模组的电量输出与负载分配进行合理调度,均衡各电源模组的电量消耗,有效提升电子设备的整体续航时长与用电可靠性。
Smart Images

Figure CN123018759A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of power supply technology, and in particular to a power control method, apparatus, electronic device, and storage medium. Background Technology
[0002] Current electronic devices are trending towards lightweight design and reconfigurable form factors. Traditional unibody structures, with their fixed form factors, cannot adapt to the flexible usage requirements of various scenarios. This has led to the emergence of new electronic device architectures with combinable and detachable dual operating modes. These devices typically feature two independent power supply systems, powering different functional modules respectively. Existing dual power supply systems mostly adopt a module-independent power supply mode, resulting in low energy resource utilization and limited user experience. Therefore, there is an urgent need to provide a more comprehensive power supply control solution. Summary of the Invention
[0003] This disclosure provides a power control method, apparatus, electronic device, and storage medium to at least solve the above-mentioned technical problems existing in the prior art.
[0004] According to a first aspect of this disclosure, a power supply control method is provided, the method comprising: The electronic device is configured to operate in different modes. The electronic device includes a first functional module and a second functional module. The connection state of the first functional module and the second functional module is different when the operating modes of the electronic device are different. The first functional module is provided with a first power module, and the second functional module is provided with a second power module. In response to the electronic device operating in a first operating mode, the specification parameters and power parameters of the first power module and the second power module are acquired respectively; wherein, when the electronic device is operating in the first operating mode, the first functional module and the second functional module of the electronic device are in a physically connected state. Based on the specifications and the power parameters, at least one target power module is determined from the first power module and the second power module. The target power module supplies power to the first functional module and the second functional module.
[0005] In one possible implementation, determining at least one target power module from the first power module and the second power module based on the specification parameters and the power parameters includes: The specifications of the first power module and the second power module are compared to obtain the specification comparison results. The power parameters of the first power module and the second power module are compared to obtain the power comparison results; Based on the specification comparison results and the power comparison results, at least one target power module is determined from the first power module and the second power module.
[0006] In one possible implementation, determining at least one target power module from the first power module and the second power module based on the specification comparison result and the power comparison result includes: If the specification comparison result indicates that the specifications of the first power module and the second power module meet the first difference condition, the first power module or the second power module is determined as the target power module based on the power comparison result. If the specification comparison result indicates that the specifications of the first power module and the second power module meet the second difference condition, the first power module is determined as the target power module based on the power comparison result, or the first power module and the second power module are determined as the target power modules. If the specification comparison result indicates that the specifications of the first power module and the second power module are consistent, the first power module and the second power module are determined as the target power modules based on the power comparison result.
[0007] In one possible implementation, determining the first power module or the second power module as the target power module based on the power comparison result includes: Based on the power comparison results, the power module with the higher power level between the first power module and the second power module is determined as the priority power supply module, and the power module with the lower power level is determined as the candidate power supply module. The priority power supply module is identified as the target power supply module; When the power difference between the priority power supply module and the candidate power supply module reaches a preset threshold, the target power supply module is switched from the priority power supply module to the candidate power supply module.
[0008] In one possible implementation, the method further includes: In response to the electronic device operating in the second operating mode, the first functional module is powered by the first power module, and the second functional module is powered by the second power module. When the electronic device operates in the second operating mode, the first functional module and the second functional module of the electronic device are physically separated.
[0009] In one possible implementation, the method further includes: The target power module is switched from the priority power supply module to the candidate power supply module by using a delay circuit.
[0010] In one possible implementation, determining the first power module and the second power module as target power modules based on the power comparison results includes: If the power comparison result indicates that the power of the first power module and the second power module are the same, the first power module and the second power module are determined as the target power module. If the power comparison result indicates that the power of the first power module and the second power module are different, discharge the first power module or the second power module until the power of the first power module and the second power module are the same. The first and second power modules after discharge treatment are identified as the target power modules.
[0011] According to a second aspect of this disclosure, a power control device is provided, the device comprising: A mode acquisition module is used to obtain the operating mode of an electronic device; wherein the electronic device includes a first functional module and a second functional module, and the connection state of the first functional module and the second functional module is different when the operating mode of the electronic device is different; the first functional module is provided with a first power module, and the second functional module is provided with a second power module. The data acquisition module is used to acquire the specification parameters and power parameters of the first power module and the second power module respectively in response to the electronic device being in the first working mode; wherein, when the electronic device is in the first working mode, the first functional module and the second functional module of the electronic device are in a physically connected state. The determination module is used to determine at least one target power module from the first power module and the second power module based on the specification parameters and the power parameters; and to supply power to the first functional module and the second functional module through the target power module.
[0012] According to a third aspect of this disclosure, an electronic device is provided, including a first functional module, a second functional module, and a data processing module. The first functional module includes a first power supply module, and the second functional module includes a second power supply module. The connection state of the first functional module and the second functional module is different when the electronic device operates in different modes. The data processing module is used to obtain the operating mode of the electronic device; The data processing module is further configured to, in response to the electronic device operating mode being the first operating mode, acquire the specification parameters and power parameters of the first power module and the second power module respectively; wherein, when the electronic device is operating in the first operating mode, the first functional module and the second functional module of the electronic device are in a physically connected state. The data processing module is further configured to determine at least one target power module from the first power module and the second power module based on the specification parameters and the power parameters. The target power module is used to supply power to the first functional module and the second functional module.
[0013] According to a fourth aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions for causing the computer to perform the methods described in this disclosure.
[0014] The power control method, apparatus, electronic device, and storage medium disclosed herein, when the electronic device is in its first operating mode, selects a target power module to supply power to the two functional modules by combining the specification parameters and power parameters of the two power modules. Under the premise of ensuring the stable and reliable operation of the entire electronic device system, it rationally schedules the power output and load distribution of the dual power modules, balances the power consumption of each power module, and effectively improves the overall battery life and power reliability of the electronic device.
[0015] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0016] The above and other objects, features, and advantages of this disclosure will become readily apparent from the following detailed description of exemplary embodiments, taken in conjunction with the accompanying drawings. Several embodiments of this disclosure are illustrated in the drawings by way of example and not limitation, in which: In the accompanying drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
[0017] Figure 1 A schematic diagram illustrating the implementation flow of a power control method according to an embodiment of the present disclosure is shown; Figure 2 A schematic diagram of the composition structure of an electronic device according to an embodiment of the present disclosure is shown; Figure 3 A schematic diagram of the composition structure of another electronic device according to an embodiment of the present disclosure is shown; Figure 4 A schematic diagram of the composition structure of a power control device according to an embodiment of the present disclosure is shown; Figure 5 A schematic diagram of the composition structure of another electronic device according to an embodiment of the present disclosure is shown. Detailed Implementation
[0018] To make the objectives, features, and advantages of this disclosure more apparent and understandable, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this disclosure, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without creative effort are within the scope of protection of this disclosure.
[0019] A first aspect of this disclosure provides a power control method, such as... Figure 1 As shown, the method includes the following steps: Step 101: Obtain the operating mode of the electronic device. The electronic device includes a first functional module and a second functional module. The connection state of the first functional module and the second functional module is different when the operating mode of the electronic device is different. The first functional module is provided with a first power supply module, and the second functional module is provided with a second power supply module.
[0020] Specifically, the electronic device can be a detachable laptop, a split-type smart terminal, or other electronic device with various forms such as combinable and detachable. The first functional module and the second functional module are two detachable functional components on the electronic device, supporting both wired and wireless interface connections. The first functional module contains a first power supply module, and the second functional module contains a second power supply module. The first power supply module is configured to independently power at least the first functional module, and the second power supply module is configured to independently power at least the second functional module.
[0021] Taking a detachable laptop as an example, the main body of the device can be considered as the first functional module, and the detachable screen assembly as the second functional module. When the electronic device is in its normal, fully functional state, the first and second functional modules are connected via a wired interface; when the electronic device is in its detached tablet state, the first and second functional modules switch to a wireless interface for connection. This embodiment can determine the corresponding operating mode of the electronic device by identifying the current connection method between the first and second functional modules, specifically including fully functional mode and detached mode.
[0022] Step 102: In response to the electronic device operating mode being the first operating mode, the specification parameters and power parameters of the first power module and the second power module are obtained respectively; wherein, when the electronic device is operating in the first operating mode, the first functional module and the second functional module of the electronic device are in a physically connected state.
[0023] If the electronic device is detected to be operating in the first mode, i.e., the complete unit mode, the first and second functional modules are physically connected via a wired interface. The specifications and power parameters of the first and second power modules are acquired respectively. The specifications are fixed hardware parameters such as rated voltage, rated capacity, and maximum output power, which can be pre-read from the device parameter manual and stored in the device memory for direct retrieval during use. The power parameters are the real-time remaining power information of each power module.
[0024] Step 103: Based on the specification parameters and power parameters, determine at least one target power module from the first power module and the second power module.
[0025] When the electronic device is in detached mode, the first power module and the second power module independently power the first functional module and the second functional module, respectively. The first functional module typically contains high-power components, resulting in relatively high overall power consumption, while the second functional module has relatively low overall power consumption. After the device has been running in detached mode for a period of time, a significant difference in the remaining power of the first and second power modules can easily occur. If either power module runs out of power, it will directly affect the normal operation of the corresponding functional module, thereby reducing the overall user experience and battery life of the electronic device.
[0026] Based on this, in this embodiment, when the electronic device is in the first working mode, it first determines whether the two power modules have the capability to supply power across functional modules based on the specifications of the first and second power modules. For example, it determines whether the second power module has the hardware specifications and load capacity to independently supply power to both the first and second functional modules. If both power modules have the capability to supply power across modules, their real-time power parameters are compared, and one of them is selected as the target power module for alternating power supply, thereby balancing the power consumption of the two power modules. If only one power module has the capability to supply power across modules, its power parameters are further compared. When the remaining power of the power module capable of supplying power across modules is greater than that of the other power module, the power module capable of supplying power across modules is selected as the target power module. When its remaining power is not greater than that of the other power module, both power modules are determined as target power modules, and each independently supplies power to its corresponding functional module. If neither power module has cross-module power supply capability, the power levels of the two power modules are adjusted to similar levels, and they are used together as the target power module to supply power to all functional modules in parallel. This determination method optimizes power distribution, balances power consumption, and extends the overall usage time of electronic devices as much as possible.
[0027] Step 104: Power the first functional module and the second functional module through the target power module.
[0028] After determining at least one target power module according to the aforementioned steps, the first functional module and the second functional module are powered in a coordinated manner based on the selected target power module.
[0029] The power control method in this embodiment, when the electronic device is in its first operating mode, intelligently selects a target power module and matches an appropriate power supply strategy by combining the specifications and power parameters of the two power modules. Under the premise of ensuring the stable and reliable operation of the entire electronic device system, it rationally schedules the power output and load distribution of the dual power modules, balancing the power consumption of each power module and effectively improving the overall battery life and power reliability of the electronic device.
[0030] In another embodiment of this disclosure, at least one target power module is determined from the first power module and the second power module based on specification parameters and power parameters. Specifically, this can be achieved by: comparing the specification parameters of the first power module and the second power module to obtain a specification comparison result; comparing the power parameters of the first power module and the second power module to obtain a power comparison result; and determining at least one target power module from the first power module and the second power module based on the specification comparison result and the power comparison result.
[0031] First, the specifications of the first and second power modules are compared to generate a comparison result. This comparison result reflects the similarities and differences between the two power modules in terms of hardware specifications, power supply capacity, and load adaptability. Specifically, it may include whether the first and second power modules have identical specifications or differ in specifications. Simultaneously, the real-time power parameters of the first and second power modules are compared to obtain a power comparison result. This power comparison result reflects the relative remaining power of the two power modules and the power difference. Based on this, considering both the hardware power supply adaptability represented by the specification comparison result and the real-time remaining power status represented by the power comparison result, at least one module is reasonably selected from the first and second power modules as the target power module, providing a reliable basis for subsequent overall power supply scheduling.
[0032] In another possible embodiment of this disclosure, at least one target power module is determined from the first power module and the second power module based on the specification comparison result and the power consumption comparison result. Specifically, this can be achieved through the following technical means: if the specification comparison result indicates that the specifications of the first power module and the second power module meet a first difference condition, the first power module or the second power module is determined as the target power module based on the power consumption comparison result; if the specification comparison result indicates that the specifications of the first power module and the second power module meet a second difference condition, the first power module is determined as the target power module based on the power consumption comparison result, or the first power module and the second power module are determined as the target power module; if the specification comparison result indicates that the specifications of the first power module and the second power module are consistent, the first power module and the second power module are determined as the target power module based on the power consumption comparison result.
[0033] The first difference condition refers to a difference in hardware specifications between the first power module and the second power module, but both power modules have the ability to independently power both the first and second functional modules as a whole. When the two power modules meet this first difference condition, in order to rationally allocate power resources, balance power consumption, and extend the overall battery life, the power module with better remaining power condition can be selected as the target power module by further combining the power comparison results.
[0034] The second difference condition refers to a difference in hardware specifications between the first power module and the second power module, where the first power module can independently power both the first and second functional modules as a whole, while the second power module can only power the second functional module alone. When this second difference condition is met, the corresponding power comparison result is obtained for judgment: if the power comparison result shows that the remaining power of the first power module is greater than or equal to the remaining power of the second power module, in order to achieve centralized load scheduling, simplify power supply logic, and ensure stable power supply for the entire machine, the first power module is determined as the target power module; if the power comparison result shows that the remaining power of the first power module is less than the remaining power of the second power module, in order to balance power consumption and fully utilize the battery life of each power module, both the first and second power modules are determined as target power modules, with the first power module powering the first functional module alone and the second power module powering the second functional module alone.
[0035] When the specification comparison results determine that the hardware specifications of the first power module and the second power module are completely consistent, in order to balance the discharge load of the two modules, give full play to the advantages of parallel power supply, and improve the overall battery life and power supply stability, the first power module and the second power module are simultaneously identified as the target power module, and the two power modules are controlled to discharge and supply power synchronously and collaboratively.
[0036] This embodiment first compares the dual power supply modules in terms of both specifications and power parameters, and then formulates target power supply module judgment rules based on different specification differences. This approach combines hardware power supply capabilities with real-time power status to achieve precise selection and rational scheduling of power supply modules, effectively balancing the power consumption and discharge load of each power supply module. While ensuring stable and reliable power supply operation of the entire electronic device, it maximizes the battery life potential of the dual power supply modules, optimizes power distribution logic, and extends the overall usage time of the device.
[0037] In another embodiment of this disclosure, the first power module or the second power module is determined as the target power module based on the power comparison result. This can be achieved through the following technical means: based on the power comparison result, the power module with the higher power level between the first power module and the second power module is determined as the priority power supply module, and the power module with the lower power level is determined as the candidate power supply module; the priority power supply module is determined as the target power module; when the power difference between the priority power supply module and the candidate power supply module reaches a preset threshold, the target power module is switched from the priority power supply module to the candidate power supply module.
[0038] When both the first and second power modules can independently power the two functional modules, the module with the higher remaining power is selected as the priority power supply module and designated as the target power supply module, supplying power to both functional modules. The module with the lower remaining power is then designated as the candidate power supply module and placed in a standby state with its power supply suspended.
[0039] During the operation of the entire device, the remaining power of the two power modules is continuously collected in real time, and the power difference is calculated. When the power difference reaches a preset threshold, it indicates that the power of the current priority power supply module is being consumed too quickly, and its power advantage has been significantly reduced. This preset threshold can be pre-configured based on the device's power consumption characteristics, battery capacity, and battery life requirements. At this time, the target power supply module is switched to the candidate power supply module, which then undertakes the overall power supply for the first and second functional modules. The original priority power supply module becomes a candidate power supply module and enters a sleep standby state. The above power difference monitoring and power supply module switching logic is executed cyclically, dynamically rotating the target power supply module in real time according to the power changes of the two power modules. Until either power supply module is depleted, the other power supply module with remaining power is fixed as the target power supply module, and the rotation of power supply modules is no longer performed.
[0040] The solution in this embodiment, through this dynamic power switching method, can balance the discharge rate of the two power modules, avoid excessive consumption of a single power module, smoothly control the power decay rhythm, and effectively improve the overall utilization rate of the dual power modules and the overall battery life of the device.
[0041] For example, a preset threshold A is set to 5%, the initial battery level of the first power module is 60%, and the initial battery level of the second power module is 50%. First, the first power module with the higher battery level is selected as the target power module to provide power to both functional modules simultaneously, while the second power module remains in standby mode. During continuous power supply, the difference in remaining battery level between the two power modules is acquired and calculated in real time to construct a battery difference model. SoC=SoC1 SoC2, SoC1, and SoC2 represent the remaining power of the power modules. The system monitors changes in the power difference in real time, and triggers a switching process for the target power module when the power difference meets a preset threshold.
[0042] In another embodiment of this disclosure, the method further includes: switching the target power module from a priority power supply module to a candidate power supply module via a delay circuit.
[0043] During the switching of power modules, issues such as momentary power interruptions, voltage fluctuations, and system instability can easily occur. To address this, this embodiment adds a delay circuit to the power switching link. Utilizing the timing buffering characteristics of the delay circuit, the execution timing and switching rhythm of the power switching action are controlled, avoiding power supply disturbances caused by momentary on / off switching. The delay circuit can be a conventional hardware delay device such as an RC charge / discharge delay circuit or a timing delay chip. Taking an RC charge / discharge delay circuit as an example, it can rely on the charging / discharging sustaining characteristics of the buffer capacitor to achieve a smooth transition of the power supply level, reserving a buffer timing for the switching between the old and new power modules.
[0044] The solution in this embodiment introduces a delay circuit to perform timing control and level buffering for the power switching process, thereby achieving a smooth transition and seamless switching between the priority power supply module and the candidate power supply module. This effectively avoids abnormal situations such as voltage drops and power supply disconnections that occur during the switching process, ensuring that the electronic device has continuous power supply and stable and reliable operation during the power switching process.
[0045] In another embodiment of this disclosure, the first power module and the second power module are determined as target power modules based on the power comparison results. Specifically, this can be achieved using the following technical means: if the power comparison results indicate that the power of the first power module and the second power module are the same, the first power module and the second power module are determined as target power modules; if the power comparison results indicate that the power of the first power module and the second power module are different, the first power module or the second power module is discharged until the power of the first power module and the second power module are the same; the first power module and the second power module after the discharge treatment are determined as target power modules.
[0046] When the specifications of the two power modules are identical: if the power comparison result shows that the remaining power of the first power module and the second power module are the same, the two power modules can be directly connected in parallel for output, and simultaneously set as the target power module to provide unified power supply to the first and second functional modules. If the power comparison result shows that the remaining power of the two power modules are different, the power module with the higher remaining power will be given priority for moderate equalization discharge to gradually equalize the power difference between the two until the remaining power of the first power module and the second power module are the same. Then, the two power modules after power equalization will be connected in parallel to work together as the target power module, synchronously providing power output to the first and second functional modules.
[0047] In this embodiment, when the power levels of the two power supply modules are uneven, the power supply module with the higher power level is discharged to bring the power levels of both modules back to a uniform level before they are connected in parallel for synchronous power supply. This avoids the problems of inconsistent battery capacity, internal resistance, and voltage caused by differences in separate operation modes. It can effectively suppress internal circulating current and heat loss after the batteries are connected in parallel, improve the actual usable capacity of the battery, slow down cell aging and loss, extend battery life, and avoid the safety hazards of overheating and damage.
[0048] In another embodiment of this disclosure, the method further includes: in response to the electronic device operating mode being a second operating mode, supplying power to the first functional module through a first power module and supplying power to the second functional module through a second power module; wherein, when the electronic device is operating in the second operating mode, the first functional module and the second functional module of the electronic device are in a physically separated state.
[0049] When the electronic device is detected to have entered the second operating mode, also known as the separation mode, the first functional module and the second functional module are physically separated, and the modules communicate with each other via a wireless link. At this time, the two functional modules operate independently, each relying on its own configured power supply module to achieve independent power supply and without interference.
[0050] Meanwhile, both the first and second functional modules are equipped with rechargeable and discharging interfaces. When an external power supply device is connected, the first and second power modules can be charged and replenished independently. When an external electrical load is connected, the first and second power modules can also discharge in reverse to provide power support for the external electrical device.
[0051] A second aspect of this disclosure is to provide an electronic device, such as... Figure 2As shown, the electronic device includes a first functional module, a second functional module, and a data processing module (not shown in the figure). The first functional module contains a first power supply module, and the second functional module contains a second power supply module. The connection state of the first and second functional modules differs depending on the operating mode of the electronic device. The data processing module is used to obtain the operating mode of the electronic device. The data processing module is also used to obtain the specification parameters and power parameters of the first and second power supply modules respectively in response to the first operating mode of the electronic device. When the operating mode of the electronic device is the first operating mode, the first and second functional modules of the electronic device are physically connected. The data processing module is also used to determine at least one target power supply module from the first and second power supply modules based on the specification parameters and power parameters. The target power supply module is used to supply power to the first and second functional modules.
[0052] In another possible embodiment of this disclosure, such as Figure 3 As shown, the first functional module also includes a wireless module, an interactive power module, a first power management module, a first charging / discharging interface, and a first USB interface. The first power module supplies power to the interactive power module and the wireless module through the first power management module; the first power management module is connected to both the first USB interface and the first charging / discharging interface, both of which can be used as charging / discharging interfaces. When an external power source is connected, it can charge the first power module, and when an external power device is connected, it can discharge power to the external device.
[0053] The second functional module also includes a storage-based power module (including a wireless module), a second power management module, a second charge / discharge interface, and a second USB interface. The second power module supplies power to the storage-based power module and the wireless module through the second power management module. The second power management module is connected to both the second USB interface and the second charge / discharge interface, both of which can be used as charge / discharge interfaces. When an external power source is connected, it can charge the second power module; when an external device is connected, it can discharge power to the external device. In the first operating mode, the first and second functional modules are connected through the first and second charge / discharge interfaces. In the second operating mode, the first and second functional modules are connected through the wireless module.
[0054] A third aspect of this disclosure provides a power control device, such as... Figure 4 As shown, the device includes: The mode acquisition module 401 is used to acquire the operating mode of the electronic device; wherein the electronic device includes a first functional module and a second functional module, and the connection state of the first functional module and the second functional module is different when the operating mode of the electronic device is different; the first functional module is provided with a first power supply module, and the second functional module is provided with a second power supply module. The data acquisition module 402 is used to acquire the specification parameters and power parameters of the first power module and the second power module respectively in response to the electronic device's operating mode being the first operating mode; wherein, when the electronic device's operating mode is the first operating mode, the first functional module and the second functional module of the electronic device are in a physically connected state. The determination module 403 is used to determine at least one target power module from the first power module and the second power module based on specification parameters and power parameters; and to supply power to the first functional module and the second functional module through the target power module.
[0055] In another embodiment of this disclosure, the determination module 403 is further configured to compare the specification parameters of the first power module and the second power module to obtain a specification comparison result; compare the power parameters of the first power module and the second power module to obtain a power comparison result; and determine at least one target power module from the first power module and the second power module based on the specification comparison result and the power comparison result.
[0056] In another embodiment of this disclosure, the determination module 403 is further configured to: if the specification comparison result indicates that the specifications of the first power module and the second power module meet the first difference condition, determine the first power module or the second power module as the target power module based on the power comparison result; if the specification comparison result indicates that the specifications of the first power module and the second power module meet the second difference condition, determine the first power module as the target power module based on the power comparison result, or determine the first power module and the second power module as the target power module; if the specification comparison result indicates that the specifications of the first power module and the second power module are consistent, determine the first power module and the second power module as the target power module based on the power comparison result.
[0057] In another embodiment of this disclosure, the determination module 403 is further configured to determine the module with higher power consumption between the first power module and the second power module as the priority power supply module and the module with lower power consumption as the candidate power supply module based on the power consumption comparison result; determine the priority power supply module as the target power supply module; and when the power consumption difference between the priority power supply module and the candidate power supply module reaches a preset threshold, switch the target power supply module from the priority power supply module to the candidate power supply module.
[0058] In another embodiment of this disclosure, the determination module 403 is further configured to: if the power comparison result indicates that the power of the first power module and the second power module are the same, determine the first power module and the second power module as target power modules; if the power comparison result indicates that the power of the first power module and the second power module are different, perform a discharge process on the first power module or the second power module until the power of the first power module and the second power module are the same; and determine the first power module and the second power module after the discharge process as target power modules.
[0059] According to embodiments of this disclosure, this disclosure also provides an electronic device and a readable storage medium.
[0060] Figure 5 A schematic block diagram of an example electronic device 800 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0061] like Figure 5 As shown, device 800 includes a computing unit 801, which can perform various appropriate actions and processes based on a computer program stored in read-only memory (ROM) 802 or a computer program loaded from storage unit 808 into random access memory (RAM) 803. RAM 803 may also store various programs and data required for the operation of device 800. The computing unit 801, ROM 802, and RAM 803 are interconnected via bus 804. Input / output (I / O) interface 805 is also connected to bus 804.
[0062] Multiple components in device 800 are connected to I / O interface 805, including: input unit 806, such as keyboard, mouse, etc.; output unit 807, such as various types of monitors, speakers, etc.; storage unit 808, such as disk, optical disk, etc.; and communication unit 809, such as network card, modem, wireless transceiver, etc. Communication unit 809 allows device 800 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0063] The computing unit 801 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 801 performs the various methods and processes described above, such as power control methods. For example, in some embodiments, the power control method may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on device 800 via ROM 802 and / or communication unit 809. When the computer program is loaded into RAM 803 and executed by the computing unit 801, one or more steps of the power control method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform power control methods by any other suitable means (e.g., by means of firmware).
[0064] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transferring data and instructions to the storage system, the at least one input device, and the at least one output device.
[0065] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0066] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0067] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0068] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.
[0069] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact via communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other. Servers can be cloud servers, servers in distributed systems, or servers incorporating blockchain technology.
[0070] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.
[0071] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this disclosure, "a plurality of" means two or more, unless otherwise explicitly specified.
[0072] The above description is merely a specific embodiment of this disclosure, but the scope of protection of this disclosure is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this disclosure should be included within the scope of protection of this disclosure. Therefore, the scope of protection of this disclosure should be determined by the scope of the claims.
Claims
1. A power supply control method, characterized in that, The method includes: The electronic device is configured to operate in different modes. The electronic device includes a first functional module and a second functional module. The connection state of the first functional module and the second functional module is different when the operating modes of the electronic device are different. The first functional module is provided with a first power module, and the second functional module is provided with a second power module. In response to the electronic device operating in a first operating mode, the specification parameters and power parameters of the first power module and the second power module are acquired respectively; wherein, when the electronic device is operating in the first operating mode, the first functional module and the second functional module of the electronic device are in a physically connected state. Based on the specifications and the power parameters, at least one target power module is determined from the first power module and the second power module. The target power module supplies power to the first functional module and the second functional module.
2. The method according to claim 1, characterized in that, The step of determining at least one target power module from the first power module and the second power module based on the specification parameters and the power parameters includes: The specifications of the first power module and the second power module are compared to obtain the specification comparison results. The power parameters of the first power module and the second power module are compared to obtain the power comparison results; Based on the specification comparison results and the power comparison results, at least one target power module is determined from the first power module and the second power module.
3. The method according to claim 2, characterized in that, The step of determining at least one target power module from the first power module and the second power module based on the specification comparison result and the power comparison result includes: If the specification comparison result indicates that the specifications of the first power module and the second power module meet the first difference condition, the first power module or the second power module is determined as the target power module based on the power comparison result. If the specification comparison result indicates that the specifications of the first power module and the second power module meet the second difference condition, the first power module is determined as the target power module based on the power comparison result, or the first power module and the second power module are determined as the target power modules. If the specification comparison result indicates that the specifications of the first power module and the second power module are consistent, the first power module and the second power module are determined as the target power modules based on the power comparison result.
4. The method according to claim 3, characterized in that, The step of determining the first power module or the second power module as the target power module based on the power comparison results includes: Based on the power comparison results, the power module with the higher power level between the first power module and the second power module is determined as the priority power supply module, and the power module with the lower power level is determined as the candidate power supply module. The priority power supply module is identified as the target power supply module; When the power difference between the priority power supply module and the candidate power supply module reaches a preset threshold, the target power supply module is switched from the priority power supply module to the candidate power supply module.
5. The method according to claim 1, characterized in that, The method further includes: In response to the electronic device operating in the second operating mode, the first functional module is powered by the first power module, and the second functional module is powered by the second power module. When the electronic device operates in the second operating mode, the first functional module and the second functional module of the electronic device are physically separated.
6. The method according to claim 4, characterized in that, The method further includes: The target power module is switched from the priority power supply module to the candidate power supply module by using a delay circuit.
7. The method according to claim 3, characterized in that, The step of determining the first power module and the second power module as target power modules based on the power comparison results includes: If the power comparison result indicates that the power of the first power module and the second power module are the same, the first power module and the second power module are determined as the target power module. If the power comparison result indicates that the power of the first power module and the second power module are different, discharge the first power module or the second power module until the power of the first power module and the second power module are the same. The first and second power modules after discharge treatment are identified as the target power modules.
8. A power control device, characterized in that, The device includes: A mode acquisition module is used to obtain the operating mode of an electronic device; wherein the electronic device includes a first functional module and a second functional module, and the connection state of the first functional module and the second functional module is different when the operating mode of the electronic device is different; the first functional module is provided with a first power module, and the second functional module is provided with a second power module. The data acquisition module is used to acquire the specification parameters and power parameters of the first power module and the second power module respectively in response to the electronic device being in the first working mode; wherein, when the electronic device is in the first working mode, the first functional module and the second functional module of the electronic device are in a physically connected state. The determination module is used to determine at least one target power module from the first power module and the second power module based on the specification parameters and the power parameters; and to supply power to the first functional module and the second functional module through the target power module.
9. An electronic device, characterized in that, The electronic device includes a first functional module, a second functional module, and a data processing module. The first functional module is provided with a first power supply module, and the second functional module is provided with a second power supply module. The connection state of the first functional module and the second functional module is different when the electronic device operates in different modes. The data processing module is used to obtain the operating mode of the electronic device; The data processing module is further configured to, in response to the electronic device operating mode being the first operating mode, acquire the specification parameters and power parameters of the first power module and the second power module respectively; wherein, when the electronic device is operating in the first operating mode, the first functional module and the second functional module of the electronic device are in a physically connected state. The data processing module is further configured to determine at least one target power module from the first power module and the second power module based on the specification parameters and the power parameters. The target power module is used to supply power to the first functional module and the second functional module.
10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-7.
