A control method, device and electronic device
By determining the power access information in the electronic device and adjusting the power supply status according to the access situation and connection status, the problem of high power consumption in the shutdown state of the electronic device under the redundant power supply design is solved, and lower energy consumption and better user experience is achieved.
Patent Information
- Application Number
- CN202111668072.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-30
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2041-12-30
AI Technical Summary
Server systems designed with redundant power supplies consume higher power in shutdown, resulting in an increase in overall energy consumption.
By determining the power access information of the electronic device, the power supply status of the power supply is controlled to ensure that in the shutdown state, not all power supplies are in the standby power consumption state, but the power supply status of the power supply is adjusted according to the access situation and connection state.
It effectively reduces the power consumption of electronic devices in the shutdown state, avoids high energy consumption in the standby state of redundant power supplies, and improves user experience.
Smart Images

Figure CN114327024B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of power control, and particularly to a control method, device, and electronic device. Background Art
[0002] Currently, most server systems adopt a redundant power supply design method, that is, two or more power supplies in a system work in parallel. This can not only improve the reliability of power supply to the system, but also provide higher power through the combination of multiple power supplies.
[0003] However, the use of redundant power supplies results in a relatively high overall energy consumption of the system. Summary of the Invention
[0004] This application provides a control method, device, and electronic device, and the specific solutions are as follows:
[0005] A control method includes:
[0006] In response to obtaining a control instruction to control the electronic device to enter the shutdown state, determine the power supply access information of the electronic device;
[0007] Control the power supply state of the first power supply of the electronic device based at least on the power supply access information;
[0008] Wherein, the electronic device is only connected to the first power supply, or the electronic device is connected to the first power supply and other power supplies different from the first power supply.
[0009] Further, the controlling the power supply state of the first power supply of the electronic device based at least on the power supply access information includes:
[0010] Control the power supply state of the first power supply of the electronic device based on the access quantity and access position of the power supply;
[0011] Or,
[0012] Obtain the connection state between the electronic device and its associated device, and control the power supply state of the first power supply of the electronic device based on the connection state and the power supply access information.
[0013] Further, the controlling the power supply state of the first power supply of the electronic device based at least on the power supply access information includes:
[0014] If the power supply access information indicates that the electronic device is only connected to the first power supply, control the first power supply to switch from the first power supply state to the second power supply state, where the power consumption of the power supply in the first power supply state is greater than its power consumption in the second power supply state;
[0015] Or,
[0016] If the power supply access information indicates that the electronic device is connected to the first power supply and other power supplies, control the first power supply to switch from the first power supply state to the second power supply state, and control other power supplies other than the first power supply to switch from the first power supply state to the third power supply state, where the power consumption of the power supply in the first power supply state is greater than its power consumption in the second power supply state, and the power consumption of the power supply in the second power supply state is greater than its power consumption in the third power supply state;
[0017] Or,
[0018] If the power supply access information indicates that the electronic device is connected to the first power supply and other power supplies, control the first power supply to switch from the first power supply state to the third power supply state, and control the second power supply among the other power supplies to switch from the first power supply state to the second power supply state, where the power consumption of the power supply in the first power supply state is greater than its power consumption in the second power supply state, and the power consumption of the power supply in the second state is greater than its power consumption in the third state.
[0019] Further, it further includes:
[0020] Obtain the historical power supply information and / or configuration information of each power supply connected to the electronic device, and determine the second power supply from the other power supplies based on the historical power supply information and / or configuration information.
[0021] Further, the controlling the power supply state of the first power supply of the electronic device based on the connection state and the power supply access information includes:
[0022] If the electronic device is in the first connection state with its associated device and the power supply access information indicates that the electronic device is connected to the first power supply and other power supplies, control the first power supply to switch from the first power supply state to the second power supply state, and control other power supplies other than the first power supply to switch from the first power supply state to the third power supply state, where the power consumption of the power supply in the first power supply state is greater than its power consumption in the second power supply state, and the power consumption of the power supply in the second power supply state is greater than its power consumption in the third power supply state;
[0023] Or,
[0024] If the electronic device and its associated device are in the first connection state, and the power supply access information indicates that the electronic device is connected to the first power supply and other power supplies, control the third power supply among the first power supply and the other power supplies to switch from the first power supply state to the second power supply state, and control the other power supplies except the first power supply and the third power supply to switch from the first power supply state to the third power supply state, where the power consumption of the power supply in the first power supply state is greater than its power consumption in the second power supply state, and the power consumption of the power supply in the second power supply state is greater than its power consumption in the third power supply state.
[0025] Further, determining the power supply access information of the electronic device includes:
[0026] Determine the level signal triggered by the target detection pin. The target detection pin is set in the power supply slot of the main board of the electronic device, and determine the power supply access information of the electronic device based on the level signal. The power supply access information at least includes the number of power supplies accessed.
[0027] Further, controlling the power supply state of the first power supply of the electronic device includes:
[0028] Send a control signal to the control chip of each power supply through the main board of the electronic device, so as to control the first power supply or the power supply states of the first power supply and other power supplies different from the first power supply based on the control signal.
[0029] Further, it further includes:
[0030] In response to obtaining a control instruction for the electronic device to switch from the shutdown state to the target operating state, control each power supply of the electronic device to be in the second power supply state.
[0031] A control device includes:
[0032] A determination unit, configured to determine the power supply access information of the electronic device in response to obtaining a control instruction for controlling the electronic device to enter the shutdown state;
[0033] A control unit, configured to control the power supply state of the first power supply of the electronic device at least based on the power supply access information;
[0034] Wherein, the electronic device is only connected to the first power supply, or the electronic device is connected to the first power supply and other power supplies different from the first power supply.
[0035] An electronic device includes:
[0036] A power supply, configured to supply power to the electronic device;
[0037] A processor, configured to determine power supply access information of the electronic device in response to obtaining a control instruction for controlling the electronic device to enter a shutdown state, and control a power supply state of a first power supply of the electronic device at least based on the power supply access information;
[0038] A memory, configured to store a program for the processor to execute the above processing procedure;
[0039] Wherein, the electronic device is only connected to the first power supply, or, the electronic device is connected to the first power supply and another power supply different from the first power supply.
[0040] As can be seen from the above technical solutions, the control method, device and electronic device disclosed in this application determine the power supply access information of the electronic device in response to obtaining a control instruction for controlling the electronic device to enter a shutdown state, and control the power supply state of the first power supply of the electronic device at least based on the power supply access information. Among them, the electronic device is only connected to the first power supply, or, the electronic device is connected to the first power supply and another power supply different from the first power supply. In this solution, when obtaining a control instruction for controlling the electronic device to shut down, it does not directly control the electronic device to shut down based on this control instruction. Instead, after obtaining this control instruction, it first obtains the power supply access information of the electronic device, and controls the power supply state of the power supply in the electronic device based on this power supply access information, realizing that when the electronic device shuts down, the power supply state of the power supply in the electronic device is not the state where each power supply has standby power consumption as the default setting of the device. Instead, the state of the power supply in the electronic device is adjustable, improving the user experience. At the same time, it avoids the situation where all power supplies have standby power consumption, and avoids the problem of high power consumption in the shutdown state of the electronic device. Description of the Drawings
[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior 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 also be obtained based on these drawings.
[0042] Figure 1 It is a flowchart of a control method disclosed in an embodiment of the present application;
[0043] Figure 2 It is a flowchart of a control method disclosed in an embodiment of the present application;
[0044] Figure 3 It is a flowchart of a control method disclosed in an embodiment of the present application;
[0045] Figure 4 It is a flowchart of a control method disclosed in an embodiment of the present application;
[0046] Figure 5 A schematic diagram of the connection between a main board and a power supply disclosed in an embodiment of the present application;
[0047] Figure 6 A schematic circuit diagram of power supply logic control disclosed in an embodiment of the present application;
[0048] Figure 7 A control schematic diagram of a power supply control chip disclosed in an embodiment of the present application;
[0049] Figure 8 A schematic structural diagram of a control device disclosed in an embodiment of the present application;
[0050] Figure 9 A schematic structural diagram of an electronic device disclosed in an embodiment of the present application. Detailed implementation manners
[0051] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.
[0052] The present application discloses a control method, and its flowchart is as Figure 1 shown, including:
[0053] Step S11: In response to obtaining a control instruction for controlling the electronic device to enter the shutdown state, determine the power supply access information of the electronic device;
[0054] Step S12: Control the power supply state of the first power supply of the electronic device at least based on the power supply access information, where the electronic device is only connected to the first power supply, or the electronic device is connected to the first power supply and other power supplies different from the first power supply.
[0055] When an electronic device, such as a laptop, a desktop computer, an all-in-one computer, a workstation, or a server system has redundant power supplies, the reliability of power supply to the electronic device or the server system can be improved. However, when the electronic device or the server system is in the shutdown state, each power supply connected to the electronic device or the server system is in the standby power supply on state, that is, standby power supply is provided to the electronic device or the server system through the power supply, so that each power supply has standby power consumption, which will result in a relatively high power consumption of the electronic device or the server system even in the shutdown state.
[0056] In this solution, when a control instruction for controlling an electronic device or a server system to enter the shutdown state is obtained, the power supply state of the power supply accessed by the electronic device or the server system is controlled based on the power access information of the electronic device or the server system.
[0057] Among them, the power access information is the number of power supplies accessed by the electronic device. The electronic device can access one power supply, or can access two or more power supplies.
[0058] When the number of power supplies accessed by the electronic device is different, in the case where the electronic device is in the shutdown state, the states of the accessed power supplies may be different, resulting in different power supplies for standby power supply, or different numbers of power supplies for standby power supply.
[0059] If the electronic device accesses only one power supply, when a control instruction for the electronic device to enter the shutdown state is obtained, control this power supply to be in the second power supply state, that is, the standby power supply state, to ensure that there is a power supply that can provide standby power when the electronic device is in the shutdown state.
[0060] Controlling the power supply to be in the second power supply state is actually controlling the only one power supply in the electronic device to switch from the first power supply state to the second power supply state. The power consumption of the electronic device when the power supply is in the first power supply state is greater than its power consumption in the second power supply state. When the power supply is in the first power supply state, the electronic device may be in a normal operation state, or a standby state, or a sleep state, etc.
[0061] If the electronic device accesses at least two power supplies, when a control instruction for the electronic device to enter the shutdown state is obtained, select one power supply from the at least two power supplies, determine it as the first power supply, and only control the first power supply to switch from the first power supply state to the second power supply state. For the other power supplies in the power supplies of the electronic device except the first power supply, they are switched from the first power supply state to the third power supply state, where the power consumption of the power supply in the third power supply state is less than its power consumption in the second power supply state.
[0062] That is, when the electronic device has multiple accessed power supplies, it is necessary to select one from these multiple power supplies so that the selected first power supply maintains the standby power supply state, while the other power supplies are directly switched to the off state, to ensure that only one power supply provides standby power for the electronic device, to ensure the energy consumption of the electronic device in the shutdown state, and to reduce the energy consumption caused by all power supplies being in the standby power supply state when the electronic device is in the shutdown state.
[0063] That is, no matter how many power supplies the electronic device accesses, at least one power supply of the electronic device is in the second power supply state.
[0064] Among them, the power supply state refers to what power supply state the power source is in, and can provide the electric energy when controlling what power consumption state the electronic device is in. For example, when the power source is in the first power supply state, it can support the electronic device to be in the normal operation state or other operation states; when the power source is in the second power supply state, it can support the energy consumption of the electronic device when it is in the shutdown state; when the power source is in the third power supply state, it is the state where the power source is completely turned off.
[0065] When this solution obtains a control instruction to control the electronic device to enter the shutdown state, it can obtain the power supply access information, and thereby adjust the power supply state of the power source of the electronic device, reducing the energy consumption when the electronic device is in the power supply state, and there is no need to control all power sources to provide standby power when the electronic device is in the shutdown state.
[0066] It should be noted that the first power source in this embodiment can be any one of all the power sources connected to the electronic device. In this embodiment, a certain power source in all the units connected to the electronic device, such as the first power source, can be controlled separately, or at least several power sources in all the units connected to the electronic device can be controlled simultaneously.
[0067] The control method disclosed in this embodiment, in response to obtaining a control instruction to control the electronic device to enter the shutdown state, determines the power supply access information of the electronic device, and controls the power supply state of the first power source of the electronic device at least based on the power supply access information, where the electronic device is only connected to the first power source, or the electronic device is connected to the first power source and other power sources different from the first power source. When this solution obtains a control instruction to control the electronic device to shut down, it does not directly control the electronic device to shut down based on this control instruction. Instead, after obtaining this control instruction, it first obtains the power supply access information of the electronic device, and controls the power supply state of the power source in the electronic device based on this power supply access information, realizing that when the electronic device shuts down, the power supply state of the power source in the electronic device is not the state where each power source has standby power consumption by default, but the state of the power source in the electronic device is adjustable, improving the user experience. At the same time, it avoids the situation where all power sources have standby power consumption and the problem of high power consumption when the electronic device is in the shutdown state.
[0068] This embodiment discloses a control method, and its flowchart is as Figure 2 shown, including:
[0069] Step S21, in response to obtaining a control instruction to control the electronic device to enter the shutdown state, determine the power supply access information of the electronic device;
[0070] Step S22: Control the power supply state of the first power supply of the electronic device based on the number of power supplies accessed and the access positions in the power supply access information, where the electronic device is only connected to the first power supply, or the electronic device is connected to the first power supply and other power supplies different from the first power supply.
[0071] The power supply access information not only includes which power supplies are accessed in the electronic device, but also includes the number of power supplies accessed in the electronic device and the access positions. When the number and positions of the accessed power supplies are different, the control of the power supply state of the power supply when the electronic device is in the shutdown state will be different.
[0072] Specifically, when one power supply is accessed, when the electronic device is in the shutdown state, this power supply needs to be in the second power supply state of standby power supply; when multiple power supplies are accessed, when the electronic device is in the shutdown state, only one power supply needs to be selected to be in the second power supply state of standby power supply;
[0073] Or, when multiple power supplies are accessed, it is also possible to, under the condition of meeting the energy consumption requirements, select different numbers of power supplies to be in the second power supply state of standby power supply based on the different numbers of accessed power supplies. Specifically, the number of power supplies in the second power supply state can be controlled to have a certain proportional relationship with the number of power supplies accessed by the electronic device. For example, if there are only 2 power supplies accessed by the electronic device itself, it indicates that the power consumption of the electronic device itself is not high. Then, when the electronic device is shut down, the power required for standby power supply is not high either, and only 1 power supply needs to be controlled to be in the second power supply state; if the number of power supplies accessed by the electronic device itself is relatively large, such as 10, it indicates that the power consumption of the electronic device itself is relatively high. Then, when the electronic device is shut down, the power required for its standby power supply may also be relatively high. Therefore, 2 or 3 or more power supplies can be controlled to be in the second power supply state.
[0074] Regarding the access position of the power supply, it can be as follows: There are multiple power supply slots provided on the main board of the electronic device, and a detection pin is provided in each power supply slot, and the power supply is grounded. When there is no power supply accessed in the power supply slot, the detection pin of the power supply slot is at a high level; when the power supply is connected to the electronic device and the power supply is inserted into one of the power supply slots of the electronic device, the detection pin of this power supply slot is pulled low. Therefore, through the change in the level of the detection pin in the power supply slot, it can be determined whether there is a power supply accessed in this power supply slot. When it is detected that the level of the detection pin in a certain power supply slot changes, it can be determined that a power supply is inserted into this power supply slot, and thus the access position of the power supply can be determined, and its access position is related to the identifier of this power supply slot.
[0075] The main board of the electronic device has multiple power slots, which can respectively insert multiple power supplies, so that multiple power supplies can be simultaneously used as the access power supply of the electronic device. When multiple power supplies are simultaneously used as the access power supply of the electronic device, if it is necessary to control only one of the multiple power supplies when obtaining the control instruction for the electronic device to enter the shutdown state, it is necessary to determine the position information of each access power supply and implement separate control of the power supplies based on the position information.
[0076] Specifically, determine the level signal triggered by the target detection pin. The target detection pin is set in the power slot of the main board of the electronic device, and based on the level signal, determine the power access information of the electronic device. The power access information at least includes the number of power supplies accessed.
[0077] Since the target detection pin is set in the power slot of the main board of the electronic device, when the pin of the power supply is inserted into the power slot of the main board, the target detection pin in the power slot is triggered, and its level signal is adjusted. Based on the change of the level signal, it can be determined that there is a power supply inserted into the power slot.
[0078] For example: when there is no pin of the power supply inserted into the power slot of the main board, the internal target detection pin is at a high level. Then, when there is a pin of the power supply inserted into the power slot, the target detection pin in the power slot is adjusted to a low level. Based on the fact that the level of the target detection pin in the power slot is low, the electronic device can determine that there is a power supply inserted into the power slot.
[0079] Since the number of power slots on the main board of the electronic device, as well as information such as the identification information and level status of each power slot, are known to the electronic device, when the level status of the target detection pin of one or several power slots changes, the electronic device can directly determine information such as the number and position of the access power supplies based on this change.
[0080] Furthermore, the power access information can also include: the connection status between the electronic device and its associated devices. Specifically, obtain the connection status between the electronic device and its associated devices, and control the power supply status of the first power supply of the electronic device based on the connection status and the power access information.
[0081] The associated devices of the electronic device are devices connected to the electronic device by wired or wireless means, such as: mouse, external keyboard, external speaker, external power receiving devices (such as external monitor, external hub, power bank, etc.). When the electronic device has connected associated devices, when the electronic device is in the shutdown state, it is necessary to determine whether to supply power to the associated devices. When the electronic device is in the shutdown state, the power supply to the associated devices can be: maintaining the normal operating state of the associated devices, or providing standby power required to maintain the standby power consumption of the associated devices in the shutdown state.
[0082] If no power supply needs to be provided for the associated device when the electronic device is in the shutdown state, when obtaining a control instruction to control the electronic device to enter the shutdown state, when controlling the power supply in the second power supply state, there is no need to consider the associated device of the electronic device, and only one of the power supplies can be controlled. For example, the first unit is in the second power supply state, and other power supplies are in the fully off state;
[0083] If power supply needs to be provided for the associated device when the electronic device is in the shutdown state, and if it is necessary to keep the associated device running, a separate power supply is required to supply power to the associated device. Then, one power supply can be selected from the power supplies accessed by the electronic device to be only used for supplying power to the associated device. The selected power supply can be in the second power supply state or the first power supply state, and the power supply state of the selected power supply is determined by the power receiving requirement of the associated device; and another power supply is controlled to be in the second power supply state to ensure the power consumption when the electronic device is in the shutdown state;
[0084] If power supply needs to be provided for the associated device when the electronic device is in the shutdown state, and if the associated device will switch to the shutdown state as the electronic device is in the shutdown state, the electronic device only needs to have one power supply in the second power supply state, and based on ensuring the power consumption of the electronic device in the shutdown state through the power supply in the second power supply state, it can ensure the power consumption of the associated device in the shutdown state.
[0085] Specifically, if the electronic device and its associated device are in the first connection state, and the power supply access information indicates that the electronic device is connected to a first power supply and other power supplies, control the first power supply to switch from the first power supply state to the second power supply state, and control the other power supplies except the first power supply to switch from the first power supply state to the third power supply state. Among them, the power consumption of the power supply in the first power supply state is greater than its power consumption in the second power supply state, and the power consumption of the power supply in the second power supply state is greater than its power consumption in the third power supply state;
[0086] That is, when the electronic device and the associated device are in the normal connection state, that is, the first connection state, when there are multiple power supplies connected to the electronic device, the first power supply provides standby power supply for the electronic device and the associated device in the shutdown state, while other power supplies are in the fully off state.
[0087] Furthermore, it can also be: when the first power supply simultaneously provides standby power supply for the electronic device and the associated device, the first power supply can be controlled to be in the fourth power supply state. The power consumption of the power supply in the fourth power supply state is greater than the power consumption of the power supply in the second power supply state. At the same time, the power consumption of the power supply in the fourth power supply state is less than the power consumption of the power supply in the first power supply state.
[0088] That is, when only one electronic device is provided with standby power supply by one power source, the power consumption required is relatively low. When at least two devices are provided with standby power supply by one power source, the power consumption required will increase, but it does not reach the power consumption when the power source is in the normal power supply state.
[0089] Or, if the electronic device and its associated device are in the first connection state, and the power supply access information indicates that the electronic device is connected to a first power source and other power sources, control the third power source among the first power source and other power sources to switch from the first power supply state to the second power supply state, and control the other power sources except the first power source and the third power source to switch from the first power supply state to the third power supply state, where the power consumption of the power source in the first power supply state is greater than its power consumption in the second power supply state, and the power consumption of the power source in the second power supply state is greater than its power consumption in the third power supply state.
[0090] That is, when the electronic device and the associated device are in the normal connection state, and when the electronic device is connected to multiple power sources, two power sources are selected to provide standby power supply for the electronic device and the associated device in the shutdown state, and the other power sources are in the fully off state. The two selected power sources can provide standby power supply for the electronic device and the associated device respectively. For example, the first power source provides standby power supply for the electronic device, and the third power source provides standby power supply for the associated device; or, it can also provide standby power supply for the electronic device and the associated device through two power sources at the same time. For example, the first power source and the third power source provide standby power supply for the electronic device at the same time, and at the same time, the first power source and the third power source provide standby power supply for the associated device at the same time.
[0091] The control method disclosed in this embodiment, in response to obtaining a control instruction for controlling the electronic device to enter the shutdown state, determines the power supply access information of the electronic device, and controls at least the power supply state of the first power source of the electronic device based on the power supply access information, where the electronic device is only connected to the first power source, or the electronic device is connected to the first power source and other power sources different from the first power source. In this solution, when obtaining the control instruction for controlling the electronic device to shut down, it does not directly control the electronic device to shut down based on this control instruction. Instead, after obtaining this control instruction, it first obtains the power supply access information of the electronic device, and controls the power supply state of the power source in the electronic device based on this power supply access information, realizing that when the electronic device shuts down, the power supply state of the power source in the electronic device is not the state where each power source has standby power consumption by default, but the state of the power source in the electronic device is adjustable, improving the user experience. At the same time, it avoids the situation where all power sources have standby power consumption, and avoids the problem of high power consumption in the shutdown state of the electronic device.
[0092] This embodiment discloses a control method, and its flowchart is as Figure 3 shown, including:
[0093] Step S31: In response to obtaining a control instruction to control the electronic device to enter the shutdown state, determine the power supply access information of the electronic device, where the electronic device is connected to a first power supply and other power supplies different from the first power supply;
[0094] Step S32: Control the first power supply to switch from the first power supply state to the second power supply state, and control other power supplies except the first power supply to switch from the first power supply state to the third power supply state. The power consumption of the power supply in the first power supply state is greater than its power consumption in the second power supply state, and the power consumption of the power supply in the second power supply state is greater than its power consumption in the third power supply state.
[0095] When there are multiple power supplies connected to the electronic device, one of the power supplies can be selected as the power supply in the second power supply state. For example, the first power supply, that is, control only the first power supply among all the power supplies connected to the electronic device to be in the second power supply state, while other power supplies are switched to the third power supply state.
[0096] When the electronic device obtains a control instruction to control the electronic device to enter the shutdown state, the electronic device is in a non-shutdown state, such as: normal operation state, standby state, etc. No matter which non-shutdown state the electronic device is in, the power supplies connected to the electronic device are all in the normal operation state, that is, in the first power supply state. In the first power supply state, the power consumption of the power supply is the highest to ensure sufficient electrical energy is provided for the electronic device.
[0097] When the power supply is in the third power supply state, it is in a completely off state, and the power consumption of the power supply is the lowest. At this time, no electrical energy needs to be provided for any device.
[0098] The second power supply state is a power supply state between the first power supply state and the third power supply state. In this power supply state, even if the connected electronic device is in the shutdown state, the power supply needs to provide a certain standby power supply for it, that is, the power supply is actually in the state where the standby power is started. In this state, there is a certain power consumption, but the power consumption will be significantly lower than the power consumption of the power supply in the first power supply state.
[0099] When obtaining a control instruction to control the electronic device to enter the shutdown state at a certain time, control the first power supply to be in the second power supply state, and other power supplies except the first power supply among all the power supplies connected to the electronic device are switched to the third power supply state, then the first power supply provides standby power supply for the electronic device in the shutdown state;
[0100] After the electronic device restarts, if it receives a control instruction to control the electronic device to enter the shutdown state again, it will control a second power source different from the first power source to be in a second power supply state, and all other power sources except the second power source connected to the electronic device will be switched to a third power supply state, that is, the second power source provides standby power supply for the electronic device in the shutdown state.
[0101] Among them, all the power sources connected to the electronic device except the second power source at least include the first power source. When shutting down this time, it is no longer the first power source that is in the second power supply state, but the second power source that is changed to be in the second power supply state. That is, in the continuous shutdown state of the electronic device, it will not control the same power source connected to the electronic device to always be in the second power supply state, but will switch the power source in the second power supply state. For example, when shutting down at a certain time, the first power source is in the second power supply state, then when shutting down the next time, the second power source can be controlled to be in the second power supply state, and when shutting down the next time, the third power source can be controlled to be in the second power supply state, so as to improve the flexibility of power source control and ensure the service life of the power source.
[0102] Specifically, after the electronic device shuts down and restarts, the power source in the second power supply state when the electronic device is in the shutdown state next time can be determined, so as to ensure that when receiving a control instruction to control the electronic device to enter the shutdown state, the power supply state can be directly adjusted based on the power source determined in the startup state, and the processing efficiency of the electronic device is ensured.
[0103] When determining the power source in the second power supply state when the electronic device is in the shutdown state next time in the startup state, it can be determined randomly, or determined based on the information of the power source itself. For example, determine which power source among all the power sources connected to the electronic device has the most remaining electric energy, and determine it as the power source in the second power supply state, or which power source has the shortest usage time, and determine it as the power source in the second power supply state. Or, a power source status table can be preset, and this status table is used to represent which power source is in the second power supply state when shutting down for the nth time, that is, determined based on the preset setting and perform polling based on this power source status table, so as to avoid reducing the service life of one or several power sources caused by only controlling one or several power sources to be in the second power supply state every time the electronic device shuts down.
[0104] Specifically, it can be: obtain the historical power supply information and / or configuration information of each power source connected to the electronic device, and determine the second power source from all the power sources connected to the electronic device except the first power source based on the historical power supply information and / or configuration information.
[0105] Among them, the configuration information can be used to configure the standby power supply requirements of the electronic device when it is in the shutdown state, so as to select a power supply that matches the standby power supply requirements. Due to the different resource information of the power supply itself, different power supplies can be selected when there are different configuration information. For example, when the configuration information indicates that the electronic device can be powered off this time through a power supply with an electric energy less than a first preset value, a power supply with an electric energy less than the first preset value can be selected from the power supplies connected to the electronic device, and its power supply state is switched to a second power supply state; when the configuration information indicates that the electronic device can be powered off this time through a power supply with a power supply capacity greater than a second preset value, a power supply with a power supply capacity greater than the second preset value can be selected from the power supplies connected to the power supply, and its power supply state is switched to a second power supply state.
[0106] The historical power supply information is the power supply state of each power supply when the electronic device is in the shutdown state in the previous preset number of times, or, within a preset duration before obtaining the shutdown control instruction this time, the power supply state of each power supply when the electronic device is in the shutdown state.
[0107] For example, taking the preset number of times as an example, if the preset number of times is 3 times, then in the 3 shutdown states before obtaining the control instruction for controlling the electronic device to enter the shutdown state this time, determine the power supply state of each power supply. In these 3 shutdown states of the electronic device, in chronological order, when the electronic device shuts down for the first time, the first power supply is in the second power supply state, and the other power supplies are in the third power supply state; when the electronic device shuts down for the second time, the second power supply is in the second power supply state, and the other power supplies are in the third power supply state; when the electronic device shuts down for the third time, the first power supply is in the second power supply state, and the other power supplies are in the third power supply state. Then, when the electronic device shuts down this time, the second power supply can be controlled to be switched to the second power supply state, and the other power supplies are switched to the third power supply state;
[0108] Or, taking the preset duration as an example, if the preset duration is 4 days, then in the shutdown states in the 4 days before obtaining the control instruction for controlling the electronic device to enter the shutdown state this time, determine the power supply state of each power supply. The electronic device shuts down once a day in these 4 days. In chronological order, when the electronic device shuts down on the 1st day, the first power supply is in the second power supply state, and the other power supplies are in the third power supply state; when the electronic device shuts down on the 2nd day, the second power supply is in the second power supply state, and the other power supplies are in the third power supply state; when the electronic device shuts down on the 3rd day, the third power supply is in the second power supply state, and the other power supplies are in the third power supply state; when the electronic device shuts down on the 4th day, the first power supply is in the second power supply state, and the other power supplies are in the third power supply state. Then, when the electronic device shuts down this time, the second power supply can be controlled to be switched to the second power supply state, and the other power supplies are switched to the third power supply state.
[0109] The above examples are for reference only. The preset number of times can also be more, and the preset duration can also be other durations. The power states in the examples are only for illustration and are not specifically limited.
[0110] The control method disclosed in this embodiment, in response to obtaining a control instruction for controlling the electronic device to enter the shutdown state, determines the power access information of the electronic device, and controls the power supply state of the first power supply of the electronic device at least based on the power access information, where the electronic device is only connected to the first power supply, or the electronic device is connected to the first power supply and other power supplies different from the first power supply. In this solution, when obtaining a control instruction for controlling the electronic device to shut down, it does not directly control the electronic device to shut down based on this control instruction. Instead, after obtaining this control instruction, it first obtains the power access information of the electronic device and controls the power supply state of the power supplies in the electronic device based on this power access information, realizing that when the electronic device shuts down, the power supply state of the power supplies in the electronic device is not the state where each power supply with standby power consumption is the default setting of the device. Instead, the state of the power supplies in the electronic device is adjustable, improving the user experience. At the same time, it avoids the situation where all power supplies have standby power consumption and the problem of high power consumption in the shutdown state of the electronic device.
[0111] This embodiment discloses a control method, and its flowchart is as Figure 4 shown, including:
[0112] Step S41: In response to obtaining a control instruction for controlling the electronic device to enter the shutdown state, determine the power access information of the electronic device;
[0113] Step S42: At least based on the power access information, send control signals to the control chips of each power supply through the main board of the electronic device, so as to control the power supply state of the first power supply, or the first power supply and other power supplies different from the first power supply based on the control signals.
[0114] When the electronic device obtains a control instruction for controlling the electronic device to enter the shutdown state, in order to respond to this control instruction, it is necessary to adjust the power supply state of the connected power supplies of the electronic device. The adjustment of the power supply state of the connected power supplies of the electronic device can be: the electronic device determines what kind of adjustment needs to be made to the connected power supplies based on this control instruction. For example, control the first power supply to be in the second power supply state and other power supplies to be in the third power supply state; or control the second power supply to be in the second power supply state and other power supplies to be in the third power supply state, etc. After the electronic device determines the adjustment to be made to the connected power supplies, it will generate a control signal and send the control information to the control chips of each connected power supply, so that the control chips can switch the power supply state based on this control signal.
[0115] When multiple power supplies are connected to an electronic device, the control signals input to the power supplies can be different control signals for different power supplies, so that the control chips of each power supply can obtain the control signals for that power supply, facilitating the adjustment of the power supply state.
[0116] That is, a control signal for standby shutdown (STANDBY_OFF) for the power supply is added between the electronic device and each power supply. The electronic device sets this control signal to a high or low level to determine whether the power supply needs to be controlled to be in the second power supply state or the third power supply state.
[0117] For example Figure 5 As shown, STANDBY_OFF1 is set between the main board and the power supply PSU1, and STANDBY_OFF2 is set between the main board and the power supply PSU2. Here, PSU1 and PSU2 are respectively used to represent different power supplies, and PRESENT1 and PRESENT2 are used to represent the detection pins in the power supply slots on the main board. When PRESENT is LOW, it indicates that there is a power supply inserted into the power supply slot; when PRESENT is HIGH, it indicates that there is no power supply inserted into the power supply slot.
[0118] It can be: The control signal STANDBY_OFF is default set to LOW. When the level of the STANDBY_OFF control signal is LOW, the power supply corresponding to this control signal is in the second power supply state when the electronic device is shut down; when the STANDBY_OFF control signal is set to HIGH, it indicates that the power supply corresponding to this control signal needs to be switched to the third power supply state, that is, the off state, when the electronic device is shut down.
[0119] Specifically, when only one power supply is connected to the electronic device, the level of the STANDBY_OFF control signal of this power supply remains LOW, and the standby power supply of this power supply will not be turned off regardless of the state of the electronic device.
[0120] When multiple power supplies are connected to the electronic device, the system sets the level of the STANDBY_OFF control signal of one power supply to LOW, and the levels of the STANDBY_OFF control signals of other power supplies to HIGH, so as to ensure that when the electronic device is shut down, only the power supply with the level of the STANDBY_OFF control signal being LOW remains in the second power supply state and does not turn off the standby power supply, while other power supplies will be turned off when the electronic device is shut down.
[0121] In addition, each power supply controls its own power supply state, which not only needs to be implemented based on the STANDBY_OFF control signal, but also needs to refer to the power-on / off signal PSON and the deep sleep state signal DEEP_SLP. That is, each power supply controls its own power supply state based on the received power-on / off signal PSON, deep sleep state signal DEEP_SLP, and control signal STANDBY_OFF, as Figure 5 shown.
[0122] Among them, the power-on / off signal PSON is a signal generated based on the power-on / off instruction received by the electronic device. Among them, the power-on / off instruction can be an instruction obtained by pressing the power-on / off button of the electronic device, or a shutdown instruction obtained based on the operating system; DEEP_SLP is a signal indicating that the system is in the deep sleep state.
[0123] When the electronic device is in the shutdown state, that is, the S5 state, at this time, the electrical levels of both the power-on / off signal PSON and the deep sleep state signal DEEP_SLP are HIGH; when the electronic device is in the S0 / S3 / S4 state, at least one of the electrical levels of the power-on / off signal PSON and the deep sleep state signal DEEP_SLP is LOW. Among them, S0 is the normal working state of the electronic device. When the device is in the S3 state, only the memory of the electronic device needs power to maintain its normal operation. Therefore, in the S3 state, the memory and the power supply are in the operating state, while other components are in the power-off and shutdown state; when the device is in the S4 state, only the hard disk is in the powered state and can be awakened, and other components are in the power-off and shutdown state, that is, the electronic device is in the sleep state.
[0124] Only when the electronic device is in the S5 state, the electrical levels of both the power-on / off signal PSON and the deep sleep state signal DEEP_SLP of a certain power supply are HIGH, and at the same time, the electrical level signal of the control signal STANDBY_OFF is also HIGH, will the power supply be controlled to switch to the third power supply state;
[0125] If the level signal of any one of the power-on / off signal PSON, deep shutdown state signal DEEP_SLP, and control signal STANDBY_OFF of a certain power supply is LOW, the power supply will not be switched to the third power supply state, and the standby power of the power supply will be controlled to work normally. That is, when the electronic device is in the S0 / S3 / S4 state, the level signals of the power-on / off signal PSON and the deep shutdown state signal DEEP_SLP received by each power supply are at least one LOW. At this time, regardless of whether the level signal of the control signal STANDBY_OFF of the power supply is LOW or HIGH, the STANDBY_OFF state will be exited, and the power supply will be controlled to be in the normal working state of standby power, which can ensure that in the current state of the electronic device, the standby power of multiple power supplies still works normally, with redundancy and parallel functions; or, the electronic device is in the shutdown state, but the level signal of the control signal STANDBY_OFF of the power supply is LOW, which indicates that the power supply needs to maintain the normal operation of standby power in the shutdown state, that is, the power supply is in the second power supply state.
[0126] Specifically, the circuit schematic diagram of the control logic of the level signal of the standby power supply of the power supply is as Figure 6 shown, including: multiple diodes, multiple triodes, and thyristor SCR, where the triodes include: Q1, Q2, Q3, and Q4.
[0127] The power-on / off signal PSON, deep shutdown state signal DEEP_SLP, and control signal STANDBY_OFF for the current power supply of the electronic device are simultaneously input into the circuit. If any one of PSON and DEEP_SLP is LOW, it indicates that the electronic device is in the S0 / S3 / S4 state. At this time, even if STANDBY_OFF is HIGH, the triode Q1 will not conduct, and the thyristor SCR does not maintain the power supply and is also not conducting, so that the triodes Q2, Q3, and Q4 will not conduct, and the output AUX_FB of the circuit will be HIGH. Among them, the output AUX_FB of the circuit is the adjustment signal of the standby power used to control whether the power supply state of the power supply is adjusted. When the output AUX_FB of the circuit is HIGH, the standby power of the current power supply will not be turned off, and the current power supply is in the second power supply state;
[0128] If both PSON and DEEP_SLP are HIGH, and STANDBY_OFF is LOW, at this time, it indicates that the electronic device is in the shutdown state, and the standby power of the current power supply is specified to be in the on state. Then, since as long as any one of the three input signals is LOW, the triode Q1 will not conduct. Therefore, the triode Q1 does not conduct, causing the triodes Q2, Q3, and Q4 not to conduct, and the output AUX_FB of the circuit is HIGH. Then, the standby power of the current power supply will not be turned off, and the current power supply is in the second power supply state;
[0129] If PSON, DEEP_SLP, and STANDBY_OFF are all HIGH, it indicates that the electronic device is currently in the shutdown state, and the standby power of the current power supply is specified to be in the off state. Then, the triode Q1 conducts, and PSON and DEEP_SLP received at the triode Q2 will not conduct. Then, the triode Q2 conducts. Since the triode A1 is conducting, the pin of the thyristor SCR is pulled high, and the thyristor SCR conducts. Therefore, the triode Q3 conducts, the triode Q4 conducts, and the output AUX_FB of the circuit is LOW. Then, the standby power of the current power supply will be turned off, and the current power supply is in the third power supply state.
[0130] It should be noted that Figure 6 the 12Vsb_BUS in Figure 6 is the 12V standby bus voltage with multiple power supplies in parallel. As long as the standby power of one power supply is working, the 12Vsb_BUS has power. The STANDBY OFF control circuit shown in
[0131] is powered by the 12Vsb_BUS to ensure that when the standby power of this power supply itself is turned off, this part of the circuit still has power supply. Figure 6 Furthermore, the output AUX_FB adjustment signal is input into the control chip of the power supply to realize the control of the power supply state. As shown in Figure 7 is the schematic diagram of the power supply control chip. Among them, IC900 is the control chip, and this control chip can also be other chips. Here is only an example for illustration and is not used as a limitation.
[0132] If Figure 7 the input terminal AUX_FB in
[0133] Correspondingly, if a control instruction for the electronic device to switch from the shutdown state to the target operating state is obtained, in response to the obtained control instruction for the electronic device to switch from the shutdown state to the target operating state, control each power supply of the electronic device to be in the second power supply state.
[0134] Among them, the target operating state can be the S0 state, the S3 state, or the S4 state. When the electronic device is in the shutdown state, one of the power supplies connected to the electronic device is in the second power supply state, while the other power supplies are all in the third power supply state. When the electronic device switches from the shutdown state to the target operating state, the power supply states of the power supplies connected to the electronic device also need to be adjusted, that is, all power supplies are adjusted to the second power supply state and no longer maintain the third power supply state;
[0135] When the electronic device switches from the shutdown state to the target operating state, at least one of PSON and DEEP_SLP is LOW. At this time, regardless of which power supply and whether the STANDBY_OFF of the power supply is HIGH or LOW, the final input to the control chip of the power supply is HIGH, that is, the control chip of the power supply restarts, and the power supply is in the second power supply state or the first power supply state.
[0136] Alternatively, when the electronic device switches from the shutdown state to the target operating state, control the power supply states of the power supplies connected to the electronic device to be adjusted to the first power supply state, that is, the normal power supply state.
[0137] The control method disclosed in this embodiment, in response to obtaining a control instruction for controlling the electronic device to enter the shutdown state, determines the power supply access information of the electronic device, and controls at least the power supply state of the first power supply of the electronic device based on the power supply access information. Among them, the electronic device is only connected to the first power supply, or the electronic device is connected to the first power supply and other power supplies different from the first power supply. In this solution, when obtaining a control instruction for controlling the electronic device to shut down, it does not directly control the electronic device to shut down based on this control instruction. Instead, after obtaining this control instruction, it first obtains the power supply access information of the electronic device and controls the power supply states of the power supplies in the electronic device based on this power supply access information, realizing that when the electronic device shuts down, the power supply states of the power supplies in the electronic device are not the default state where each power supply has standby power consumption, but the states of the power supplies in the electronic device are adjustable, improving the user experience. At the same time, it avoids the situation where all power supplies have standby power consumption and the problem of high power consumption in the shutdown state of the electronic device.
[0138] This embodiment discloses a control device, and its structural schematic diagram is as Figure 8 shown, including:
[0139] A determination unit 81 and a control unit 82.
[0140] Among them, the determination unit 81 is configured to determine the power supply access information of the electronic device in response to obtaining a control instruction for controlling the electronic device to enter a shutdown state;
[0141] The control unit 82 is configured to control the power supply state of the first power supply of the electronic device based at least on the power supply access information;
[0142] Among them, the electronic device is only connected to the first power supply, or the electronic device is connected to the first power supply and other power supplies different from the first power supply.
[0143] The control device disclosed in this embodiment is implemented based on the control method disclosed in the above embodiment, and will not be elaborated here.
[0144] The control device disclosed in this embodiment, in response to obtaining a control instruction for controlling the electronic device to enter a shutdown state, determines the power supply access information of the electronic device, and controls the power supply state of the first power supply of the electronic device based at least on the power supply access information. Among them, the electronic device is only connected to the first power supply, or the electronic device is connected to the first power supply and other power supplies different from the first power supply. In this solution, when obtaining a control instruction for controlling the electronic device to shut down, it does not directly control the electronic device to shut down based on this control instruction. Instead, after obtaining this control instruction, it first obtains the power supply access information of the electronic device, and controls the power supply state of the power supply in the electronic device based on this power supply access information, realizing that when the electronic device shuts down, the power supply state of the power supply in the electronic device is not the state where each power supply has standby power consumption by default, but the state of the power supply in the electronic device is adjustable, improving the user experience. At the same time, it avoids the situation where all power supplies have standby power consumption, and avoids the problem of high power consumption in the shutdown state of the electronic device.
[0145] This embodiment discloses an electronic device, and its structural schematic diagram is as Figure 9 shown, including:
[0146] A power supply 91, a processor 92, and a memory 93.
[0147] Among them, the power supply 91 is used to supply power to the electronic device;
[0148] The processor 92 is configured to determine the power supply access information of the electronic device in response to obtaining a control instruction for controlling the electronic device to enter a shutdown state, and control the power supply state of the first power supply of the electronic device based at least on the power supply access information;
[0149] The memory 93 is used to store the program for the processor to execute the above processing process, and the above processing process executed by the processor is the control logic for the power supply;
[0150] Among them, the electronic device is only connected to the first power supply, or the electronic device is connected to the first power supply and other power supplies different from the first power supply.
[0151] The electronic device disclosed in this embodiment is implemented based on the control method disclosed in the above embodiment, which will not be elaborated here.
[0152] The electronic device disclosed in this embodiment, in response to obtaining a control instruction for controlling the electronic device to enter the shutdown state, determines the power access information of the electronic device, and controls the power supply state of the first power supply of the electronic device at least based on the power access information, where the electronic device is only connected to the first power supply, or the electronic device is connected to the first power supply and other power supplies different from the first power supply. In this solution, when obtaining a control instruction for controlling the electronic device to shut down, it does not directly control the electronic device to shut down based on this control instruction. Instead, after obtaining this control instruction, it first obtains the power access information of the electronic device and controls the power supply state of the power supply in the electronic device based on this power access information, realizing that when the electronic device shuts down, the power supply state of the power supply in the electronic device is not the state where each power supply has standby power consumption according to the device default settings, but the state of the power supply in the electronic device is adjustable, improving the user experience. At the same time, it avoids the situation where all power supplies have standby power consumption and the problem of high power consumption in the shutdown state of the electronic device.
[0153] In this specification, the various embodiments are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The same or similar parts among the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method part.
[0154] Those skilled in the art can further realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of the examples have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.
[0155] The steps of the method or algorithm described in combination with the embodiments disclosed herein can be directly implemented by hardware, a software module executed by a processor, or a combination of the two. The software module can be placed in a random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, or any other form of storage medium well-known in the technical field.
[0156] The foregoing description of the disclosed embodiments enables those skilled in the art to practice or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A control method, comprising: Upon receiving a control instruction to control the electronic device to enter the shutdown state, determining the power supply access information of the electronic device; Controlling the power supply state of the first power supply of the electronic device based on at least the power supply access information; wherein the power supply access information indicates that the electronic device is only connected to the first power supply, or the electronic device is connected to the first power supply and other power supplies different from the first power supply, If the electronic device is connected to multiple power supplies, controlling the power supply state of the first power supply of the electronic device includes: controlling the power supply states of the first power supply and other power supplies different from the first power supply to switch, and the power supply states switched to by the first power supply and other power supplies different from the first power supply are different, so as to reduce the power consumption of the electronic device in the shutdown state, and the first power supply is any one of the multiple power supplies.
2. The method according to claim 1, wherein, The controlling the power supply state of the first power supply of the electronic device based on at least the power supply access information includes: Controlling the power supply state of the first power supply of the electronic device based on the access quantity and access location of the power supply; or, Obtaining the connection state between the electronic device and its associated device, and controlling the power supply state of the first power supply of the electronic device based on the connection state and the power supply access information.
3. The method according to claim 1 or 2, the controlling the power supply state of the first power supply of the electronic device based on at least the power supply access information, comprising: If the power supply access information indicates that the electronic device is only connected to the first power supply, controlling the first power supply to switch from the first power supply state to the second power supply state, wherein the power consumption of the power supply in the first power supply state is greater than its power consumption in the second power supply state; or, If the power supply access information indicates that the electronic device is connected to the first power supply and other power supplies, controlling the first power supply to switch from the first power supply state to the second power supply state, and controlling other power supplies other than the first power supply to switch from the first power supply state to the third power supply state, wherein the power consumption of the power supply in the first power supply state is greater than its power consumption in the second power supply state, and the power consumption of the power supply in the second power supply state is greater than its power consumption in the third power supply state; or, If the power supply access information indicates that the electronic device is connected to the first power supply and other power supplies, controlling the first power supply to switch from the first power supply state to the third power supply state, and controlling the second power supply among the other power supplies to switch from the first power supply state to the second power supply state, wherein the power consumption of the power supply in the first power supply state is greater than its power consumption in the second power supply state, and the power consumption of the power supply in the second state is greater than its power consumption in the third state.
4. The method according to claim 3, wherein, further comprising: Obtaining the historical power supply information and / or configuration information of each power supply connected to the electronic device, and determining the second power supply from the other power supplies based on the historical power supply information and / or configuration information.
5. The method according to claim 2, wherein, Controlling the power supply state of the first power supply of the electronic device based on the connection state and the power supply access information includes: If the electronic device and its associated device are in a first connection state, and the power supply access information indicates that the electronic device is connected to the first power supply and other power supplies, controlling the first power supply to switch from a first power supply state to a second power supply state, and controlling other power supplies other than the first power supply to switch from the first power supply state to a third power supply state, where the power consumption of the power supply in the first power supply state is greater than its power consumption in the second power supply state, and the power consumption of the power supply in the second power supply state is greater than its power consumption in the third power supply state; Or, If the electronic device and its associated device are in a first connection state, and the power supply access information indicates that the electronic device is connected to the first power supply and other power supplies, controlling the third power supply among the first power supply and the other power supplies to switch from the first power supply state to the second power supply state, and controlling other power supplies other than the first power supply and the third power supply to switch from the first power supply state to the third power supply state, where the power consumption of the power supply in the first power supply state is greater than its power consumption in the second power supply state, and the power consumption of the power supply in the second power supply state is greater than its power consumption in the third power supply state.
6. The method according to any one of claims 1, 2, 4, or 5, wherein, Determining the power supply access information of the electronic device includes: Determining the level signal triggered by the target detection pin, where the target detection pin is set in the power supply slot of the main board of the electronic device, and determining the power supply access information of the electronic device based on the level signal, and the power supply access information at least includes the number of power supplies accessed.
7. The method according to claim 3, wherein, Controlling the power supply state of the first power supply of the electronic device includes: Sending a control signal to the control chip of each power supply through the main board of the electronic device, so as to control the first power supply, or the power supply states of the first power supply and other power supplies different from the first power supply based on the control signal.
8. The method according to claim 3, wherein, It further includes: In response to obtaining a control instruction for the electronic device to switch from the shutdown state to the target operating state, controlling each power supply of the electronic device to be in the second power supply state.
9. A control device, including: A determination unit, configured to determine the power supply access information of the electronic device in response to obtaining a control instruction for controlling the electronic device to enter the shutdown state; A control unit, configured to control the power supply state of the first power supply of the electronic device at least based on the power supply access information; Wherein, the power supply access information indicates that the electronic device is only connected to the first power supply, or the electronic device is connected to the first power supply and other power supplies different from the first power supply. If the electronic device is connected to multiple power supplies, controlling the power supply state of the first power supply of the electronic device includes: controlling the switching of the power supply states of the first power supply and other power supplies different from the first power supply, and the power supply states switched to by the first power supply and other power supplies different from the first power supply are different, so as to reduce the power consumption of the electronic device in the shutdown state.
10. An electronic device, comprising: a power supply for powering the electronic device; a processor for determining the power supply access information of the electronic device in response to obtaining a control instruction for controlling the electronic device to enter the shutdown state, and controlling the power supply state of the first power supply of the electronic device at least based on the power supply access information; a memory for storing a program for the processor to execute the above processing procedure; Wherein, the power supply access information indicates that the electronic device is only connected to the first power supply, or the electronic device is connected to the first power supply and other power supplies different from the first power supply, if the electronic device is connected to multiple power supplies, controlling the power supply state of the first power supply of the electronic device includes: controlling the switching of the power supply states of the first power supply and other power supplies different from the first power supply, and the power supply states switched to by the first power supply and other power supplies different from the first power supply are different, so as to reduce the power consumption of the electronic device in the shutdown state.
Citation Information
Patent Citations
Power supply control method and electronic device
CN108121431A
Power supply control device and electronic equipment
CN211349294U
Power switching circuit and wearable device
CN213637179U