CN201829193U - U flash disk capable of automatically repairing damaged data - Google Patents

U flash disk capable of automatically repairing damaged data Download PDF

Info

Publication number
CN201829193U
CN201829193U CN 201020575069 CN201020575069U CN201829193U CN 201829193 U CN201829193 U CN 201829193U CN 201020575069 CN201020575069 CN 201020575069 CN 201020575069 U CN201020575069 U CN 201020575069U CN 201829193 U CN201829193 U CN 201829193U
Authority
CN
China
Prior art keywords
chip
usb
data
main control
interface
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.)
Expired - Fee Related
Application number
CN 201020575069
Other languages
Chinese (zh)
Inventor
王莹芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHANGHAI SUNRISE POWER AUTOMATION CO Ltd
Original Assignee
SHANGHAI SUNRISE POWER AUTOMATION CO Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by SHANGHAI SUNRISE POWER AUTOMATION CO Ltd filed Critical SHANGHAI SUNRISE POWER AUTOMATION CO Ltd
Priority to CN 201020575069 priority Critical patent/CN201829193U/en
Application granted granted Critical
Publication of CN201829193U publication Critical patent/CN201829193U/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The utility model discloses a U flash disk capable of automatically repairing damaged data, which relates to the technical field of data storage, and solves the technical problems that data is easily damaged after power failure occurs due to accidents to a current U flash disk during reading and writing. The U flash disk comprises a USB (universal serial bus) connector, a USB main control chip, a FLASH chip, an SRAM (static random access memory) chip and a battery. The USB connector is connected with a USB interface of the USB main control chip; a data interface of the FLASH chip and a data interface of the SRAM chip are connected with a data interface of the USB main control chip; the battery is connected with a power interface of the SRAM chip and a power interface of the USB main control chip respectively; and a power interface of the USB connector is connected with the power interface of the SRAM chip, the power interface of the USB main control chip, and a power interface of the FLASH chip respectively. The U flash disk is suitable for electric power automation industry.

Description

A kind of USB flash disk that can repair damaged data automatically
Technical field
The utility model relates to the data storage device technology, particularly relates to a kind of technology that can repair the USB flash disk and the damaged data restorative procedure thereof of damaged data automatically.
Background technology
Along with single-chip microcomputer, DSP(digital signal processor) etc. microprocessor flourish, the power automation industry is had higher requirement to the real-time and the accuracy of supervisory system, make embedded OS be developed rapidly in the power automation industry, thing followed problem is exactly the storage problem that how to solve mass data under the embedded OS environment.
In the existing memory device, the data of storing after USB flash disk (USB flash drive) dead electricity can not lost, and have that read or write speed is fast, capacity big (G level), cost is low, volume is little, the characteristics of plug and play.But, because the power automation industry is different from normal domestic digital product industry, have the characteristics big, power supply instability of disturbing, and existing USB flash disk in the read-write process if the power down that meets accident, might cause the interior loss of data of U deposit or impaired, even destroy whole file system, therefore existing USB flash disk seldom uses in the power automation industry.
The utility model content
At the defective that exists in the above-mentioned prior art, technical problem to be solved in the utility model provides the USB flash disk that can repair damaged data in the read-write process after a kind of power down that meets accident automatically.
In order to solve the problems of the technologies described above, a kind of USB flash disk that can repair damaged data automatically provided by the utility model, comprise USB web member, USB main control chip and FLASH chip, described USB web member is connected to the USB interface of USB main control chip, the data-interface of described FLASH chip is connected to the data-interface of USB main control chip, it is characterized in that: also comprise sram chip and battery; The data-interface of described sram chip is connected to the data-interface of USB main control chip, described battery is connected respectively to the power interface of sram chip and the power interface of USB main control chip, and the power interface of described USB web member is connected respectively to the power interface of the power interface of sram chip, USB main control chip and the power interface of FLASH chip.
The USB flash disk that can repair damaged data automatically that the utility model provides, current operation information when utilizing the read-write of sram chip storage FLASH chip, and utilize battery to provide standby power supply to sram chip and USB main control chip, therefore in to FLASH chip read-write process, meet accident and to utilize after the power down in the sram chip canned data to repair damaged data automatically, be applicable to the power automation industry.
Description of drawings
Fig. 1 be the utility model embodiment can repair the structured flowchart of the USB flash drive of damaged data automatically.
Embodiment
Below in conjunction with description of drawings embodiment of the present utility model is described in further detail, but present embodiment is not limited to the utility model, every employing analog structure of the present utility model and similar variation thereof all should be listed protection domain of the present utility model in.
As shown in Figure 1, a kind of USB flash disk that can repair damaged data automatically that the utility model embodiment is provided, comprise USB web member, USB main control chip and FLASH chip (flash chip), described USB web member is connected to the USB interface of USB main control chip, the data-interface of described FLASH chip is connected to the data-interface of USB main control chip, it is characterized in that: also comprise sram chip (static store chip) and battery; The data-interface of described sram chip is connected to the data-interface of USB main control chip, described battery is connected respectively to the power interface of sram chip and the power interface of USB main control chip, and the power interface of described USB web member is connected respectively to the power interface of the power interface of sram chip, USB main control chip and the power interface of FLASH chip.
Among the utility model embodiment, described USB main control chip, FLASH chip and sram chip are prior art, and described battery is a button cell.
The damaged data restorative procedure of the USB flash disk that can repair damaged data automatically that the utility model embodiment is provided is characterized in that concrete steps are as follows:
1) by the USB main control chip is found the Fat32 file system at the FLASH chip built-in;
Wherein, described Fat32 file system comprises booting operating system recording areas (DBR), file allocation table (FAT), root directory table (FDT) and data field (DAT);
2) a USB flash disk true-time operation recording areas is set up in a fixed position in sram chip;
3) by the USB main control chip FLASH chip is carried out read-write operation;
Wherein, the USB main control chip when the FLASH chip writes data, upgrades the current operation information of the USB flash disk true-time operation recording areas in the sram chip at every turn synchronously, can both recover by sram chip with the power down data that guarantee arbitrary moment;
Wherein, the current operation information of the USB flash disk true-time operation recording areas in the sram chip comprises USB flash disk sector operation sign (validFlag), the current operation sector number of USB flash disk (sectorNo) and the current operation sector data of USB flash disk content (sectorData);
Wherein, the USB main control chip is before the FLASH chip writes data, the state of the USB flash disk sector operation sign (validFlag) of the USB flash disk true-time operation recording areas in the sram chip is set to the reparation state earlier, and the current operation sector number of USB flash disk (sectorNo) is updated to sector number in the Fat32 file system of current data in the FLASH chip of preparing to write the FLASH chip, the current operation sector data of USB flash disk content (sectorData) is updated to the content of the current data of preparing to write the FLASH chip;
Wherein, finish if the USB main control chip writes data to the FLASH chip, then the state of USB flash disk sector operation sign (validFlag) is set to safe condition, represents these group data to need not to repair;
Wherein, after powering at every turn, all reads the USB main control chip information of the USB flash disk true-time operation recording areas in the sram chip, if the state of USB flash disk sector operation sign (validFlag) is the reparation state in the information that reads, then show and do not write data when cut off the power supply for last time, then according to finding corresponding sector in the Fat32 file system of the current operation sector number of USB flash disk (sectorNo) in the FLASH chip that reads, and the current operation sector data of the USB flash disk that reads content (sectorData) copied to this sector, thereby finish data repair;
Wherein, the USB main control chip powers on the back to the read operation of sram chip at every turn, and the data that read in the sram chip write the FLASH chip operation, after the FLASH chip is carried out initialization, and before the Fat32 file system in the FLASH chip is carried out initialization, carry out, to guarantee the reliable and stable of whole Fat32 file system fully.
Among the utility model embodiment, when the power interface of USB web member is introduced external power source, sram chip, USB main control chip and FLASH chip are by external power source, and when the power interface of USB web member did not have the external power source introducing, sram chip and USB main control chip were battery-powered.

Claims (1)

1. the USB flash disk that can repair damaged data automatically, comprise USB web member, USB main control chip and FLASH chip, described USB web member is connected to the USB interface of USB main control chip, the data-interface of described FLASH chip is connected to the data-interface of USB main control chip, it is characterized in that: also comprise sram chip and battery; The data-interface of described sram chip is connected to the data-interface of USB main control chip, described battery is connected respectively to the power interface of sram chip and the power interface of USB main control chip, and the power interface of described USB web member is connected respectively to the power interface of the power interface of sram chip, USB main control chip and the power interface of FLASH chip.
?
CN 201020575069 2010-10-25 2010-10-25 U flash disk capable of automatically repairing damaged data Expired - Fee Related CN201829193U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201020575069 CN201829193U (en) 2010-10-25 2010-10-25 U flash disk capable of automatically repairing damaged data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201020575069 CN201829193U (en) 2010-10-25 2010-10-25 U flash disk capable of automatically repairing damaged data

Publications (1)

Publication Number Publication Date
CN201829193U true CN201829193U (en) 2011-05-11

Family

ID=43967714

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201020575069 Expired - Fee Related CN201829193U (en) 2010-10-25 2010-10-25 U flash disk capable of automatically repairing damaged data

Country Status (1)

Country Link
CN (1) CN201829193U (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101944052A (en) * 2010-10-25 2011-01-12 上海申瑞电力科技股份有限公司 U disk capable of automatically repairing damaged data and damaged data repair method thereof
CN104952476A (en) * 2015-07-08 2015-09-30 山东中孚信息产业股份有限公司 Reliable mobile storage medium and implementing method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101944052A (en) * 2010-10-25 2011-01-12 上海申瑞电力科技股份有限公司 U disk capable of automatically repairing damaged data and damaged data repair method thereof
CN101944052B (en) * 2010-10-25 2015-02-18 上海申瑞继保电气有限公司 U disk capable of automatically repairing damaged data and damaged data repair method thereof
CN104952476A (en) * 2015-07-08 2015-09-30 山东中孚信息产业股份有限公司 Reliable mobile storage medium and implementing method

Similar Documents

Publication Publication Date Title
US10229019B2 (en) Power fail circuit for multi-storage-device arrays
CN101286086B (en) Hard disk power down protection method, device and hard disk, and hard disk power down protection system
US9042197B2 (en) Power fail protection and recovery using low power states in a data storage device/system
CN103345189B (en) A kind of controller and a kind of power-off protection method
CN104881375B (en) Storage system power-down data protection method and apparatus
CN108733537A (en) Method and apparatus for intelligent standby capacitor management
CN1971533A (en) Displaying method of memory information in data storage device
CN103399520B (en) For power failure data access method and the device of programmable logic controller system
CN201829193U (en) U flash disk capable of automatically repairing damaged data
CN205263726U (en) Support IO expansion board of blade server of single deck tape -recorder hot plug
CN101944052B (en) U disk capable of automatically repairing damaged data and damaged data repair method thereof
CN101908066A (en) File system management module based on FRAM and Flash
CN104598844A (en) Power failure protection method and device for preventing corruption of system files of solid-state disk
CN202887178U (en) Electronic device capable of realizing power-off protection of hard disc
CN107608824B (en) Nonvolatile computing device and working method thereof
CN202093834U (en) Universal serial bus (USB) flash disk capable of producing sound during power failure
CN103324445B (en) Method and system, USB storage device that USB storage device is run
CN209560583U (en) A kind of multimode multi partition USB flash disk
CN106649152A (en) System log storage method and device based on non-volatile memory
CN103366829A (en) Stepper motor power-outage displacement recovery device and method
CN210377451U (en) Storage system of small mobile hard disk
CN201955625U (en) Imaging box chip
CN101625648A (en) Plug and play equipment, firmware upgrade method and firmware upgrade device
CN201327637Y (en) Embedded system starter and embedded equipment equipped with same
CN203520387U (en) Computer hardware powering-off data protection module

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110511

Termination date: 20121025