Multi-hard-disk switching device

By designing a multi-hard disk switching device, using a microcontroller to generate enable signals based on the switching signal and the central processor status, the secure switching of the hard disk is achieved, solving the problems of diversified storage requirements and inconvenient hard disk switching in the existing technology, reducing the Data loss risk and improves the reliability of the switch.

CN222105959UActive Publication Date: 2024-12-03EVOC HI-TECH HLDG GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420284674.8
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-02-05
Publication Date
2024-12-03
Estimated Expiration
2034-02-05

AI Technical Summary

Technical Problem

The prior art is difficult to meet the diverse storage needs, especially in scenarios where encrypted and non-encrypted hard disks are required, which usually requires two independent computers, resulting in inconvenience.

Method used

Design a multi-hard disk switching device, including multiple hard disk power supplies, switching switches and microcontrollers, through the microcontroller, generates enable signals based on the switching signal and the central processor status, realizes safe switching of the hard disk, ensures electrical isolation, and Complete hard disk switching without disassembling the computer.

Benefits of technology

It realizes the switching of a computer to the hard disk, meets the diverse storage needs, reduces the risk of data loss, and improves the reliability and security of the switching through hard disk indicator lights and alarm modules.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN222105959U_ABST
    Figure CN222105959U_ABST
Patent Text Reader

Abstract

The utility model provides a multi-hard-disk switching device, which comprises a plurality of hard-disk power supplies in one-to-one correspondence with a plurality of hard disks; the hard disk power supply supplies power to the corresponding hard disk in the enabled state, so that the corresponding hard disk enters a working state; the change-over switch is used for outputting a corresponding switching signal in response to user operation; the microcontroller is provided with a first control signal output interface and a first / second input interface, and the microcontroller generates an enable signal according to a switching signal received by the first input interface and a central processing unit state signal received by the second input interface; and outputting an enabling signal to an enabling interface of the hard disk power supply through the first control signal output interface, so that the hard disk power supply corresponding to the switching signal is enabled. The multi-hard-disk switching device provided by the utility model can meet diversified requirements by switching the hard disks of one computer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a multi-hard disk switching device. Background Art

[0002] With the rapid development of information technology, computer hard disk data has derived diversified storage needs. It is usually difficult for a single hard disk to meet the diverse storage needs. For example, in some special application places, such as research institutes, research institutes, and government agencies, many of the work involved is confidential, and it is necessary to use a hard disk with hardware encryption to handle internal work, while at the same time, it is necessary to use a non-encrypted system to achieve external connections. In order to meet different needs, it is often necessary to equip two independent computers to handle different matters respectively, which brings many inconveniences to the work. Utility Model Content

[0003] The multi-hard disk switching device provided by the present invention can meet diverse needs by switching the hard disks of a computer.

[0004] The utility model provides a multi-hard disk switching device, comprising:

[0005] A plurality of hard disk power supplies, each of which has a power output interface and an enable interface, wherein the hard disk power output interface is connected to a hard disk, and the plurality of hard disk power supplies correspond to the plurality of hard disks one by one; the hard disk power supply is used to supply power to the corresponding hard disk in the enable state, so that the corresponding hard disk enters the working state;

[0006] A switching switch, used to output a corresponding switching signal in response to a user operation;

[0007] A microcontroller, the microcontroller having a first control signal output interface, a first input interface and a second input interface, the first control signal output interface is electrically connected to the enable interface of the hard disk power supply, the first input interface is electrically connected to the switching switch, and the second input interface is electrically connected to the central processing unit, the microcontroller is used to generate an enable signal based on the switching signal received by the first input interface and the central processing unit status signal received by the second input interface, and output the enable signal to the enable interface of the hard disk power supply through the first control signal output interface, so that the hard disk power supply corresponding to the switching signal is enabled.

[0008] Optionally, the first control signal output interface of the microcontroller includes a plurality of output pins; the plurality of output pins are electrically connected to the enable interfaces of a plurality of hard disk power supplies in a one-to-one correspondence.

[0009] Optionally, the first control signal output interface of the microcontroller includes:

[0010] An output pin, the output pin being electrically connected to an enable interface of one of the hard disk power supplies;

[0011] An inverter, wherein an input end of the inverter is electrically connected to the output pin, and an output end of the inverter is electrically connected to an enable interface of another hard disk power supply.

[0012] Optionally, the device further comprises:

[0013] An encryption card, wherein the encryption card is electrically connected to one of the hard disks, and the encryption card and the corresponding hard disk are both electrically connected to the same hard disk power supply.

[0014] Optionally, the hard disk power supply includes:

[0015] a first resistor, wherein a first end of the first resistor is electrically connected to an external power source;

[0016] a second resistor, a first end of the second resistor being electrically connected to a second end of the first resistor;

[0017] a first MOS transistor, wherein a first end of the first MOS transistor is electrically connected to a second end of the second resistor, a second end of the first MOS transistor is grounded, and a third end of the first MOS transistor is used to receive the enable signal;

[0018] a third resistor, a first end of the third resistor being electrically connected to a second end of the first resistor;

[0019] a first capacitor, wherein a first end of the first capacitor is electrically connected to a second end of the third resistor, and a second end of the first capacitor is electrically connected to a first end of the first resistor;

[0020] a first diode, wherein an input end of the first diode is electrically connected to a first end of the third resistor, and an output end of the first diode is electrically connected to a second end of the third resistor;

[0021] a second MOS transistor, wherein an input end of the second MOS transistor is electrically connected to a second end of the first capacitor, and a control end of the second MOS transistor is electrically connected to a first end of the first capacitor;

[0022] A second capacitor, wherein a first end of the second capacitor is electrically connected to the output end of the second MOS transistor, and a second end of the second capacitor is grounded;

[0023] A third capacitor, wherein a first end of the third capacitor is electrically connected to a first end of the second capacitor, a second end of the third capacitor is electrically connected to a second end of the second capacitor, and a first end of the third capacitor is used to supply power to a corresponding hard disk.

[0024] Optionally, the device further comprises:

[0025] A hard disk indicator light, each of which corresponds to a hard disk, and has a control interface;

[0026] The microcontroller has a second control signal output interface, which is electrically connected to the control interface of the hard disk indicator light. The microcontroller is also used to generate a control signal based on the switching signal input by the first input interface and the central processing unit status signal input by the second input interface, and output it to the control interface of the hard disk indicator light through the second control signal output interface, so that the hard disk indicator light indicates the working status of the corresponding hard disk.

[0027] Optionally, the hard disk indicator light includes:

[0028] a fourth resistor, wherein a first end of the fourth resistor is electrically connected to an external power supply;

[0029] An LED lamp bead, wherein a first end of the LED lamp bead is electrically connected to a second end of the fourth resistor;

[0030] a third MOS tube, wherein a first end of the third MOS tube is electrically connected to a second end of the LED lamp bead, a second end of the third MOS tube is grounded, and a third end of the third MOS tube is used to receive the control signal;

[0031] A fifth resistor, wherein a first end of the fifth resistor is electrically connected to the third end of the third MOS tube, and a second end of the fifth resistor is grounded.

[0032] Optionally, the device further comprises:

[0033] An alarm module, wherein the alarm module has an enabling interface;

[0034] A release module, the release module is used to generate a release signal for releasing the alarm in response to a user operation;

[0035] The microcontroller also has a third input interface and a third control signal output interface, the third input interface is electrically connected to the release module, and the third control signal output interface is electrically connected to the enable interface of the alarm module. The microcontroller is also used to generate an enable signal based on the switching signal input by the first input interface, the status signal of the central processing unit input by the second input interface, and the release signal input by the third input interface, and output it to the enable interface of the alarm module through the third control signal output interface to control the enable state of the alarm module.

[0036] Optionally, the alarm module includes:

[0037] a sixth resistor, wherein a first end of the sixth resistor is electrically connected to an external power supply;

[0038] a buzzer, wherein a first end of the buzzer is electrically connected to a second end of the sixth resistor;

[0039] a fourth MOS tube, wherein a first end of the fourth MOS tube is electrically connected to a second end of the buzzer, and a second end of the fourth MOS tube is grounded;

[0040] A seventh resistor, wherein the seventh resistor is electrically connected to the third end of the fourth MOS tube, and a second end of the seventh resistor is used to receive an enable signal.

[0041] Optionally, the alarm module further includes:

[0042] A voltage regulator diode, wherein an anode of the voltage regulator diode is electrically connected to the second end of the sixth resistor, and a cathode of the voltage regulator diode is electrically connected to the second end of the buzzer.

[0043] Through the technical solution provided by the utility model, a computer can switch hard disks to meet the diverse needs of data storage. At the same time, the hard disks are completely electrically isolated, and the switching process can be achieved without disassembling the computer. In the technical solution provided by the utility model, when the microcontroller generates an enable signal, it not only depends on the switching signal sent by the switching switch, but also judges the state of the central processing unit, so that the safe switching of the two hard disks can be achieved, reducing the risk of data loss. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 This is a schematic diagram of a multi-hard disk switching device according to an embodiment of the present utility model;

[0045] Figure 2 A schematic diagram of a microcontroller of a multi-hard disk switching device according to another embodiment of the present utility model;

[0046] Figure 3 A schematic diagram of a hard disk power supply of a multi-hard disk switching device according to another embodiment of the utility model;

[0047] Figure 4 This is a schematic diagram of a multi-hard disk switching device according to another embodiment of the present invention;

[0048] Figure 5 A schematic diagram of a hard disk indicator light of a multi-hard disk switching device according to another embodiment of the utility model;

[0049] Figure 6 This is a schematic diagram of a multi-hard disk switching device according to another embodiment of the present invention;

[0050] Figure 7 This is a schematic diagram of an alarm module of a multi-hard disk switching device according to another embodiment of the present utility model;

[0051] Figure 8 This is a schematic diagram of an alarm module of a multi-hard disk switching device according to another embodiment of the present utility model;

[0052] Fig. 9 This is a schematic diagram of an alarm module of a multi-hard disk switching device according to another embodiment of the present utility model;

[0053] Fig.10 It is a schematic diagram of an exemplary implementation of a multi-hard disk switching device according to another embodiment of the utility model. DETAILED DESCRIPTION

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

[0055] The utility model provides a multi-hard disk switching device, such as Figure 1 As shown, including:

[0056] A plurality of hard disk power supplies, each of which has a power output interface and an enable interface, wherein the hard disk power output interface is connected to a hard disk, and the plurality of hard disk power supplies correspond to the plurality of hard disks one by one; the hard disk power supply is used to supply power to the corresponding hard disk in the enable state, so that the corresponding hard disk enters the working state;

[0057] A switching switch, used to output a corresponding switching signal in response to a user operation;

[0058] A microcontroller, the microcontroller having a first control signal output interface, a first input interface and a second input interface, the first control signal output interface is electrically connected to the enable interface of the hard disk power supply, the first input interface is electrically connected to the switching switch, and the second input interface is electrically connected to the central processing unit, the microcontroller is used to generate an enable signal based on the switching signal received by the first input interface and the central processing unit status signal received by the second input interface, and output the enable signal to the enable interface of the hard disk power supply through the first control signal output interface, so that the hard disk power supply corresponding to the switching signal is enabled.

[0059] Through the technical solution provided by the embodiment of the utility model, a computer can switch the hard disk to meet the diversified needs of data storage. At the same time, the hard disk realizes complete electrical isolation, and it can be realized without disassembling the computer during the switching process. When the switching switch sends a switching signal, the microcontroller generates an enable signal according to the state signal of the central processing unit. If the central processing unit is in the shutdown state, the enable state of the hard disk power supply will be switched. If the central processing unit is not in the shutdown state, the enable state of the hard disk power supply will not be switched.

[0060] As an optional implementation, Figure 2 As shown, the first control signal output interface of the microcontroller includes a plurality of output pins; the plurality of output pins are electrically connected to the enable interfaces of the plurality of hard disk power supplies in a one-to-one correspondence.

[0061] In some embodiments, Figure 2 PWR_A_EN is the power enable signal of hard disk A, PWR_B_EN is the power enable signal of hard disk B, and the first control signal output interface is composed of pins 32 and 31 of the microcontroller. Figure 2 Pin 49 of the microcontroller is the first input interface, where SW is the switching signal sent by the switching switch. The switching switch can be a single-pole double-throw switch, and the switching signal SW can be a high or low level signal. For example, when the switching switch is turned to the A end, the switching signal SW output is a high level, and when the switching switch is turned to the B end, the switching signal SW output is a low level. Therefore, by switching the switch to the A end or the B end, the hard disk power supply corresponding to the switching signal can be enabled, thereby putting the corresponding hard disk into working state.

[0062] As an optional implementation, the first control signal output interface of the microcontroller includes:

[0063] An output pin, the output pin being electrically connected to an enable interface of one of the hard disk power supplies;

[0064] An inverter, wherein an input end of the inverter is electrically connected to the output pin, and an output end of the inverter is electrically connected to an enable interface of another hard disk power supply.

[0065] In some embodiments, it is possible to use Figure 2 One of the 32nd and 31st pins is used as the first control signal output interface. Taking the 32nd pin as the first control signal output interface as an example, the 32nd pin is directly connected to the enable interface of one of the hard disk power supplies. After the 32nd pin is connected to the inverter, the output interface of the inverter is connected to the enable interface of the other hard disk power supply. In this way, the power supplies of the two hard disks are always in opposite enable states, and only one of the hard disks is in working state.

[0066] As an optional implementation, the device further includes:

[0067] An encryption card, wherein the encryption card is electrically connected to one of the hard disks, and the encryption card and the corresponding hard disk are both electrically connected to the same hard disk power supply.

[0068] In some embodiments, the encryption card is used to encrypt the hard disk, and the encryption card needs to work simultaneously with the corresponding hard disk. Therefore, the same hard disk power supply is used to power the encryption card and the corresponding hard disk. When the hard disk power supply is enabled, the encryption card and the corresponding hard disk enter the working state at the same time.

[0069] As an optional implementation, Figure 3 As shown, the hard disk power supply includes:

[0070] A first resistor R1, wherein a first end of the first resistor R1 is electrically connected to an external power supply;

[0071] a second resistor R2, wherein a first end of the second resistor R2 is electrically connected to a second end of the first resistor R1;

[0072] A first MOS transistor Q1, wherein a first end of the first MOS transistor is electrically connected to a second end of the second resistor R2, a second end of the first MOS transistor Q1 is grounded, and a third end of the first MOS transistor Q1 is used to receive the enable signal;

[0073] a third resistor R3, a first end of the third resistor R3 being electrically connected to the second end of the first resistor R1;

[0074] a first capacitor C1, wherein a first end of the first capacitor C1 is electrically connected to a second end of the third resistor R3, and a second end of the first capacitor C1 is electrically connected to a first end of the first resistor R1;

[0075] a first diode D1, wherein an input end of the first diode D1 is electrically connected to a first end of the third resistor R3, and an output end of the first diode D1 is electrically connected to a second end of the third resistor R3;

[0076] a second MOS transistor Q2, wherein an input end of the second MOS transistor Q2 is electrically connected to a second end of the first capacitor C1, and a control end of the second MOS transistor Q2 is electrically connected to a first end of the first capacitor C1;

[0077] A second capacitor C2, wherein a first end of the second capacitor C2 is electrically connected to the output end of the second MOS transistor Q2, and a second end of the second capacitor C2 is grounded;

[0078] A third capacitor C3, wherein a first end of the third capacitor C3 is electrically connected to a first end of the second capacitor C2, a second end of the third capacitor C3 is electrically connected to a second end of the second capacitor C2, and a first end of the third capacitor C3 is used to supply power to a corresponding hard disk.

[0079] As an optional implementation, Figure 4 As shown, the device also includes:

[0080] A hard disk indicator light, each of which corresponds to a hard disk, and has a control interface;

[0081] The microcontroller has a second control signal output interface, which is electrically connected to the control interface of the hard disk indicator light. The microcontroller is also used to generate a control signal based on the switching signal input by the first input interface and the central processing unit status signal input by the second input interface, and output it to the control interface of the hard disk indicator light through the second control signal output interface, so that the hard disk indicator light indicates the working status of the corresponding hard disk.

[0082] In some embodiments, Figure 2As shown in , the 50-pin and 51-pin of the microcontroller constitute the second input interface, and the 30-pin and 29-pin of the microcontroller constitute the second control signal output interface, wherein LED_A is the control signal of the hard disk indicator light A, and LED_B is the control signal of the hard disk indicator light B. SLP_S3 and SLP_S4 are status signals output by the computer central processing unit. When the computer is in the shutdown state, SLP_S3 and SLP_S4 are both low, when the computer is in the startup state, SLP_S3 and SLP_S4 are both high, and when the computer is in the sleep state, SLP_S3 is low and SLP_S4 is high. The microcontroller can know the status of the computer system by judging the values ​​of SLP_S3 and SLP_S4. LED_A and LED_B control the lights LEDA and LEDB of the two hard disk states A and B. LED_A is high and LEDA is always on, indicating that hard disk A is selected; LED_A outputs PWM waveforms and LEDA flashes, indicating that hard disk A is working in the boot or sleep state. If the hard disk switch is switched to hard disk B, the flashing of LEDA can prompt that the switch needs to be turned back or the computer can be turned off, so that hard disk B can be re-entered after shutting down, avoiding the situation where the hard disk working status is misjudged by only checking the switch (the switch is at the B end, and hard disk B is thought to be working. By the flashing of LEDA, it can be determined that hard disk A is working at this time). Similarly, the status indicator of hard disk B is the same. LED_B is high and LEDB is always on, indicating that hard disk B is selected; LED_B outputs PWM waveforms and LEDB flashes, indicating that hard disk B is working in the boot or sleep state, but the hard disk switch is switched to hard disk A, prompting that the switch needs to be turned back or the computer can be turned off to re-enter hard disk A. In the aforementioned technical solution, when the computer is powered on, if the switch is toggled, it will not switch from hard disk A to hard disk B or from hard disk B to hard disk A. Instead, the indicator light will be used to indicate that the switch state is inconsistent with the hard disk working state, thereby preventing the computer from switching the working hard disk due to accidental touch when the computer is powered on, thereby achieving safe and reliable hard disk switching and reducing the risk of data loss.

[0083] As an optional implementation, Figure 5 As shown, the hard disk indicator light includes:

[0084] a fourth resistor R4, wherein a first end of the fourth resistor R4 is electrically connected to an external power supply;

[0085] An LED lamp bead, wherein a first end of the LED lamp bead is electrically connected to a second end of the fourth resistor R4;

[0086] A third MOS tube Q3, wherein a first end of the third MOS tube Q3 is electrically connected to a second end of the LED lamp bead, a second end of the third MOS tube Q3 is grounded, and a third end of the third MOS tube Q3 is used to receive a control signal;

[0087] A fifth resistor R5, a first end of the fifth resistor R5 is electrically connected to the third end of the third MOS transistor Q3, and a second end of the fifth resistor R5 is grounded.

[0088] As an optional implementation, Figure 6 As shown, the device also includes:

[0089] An alarm module, wherein the alarm module has an enabling interface;

[0090] A release module, the release module is used to generate a release signal for releasing the alarm in response to a user operation;

[0091] The microcontroller also has a third input interface and a third control signal output interface, the third input interface is electrically connected to the release module, and the third control signal output interface is electrically connected to the enable interface of the alarm module. The microcontroller is also used to generate an enable signal based on the switching signal input by the first input interface, the status signal of the central processing unit input by the second input interface, and the release signal input by the third input interface, and output it to the enable interface of the alarm module through the third control signal output interface to control the enable state of the alarm module.

[0092] In some embodiments, Figure 2 As shown in , SPK is the switch error reminder alarm signal, which is used to control the switch of the alarm module. For example, when hard disk A is powered on and working, turn the hard disk switch to B. In order to avoid data loss on hard disk A, the motherboard will not switch to hard disk B. The working hard disk displayed by the hard disk switch and the actual working hard disk will be in a different state. In order to avoid misreading the working status of the hard disk, SPK sends a signal, and the alarm module alarms to remind the staff to switch back the hard disk switch or shut down and re-enter another hard disk. The SPK signal can output high and low levels, or PWM waveforms, depending on the selection of the alarm module. If a passive alarm module is used, the alarm module will only sound when SPK outputs a PWM waveform. If it is an active alarm module, the alarm module can sound as long as it outputs a high level. The function of the release module is to manually turn off the alarm module when the alarm module alarms, so as not to affect the ongoing work. Figure 2 Pin 52 is the third input interface, SPK_OFF is the release signal sent by the release module, pin 28 is the third control signal output interface, and SPK is the enable signal.

[0093] As an optional implementation, Figure 7 As shown, the alarm module includes:

[0094] a sixth resistor R6, wherein a first end of the sixth resistor R6 is electrically connected to an external power supply;

[0095] A buzzer, wherein a first end of the buzzer is electrically connected to a second end of the sixth resistor R6;

[0096] a fourth MOS tube Q4, wherein a first end of the fourth MOS tube Q4 is electrically connected to a second end of the buzzer, and a second end of the fourth MOS tube Q4 is grounded;

[0097] A seventh resistor R7, wherein the seventh resistor R7 is electrically connected to the third end of the fourth MOS transistor Q4, and a second end of the seventh resistor R7 is used to receive an enable signal.

[0098] In some embodiments, the aforementioned Figure 7 In the embodiment, the sixth resistor R6 is composed of a single resistor. In some preferred embodiments, in order to provide a suitable voltage for the buzzer, more than two resistors may be connected in parallel or in series to construct a resistor R6 with a reasonable resistance value, for example Figure 8 The parallel scheme shown in .

[0099] As an optional implementation, Fig. 9 As shown, the alarm module also includes:

[0100] A voltage stabilizing diode D2, wherein an anode of the voltage stabilizing diode D2 is electrically connected to the second end of the sixth resistor R6, and a cathode of the voltage stabilizing diode D2 is electrically connected to the second end of the buzzer.

[0101] In some embodiments, a voltage regulator diode is connected in parallel with the buzzer, so that the voltage of the buzzer can be clamped, so that there is a higher voltage difference at both ends of the buzzer.

[0102] like Fig.10 As shown, an exemplary implementation of the utility model is shown, and the working process of the multi-hard disk switching device of the exemplary implementation is exemplarily described as follows:

[0103] After the mainboard is powered on, the microcontroller is reset, and the microcontroller reads the state of the hard disk switch through the first input interface.

[0104] If the switch is at the A end, the SW value input to the microcontroller is high. The microcontroller outputs PWR_A_EN high and PWR_B_EN low. After booting, hard disk A and encryption card have power and work normally, but hard disk B has no power input and does not work. The MCU outputs LED_A high and LED_B low. The LEDA indicator is on, indicating that hard disk A is selected, and the LEDB indicator is off, indicating that hard disk B is not selected. SPK is low and the buzzer does not alarm, indicating that the state of the hard disk switch is correct.

[0105] If the switch is at the B end, the SW value input to the MCU is low. The MCU outputs PWR_B_EN as high and PWR_A_EN as low. After booting, the B hard disk has power and works normally, but the A hard disk and the encryption card have no power input and do not work. The MCU outputs LED_B as high and LED_A as low. The LEDB indicator is on, indicating that the B hard disk is selected, and the LEDA indicator is off, indicating that the A hard disk is not selected. SPK is low and the buzzer does not alarm, indicating that the state of the hard disk switch is correct.

[0106] The aforementioned working process is the case where the switch is not operated after the startup is completed. The switching process of the switch is exemplarily described as follows:

[0107] After the mainboard is powered on, the microcontroller is reset and reads the status of the hard disk switch.

[0108] If the switch is at the A end, SW is high. The microcontroller outputs PWR_A_EN high, PWR_B_EN low, LED_A high, LED_B low, and SPK low. The indicator LEDA of hard disk A is on, the buzzer does not sound, the hard disk switch is in the correct state, and after booting, hard disk A and encryption card are powered on and work, while hard disk B is always powered off and does not work.

[0109] Toggle the hard disk switch to switch to hard disk B. If the microcontroller reads the CPU status bit signals SLP_S3 and SLP_S4 as low level, it means the motherboard is in shutdown state. Perform normal hard disk switch action, the microcontroller outputs PWR_B_EN as high, PWR_A_EN as low, LED_B as high, LED_A as low, SPK as low, the motherboard switches to the power supply circuit of hard disk B, the indicator light of hard disk B is on, and the buzzer does not alarm.

[0110] Toggle the hard disk switch to switch to hard disk B. If the microcontroller reads the CPU status bit signals SLP_S3 and SLP_S4 as not all low levels, it means that the computer is in a non-shutdown state, prohibiting hard disk switching and alarming. The microcontroller outputs PWR_A_EN as high, PWR_B_EN as low, LED_A outputs PWM signals, LED_B as low, and SPK outputs high. Hard disk A and encryption card still work, hard disk B is still powered off, and the indicator light of hard disk A flashes, indicating that the circuit still selects hard disk A at this time. The state of the switch is wrong, and the buzzer alarms to remind the staff to turn the hard disk switch back to the A end, or shut down and re-enter the B hard disk. If the staff knows that the switch state is wrong and wants to continue working, they can press the button to turn off the buzzer, and the A hard disk light also keeps flashing reminders. Or if the staff turns the hard disk switch back to the A end, the buzzer stops buzzing, and the A hard disk light also stops flashing and turns to be always on.

[0111] When the mainboard is powered on and the switch is at the B end, the working process is similar to that at the A end, and will not be repeated here.

[0112] The above is only a specific implementation of the utility model, but the protection scope of the utility model is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the utility model should be included in the protection scope of the utility model. Therefore, the protection scope of the utility model should be based on the protection scope of the claims.

Claims

1. A multi-hard disk switching device, characterized in that: include: A plurality of hard disk power supplies, each of which has a power output interface and an enable interface, wherein the hard disk power output interface is connected to a hard disk, and the plurality of hard disk power supplies correspond to the plurality of hard disks one by one; the hard disk power supply is used to supply power to the corresponding hard disk in the enable state, so that the corresponding hard disk enters the working state; A switching switch, used to output a corresponding switching signal in response to a user operation; A microcontroller, the microcontroller having a first control signal output interface, a first input interface and a second input interface, the first control signal output interface is electrically connected to the enable interface of the hard disk power supply, the first input interface is electrically connected to the switching switch, and the second input interface is electrically connected to the central processing unit, the microcontroller is used to generate an enable signal based on the switching signal received by the first input interface and the central processing unit status signal received by the second input interface, and output the enable signal to the enable interface of the hard disk power supply through the first control signal output interface, so that the hard disk power supply corresponding to the switching signal is enabled.

2. The multi-hard disk switching device according to claim 1, characterized in that: The first control signal output interface of the microcontroller includes a plurality of output pins; the plurality of output pins are electrically connected to the enable interfaces of the plurality of hard disk power supplies in a one-to-one correspondence.

3. The multi-hard disk switching device according to claim 1, characterized in that: The first control signal output interface of the microcontroller comprises: An output pin, the output pin being electrically connected to an enable interface of one of the hard disk power supplies; An inverter, wherein an input end of the inverter is electrically connected to the output pin, and an output end of the inverter is electrically connected to an enable interface of another hard disk power supply.

4. The multi-hard disk switching device according to claim 1, characterized in that: The device also includes: An encryption card, wherein the encryption card is electrically connected to one of the hard disks, and the encryption card and the corresponding hard disk are both electrically connected to the same hard disk power supply.

5. The multi-hard disk switching device according to claim 1, characterized in that: The hard disk power supply comprises: a first resistor, wherein a first end of the first resistor is electrically connected to an external power source; a second resistor, a first end of the second resistor being electrically connected to a second end of the first resistor; a first MOS transistor, wherein a first end of the first MOS transistor is electrically connected to a second end of the second resistor, a second end of the first MOS transistor is grounded, and a third end of the first MOS transistor is used to receive the enable signal; a third resistor, a first end of the third resistor being electrically connected to a second end of the first resistor; a first capacitor, wherein a first end of the first capacitor is electrically connected to a second end of the third resistor, and a second end of the first capacitor is electrically connected to a first end of the first resistor; a first diode, wherein an input end of the first diode is electrically connected to a first end of the third resistor, and an output end of the first diode is electrically connected to a second end of the third resistor; a second MOS transistor, wherein an input end of the second MOS transistor is electrically connected to a second end of the first capacitor, and a control end of the second MOS transistor is electrically connected to a first end of the first capacitor; A second capacitor, wherein a first end of the second capacitor is electrically connected to the output end of the second MOS transistor, and a second end of the second capacitor is grounded; A third capacitor, wherein a first end of the third capacitor is electrically connected to a first end of the second capacitor, a second end of the third capacitor is electrically connected to a second end of the second capacitor, and a first end of the third capacitor is used to supply power to a corresponding hard disk.

6. The multi-hard disk switching device according to claim 1, characterized in that: The device also includes: A hard disk indicator light, each of which corresponds to a hard disk, and has a control interface; The microcontroller has a second control signal output interface, which is electrically connected to the control interface of the hard disk indicator light. The microcontroller is also used to generate a control signal based on the switching signal input by the first input interface and the central processing unit status signal input by the second input interface, and output it to the control interface of the hard disk indicator light through the second control signal output interface, so that the hard disk indicator light indicates the working status of the corresponding hard disk.

7. The multi-hard disk switching device according to claim 6, characterized in that: The hard disk indicator light comprises: a fourth resistor, wherein a first end of the fourth resistor is electrically connected to an external power supply; An LED lamp bead, wherein a first end of the LED lamp bead is electrically connected to a second end of the fourth resistor; a third MOS tube, wherein a first end of the third MOS tube is electrically connected to a second end of the LED lamp bead, a second end of the third MOS tube is grounded, and a third end of the third MOS tube is used to receive the control signal; A fifth resistor, wherein a first end of the fifth resistor is electrically connected to the third end of the third MOS tube, and a second end of the fifth resistor is grounded.

8. The multi-hard disk switching device according to claim 6, characterized in that: The device also includes: An alarm module, wherein the alarm module has an enabling interface; A release module, the release module is used to generate a release signal for releasing the alarm in response to a user operation; The microcontroller also has a third input interface and a third control signal output interface, the third input interface is electrically connected to the release module, and the third control signal output interface is electrically connected to the enable interface of the alarm module. The microcontroller is also used to generate an enable signal based on the switching signal input by the first input interface, the status signal of the central processing unit input by the second input interface, and the release signal input by the third input interface, and output it to the enable interface of the alarm module through the third control signal output interface to control the enable state of the alarm module.

9. The multi-hard disk switching device according to claim 8, characterized in that: The alarm module comprises: a sixth resistor, wherein a first end of the sixth resistor is electrically connected to an external power supply; a buzzer, wherein a first end of the buzzer is electrically connected to a second end of the sixth resistor; a fourth MOS tube, wherein a first end of the fourth MOS tube is electrically connected to a second end of the buzzer, and a second end of the fourth MOS tube is grounded; A seventh resistor, wherein the seventh resistor is electrically connected to the third end of the fourth MOS tube, and a second end of the seventh resistor is used to receive an enable signal.

10. The multi-hard disk switching device according to claim 9, characterized in that: The alarm module also includes: A voltage regulator diode, wherein an anode of the voltage regulator diode is electrically connected to the second end of the sixth resistor, and a cathode of the voltage regulator diode is electrically connected to the second end of the buzzer.