Method for automatically switching off power supply of a hard disk
By using the hard disk automatic power on/off control circuit and the level change of the SATA_PRSNT signal, the hard disk power is automatically turned on and off, solving the tedious power operation problem in hard disk debugging, simplifying the operation process and improving efficiency.
Patent Information
- Application Number
- CN202111446425.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-30
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2041-11-30
AI Technical Summary
In the prior art, the frequent power on and off operations during hard disk debugging are cumbersome and cannot achieve automatic control.
The hard disk automatic power on/off control circuit is adopted, and the high and low level changes of the SATA_PRSNT signal are utilized to realize the automatic opening and closing of the hard disk power supply through the combination of PNP tube and MOS tube. The circuit design includes resistors R302, R303, R304, R69, R67, transistor Q17, MOS tube Q1, MOS tube Q3, capacitor C42 and diode D25.
The automatic power on/off function of the hard disk is realized without the need for software programming and CPU or CPLD logic resources, which simplifies the operation process and avoids human errors.
Smart Images

Figure CN114242126B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of servers, in particular to a method for automatically turning on and off power to a hard disk. Background Art
[0002] In the current era of big data, data storage is becoming increasingly important, and hard drives are the most widely used data storage method. From mechanical hard drives to solid-state drives, hard drive capacities are increasing, and read speeds are accelerating. A hard drive's proper operation requires a working power supply. Currently, the hard drive is plugged into a backplane, which is powered by the motherboard. The hard drive begins operating after the motherboard is powered on. This system, which requires the motherboard to power on before the hard drive begins operating, can be cumbersome when frequently setting breakpoints during backplane debugging. Automatically disconnecting the power supply upon plugging in a hard drive would save time during backplane debugging. Summary of the Invention
[0003] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a method for automatically turning on and off the power supply of a hard disk, including a hard disk automatic power off control circuit, the hard disk automatic power off control circuit including resistors R302, R303, R304, R69, R67; a transistor Q17, a MOSFET Q1, a MOSFET Q3, a capacitor C42, and a diode D25;
[0004] One end of the resistor R302 is connected to the SATA_PRSNT signal terminal, and the other end of the resistor R302 is connected to the base of the transistor Q17. The emitter of the transistor Q17 is connected to the power supply, and the collector of the transistor Q17 is grounded through the resistor R303. The collector of the transistor Q17 is also connected to the gate of the MOSFET Q3 through the resistor R304. The source of the MOSFET Q3 is grounded, and the drain of the MOSFET Q3 is connected to the power supply through the resistor R67. The drain of the MOSFET Q3 is also connected to one end of the resistor R69. The other end of the resistor R69 is connected to the power supply through the capacitor C42. The other end of the resistor R69 is also connected to the gate of the MOSFET Q1. The drain of the MOSFET Q1 is connected to the power supply. The source of the MOSFET Q1 is connected to the positive electrode of the diode D25, and the negative end of the diode D25 is connected to the power supply.
[0005] The method for automatically turning the hard drive power off includes the following process: transistor Q17 is used as a low level to trigger the first-stage circuit. The SATA_PRSNT signal is set to a high level by default. Transistor Q17 is turned off, the gate of the N-MOS transistor Q3 is at a low level, the MOS transistor Q3 is turned off, and the gate of the P-MOS transistor is at a high level due to the Q3 being turned off. The MOS transistor is not conducting, the hard drive power supply 5V is not conducting, and the hard drive is powered off.
[0006] When the hard disk is plugged in, the SATA_PRSNT signal changes from high to low, the PNP tube is turned on, the N-MOS tube is turned on because Ugs reaches the threshold, Q1 is turned on, the hard disk power is turned on, and the hard disk power is automatically turned on and off.
[0007] Furthermore, when the hard drive is inserted, the SATA_PRSNT signal changes from high to low, including the following process: the SATA_PRSNT signal is connected to the fixed pin of the hard drive connector, the fixed pin is connected to GND at the hard drive end, and is connected to a pull-up resistor at the hard drive backplane end. When the hard drive is not inserted, the signal is pulled to a high level of 3.3V by the pull-up resistor on the hard drive backplane. When the hard drive is inserted, the signal is connected to the GND signal on the top of the hard drive, and the signal level changes from high to low.
[0008] The beneficial effects of the present invention are as follows: the method utilizes the principle that the SATA_PRSNT signal is high when the hard disk is unplugged and low when the hard disk is plugged in, and realizes the automatic power on / off function of the hard disk through the simple use of a PNP transistor and a MOS transistor, and can be used for hot plugging; the method does not require software programming, does not require temporary use of CPU or CPLD logic resources, and is simple to implement, achieves automatic power on / off, and does not cause errors. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 The present invention is a schematic diagram of a control circuit for a method of automatically turning on and off the power supply of a hard disk. DETAILED DESCRIPTION
[0010] The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings, but the protection scope of the present invention is not limited to the following.
[0011] like Figure 1 As shown, a method for automatically turning off the power supply of a hard disk includes a hard disk automatic power off control circuit, the hard disk automatic power off control circuit includes resistors R302, R303, R304, R69, R67; transistor Q17, MOSFET Q1, MOSFET Q3, capacitor C42, and diode D25;
[0012] The one end of the resistor R302 is connected with the SATA_PRSNT signal terminal, the other end of the resistor R302 is connected with the base of the transistor Q17, the emitter of the transistor Q17 is connected with the power supply, the collector of the transistor Q17 is connected with the ground through the resistor R303; the collector of the transistor Q17 is also connected with the gate of the mos Q3 through the resistor R304; the source of the mos Q3 is connected with the ground, the drain of the mos Q3 is connected with the power supply through the resistor R67; the drain of the mos Q3 is also connected with one end of the resistor R69, the other end of the resistor R69 is connected with the power supply through the capacitor C42, the other end of the resistor R69 is also connected with the gate of the mos Q1, the drain of the mos Q1 is connected with the power supply, the source of the mos Q1 is connected with the positive pole of the diode D25, the negative pole of the diode D25 is connected with the power supply;
[0013] The method for automatically turning on and off the power supply of the hard disk comprises the following processes: the transistor Q17 is used as the low level trigger first stage circuit, the SATA_PRSNT signal is set as high level by default, the transistor Q17 is cut off, the gate of the N-MOS Q3 is low level, the MOS Q3 is cut off, the gate of the P-MOS is high level because the Q3 is cut off, the MOS is not conductive, the power supply 5V of the hard disk is not conductive, and the hard disk is powered off.
[0014] When the hard disk is inserted, the SATA_PRSNT signal changes from high to low, the PNP is turned on, the N-MOS is turned on because the Ugs reaches the threshold, the Q1 is turned on, the power supply of the hard disk is turned on, and the automatic turning on and off of the power supply of the hard disk is completed.
[0015] Specifically, the circuit uses the PNP as the low level trigger first stage circuit, the SATA_PRSNT signal is pulled high by default, and the PNP is cut off. The gate of the N-MOS Q3 is low level, the MOS Q3 is cut off. The gate of the P-MOS is high level because the Q3 is cut off, the MOS is not conductive, the power supply 5V of the hard disk is not conductive, and the hard disk is powered off. When the hard disk is inserted, the SATA_PRSNT signal changes from high to low, the PNP is turned on, the N-MOS is turned on because the Ugs reaches the threshold, the Q1 is turned on, and the power supply of the hard disk is turned on.
[0016] When the hard disk is inserted, the SATA_PRSNT signal changes from high to low, which comprises the following processes: the SATA_PRSNT signal is connected to the fixed pin of the hard disk connector, the fixed pin is connected to the GND at the hard disk end and is connected to the pull-up resistor at the hard disk backplane end. When the hard disk is not inserted, the signal is pulled to the high level of 3.3V by the pull-up resistor of the hard disk backplane. When the hard disk is inserted, the signal is connected through the hard disk and the GND signal, and the signal level changes from high to low.
[0017] The foregoing is considered as illustrative only of the principles of the application. Further, since numerous modifications and changes will readily occur to those skilled in the art, it is not desired to limit the application to the exact construction and operation described. Accordingly, all such variations are intended to be included within the scope of the present application as defined in the claims below and their equivalents.
Claims
1. A method for automatically turning off the power supply of a hard disk, characterized in that: It includes a hard disk automatic power off control circuit, which includes resistors R302, R303, R304, R69, and R67; a transistor Q17, a MOSFET Q1, a MOSFET Q3, a capacitor C42, and a diode D25; One end of the resistor R302 is connected to the SATA_PRSNT signal terminal, and the other end of the resistor R302 is connected to the base of the transistor Q17. The emitter of the transistor Q17 is connected to the power supply, and the collector of the transistor Q17 is grounded through the resistor R303. The collector of the transistor Q17 is also connected to the gate of the MOSFET Q3 through the resistor R304. The source of the MOSFET Q3 is grounded, and the drain of the MOSFET Q3 is connected to the power supply through the resistor R67. The drain of the MOSFET Q3 is also connected to one end of the resistor R69. The other end of the resistor R69 is connected to the power supply through the capacitor C42. The other end of the resistor R69 is also connected to the gate of the MOSFET Q1. The drain of the MOSFET Q1 is connected to the power supply. The source of the MOSFET Q1 is connected to the positive electrode of the diode D25, and the negative end of the diode D25 is connected to the power supply. The method for automatically turning the hard disk power on and off includes the following process: transistor Q17 is used as a low level to trigger the first-stage circuit. The SATA_PRSNT signal is set to a high level by default. Transistor Q17 is turned off, the gate of MOSFET Q3 is at a low level, MOSFET Q3 is turned off, the gate of MOSFET Q1 is at a high level due to the MOSFET Q3 being turned off, MOSFET Q1 is not conducting, the hard disk power supply 5V is not conducting, and the hard disk is powered off; When the hard disk is plugged in, the SATA_PRSNT signal changes from high to low, the transistor Q17 is turned on, the MOSFET Q3 is turned on because Ugs reaches the threshold, the MOSFET Q1 is turned on, the hard disk power is turned on, and the hard disk power is automatically turned on and off.
2. The method for automatically turning off the power supply of a hard disk according to claim 1, characterized in that: The SATA_PRSNT signal changes from high to low after the hard drive is inserted, which includes the following process: the SATA_PRSNT signal is connected to the fixed pin of the hard drive connector, the fixed pin is connected to GND at the hard drive end, and is connected to a pull-up resistor at the hard drive backplane end. When the hard drive is not inserted, the signal is pulled to a high level of 3.3V by the pull-up resistor on the hard drive backplane. When the hard drive is inserted, the signal is connected to the GND signal through the fixed pin of the hard drive connector, and the signal level changes from high to low.
Citation Information
Patent Citations
Hard disk power supply control circuit
CN101958140A
Hard disk power control circuit
CN201004206Y