File management method and system and electronic equipment

A file management method and file management system technology, applied in the computer field, can solve problems such as insufficient memory, and achieve the effect of convenient rewriting and size reduction

Pending Publication Date: 2019-09-17
SHENZHEN ZHANYIN TECH CO LTD
View PDF6 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If all image files are read into the MCU for editing, the memory of the MCU is not enough
If a certain part of files in F

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
  • File management method and system and electronic equipment
  • File management method and system and electronic equipment
  • File management method and system and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0031] see figure 1 , figure 1 It is a schematic flowchart of an embodiment of the file management method of the present invention. Such as figure 1 As shown, the file management method includes the following steps:

[0032] S11: Initialize the file system, divide the file system into an original file area, a buffer queue, and a buffer file area, the original file area includes multiple files, the buffer queue is an area with a preset size, and stores the original file area Some files, the buffer file area is a new file;

[0033] In step S11, the serial numbers of the plurality of files in the original file area are numbered sequentially, and the file data of each file in the original file area is obtained through the serial numbers.

[0034] Wherein, the original file area, the buffer queue and the buffer file area are respectively set in the Flash of the electronic device.

[0035] Wherein, the data structure of each file in the buffer queue may be represented by the fo...

Embodiment 2

[0058] see image 3 , image 3 It is a schematic flowchart of an embodiment of the file management method of the present invention. Such as image 3 As shown, the file management method includes the following steps:

[0059] S31: Initialize the file system, divide the file system into an original file area, a buffer queue, and a buffer file area, the original file area includes multiple files, the buffer queue is an area with a preset size, and stores the original file area Some files, the buffer file area is a new file;

[0060] Wherein, step S31 is the same as step S11.

[0061] S32: After the file in the original file area is edited, write the update file to the buffer queue, if the file in the buffer queue is full, merge the original file area and the file in the buffer queue and write into the buffer file area;

[0062] Wherein, step S32 is the same as step S12.

[0063] S33: Refresh the buffer file area;

[0064] Specifically, such as Figure 4 As shown, step S3...

Embodiment 3

[0089] see Figure 6 , Figure 6 It is a structural schematic diagram of an embodiment of the file management device of the present invention. Such as Figure 6 As shown, the file management device includes an initialization file system module 61 , a file system write module 62 and a file system refresh module 63 .

[0090] The initialization file system module 61 is used for initializing the file system, and the file system is divided into an original file area, a buffer queue, and a buffer file area. The original file area includes a plurality of files, and the buffer queue is an area of ​​a preset size. Some files in the original file area are stored, and the buffer file area is a new file.

[0091]Write file system module 62, for after the file of this original file area is edited, update file is written into this buffer queue, if the file of this buffer queue is full, then this original file area and this buffer area The files in the queue are merged and written to th...

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 management method and system and electronic equipment. The file management method comprises the steps that a file system is initialized, the file system is divided into an original file area, a buffer queue and a buffer file area, the original file area comprises a plurality of files, the buffer queue is an area of a preset size and stores part of files of the original file area, and the buffer file area is a newly-built file; after the file in the original file area is edited, an updated file is written into the buffer queue, and if the file in the buffer queue is full, the file in the original file area and the file in the buffer queue are merged and written into the buffer file area; and the editing operation is ended, the file which is not written into the buffer file area in the original file area is written into the buffer file area, the original file area is deleted, and the buffer file area is taken as the new original file area and a new file as the new buffer file area. The method is convenient for editing and rewriting the file with the uncertain length.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a file management method, system and electronic equipment. Background technique [0002] In order to save the cost of electronic products, the MCU and memory configuration specifications of electronic products are generally not too high. For some specific file systems of electronic products, it will be inconvenient to rewrite the files therein. For example, the animation works stored in the electronic drawing board are composed of multiple pictures, each picture corresponds to a set of data frames, and the data lengths of the data frames of each picture are different. If all image files are read into the MCU for editing, the memory of the MCU is insufficient. If a certain part of files in Flash is rewritten, the writing life of Flash is certain, and some Flashes do not support rewriting a certain part of files. [0003] Therefore, it is necessary to propose a new file managem...

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): G06F16/172G06F16/16
CPCG06F16/172G06F16/16
Inventor 余朝亮艾骏
Owner SHENZHEN ZHANYIN TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products