Supercharge Your Innovation With Domain-Expert AI Agents!

File reading and writing method based on flash storage medium

A technology of storage medium and read-write method, applied in the direction of memory address/allocation/relocation, etc., can solve the problems of cost increase, product space limitation, expensive price, etc., to prolong the service life, increase and reduce the number of safe read-write operations The effect of the number of erase operations

Inactive Publication Date: 2016-01-20
SHANGHAI WISCOM SUNEST ELECTRIC POWER TECH
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In this way, conventional file systems based on FLASH chips, SD cards, and U disks cannot meet the requirements. People usually choose to use SRAM chips or ferroelectric RAM chips to store these data.
Although SRAM chips and ferroelectric RAM chips have no limit on the number of erasing and writing times, their capacity is small and expensive, generally below 1M bytes, even a few large-capacity SRAM chips, and their single-chip capacity will not exceed 8M, while FLASH The capacity of chips, SD cards, and U disks can easily reach hundreds of megabytes, several gigabytes, or even tens of gigabytes
If you use SRAM chips or ferroelectric RAM chips to store large-capacity data, you must use many pieces of SRAM chips or ferroelectric RAM chips to put together, so not only will the cost increase sharply, but also limited by product space, sometimes it is impossible to do it. to large capacity

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] The technical solution of the present invention will be further described in detail below in conjunction with specific embodiments.

[0031] A kind of file reading and writing method based on FLASH storage medium provided by the embodiment of the present invention is characterized in that:

[0032] Establish a file system on the FLASH storage medium, the file system includes a FAT table (file allocation table), a directory area, a data area, and allocates a storage area of ​​256 words for each entry of the FAT table (file allocation table), Allocate a storage area of ​​8192 bytes for each directory entry in the directory area, divide each directory entry in the directory area into 256 sub-blocks in sequence, and each sub-block occupies a storage area of ​​32 bytes;

[0033] The steps for performing a single cluster number write operation on a single entry in the FAT table are as follows:

[0034] A1) Set the first word of the entry as the current word;

[0035] A2) Re...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a file read-write method on the basis of a FLASH storage medium, relates to the technical field of file systems and solves the technical problem of improving the safety operation times of a file. The method comprises the following steps of: distributing a 256-byte storage area for each table item of a FAT (file allocation table), distributing a 8192-byte storage area for each directory entry of a directory area and sequentially and uniformly dividing each directory entry of the directory area into 256 subarea blocks; and when the file is operated each time, only executing the write operation on one byte of the corresponding FAT table item, only executing the write operation on one subarea block of the corresponding directory entry, executing the erasing operation for once after the write operation is executed for each FAT table item for 256 times, and executing the erasing operation for once after the write operation is executed for each directory entry for 256 times. According to the file read-write method provided by the invention, the safety operation times of the file can be increased and the service life of the FLASH storage medium is prolonged.

Description

technical field [0001] The invention relates to the technology of the file system, in particular to the technology of a method for reading and writing files based on a FLASH storage medium. Background technique [0002] In the power automation industry, there are various embedded products, which often need to store various monitoring data. Generally, for the convenience of use, various file systems are introduced, the most common one is the FAT file system, which is divided into three file systems: FAT12, FAT16, and FAT32 according to the manageable capacity. Among various embedded products, the most economical and common media for storing large-capacity data are FLASH chips, SD cards, U disks, etc. These storage media have the advantages of large capacity and low cost on the one hand, and on the other hand There is also a feature that is obviously different from computer hard drives, that is, the number of life spans is limited. The general technical index is 10,000 times ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F12/02
Inventor 黄薇刘东杨浩赟洪俊
Owner SHANGHAI WISCOM SUNEST ELECTRIC POWER TECH
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More