CN109684883B - Flash disk storage device and method - Google Patents
Flash disk storage device and method Download PDFInfo
- Publication number
- CN109684883B CN109684883B CN201811599485.5A CN201811599485A CN109684883B CN 109684883 B CN109684883 B CN 109684883B CN 201811599485 A CN201811599485 A CN 201811599485A CN 109684883 B CN109684883 B CN 109684883B
- Authority
- CN
- China
- Prior art keywords
- power
- disk
- period
- flash
- flash memory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/70—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
- G06F21/78—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data
- G06F21/79—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data in semiconductor storage media, e.g. directly-addressable memories
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/70—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
- G06F21/81—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer by operating on the power supply, e.g. enabling or disabling power-on, sleep or resume operations
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The application discloses device is kept to flash disk includes: the temperature sensor module is used for acquiring the current environment temperature; the controller module is used for calculating the power-on and power-off period of the flash memory disc according to the current environment temperature; the power supply module is used for supplying power to the flash memory disk when the power-off time of the flash memory disk reaches the power-on and power-off period; and the controller module is also used for maintaining and processing data in the flash memory disk when the power-off time of the flash memory disk reaches the power-on and power-off period. The scheme can solve the problems of data errors and even data loss of the flash disk caused by long-time power failure and overhigh temperature.
Description
Technical Field
The present application relates to the field of data storage, and in particular, to a flash disk storage apparatus and method.
Background
Flash memory disks, such as USB disks, SATA solid state disks, PCIe solid state disks, SAS solid state disks, and the like, have been widely used in the markets of military industry, industrial control, and civil use at present, and the storage mode of the flash memory medium replaces the original electromagnetic storage mode, and has significant achievements in shock resistance, drop resistance, storage speed, power consumption, and the like. However, the working mechanism based on the flash disk has certain requirements on the application and storage environment. When the flash memory medium reads data, binary data of '0' or '1' needs to be read out by judging whether electricity exists in each crystal lattice (basic storage unit of the flash memory), under the condition of long-time non-electrification, electrons in the crystal lattices can overflow to influence the voltage in the crystal lattices, so that the original '1' data is wrongly identified as data '0', and finally the data is lost or damaged, and the flash memory disc cannot be electrified for a long time. If the surrounding environment is ideal, the consumption-level solid state disk can keep the data for 2 years under the condition of no power supply; however, if the data is an enterprise-level solid state disk, the validity period of the data is only 4 months. And as the temperature rises, electrons can escape from the floating gate more quickly, and finally the voltage state of the crystal cell can be changed, so that the data is unreadable, and the data retention time can be shortened. In addition, the flash disk can cause data loss if sudden power failure occurs during the use process.
In the prior art, a super capacitor or a battery module is added on a solid state disk mainboard for storing energy, so that data loss caused by sudden power failure is avoided; internal maintenance is carried out on the hard disk which is not electrified in a short time when the hard disk is electrified again by optimizing a voltage detection and data error correction algorithm (such as a flash algorithm) of the hard disk master control; data which needs to be stored cold for a long time is usually stored only by a mechanical hard disk, or the integrity of the data in the flash disk is ensured by manually and regularly maintaining the flash disk.
However, the above prior art still has many problems: when the hard disk is normally started and shut down, the flash algorithm can ensure that the voltage in the crystal lattice is stable, the crystal lattice is not electrified in a short time (several weeks), after the crystal lattice is electrified, the main control of the hard disk can also realize the intelligent detection and error correction algorithm on the crystal lattice voltage, but under the condition that the hard disk is not electrified for a long time (several months or even several years), the data disorder of the hard disk can exceed the original error correction capability of the hard disk, so that the irreversible error of the hard disk data is caused; the maintenance of the flash memory disk by manpower regularly needs additional manpower resources, so that the labor cost for maintaining the flash memory disk is increased; moreover, the existing power supply system for controlling the power on and off of the hard disk usually needs to be connected with a computer, and the hardware cost for maintaining the flash disk is increased.
Disclosure of Invention
The application provides a device is kept to flash memory dish automatically regularly gives the power supply of flash memory dish and carries out data maintenance, can adjust the break-make electricity cycle according to ambient temperature simultaneously to solve long-time not circular telegram and the high problem that leads to flash memory dish data error to lose even of high temperature.
In order to solve the above problems, the following technical solutions are adopted in the present application:
a flash disk storage apparatus comprising: the temperature sensor module is used for acquiring the current environment temperature; the controller module is used for calculating the power-on and power-off period of the flash memory disc according to the current environment temperature; the power supply module is used for supplying power to the flash memory disk when the power-off time of the flash memory disk reaches the power-on and power-off period; and the controller module is also used for maintaining and processing data in the flash memory disk when the power-off time of the flash memory disk reaches the power-on and power-off period.
Preferably, the controller module is configured to calculate a power-on/off period of the flash disk according to the current ambient temperature, and includes: when the current environment temperature is higher, the power on-off period is shortened; and when the current environment temperature is lower, prolonging the power-on and power-off period.
Preferably, the controller module is configured to perform data maintenance processing on data in the flash disk when the power-off time of the flash disk reaches the power-on/power-off period, and includes: and reading the data in the flash disk, and rewriting the data into the flash disk.
Preferably, the power module is configured to supply power to the flash memory disk when the power-off time of the flash memory disk reaches the power-on/off period, and includes: the power is supplied by an external power supply or a built-in battery.
Preferably, the controller module is further configured to monitor a working state; the device also comprises an indicator light module used for displaying the working state.
A method of maintaining a flash disk, comprising: acquiring the current environment temperature; calculating the power-on and power-off period of the flash memory disk according to the current environment temperature; and when the power-off time of the flash memory disk reaches the power-on and power-off period, supplying power to the flash memory disk, and maintaining data in the flash memory disk.
Preferably, the calculating the power-on and power-off period of the flash memory according to the current environment temperature includes: when the current environment temperature is higher, the power on-off period is shortened; and when the current environment temperature is lower, prolonging the power-on and power-off period.
Preferably, the performing data maintenance processing on the data in the flash disk includes: and reading the data in the flash disk, and rewriting the data into the flash disk.
Preferably, the supplying power to the flash disk includes: the power is supplied by an external power supply or a built-in battery.
Preferably, the method further comprises: monitoring the working state; and displaying the working state.
The above-mentioned at least one technical scheme that this application adopted can reach following beneficial effect:
according to the device and the method for keeping the flash disk, power is supplied to the flash disk regularly and data is maintained regularly, so that power on and power off of the flash disk and automation of data maintenance are achieved, human resources are saved, and data reliability of the flash disk is guaranteed; the power-on and power-off period is calculated according to the current temperature, the power-on and power-off period is intelligently adjusted along with the temperature change, the data storage is prevented from being influenced by the temperature rise, and meanwhile, the energy consumption is saved when the temperature is lower.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic structural diagram of a flash disk storage apparatus according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a flash disk storage method according to an embodiment of the present application.
Description of reference numerals:
1-flash disk storage device, 2-flash disk, 101-temperature sensor module, 102-controller module, 103-power module, 104-timer module, 105-indicator light module and 106-interface module.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Referring to fig. 1, a schematic structural diagram of a flash disk storage apparatus 1 disclosed in an embodiment of the present application includes:
the temperature sensor module 101 is used for acquiring the current ambient temperature;
the controller module 102 is used for calculating the power-on and power-off period of the flash memory according to the current environment temperature;
specifically, calculating the power-on and power-off cycle according to the current ambient temperature comprises the following steps: when the current environment temperature is higher, the power on-off period is shortened; and when the current environment temperature is lower, prolonging the power-on and power-off period.
The power supply module 103 is used for supplying power to the flash memory disk when the power-off time of the flash memory disk reaches the power-on and power-off period;
the controller module 102 further performs data maintenance processing on data in the flash memory disk when the power-off time of the flash memory disk reaches the power-on/off period.
Specifically, the apparatus may further include a timer module 104 for timing a power-off time of the flash disk;
specifically, the performing data maintenance processing on the data in the flash disk includes: and reading the data in the flash disk, and rewriting the data into the flash disk.
The flash disk storage apparatus 1 may further include an interface module 106, and the controller module 102 reads data in the flash disk through the interface module 106 and then rewrites the data in the flash disk through the interface module 106. The interface module 106 includes one or more data interfaces that support data reading and rewriting to one or more flash disks, ensuring data reliability of the one or more flash disks.
Specifically, the flash disk is powered by an external power supply or a built-in battery.
The power module 103 may include a built-in battery, a power supply circuit, and a voltage conversion circuit, and the power module 103 further includes an external power interface. When an external power supply (such as commercial power 220V) can supply power, the external power supply supplies power to the flash disk through voltage stabilization and voltage conversion of the power supply circuit and the voltage conversion circuit; when the external power supply can not supply power, the built-in battery supplies power to the flash disk through the voltage stabilization and voltage conversion of the power supply circuit and the voltage conversion circuit. Therefore, power supply guarantee is provided for data maintenance of the flash disk, and data damage or loss caused by sudden power failure is effectively avoided.
The power module 103 may provide power to the flash memory disk via the interface module 106, and the interface module 106 may further include one or more power interfaces to support power to the one or more flash memory disks.
The controller module 102 is also used for monitoring the working state; the flash disk safekeeping apparatus may further include an indicator light module 105 for displaying the operating state. The operating state may include: the charging state of the battery, the electric quantity condition of the battery, whether the flash disk is electrified or not and the like, and the human-computer interaction is carried out by displaying the corresponding states.
Referring to fig. 2, an embodiment of the present application discloses a flow chart of a method for storing a flash disk. The flash disk storage method supports various flash disk types, such as USB disks, SATA solid state disks, SAS solid state disks, PCIe solid state disks and the like. The method comprises the following steps:
step S11, acquiring the current environment temperature;
step S12, calculating the power on-off period of the flash disk according to the current environment temperature;
since the high temperature accelerates the escape of electrons from the floating gate in the flash memory medium, causing the voltage state of the cell to change, making the data unreadable, the higher the temperature, the shorter the data retention time in the flash disk. In order to solve the above problem, the present application calculates the power-on/power-off period according to the current temperature, specifically: when the current environment temperature is higher, the power on-off period is shortened; and when the current environment temperature is lower, prolonging the power-on and power-off period.
And step S13, when the power-off time of the flash memory disk reaches the power-on and power-off period, supplying power to the flash memory disk, and maintaining data in the flash memory disk.
Specifically, the performing data maintenance processing on the data in the flash disk includes: and reading the data in the flash disk, and rewriting the data into the flash disk.
Specifically, the power supply for the flash disk comprises power supply of an external power supply or power supply of an internal battery. When the external power supply can not supply power, the flash memory disk is supplied with power through the built-in battery, so that power supply guarantee is provided for data maintenance of the flash memory disk, and data damage or loss caused by sudden power failure is effectively avoided.
The method for keeping the flash memory disks can support power supply and data maintenance of one or more flash memory disks, and ensure the data reliability of one or more flash memory disks.
The method for keeping the flash disk further comprises a step S14 of monitoring the working state; and displaying the working state. The operating state may include: the charging state of the battery, the electric quantity condition of the battery, whether the flash disk is electrified or not and the like, and the human-computer interaction is carried out by displaying the corresponding states.
In this context, the features of the individual preferred embodiments can be combined to form embodiments, which are within the scope of the disclosure, as long as they are not contradictory.
In the present specification, the respective preferred embodiments are only described with emphasis on differences from other preferred embodiments, and the respective preferred embodiments may be arbitrarily combined as long as they do not conflict with each other, and the embodiments formed by combining are also within the scope disclosed in the present specification, and in view of the brevity of the text, the embodiments formed by combining are not separately described herein.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (8)
1. A flash disk storage apparatus, comprising: the temperature sensor module is used for acquiring the current environment temperature; the controller module is used for calculating the power-on and power-off period of the flash memory disc according to the current environment temperature; the power supply module is used for supplying power to the flash memory disk when the power-off time of the flash memory disk reaches the power-on and power-off period; the controller module is also used for maintaining and processing data in the flash memory disk when the power-off time of the flash memory disk reaches the power-on and power-off period; the controller module is further used for calculating the power-on and power-off period of the flash memory disk according to the current environment temperature, and comprises: when the current environment temperature is higher, the power on-off period is shortened; and when the current environment temperature is lower, prolonging the power-on and power-off period.
2. The apparatus of claim 1, wherein the controller module is configured to perform data maintenance processing on the data in the flash disk when the power-off time of the flash disk reaches the power-on/off period, and includes: and reading the data in the flash disk, and rewriting the data into the flash disk.
3. The apparatus of claim 1, wherein the power module, for powering the flash disk when the power-off time of the flash disk reaches the power-on/off period, comprises: the power is supplied by an external power supply or a built-in battery.
4. The apparatus of claim 1, wherein the controller module is further configured to monitor an operating condition; the device also comprises an indicator light module used for displaying the working state.
5. A method of maintaining a flash disk, comprising:
acquiring the current environment temperature; calculating the power-on and power-off period of the flash memory disk according to the current environment temperature;
when the power-off time of the flash memory disk reaches the power-on and power-off period, supplying power to the flash memory disk, and maintaining data in the flash memory disk; the calculating the power-on and power-off period of the flash memory according to the current environment temperature comprises the following steps: when the current environment temperature is higher, the power on-off period is shortened; and when the current environment temperature is lower, prolonging the power-on and power-off period.
6. The method of claim 5, wherein performing a data maintenance process on the data in the flash drive comprises: and reading the data in the flash disk, and rewriting the data into the flash disk.
7. The method of claim 5, wherein said powering the flash drive comprises: the power is supplied by an external power supply or a built-in battery.
8. The method of claim 5, further comprising: monitoring the working state; and displaying the working state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811599485.5A CN109684883B (en) | 2018-12-26 | 2018-12-26 | Flash disk storage device and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811599485.5A CN109684883B (en) | 2018-12-26 | 2018-12-26 | Flash disk storage device and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109684883A CN109684883A (en) | 2019-04-26 |
CN109684883B true CN109684883B (en) | 2021-07-20 |
Family
ID=66188389
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811599485.5A Active CN109684883B (en) | 2018-12-26 | 2018-12-26 | Flash disk storage device and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109684883B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN204461635U (en) * | 2015-03-11 | 2015-07-08 | 河南师范大学 | Based on solar powered high voltage bus wireless temperature monitoring device |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7694188B2 (en) * | 2007-02-05 | 2010-04-06 | Microsoft Corporation | Disk failure prevention and error correction |
CN101339802B (en) * | 2007-07-06 | 2010-09-01 | 研祥智能科技股份有限公司 | Electronic hard disc and electronic apparatus |
CN201607686U (en) * | 2010-03-15 | 2010-10-13 | 浪潮电子信息产业股份有限公司 | Device for permanently protecting data |
CN102289414A (en) * | 2010-06-17 | 2011-12-21 | 中兴通讯股份有限公司 | Memory data protection device and method |
TW201235845A (en) * | 2011-02-17 | 2012-09-01 | Acer Inc | Hard disk protection system and method thereof |
CN104898480A (en) * | 2015-04-30 | 2015-09-09 | 广州杰赛科技股份有限公司 | Environment detection apparatus and power control method thereof, and emergency monitoring system |
CN105511807B (en) * | 2015-11-30 | 2018-05-22 | 杭州华澜微电子股份有限公司 | A kind of data storage and management method and system based on storage device |
CN107480526A (en) * | 2017-07-31 | 2017-12-15 | 苏州巴吉特信息咨询有限公司 | A kind of intelligent safety-type hard disk and its method of work |
CN108777156A (en) * | 2018-05-31 | 2018-11-09 | 郑州云海信息技术有限公司 | A kind of flash memory data processing method and device |
-
2018
- 2018-12-26 CN CN201811599485.5A patent/CN109684883B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN204461635U (en) * | 2015-03-11 | 2015-07-08 | 河南师范大学 | Based on solar powered high voltage bus wireless temperature monitoring device |
Non-Patent Citations (1)
Title |
---|
《固态硬盘(SSD)控制器片上系统芯片(SOC)》;骆建军等;《科技成果》;20130123;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN109684883A (en) | 2019-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021068624A1 (en) | Systems and methods for power outage protection of storage device | |
US10229019B2 (en) | Power fail circuit for multi-storage-device arrays | |
TWI467376B (en) | Data protecting method, and memory controll and memory storage device using the same | |
US9405356B1 (en) | Temperature compensation in data storage device | |
US9336089B2 (en) | Processing apparatus, method, and non-transitory computer-readable storage medium | |
US9940021B2 (en) | Method and system for memory management and memory storage device thereof | |
US10175902B2 (en) | Managing host communication with a regulator in a low power mode | |
TW201843476A (en) | Intelligent backup capacitor management | |
US20150089210A1 (en) | Electronic device and low battery boot-up method | |
CN104881375A (en) | Power-down data protection method and device of storage system | |
US20110271032A1 (en) | Access device and memory controller | |
US20220326862A1 (en) | System and method for managing solid state storage devices in low temperature environment | |
CN108369488B (en) | Using volatile memory as non-volatile memory | |
CN103378986A (en) | System event log recording system and method | |
JP2012079100A (en) | Disk control apparatus and method and program | |
CN109445561B (en) | Power failure protection system and method applied to server and server | |
CN109684883B (en) | Flash disk storage device and method | |
JP5795758B2 (en) | Method for protecting data in non-volatile storage device | |
US20120212189A1 (en) | System and method for electronic device charging | |
US20150039925A1 (en) | Computing device and method for adjusting an operating status of a computing device | |
CN112506686A (en) | Method and device for realizing log system of DCS (distributed control system) controller | |
CN107957922A (en) | A kind of memory power-off protection method | |
TWI692691B (en) | Memory control device and memory control method | |
CN103985403A (en) | Working clock switching method, memory controller and memory storage device | |
US11733910B2 (en) | Memory sub-system data loss prediction |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |