Power-down protection method and device for rail transit server

文档序号:1782701 发布日期:2019-12-06 浏览:18次 中文

阅读说明:本技术 一种轨道交通服务器掉电保护方法及装置 (Power-down protection method and device for rail transit server ) 是由 李伟干 胡俊普 徐必伟 于 2019-09-09 设计创作,主要内容包括:本发明提供了一种轨道交通服务器掉电保护方法和装置,其中方法包括:获取电源输入状态;根据电源输入状态控制后备电源主控模式,后备电源包括超级电容模组;所述根据电源输入状态控制后备电源主控模式。通过直接监控输入电压来监控硬中断,同时通过设置电压门限值比较输入电压是否小于门限值来监控软中断,软中断与硬中断协同,增加容错率,实现对硬盘的掉电保护。(The invention provides a power failure protection method and a power failure protection device for a rail transit server, wherein the method comprises the following steps: acquiring a power supply input state; controlling a main control mode of a backup power supply according to the input state of the power supply, wherein the backup power supply comprises a super capacitor module; and controlling a master control mode of the backup power supply according to the power supply input state. The hard interrupt is monitored by directly monitoring the input voltage, and meanwhile, the soft interrupt is monitored by setting a voltage threshold value to compare whether the input voltage is smaller than the threshold value, and the soft interrupt and the hard interrupt cooperate to increase the fault-tolerant rate and realize the power failure protection of the hard disk.)

1. A rail transit server power-down protection method is characterized by comprising the following steps:

acquiring a power supply input state;

Controlling a main control mode of a backup power supply according to the input state of the power supply, wherein the backup power supply comprises a super capacitor module;

The controlling of the main control mode of the backup power supply according to the power supply input state comprises the steps of controlling the backup power supply to start a boosting mode to discharge and provide power for electric equipment if the power supply input state is interrupted; and if the power supply input state is normal, controlling the backup power supply to start the step-down mode for charging so as to charge the backup power supply.

2. The rail transit server power-down protection method according to claim 1, further comprising: setting an input voltage threshold value and a sampling period;

Acquiring an input voltage value according to a sampling period and comparing the input voltage value with a set threshold value;

feeding back the power input state according to the comparison result: if the input voltage value is smaller than the threshold value, the input state of the feedback power supply is interrupted; and if the input voltage value is not less than the threshold value, the input state of the feedback power supply is normal.

3. The rail transit server power-down protection method according to claim 2, wherein when the power input state is interrupted, the power supply states of the electric devices are respectively controlled.

4. The rail transit server power-fail protection method according to claim 3, wherein when the power input state is interrupted, the backup power supply is controlled to supply power to the main board and the hard disk, the hard disk is controlled to write in the cache data, and the write operation is closed.

5. The power-fail protection method for the rail transit server as claimed in claim 1, wherein when the power input state is normal, the TRIM mechanism is controlled to be started to erase the idle data of the hard disk at regular time.

6. The rail transit server power-down protection method according to claim 1, further comprising: and acquiring the capacity of the super capacitor.

7. The utility model provides a rail transit server power down protection device which characterized in that includes:

The backup power supply comprises a super capacitor module;

The acquisition module is used for acquiring the input state of the power supply;

The control module is used for controlling a main control mode of the backup power supply according to the power supply input state, and controlling the backup power supply to start a boosting mode to discharge if the power supply input state is interrupted, so as to provide power for the hard disk; and if the power supply input state is normal, controlling the backup power supply to start the step-down mode for charging so as to charge the backup power supply.

8. The rail transit server power-down protection device according to claim 7, further comprising a cooperative control module, wherein the cooperative control module comprises:

The setting unit is used for setting an input voltage threshold value and a sampling period;

the acquisition unit is used for acquiring an input voltage value according to a sampling period;

a comparison unit for comparing the input voltage value with a set threshold value;

the first control unit is used for feeding back the power supply input state according to the comparison result: if the input voltage value is smaller than the threshold value, the input state of the feedback power supply is interrupted; and if the input voltage value is not less than the threshold value, the input state of the feedback power supply is normal.

9. the power-down protection device for the rail transit server according to claim 8, comprising a second control unit for respectively controlling power supply states of the electric devices.

10. the power-fail protection device for the rail transit server according to claim 9, wherein the second control unit comprises a sub-control unit, and is configured to control the backup power supply to supply power to the main board and the hard disk, cut off power supply of other electric devices, and control the hard disk to write in cache data and close write operation when the power input state is interrupted.

11. the power-fail protection device for the rail transit server as claimed in claim 7, further comprising a third control unit, configured to control to start the TRIM mechanism to erase the idle data of the hard disk at a timing when the power input state is normal.

12. the rail transit server power-fail safeguard device as claimed in claim 7, wherein the obtaining unit is further configured to obtain the capacity of the super capacitor.

Technical Field

the invention relates to the technical field of rail transit, in particular to a rail transit server power failure protection method and device.

Background

at present, the service environment of a rail transit vehicle-mounted server is complex, a power supply network fluctuates to a certain extent, and the condition is more serious when a train is maintained and overhauled, so that the data loss of a mainboard and an industrial solid state disk is caused by frequent on-off potentials of the vehicle-mounted server, and the damage and the system breakdown are caused seriously.

The solid state disk is different from a magnetic storage mode of a mechanical hard disk, the magnetic storage needs the cooperation of a scanning magnetic head and a rotating magnetic disk, and the solid state disk changes the magnetic storage mode into an integrated circuit storage mode, so that the storage mode has the advantages of vibration impact resistance, high and low temperature resistance and humidity and heat resistance. And the hard disk is more suitable for complex environment occasions than mechanical hard disks. The minimum storage medium of the solid state disk is a floating gate transistor, corresponds to a 1bit storage unit, and can realize the on and off states of the transistor by injecting a certain amount of electrons into the grid electrode of the transistor, and corresponds to 0/1 and other different data. Therefore, the data processing of the solid state disk needs to be powered on, and due to the influence of factors such as the characteristics of erasing and writing of the flash memory, wear balance and the like, a conversion table FTL (flash Translation layer) which is linked between an address table (LBA) and a data actual storage address table (PBA) is arranged in the solid state disk, and if the mapping table is damaged, the solid state disk is changed into a brick due to abnormal power failure. Normal devices experience both sudden voltage fluctuations and power outages. The first condition is data loss, and the data in the buffer area of the hard disk can be lost when sudden power failure occurs; the second situation is that the hard disk is writing, and if power is suddenly cut off, the solid state disk can be dropped. If so, the individual position cannot be read or written, and if not, the position is completely damaged.

At present, a UPS can realize the effect of power failure protection, but if the UPS battery is applied to a rail transit server, the UPS battery cannot pass the safety requirement condition. The solid state disk with power-off protection is expensive, the service life of the internal capacitor is limited, and the solid state disk is not suitable for mass production and manufacturing of the rail transit server and high in maintenance cost.

disclosure of Invention

In view of the above problems, the present invention is proposed to provide a method and an apparatus for power-down protection of a track traffic server, which overcome or at least partially solve the above problems, and monitor a hard interrupt by directly monitoring an input voltage parameter, and simultaneously monitor a soft interrupt by setting a threshold voltage and comparing a difference between the input voltage and the threshold voltage, wherein the soft interrupt and the hard interrupt cooperate to increase a fault-tolerant rate, thereby implementing power-down protection of a hard disk. .

The embodiment of the invention provides a power failure protection method for a rail transit server, which comprises the following steps:

acquiring a power supply input state;

controlling a main control mode of a backup power supply according to the input state of the power supply, wherein the backup power supply comprises a super capacitor module;

The controlling of the main control mode of the backup power supply according to the power supply input state comprises the steps of controlling the backup power supply to start a boosting mode to discharge and provide power for electric equipment if the power supply input state is interrupted; and if the power supply input state is normal, controlling the backup power supply to start the step-down mode for charging so as to charge the backup power supply.

optionally, the method further includes:

Setting an input voltage threshold value and a sampling period;

Acquiring an input voltage value according to a sampling period and comparing the input voltage value with a set threshold value;

Feeding back the power input state according to the comparison result: if the input voltage value is smaller than the threshold value, the input state of the feedback power supply is interrupted; and if the input voltage value is not less than the threshold value, the input state of the feedback power supply is normal.

Optionally, when the power input state is interrupted, the power supply states of the electric devices are respectively controlled.

Optionally, when the power input state is interrupted, the backup power supply is controlled to supply power to the motherboard and the hard disk, the hard disk is controlled to write in the cache data, and the write operation is closed.

optionally, when the power input state is normal, the control starts the TRIM mechanism to erase the idle data of the hard disk at regular time.

Optionally, the method further includes: and acquiring the capacity of the super capacitor.

The embodiment of the invention also provides a power failure protection device for the rail transit server, which comprises the following steps:

The backup power supply comprises a super capacitor module;

the acquisition module is used for acquiring the input state of the power supply;

The control module is used for controlling a main control mode of the backup power supply according to the power supply input state, and controlling the backup power supply to start a boosting mode to discharge if the power supply input state is interrupted, so as to provide power for the hard disk; and if the power supply input state is normal, controlling the backup power supply to start the step-down mode for charging so as to charge the backup power supply.

Optionally, the system further includes a cooperative control module, where the cooperative control module includes:

The setting unit is used for setting an input voltage threshold value and a sampling period;

the acquisition unit is used for acquiring an input voltage value according to a sampling period;

a comparison unit for comparing the input voltage value with a set threshold value;

the first control unit is used for feeding back the power supply input state according to the comparison result: if the input voltage value is smaller than the threshold value, the input state of the feedback power supply is interrupted; and if the input voltage value is not less than the threshold value, the input state of the feedback power supply is normal.

Optionally, a second control unit is included, and is configured to control power supply states of the power consumers respectively.

Optionally, the second control unit includes a sub-control unit, and is configured to control the backup power supply to supply power to the motherboard and the hard disk, cut off power supplied to other electrical devices, control the hard disk to write in the cache data, and close the write operation when the power input state is interrupted.

Optionally, the hard disk drive further comprises a third control unit, configured to control to start the TRIM mechanism to erase the idle data of the hard disk at a regular time when the power input state is normal.

Optionally, the obtaining unit is further configured to obtain a capacity of the super capacitor.

The invention has the advantages that:

the invention aims to solve the problem of protecting the solid state disk of the rail transit server in case of abnormal power failure, and provides a hardware and software protection device which is low in cost and effective.

Compared with the solid state disk with the power failure protection, the protection method provided by the invention has the following advantages:

1. The super capacitor module is used as a backup power supply, so that the super capacitor is stable, and absolutely safe and reliable;

2. A backup power supply consisting of a super capacitor continuously supplies power to the mainboard and the hard disk, and the voltage value of the mainboard and the hard disk which stop working is ensured not to fall within a period of time;

3. The protection of the solid state disk is completed by externally connecting a simple hardware circuit device to the CPU of the mainboard, so that the cost is low and the method is suitable for batch manufacturing;

4. aiming at the characteristics of erasing and writing in, the operation of erasing idle data is executed by utilizing a TRIM mechanism provided by an operating system, the TRIM mechanism is optimized, the erasing operation is executed at a specific time point, and the writing efficiency can be greatly improved.

5. The hard interrupt is monitored by directly monitoring the input voltage, and meanwhile, the soft interrupt is monitored by setting a voltage threshold value to compare whether the input voltage is smaller than the threshold value, and the soft interrupt and the hard interrupt cooperate to increase the fault-tolerant rate and realize the power failure protection of the hard disk.

6. the power supply of each electric device can be independently controlled, the power supply of the device which needs to be protected independently is independently controlled, and the power supply of other useless devices is turned off, so that the power supply time of the device which needs to be protected independently is prolonged.

drawings

Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:

fig. 1 shows a flowchart of a power down protection method for a rail transit server according to an embodiment of the invention;

fig. 2 is a flowchart illustrating a soft interrupt coordination method in a rail transit server power failure protection method according to an embodiment of the present invention;

fig. 3 shows a schematic diagram of a rail transit server power down protection device according to an embodiment of the invention;

Fig. 4 shows a circuit diagram of a rail transit server power down protection device according to specific embodiment 1 of the present invention;

Fig. 5 is a flowchart illustrating an implementation of a power down protection method for a rail transit server according to an embodiment of the present invention.

Fig. 6 shows a circuit diagram of a rail transit server power down protection device according to embodiment 2 of the present invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments of the present invention without any creative efforts shall fall within the protection scope of the embodiments of the present invention.

The power failure protection method for the rail transit server in the embodiment of the application, as shown in fig. 1, includes:

Step 1, acquiring a power supply input state;

Specifically, a commercially available power control chip, for example, an LTC3350 chip or an LTC4041 chip, is used. The method can be completed by a simple hardware circuit by utilizing a server mainboard CPU and a backup power main control chip, wherein the main control chip is connected with a power input state-detecting hard interrupt signal, the power is connected with a voltage input end of the chip, and a GPIO (general purpose input/output) is connected with a power failure interrupt output end (hard interrupt signal), the mainboard CPU can read the hard interrupt signal through the GPIO, and when the power is normally supplied, the GPIO reads that the hard interrupt signal is 1, the power input state is normal; when the power supply of the power supply is abnormal, reading a hard interrupt signal to be 0 by the GPIO, and judging that the power input state is interrupt;

Step 2, controlling a backup power supply master control mode according to a power supply input state, wherein the backup power supply comprises a super capacitor module; controlling the main control mode of the backup power supply according to the power input state comprises controlling the backup power supply to start a boosting mode to discharge and provide power for the electric equipment if the power input state is interrupted; and if the power supply input state is normal, controlling the backup power supply to start the step-down mode for charging so as to charge the backup power supply. The backup power supply can be started through a field effect transistor switch.

the electric equipment comprises a mainboard, a hard disk, a network port chip and the like.

specifically, the super capacitor is used as a base to be connected with the chip to serve as a backup power supply. When the power supply is normal, the hard interrupt signal read by the GPIO is 1, the main control chip does not start the backup power supply, the system supplies power to the electric equipment such as a mainboard and a solid state disk through the voltage provided by the power supply, and the backup power supply is in a voltage reduction mode and charges the super capacitor through the power supply; when power supply is abnormal, a hard interrupt signal read by the GPIO is 0, power input jumps to trigger main control interrupt of the backup power supply device, the main control chip controls the backup power supply to start a boosting mode, the backup power supply formed by the super capacitor is switched to continuously supply power to electric equipment, for example, a main board and a hard disk are supplied with power, the voltage value of the main board and the hard disk which stop working is ensured not to fall within a period of time, the hard disk is protected, and the hard disk completes writing of cache data.

when the system is powered off, a backup power supply is switched to supply power to the mainboard and the hard disk, the mainboard CPU reads a hard interrupt signal through the GPIO and sends an instruction to the mainboard, cache data can be written in, and then the writing operation is closed, so that the hard disk can be protected, the data can be protected, and the hard disk damage and the data loss can be avoided.

Specifically, the super capacitor is controlled to be charged at constant current and discharged at constant voltage, the control circuit is bidirectional, the charging process is in a voltage reduction mode, and the discharging process is in a voltage boosting mode.

in a preferred embodiment, a soft interrupt coordination mode may also be added, as shown in fig. 2, to further improve the fault tolerance rate of the system, where the soft interrupt method includes:

Step 11, setting an input voltage threshold value and a sampling period;

The threshold value is set by connecting a divider resistor and setting a threshold value by using an interrupt trigger setting pin in the main control chip, and the threshold value is used as an alarm threshold, and simultaneously, the sampling period of the CPU is set, so that the IIC bus can continuously read the input voltage value.

Step 21, acquiring an input voltage value according to a sampling period and comparing the input voltage value with a set threshold value;

Reading an input voltage value according to a sampling period, comparing the voltage value with a set threshold value, giving an alarm when the voltage value is lower than the threshold value, triggering interruption, interrupting the power input state, and reading a low level 0 by GPIO (general purpose input/output); when the voltage value is larger than the threshold value, the power input state is normal, and the GPIO reads a high level 1.

And 31, feeding back the power input state according to the comparison result: if the input voltage value is smaller than the threshold value, the input state of the feedback power supply is interrupted; and if the input voltage value is not less than the threshold value, the input state of the feedback power supply is normal.

The backup power main control chip can provide parameters such as IIC bus monitoring input voltage, super capacitor capacity and the like, when the voltage value is larger than a threshold value, the feedback power input state is normal, and the GPIO can read a high level 1; at the moment, the power supply of the power supply is normal;

when the voltage value is lower than the threshold value, an alarm is sent out, interruption is triggered, the input state of the feedback power supply is interrupted, the GPIO reads a low level 0, the power supply abnormality is explained, a backup power supply needs to be started to provide power for electric equipment such as a mainboard and a hard disk, the hard disk continues to finish writing in cache data, and the effect of protecting the hard disk and the data is achieved.

that is to say, the CPU can directly read the state of the input voltage through the GPIO, and can also monitor the abnormality of the input voltage by triggering the soft interrupt, and both of them can trigger the backup power supply protection for the electric device. Soft interruption and hard interruption are cooperated, so that the fault tolerance rate is increased; the reliability of the system is improved.

When the input voltage value is lower than the set threshold value or the power input state is interrupted, namely as long as the GPIO reads the low level 0, the power supply mode is switched, the backup power supply is controlled to supply power to the electric equipment, and the hard disk protection function is achieved.

In addition, when the power input state is interrupted, the power supply state of each electric device can be controlled separately.

Aiming at the single special protection circuit, after receiving the interrupt signal of the input state of the power-off power supply, other electric equipment which does not need to be protected is closed, so that the power supply time of the protected object can be prolonged. Therefore, in order to increase the power supply time of the hard disk, the power supply of the standby power supply to other power utilization equipment such as a network port chip can be controlled to be turned off, the cache data is controlled to be written into the hard disk, and the writing operation is turned off.

Of course, power may be supplied only to the hard disk, and devices that do not need protection may be shut down, so that the hard disk is protected although data may be lost.

For the independent power utilization control of each power utilization device, a port switch can be reserved on the main control chip, and the on-off of the switch is controlled through software. And the synchronous control can also be realized by adding a MOS switch in the circuit.

Aiming at the characteristics of erasing first and writing later, the TRIM mechanism provided by the operating system is utilized to execute the operation of erasing the idle data, the TRIM mechanism is optimized, the erasing operation is executed at a specific time point, and the writing efficiency can be greatly improved. Therefore, when the power input state is normal, the TRIM mechanism is started to erase the idle data of the hard disk at regular time, and the efficiency is improved when the interrupt write protection is started.

In addition, the backup power supply control chip can also read the parameter of the capacitance capacity so as to monitor the state of the backup power supply when supplying power to the hard disk. And whether the state of the super capacitor is normal can be monitored through the capacity parameter of the capacitor after the charging is finished.

The main control of the backup power supply provides parameters such as IIC bus monitoring input voltage and super capacitor capacity, the main board can read the parameters in real time through the IIC bus, and can protect the hard disk in a soft interrupt triggering mode, and the fault tolerance rate is increased by cooperating with the hard interrupt.

Another embodiment of the present invention provides a power-down protection device for a rail transit server, as shown in fig. 3, including:

the backup power supply 1 comprises a super capacitor module; the configuration can be carried out according to the actual electricity utilization parameters of the server, and the configuration is connected with the control module and controlled by the control module.

The acquisition module 2 is used for acquiring the input state of the power supply; and the power supply input end is connected with the power supply input end, so that whether the power supply input state is normal can be monitored in real time.

The control module 3 is used for controlling a main control mode of the backup power supply according to the power supply input state, and controlling the backup power supply 1 to start a boosting mode to discharge if the power supply input state is interrupted, so as to provide power for the hard disk; and if the power supply input state is normal, controlling the backup power supply 1 to start the step-down mode for charging, and charging the backup power supply 1.

The obtaining module 2 and the control module 3 can be realized by connecting a power control chip with a simple hardware circuit, that is, the backup power supply 1 main control chip in the embodiment, and the control module 3 can control whether to switch the power supply mode of the backup power supply 1 according to the hard interrupt signal read by the obtaining module 2. The backup power supply 1 can be started by a fet switch. One input end of the control chip is connected with the power input end, and one output end capable of feeding back the state of the power input end is connected with the GPIO end of the CPU of the server mainboard, so that the GPIO can acquire the power input state, namely a hard interrupt signal.

Specifically, the super capacitor is used as a backup power supply 1 and is also connected to the main control chip. When the power supply is normal, the hard interrupt signal read by the GPIO is 1, the main control chip does not start the backup power supply 1, the system supplies power to the electric equipment such as a mainboard and a solid state disk through the voltage provided by the power supply, and the backup power supply 1 is in a voltage reduction mode and charges the super capacitor through the power supply; when power supply is abnormal, a hard interrupt signal read by the GPIO is 0, power input jumps to trigger the main control interrupt of the backup power supply 1 device, the main control chip controls the backup power supply 1 to start a boosting mode, the backup power supply 1 consisting of the super capacitor is switched to continuously supply power to the electric equipment, for example, the power is supplied to a mainboard and a hard disk, the voltage value of the mainboard and the hard disk which stop working is ensured not to fall within a period of time, the hard disk is protected, and the hard disk finishes writing in cache data. The switch of the backup power supply can be completed by driving the MOS tube to be switched on and off by the MOS tube driving end of the chip.

When the system is powered off, the backup power supply 1 is switched to supply power to the mainboard and the hard disk, the mainboard CPU reads a hard interrupt signal through the GPIO and sends an instruction to the mainboard, cache data can be written in, and then the writing operation is closed, so that the hard disk can be protected, the data can be protected, and the hard disk damage and the data loss can be avoided.

specifically, the super capacitor is controlled to be charged at constant current and discharged at constant voltage, the control circuit is bidirectional, the charging process is in a voltage reduction mode, and the discharging process is in a voltage boosting mode.

In a preferred embodiment, the system further comprises a cooperative control module, and the cooperative control module comprises:

the setting unit is used for setting an input voltage threshold value and a sampling period;

The acquisition unit is used for acquiring an input voltage value according to a sampling period;

A comparison unit for comparing the input voltage value with a set threshold value; may be implemented with a comparator.

The first control unit is used for feeding back the power supply input state according to the comparison result: if the input voltage value is smaller than the threshold value, the input state of the feedback power supply is interrupted; and if the input voltage value is not less than the threshold value, the input state of the feedback power supply is normal.

The cooperative control module is triggered by soft interruption, is connected to the other input end of the main control chip through the voltage dividing resistance circuit unit, and sets a voltage threshold value and a sampling period. The voltage dividing resistance circuit unit can be completed by adopting different connection modes so as to achieve the purpose of voltage dividing function.

The threshold value can be used as an alarm threshold, and the sampling period of the CPU is set at the same time, so that the IIC bus can continuously read the input voltage value.

Reading an input voltage value according to a sampling period, comparing the voltage value with a set threshold value, giving an alarm when the voltage value is lower than the threshold value, triggering interruption, interrupting the power input state, and reading a low level 0 by GPIO (general purpose input/output); when the voltage value is larger than the threshold value, the power input state is normal, and the GPIO reads a high level 1.

The main control chip of the backup power supply 1 can provide parameters such as IIC bus monitoring input voltage, super capacitor capacity and the like, when the voltage value is larger than a threshold value, the feedback power supply input state is normal, and GPIO can read a high level 1; at the moment, the power supply of the power supply is normal;

When the voltage value is lower than the threshold value, an alarm is sent out, interruption is triggered, the input state of the feedback power supply is interrupted, the GPIO reads a low level 0, the power supply abnormality is explained, the backup power supply 1 needs to be started to provide power for electric equipment such as a mainboard and a hard disk, the hard disk continues to finish writing in cache data, and the effect of protecting the hard disk and the data is achieved.

That is to say, the CPU can directly read the state of the input voltage through the GPIO, and can also monitor the abnormality of the input voltage by triggering the soft interrupt, and both of them can trigger the power supply protection of the backup power supply 1 to the electric device. Soft interruption and hard interruption are cooperated, so that the fault tolerance rate is increased; the reliability of the system is improved.

When the input voltage value is lower than the set threshold value or the power input state is interrupted, namely as long as the GPIO reads the low level 0, the power supply mode is switched, the backup power supply 1 is controlled to supply power to the electric equipment, and the hard disk protection function is achieved.

In a preferred embodiment, a second control unit is included for controlling the power supply state of each electrical consumer separately. Aiming at the single special protection circuit, after receiving the interrupt signal of the input state of the power-off power supply, other electric equipment which does not need to be protected is closed, so that the power supply time of the protected object can be prolonged. Therefore, in order to increase the power supply time of the hard disk, the backup power supply 1 can be controlled to be turned off to supply power to other electric equipment such as a network port chip, the cache data can be controlled to be written into the hard disk, and the writing operation can be turned off.

Specifically, the second control unit comprises a sub-control unit, and is used for controlling the backup power supply 1 to supply power to the main board and the hard disk, cutting off the power supply of other electric equipment, controlling the hard disk to write in cache data, and closing the write operation when the power input state is interrupted.

Of course, only the hard disk can be powered on, and the equipment which does not need to be protected can be shut down, so that the hard disk can be protected from being damaged although data can be lost.

Aiming at the independent power utilization control of each power utilization device, a switch can be reserved on the main control chip, and the on-off of the switch is controlled through software. In another implementation mode, the on-off can be synchronously controlled by adding a MOS switch in the circuit.

The sub-control unit can control the independent power utilization of each power utilization device, a switch can be reserved on the main control chip, and the on-off of the switch is controlled through software to realize control.

In addition, the hard disk drive further comprises a third control unit, wherein the third control unit is used for controlling and starting the TRIM mechanism to erase the idle data of the hard disk at regular time when the power supply input state is normal.

Aiming at the characteristics of erasing first and writing later, the TRIM mechanism provided by the operating system is utilized to execute the operation of erasing the idle data, the TRIM mechanism is optimized, the erasing operation is executed at a specific time point, and the writing efficiency can be greatly improved. Therefore, when the power input state is normal, the TRIM mechanism is started to erase the idle data of the hard disk at regular time, and the efficiency is improved when the interrupt write protection is started.

in addition, the acquiring unit can be used for acquiring the capacity of the super capacitor. That is, the IIC bus can continuously read the input voltage value and the capacitance capacity in real time. To monitor the state of the backup power supply 1 when supplying power to the hard disk. And whether the state of the super capacitor is normal can be monitored through the capacity parameter of the capacitor after the charging is finished.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:可穿戴设备、可穿戴设备的控制方法及可读存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!