Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

FLASH data reading/writing method and system

A data reading, writing and data technology, which is used in electrical digital data processing, data processing input/output process, instruments, etc., can solve the problems of FLASH memory affecting the service life, the service life cannot meet the requirements, and the number of FLASH erasing and writing is limited. Achieve long continuous recording time, solve the problem of erasing and writing service life, and reduce the number of erasing and writing.

Active Publication Date: 2017-09-15
WUHAN YONGLI TECH CO LTD
View PDF15 Cites 26 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Due to the limited number of erasing and writing of FLASH, frequent erasing and writing of FLASH memory will affect its service life. If no special treatment is taken, the life cannot meet the requirements

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • FLASH data reading/writing method and system
  • FLASH data reading/writing method and system
  • FLASH data reading/writing method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0088] The second judging module: for judging whether the index area storage unit is full, then go to the second erasing module after it is full;

[0089] The second erasing module: erasing the information of the index index storage unit is about to set all the content of this page as specific identification information; wherein the specific identification information can be 0xff.

[0090] Such as Figure 6 As shown, further, the system in the present invention also includes the following parts:

[0091] In this system, in the case of a power failure, the record query module is called to query the location of the record before the power failure after the system is powered off and restarted. The way to find the location of the record before the power failure is to first query The index area records the page number where it is located, and then finds the specific location of the recorded information in the corresponding page number, specifically: starting from the last storage ...

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 FLASH data reading / writing method and system. The method comprises a step of distributing N pages as data storage areas in a FLASH, wherein the data storage areas are used for storing data records, one page is taken as an index area and the other N-1 areas are taken as record areas. The method furthermore comprises the following steps of: S101, judging whether a target page Nm is fully written or not, if the judging result is negative, executing the step S103, and otherwise, turning to the steps S1a to S1c; S102, writing to-be-written data into the target pages Nm of the record areas in sequence; S1a, erasing information of pages Nm+2 of the record areas, namely, setting all the contents of the pages as identification information of 0xff; S1b, writing page numbers of the pages Nm+1 of the to-be-written data in the data record areas into the index area in sequence; and S1c, writing the to-be-written data into the pages Nm+1 of the record areas in sequence, wherein the pages N-1 of the record areas form a storage area of a round-robin queue. According to the method and system disclosed by the invention, the erasing frequency of the FLASH is reduced, the service life is prolonged, and the position of the final storage record during the last power down can be rapidly searched after power up.

Description

technical field [0001] The invention relates to the field of data storage, in particular to a method and system for reading and writing FLASH data. Background technique [0002] For related equipment in the field of embedded systems, users require real-time storage of equipment operation data, continuous recording time of not less than 5 minutes, data per minute of not less than 60 records, and sufficient storage space, data will not be lost when power off, memory The service life is not less than 20 years. The length of each record is 20bytes (8bit / byte). The first 14bytes store the status and various information of the device, and the last 6bytes store the real-time year, month, day, hour, minute, and second. [0003] At present, the methods for saving data include: hard disk, electronic disk, RAM plus battery, FLASH flash memory, etc. Among them, hard disks and electronic disks are high in cost and large in size; the method of adding batteries to RAM uses batteries, and...

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
IPC IPC(8): G06F3/06
CPCG06F3/0604G06F3/0616G06F3/0652G06F3/0679
Inventor 龙道志张惠军沈鹏程舒凯陈蓉
Owner WUHAN YONGLI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products