SATA mechanical hard disk power failure alarm circuit of firewall equipment
By designing the SATA mechanical hard disk power-off alarm circuit of the firewall device, the problem of data loss caused by sudden power outage is solved, and the CPU timely records and saves data in the event of power outage is achieved.
Patent Information
- Application Number
- CN202421002922.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-10
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2034-05-10
AI Technical Summary
When a SATA mechanical hard disk has a sudden power outage, the prior art is difficult to ensure that the CPU can record and save data in a timely manner, resulting in the loss of important data.
Design a SATA mechanical hard disk power-off alarm circuit for firewall equipment, including a dual voltage comparator circuit, a ship-type switch circuit, a first voltage divider circuit and a second voltage divider circuit, through these circuits, the SATA mechanical hard disk low-level alarm signal is realized Transfer to the CPU to ensure that the CPU has enough time to save data.
It effectively ensures that the CPU can record and save data in a timely manner when the SATA mechanical hard disk is powered off, and avoids the loss of important data.
Smart Images

Figure CN222482956U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of electronic circuits, and more specifically to a SATA mechanical hard disk power-off alarm circuit of a firewall device. Background Art
[0002] SATA mechanical hard disks have the characteristics of fast transmission speed, low power consumption and hot-swap support. With the continuous improvement of manufacturing technology, the reliability of SATA mechanical hard disks is getting higher and higher. If a sudden power outage occurs during the continuous data reading and writing process of the SATA mechanical hard disk, if there is no corresponding power-off protection measure, it will cause the loss of important data in the SATA mechanical hard disk. Therefore, in the event of a sudden power outage, it is particularly important to ensure that the CPU can record the SATA mechanical hard disk power-off alarm event and save the data in time. Utility Model Content
[0003] The technical problem to be solved by the utility model is to provide a SATA mechanical hard disk power-off alarm circuit for a firewall device in view of the above-mentioned defects of the prior art.
[0004] The technical solution adopted by the utility model to solve its technical problems is: a SATA mechanical hard disk power-off alarm circuit of a firewall device, including a dual voltage comparator circuit, a boat-type switch circuit, a first voltage divider circuit and a second voltage divider circuit; the dual voltage comparator circuit includes a dual voltage comparator U1; one end of the boat-type switch circuit is connected to the dual voltage comparator U1, and the other end of the boat-type switch circuit is connected to a first voltage power supply; one end of the first voltage divider circuit and the second voltage divider circuit are respectively connected to the dual voltage comparator U1, and the other ends of the first voltage divider circuit and the second voltage divider circuit are respectively connected to a second voltage power supply; the dual voltage comparator U1 is also respectively connected to the GPIO pin and the power enable pin of the CPU.
[0005] In some embodiments, the boat-type switch circuit includes a boat-type switch CON1, a resistor R2 and a capacitor C1; pin 1 of the boat-type switch CON1 is connected to pin 3 and pin 5 of the dual voltage comparator U1, and pin 2 of the boat-type switch CON1 is connected to a first voltage power supply; one end of the resistor R2 is connected to pin 1 of the boat-type switch CON1, and the other end of the resistor R2 is connected to the system ground; one end of the capacitor C1 is connected to pin 1 of the boat-type switch CON1, and the other end of the capacitor C1 is connected to the system ground.
[0006] In some embodiments, the first voltage divider circuit includes a resistor R6 and a resistor R5; one end of the resistor R6 is connected to pin 2 of the dual voltage comparator U1, and the other end of the resistor R6 is connected to the second voltage power supply; one end of the resistor R5 is connected to one end of the resistor R6, and the other end of the resistor R5 is connected to the system ground.
[0007] In some embodiments, the second voltage divider circuit includes a resistor R4 and a resistor R3; one end of the resistor R4 is connected to pin 6 of the dual voltage comparator U1, and the other end of the resistor R4 is connected to the second voltage power supply; one end of the resistor R3 is connected to one end of the resistor R4, and the other end of the resistor R3 is connected to the system ground.
[0008] In some embodiments, pin 1 of the dual voltage comparator U1 is connected to a GPIO pin of a CPU; and pin 7 of the dual voltage comparator U1 is connected to a power enable pin of a CPU.
[0009] In some embodiments, pin 8 of the dual voltage comparator U1 is connected to a second voltage power supply; and pin 4 of the dual voltage comparator U1 is connected to a system ground.
[0010] In some embodiments, the dual voltage comparator circuit further includes a capacitor C3, one end of the capacitor C3 is respectively connected to the pin 8 of the dual voltage comparator U1 and the second voltage power supply, and the other end of the capacitor C3 is connected to the system ground.
[0011] In some embodiments, the capacitor C1 and the capacitor C3 are both chip-type multilayer ceramic capacitors.
[0012] In some embodiments, the first voltage power supply is a 5V power supply; and the second voltage power supply is a 12V power supply.
[0013] In some embodiments, the dual voltage comparator U1 is of model LM393.
[0014] The beneficial effect of the utility model is that: different from the prior art, the SATA mechanical hard disk power-off alarm circuit of the firewall device of the utility model controls the power on and off of the firewall device through a boat-type switch circuit, and the first voltage divider circuit and the second voltage divider circuit are respectively used to stabilize the different voltages of the corresponding pins on the dual voltage comparator U1; when the device loses power, the SATA mechanical hard disk low-level alarm signal is transmitted to the CPU through the GPIO pin, and the enable low-level alarm signal is transmitted to the CPU through the power enable pin. In this process, the SATA mechanical hard disk low-level alarm signal is transmitted to the CPU before the enable low-level alarm signal, so as to ensure that the CPU has enough time to record the SATA mechanical hard disk power-off alarm event and save data. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 It is a schematic diagram of a SATA mechanical hard disk power-off alarm circuit of a firewall device in an embodiment of the utility model;
[0016] Figure 2This is a test waveform diagram of the SATA mechanical hard disk power-off alarm circuit of the firewall device in the embodiment of the utility model;
[0017] Names and numbers in the figure: dual voltage comparator circuit-1; boat-type switch circuit-2; first voltage divider circuit-3; second voltage divider circuit-4. DETAILED DESCRIPTION
[0018] In order to make the purpose, technical solutions and advantages of the embodiments of the utility model clearer, the technical solutions in the embodiments of the utility model will be clearly and completely described below. Obviously, the described embodiments are partial embodiments of the utility model, rather than all embodiments. Based on the embodiments of the utility model, all other embodiments obtained by ordinary technical workers in this field without creative labor belong to the protection scope of the utility model. In addition, the directional terms mentioned in the utility model, such as "one end", "the other end", etc., are only referenced to the directions of the attached diagrams. The directional terms used are for better and clearer explanation and understanding of the utility model, rather than indicating or implying the orientation that the utility model must have, and therefore cannot be understood as limitations on the utility model.
[0019] The utility model is implemented as follows Figure 1 As shown in the figure, a SATA mechanical hard disk power-off alarm circuit of a firewall device includes a dual voltage comparator circuit 1, a boat-type switch circuit 2, a first voltage divider circuit 3 and a second voltage divider circuit 4; the dual voltage comparator circuit 1 includes a dual voltage comparator U1; one end of the boat-type switch circuit 2 is connected to the dual voltage comparator U1, and the other end of the boat-type switch circuit 2 is connected to a first voltage power supply; one end of the first voltage divider circuit 3 and the second voltage divider circuit 4 are respectively connected to the dual voltage comparator U1, and the other ends of the first voltage divider circuit 3 and the second voltage divider circuit 4 are respectively connected to the second voltage power supply; the dual voltage comparator U1 is also respectively connected to the GPIO pin and the power enable pin of the CPU (not shown in the figure).
[0020] In this embodiment, the first voltage power supply is a 5V power supply, and the second voltage power supply is a 12V power supply.
[0021] Specifically, the rocker switch circuit 2 includes a rocker switch CON1, a resistor R2, and a capacitor C1. The rocker switch CON1 is used to control the power on and off of the firewall device. Pin 1 of the rocker switch CON1 is connected to pin 3 (INA+) and pin 5 (INB+) of the dual voltage comparator U1, and pin 2 of the rocker switch CON1 is connected to a 5V power supply; the line network is named VIN, providing a 5V input voltage source for pin 3 (INA+) and pin 5 (INB+). One end of the resistor R2 is connected to pin 1 of the rocker switch CON1, and the other end of the resistor R2 is connected to the system ground; a path for fast voltage discharge when power is off is provided. One end of the capacitor C1 is connected to pin 1 of the rocker switch CON1, and the other end of the capacitor C1 is connected to the system ground; the capacitor C1 is a chip-type multilayer ceramic capacitor, which is used to provide an energy storage function to ensure that pin 3 (INA+) and pin 5 (INB+) of the dual voltage comparator U1 have a stable 5V voltage value.
[0022] Specifically, the first voltage divider circuit 3 includes a resistor R6 and a resistor R5; one end of the resistor R6 is connected to the pin 2 (INA-) of the dual voltage comparator U1, and the other end of the resistor R6 is connected to the 12V power supply; one end of the resistor R5 is connected to one end of the resistor R6, and the other end of the resistor R5 is connected to the system ground. Through the 12V power supply, the resistor R6 and the resistor R5 form a first voltage divider circuit to ensure that the pin 2 (INA-) of the dual voltage comparator U1 has a stable 4V voltage.
[0023] Specifically, the second voltage divider circuit 4 includes a resistor R4 and a resistor R3; one end of the resistor R4 is connected to the pin 6 (INB-) of the dual voltage comparator U1, and the other end of the resistor R4 is connected to the 12V power supply; one end of the resistor R3 is connected to one end of the resistor R4, and the other end of the resistor R3 is connected to the system ground. Through the 12V power supply, the resistor R4 and the resistor R3 form a second voltage divider circuit to ensure that the pin 6 (INB-) of the dual voltage comparator U1 has a stable 1V voltage.
[0024] Specifically, pin 1 (OUTA) of the dual voltage comparator U1 is connected to the GPIO pin of the CPU, and the circuit network is named INTn_SATA; pin 7 (OUTB) of the dual voltage comparator U1 is connected to the power enable pin of the CPU, and the power enable pin is a 3.3V power enable pin, and the circuit network is named EN_3V3. Pin 8 (VCC) of the dual voltage comparator U1 is connected to the 12V power supply; pin 4 (GND) of the dual voltage comparator U1 is connected to the system ground.
[0025] Specifically, the dual voltage comparator circuit 1 further includes a capacitor C3, one end of which is connected to pin 8 (VCC) of the dual voltage comparator U1 and the 12V power supply, and the other end of which is connected to the system ground. The capacitor C3 is a chip-type multilayer ceramic capacitor, which is arranged close to pin 8 (VCC) of the dual voltage comparator U1 and is used for power supply filtering to reduce ripple and noise interference mixed in the DC voltage.
[0026] In this embodiment, the working principle of the dual voltage comparator U1 is that when the input voltage of IN- is higher than the input voltage of IN+, the OUT pin outputs a low level; when the input voltage of IN- is lower than the input voltage of IN+, the OUT pin outputs a high level. The model of the dual voltage comparator U1 is LM393.
[0027] The following is a detailed description of the application of the SATA mechanical hard disk power-off alarm circuit of the firewall device of the utility model embodiment:
[0028] When the rocker switch CON1 is turned to the ON state, the firewall device is powered normally. When the rocker switch CON1 is turned to the OFF state, the 5V input voltage of pin 3 (INA+) and pin 5 (INB+) of the dual voltage comparator U1 begins to lose power. When the voltage of pin 3 (INA+) drops below 4V, the line network INTn_SATA connected to pin 1 (OUTA) outputs a low-level alarm signal to the CPU; when the voltage of pin 5 (INB+) drops below 1V, the line network EN_3V3 connected to pin 7 (OUTB) outputs a low-level alarm signal to the 3.3V power enable pin, shutting down 3.3V, thereby shutting down the power supply of the entire CPU system.
[0029] from Figure 2 It can be seen from the test waveform of the SATA mechanical hard disk power-off alarm circuit of the firewall device shown in that the output time of the INTn_SATA low-level alarm signal (SATA mechanical hard disk low-level alarm signal) is 3.689 seconds earlier than the EN_3V3 low-level alarm signal (enable low-level alarm signal), which can effectively ensure that the CPU has enough time to record the SATA mechanical hard disk power-off alarm event and save data.
[0030] It should be understood that ordinary technical workers in the field can make improvements or changes based on the above description, and all these improvements and changes should fall within the scope of protection of the claims attached to the utility model.
Claims
1. A SATA mechanical hard disk power-off alarm circuit for a firewall device, characterized in that: It includes a dual voltage comparator circuit, a boat-type switch circuit, a first voltage divider circuit and a second voltage divider circuit; the dual voltage comparator circuit includes a dual voltage comparator U1; one end of the boat-type switch circuit is connected to the dual voltage comparator U1, and the other end of the boat-type switch circuit is connected to a first voltage power supply; one end of the first voltage divider circuit and the second voltage divider circuit are respectively connected to the dual voltage comparator U1, and the other ends of the first voltage divider circuit and the second voltage divider circuit are respectively connected to a second voltage power supply; the dual voltage comparator U1 is also respectively connected to the GPIO pin and the power enable pin of the CPU.
2. The SATA mechanical hard disk power-off alarm circuit of the firewall device according to claim 1, characterized in that: The boat-type switch circuit includes a boat-type switch CON1, a resistor R2 and a capacitor C1; pin 1 of the boat-type switch CON1 is connected to pins 3 and 5 of the dual voltage comparator U1, and pin 2 of the boat-type switch CON1 is connected to a first voltage power supply; one end of the resistor R2 is connected to pin 1 of the boat-type switch CON1, and the other end of the resistor R2 is connected to the system ground; one end of the capacitor C1 is connected to pin 1 of the boat-type switch CON1, and the other end of the capacitor C1 is connected to the system ground.
3. The SATA mechanical hard disk power-off alarm circuit of the firewall device according to claim 1, characterized in that: The first voltage divider circuit includes a resistor R6 and a resistor R5; one end of the resistor R6 is connected to pin 2 of the dual voltage comparator U1, and the other end of the resistor R6 is connected to the second voltage power supply; one end of the resistor R5 is connected to one end of the resistor R6, and the other end of the resistor R5 is connected to the system ground.
4. The SATA mechanical hard disk power-off alarm circuit of the firewall device according to claim 1, characterized in that: The second voltage divider circuit includes a resistor R4 and a resistor R3; one end of the resistor R4 is connected to pin 6 of the dual voltage comparator U1, and the other end of the resistor R4 is connected to the second voltage power supply; one end of the resistor R3 is connected to one end of the resistor R4, and the other end of the resistor R3 is connected to the system ground.
5. The SATA mechanical hard disk power-off alarm circuit of the firewall device according to claim 1, characterized in that: Pin 1 of the dual voltage comparator U1 is connected to the GPIO pin of the CPU; pin 7 of the dual voltage comparator U1 is connected to the power enable pin of the CPU.
6. The SATA mechanical hard disk power-off alarm circuit of the firewall device according to claim 2, characterized in that: Pin 8 of the dual voltage comparator U1 is connected to the second voltage power supply; pin 4 of the dual voltage comparator U1 is connected to the system ground.
7. The SATA mechanical hard disk power-off alarm circuit of the firewall device according to claim 6, characterized in that: The dual voltage comparator circuit further includes a capacitor C3, one end of which is connected to the pin 8 of the dual voltage comparator U1 and the second voltage power supply respectively, and the other end of which is connected to the system ground.
8. The SATA mechanical hard disk power-off alarm circuit of the firewall device according to claim 7, characterized in that: The capacitor C1 and the capacitor C3 are both chip-type multilayer ceramic capacitors.
9. The SATA mechanical hard disk power-off alarm circuit of the firewall device according to any one of claims 1 to 8, characterized in that: The first voltage power supply is a 5V power supply; the second voltage power supply is a 12V power supply.
10. The SATA mechanical hard disk power-off alarm circuit of the firewall device according to any one of claims 1 to 8, characterized in that: The model of the dual voltage comparator U1 is LM393.