Power-on and power-off control method and device, electronic equipment and storage medium

By obtaining module enable input in complex devices, determining the target power supply and its control timing, and generating trigger signals and expected outputs, the problem of difficulty in precise control of power-up and down timing of complex devices is solved, and simplified and efficient power-up and down control is achieved, and sleep and sleep functions are compatible.

CN120215665APending Publication Date: 2025-06-27ZHEJIANG UNIVIEW TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202311836122.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-27
Publication Date
2025-06-27

AI Technical Summary

Technical Problem

The up and down timing control of complex equipment depends on external circuits, making it difficult to achieve precise control, especially on motherboards with sleep and sleep functions, which are cumbersome to control.

Method used

By obtaining the module enable input, the target power supply to be controlled and its control timing are determined, the trigger signal and expected output are generated, and the target power supply is powered up and down based on these signals, so as to achieve precise control from complex circuits.

Benefits of technology

It realizes precise control of the power-off timing of complex equipment, simplifies the control process, is compatible with the sleep and sleep functions of the equipment, and avoids dependence on external circuits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120215665A_ABST
    Figure CN120215665A_ABST
Patent Text Reader

Abstract

The invention provides a power-on and power-off control method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining module enabling input which is used for indicating power-on or power-off; determining each target power supply to be controlled and a control time sequence of each target power supply from each power supply based on the module enabling input, and generating a trigger signal and an expected output for each target power supply; and determining a first target power supply to be controlled based on the control time sequence among the target power supplies, sending a trigger signal to the first target power supply, and sending a trigger signal to the next target power supply after the output of the first target power supply is consistent with the expected output, thereby overcoming the defect that the power-on and power-off time sequence control of the complex equipment in the traditional scheme depends on an external circuit. The power-on and power-off control circuit has the advantages that the defects of difficulty in accurate control in the prior art are overcome, accurate control of any power-on and power-off time sequence can be realized without a complex circuit, simplicity, high efficiency and accuracy of a control process can be guaranteed, and sleep and sleep functions of equipment can be compatible.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power control methods, and in particular, to a power-on and power-off control method, device, electronic device, and storage medium. Background Art

[0002] On the mainboards of complex devices such as servers and computers, there are usually several chips. The power supply for each chip needs to meet its respective power-on and power-off sequences to ensure that the chips can work properly.

[0003] However, when multiple chips are integrated on a mainboard, the power-on and power-off timing of the power supply on the entire mainboard will become very complex. Moreover, the mainboards of complex devices often have functions such as hibernation and sleep, which further increases the complexity of the power-on and power-off timing. At this time, it is usually difficult to achieve the power-on and power-off timing control of the entire mainboard, and even if it can be achieved, it is very cumbersome. Summary of the Invention

[0004] The present invention provides a power-on and power-off control method, device, electronic device, and storage medium, which are used to solve the defect that the power-on and power-off timing control of complex devices in the prior art depends on external circuits and is difficult to accurately control, and can accurately control the power-on and power-off timing without an analog circuit.

[0005] The present invention provides a power-on and power-off control method, which is applied to a control module and includes:

[0006] An acquisition module enables an input, and the module enable input is used to indicate power-on or power-off;

[0007] Based on the module enable input, determine each target power supply to be controlled from each power supply, as well as the control timing of each target power supply, and generate a trigger signal and an expected output for each target power supply;

[0008] Based on the control timing between each target power supply, determine the first target power supply to be controlled, and send a trigger signal to the first target power supply, and send the trigger signal to the next target power supply after the output of the first target power supply is consistent with the expected output.

[0009] According to the power-on and power-off control method provided by the present invention, the step of determining each target power supply to be controlled from each power supply based on the module enable input includes:

[0010] In the case where the module enable input indicates power-off, determine each target power supply to be powered off from each power supply based on the hold input signal of each power supply.

[0011] According to an up and down power control method provided by the present invention, when the module enables the input indication to power down, the trigger signals of the target power supplies include a hold input trigger signal and a ready input trigger signal, and the expected outputs of the target power supplies are that the hold input signal is invalid and the ready input signal is invalid;

[0012] Based on the control timing between the target power supplies, determining the first target power supply to be controlled, and sending a trigger signal to the first target power supply, and after the output of the first target power supply is consistent with the expected output, sending the trigger signal to the next target power supply, including:

[0013] Based on the power-down timing between the target power supplies, determining the first target power supply to be powered down, and sending a hold input trigger signal to the first target power supply. When the hold input signal output by the first target power supply is invalid, sending a ready input trigger signal to the first target power supply. After the ready input signal output by the first target power supply is invalid, sending the hold input trigger signal to the next target power supply of the first target power supply. When the hold input signal output by the next target power supply is invalid, sending a ready input trigger signal to the next target power supply to implement the power-down control of the target power supplies.

[0014] According to an up and down power control method provided by the present invention, after sending a ready input trigger signal to the next target power supply when the hold input signal output by the next target power supply is invalid, it further includes:

[0015] After the ready input signal output by the last target power supply is invalid, sending a hold input trigger signal to the target power supplies. When the hold input signals output by the target power supplies are all invalid, determining that the power-down control of the target power supplies is normal power-down control;

[0016] After the ready input signal output by the last target power supply is invalid, sending a hold input trigger signal to the target power supplies. When the hold input signal output by any one of the target power supplies is valid, determining that the power-down control of the target power supplies is hold power-down control.

[0017] According to an up and down power control method provided by the present invention, based on the hold input signals of the power supplies, determining the target power supplies to be powered down from the power supplies includes:

[0018] Screening out the power supplies with valid hold input signals from the power supplies to obtain the target power supplies;

[0019] After screening out the power supplies with valid hold input signals from the power supplies to obtain the target power supplies, it further includes:

[0020] When the input indication of the module enables power-down and the hold input signal of any power supply changes from valid to invalid, determine the any power supply as the target power supply, and update the control timings, trigger signals, and expected outputs of the respective target power supplies, so as to implement the power-down control of the respective target power supplies based on the updated control timings, trigger signals, and expected outputs.

[0021] According to an up-and-down power control method provided by the present invention, when the input indication of the module enables power-up, the trigger signal and the expected output of the respective target power supplies are a ready input trigger signal and a valid ready input signal, respectively;

[0022] Based on the control timings among the respective target power supplies, determine the first target power supply to be controlled, and send a trigger signal to the first target power supply. After the output of the first target power supply is consistent with the expected output, send the trigger signal to the next target power supply, including:

[0023] Based on the power-up timings among the respective target power supplies, determine the first target power supply to be powered up, and send a ready input trigger signal to the first target power supply. After the ready input signal output by the first target power supply is valid, send the ready input trigger signal to the next target power supply of the first target power supply.

[0024] According to an up-and-down power control method provided by the present invention, after the ready input signal output by the first target power supply is valid, sending the ready input trigger signal to the next target power supply of the first target power supply includes:

[0025] Send the ready input trigger signal to the next target power supply. After the ready input signal output by the next target power supply and the ready input signals output by the respective target power supplies before the next target power supply in the power-up timings are all valid, send the ready input trigger signal to the next target power supply of the next target power supply in the power-up timings, so as to implement the power-up control of the respective target power supplies.

[0026] The present invention further provides an up-and-down power control device, which is applied to a control module and includes:

[0027] An acquisition unit, configured to acquire a module enable input, where the module enable input is used to indicate power-up or power-down;

[0028] A determination unit, configured to determine, based on the module enable input, the respective target power supplies to be controlled from among the respective power supplies, and the control timings of the respective target power supplies, and generate a trigger signal and an expected output for each of the target power supplies;

[0029] A control unit, configured to determine a first target power supply to be controlled based on the control timings between the target power supplies, and send a trigger signal to the first target power supply, and send the trigger signal to the next target power supply after the output of the first target power supply is consistent with the expected output.

[0030] The present invention further provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the power-on and power-off control method as described in any one of the above is implemented.

[0031] The present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the power-on and power-off control method as described in any one of the above is implemented.

[0032] The power-on and power-off control method, device, electronic device, and storage medium provided by the present invention determine each target power supply to be controlled and the control timings of each target power supply from each power supply through module enable input, and generate trigger signals and expected outputs for each target power supply. Based on the control timings of each target power supply, the power-on and power-off control of each target power supply is performed through the output and expected output of each target power supply, overcoming the defect that the power-on and power-off timing control of complex devices in the traditional solution depends on external circuits, the control process is cumbersome and difficult to accurately control, and it can achieve precise control of any power-on and power-off timing independently of complex circuits. At the same time, it can ensure the simplicity and efficiency of the control process. In addition, it can also be compatible with the sleep and hibernate functions of the device. Description of the Drawings

[0033] In order to more clearly illustrate the technical solutions in the present invention 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 some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0034] Figure 1 is a schematic flowchart of the power-on and power-off control method provided by the present invention;

[0035] Figure 2 is an example diagram of the power-on control process provided by the present invention;

[0036] Figure 3 is an example diagram of the power-off control process provided by the present invention;

[0037] Figure 4 is an overall framework diagram of the power-on and power-off control method provided by the present invention;

[0038] Figure 5It is a structural schematic diagram of the power on and off control device provided by the present invention;

[0039] Figure 6 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0041] Since the motherboard of complex equipment (such as servers, computers, etc.) usually integrates multiple chips, and the power supply of each chip needs to meet its own power-on and power-off sequence to ensure that the chip can work normally, the power-on and power-off timing of the entire motherboard is very complicated. Furthermore, considering that the motherboard of complex equipment often has functions such as hibernation and sleep, this makes its power-on and power-off timing more complicated, and to achieve such power-on and power-off timing control usually requires extremely complex circuits, many components, and cumbersome debugging.

[0042] At present, multiple power sequencers are often used in cascade and controlled through complex external circuits to meet the power-on and power-off timing of the entire motherboard and realize functions such as sleep and hibernation. However, the control process of this method is extremely cumbersome and requires the use of additional external circuits for control. It is impossible to achieve simple and efficient power-on and power-off control and ensure functions such as sleep and hibernation.

[0043] In addition, there is also a solution to control the target through discrete circuits. However, this method requires a large number of circuit components, and the circuit is extremely complex and difficult to debug. The power-on and power-off timing is difficult to control accurately, and the power-on and power-off problems are prone to occur.

[0044] In this regard, the present invention provides a power-on and power-off control method, which aims to control the power-on and power-off of each target power supply based on the control timing of each target power supply through the output and expected output of each target power supply. It can be independent of complex circuits and can achieve precise control of any power-on and power-off timing only through the output signal of each target power supply. At the same time, it can be compatible with functions such as sleep and hibernation.

[0045] The power-on and power-off control method provided by the present invention is applied to a control module; the control module here can be implemented by a CPLD (Complex Programmable Logic Device) / FPGA (Field Programmable Gate Array), or can be implemented by being solidified based on an ASIC (Application Specific Integrated Circuit). The control module consists of a state controller, a timer, an input / output, a hold register, and an enable register. Among them, the state controller consists of a state machine with a basically fixed state, which is used to control other parts in the control module, and there is only one state controller in the entire control module.

[0046] The timer is used for timing and can precisely control the power-on and power-off times of each power supply. There is only one timer in the entire control module and it can be timed repeatedly; the maximum overflow time of the timer depends on the maximum power-on and power-off interval of the power supply, and the target value depends on the setting of the current state. The timer will be cleared every time the state machine jumps, and the target value will be updated to the required target value every time the state jumps, such as the set value (power-on set value, power-off set value, etc.); the power-on and power-off timings of each power supply, whether to keep the input required, the timing target value of Wait*, etc. can also be set. These settings can be solidified through the internal / external ROM (Read-Only Memory) of the control module, or can be dynamically configured to devices such as RAM (Random Access Memory) as needed. The embodiments of the present invention do not make specific limitations on this.

[0047] The input / output is a logic IO pin, which includes a module enable input (PwrEn) and a module power-on completion output (PwrGd); the following IO bit width (the IO bit width is the data width that the I / O port can transfer at one time) is the same as the number of power supplies (each power supply) that need to be controlled on the device, and they are respectively an enable output (SubPwrEn), a ready input (SubPwrGd), a hold input (SubPwrHd), a working clock input, a reset, etc. These signals can be generated internally.

[0048] The hold register is used to record the state of SubPwrHd at the previous moment; the enable register is used to drive SubPwrEn.

[0049] Figure 1 is a schematic flowchart of the power-on and power-off control method provided by the present invention, as Figure 1 shown, the method includes:

[0050] Step 110, obtain the module enable input, and the module enable input is used to indicate power-on or power-off;

[0051] Specifically, when the device has a power-on or power-off requirement and power-on / off control needs to be performed on it, the control module can receive a power-on / off control instruction and accordingly perform power-on / off control on the device. That is, before performing power-on / off control, the control module can first obtain the module enable input, that is, the PwrEn control instruction, which can be a power-on control instruction or a power-off control instruction, and this control instruction is used to instruct the control module to perform power-on or power-off control on the device.

[0052] Here, the control instruction can be issued by the device. For example, when the device has a power-on or power-off requirement, it can issue a control instruction, or it can be triggered under certain specific conditions of the device. The embodiments of the present invention do not make specific limitations on this. The control instruction can also be manually input. For example, pulling up PwrEn or pulling down PwrEn. Through the module enable input, the control module can know whether to perform power-on control or power-off control on the device, thereby ensuring the stable and orderly power-on / off and providing a basis for the precise control of the power-on / off timing.

[0053] In addition, it is worth noting that in the actual application process, when the control module performs power-on / off control, based on the module enable input, combined with the specific settings and specific requirements of the device, etc., it can control the power-on / off to make the entire power-on / off control process better fit the actual application scenario, the settings and requirements of the device, etc., further improving the feasibility and controllability of the power-on / off control process and achieving an improvement in practicability.

[0054] Step 120: Based on the module enable input, determine each target power supply to be controlled and the control timing of each target power supply from each power supply, and generate a trigger signal and an expected output for each target power supply;

[0055] Specifically, after obtaining the module enable input, each target power supply to be controlled and the control timing of each target power supply can be determined from each power supply based on this, and a trigger signal and an expected output for each target power supply are generated.

[0056] Here, each power supply is the power supply that needs to be controlled in the device. Before performing power-on / off control on it, considering that the device usually has sleep and hibernate functions, and when the device is in the sleep or hibernate state, there are some chips, such as the power supply of key chips, that need to be continuously powered, that is, their power supplies need to remain powered to ensure the normal operation of the chips. Therefore, at this time, it is not possible to directly power off all power supplies, but it is necessary to ensure that the power supplies of some chips are powered.

[0057] Based on this, in order to be compatible with functions such as sleep and hibernation of the device and ensure their normal execution without interruption, in the embodiments of the present invention, after determining each power supply in the device, each target power supply to be controlled can be determined from each power supply, that is, according to the module enable input, the power supplies that need to remain powered can be determined from each power supply, and this part of the power supplies can be removed, and the power supplies that can be normally powered off are used as the power supplies that actually need to be controlled for power-off, that is, each target power supply to be controlled.

[0058] Here, it should be noted that when the module enable input indicates power-on, each power supply in the device is normally powered on, so each power supply can be directly used as each target power supply to be controlled. Correspondingly, when the module enable input indicates power-off, the power supplies that can be normally powered off in the device can be used as each target power supply to be controlled.

[0059] It is worth noting that although the control module does not need to use the power supplies that need to remain powered in each power supply as target power supplies and perform normal power-off control on them during power-off control, during the actual power-off process of the device, both the power supplies that need to remain powered and the target power supplies that need to be normally powered off participate in the power-off control process of the device. It's just that for the power supplies that need to remain powered, when the control module performs power-off control specifically, it does not need to actually control them. It only needs to wait until the timer reaches the power-off set value of the corresponding power supply (that needs to remain powered), and then it can control other power supplies to be normally powered off, that is, skip this power supply for power-off control.

[0060] When there are power supplies that need to remain powered during the entire power-off process of the device, the power-off control of the device in this case can be called retention power-off control. Correspondingly, when there are no power supplies that need to remain powered during the entire power-off process of the device, that is, each power supply needs to be normally powered off, at this time, the entire power-off control process of the device can be called normal power-off control.

[0061] Correspondingly, when the control module performs power-on control, at this time, each power supply is each target power supply, and the control module controls each target power supply to be powered on according to the normal power-on process.

[0062] For example, when the power supplies in the device are power supply 0, power supply 1, and power supply 2, and power supply 1 needs to remain powered on during the power-down process, the process of the control module controlling the device to power down can be specifically as follows: First, control power supply 0 to perform normal power-down. After power supply 0 completes power-down, that is, when the timer reaches the power-down set value corresponding to power supply 0, at this time, power supply 1 can be skipped and power supply 2 can be controlled to perform normal power-down. Specifically, when the timer reaches the power-down set value of power supply 1, the control module can determine that power supply 2 performs normal power-down. Among them, when the control module is specifically performing control, when the control object (power supply) changes, or the control stage of the control object (power-down waiting timing, enabling output set to 0) changes, that is, when the state machine jumps, the timer will be cleared.

[0063] Correspondingly, when the power supplies in the device are power supply 0, power supply 1, and power supply 2, the process of the control module controlling the device to power on can be specifically as follows: Control power supply 0, power supply 1, and power supply 2 to perform normal power-on in sequence according to the power-on timing. That is, after power supply 0 completes power-on, that is, when the timer reaches the power-on set value corresponding to power supply 0, power supply 1 can be controlled to perform normal power-on. After power supply 1 completes power-on, that is, when the timer reaches the power-on set value of power supply 1, power supply 2 can be controlled to perform normal power-on. After power supply 2 completes power-on, that is, when the timer reaches the power-on set value of power supply 2, it can be confirmed that the device has completed power-on.

[0064] When determining the target power supplies to be controlled from the power supplies based on the module enable input, it is also necessary to determine the control timing between the target power supplies. The control timing here corresponds to the power-on timing or power-down timing of the module enable input, which represents the sequence of power-on or power-down between the target power supplies.

[0065] For example, when the module enable input indicates power-on, and the target power supplies include target power supply 0 and target power supply 1, the power-on timing can be that target power supply 0 powers on first and target power supply 1 powers on later. Another example is that when the module enable input indicates power-down, and the target power supplies include target power supply 0 and target power supply 1, the power-down timing can be that target power supply 1 powers down first and target power supply 0 powers down later. The specific control timing can be set accordingly according to the actual situation, requirements, etc.

[0066] Here, the control timing between the target power supplies can be determined based on the selected target power supplies and the pre-set control timing of each power supply when selecting the target power supplies, or can be directly set for each target power supply after selecting the target power supplies to be controlled. The embodiments of the present invention do not make specific limitations on this.

[0067] Similarly, when determining the target power supplies to be controlled from each power supply based on the module enable input, it is also necessary to determine the trigger signals and expected outputs corresponding to each target power supply based on the module enable input. Here, the trigger signal is the signal for the control module to trigger the target power supply to output the corresponding auxiliary control signals (such as ready input signal, hold input signal, etc.) when performing power-on and power-off control on each target power supply. Here, the auxiliary control signal is the signal output by the target power supply for the auxiliary control module to perform power-on and power-off control on the corresponding target power supply, and it can be determined according to the module enable input. The expected output is the result that the control module expects the target power supply to output when sending the trigger signal to the target power supply; the expected output corresponds to the result output by the target power supply when the target power supply needs to be normally powered on or normally powered off.

[0068] For example, when the target power supply needs to be powered on, the expected output can be that the ready input signal is valid; when the target power supply needs to be powered off, the predicted output can be that the ready input signal is invalid, the hold input signal is invalid, etc.; by comparing the expected output with the actual output of each target power supply, the power-on and power-off timing of each target power supply can be accurately controlled.

[0069] Step 130: Based on the control timing between the target power supplies, determine the first target power supply to be controlled, send a trigger signal to the first target power supply, and send a trigger signal to the next target power supply after the output of the first target power supply is consistent with the expected output.

[0070] Specifically, in step 120, after determining the control timing between the target power supplies, as well as the trigger signals and expected outputs of each target power supply, the first target power supply to be controlled can be determined based on this control timing, and a trigger signal can be sent to the first target power supply. After the output of the first target power supply is consistent with the expected output, a trigger signal is sent to the next target power supply.

[0071] It can be understood that when controlling the power-on and power-off of each target power supply based on the control timing between the target power supplies, to ensure the accuracy of the power-on and power-off timing control, in the embodiments of the present invention, it is necessary to clarify the specific order of power-on and power-off of each target power supply, which target power supply is the first, which is the next, and which is the last, etc., so as to power on or power off each target power supply in this order in turn to ensure the orderliness of the power-on and power-off control.

[0072] Based on this, in the embodiments of the present invention, when performing power-on and power-off control based on the module enable input, it is first necessary to determine the first target power supply to be powered on or off from each target power supply, that is, the first target power supply to be controlled. Then, a trigger signal can be sent to the first target power supply to trigger the first target power supply to output the corresponding result. For example, when the trigger signal is a ready input trigger signal, the target power supply can be triggered to output a ready input signal; when the trigger signal is a hold input signal, the target power supply can be triggered to output a hold input signal.

[0073] After that, based on the specific situation of the signal output by the first target power supply, that is, valid or invalid, and its expected output, power-on and power-off control can be performed on the first target power supply. Here, specifically, when the specific situation of the signal output by the first target power supply is consistent with the expected output, and the expected output here represents the output required for the target power supply to perform normal power-on or power-off, then power-on or power-off can be performed on the first target power supply; when the specific situation of the signal output by the first target power supply is inconsistent with the expected output, power-on or power-off is not performed temporarily.

[0074] Further, after the power-on or power-off of the first target power supply is completed, the control module can control the next target power supply of the first target power supply indicated by the control timing, that is, the next target power supply, to perform power-on or power-off. That is, after the output of the first target power supply is consistent with the expected output, a trigger signal can be sent to the next target power supply to enable the next target power supply to perform corresponding output based on the trigger signal, and power-on and power-off control can be achieved through the output result and the expected output.

[0075] Repeat the above process. After the output of the current target power supply is consistent with the expected output, a trigger signal is sent to the next target power supply of the current target power supply in the control timing until the current target power supply is the last target power supply. In this way, precise control of the power-on and power-off timing of each target power supply is achieved, ensuring the orderliness and simplicity of the control process.

[0076] The power-on and power-off control method provided by the present invention determines each target power supply to be controlled and the control timing of each target power supply from each power supply through the module enable input, and generates trigger signals and expected outputs for each target power supply. Based on the control timing of each target power supply, power-on and power-off control is performed on each target power supply through the output and expected output of each target power supply, overcoming the defect that the power-on and power-off timing control of complex devices in the traditional scheme depends on external circuits, the control process is cumbersome and difficult to accurately control. It can achieve precise control of any power-on and power-off timing independent of complex circuits, and at the same time can ensure the simplicity, efficiency and accuracy of the control process. In addition, it can also be compatible with the sleep and hibernate functions of the device.

[0077] Based on the above embodiments, in step 120, determining the target power supplies to be controlled from each power supply based on the module enable input includes:

[0078] In the case where the module enable input indicates power-down, determining the target power supplies to be powered down from each power supply based on the hold input signals of each power supply.

[0079] Specifically, in step 120, the process of determining the target power supplies to be controlled from each power supply according to the module enable input may specifically include:

[0080] Considering that the intention of screening the target power supplies from each power supply is to determine the power supplies that truly need to be powered on or off, and removing the power supplies that need to remain powered during the power-down process and cannot be powered down normally. Therefore, in the embodiments of the present invention, when determining each target power supply from each power supply, the power supply's need to remain powered can be used as a reference, and each target power supply can be selected accordingly.

[0081] Specifically, in the embodiments of the present invention, it is first necessary to determine whether each power supply needs to remain powered during the power-down process, and whether the power supply is powered can be reflected by the hold input signal of the power supply. When the hold input signal is valid, it means that the power supply needs to continue to supply power during the power-down process. Correspondingly, when the hold input signal is invalid, it means that the power supply does not need to continue to supply power during the power-down process and can be powered down normally. That is, the control module can first obtain the hold input signals of each power supply to determine the power supply situation of each power supply during the power-down process accordingly.

[0082] Among them, the hold input signal is the signal of the SubPwrHd pin in the chip corresponding to the power supply. Through this signal, it can be determined which power supply needs to remain powered. Here, the hold input signals of each power supply can be triggered and output based on the corresponding trigger signals. For example, a hold input trigger signal can be sent to the power supply to make it output the hold input signal, and thus the hold input signals of each power supply can be obtained. It can also be obtained by other means. For example, the SubPwrHd pin automatically outputs under specific conditions. The embodiments of the present invention do not limit this.

[0083] Further, after obtaining the hold input signals of each power supply, it is possible to determine whether each power supply needs to remain powered during the power-down process based on the hold input signals, so as to screen out the target power supplies to be controlled from each power supply. Since the target power supply needs to be a power supply that can be powered down normally, here, the power supplies with valid hold input signals can be screened out, and the power supplies with invalid hold input signals can be retained, so as to obtain the target power supplies to be controlled.

[0084] Here, it should be noted that when the module enables the input indication to power on, all the power supplies in the device are powered on normally. Therefore, each power supply can be directly used as the target power supply, and thus each target power supply to be controlled is obtained.

[0085] Based on the above embodiments, in the case where the module enables the input indication to power off, the trigger signals of each target power supply include a hold input trigger signal and a ready input trigger signal, and the expected outputs of each target power supply are that the hold input signal is invalid and the ready input signal is invalid.

[0086] Step 130 includes:

[0087] Based on the power-off timing among the target power supplies, determine the first target power supply to be powered off, and send a hold input trigger signal to the first target power supply. When the hold input signal output by the first target power supply is invalid, send a ready input trigger signal to the first target power supply. After the ready input signal output by the first target power supply is invalid, send a hold input trigger signal to the next target power supply of the first target power supply. When the hold input signal output by the next target power supply is invalid, send a ready input trigger signal to the next target power supply to achieve the power-off control of each target power supply.

[0088] Specifically, in step 130, the process of determining the first target power supply to be controlled according to the control timing among the target power supplies and sending a trigger signal to the first target power supply and then sending a trigger signal to the next target power supply after the output of the first target power supply is consistent with the expected output may specifically include the following steps:

[0089] It can be understood that when the module enables the input indication to power off, at this time, the trigger signals of each target power supply may include a hold input trigger signal and a ready input trigger signal, and their corresponding expected outputs may be that the hold input signal is invalid and the ready input signal is invalid; among them, the hold output trigger signal is used to trigger the target power supply to output a hold input signal, and the ready input trigger signal is used to trigger the target power supply to output a ready input signal. Here, the hold input signal is used to reflect whether the corresponding target power supply needs to maintain power, and the ready input signal represents whether the target power supply is accurately ready for power input.

[0090] Based on this, when the module enables the input indication to power off, that is, when the control module needs to control each target power supply to power off, the specific power-off sequence among the target power supplies can be determined first through the power-off timing among the target power supplies, and then a trigger signal can be sent to the target power supply that powers off for the first time to trigger it to perform the corresponding output. Specifically, a hold input trigger signal can be sent to the first target power supply to be powered off first, so that after receiving the hold input trigger signal, it outputs the corresponding hold input signal.

[0091] Further, based on the specific situation of the output maintaining the input signal, such as invalid or valid, and the corresponding expected output, the jump of the state machine in the control module can be determined. In the control module, the state machine in the state controller consists of N*4 + 3 states, where N is the number of power supplies. The three states represented by "+3" are IDLE, GOOD, and HOLD respectively. Among them, IDLE indicates that the current state is idle and the power-on control instruction (such as pulling up PwrEn) can be executed; GOOD indicates that all target power supplies have been powered on and the power-off control instruction (such as pulling down PwrEn) can be executed; HOLD indicates that a target power supply is held and the device is in a sleep or hibernation state. The four states of "*4" are power-on waiting timing (WaitUp), setting SubPwrEn to 1 (EnSet), power-off waiting timing (WaitDn), and setting SubPwrEn to 0 (EnClr).

[0092] Here, specifically, when the specific situation of this maintained input signal is consistent with the expected output, that is, when the maintained input signal is invalid, the state machine can jump from GOOD to EnClr; and when the specific situation of the maintained input signal is inconsistent with the expected output, that is, when the maintained input signal is valid, it can be determined that the corresponding target power supply needs to remain powered during the power-off process. The reason for this situation may be that the situation of the maintained input signal of the corresponding target power supply has changed. At this time, the state machine can jump from GOOD to WaitDn, that is, the power-off of the corresponding target power supply can be skipped, and this power-off process can be called hold power-off.

[0093] In the case where the maintained input signal output by the first target power supply is invalid, a ready input trigger signal can be sent to the first target power supply to trigger its corresponding output. Specifically, when the specific situation of the maintained input signal output by the first target power supply is consistent with the corresponding expected output, a ready input trigger signal is sent to the first target power supply so that after receiving the ready input trigger signal, it outputs the corresponding ready input signal.

[0094] After that, based on the specific situation of the ready input trigger signal, such as invalid or valid, and the corresponding expected output, it can be determined whether to power off the first target power supply. Specifically, when the specific situation of the ready input signal output by the first target power supply is consistent with the expected output, that is, when the ready input signal is invalid, at this time the state machine can jump from EnClr to WaitDn, that is, the first target power supply can be powered off. When the specific situation of the ready input signal output by the first target power supply is inconsistent with the expected output, the first target power supply is not powered off temporarily.

[0095] Further, after the power-down of the first target power supply is completed, the control module can control the next target power supply of the first target power supply, that is, the next target power supply, to perform power-down. That is, after the hold input signal output by the first target power supply becomes invalid, a hold input trigger signal can be sent to the next target power supply, so that the next target power supply can be based on its corresponding output hold input signal, and when the hold input signal of the next target power supply becomes invalid, a ready input trigger signal can be sent to the next target power supply to make its corresponding output ready input signal. At this time, the power-down control of the next target power supply can be performed according to the specific situation of the ready input signal and the corresponding expected output. Specifically, when the specific situation of the ready input signal output by the next target power supply is consistent with the expected output, that is, when the ready input signal is invalid, the next target power supply is powered down. When the specific situation of the ready input signal output by the next target power supply is inconsistent with the expected output, the power-down of the next target power supply is not performed temporarily.

[0096] Repeat the above process. After the ready input signal output by the current target power supply becomes invalid, a hold input trigger signal can be sent to the next target power supply of the current target power supply in the control timing until the current target power supply is the last target power supply. In this way, the precise control of the power-down process of each target power supply is realized, ensuring the orderliness and simplicity of the power-down process.

[0097] Based on the above embodiments, after sending a ready input trigger signal to the next target power supply when the hold input signal output by the next target power supply is invalid, it further includes:

[0098] After the ready input signal output by the last target power supply becomes invalid, send a hold input trigger signal to each target power supply. When the hold input signals output by each target power supply are all invalid, determine that the power-down control of each target power supply is normal power-down control;

[0099] After the ready input signal output by the last target power supply becomes invalid, send a hold input trigger signal to each target power supply. When the hold input signal output by any one of the target power supplies is valid, determine that the power-down control of each target power supply is hold power-down control.

[0100] Specifically, when the hold input signal output by the next target power supply is invalid, after sending a ready input trigger signal to the next target power supply, when it comes to the power-down control of the last target power supply, if the ready input signal output by the last target power supply is invalid, then it can be powered down. At this time, the power-down of each target power supply has been completed. However, before determining that the power-down of the entire device is completed and the state machine jumps, a final comprehensive determination is still required, that is, to determine whether the hold input signals output by each target power supply are all invalid. If so, it is determined that the entire power-down process is a normal power-down; otherwise, it is determined that the power-down process is a hold power-down.

[0101] It can be understood that when the control module controls each target power supply to power down, when it comes to the power-down control of the last target power supply, if the ready input signal output by the last target power supply is invalid, at this time the state machine can jump from EnClr to WaitDn, that is, the first target power supply can be powered down. When the power-down of the last target power supply is completed, that is, when the timer reaches the power-down set value of the last target power supply, at this time the hold input signals of each target power supply can be detected again, that is, a hold input trigger signal is sent to each target power supply to make it output the corresponding result, so as to determine whether the entire power-down process is a hold power-down or a normal power-down according to the results output by each target power supply.

[0102] That is, in the case where the hold input signals corresponding to the hold input trigger signals output by each target power supply are all invalid, it is determined that the power-down control of each target power supply is a normal power-down control, that is, the entire power-down process is a normal power-down, and each target device is powered down normally without being held powered; at this time, the state machine can jump from WaitDn to IDLE. Correspondingly, in the hold input signals corresponding to the hold input trigger signals output by each target power supply, if any one of the hold input signals is valid, that is, when a target power supply needs to be held powered, it can be determined that the power-down control of each target power supply is a hold power-down control, that is, the entire power-down process is a hold power-down; at this time, the state machine can jump from WaitDn to HOLD.

[0103] Based on the above embodiments, determining each target power supply to be powered down from each power supply based on the hold input signals of each power supply includes:

[0104] Screening out the power supplies with valid hold input signals from each power supply to obtain each target power supply;

[0105] Screening out the power supplies with valid hold input signals from each power supply to obtain each target power supply, and then it further includes:

[0106] When the module enables the input indication to power down, and the hold input signal of any power supply changes from valid to invalid, determine the power supply as the target power supply, and update the control timing, trigger signal, and expected output of each target power supply, so as to implement the power-down control of each target power supply based on the updated control timing, trigger signal, and expected output.

[0107] Specifically, the process of determining each target power supply to be powered down from each power supply according to the hold input signal of each power supply is specifically to screen out the power supplies with valid hold input signals from each power supply and retain the power supplies with invalid hold input signals, so as to obtain the power supplies that really need to be powered down normally, that is, each target power supply to be controlled.

[0108] After that, if the specific situation of the hold input signal of any power supply changes during the power-down control process, that is, changes from valid to invalid. In short, when a power supply changes from needing to be kept powered on to not needing to be kept powered on during the power-down process, the control module can re-execute the power-down process, that is, can update each target power supply to be controlled, determine the power supply that has changed as the target power supply, obtain the updated each target power supply, and can determine the power-down timing, trigger signal, and expected output of each target power supply at this time, that is, can update the control timing, trigger signal, and expected output of each target power supply to be controlled, and can perform power-down control on each target power supply according to the updated control timing, trigger signal, and expectation of each target power supply, so as to achieve precise control of the power-down timing of each target power supply.

[0109] Based on the above embodiment, when the module enables the input indication to power on, the trigger signal and expected output of each target power supply are the ready input trigger signal and the ready input signal is valid respectively; step 130 includes:

[0110] Based on the power-on timing between each target power supply, determine the first target power supply to be powered on, and send the ready input trigger signal to the first target power supply. After the ready input signal output by the first target power supply is valid, send the ready input trigger signal to the next target power supply of the first target power supply.

[0111] Specifically, in step 130, the process of determining the first target power supply to be controlled according to the control timing between each target power supply and sending the trigger signal to the first target power supply, and sending the trigger signal to the next target power supply after the output of the first target power supply is consistent with the expected output may specifically include the following steps:

[0112] It can be understood that when the module enables the input indication for power-on, at this time, the trigger signals of each target power supply can be ready input trigger signals, and their corresponding expected outputs can be that the ready input signals are valid; here, the ready input trigger signal is used to trigger the target power supply to output the ready input signal, and the ready input signal represents whether the target power supply is accurately ready for power-on.

[0113] Based on this, when the module enables the input indication for power-on, that is, when the control module needs to control each target power supply to power on, the specific power-on sequence between each target power supply can be determined first through the power-on timing sequence between each target power supply, and then a trigger signal can be sent to the target power supply that powers on first to trigger its corresponding output. Specifically, a ready input trigger signal is first sent to the first target power supply to be powered on, so that after it receives the ready input trigger signal, it outputs the corresponding ready input signal.

[0114] Furthermore, based on the specific situation of the ready input signal output by the first target power supply to be powered on, such as invalid or valid, and the corresponding expected output, it can be determined whether to power on the first target power supply. Specifically, when the specific situation of the ready input signal output by the first target power supply is consistent with the expected output, that is, when the ready input signal is valid, since the state machine has exited the IDLE state and jumped to EnSet when the control module obtains the module enable input and its indication for power-on, therefore, when the ready input signal is valid, the state machine can jump from EnSet to WaitUp, that is, the first target power supply can be powered on. When the specific situation of the ready input signal output by the first target power supply is inconsistent with the expected output, that is, when the ready input signal is invalid, the first target power supply is not powered on temporarily.

[0115] Furthermore, after the first target power supply completes power-on, the control module can control the next target power supply of the first target power supply, that is, the next target power supply, to power on. That is, after the ready input signal output by the first target power supply is valid, a ready input trigger signal is sent to the next target power supply, so that the next target power supply outputs the corresponding ready input signal based on it, and the power-on control of the next target power supply can be performed according to the specific situation of the ready input signal output by the next target power supply and the corresponding expected output; specifically, when the specific situation of the ready input signal output by the next target power supply is consistent with the expected output, that is, when the ready input signal is valid, the next target power supply is powered on, and when the specific situation of the ready input signal output by the next target power supply is inconsistent with the expected output, it is not powered on temporarily.

[0116] Repeat the above process. After the ready input signal output by the current target power supply becomes valid, a ready input trigger signal can be sent to the next target power supply in the control timing until the current target power supply is the last target power supply. In this way, precise control of the power-on process of each target power supply is achieved, ensuring the orderliness and simplicity of the power-on process.

[0117] Based on the above embodiments, after the ready input signal output by the first target power supply becomes valid, sending a ready input trigger signal to the next target power supply of the first target power supply includes:

[0118] Sending a ready input trigger signal to the next target power supply. After the ready input signal output by the next target power supply and the ready input signals output by each target power supply before the next target power supply in the power-on timing are all valid, a ready input trigger signal is sent to the next target power supply of the next target power supply in the power-on timing to achieve the power-on control of each target power supply.

[0119] Specifically, the process of sending a ready input trigger signal to the next target power supply of the first target power supply after the ready input signal output by the first target power supply becomes valid may specifically include:

[0120] It can be understood that after the ready input signal output by the first target power supply becomes valid, a ready input trigger signal can be sent to the next target power supply to make it output the corresponding ready input signal. Then, based on the specific situation of this ready input signal, such as being valid or invalid, and whether it is consistent with the expected output, its power-on control can be performed. Specifically, when the power-on of the first target power supply is completed, the state machine can jump from WaitUp to EnSet corresponding to the next target power supply. At this time, when determining whether to power on the next target power supply, not only the ready input signal output by the next target power supply but also the ready input signals output by each target power supply before the next target power supply need to be considered, that is, based on the ready input signal output by the next target power supply and the ready input signals output by each target power supply before the next target power supply in the power-on timing, its power-on control is performed.

[0121] Specifically, it can be that when the ready input signal output by the next target power supply and the ready input signals output by each target power supply before the next target power supply in the power-on timing are all valid, the next target power supply is powered on. At this time, the state machine jumps from EnSet to WaitUp; when any one of the ready input signals output by the ready input signal output by the next target power supply and the ready input signals output by each target power supply before the next target power supply in the power-on timing is invalid, its power-on is not performed temporarily.

[0122] Further, after the next target power supply is powered on, that is, after the ready input signal output by the next target power supply and the ready input signals output by each target power supply before the next target power supply in the power-on sequence are all valid, a ready input trigger signal can be sent to the next target power supply of this next target power supply in the power-on sequence, so that it outputs the corresponding ready input signal, and the power-on control can be performed on it according to the specific situation of the ready input signal it outputs and the corresponding expected output. Repeat the above process. After the ready input signal output by the current target power supply and the ready input signals output by each target power supply before the current target power supply in the power-on sequence are all valid, a ready input trigger signal can be sent to the next target power supply of the current target power supply in the power-on sequence until the current target power supply is the last target power supply. In this way, the precise control of the power-on process of each target power supply is achieved.

[0123] The following takes a specific example to illustrate the power-on control process and power-off control of the target power supply: Figure 2 is an example diagram of the power-on control process provided by the present invention, Figure 3 is an example diagram of the power-off control process provided by the present invention. As Figure 2 and Figure 3 shown, when there are two target power supplies to be controlled (target power supply 0 and target power supply 1), and each target power supply is powered on first and then powered off, all the states of the state machine are IDLE, EnSet0, WaitUp0, EnSet1, WaitUp1, GOOD, HOLD, EnClr1, WaitDn1, EnClr0, WaitDn0.

[0124] When the module enables the input indication to power on, such as when pulling up PwrEn (PwrEn == 1), the state machine exits the IDLE state and jumps to EnSet0; at this time, SubPwrEn0 turns on the VR (Voltage Regulator) corresponding to the target power supply 0, or the PMIC (Power Management Integrated Circuit). When the ready input signal output by the VR or PMIC is valid, that is, when SubPwrGd == 1, the state machine jumps from EnSet0 to WaitUp0. When the timer reaches the power-on set value of the target power supply 0, that is, when Timer == Target0, the state machine jumps from WaitUp0 to EnSet1; when the ready input signals of both the target power supply 0 and the target power supply 1 are valid, that is, when SubPwrGd1 == 1 && SubPwrGd0 == 1, the state machine jumps from EnSet1 to WaitUp1. When the timer reaches the power-on set value of the target power supply 1, that is, when Timer == Target1, the state machine jumps from WaitUp1 to GOOD. At this time, the control module controls the power-on of each target power supply to complete, and the entire power-on process is called normal power-on. Among them, when the state machine jumps each time, the timer will be cleared.

[0125] When the module enables the input indication for power-down, such as when pulling down PwrEn (PwrEn == 0), the state machine exits GOOD. At this time, it can be judged whether the hold input signal of target power supply 1 is valid. If it is valid, that is, SubPwrHd1 == 1, then skip it for power-down, and the state machine jumps to WaitDn1; if it is invalid, that is, SubPwrHd1 == 0, then jump to EnClr1. Further, if the ready input signal output by target power supply 1 is invalid, that is, SubPwrGd1 == 0, then the state machine jumps from EnClr1 to WaitDn1; when the timer reaches the power-down set value of target power supply 1, that is, Timer == Target1d, judge whether the hold input signal of target power supply 0 is valid. If it is valid, that is, SubPwrHd0 == 1, then skip it for power-down, and the state machine jumps from WaitDn1 to WaitDn0; if it is invalid, that is, SubPwrHd0 == 0, the state machine jumps from WaitDn1 to EnClr0. Further, if the ready input signal output by target power supply 0 is invalid, that is, SubPwrGd0 == 0, then the state machine jumps from EnClr0 to WaitDn0; when the timer reaches the power-down set value of target power supply 0, that is, Timer == Target0d, judge again whether the hold input signals of each target power supply are valid. If all are invalid, that is, SubPwrHd1 == 0 && SubPwrHd0 == 0, then the state machine jumps from WaitDn0 to IDLE, waiting for the next power-on; otherwise, that is, SubPwrHd1 == 1 || SubPwrHd0 == 1, then the state machine jumps from WaitDn0 to HOLD. Among them, the power-down process when all SubPwrHd are invalid is normal power-down. On the contrary, when any SubPwrHd is valid, the power-down process is hold power-down.

[0126] Figure 4 is the overall framework diagram of the power-on and power-off control method provided by the present invention, as Figure 4 shown. In the figure, (&SubPwrHd*) represents all SubPwrHd, and (|SubPwrHd*) represents any one SubPwrHd.

[0127] When powering off, it is judged whether the SubPwrHd of each target power supply is valid. If the SubPwrHd is valid, the power-off of the target power supply is skipped, and the sleep and hibernation control pins of the device are connected to the hold pin of the target power supply. In this way, after other components of the device are powered off, key components such as memory still have power. By adding the HOLD state, the state machine can judge whether it is in the sleep or hibernation state. When in the sleep state, that is, when HOLD, by comparing the SubPwrHd at the previous moment recorded in the hold register and the current SubPwrHd, it is found that if any valid SubPwrHd becomes invalid, the state machine will go through the power-off process again until all SubPwrHds are invalid. At this time, the state machine returns to IDLE and completely exits HOLD. If the state machine is in HOLD and PwrEn is pulled high, the state machine jumps to EnSet1 and powers on according to the normal power-on process, which can wake up the device in the sleep and hibernation states.

[0128] The method provided by the embodiment of the present invention determines each target power supply to be controlled, the control timing of each target power supply, and generates a trigger signal and an expected output for each target power supply through module enable input. Based on the control timing of each target power supply, the power-on and power-off of each target power supply are controlled through the output and expected output of each target power supply, overcoming the defect that the power-on and power-off timing control of complex devices in the traditional scheme depends on external circuits, the control process is cumbersome and difficult to accurately control, and it can achieve precise control of any power-on and power-off timing independent of complex circuits. At the same time, it can ensure the simplicity, efficiency and accuracy of the control process. In addition, it can also be compatible with the sleep and hibernation functions of the device.

[0129] The power-on and power-off control device provided by the present invention will be described below. The power-on and power-off control device described below can be correspondingly referred to the power-on and power-off control method described above.

[0130] Figure 5 is a schematic structural diagram of the power-on and power-off control device provided by the present invention, as Figure 5 shown, the device is applied to a control module, and the device includes:

[0131] An acquisition unit 510, configured to acquire a module enable input, where the module enable input is used to indicate power-on or power-off;

[0132] A determination unit 520, configured to determine each target power supply to be controlled, the control timing of each target power supply, and generate a trigger signal and an expected output for each target power supply based on the module enable input;

[0133] A control unit 530 is configured to determine a first target power supply to be controlled based on the control timings between the target power supplies, send a trigger signal to the first target power supply, and send the trigger signal to the next target power supply after the output of the first target power supply is consistent with the expected output.

[0134] The power-on and power-off control device provided by the present invention determines the target power supplies to be controlled and the control timings of the target power supplies from each power supply through module enable input, generates trigger signals and expected outputs for each target power supply, and performs power-on and power-off control on each target power supply based on the output and expected output of each target power supply according to the control timings of each target power supply, overcoming the defects that the power-on and power-off timing control of complex devices in the traditional solution depends on an external circuit, the control process is cumbersome and difficult to accurately control, and it can achieve precise control of any power-on and power-off timing independently of a complex circuit. At the same time, it can ensure the simplicity, efficiency, and accuracy of the control process. In addition, it can also be compatible with the sleep and hibernation functions of the device.

[0135] Based on the above embodiments, the determination unit 520 is configured to:

[0136] In the case where the module enable input indicates power-off, determine the target power supplies to be powered off from the power supplies based on the hold input signals of the power supplies.

[0137] Based on the above embodiments, in the case where the module enable input indicates power-off, the trigger signals of the target power supplies include hold input trigger signals and ready input trigger signals, and the expected outputs of the target power supplies are invalid hold input signals and invalid ready input signals; the control unit 530 is configured to:

[0138] Based on the power-off timings between the target power supplies, determine a first target power supply to be powered off, send a hold input trigger signal to the first target power supply, send a ready input trigger signal to the first target power supply when the hold input signal output by the first target power supply is invalid, send the hold input trigger signal to the next target power supply of the first target power supply after the ready input signal output by the first target power supply is invalid, and send a ready input trigger signal to the next target power supply when the hold input signal output by the next target power supply is invalid, so as to implement the power-off control of the target power supplies.

[0139] Based on the above embodiments, the control unit 530 is configured to:

[0140] After the ready input signal output by the last target power supply is invalid, send a hold input trigger signal to the target power supplies, and determine that the power-off control of the target power supplies is normal power-off control when the hold input signals output by the target power supplies are all invalid.

[0141] After the ready input signal output by the last target power supply becomes invalid, a hold input trigger signal is sent to each of the target power supplies. When the hold input signal output by any one of the target power supplies is valid, it is determined that the power-down control of each of the target power supplies is hold power-down control.

[0142] Based on the above embodiments, the determination unit 520 is configured to:

[0143] Screen out the power supplies with valid hold input signals from each of the power supplies to obtain each target power supply;

[0144] When the module enable input indicates power-down and the hold input signal of any power supply changes from valid to invalid, determine the power supply as a target power supply, and update the control timing, trigger signal, and expected output of each target power supply, so as to implement the power-down control of each target power supply based on the updated control timing, trigger signal, and expected output.

[0145] Based on the above embodiments, when the module enable input indicates power-on, the trigger signal and expected output of each of the target power supplies are a ready input trigger signal and a valid ready input signal respectively; the control unit 530 is configured to:

[0146] Based on the power-on timing among the target power supplies, determine the first target power supply to be powered on, and send a ready input trigger signal to the first target power supply. After the ready input signal output by the first target power supply is valid, send the ready input trigger signal to the next target power supply of the first target power supply.

[0147] Based on the above embodiments, the control unit 530 is configured to:

[0148] Send the ready input trigger signal to the next target power supply. After the ready input signal output by the next target power supply and the ready input signals output by the target power supplies before the next target power supply in the power-on timing are all valid, send the ready input trigger signal to the next target power supply after the next target power supply in the power-on timing, so as to implement the power-on control of each target power supply.

[0149] Figure 6 Illustrates a schematic physical structure diagram of an electronic device, such as Figure 6As shown in the figure, the electronic device may include: a processor 610, a communications interface 620, a memory 630, and a communication bus 640. Among them, the processor 610, the communications interface 620, and the memory 630 complete mutual communication through the communication bus 640. The processor 610 may call the logical instructions in the memory 630 to execute the power-on and power-off control method. The method includes: obtaining a module enable input, where the module enable input is used to indicate power-on or power-off; based on the module enable input, determining each target power supply to be controlled from each power supply, and the control timing of each target power supply, and generating a trigger signal and an expected output for each target power supply; based on the control timing between each target power supply, determining the first target power supply to be controlled, and sending a trigger signal to the first target power supply, and sending the trigger signal to the next target power supply after the output of the first target power supply is consistent with the expected output.

[0150] In addition, when the logical instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and determined as an independent product for sale or use, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: various media such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk, or an optical disc that can store program codes.

[0151] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the power-on and power-off control method provided by each of the above methods. The method includes: obtaining a module enable input, where the module enable input is used to indicate power-on or power-off; based on the module enable input, determining each target power supply to be controlled from each power supply, as well as the control timing of each target power supply, and generating a trigger signal and an expected output for each target power supply; based on the control timing between each target power supply, determining the first target power supply to be controlled, and sending a trigger signal to the first target power supply, and sending the trigger signal to the next target power supply after the output of the first target power supply is consistent with the expected output.

[0152] In another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it is configured to execute the power-on and power-off control method provided by each of the above methods. The method includes: obtaining a module enable input, where the module enable input is used to indicate power-on or power-off; based on the module enable input, determining each target power supply to be controlled from each power supply, as well as the control timing of each target power supply, and generating a trigger signal and an expected output for each target power supply; based on the control timing between each target power supply, determining the first target power supply to be controlled, and sending a trigger signal to the first target power supply, and sending the trigger signal to the next target power supply after the output of the first target power supply is consistent with the expected output.

[0153] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components described as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without creative labor.

[0154] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the essence of the above technical solution, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0155] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A power-on and power-off control method, characterized in that Applied to a control module, including: Obtain a module enable input, where the module enable input is used to indicate power-on or power-off; Based on the module enable input, determine each target power supply to be controlled from each power supply, as well as the control timing of each target power supply, and generate a trigger signal and an expected output for each target power supply; Based on the control timing between the target power supplies, determine the first target power supply to be controlled, send a trigger signal to the first target power supply, and send the trigger signal to the next target power supply after the output of the first target power supply is consistent with the expected output.

2. The power-on and power-off control method according to claim 1, wherein The determining each target power supply to be controlled from each power supply based on the module enable input includes: When the module enable input indicates power-off, determine each target power supply to be powered off from each power supply based on the hold input signal of each power supply.

3. The power-on and power-off control method according to claim 1, characterized in that When the module enable input indicates power-off, the trigger signal of each target power supply includes a hold input trigger signal and a ready input trigger signal, and the expected output of each target power supply is that the hold input signal is invalid and the ready input signal is invalid; The determining the first target power supply to be controlled based on the control timing between the target power supplies, sending a trigger signal to the first target power supply, and sending the trigger signal to the next target power supply after the output of the first target power supply is consistent with the expected output includes: Based on the power-off timing between the target power supplies, determine the first target power supply to be powered off, send a hold input trigger signal to the first target power supply, when the hold input signal output by the first target power supply is invalid, send a ready input trigger signal to the first target power supply, after the ready input signal output by the first target power supply is invalid, send the hold input trigger signal to the next target power supply of the first target power supply, when the hold input signal output by the next target power supply is invalid, send a ready input trigger signal to the next target power supply to implement the power-off control of each target power supply.

4. The power-on and power-off control method according to claim 3, wherein, After sending a ready input trigger signal to the next target power supply when the hold input signal output by the next target power supply is invalid, it further includes: After the ready input signal output by the last target power supply is invalid, send a hold input trigger signal to each target power supply, when the hold input signals output by each target power supply are all invalid, determine that the power-off control of each target power supply is normal power-off control; After the ready input signal output by the last target power supply is invalid, send a hold input trigger signal to each target power supply, when the hold input signal output by any one target power supply is valid, determine that the power-off control of each target power supply is hold power-off control.

5. The power-on and power-off control method according to claim 2, characterized in that The determining each target power supply to be powered off from each power supply based on the hold input signal of each power supply includes: Screen out the power supplies with valid hold input signals from each power supply to obtain each target power supply; After screening out the power supplies with valid hold input signals from each power supply to obtain each target power supply, it further includes: When the module enable input indicates power-down and the hold input signal of any power supply changes from valid to invalid, determine the any power supply as the target power supply, and update the control timing, trigger signal, and expected output of each target power supply, so as to implement the power-down control of each target power supply based on the updated control timing, trigger signal, and expected output.

6. The power-on and power-off control method according to claim 1, characterized in that When the module enable input indicates power-on, the trigger signal and expected output of each target power supply are the ready input trigger signal and the valid ready input signal respectively. The method of determining the first target power supply to be controlled based on the control timing between each target power supply and sending a trigger signal to the first target power supply, and sending the trigger signal to the next target power supply after the output of the first target power supply is consistent with the expected output includes: Based on the power-on timing between each target power supply, determine the first target power supply to be powered on, and send a ready input trigger signal to the first target power supply. After the ready input signal output by the first target power supply is valid, send the ready input trigger signal to the next target power supply of the first target power supply.

7. The power-on and power-off control method according to claim 6, wherein The step of sending the ready input trigger signal to the next target power supply of the first target power supply after the ready input signal output by the first target power supply is valid includes: Send the ready input trigger signal to the next target power supply. After the ready input signal output by the next target power supply and the ready input signals output by each target power supply before the next target power supply in the power-on timing are all valid, send the ready input trigger signal to the next target power supply of the next target power supply in the power-on timing, so as to implement the power-on control of each target power supply.

8. An up and down power control device, characterized in that, Applied to a control module, it includes: An acquisition unit for acquiring a module enable input, where the module enable input is used to indicate power-on or power-down. A determination unit for determining each target power supply to be controlled and the control timing of each target power supply from each power supply based on the module enable input, and generating a trigger signal and an expected output for each target power supply. A control unit for determining the first target power supply to be controlled based on the control timing between each target power supply, and sending a trigger signal to the first target power supply, and sending the trigger signal to the next target power supply after the output of the first target power supply is consistent with the expected output.

9. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the power-on and power-down control method according to any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the power-on and power-down control method according to any one of claims 1 to 7.

Citation Information

Cited By

  • GPU power supply control method, electronic equipment and storage medium

    CN120909407A

  • A GPU power control method, electronic device, and storage medium

    CN120909407B