CN101425096A - File memory method for embedded equipment - Google Patents

File memory method for embedded equipment Download PDF

Info

Publication number
CN101425096A
CN101425096A CNA2008103058051A CN200810305805A CN101425096A CN 101425096 A CN101425096 A CN 101425096A CN A2008103058051 A CNA2008103058051 A CN A2008103058051A CN 200810305805 A CN200810305805 A CN 200810305805A CN 101425096 A CN101425096 A CN 101425096A
Authority
CN
China
Prior art keywords
data
file
information
data file
block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CNA2008103058051A
Other languages
Chinese (zh)
Inventor
蒋庆洲
易晓莉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CNA2008103058051A priority Critical patent/CN101425096A/en
Publication of CN101425096A publication Critical patent/CN101425096A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a storage technology and provides a file storage method for embedded equipment which supports discontinuous data storage and only provides little address information. The file storage method for the embedded equipment comprises the steps: a. a PC converts a data file with address information to a data file in the form of discontinuous data blocks, and the data file in the form of the discontinuous data blocks is formed by head information and data information; the data file in the form of the discontinuous data blocks is formed that the data information in the data file with address information is divided into a plurality of data blocks; the head information of the form of the discontinuous data blocks comprises a data block amount, each data block initial address and each data block size; and b. the PC stores the data file in the form of the discontinuous data blocks into a target memory of the embedded equipment block by block. The invention reduces the occupied amount of an internal memory and lowers the internal memory requirement cost in the whole data storage process.

Description

The file memory method of embedded device
Technical field
The present invention relates to memory technology, particularly to the management method of the data storage of PC and the external embedded device of PC.
Background technology
Usually, in the research and development neutralization of embedded product is produced,, often need in set-top box, to write a large amount of fixed data (as character library, picture, configuration information, upgrade software etc.) for the user to embedded product (as set-top box device) provides attractive in appearance and convenient.Existing mode all is to write set-top box or with in data file (the not being with address information) set-top box of writing direct by the fixed data that software directly will have address and data.
The file layout that wherein has the address is roughly (text):
Address information | data message
0x00000000?01?01?02?02?03?03?04?04
0x00000008?05?05?06?06?07?07?08?08
0x7ff00000?ee?2e?3d?5f?7a?80?01?02
The file layout (binary file) that does not have address information:
0101020203030404
0505060607070808
Ee2d3d5f7a800102
This dual mode has following several disadvantages:
1. on space management, dual mode all needs data are read in the set-top box fully analyzes storage again.So just need set-top box that very big memory headroom is arranged.Need write the fixed data of 3M as us, if this fixed data is the band address information, connecting data and address information just needs the space of about 8M to store.If adopt direct write data file, just require all data continuously only need write the data of 2 bytes such as us, the distance of 10M but two bytes are separated by, we just must write so multidata of 10M+2 byte so.If this dual mode data volume has just formed very large pressure to the set-top box of little memory size slightly greatly, even can't realize.
2. on ease of use,, there is not the problem on the convenience if adopt the data layout that has the address.If but adopt not with the data of address information, the research staff just must be familiar with the address that every blocks of data need write.Improved the difficulty of research and development like this, unfavorable to the division of labor of work with the maintenance of later software.
3. on timeliness, if adopt the data layout that has the address, the research staff analyzes on the data (data layout that has the address is a text) in the wait set-top box and will spend a lot of times to wait for, and is to write all to wait at every turn.If not with the clear data of address information,, a lot of times such as also need if data are discontinuous.
Summary of the invention
Technical matters to be solved by this invention is, a kind of support discrete date storage is provided, and the file memory method of the embedded device of a small amount of address information only is provided.
The present invention solves the problems of the technologies described above the technical scheme that is adopted to be, the file memory method of embedded device may further comprise the steps;
A, PC will be converted to the data file of discrete date block format with the data file of address information, and the data file of described discrete date block format is made up of header and data message; The data message of described discrete date block format is that the data message in the data file of band address information is divided into several data blocks; The header of described discrete date block format comprises data block number, each data block start address, each data block size;
B, PC store the data file piecemeal of discrete date block format in the target memory of embedded device into.
Further, among the step b, the embedded device piecemeal reads the data file of the discrete date block format in the PC.
The invention has the beneficial effects as follows, in the process of whole data storage, reduced internal memory occupancy, reduced the memory requirements cost.Further, embedded device piecemeal read data files is stored again, has reduced the occupancy of internal memory in this data handling procedure and has write data time, has improved development efficiency.
Embodiment
Discrete date block format of the present invention is divided into information header and data message two parts, data message is made up of several data blocks, information header has been described the data block number, (data in a data block must be continuously for each data block start address, the data address of information header the inside has only start address, but just can define its end address with size), each data block size.Data message then is the real data that will write.Among the embodiment, the discrete date block format is as shown in the table:
Figure A200810305805D00051
The data file that PC will have an address information is converted into the data file of discrete date block format, because the discrete date block format also has concentrated address information, and the address can be discontinuous, so just accomplish once to change repeatedly and write, avoided the developer write at every turn fashionable all need the input write the address, saved switching time.
Then the software by embedded device with the data file of discrete date block format according to address information in the information header, read one writes in the embedded device at every turn, (blocks of data approximately has only 64K ~ 128K) so just to have reduced the occupancy of an internal memory, memory requirements and cost of development have been saved, simultaneously because the address can be discontinuous, also reduce the write time, improved work efficiency.
Because the difference of target storage device, the size of data block can be 8K, 16K, 32K, 64K, 128K byte.
Below being embedded device reads the data file of discrete date block format, and stores the step of target memory into:
1. read block number;
2. read the start address and the size of each data block by the data block number;
3. read each data block by the data block number, again the data message piece is write in the target memory;
4. information data reads the back end that finishes in all data blocks.

Claims (3)

  1. The file memory method of [claim 1] embedded device is characterized in that, may further comprise the steps;
    A, PC will be converted to the data file of discrete date block format with the data file of address information, and the data file of described discrete date block format is made up of header and data message; The data message of described discrete date block format is that the data message in the data file of band address information is divided into several data blocks; The header of described discrete date block format comprises data block number, each data block start address, each data block size;
    B, embedded device read the data file of the discrete date block format in the PC, store in the target memory of embedded device.
  2. [claim 2] be the file memory method of embedded device according to claim 1, it is characterized in that, among the step b, the embedded device piecemeal reads the data file of the discrete date block format in the PC.
  3. [claim 3] be the file memory method of embedded device according to claim 1, it is characterized in that, described target memory is FLASH equipment or EEPROM equipment.
CNA2008103058051A 2008-11-27 2008-11-27 File memory method for embedded equipment Pending CN101425096A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008103058051A CN101425096A (en) 2008-11-27 2008-11-27 File memory method for embedded equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008103058051A CN101425096A (en) 2008-11-27 2008-11-27 File memory method for embedded equipment

Publications (1)

Publication Number Publication Date
CN101425096A true CN101425096A (en) 2009-05-06

Family

ID=40615709

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008103058051A Pending CN101425096A (en) 2008-11-27 2008-11-27 File memory method for embedded equipment

Country Status (1)

Country Link
CN (1) CN101425096A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101826109A (en) * 2010-04-07 2010-09-08 深圳创维-Rgb电子有限公司 Large-capacity file splitting method, device and system
CN103279553A (en) * 2013-06-07 2013-09-04 华东师范大学 Embedded analysis method and analyzer for three-dimensional vector description file
CN104699740A (en) * 2013-12-06 2015-06-10 国际商业机器公司 Method and system for generating content addressable storage signature for a file
US10372679B2 (en) 2013-12-06 2019-08-06 International Business Machines Corporation File versions within content addressable storage
CN110888606A (en) * 2019-12-23 2020-03-17 潍柴动力股份有限公司 Flash system and engine

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101826109A (en) * 2010-04-07 2010-09-08 深圳创维-Rgb电子有限公司 Large-capacity file splitting method, device and system
CN101826109B (en) * 2010-04-07 2011-11-23 深圳创维-Rgb电子有限公司 Large-capacity file splitting method, device and system
CN103279553A (en) * 2013-06-07 2013-09-04 华东师范大学 Embedded analysis method and analyzer for three-dimensional vector description file
CN104699740A (en) * 2013-12-06 2015-06-10 国际商业机器公司 Method and system for generating content addressable storage signature for a file
CN104699740B (en) * 2013-12-06 2018-01-05 国际商业机器公司 For the method and system of file generated content addressable storage signature
US10372679B2 (en) 2013-12-06 2019-08-06 International Business Machines Corporation File versions within content addressable storage
US10372678B2 (en) 2013-12-06 2019-08-06 International Business Machines Corporation Files having unallocated portions within content addressable storage
US11360938B2 (en) 2013-12-06 2022-06-14 International Business Machines Corporation Files having unallocated portions within content addressable storage
US11409703B2 (en) 2013-12-06 2022-08-09 International Business Machines Corporation File versions within content addressable storage
CN110888606A (en) * 2019-12-23 2020-03-17 潍柴动力股份有限公司 Flash system and engine

Similar Documents

Publication Publication Date Title
US7966355B2 (en) Interface for extending functionality of memory cards
US8996981B2 (en) Managing forms in electronic documents
CN102782665A (en) Combining user content with supplemental content at a data storage device
CN105550293A (en) Background refreshing method based on Spark-SQL big data processing platform
CN101425096A (en) File memory method for embedded equipment
CN100585595C (en) Method for managing file system data using dbms
CA2501655A1 (en) Mechanism for providing data driven command line output
CN102253898B (en) Memory management method and memory management device of image data
CN105955748A (en) Return scene processing method and device of application program
CN105912289A (en) Startup LOGO image conversion and storage method and apparatus, and startup LOGO image displaying method and apparatus
CN102541923B (en) Database read-write separating method and device
CN101739589B (en) Method and device for generating intelligent card data
CN101271399A (en) Method for clipping relocatable ELF files in embedded system
CN101630415A (en) File compression and decompression processing method based on image recognition
CN102508822A (en) Thai display method, device and system
CN103186507B (en) Dot matrix word library processing method
CN109977079A (en) A kind of data processing method and device based on distributed file system
CN102663014A (en) Management method for online books of bookshelf interface in mobile device read software
CN101369953B (en) Font network distribution method and system
CN101207705A (en) Graphic file management method
CN101894098B (en) Embedded font data processing method and device
CN102135954A (en) Method for describing bill conversion relationships in service management software based on extensive markup language (XML)
CN102331973A (en) Internal memory data storage system and internal memory data insertion and deletion method
CN105468570B (en) A kind of document synthesis methods of exhibiting and device
CN101350991A (en) Method, system, computer and terminal for data synchronization

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20090506