A power supply circuit, method, device, medium and server for a hard disk
The synergistic effect of the hard drive detection circuit, logic control circuit, and protection circuit solves the power misalignment issue when the E1.S hard drive is inserted backwards. This ensures that the hard drive is powered only when correctly inserted and the system allows it, preventing damage and improving server stability and security.
Patent Information
- Application Number
- CN202411164998.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2044-08-23
AI Technical Summary
During factory assembly, E1.S hard drives can be easily inserted into the hard drive connector backwards, causing misalignment between the power pins and the ground pins. This can damage the hard drive and affect server performance.
Design hard drive detection circuits, logic control circuits, logic operation circuits, and protection circuits to detect the connection status between the hard drive and the connector and the system status to ensure that power is supplied to the hard drive only when the hard drive is inserted in the correct direction and the system allows power supply, thus avoiding misaligned connections.
Effectively prevent hard disk damage caused by reverse insertion, ensuring server system stability and data security.
Smart Images

Figure CN118969033B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of hard disk design, and in particular to a power supply circuit, method, device, medium and server for a hard disk. Background Art
[0002] There are many types of solid-state drives, but the E1.S offers unique advantages in terms of capacity and performance. The E1.S drive features a built-in heat sink and thermal interface material, ensuring it maintains performance without additional intervention. It also features a built-in LED (Light Emitting Diode), a feature not found in other drive types. Therefore, the E1.S has promising application prospects in the future SSD market. However, due to its structural design, the E1.S drive lacks a foolproofing feature, making it prone to reverse insertion during factory assembly. If an E1.S drive is inserted into the hard drive connector backward, the power pin on the connector can be mistakenly connected to the hard drive's ground pin, and the ground pin on the connector can be mistakenly connected to the hard drive's power pin. This connection could damage the E1.S drive and even affect server performance. Summary of the Invention
[0003] The purpose of the present invention is to provide a power supply circuit, method, device, medium and server for a hard disk, which can prevent power supply when it is detected that the hard disk is inserted reversely. Power supply is allowed to be provided to the hard disk connector only when the hard disk status allows power supply and the hard disk is inserted into the hard disk connector in the forward direction, thereby avoiding damage to the hard disk caused by misaligned connection between the power pin and the ground pin, and ensuring the stability of the server system.
[0004] In one aspect, the present application provides a power supply circuit for a hard disk, comprising:
[0005] a hard disk detection circuit connected to a preset pin of the hard disk connector, configured to detect a connection status between the hard disk and the hard disk connector via the preset pin and output a first signal according to the connection status; the connection status including a first state in which the hard disk is forwardly inserted into the hard disk connector, a second state in which the hard disk is reversely inserted into the hard disk connector, and a third state in which the hard disk is not inserted into the hard disk connector;
[0006] A logic control circuit, configured to generate a second signal according to a hard disk state set by a user, wherein the hard disk state includes a power-on state or a power-off state;
[0007] a logic operation circuit, whose input end is respectively connected to the output end of the hard disk detection circuit and the output end of the logic control circuit, and is used to perform a logic operation on the first signal and the second signal to obtain a third signal;
[0008] A protection circuit, wherein the power supply end is connected to the power supply, the enable end is connected to the output end of the logic operation circuit, and the output end is connected to the power supply end of the hard disk connector, and is used to determine whether to output the power supply to the power supply end of the hard disk connector according to the third signal of the enable end.
[0009] Wherein, it further comprises a first transistor and a second transistor, each transistor comprising a control terminal, a first terminal and a second terminal;
[0010] The output end of the hard disk detection circuit is connected to the control end of the first transistor and the control end of the second transistor respectively, the first end of the first transistor is connected to a power supply, the second end of the first transistor is connected to the first end of the second transistor and the input end of the logic operation circuit respectively, and the second end of the second transistor is grounded;
[0011] The first transistor is configured to be turned on when the first signal is at a low level;
[0012] The second transistor is configured to be turned on when the first signal is at a high level.
[0013] The logic operation circuit is specifically configured to output a third signal for providing power to the hard disk connector when the first signal corresponds to a first state in which the hard disk is forwardly inserted into the hard disk connector and the second signal corresponds to the power-on state; and output a third signal for stopping providing power to the hard disk connector when the first signal corresponds to a second state in which the hard disk is reversely inserted into the hard disk connector or a third state in which the hard disk is not inserted into the hard disk connector, or when the second signal corresponds to the power-off state.
[0014] The protection circuit is specifically used to connect the path between the power supply of its own power supply end and the power supply end of the hard disk connector when its own enabling end receives a third signal to supply power to the hard disk connector, so as to provide power to the hard disk connector; and to cut off the path between the power supply of its own power supply end and the power supply end of the hard disk connector when its own enabling end receives a third signal to stop supplying power to the hard disk connector, so as to stop providing power to the hard disk connector.
[0015] Among them, when the first signal corresponding to the first state of the hard disk being forwardly inserted into the hard disk connector is a high-level signal, and the second signal corresponding to the power-on state is a high-level signal, the logic operation circuit is an AND gate, the first input end of the AND gate is connected to the output end of the hard disk detection circuit, the second input end of the AND gate is connected to the logic control circuit, and the output end of the AND gate is the output end of the logic operation circuit.
[0016] Among them, the logic control circuit is specifically used to obtain the level status of the power supply pin and the ground pin of the hard disk connector and the hard disk to determine whether the hard disk is inserted into the hard disk connector in the forward direction or in the reverse direction, and when the hard disk is inserted into the hard disk connector in the forward direction and the hard disk status is the power-on state, output a second signal to supply power to the hard disk connector, and when the hard disk is not inserted into the hard disk connector or the hard disk is inserted into the hard disk connector in the reverse direction, or the hard disk status is the power-off state, output a second signal to stop supplying power to the hard disk connector.
[0017] When there is more than one hard disk, the number of the hard disk detection circuits, the logic operation circuits, the protection circuits, and the hard disk connectors is the same as the number of the hard disks; the hard disk detection circuits, the logic operation circuits, the protection circuits, the hard disk connectors, and the hard disks have a one-to-one correspondence;
[0018] The input end of the hard disk detection circuit is connected to a preset pin of the hard disk connector corresponding to the hard disk detection circuit, the output end of the hard disk detection circuit is connected to the input end of the logic operation circuit corresponding to the hard disk detection circuit, the output end of the logic operation circuit is connected to the enable end of the protection circuit corresponding to the hard disk detection circuit, the output end of the protection circuit is connected to the power supply end of the hard disk connector corresponding to the hard disk detection circuit, and the output end of the logic control circuit is connected to the input end of each of the logic operation circuits;
[0019] Each hard disk detection circuit is specifically configured to detect a connection status between the hard disk corresponding to itself and the hard disk connector according to a preset pin of the hard disk connector corresponding to itself, and output the first signal according to the connection status;
[0020] Each of the logic operation circuits is specifically configured to perform a logic operation on the second signal output by the logic operation circuit and the first signal output by the hard disk detection circuit corresponding to the logic operation circuit to obtain the third signal;
[0021] The protection circuit is specifically used to determine whether to output the power supply of its own power supply end to the hard disk connector corresponding to itself according to the third signal received by its own enabling end and output by its own corresponding logic operation circuit.
[0022] On the other hand, the present application provides a server, including the power supply circuit of the hard disk described above, and also including a hard disk and a hard disk connector, wherein the output end of the power supply circuit of the hard disk is connected to the hard disk connector.
[0023] On the other hand, the present application provides a method for powering a hard disk, comprising:
[0024] detecting a connection state between the hard disk and the hard disk connector through a preset pin of the hard disk connector, and outputting a first signal according to the connection state; the connection state includes a first state in which the hard disk is forwardly inserted into the hard disk connector, a second state in which the hard disk is reversely inserted into the hard disk connector, and a third state in which the hard disk is not inserted into the hard disk connector;
[0025] Generate a second signal according to a hard disk state set by a user, wherein the hard disk state includes a power-on state or a power-off state;
[0026] A logic operation is performed on the first signal and the second signal to obtain a third signal, and it is determined whether to provide power supply to the power supply end of the hard disk connector according to the third signal.
[0027] On the other hand, the present application provides a power supply device for a hard disk, comprising:
[0028] Memory for storing computer programs;
[0029] The processor is used to implement the steps of the above-mentioned hard disk power supply method when executing a computer program.
[0030] On the other hand, the present application provides a non-volatile storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the above-mentioned method for powering a hard disk are implemented.
[0031] The present invention provides a power supply circuit, method, device, medium and server for a hard disk, which relates to the field of hard disk design and is used to solve the problem that the hard disk may be damaged when it is inserted in reverse. Among them, the hard disk detection circuit can detect the connection status of the hard disk, including the forward insertion, reverse insertion or non-insertion status of the hard disk, and output the corresponding first signal; the logic control circuit generates a second signal according to the hard disk status set by the user, and inputs it and the first signal into the logic operation circuit for logical operation to obtain a third signal; the protection circuit determines whether to output power to the power supply end of the hard disk connector based on this third signal. This design can prevent power supply when it is detected that the hard disk is inserted in reverse, and only allows power to be provided to the hard disk connector when the hard disk status allows power supply and the hard disk is inserted in the forward direction into the hard disk connector, thereby avoiding damage to the hard disk caused by the misaligned connection of the power pin and the ground pin, and ensuring the stability of the server system. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the embodiments of the present invention, the following is a brief introduction to 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 any creative work.
[0033] Figure 1 This is a structural block diagram of a power supply circuit for a hard disk provided by the present invention;
[0034] Figure 2 A schematic diagram of the connection between a first transistor and a second transistor provided by the present invention;
[0035] Figure 3 A schematic diagram of a logic operation circuit provided by the present invention;
[0036] Figure 4 This is a flow chart of a power supply method for a hard disk provided by the present invention. DETAILED DESCRIPTION
[0037] The core of the present invention is to provide a hard disk power supply circuit, method, device, medium and server, which can prevent power supply when it is detected that the hard disk is inserted in reverse. Only when the hard disk status allows power supply and the hard disk is inserted into the hard disk connector in the forward direction, power supply is allowed to be provided to the hard disk connector, thereby avoiding damage to the hard disk caused by misaligned connection between the power pin and the ground pin, and ensuring the stability of the server system.
[0038] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings 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 making creative efforts shall fall within the scope of protection of the present invention.
[0039] On the one hand, if Figure 1 As shown, the present application provides a power supply circuit for a hard disk, comprising:
[0040] A hard disk detection circuit 11 is connected to a preset pin of the hard disk connector and is used to detect the connection status between the hard disk and the hard disk connector through the preset pin and output a first signal according to the connection status; the connection status includes a first state in which the hard disk is inserted into the hard disk connector in the forward direction, a second state in which the hard disk is inserted into the hard disk connector in the reverse direction, and a third state in which the hard disk is not inserted into the hard disk connector;
[0041] The logic control circuit 12 is configured to generate a second signal according to a hard disk state set by a user, where the hard disk state includes a power-on state or a power-off state;
[0042] The logic operation circuit 13 has an input end connected to the output end of the hard disk detection circuit 11 and the output end of the logic control circuit 12, and is used to perform a logic operation on the first signal and the second signal to obtain a third signal;
[0043] The protection circuit 14 is connected with the power supply at the power supply end, connected with the logic operation circuit 13 at the enable end, and connected with the hard disk connector at the output end, for determining whether to output the power supply to the power supply end of the hard disk connector according to the third signal of the enable end.
[0044] The design of the hard disk power supply circuit ensures that the hard disk is not damaged due to reverse insertion during the connection process, and improves the overall stability of the server system, by introducing four key components: the hard disk detection circuit 11, the logic control circuit 12, the logic operation circuit 13, and the protection circuit 14.
[0045] Firstly, the hard disk detection circuit 11 can monitor the connection state of the hard disk by connecting with the preset pin of the hard disk connector, and output the corresponding first signal. Specifically, the hard disk detection circuit 11 can identify whether the hard disk is inserted forward, inserted reversely, or not inserted, thereby providing a signal output corresponding to the three states. Secondly, the logic control circuit 12 generates a second signal according to the user-set hard disk state (such as booting or shutting down), which is used to indicate whether the current hard disk should be in a power-on state. Next, the logic operation circuit 13 receives the first signal from the hard disk detection circuit 11 and the second signal from the logic control circuit 12, and performs logical operation to obtain a third signal. This third signal reflects the comprehensive judgment result of the physical connection state of the hard disk and the user-set power state. Finally, the protection circuit 14 decides whether to output the power supply to the power supply end of the hard disk connector according to the state of the third signal. If the hard disk detection circuit 11 confirms that the hard disk has been correctly connected and the logic control circuit 12 allows power supply, the protection circuit 14 will turn on the power supply; otherwise, if the hard disk is detected to be inserted reversely or the user-set hard disk state does not allow power supply, the protection circuit 14 will prevent the power supply from being output.
[0046] This design ensures that even if reverse insertion or connection error occurs during the hard disk insertion process, the power supply pin and the ground pin will not be connected in the wrong position, thereby effectively avoiding damage to the hard disk and ensuring the stability and data security of the server system.
[0047] As shown in FIG. 1, the hard disk power supply circuit includes a hard disk detection circuit 11, a logic control circuit 12, a logic operation circuit 13, and a protection circuit 14. Figure 2 As shown in FIG. 1, the hard disk power supply circuit includes a hard disk detection circuit 11, a logic control circuit 12, a logic operation circuit 13, and a protection circuit 14.
[0048] The output end of the hard disk detection circuit 11 is connected with the control end of the first transistor T1 and the control end of the second transistor T2, respectively; the first end of the first transistor T1 is connected with the power supply; the second end of the first transistor T1 is connected with the first end of the second transistor T2 and the input end of the logic operation circuit 13, respectively; and the second end of the second transistor T2 is connected with the ground.
[0049] The first transistor T1 is used to be turned on when the first signal is at a low level.
[0050] The second transistor T2 is configured to be turned on when the first signal is at a high level.
[0051] In this embodiment, the hard disk power supply circuit also includes a first transistor T1 and a second transistor T2. These two transistors each have a control terminal, a first terminal, and a second terminal, and play a key role in logic conversion and control in the circuit. Specifically, the output terminal of the hard disk detection circuit 11 is connected to the control terminals of the first transistor T1 and the second transistor T2, respectively, to control their switching states. When the first signal output by the hard disk detection circuit 11 is at a low level, the first transistor T1 is turned on, allowing the power supply voltage to be transmitted to the input terminal of the logic operation circuit 13, and the input terminal of the logic operation circuit 13 receives a high-level signal. When the first signal is at a high level, the second transistor T2 is turned on, pulling the corresponding node to the ground potential, so that the input terminal of the logic operation circuit 13 receives a low-level signal. These two transistors act as an inverter in the circuit, that is, by controlling whether they are turned on or off, the signal output by the hard disk detection circuit 11 is inverted to meet the input requirements of the logic operation circuit 13.
[0052] This design ensures that the logic circuit receives the correct signal under different connection states, accurately determining the hard drive connection status and ultimately controlling the power output of the protection circuit 14. Through this inverter function, the circuit can more flexibly handle high and low level conversions of signals, enhancing the reliability and accuracy of the entire hard drive power supply circuit.
[0053] In one embodiment, the logic operation circuit 13 is specifically configured to output a third signal for supplying power to the hard disk connector when the first signal corresponds to a first state in which the hard disk is forwardly inserted into the hard disk connector and the second signal corresponds to a power-on state; and output a third signal for stopping supplying power to the hard disk connector when the first signal corresponds to a second state in which the hard disk is reversely inserted into the hard disk connector or a third state in which the hard disk is not inserted into the hard disk connector, or when the second signal corresponds to a power-off state.
[0054] The protection circuit 14 is specifically used to connect the path between the power supply of its own power supply end and the power supply end of the hard disk connector when its own enabling end receives a third signal to supply power to the hard disk connector, so as to provide power to the hard disk connector; and to cut off the path between the power supply of its own power supply end and the power supply end of the hard disk connector when its own enabling end receives a third signal to stop supplying power to the hard disk connector, so as to stop providing power to the hard disk connector.
[0055] In this embodiment, the logic operation circuit 13 and the protection circuit 14 work together to achieve intelligent control of the hard disk power supply. First, the logic operation circuit 13 is responsible for comprehensively analyzing the first signal from the hard disk detection circuit 11 and the second signal from the logic control circuit 12. Specifically, when the first signal indicates that the hard disk is properly inserted into the hard disk connector (i.e., the first state), and the second signal indicates that the hard disk is in the power-on state, the logic operation circuit 13 will output a third signal, which is used to indicate that the system can provide power to the hard disk connector. At this time, after receiving this third signal, the enable terminal of the protection circuit 14 will open its own power supply path, allowing the power supply to be transmitted through the protection circuit 14 to the power terminal of the hard disk connector, thereby powering the hard disk.
[0056] However, if the first signal indicates that the hard drive is inserted in the reverse direction (i.e., the second state) or not inserted (i.e., the third state), or if the second signal indicates that the hard drive is powered off, the logic operation circuit 13 outputs a third signal to stop power supply. Upon receiving this signal, the enable terminal of the protection circuit 14 disconnects its power supply path, thereby stopping power supply to the hard drive connector.
[0057] This design ensures that the system will only be powered when the hard drive is correctly inserted and in the powered-on state. If the hard drive is inserted backwards, not inserted, or the system is turned off, the power supply will be automatically cut off. This avoids hard drive damage and system failures caused by incorrect connection or improper operation, thereby ensuring the safety and stability of the entire system.
[0058] like Figure 3 As shown, in one embodiment, when the first signal corresponding to the first state in which the hard disk is forwardly inserted into the hard disk connector is a high-level signal, and the second signal corresponding to the power-on state is a high-level signal, the logic operation circuit 13 is an AND gate, the first input end of the AND gate is connected to the output end of the hard disk detection circuit 11, the second input end of the AND gate is connected to the logic control circuit 12, and the output end of the AND gate is the output end of the logic operation circuit 13.
[0059] In this embodiment, the logic operation circuit 13 is designed as an AND gate circuit. Its function is to output a power supply signal under specific conditions, ensuring that the hard drive receives power only when it is correctly connected and the system is powered on. Specifically, when the hard drive is inserted into the hard drive connector in the forward direction, the hard drive detection circuit 11 outputs a high-level signal, indicating that the hard drive is correctly connected. This signal is transmitted to the first input of the AND gate. Simultaneously, the logic control circuit 12 generates a second signal indicating the power-on state based on the system's operating status and transmits this signal to the second input of the AND gate. Because the characteristic of an AND gate is that its output only generates a high-level signal when all inputs are high, the output of the AND gate (i.e., the output of the logic operation circuit 13) will only generate a high-level third signal if and only if the hard drive is correctly inserted and the system is powered on. This signal instructs the protection circuit 14 to provide power to the hard drive connector. In other words, the AND gate plays a key role in logic judgment. By simultaneously detecting the hard drive's insertion status and the system's power-on status, it ensures that power is supplied to the hard drive only when both conditions are met. This prevents incorrect power supply when the hard drive is inserted backward or the system is powered off, effectively protecting the hard drive and system from potential hardware damage or data loss. This design logic is simple and reliable, leveraging the basic logic functions of the AND gate to achieve precise control of the hard drive's power supply process.
[0060] In one embodiment, the logic control circuit 12 is specifically used to obtain the level status of the power supply pin and the ground pin of the hard disk connector and the hard disk to determine whether the hard disk is inserted into the hard disk connector in the forward direction or in the reverse direction, and output a second signal to supply power to the hard disk connector when the hard disk is inserted into the hard disk connector in the forward direction and the hard disk status is in the power-on state, and output a second signal to stop supplying power to the hard disk connector when the hard disk is not inserted into the hard disk connector or the hard disk is inserted into the hard disk connector in the reverse direction, or the hard disk status is in the power-off state.
[0061] In this embodiment, the logic control circuit 12 determines the insertion direction of the hard disk by detecting the level status of the power pin and the ground pin of the hard disk connector and the hard disk, and determines whether to provide power to the hard disk connector in combination with the system power on / off status.
[0062] Specifically, the logic control circuit 12 first determines whether the hard drive is inserted forward or backward by detecting the voltage levels of the power and ground pins. When the hard drive is correctly inserted forward into the hard drive connector, the power pin should detect the expected voltage (usually a high level), while the ground pin should detect a low level. Conversely, if the hard drive is inserted backward, the voltage levels of these pins may be reversed. The logic control circuit 12 uses this characteristic to determine the hard drive's insertion direction. The logic control circuit 12 then determines whether to allow power based on the system's current operating status. If the hard drive is inserted forward and the system is powered on, the logic control circuit 12 outputs a high-level second signal, instructing the protection circuit 14 to provide power to the hard drive connector. However, if the hard drive is not inserted, is inserted backward, or the system is powered off, the logic control circuit 12 outputs a low-level second signal, indicating that power supply is stopped.
[0063] This method of determining the hard drive insertion direction differs from the method described above, which uses preset pins to determine the hard drive insertion direction. The previous method relies on the hard drive detection circuit 11 monitoring the signal status of preset pins to determine the hard drive insertion direction. These preset pins may be specifically designed for insertion direction detection, enabling rapid determination of the hard drive direction without relying on power supply levels.
[0064] In the current embodiment, the logic control circuit 12 determines the insertion direction by directly detecting the actual voltage levels of the power and ground pins. This approach relies more on the direct state of hardware voltage levels and can provide more accurate and reliable judgments. (Because in the aforementioned embodiment where the voltage level of a preset pin is used to determine whether the hard drive is inserted reversely, the voltage level of the preset pin may be the same when the hard drive is inserted reversely as when it is inserted forward.) The advantage of this method is that it can avoid misjudgments caused by external noise or electrical interference, because the voltage levels of the power and ground pins are generally more stable and clear. This design is suitable for applications requiring high security and reliability, especially in situations where reverse insertion of a hard drive could result in serious consequences (such as hard drive damage or data loss). By directly detecting the voltage levels of key pins, the logic control circuit 12 can more accurately control power supply, further ensuring the security of the system and hard drive. The design aims to minimize misoperation of the hard drive and ensure that power is only supplied when the hard drive is correctly inserted and the system is ready, thereby protecting the overall security of the hard drive and server system.
[0065] This design logic, through dual determination of the hard drive insertion direction, ensures that power is only supplied when the hard drive is correctly connected and the system allows it, thus preventing hardware damage caused by reverse insertion or misoperation of the hard drive. This method also avoids unnecessary power supply to the hard drive, thereby improving system stability and security. This embodiment ensures the safety and reliability of hard drive power supply through the precise detection and judgment of the logic control circuit 12.
[0066] In one embodiment, when there are more than one hard disks, the number of hard disk detection circuits 11, logic operation circuits 13, protection circuits 14, and hard disk connectors is the same as the number of hard disks; the hard disk detection circuits 11, logic operation circuits 13, protection circuits 14, hard disk connectors, and hard disks correspond one to one;
[0067] The input end of the hard disk detection circuit 11 is connected to a preset pin of the hard disk connector corresponding to the hard disk detection circuit 11. The output end of the hard disk detection circuit 11 is connected to the input end of the logic operation circuit 13 corresponding to the hard disk detection circuit 11. The output end of the logic operation circuit 13 is connected to the enable end of the protection circuit 14 corresponding to the hard disk detection circuit 11. The output end of the protection circuit 14 is connected to the power supply end of the hard disk connector corresponding to the hard disk detection circuit 11. The output end of the logic control circuit 12 is connected to the input end of each logic operation circuit 13.
[0068] Each hard disk detection circuit 11 is specifically used to detect the connection status between the hard disk corresponding to itself and the hard disk connector according to the preset pin of the hard disk connector corresponding to itself, and output a first signal according to the connection status;
[0069] Each logic operation circuit 13 is specifically used to perform a logic operation on the second signal output by the logic operation circuit 13 and the first signal output by the hard disk detection circuit 11 corresponding to itself to obtain a third signal;
[0070] The protection circuit 14 is specifically configured to determine whether to output the power supply of its own power supply end to the hard disk connector corresponding to itself according to the third signal received by its own enabling end and output by its own corresponding logic operation circuit 13.
[0071] This embodiment takes into account the presence of multiple hard drives in the system. Each hard drive is equipped with a separate hard drive detection circuit 11, logic operation circuit 13, and protection circuit 14, corresponding to its respective hard drive connector. This ensures independent and precise power control for each hard drive. Specifically, the input of each hard drive detection circuit 11 is connected to a preset pin on its corresponding hard drive connector. It monitors the connection status of the hard drive (including forward insertion, reverse insertion, or not inserted) and outputs the detection result as a first signal to the corresponding logic operation circuit 13. The input of the logic operation circuit 13 not only receives the first signal from the hard drive detection circuit 11 but also connects to the logic control circuit 12 to obtain the current system status signal (second signal). The logic operation circuit 13 performs a logical operation on these two signals and generates a third signal based on the hard drive connection status and system status. If the hard drive is correctly connected and the system is powered on, the logic operation circuit 13 outputs a third signal to enable power supply; otherwise, it outputs a third signal to disable power supply.
[0072] The protection circuit 14 makes the final power supply decision based on this third signal. Its enable terminal is connected to the output of the logic operation circuit 13. Upon receiving the third signal enabling power, the protection circuit 14 switches on the power path, transferring power to the corresponding power terminal of the hard drive connector, providing power to the hard drive. If the third signal indicates a power outage, the protection circuit 14 disconnects the power path, preventing power from being supplied.
[0073] This design ensures independent power control for each hard drive, preventing the power supply safety of other hard drives from being impacted by one hard drive being inserted incorrectly or not inserted. Furthermore, the unified management of system status by the logic control circuit 12 enables centralized control of all hard drives at the overall level, further enhancing system stability and security. Each hard drive has its own independent detection, judgment, and power supply control unit, enabling the entire system to accurately and efficiently manage power even with multiple hard drives. This ensures that each hard drive receives power only when properly connected and permitted by the system, thereby preventing hard drive damage and ensuring the normal operation of the server.
[0074] In related technology, the backplane draws P12V power from the upstream motherboard via a power connector, which is then fed to two hard drive connectors via two fuses. The hard drive can be an E1.S drive. Even if the E1.S drive is inserted in the connector backwards, power is still supplied to the hard drive connector when the system is in S0 mode. However, if the power pin on the connector is misconnected to the ground pin on the hard drive, the E1.S drive could be damaged.
[0075] In one specific embodiment of the present application, the power-on state can refer to S5 state, the power-off state can refer to S0 state, the protection circuit 14 can be an EFUSE circuit, and the logic control circuit 12 can be a CPLD (Complex Programmable Logic Device). When the EN pin (i.e., the enable end of the protection circuit 14) of the EFUSE circuit is at low level, the EFUSE is closed, and the VOUT cannot output P12V power to the E1.S hard disk connector for power supply; when the EN pin of the EFUSE circuit is at high level, the EFUSE is opened, and the VOUT can output P12V power to the E1.S hard disk connector for power supply, so that whether to supply power to the E1.S hard disk connector on the backplane can be controlled by controlling the level of the EN pin of the EFUSE circuit. Moreover, each EFUSE can be used to separately control the power supply of the corresponding E1.S hard disk connector, and the power-on and power-off control of more than one hard disk connector can be realized. In the present solution, the level of the EN pin signal of the EFUSE circuit can be controlled by the EN signal sent by the CPLD and the in-place signal on the E1.S hard disk, so that the hard disk connector can be normally powered when the E1.S hard disk is inserted, and the connector will not be powered when the E1.S hard disk is inserted on the hard disk connector.
[0076] Specifically, the in-place signal of the preset pin on the E1.S hard disk connector is inverted by the inverter composed of the NMOS (second transistor T2) and the PMOS (first transistor T1) to invert the level of the in-place signal. As shown in FIG. 2, the Vin input is the in-place signal of the preset pin (i.e., the first signal), when the E1.S hard disk is not in place, the PRSNT signal is high, i.e., the Vin is at high level, at this time, T2 is turned on, T1 is cut off, and the output is at low level; when the E1.S hard disk is in place, the PRSNT signal is low, i.e., the Vin is at low level, at this time, T2 is cut off, T1 is turned on, and the output is at high level. Figure 2
[0077] The Vout signal of the inverter and the EN signal (i.e., the second signal) of the CPLD output to the EFUSE circuit are subjected to AND logic operation, as shown in FIG. 3. Figure 3 As shown in FIG. 3, the A end of the AND gate inputs the Vout signal of the inverter, the B end inputs the EN of the CPLD output to the EFUSE, and the output signal Y is the PRSNT_EN signal; when the Vout and the EN signal are both at high level, the level of the output signal PRSNT_EN is high, if one of the Vout or the EN signal is at low level, the level of the output signal PRSNT_EN is low.
[0078] Connecting the PRSNT_EN signal, the result of the AND operation between the in-position signal and the EN signal, to the EN pin of the EFUSE circuit controls the output level of the EFUSE circuit, thereby controlling the power supply to the hard drive connector. The specific implementation steps are as follows: When the E1.S hard drive is properly inserted into the hard drive connector, the in-position signal on the connector is low. At this time, the Vout level of the inverter is high. After the CPLD outputs a high-level EN signal, the Vout, EN, and logic output signal PRSNT_EN are all high. EFUSE is now turned on, and P12V will normally supply power to the hard drive connector. When the E1.S hard drive is inserted into the hard drive connector backward, the in-position signal on the connector is high. At this time, the Vout level of the inverter is low. After the CPLD outputs a high-level EN signal, the Vout, EN, and logic output signal PRSNT_EN are all low. EFUSE is now turned off, and P12V will not supply power to the hard drive connector.
[0079] At the same time, because the two EFUSE circuits control the power supply of the corresponding E1.S hard drive connectors respectively, when one of the two E1.S hard drives is inserted reversely and the other is inserted correctly, only the hard drive connector corresponding to the reversed hard drive will not be able to supply power normally, and it will not affect the power supply of the connector corresponding to the correct hard drive.
[0080] On the other hand, the present application provides a server, including the above-mentioned hard disk power supply circuit, a hard disk, and a hard disk connector, wherein the output end of the hard disk power supply circuit is connected to the hard disk connector.
[0081] On the other hand, Figure 4 As shown, the present application provides a power supply method for a hard disk, comprising:
[0082] S11: Detecting the connection status between the hard disk and the hard disk connector through a preset pin of the hard disk connector, and outputting a first signal according to the connection status; the connection status includes a first state in which the hard disk is forwardly inserted into the hard disk connector, a second state in which the hard disk is reversely inserted into the hard disk connector, and a third state in which the hard disk is not inserted into the hard disk connector;
[0083] S12: generating a second signal according to a hard disk state set by the user, where the hard disk state includes a power-on state or a power-off state;
[0084] S13: Performing a logic operation on the first signal and the second signal to obtain a third signal, and determining whether to provide power supply to the power supply end of the hard disk connector according to the third signal.
[0085] In a specific embodiment, the system further includes: a logic control circuit continuously monitoring the insertion status of the hard disk, using the pin level in the hard disk detection circuit or the logic control circuit to determine whether the hard disk is inserted forward or backward; the logic control circuit also needs to monitor the status of the power supply to determine whether a power interruption has occurred; real-time monitoring of hard disk read and write operations is added to the logic control circuit. Whether a read or write operation is currently in progress can be determined by using the status signal of the hard disk controller or related read and write instruction signals; an interrupt detection mechanism is designed to immediately trigger the protection logic when a power interruption or abnormal insertion state occurs; when a power interruption or abnormal insertion state is detected, the protection logic generates an interrupt signal; this signal is used to notify the hard disk controller to immediately terminate all current read and write operations; after receiving the interrupt signal, the hard disk controller executes a safe termination procedure to ensure that all ongoing read and write operations can be completed or safely terminated to avoid data corruption or loss; when an interrupt occurs, the data in the data buffer is ensured to be saved to a stable storage medium to prevent data loss; and a data recovery mechanism is designed to detect and repair data inconsistencies or damage that may have been caused by abnormal insertion or power interruption when the system returns to normal.
[0086] By immediately terminating read and write operations upon power outages or abnormal insertion conditions, protection logic ensures that ongoing data operations are safely terminated, preventing the risk of data loss or corruption. When an abnormal condition occurs, the system quickly responds and takes protective measures, improving system stability and reliability. By promptly terminating read and write operations and implementing data buffering, the probability of data corruption is reduced, lowering the cost of data repair and recovery. Implementing protection logic prevents user experience issues caused by data loss or corruption, improves drive and system reliability, and enhances user trust in the system.
[0087] This design not only effectively prevents data loss and system failures caused by incorrect hard drive insertion or power supply problems, but also improves the robustness and data security of the overall system, ensuring that the system can operate safely and stably under various abnormal conditions.
[0088] For an introduction to the power supply method for the hard disk, please refer to the above embodiment, and this application will not go into details here.
[0089] On the other hand, the present application provides a power supply device for a hard disk, comprising:
[0090] Memory for storing computer programs;
[0091] The processor is used to implement the steps of the hard disk power supply method when executing the computer program. For the introduction of the hard disk power supply device, please refer to the above embodiment, and this application will not repeat it here.
[0092] In another aspect, the present application provides a non-volatile storage medium having a computer program stored thereon. When executed by a processor, the computer program implements the steps of the aforementioned hard disk power supply method. For an introduction to the non-volatile storage medium, please refer to the aforementioned embodiments; this application will not elaborate further here.
[0093] It should also be noted that, in this specification, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus comprising the element.
[0094] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention is not limited to the embodiments shown herein but is intended to conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A power supply circuit for a hard disk, characterized in that: include: a hard disk detection circuit connected to a preset pin of the hard disk connector, configured to detect a connection status between the hard disk and the hard disk connector via the preset pin and output a first signal according to the connection status; the connection status including a first state in which the hard disk is forwardly inserted into the hard disk connector, a second state in which the hard disk is reversely inserted into the hard disk connector, and a third state in which the hard disk is not inserted into the hard disk connector; A logic control circuit, configured to generate a second signal according to a hard disk state set by a user, wherein the hard disk state includes a power-on state or a power-off state; a logic operation circuit, whose input end is respectively connected to the output end of the hard disk detection circuit and the output end of the logic control circuit, and is used to perform a logic operation on the first signal and the second signal to obtain a third signal; a protection circuit, wherein the power supply terminal is connected to the power supply, the enable terminal is connected to the output terminal of the logic operation circuit, and the output terminal is connected to the power supply terminal of the hard disk connector, and is configured to determine whether to output the power supply to the power supply terminal of the hard disk connector according to a third signal from the enable terminal; The logic operation circuit is specifically configured to output a third signal for providing power to the hard disk connector when the first signal corresponds to a first state in which the hard disk is forwardly inserted into the hard disk connector and the second signal corresponds to the power-on state; and output a third signal for stopping providing power to the hard disk connector when the first signal corresponds to a second state in which the hard disk is reversely inserted into the hard disk connector or a third state in which the hard disk is not inserted into the hard disk connector, or when the second signal corresponds to the power-off state. The protection circuit is specifically configured to connect the path between the power supply of its own power supply end and the power supply end of the hard disk connector to provide power to the hard disk connector when its own enabling end receives a third signal for supplying power to the hard disk connector; and to cut off the path between the power supply of its own power supply end and the power supply end of the hard disk connector to stop supplying power to the hard disk connector when its own enabling end receives a third signal for stopping supplying power to the hard disk connector. When the first signal corresponding to the first state in which the hard disk is forwardly inserted into the hard disk connector is a high-level signal, and the second signal corresponding to the power-on state is a high-level signal, the logic operation circuit is an AND gate, the first input end of the AND gate is connected to the output end of the hard disk detection circuit, the second input end of the AND gate is connected to the logic control circuit, and the output end of the AND gate is the output end of the logic operation circuit.
2. The power supply circuit for a hard disk according to claim 1, wherein: Also included are a first transistor and a second transistor, each transistor including a control terminal, a first terminal, and a second terminal; The output end of the hard disk detection circuit is connected to the control end of the first transistor and the control end of the second transistor respectively, the first end of the first transistor is connected to a power supply, the second end of the first transistor is connected to the first end of the second transistor and the input end of the logic operation circuit respectively, and the second end of the second transistor is grounded; The first transistor is configured to be turned on when the first signal is at a low level; The second transistor is configured to be turned on when the first signal is at a high level.
3. The power supply circuit of the hard disk according to claim 1, wherein: The logic control circuit is specifically used to obtain the level status of the power supply pin and the ground pin of the hard disk connector and the hard disk to determine whether the hard disk is inserted into the hard disk connector in the forward direction or in the reverse direction, and output a second signal to supply power to the hard disk connector when the hard disk is inserted into the hard disk connector in the forward direction and the hard disk status is the power-on state, and output a second signal to stop supplying power to the hard disk connector when the hard disk is not inserted into the hard disk connector or the hard disk is inserted into the hard disk connector in the reverse direction, or the hard disk status is the power-off state.
4. The power supply circuit for a hard disk according to any one of claims 1 to 3, wherein: When there is more than one hard disk, the number of the hard disk detection circuits, the logic operation circuits, the protection circuits, and the hard disk connectors is the same as the number of the hard disks; the hard disk detection circuits, the logic operation circuits, the protection circuits, the hard disk connectors, and the hard disks have a one-to-one correspondence; The input end of the hard disk detection circuit is connected to a preset pin of the hard disk connector corresponding to the hard disk detection circuit, the output end of the hard disk detection circuit is connected to the input end of the logic operation circuit corresponding to the hard disk detection circuit, the output end of the logic operation circuit is connected to the enable end of the protection circuit corresponding to the hard disk detection circuit, the output end of the protection circuit is connected to the power supply end of the hard disk connector corresponding to the hard disk detection circuit, and the output end of the logic control circuit is connected to the input end of each of the logic operation circuits; Each hard disk detection circuit is specifically configured to detect a connection status between the hard disk corresponding to itself and the hard disk connector according to a preset pin of the hard disk connector corresponding to itself, and output the first signal according to the connection status; Each of the logic operation circuits is specifically configured to perform a logic operation on the second signal output by the logic operation circuit and the first signal output by the hard disk detection circuit corresponding to the logic operation circuit to obtain the third signal; The protection circuit is specifically used to determine whether to output the power supply of its own power supply end to the hard disk connector corresponding to itself according to the third signal received by its own enabling end and output by its own corresponding logic operation circuit.
5. A server, characterized in that: The hard disk power supply circuit comprises the hard disk according to any one of claims 1 to 4, and further comprises a hard disk and a hard disk connector, wherein the output end of the hard disk power supply circuit is connected to the hard disk connector.
6. A power supply method for a hard disk, characterized in that: The power supply circuit for the hard disk according to any one of claims 1 to 4, wherein the power supply method for the hard disk comprises: detecting a connection state between the hard disk and the hard disk connector through a preset pin of the hard disk connector, and outputting a first signal according to the connection state; the connection state includes a first state in which the hard disk is forwardly inserted into the hard disk connector, a second state in which the hard disk is reversely inserted into the hard disk connector, and a third state in which the hard disk is not inserted into the hard disk connector; Generate a second signal according to a hard disk state set by a user, wherein the hard disk state includes a power-on state or a power-off state; Performing a logic operation on the first signal and the second signal to obtain a third signal, and determining whether to provide power supply to the power supply end of the hard disk connector according to the third signal; Performing a logical operation on the first signal and the second signal to obtain a third signal includes: When the first signal is a signal corresponding to the first state in which the hard disk is forwardly inserted into the hard disk connector, and the second signal is a signal corresponding to the power-on state, a third signal is output to provide power to the hard disk connector; when the first signal is a second state in which the hard disk is reversely inserted into the hard disk connector or a third state in which the hard disk is not inserted into the hard disk connector, or when the second signal is a signal corresponding to the power-off state, a third signal is output to stop providing power to the hard disk connector.
7. A power supply device for a hard disk, characterized in that: include: Memory for storing computer programs; A processor is configured to implement the steps of the hard disk power supply method as claimed in claim 6 when executing a computer program.
8. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the power supply method for the hard disk as claimed in claim 6 are implemented.
Citation Information
Patent Citations
Storage chip protection system, method, equipment and medium
CN116820857A
Abnormality monitoring method and device for power line of server mainboard and computer equipment
CN118519852A