Signal protection circuit, server system, power failure restarting method and device and medium

By designing a signal protection circuit in the server system and using voltage comparators and OR gate logic circuits to process the GPIO output signals of the CPLD, the problem of the entire board being unable to be powered on due to CPLD failure or mistaken programming is solved, and a reliable firmware upgrade of the system is achieved. and failure recovery.

CN118585053APending Publication Date: 2024-09-03INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202410620409.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-17
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

During the firmware upgrade or fault recovery process of existing servers and storage devices, the entire board cannot be powered on normally due to CPLD failure or mistaken programming.

Method used

A signal protection circuit is designed, including a first voltage comparator, a second voltage comparator and an OR gate logic circuit. By connecting the GPIO output of the CPLD and the timer, only when the GPIO output voltage value is lower than the first standard voltage and is high Only when the second standard voltage is reached, the enable of P3V3_AUX is turned off to power down the motherboard; otherwise, the enable state of P3V3_AUX is maintained.

Benefits of technology

It effectively avoids the problem of the whole board not being able to be powered on due to CPLD mis-programming or failure, ensuring the reliability of the system firmware upgrade and fault recovery process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118585053A
    Figure CN118585053A
Patent Text Reader

Abstract

The invention discloses a signal protection circuit, a server system, a power-down restart method, a power-down restart device and a medium, relates to the technical field of server and storage equipment control, is used for realizing signal protection in a power-down restart process, and provides the signal protection circuit aiming at the problem that a board card possibly cannot be normally powered on at present. Further logic processing is carried out on a GPIO output signal: only when the GPIO output voltage value is lower than a signal of a first standard voltage and higher than a signal of a second standard voltage, a 555 timer can be controlled to close enabling of a P3V3AUX, so that a mainboard is powered down; and the CPLD can ensure that the specific GPIO outputs specific signals with non-high and low levels only when the burning version is correct and the CPLD is not abnormal, so that the mainboard is powered down, and the enabling of the P3V3AUX cannot be closed under other conditions. Therefore, the signal protection circuit can avoid the problem that the whole board cannot be powered on due to mistaken burning or faults of the CPLD.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of server and storage device control, and in particular to a signal protection circuit, a server system, and a power-off restart method, device, and medium. Background Art

[0002] In actual applications of servers and storage devices, when performing firmware upgrades or fault recovery, a complex programmable logic device (CPLD) is usually used to control the power-off and power-on of the entire mainboard to achieve power-off and restart of the system.

[0003] The implementation method is generally to control the 555 timer circuit through the general purpose input / output (GPIO) of the CPLD to realize the power-off and power-on control of the board power supply (such as P3V3_AUX). Specifically, the enable signal of P3V3_AUX is controlled by the specific GPIO on the CPLD through the 555 timer circuit; when the server is normally powered on, the GPIO controls the output signal of the 555 timer to pull the P3V3_AUX enable high, that is, to allow P3V3_AUX to be enabled; and when the entire board needs to be powered off, the GPIO controls the TRIG signal of the 555 timer to pull the P3V3_AUX enable low, at this time P3V3_AUX cannot be enabled, so the entire board is powered off; based on the above control process, the motherboard can be powered off and restarted.

[0004] However, the above power-off restart solution also has some defects:

[0005] When debugging the system or performing online upgrades, there is a situation where the CPLD firmware is burned incorrectly, that is, when burning the CPLD file, the wrong burning file for the model is selected; the control of the TRIG signal of the 555 timer by the CPLD firmware of different models may be implemented by different GPIOs; this results in that when the firmware is burned incorrectly, the GPIO state used to actually control the 555 timer may not match the expected control logic; when the motherboard needs to be powered on, the P3V3_AUX enable is pulled low, resulting in P3V3_AUX cannot be enabled, so that the entire board cannot be powered on normally. Similarly, when the CPLD itself fails, the state of the GPIO cannot be guaranteed, and the problem of the entire board being unable to be powered on normally may also occur.

[0006] Therefore, technicians in this field are in urgent need of a signal protection circuit to solve the problem that the entire board cannot be powered on due to CPLD failure or mis-burning in the above-mentioned traditional power-off restart solution. Summary of the invention

[0007] The purpose of the present invention is to provide a signal protection circuit, a server system, and a power-off restart method, device, and medium, which are used to solve the problem that the entire board cannot be powered on due to CPLD failure or mis-burning in the above-mentioned traditional power-off restart solution.

[0008] In order to solve the above technical problems, the present invention provides a signal protection circuit, comprising: a first voltage comparator, a second voltage comparator and an OR gate logic circuit;

[0009] The non-inverting input terminal of the first voltage comparator and the inverting input terminal of the second voltage comparator are connected to the general input / output port of the complex programmable logic device; the inverting input terminal of the first voltage comparator is connected to the first standard voltage; the non-inverting input terminal of the second voltage comparator is connected to the second standard voltage; the output terminal of the first voltage comparator is connected to the first input terminal of the OR gate logic circuit, and the output terminal of the second voltage comparator is connected to the second input terminal of the OR gate logic circuit;

[0010] The voltage value of the first standard voltage is lower than the voltage value of the high level and higher than the voltage value of the second standard voltage, and the voltage value of the second standard voltage is higher than the voltage value of the low level;

[0011] The output end of the OR gate logic circuit is connected to the timer, and is used to control the timer to turn off the board power enable only when the first voltage comparator and the second voltage comparator both output a low level. Otherwise, the OR gate logic circuit controls the timer to turn on the board power enable.

[0012] In a possible embodiment, the OR gate logic circuit includes: a first diode and a second diode;

[0013] The anode of the first diode is connected to the output end of the first voltage comparator, and the anode of the second diode is connected to the output end of the second voltage comparator; the cathode of the first diode and the cathode of the second diode are connected in common and connected to the timer.

[0014] In a possible embodiment, it further includes a driving circuit arranged between the OR gate logic circuit and the timer;

[0015] The driving circuit comprises: a field effect transistor, a triode, a first pull-up circuit and a second pull-up circuit;

[0016] Among them, the gate of the field effect tube is connected to the output end of the OR gate logic circuit, the drain of the field effect tube is grounded, the source of the field effect tube is connected to the first pull-up circuit and the base of the transistor, the emitter of the transistor is grounded, and the collector of the transistor is connected to the second pull-up circuit and the timer.

[0017] In a possible embodiment, it further includes: a first standard voltage circuit and a second standard voltage circuit;

[0018] The input ends of the first standard voltage circuit and the second standard voltage circuit are connected to the same power supply; the output end of the first standard voltage circuit is connected to the inverting input end of the first voltage comparator to provide the first standard voltage; the output end of the second standard voltage circuit is connected to the non-inverting input end of the second voltage comparator to provide the second standard voltage;

[0019] The first standard voltage circuit and the second standard voltage circuit have the same circuit structure but different circuit parameters, and are used to provide different voltage outputs.

[0020] In a possible embodiment, the first standard voltage circuit and the second standard voltage circuit are voltage divider circuits;

[0021] The voltage dividing circuit comprises: a first voltage dividing resistor and a second voltage dividing resistor;

[0022] The first end of the first voltage-dividing resistor is connected to the power supply, the second end of the first voltage-dividing resistor is connected to the first end of the second voltage-dividing resistor, and the second end of the second voltage-dividing resistor is grounded; the common end of the first voltage-dividing resistor and the second voltage-dividing resistor serves as the output end of the voltage-dividing resistor;

[0023] Among them, the ratio of the resistance value of the first voltage-dividing resistor corresponding to the first standard voltage circuit to the sum of the resistance values ​​of the first voltage-dividing resistor and the second voltage-dividing resistor is greater than the ratio of the resistance value of the first voltage-dividing resistor corresponding to the second standard voltage circuit to the sum of the resistance values ​​of the first voltage-dividing resistor and the second voltage-dividing resistor.

[0024] In a possible embodiment, a voltage value of the second standard voltage is higher than a voltage upper limit value corresponding to a low level.

[0025] To solve the above technical problems, the present invention further provides a server system, comprising: the signal protection circuit as described above, as well as a complex programmable logic device, a timer and a board power supply;

[0026] Wherein, the complex programmable logic device is connected to the timer through the signal protection circuit, and the timer is connected to the board power supply.

[0027] In a possible embodiment, it further includes: a timer delay circuit;

[0028] Wherein, the timer delay circuit comprises: a delay resistor and a delay capacitor;

[0029] The first end of the delay resistor is connected to the positive electrode of the power supply, the second end of the delay resistor is connected to the first end of the delay capacitor, the second end of the delay capacitor is grounded, and the common end of the delay resistor and the delay capacitor is connected to the threshold end and the discharge end of the timer;

[0030] The output end of the signal protection circuit is connected to the trigger end of the timer, and the output end of the timer is connected to the enable end of the board power supply;

[0031] The timer is also used for: if the trigger end of the timer is connected to a high level, the output end of the timer is closed; the discharge end of the timer is opened; the threshold end of the timer is grounded through the discharge end of the timer and connected to a low level;

[0032] If the trigger end of the timer is connected to a low level, the output end of the timer is turned on and outputs a high level; the discharge end of the timer is turned off, the delay capacitor is charged, and the threshold end of the timer is connected to the voltage at the first end of the delay capacitor; when the voltage at the first end of the delay capacitor is greater than the threshold voltage, the output end of the timer is turned off, the discharge end of the timer is turned on, the delay capacitor is discharged, and the threshold end of the timer is grounded through the discharge end of the timer; the output end of the timer is turned off;

[0033] Wherein, the capacitance value of the delay capacitor is determined according to a preset delay time.

[0034] In a possible embodiment, it further includes: a board power default enabling circuit disposed between the timer and the board power supply;

[0035] The board power default enabling circuit comprises: a switch module and a third pull-up circuit;

[0036] Wherein, the controlled end of the switch module is connected to the output end of the timer, the first end of the switch module is connected to the enable end of the board power supply, and the second end of the switch module is grounded;

[0037] The third pull-up circuit is connected to the enable terminal of the board power supply.

[0038] In order to solve the above technical problems, the present invention also provides a power-off restart method, which is applied to a server system, wherein the server system comprises the signal protection circuit as described above, as well as a complex programmable logic device, a timer and a board power supply; wherein the complex programmable logic device is connected to the timer through the signal protection circuit, and the timer is connected to the board power supply;

[0039] The method is applied to the complex programmable logic device side, comprising:

[0040] When the system is powered on, the general input / output port is controlled to output high or low level;

[0041] When receiving a board power-off instruction, controlling the general input / output port to output a target pulse signal to turn off the board power enable; wherein the effective voltage value of the target pulse signal is lower than the first standard voltage and higher than the second standard voltage;

[0042] After a preset delay time, the general input / output port is controlled to output a high level or a low level to enable the power supply of the board.

[0043] In order to solve the above technical problems, the present invention also provides a power-off restart device, which is applied to a server system. The server system includes the signal protection circuit as described above, as well as a complex programmable logic device, a timer and a board power supply; wherein the complex programmable logic device is connected to the timer through the signal protection circuit, and the timer is connected to the board power supply;

[0044] The device includes:

[0045] The power-on module is used to control the general input / output port to output a high level or a low level when the system is powered on;

[0046] A power-off module, for controlling the universal input / output port to output a target pulse signal to turn off the power of the board card after receiving a power-off instruction of the board card; wherein the effective voltage value of the target pulse signal is lower than the first standard voltage and higher than the second standard voltage;

[0047] The power-on module is used to control the general input / output port to output a high level or a low level after a delay of a preset time, so as to enable the power supply of the board card.

[0048] To solve the above technical problem, the present invention further provides a non-volatile storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the power-off restart method described above are implemented.

[0049] The present invention provides a signal protection circuit, which further performs logic processing on the GPIO output signal of the CPLD through two voltage comparators and an OR gate logic circuit: only when the GPIO output voltage value is lower than the first standard voltage and higher than the second standard voltage signal, the OR gate logic circuit outputs a low level to the timer, and the timer can be a 555 timer used to control the P3V3_AUX enable in the related technology, so as to control the 555 timer to turn off the P3V3_AUX enable, so as to power off the mainboard; otherwise, no matter the GPIO outputs a low level or a high level, the OR gate logic circuit outputs a high level, turns on the P3V3_AUX enable, and the CPLD controls the effective state of the P3V3_AUX enable; and only when the CPLD has a correct burning version and works normally, can the CPLD ensure that the specific GPIO outputs a specific signal other than the high and low levels, and can turn off the P3V3_AUX enable to power off the mainboard, and in other cases, the CPLD cannot turn off the P3V3_AUX enable. Therefore, based on the signal protection circuit provided by the present invention, the problem of the entire board being unable to be powered on due to CPLD mis-burning or failure can be avoided.

[0050] The server system, power-off restart method, device, and non-volatile storage medium provided by the present invention correspond to the above method and have the same effects as above. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0052] Figure 1 A structural diagram of a signal protection circuit and a server system provided by the present invention;

[0053] Figure 2 A structural diagram of another signal protection circuit provided by the present invention;

[0054] Figure 3 A flowchart of a power-off restart method provided by the present invention;

[0055] Figure 4 A structural diagram of a power-off restart device provided by the present invention;

[0056] Figure 5 A structural diagram of another power-off restart device provided by the present invention. DETAILED DESCRIPTION

[0057] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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.

[0058] The core of the present invention is to provide a signal protection circuit, a server system, and a power-off restart method, device, and medium.

[0059] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0060] When the server or storage device is undergoing firmware upgrade or fault recovery, it is generally necessary to use a complex programmable logic device (CPLD) to control the power off and power on of the entire mainboard to achieve power-off restart of the system. The CPLD controls the 555 timer (i.e., the GPIO connected to the trigger end of the 555 timer, the trigger end is also the TRIG end) through a specific general purpose input / output port (GPIO). When the system is normally powered on, the GPIO controls the 555 timer to pull up the board power (e.g., P3V3_AUX) and turn on the enable control of P3V3_AUX; when the entire mainboard needs to be powered off, the GPIO is also used to control the 555 timer to pull down P3V3_AUX, that is, to turn off the enable control of P3V3_AUX. At this time, P3V3_AUX cannot be enabled, and the mainboard is powered off; then, after a delay, the GPIO is used to control the 555 timer to pull up P3V3_AUX again, and the enable control is restored to restore the power supply to the mainboard.

[0061] However, the above solution also has some problems:

[0062] 1. When debugging the system or performing online upgrades, the CPLD may be mistakenly burned, that is, the firmware version burned by the CPLD is wrong; at this time, it cannot be guaranteed whether the mistakenly burned firmware controls whether P3V3_AUX is enabled or not through the same GPIO (that is, the GPIO connected to the trigger end of the 555 timer); if not, the state of the GPIO cannot be guaranteed when the CPLD is mistakenly burned, and the GPIO may pull P3V3_AUX low when the motherboard needs to be powered on, causing the entire motherboard to fail to power on normally.

[0063] 2. Similar to the above problem, when the CPLD fails, there is no guarantee that the GPIO status is as expected, and there is also the possibility that the entire motherboard cannot be powered on normally.

[0064] To solve the above problems, the present invention provides a signal protection circuit 10, such as Figure 1 As shown, it includes: a first voltage comparator 11, a second voltage comparator 12 and an OR gate logic circuit 13;

[0065] The non-inverting input terminal of the first voltage comparator 11 and the inverting input terminal of the second voltage comparator 12 are connected to the general input / output port of the complex programmable logic device 20; the inverting input terminal of the first voltage comparator 11 is connected to the first standard voltage (V1); the non-inverting input terminal of the second voltage comparator 12 is connected to the second standard voltage (V2); the output terminals of the first voltage comparator 11 and the second voltage comparator 12 are respectively connected to the OR gate logic circuit 13;

[0066] The voltage value of the first standard voltage is lower than the voltage value of the high level and higher than the voltage value of the second standard voltage, and the voltage value of the second standard voltage is higher than the voltage value of the low level;

[0067] The output end of the OR gate logic circuit 13 is connected to the timer, and is used for the OR gate logic circuit 13 to output a low level only when the first voltage comparator 11 and the second voltage comparator 12 both output a low level, otherwise the OR gate logic circuit 13 outputs a high level.

[0068] The above-mentioned timer may be the 555 timer 30 used in the related art to control P3V3_AUX enable.

[0069] Specifically, the signal protection circuit 10 implements the control principle of enabling the board power supply 40 as follows:

[0070] In practical applications, the output terminal of the 555 timer 30 generally outputs a low level by default. When the voltage at the trigger terminal is less than 1 / 3V 555 (555 timer power supply voltage), the output is inverted and the output is high.

[0071] Further, based on the setting of the first standard voltage and the second standard voltage, when the CPLD GPIO outputs a high level, its voltage value is greater than the first standard voltage and the second standard voltage; at this time, the voltage at the non-inverting input terminal of the first voltage comparator 11 is greater than the voltage at the inverting input terminal, and a high level is output; similarly, the voltage at the inverting input terminal of the second voltage comparator 12 is greater than the voltage at the non-inverting input terminal, and a low level is output; according to the internal logic of the OR gate logic circuit 13, a high level and a low level are input, and the OR gate logic circuit 13 outputs a high level; therefore, the OR gate logic circuit 13 pulls up the trigger end of the 555 timer 30, and the 555 timer 30 outputs a signal (P3V3_AUX_EN) to turn on P3V3_AUX enable.

[0072] When the CPLD GPIO outputs a low level, its voltage value is less than the first standard voltage and the second standard voltage; at this time, the voltage at the non-inverting input terminal of the first voltage comparator 11 is less than the voltage at the inverting input terminal, and the output is a low level; similarly, the voltage at the inverting input terminal of the second voltage comparator 12 is less than the voltage at the non-inverting input terminal, and the output is a high level; according to the internal logic of the OR gate logic circuit 13, a high level and a low level are input, and the OR gate logic circuit 13 still outputs a high level; therefore, the OR gate logic circuit 13 still pulls up the trigger end of the 555 timer 30, and the 555 timer 30 outputs a signal to turn on P3V3_AUX to enable.

[0073] When the voltage value of the CPLD GPIO output signal is less than the first standard voltage and greater than the second standard voltage, the voltage at the non-inverting input terminal of the first voltage comparator 11 is less than the voltage at the inverting input terminal, and the output is a low level; the voltage at the inverting input terminal of the second voltage comparator 12 is greater than the voltage at the non-inverting input terminal, and the output is a low level; according to the internal logic of the OR gate logic circuit 13, when two low levels are input, the OR gate logic circuit 13 outputs a low level; at this time, the OR gate logic circuit 13 pulls down the trigger end of the 555 timer 30, the output signal of the 555 timer 30 is inverted, the P3V3_AUX enable is turned off, and the mainboard is powered off.

[0074] Based on the above-mentioned board power supply 40 enabling control principle, it can be known that when the CPLD GPIO signal protection is performed by the signal protection circuit 10 provided by the present invention, the GPIO output logic of the CPLD needs to be changed when the mainboard needs to be powered off, and the output voltage value needs to be lower than the first standard voltage and higher than the second standard voltage to meet the control requirements. There is no restriction on the output needs in other scenarios, and P3V3_AUX can be enabled regardless of whether the output is low level or high level.

[0075] Through the signal protection circuit 10 provided by the present invention, only when the CPLD GPIO output voltage value is less than the first standard voltage and greater than the signal of the second standard voltage, can the P3V3_AUX enable be turned off to power off the mainboard. In addition, no matter whether the GPIO outputs a high level or a low level, the P3V3_AUX enable cannot be turned off. And it is easy to understand that only when the CPLD operates normally and there is no wrong firmware version burned, can the specific GPIO output a specific signal of a non-high level and a low level be guaranteed, and can the P3V3_AUX enable be turned off to power off the mainboard. That is, through the signal protection circuit 10 provided by the present invention, the problem that the mainboard cannot be powered on normally due to the wrong burning or failure of the CPLD can be effectively avoided, and the reliable implementation of the system firmware upgrade and fault recovery process is better guaranteed.

[0076] On the other hand, with respect to how the OR gate logic circuit 13 in the signal protection circuit 10 provided in the above embodiment is specifically implemented, this embodiment also provides a possible implementation scheme:

[0077] Firstly, based on the above embodiment, it can be known that the output logic of the OR gate logic circuit 13 is to output a low level only when both the first voltage comparator 11 and the second voltage comparator 12 output a low level, otherwise both output a high level. That is, the OR gate logic circuit 13 has the truth value relationship shown in Table 1 below:

[0078] Table 1 OR gate logic circuit input and output relationship truth table

[0079] IN1 (first voltage comparator) IN2 (Second voltage comparator) OUT(555 timer) 0 0 0 0 1 1 1 0 1 1 1 1

[0080] Furthermore, this embodiment provides a possible specific circuit implementation scheme of an OR gate logic circuit 13, such as Figure 2 As shown, the OR gate logic circuit 13 includes: a first diode and a second diode;

[0081] The anode of the first diode is connected to the output end of the first voltage comparator 11 (A1), and the anode of the second diode is connected to the output end of the second voltage comparator 12 (A2); the cathode of the first diode and the cathode of the second diode are connected in common and connected to the 555 timer 30.

[0082] Based on the circuit configuration of this embodiment, when both the first voltage comparison module and the second voltage comparison module output a low level, the cathode common terminal of the first diode and the cathode common terminal of the second diode (i.e., the output terminal of the OR gate logic circuit 13, i.e., Figure 2When the first voltage comparison module outputs a low level and the second voltage comparison module outputs a high level, the high level can pass through the second diode to point B, and the first diode prevents the high level at point B from being pulled down by the low level output by the first voltage comparator 11. At this time, point B is a high level. Similarly, when the first voltage comparison module outputs a high level and the second voltage comparison module outputs a low level, point B is also a high level. When both the first voltage comparison module and the second voltage comparison module output a high level, point B must be a high level.

[0083] Based on the above, it is not difficult to see that the specific circuit implementation scheme of the OR gate logic circuit 13 provided in this embodiment can satisfy the truth value relationship shown in Table 1 above, that is, it can bring the technical effect of the signal protection circuit 10 described in the above embodiment. In addition, the OR gate logic circuit 13 provided in this embodiment is simple to implement and can be realized with only two diodes, which will not bring too high implementation difficulty, implementation cost and circuit area to the implementation of the signal protection circuit 10, thereby better adapting to the actual application needs.

[0084] On the other hand, the signal protection circuit 10 provided by the present invention may include other hardware modules in addition to the hardware components and connection relationships shown in the above embodiment. This embodiment provides a further implementation scheme. Figure 3 As shown, the signal protection circuit 10 further includes: a driving circuit 14 disposed between the OR gate logic circuit 13 and the 555 timer 30;

[0085] The driving circuit 14 includes: a field effect transistor (MOS transistor), a triode, a first pull-up circuit and a second pull-up circuit; the field effect transistor can be an N-type field effect transistor, that is, an NMOS transistor.

[0086] Among them, the gate of the field effect tube is connected to the output end of the OR gate logic circuit 13, the drain of the field effect tube is grounded, the source of the field effect tube is connected to the first pull-up circuit and the base of the transistor, the emitter of the transistor is grounded, and the collector of the transistor is connected to the second pull-up circuit and the 555 timer 30.

[0087] Based on the driving circuit 14 provided in this embodiment, combined with Figure 2 The circuit nodes A, B, C, and D given in the embodiment further provide a truth value relationship as shown in Table 2 to further illustrate the level output logic of the signal protection circuit 10 provided in the embodiment:

[0088] Table 2 State truth table of each point in the signal protection circuit

[0089] CPLD GPIO output status A B C D OUT(555 timer) Low level 1 1 0 1 0 High level 0 1 0 1 0 Pulse signal with specific duty cycle (V1,V2) 0 1 0 1

[0090] It can be seen from Table 2 that the driving circuit 14 provided in this embodiment does not affect the control logic of the CPLD GPIO on the 555 timer 30, and only serves to improve the driving capability of the control signal finally output by the OR gate logic circuit 13. It is easy to know that the output of the CPLD GPIO may not meet the driving requirements of the 555 timer 30, so this embodiment further sets a driving circuit 14 between the two to improve the driving capability of the output level under the premise of ensuring that the output level logic of the CPLD GPIO remains unchanged, so as to ensure normal and reliable control of the 555 timer 30.

[0091] On the other hand, for the setting of the first standard voltage and the second standard voltage in the above embodiment, a simplest implementation can be implemented by a specific voltage source. However, based on the special requirements of the present invention for the magnitude of the first standard voltage and the second standard voltage, this embodiment provides an implementation for obtaining the first standard voltage and the second standard voltage. The signal protection circuit 10 is as follows: Figure 2 As shown, it also includes: a first standard voltage circuit 15 and a second standard voltage circuit 16;

[0092] The input ends of the first standard voltage circuit 15 and the second standard voltage circuit 16 are connected to the same power supply; the output end of the first standard voltage circuit 15 is connected to the inverting input end of the first voltage comparator 11 to provide a first standard voltage; the output end of the second standard voltage circuit 16 is connected to the non-inverting input end of the second voltage comparator 12 to provide a second standard voltage;

[0093] The first standard voltage circuit 15 and the second standard voltage circuit 16 have the same circuit structure but different circuit parameters, and are used to provide different voltage outputs.

[0094] Furthermore, this embodiment also provides a specific circuit implementation scheme of the first standard voltage circuit 15 and the second standard voltage circuit 16, such as Figure 2 As shown, the first standard voltage circuit 15 and the second standard voltage circuit 16 are voltage divider circuits;

[0095] The voltage dividing circuit comprises: a first voltage dividing resistor and a second voltage dividing resistor;

[0096] The first end of the first voltage-dividing resistor is connected to the power supply, the second end of the first voltage-dividing resistor is connected to the first end of the second voltage-dividing resistor, and the second end of the second voltage-dividing resistor is grounded; the common end of the first voltage-dividing resistor and the second voltage-dividing resistor serves as the output end of the voltage-dividing resistor;

[0097] Among them, the ratio of the resistance value of the first voltage-dividing resistor corresponding to the first standard voltage circuit to the sum of the resistance values ​​of the first voltage-dividing resistor and the second voltage-dividing resistor is greater than the ratio of the resistance value of the first voltage-dividing resistor corresponding to the second standard voltage circuit to the sum of the resistance values ​​of the first voltage-dividing resistor and the second voltage-dividing resistor.

[0098] The circuit of this embodiment is simple to implement and does not require the introduction of an additional voltage source, which can effectively reduce the implementation cost and circuit area and better meet the needs of practical applications.

[0099] Furthermore, in the above embodiment, the voltage values ​​of the first standard voltage and the second standard voltage have the following requirements: VCC>V1>V2>0.

[0100] Among them, VCC is the power supply voltage value, that is, the voltage value of the high level; V1 is the voltage value of the first standard voltage; V2 is the voltage value of the second standard voltage; and 0 is the voltage value of the low level.

[0101] This embodiment also provides an implementation scheme, which makes further requirements on the voltage values ​​of the first standard voltage and the second standard voltage:

[0102] The voltage value of the second standard voltage is higher than the voltage upper limit value corresponding to the low level.

[0103] That is: VCC>V1>V2>V0>0.

[0104] Among them, V0 represents a fixed value, which is determined according to the upper limit of the voltage of the low level in actual application. That is, when the voltage value of the GPIO signal is higher than V0, the GPIO output is not considered to be low level.

[0105] This embodiment further regulates the voltage values ​​of the first standard voltage and the second standard voltage to avoid the signal output by the GPIO and which needs to meet a specific voltage value range being regarded as a low level when the mainboard needs to be powered off, thereby causing the second voltage comparator 12 to make an erroneous judgment and affecting the normal implementation of the P3V3_AUX enable control.

[0106] In the above embodiment, a signal protection circuit 10 is described in detail. The present invention also provides an embodiment corresponding to a server system. Figure 1 As shown, a server system includes: a signal protection circuit 10 as described in the above embodiment, as well as a complex programmable logic device 20, a 555 timer 30 and a board power supply 40;

[0107] The complex programmable logic device 20 is connected to the 555 timer 30 through the signal protection circuit 10 , and the 555 timer 30 is connected to the board power supply 40 .

[0108] Since the server system provided in this embodiment includes the signal protection circuit 10 of the above embodiment, when the firmware is upgraded or fault recovery is performed in the server system, the effect brought by the signal protection circuit 10 of the above embodiment can be brought about. For details, please refer to some embodiments of the signal protection circuit 10, which will not be elaborated here.

[0109] Furthermore, this embodiment also provides a possible implementation scheme, such as Figure 2 As shown, the above server system further includes: a timer delay circuit 31;

[0110] Wherein, the timer delay circuit includes 31: a delay resistor and a delay capacitor;

[0111] The first end of the delay resistor is connected to the positive electrode of the power supply, the second end of the delay resistor is connected to the first end of the delay capacitor, the second end of the delay capacitor is grounded, and the common end of the delay resistor and the delay capacitor is connected to the threshold end and the discharge end of the timer;

[0112] The output end of the signal protection circuit is connected to the trigger end (TRIG end) of the timer, and the output end (OUT end) of the timer is connected to the enable end (EN end) of the board power supply;

[0113] The timer is also used for: if the trigger end of the timer is connected to a high level, the output end of the timer is closed; the discharge end (DISCH end) of the timer is opened; the threshold end (THRES end) of the timer is grounded through the discharge end of the timer and connected to a low level;

[0114] If the trigger end of the timer is connected to a low level, the output end of the timer is turned on and outputs a high level; the discharge end of the timer is turned off, the delay capacitor is charged, and the threshold end of the timer is connected to the voltage at the first end of the delay capacitor; when the voltage at the first end of the delay capacitor is greater than the threshold voltage, the output end of the timer is turned off, the discharge end of the timer is turned on, the delay capacitor is discharged, and the threshold end of the timer is grounded through the discharge end of the timer; the output end of the timer is turned off;

[0115] The capacitance value of the delay capacitor is determined according to the preset delay time. In practical applications, the delay time is generally 1.1 times the clock cycle, and the threshold voltage of the timer threshold end is generally 2 / 3Vdd, so the time it takes for the voltage at the first end of the delay capacitor to charge from 0 to 2 / 3Vdd is the delay time.

[0116] The timer delay circuit is used to realize the automatic power-on of the timer-controlled board after the power is off for a period of time, so as to meet the control needs of the board powering off and then powering on. There is no need to introduce additional control equipment or occupy CPLD resources, making the solution easier to implement and more efficient.

[0117] Furthermore, this embodiment also provides a possible implementation scheme, the above-mentioned server system is as follows: Figure 2 As shown, it also includes: a board power default enabling circuit 32 arranged between the timer and the board power supply;

[0118] The board power default enabling circuit 32 includes: a switch module and a third pull-up circuit;

[0119] Wherein, the controlled end of the switch module is connected to the output end of the timer, the first end of the switch module is connected to the enable end of the board power supply, and the second end of the switch module is grounded;

[0120] The third pull-up circuit is connected to the enable terminal of the board power supply.

[0121] The board power default enabling circuit provided in this embodiment is used to enable the board power by default, so as to avoid power failure of the board when the CPLD or timer cannot normally control the board power enabling.

[0122] On the other hand, based on a server system provided in the above embodiment, this embodiment also provides a power-off restart method applied thereto to ensure that when the system is powered off and restarted, the mainboard will not be unable to power on normally due to CPLD firmware misburning or failure.

[0123] A power-off restart method is applied to the server system of the above embodiment, and is specifically applied to the CPLD side, such as Figure 3 As shown, the method includes:

[0124] S11: When the system is powered on, it controls the general input / output port to output high or low level;

[0125] S12: after receiving the board power-off instruction, controlling the general input / output port to output a target pulse signal to turn off the board power enable; wherein the effective voltage value of the target pulse signal is lower than the first standard voltage and higher than the second standard voltage;

[0126] S13: After a preset delay time, the general input / output port is controlled to output a high level or a low level to enable the power supply of the board.

[0127] For step S11 and step S13, before using the signal protection circuit provided by the present invention, the GPIO is generally used to output a high level to control P3V3_AUX to be enabled. However, after the signal protection circuit provided by the present invention is used, no matter whether the GPIO outputs a high level or a low level, the OR gate logic circuit can output a high level to control P3V3_AUX to be enabled, so this embodiment does not limit whether the GPIO outputs a high level or a low level when the system is powered on. Similarly, after the mainboard is powered off for a period of time, if it is necessary to restore the mainboard power supply to achieve power-on again, at this time, the GPIO can also restore P3V3_AUX to be enabled regardless of whether it outputs a high level or a low level, and this embodiment also does not limit the specific output of the GPIO to be a high level or a low level.

[0128] As for step S12, it can be known from the above embodiment that P3V3_AUX can be turned off only when the signal output by GPIO meets the voltage value lower than the first standard voltage and higher than the second standard voltage. Therefore, it is required that CPLD can output this specific signal after receiving the board power-off instruction. For the GPIO of CPLD, it is usually not possible to directly output a voltage signal whose voltage value meets the requirements. Therefore, by outputting a pulse signal with a specific duty cycle, the effective voltage value of which meets the above conditions, the control purpose required for board power-off can be achieved.

[0129] For example, in a possible application scenario, the power supply voltage VCC is set to 3.3V, the first standard voltage V1 is set to 2.4V, and the second standard voltage V2 is set to 1.8V. If the mainboard needs to be powered off, the CPLD GPIO needs to output a pulse signal with an effective voltage value between 1.8V and 2.4V. At this time, the duty cycle can be set to 70%, which can meet the control requirements.

[0130] The above duty cycle can be pre-configured into the CPLD. When the mainboard needs to be powered off, the CPLD outputs a corresponding pulse signal according to the configured fixed duty cycle to turn off the P3V3_AUX enable. Further, this embodiment also provides a possible implementation scheme for how the CPLD obtains the fixed duty cycle of the pulse signal. The method also includes:

[0131] S21: When the CPLD is powered on, it checks whether a configured fixed duty cycle already exists;

[0132] S22: If not present, obtaining the first standard voltage, the second standard voltage and the voltage value of the high level, and calculating the duty cycle that meets the preset requirement;

[0133] The preset requirement is that the effective voltage value of the pulse signal generated based on the calculated duty cycle is lower than the first standard voltage and higher than the second standard voltage.

[0134] S23: The calculated duty cycle is retained as a fixed duty cycle.

[0135] The first standard voltage, the second standard voltage and the high level voltage value obtained in the above step S22 can be implemented by pre-configuration. Further, when the first standard voltage and the second standard voltage are obtained by the first voltage divider circuit and the second voltage divider circuit as described in the above embodiment, the voltage values ​​of the first standard voltage and the second standard voltage can also be obtained by calculating by entering the voltage divider resistance values ​​of the first voltage divider circuit and the second voltage divider circuit.

[0136] Since the first standard voltage, the second standard voltage (the voltage-dividing resistance values ​​of the first voltage-dividing circuit and the second voltage-dividing circuit) and the voltage value of the high level are fixed after the system design is completed, the fixed duty cycle in the above method only needs to be calculated once and can be used in subsequent power-off restarts that occur multiple times. This method queries whether the fixed duty cycle has been configured each time the CPLD is powered on; if it has been configured, it is directly called during the subsequent power-off restart process; if it has not been configured, the first standard voltage, the second standard voltage and the voltage value of the high level are obtained to calculate the duty cycle, and the obtained duty cycle is retained as a fixed duty cycle; so that there is no need to calculate it later, and it can be directly called, which simplifies the parameter configuration process and further reduces the burden of parameter configuration.

[0137] A power-off restart method provided by this embodiment is applied to the server system built based on the signal protection circuit provided by the present invention. Only when the mainboard needs to be powered off, the CPLD GPIO outputs a pulse signal with a specific duty cycle to make its effective voltage value lower than the first standard voltage and higher than the second standard voltage, thereby turning off the P3V3_AUX enable and realizing the mainboard power off. In abnormal scenarios, whether the CPLD GPIO outputs a high level or a low level, the P3V3_AUX enable cannot be turned off, and the problem of the mainboard being unable to power on normally due to CPLD firmware mis-burning or failure can be avoided.

[0138] In the above embodiment, a power-off restart method is described in detail, and the present invention also provides a corresponding embodiment of a power-off restart device. It should be noted that the present invention describes the embodiment of the device part from two perspectives, one is based on the functional module perspective, and the other is based on the hardware perspective.

[0139] Based on the perspective of functional modules, this embodiment provides a power-off restart device, which is applied to the server system of the above embodiment, such as Figure 4 As shown, including:

[0140] The power-on module 51 is used to control the general input / output port to output a high level or a low level when the system is powered on;

[0141] The power-off module 52 is used to control the universal input / output port to output a target pulse signal to turn off the power of the board card after receiving the board power-off instruction; wherein the effective voltage value of the target pulse signal is lower than the first standard voltage and higher than the second standard voltage;

[0142] The power-on module 53 is used to control the general input / output port to output a high level or a low level after a delay of a preset time, so as to enable the power supply of the board.

[0143] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.

[0144] Figure 5 A structural diagram of a power-off restart device provided by another embodiment of the present invention is shown in FIG. Figure 5 As shown, a power-off restart device includes: a memory 60 for storing a computer program;

[0145] The processor 61 is used to implement the steps of a power-off restart method in the above embodiment when executing a computer program.

[0146] The power-off restart device provided in this embodiment may include but is not limited to a mobile terminal, a personal computer, a workstation, etc.

[0147] Among them, the processor 61 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 61 can be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 61 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 61 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 61 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.

[0148] The memory 60 may include one or more computer-readable storage media, which may be non-transitory. The memory 60 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 60 is at least used to store the following computer program 601, wherein, after the computer program is loaded and executed by the processor 61, it can implement the relevant steps of a power-off restart method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 60 may also include an operating system 602 and data 603, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 602 may include Windows, Unix, Linux, etc. Data 603 may include, but is not limited to, a power-off restart method, etc.

[0149] In some embodiments, a power-off restart device may further include a display screen 62 , an input / output interface 63 , a communication interface 64 , a power supply 65 , and a communication bus 66 .

[0150] Those skilled in the art will understand that Figure 5 The structure shown in the figure does not constitute a limitation on a power-off restart device, and may include more or less components than those shown in the figure.

[0151] A power-off restart device provided by an embodiment of the present invention includes a memory and a processor. When the processor executes a program stored in the memory, it can implement the following method: a power-off restart method.

[0152] In addition to the embodiments of a signal protection circuit, a server system, and a power-off restart method and device provided in the above embodiments, the present invention also provides an embodiment corresponding to a computer program product. A computer program product includes a computer program / instruction, and when the computer program / instruction is executed by a processor, the steps of the power-off restart method described in any of the above embodiments can be implemented.

[0153] Since the embodiments of the computer program product part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the computer program product part, which will not be repeated here.

[0154] Finally, the present invention also provides an embodiment corresponding to a non-volatile storage medium. The non-volatile storage medium stores a computer program, and when the computer program is executed by a processor, the steps recorded in the above method embodiment are implemented.

[0155] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc. Various media that can store program codes.

[0156] The above is a detailed introduction to a signal protection circuit, a server system, and a power-off restart method, device, and medium provided by the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referenced 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 method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the present invention.

[0157] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. A signal protection circuit, characterized in that: include: A first voltage comparator, a second voltage comparator and an OR gate logic circuit; The non-inverting input terminal of the first voltage comparator and the inverting input terminal of the second voltage comparator are connected to the general input / output port of the complex programmable logic device; the inverting input terminal of the first voltage comparator is connected to the first standard voltage; the non-inverting input terminal of the second voltage comparator is connected to the second standard voltage; the output terminal of the first voltage comparator is connected to the first input terminal of the OR gate logic circuit, and the output terminal of the second voltage comparator is connected to the second input terminal of the OR gate logic circuit; The voltage value of the first standard voltage is lower than the voltage value of the high level and higher than the voltage value of the second standard voltage, and the voltage value of the second standard voltage is higher than the voltage value of the low level; The output end of the OR gate logic circuit is connected to the timer, and is used to control the timer to turn off the board power enable only when the first voltage comparator and the second voltage comparator both output a low level. Otherwise, the OR gate logic circuit controls the timer to turn on the board power enable.

2. The signal protection circuit according to claim 1, characterized in that: The OR gate logic circuit comprises: a first diode and a second diode; The anode of the first diode is connected to the output end of the first voltage comparator, and the anode of the second diode is connected to the output end of the second voltage comparator; the cathode of the first diode and the cathode of the second diode are connected in common and connected to the timer.

3. The signal protection circuit according to any one of claims 1 to 3, characterized in that: Also includes a driving circuit arranged between the OR gate logic circuit and the timer; The driving circuit comprises: a field effect transistor, a triode, a first pull-up circuit and a second pull-up circuit; Among them, the gate of the field effect tube is connected to the output end of the OR gate logic circuit, the drain of the field effect tube is grounded, the source of the field effect tube is connected to the first pull-up circuit and the base of the transistor, the emitter of the transistor is grounded, and the collector of the transistor is connected to the second pull-up circuit and the timer.

4. The signal protection circuit according to claim 1, characterized in that: Also includes: a first standard voltage circuit and a second standard voltage circuit; The input ends of the first standard voltage circuit and the second standard voltage circuit are connected to the same power supply; the output end of the first standard voltage circuit is connected to the inverting input end of the first voltage comparator to provide the first standard voltage; the output end of the second standard voltage circuit is connected to the non-inverting input end of the second voltage comparator to provide the second standard voltage; The first standard voltage circuit and the second standard voltage circuit have the same circuit structure but different circuit parameters, and are used to provide different voltage outputs.

5. The signal protection circuit according to claim 4, characterized in that: The first standard voltage circuit and the second standard voltage circuit are voltage divider circuits; The voltage dividing circuit comprises: a first voltage dividing resistor and a second voltage dividing resistor; The first end of the first voltage-dividing resistor is connected to the power supply, the second end of the first voltage-dividing resistor is connected to the first end of the second voltage-dividing resistor, and the second end of the second voltage-dividing resistor is grounded; the common end of the first voltage-dividing resistor and the second voltage-dividing resistor serves as the output end of the voltage-dividing resistor; Among them, the ratio of the resistance value of the first voltage-dividing resistor corresponding to the first standard voltage circuit to the sum of the resistance values ​​of the first voltage-dividing resistor and the second voltage-dividing resistor is greater than the ratio of the resistance value of the first voltage-dividing resistor corresponding to the second standard voltage circuit to the sum of the resistance values ​​of the first voltage-dividing resistor and the second voltage-dividing resistor.

6. The signal protection circuit according to claim 1, characterized in that: The voltage value of the second standard voltage is higher than the voltage upper limit value corresponding to the low level.

7. A server system, characterized in that: include: The signal protection circuit as claimed in any one of claims 1 to 6, and a complex programmable logic device, a timer and a board power supply; Wherein, the complex programmable logic device is connected to the timer through the signal protection circuit, and the timer is connected to the board power supply.

8. The server system according to claim 7, characterized in that: Also includes: Timer delay circuit; Wherein, the timer delay circuit comprises: a delay resistor and a delay capacitor; The first end of the delay resistor is connected to the positive electrode of the power supply, the second end of the delay resistor is connected to the first end of the delay capacitor, the second end of the delay capacitor is grounded, and the common end of the delay resistor and the delay capacitor is connected to the threshold end and the discharge end of the timer; The output end of the signal protection circuit is connected to the trigger end of the timer, and the output end of the timer is connected to the enable end of the board power supply; The timer is also used for: if the trigger end of the timer is connected to a high level, the output end of the timer is closed; the discharge end of the timer is opened; the threshold end of the timer is grounded through the discharge end of the timer and connected to a low level; If the trigger end of the timer is connected to a low level, the output end of the timer is turned on and outputs a high level; the discharge end of the timer is turned off, the delay capacitor is charged, and the threshold end of the timer is connected to the voltage at the first end of the delay capacitor; when the voltage at the first end of the delay capacitor is greater than the threshold voltage, the output end of the timer is turned off, the discharge end of the timer is turned on, the delay capacitor is discharged, and the threshold end of the timer is grounded through the discharge end of the timer; the output end of the timer is turned off; Wherein, the capacitance value of the delay capacitor is determined according to a preset delay time.

9. The server system according to claim 7, characterized in that: Also includes: A board power default enabling circuit disposed between the timer and the board power supply; The board power default enabling circuit comprises: a switch module and a third pull-up circuit; Wherein, the controlled end of the switch module is connected to the output end of the timer, the first end of the switch module is connected to the enable end of the board power supply, and the second end of the switch module is grounded; The third pull-up circuit is connected to the enable terminal of the board power supply.

10. A power-off restart method, characterized in that: Applied to a server system, the server system comprising the signal protection circuit according to any one of claims 1 to 6, as well as a complex programmable logic device, a timer and a board power supply; wherein the complex programmable logic device is connected to the timer through the signal protection circuit, and the timer is connected to the board power supply; The method is applied to the complex programmable logic device side, comprising: When the system is powered on, the general input / output port is controlled to output high or low level; When receiving a board power-off instruction, controlling the general input / output port to output a target pulse signal to turn off the board power enable; wherein the effective voltage value of the target pulse signal is lower than the first standard voltage and higher than the second standard voltage; After a preset delay time, the general input / output port is controlled to output a high level or a low level to enable the power supply of the board.

Citation Information

Cited By

  • Server power supply circuit and method, computer equipment and storage medium

    CN119271025A

  • Data protection module and method and communication equipment

    CN120670342A

  • Server signal false pull-up prevention system and server

    CN121579264A

  • A server signal false pull-up prevention system and server

    CN121579264B