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

Backup and query method of FLASH-based small data

A data backup and data technology, which is applied in the direction of data error detection, electrical digital data processing, special data processing applications, etc., can solve the problem of limited resources of single-chip microcomputer, insufficient simplicity and speed of data storage and query, etc. Deal with problems such as slow speed, achieve simple and fast data storage and query, uniform wear, and overcome limited resources

Active Publication Date: 2012-12-12
CAMA LUOYANG ENVIRONMENTAL MEASUREMENT
View PDF3 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For management equipment, the processor needs to handle other tasks, such as data collection and processing. Therefore, the writing of data backup should be simple, and the search should be convenient. In small data backup applications, it is also required that the code space is small and the CPU is occupied. Resources are relatively small, and the existing small-scale data backup method based on FLASH needs to use multiple loops to search for storage locations and query points within the entire chip range, making data storage and query not simple and fast enough, and unable to overcome the limitations of limited MCU resources and slow processing speed. bottleneck

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
  • Backup and query method of FLASH-based small data
  • Backup and query method of FLASH-based small data
  • Backup and query method of FLASH-based small data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] The specific embodiments of the present invention will be further described below in conjunction with the accompanying drawings.

[0030] Embodiment of a kind of FLASH-based small data backup method of the present invention

[0031] A small-scale data backup method based on FLASH, the hardware structure block diagram realized by this method is as follows figure 1 As shown, it includes a single-chip microcomputer and a FLASH memory chip, and the FLASH memory chip is connected with the single-chip microcomputer through an SPI bus. In a comprehensive meteorological data collector, the backup frequency of meteorological data is one group per minute, and the content of one group of data has 38 bytes. The single-chip microcomputer adopts C8051F020, and the data backup chip adopts M25P16, FLASH storage structure, 2M storage space, There are 32 sectors, one sector has 256 storage pages, and one page can store 256 bytes. The backup method steps of the meteorological data based...

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 relates to a backup and query method of FLASH-based small data. The method aims at the small data with fixed string length and backup cycle, time and date of backup data and a mapping relation of the storage area position of a FLASH chip are established, multiple circulation is not needed to use for searching the storage position and a query point in the whole chip range, and a time label is only needed to write in when each data storage page starts to write. A sector is used as an operating unit during the data storage, and the sequence is identified through a sector number and the time label of a page. When a sector is filled with data, the earliest used sector is searched, cleaned up and used as a current working sector, so that even abrasion can be achieved. According to the method, data storage and query are simple and fast, and the defects of limited resources and low processing speed of a single chip microcomputer are effectively overcome.

Description

technical field [0001] The invention belongs to the technical field of data storage, and in particular relates to a FLASH-based small data backup and query method. Background technique [0002] Data backup is of great significance under the single-chip microcomputer system, and there are many ways of data backup, such as SD card storage, EEROM storage, and FLASH storage. FLASH is widely used in data backup by single-chip microcomputer systems because of its flexible and rich functions and convenient use. The Flash memory chip is connected to the microcontroller through the SPI bus. The specific connection is as follows: figure 1 As shown, the single-chip microcomputer puts the latest data collected in the designated cache according to the format and order specified by the algorithm. The new data overwrites the data of the previous cycle, and according to the timing signal, the data in the cache is written into the flash through the SPI bus. Generally, FLASH ROM is compose...

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): G06F11/14G06F17/30
Inventor 周锋魏国栓王国新
Owner CAMA LUOYANG ENVIRONMENTAL MEASUREMENT
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