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

Storage method for storing user data into Flash and read method

A user data and data technology, applied in the direction of memory system, electrical digital data processing, memory address/allocation/relocation, etc., can solve the problems of data loss, data Flash usage time is not long, etc., to achieve the effect of improving the service life

Active Publication Date: 2016-03-23
浙江卓奥科技股份有限公司
View PDF3 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The technical problem to be solved by the present invention is to provide a storage method and a reading method for storing user data in the Flash for the above-mentioned prior art, which can well avoid the problem of sporadic loss of data in the storage process of user data; the method It can well solve the problem that the data Flash is not used for a long time in the process of user data storage; this method can correctly identify and avoid "bad sectors"; this method can also correctly identify the last stored user data among many saved user data User data

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
  • Storage method for storing user data into Flash and read method
  • Storage method for storing user data into Flash and read method
  • Storage method for storing user data into Flash and read method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0035] In this embodiment, the storage method and reading method for storing user data in the Flash are used to store the user data with a fixed length that needs to be saved by the electrical terminal control board in the Flash space of the single-chip microcomputer in the electrical terminal control board. The stored N user data with a fixed length are packed into data according to the following method, each data packet includes header, N user data and check code in sequence from front to back; when the user data length is not fixed, each data packet From front to back, it includes the header, M user data, reserved words, tail and check code; M changes within a predetermined range, and M is less than or equal to the predetermined length N of the longest user data, and the header or tail can be It is used to judge the integrity of the data link. We agree that the length of the stored data packets is fixed, so we agree on a 1byte length header and a 1byte length tail. The conte...

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 present invention relates to a storage method for storing user data into a Flash and a read method. The storage method is characterized in that: N to-be-stored user data with a fixed length are packaged into data packets, each data packet comprises a peltier, N user data and a check code from the front to the rear sequentially, and the data packets are sequentially stored in the Flash. The storage method provided by the present invention adopts a method of erasing one block for one time, and then dividing the block into partitions, and storing the user data sequentially, and when the partitions are full of the user data, erasing a block again, and sequentially storing the user data according to the partitions again, and according to such a cycle, the service life of the flash is greatly improved. Compared with the prior art, the present invention has the advantages that: the storage method provided by the present invention can preferably avoid an accidental loss existing in user data storage or avoid a premature failure of storage units, and can also correctly and quickly identify the last stored user data.

Description

technical field [0001] The invention relates to a storage method and a reading method for storing user data in Flash. Background technique [0002] Home appliance control boards often need to save some user data, such as control target temperature, working mode, and so on. In the early days, EEPROM was used to store user data. EEPROM has the advantages of fast storage speed and many times of repeated erasing (up to 1 million times), but it is expensive. With the development of MCU process technology, the space of ROM (hereinafter referred to as Flash) of MCU is getting bigger and bigger, and the production cost is low. The disadvantage of Flash is that the erasing speed is slow, and the number of repeated erasing and writing is small, most of which are less than 10,000 times. Because the Flash space is large, this is just to make up for the problem of fewer erasing times; for example, if 2bytes of user data are stored in 2K Flash space, it can be written 10 million 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
IPC IPC(8): G06F12/06
CPCG06F12/0623
Inventor 陈明张波田如海王彬王红亚
Owner 浙江卓奥科技股份有限公司
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