CN101430685A - Downloading method and system - Google Patents
Downloading method and system Download PDFInfo
- Publication number
- CN101430685A CN101430685A CN 200710166559 CN200710166559A CN101430685A CN 101430685 A CN101430685 A CN 101430685A CN 200710166559 CN200710166559 CN 200710166559 CN 200710166559 A CN200710166559 A CN 200710166559A CN 101430685 A CN101430685 A CN 101430685A
- Authority
- CN
- China
- Prior art keywords
- data
- data segment
- index
- file
- embedded system
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000013500 data storage Methods 0.000 claims description 9
- 230000002596 correlated effect Effects 0.000 abstract 1
- 230000000875 corresponding effect Effects 0.000 abstract 1
- 238000004891 communication Methods 0.000 description 14
- 230000006870 function Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 10
- 230000008520 organization Effects 0.000 description 9
- 230000008569 process Effects 0.000 description 5
- 239000011159 matrix material Substances 0.000 description 3
- 238000010276 construction Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000005055 memory storage Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012797 qualification Methods 0.000 description 1
- 238000004064 recycling Methods 0.000 description 1
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention provides a method for respectively downloading a plurality of data block files stored by a computer into a plurality of data blocks stored by a memory of an embedded system, as well as a system thereof. The method comprises the following steps: the computer generates an index table file which contains index information correlated with various data blocks in a plurality of the data block files; the computer sends index data items of the generated index table file to the embedded system; the embedded system sequentially stores the received index data items into fixed memory areas of the embedded system; the computer sequentially sends the data of various data segments, initial memory addresses of the data segments in the memory of the embedded system and the length of the data segments which are recorded by a plurality of the data block files to the embedded system; and the embedded system stores the data of the data segments into the corresponding areas of the memory of the embedded system based on data of the various data segments, the initial memory addresses of the data segments in the memory of the embedded system and the length of the data segments which are recorded by various received data block files.
Description
Technical field
The present invention relates to a kind of method for down loading and system thereof, more particularly, but relate to the storage upgrade method and the system thereof of multidata piece independent assortment and tape index.
Background technology
At present, the user allows a HMI equipment support certain language-specific in order to reach, and tends to download a language dot matrix bag that has comprised this language.
The form of creating the language lattice file adopts is convenient to language lattice file form-ini file form of revising more.Whole file is based on all that the form of object and attribute writes, and form is as follows:
[1 of object]
Attribute 1=property value 1
Attribute 3=property value 3
[2 of objects]
Attribute 1=property value 1
Attribute 3=property value 3
........
[3 of objects]
Attribute 1=property value 1
Attribute 3=property value 3
........
In ini file, the visit of any one attribute is based on all object name and attribute-name carry out, utilize windows API built-in function to read and write, concrete defined function following (because be the windowsAPI function, detail is not done expansion) to the property value in the ini file:
Definition GetFromini function in the vb engineering can read property value in the ini file with this function, and wherein GetPrivateProfileString is the API built-in function
Public?Function?GetFromini(AppName?As?String,KeyName?As
String,FileName?As?String)As?String
Dim?RetStr?As?String
RetStr=String(5000,Chr(0))
GetFromini=Left(RetStr,
GetPrivateProfileString(AppName,ByVal?KeyName,"",RetStr,
Len(RetStr),FileName))
End?Function
And Windows API built-in function provides WritePrivateProfileString function, and this function is used for writing property value exactly in ini file.
Can expect that thus this is a good date storage method, its reason is the retrieval and the read and write access of the data of very convenient so multilingual bag.
This method has been applied to the language lattice file.If we will do a Chinese language lattice file:
If on a HMI equipment, support to show 10 Chinese statements, be respectively statement 0, statement 1, statement 2, statement 3, statement 4, statement 5, statement 6, statement 7, statement 8 and statement 9, we need set up two object class so, first object class is the whole class of descriptive language, can be named as LanInfo (name can be given by deviser's freedom), form is as follows:
[LanInfo]
LanName=Chinese
LanVersion=1
StringNum=10
LanguageCode=21
If it number is 21 that/* sets Chinese language, English is 22, French be 23*/
Specifically:
Attribute-name | Describe | Data type | Download to storer |
LanName | The language name | Character string | Optional (, depositing so language name can not download to because there is the language number can the identifiable language type |
In the reservoir) | |||
LanVersion | The version of language | Integer numerical value | Force (help before upgrading, carry out the inquiry of version and compare) |
StringNum | Statement number altogether | Integer numerical value | Force |
LanguageCode | Language number (every kind language specify an only language number) | Integer numerical value | Force (being used for the query language type) |
Another object class is a descriptive statement, and it is as follows to be named as the StringBitMap form:
[StringBitMap]
Str0BMLen=120
Str0BMArray=0x00,0x00,0x00,0x40,0x00,0x00,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0x00,0x00,0x00...
Str1BMLen=120
Str1BMArray=0x00,0x00,0x00,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xD0,0x00,0x00,0x00,0x33,0x00,0x00,0x77,0x00,0x00...
Str2BMLen=120
Str2BMArray=0x00,0x00,0x00,0x00,0x00,0xd3,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00...
Str3BMLen=120
Str3BMArray=0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x33,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00...
Str4BMLen=120
Str4BMArray=0x00,0x00,0x33,0x33,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00...
Str5BMLen=120
Str5BMArray=0x00,0x00,0x00,0x00,0x00,0x00,0x77,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x55,0x00,0x55,0x00,0x00,0x00,0x00,0x00,0x00,0x00...
Str6BMLen=120
Str6BMArray=0x00,0x00,0x00,0x00,0x00,0x00,0x88,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7D,0x00,0x00,0x50,0x00,0x00,0x00,0x00,0x00,0x00...
Str7BMLen=120
Str7BMArray=0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00...
Str8BMLen=120
Str8BMArray=0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00...
Str9BMLen=120
Str9BMArray=0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00...
Specifically:
Attribute-name | Describe | Data type | Download to storer |
Str##N##BMLen | The dot array data byte number of statement N | Integer numerical value | Force |
Str##N##BMArray | The dot array data of statement N | 16 system arrays | Force |
But, if a user thinks to support simultaneously multilingual,, but when by chance not having this compositional language bag, so just can not meet consumers' demand such as China and British, method, Korea Spro, Japanese.
Summary of the invention
Technical matters to be solved by this invention provides a kind of method for down loading and system thereof, can allow the user select needed category of language arbitrarily according to user's language combination demand, the last dynamic language pack (combined data block) of forming.
According to an aspect of the present invention, provide a kind of a plurality of data block files that computing machine is stored to download to respectively with method by a plurality of data blocks of the memory stores of embedded system, wherein said data block file and described data block comprise at least one data segment respectively, described method comprises step: for a plurality of data block files of being stored in the computing machine, generate the concordance list file by computing machine, described concordance list file comprises and each data block associated index information described in a plurality of data block files, described concordance list file comprises the identity property of each data block and the index information of at least one data segment thereof, and length and each data segment that described index information comprises each data segment of its index store the interior start address of embedded system storer into; Computing machine is sent to embedded system with the index data item of the concordance list file that generated; Embedded system stores the index data item that is received into the memory area of fixing embedded system successively; Each data segment data, data segment that computing machine is write down described a plurality of data block files are sent to embedded system successively in the storage start address of embedded system storer and the length of described data segment; And each data segment data of being write down based on described each data block file that is received of embedded system, data segment are in the start address of embedded system storer and the length of described data segment, the respective regions of data segment data storage to the embedded system storer.
According to another aspect of the present invention, a kind of visit method of data downloaded section according to the method described above is provided, comprise step: (a) embedded system is searched the identity property of each data block in the memory area of the index data item that is stored in each data block successively, determines the affiliated data block of data segment that will visit; (b) embedded system obtains storage start address and the data length of this data segment, the memory address scope of the definite data segment that will read of embedded system thus of the data segment that will visit in the storage area of the index data item of storing the data block under the determined data segment that will visit; (c) according to the memory address scope of the data segment that is obtained, the data of embedded system sense data section from storer.
According to another aspect of the present invention, provide a kind of download system, comprising: computing machine comprises: the Computer Storage module, be used to store a plurality of data block files, and wherein said data block file comprises at least one data segment; The concordance list file generating module, be used for a plurality of data block files of being stored for the Computer Storage module, generate the concordance list file, described concordance list file comprises and each data block associated index information described in a plurality of data block files, described concordance list file comprises the identity property of each data block and the index information of at least one data segment thereof, and length and each data segment that described index information comprises each data segment of its index store the interior start address of embedded system storer into; Sending module, the index data item that is used for the concordance list file that will be generated are sent to embedded system and each data segment data that described a plurality of data block files are write down, data segment is sent to embedded system successively in the storage start address of embedded system storer and the length of described data segment; Described embedded system comprises: the embedded system storer, be used to store a plurality of data blocks, and wherein said data block comprises at least one data segment; Control module, the index data item that is used for being received stores fixing embedded system memory area and each data segment data that write down based on described each data block file that is received, data segment into successively in the start address of embedded system storer and the length of described data segment, the respective regions of data segment data storage to the embedded system storer.
According to another aspect of the present invention, a kind of embedded system is provided, comprise: search module, be used for searching successively the identity property of each data block in the embedded system memory area of the index data item that is stored in each data block, determine the affiliated data block of data segment that to visit; Data segment address determination module, be used in the storage area of the index data item of storing the data block under the determined data segment that will visit, obtaining storage start address and the data length of this data segment, the memory address scope of definite data segment that will read thus of the data segment that will visit; And read module, be used for memory address scope, the data of sense data section from the embedded system storer according to the data segment that is obtained.
Since method and system of the present invention allow the user select arbitrarily needed category of language, item by item download index data item and data segment, form a language pack dynamically at last, thereby produce following technique effect:
1. support data block combinations (language combination) arbitrarily, can dynamically generate combined data block (multilingual bag).
2. adopt the ini file form, be more prone to carry out the management and the making of dot array data with the file layout of object class and attribute, with maintenance.
3. the way that this concordance list file separates with data block file (language lattice file), increased dirigibility, only need exploitation specific data block file (lattice file of language), do not need additionally to make a concordance list file, saved time and energy for every kind of data block (language).
In case combined data block externally the index framework (storage architecture of language data) in the storer changed, do not need to change the file structure (ini file) of data splitting bag (multilingual bag), because single-chip microcomputer can be written to corresponding storage area to property value according to object coding and attribute coding, in data splitting block file (multilingual APMB package), data segment (linguistic index data and language dot array data) is not sorted, so recycling property is good.
Description of drawings
Fig. 1 illustrates the system construction drawing according to the download system of preferred implementation of the present invention;
Fig. 2 illustrates according to the index relative synoptic diagram between a plurality of language pack of the concordance list file of preferred implementation of the present invention and its index;
Fig. 3 illustrates according to a plurality of data block files preferred implementation of the present invention, that computing machine is stored and downloads to respectively the process flow diagram by the method for a plurality of data blocks of the memory stores of HMI equipment;
Fig. 4 A illustrates the structural drawing according to the memory area of HMI equipment preferred implementation of the present invention, the storage index data item;
Fig. 4 B illustrates the structural drawing according to HMI device memory preferred implementation of the present invention, the storage phrase data;
Fig. 5 illustrates the signal flow diagram according to communications packets preferred implementation of the present invention, computing machine and HMI communication between devices;
Fig. 6 illustrate according to preferred implementation of the present invention, at the form of the communications packets of computing machine and HMI communication between devices
Fig. 7 illustrates the storage organization in the storer that language lattice file according to the combination of preferred implementation of the present invention downloads to HMI equipment;
Fig. 8 illustrates the process flow diagram according to the method for data segment preferred implementation of the present invention, visit HMI equipment;
Fig. 9 A illustrates the storage organization of index data item in the storer of HMI equipment according to preferred implementation of the present invention;
Fig. 9 B illustrates the storage organization of dot array data in the storer of HMI equipment according to preferred implementation of the present invention;
Figure 10 illustrates the module frame chart according to the download system of preferred implementation of the present invention; With
Figure 11 illustrates the internal module block diagram of searching module and data segment address determination module among Figure 10
Embodiment
For better explaination the present invention, the present invention is described as the mode of one exemplary embodiment with the system that comprises computing machine and human interface devices (HMI equipment).It will be apparent to those skilled in the art that the present invention can expand to application widely, such as HMI equipment is replaced with such as the same embedded system of Single Chip Microcomputer (SCM) system.The present invention is from the combination of the packet of multidata piece, download, storage and indexing means and system thereof are described, and the scheme of a globality is provided.Fig. 1 illustrates the system construction drawing according to the download system of preferred implementation of the present invention.
For a HMI equipment, support to show many menu statements possibly, here be referred to as data segment to them, and most HMI equipment is supported user's choice menus language form, can switch to a kind of in China and British, days three kinds language arbitrarily such as the user, for every kind of language lattice file, its all included statement information have just been formed a data block so.As preferred implementation of the present invention, in ensuing description we for properer application to HMI equipment, with statement, language lattice file and language pack respectively as the specific embodiment of the combination of data segment, data block and data block.
Data representation to statement has been a dot array data, so the present invention is applicable to the dot array data of picture form too, be applicable to the widespread use of tape index and representation of file that include the data block of multidata section, data download, storage, index too.Just used 3 data blocks in the present invention, the developer should know that also the present invention can expand to the combination of any number according to piece.The developer should be realized that also the present invention also can increase and decrease, revise to form the data block combinations of design needs it according to the application of reality the object class in the ini file, attribute.
The present invention is very complete provide a file organization from PC end data piece, to data download to Single Chip Microcomputer (SCM) system, to a whole set of scheme of exterior storage framework, though the present invention is described with the case of a HMI equipment, the developer should know that the present invention can be applied to other field.
Fig. 2 illustrates according to the index relative synoptic diagram between a plurality of language pack of the concordance list file of preferred implementation of the present invention and its index.Here, each language pack (data block combinations) has comprised a concordance list file and indexed language lattice file (data block).The concordance list file is according to the user selection of language file dynamically to be generated, and each language lattice file has all comprised all statement lattice informations of this language, no matter be that language lattice file or concordance list file all must come access with a kind of specific form, such as adopting the ini file form that below will introduce in detail.The present invention illustrates as preferred implementation that with the HMI equipment of 3 kinds of language of maximum supports still, those skilled in the art should understand the present invention and also be applicable to multilingual HMI equipment.
Fig. 3 illustrates according to a plurality of data block files preferred implementation of the present invention, that computing machine is stored and downloads to respectively the process flow diagram by the method for a plurality of data blocks of the memory stores of HMI equipment, and wherein said data block file and described data block comprise at least one data segment respectively.As shown in Figure 3, at step S301, for a plurality of data block files of being stored in the computing machine, generate the concordance list file by computing machine, described concordance list file comprises and each data block associated index information described in a plurality of data block files, described concordance list file comprises the identity property of each data block and the index information of at least one data segment thereof, and length and each data segment that described index information comprises each data segment of its index store the interior start address of HMI device memory into; At step S302, computing machine is sent to HMI equipment with the index data item of the concordance list file that generated; At step S303, HMI equipment stores the index data item that is received into the memory area of fixing HMI equipment successively; At step S304, each data segment data, data segment that computing machine is write down described a plurality of data block files are sent to HMI equipment successively in the storage start address of HMI device memory and the length of described data segment; At step S305, each data segment data that HMI equipment is write down based on described each data block file that is received, data segment are in the start address of HMI device memory and the length of described data segment, the respective regions of data segment data storage to the HMI device memory.
Below, with the language lattice file that adopts the ini file form a kind of concrete form, the preferred embodiment of dynamic creation concordance list is described as data block.If supporting 3 kinds of language to show at most, a HMI equipment switches, this concordance list just must comprise the index entry to these 3 kinds of language lattice informations so, give an example: will realize retrieval now to the lattice information of China and British, method, must write the index information of China and British, method so in the concordance list file, form is as follows:
[LanAssInfo]
LanTota1Num=3
[Lan1Info]
LanDummy=0
Tota1StrNum=10
LanVer=1
LanCode=21
[Lan2Info]
LanDummy=0
Tota1StrNum=10
LanVer=1
LanCode=22
[Lan3Info]
LanDummy=0
Tota1StrNum=10
LanVer=1
LanCode=23
[Lan1String]
Str0Len=120
Str0Addr=10000000
Str1Len=120
Str1Addr=10000120
Str2Len=120
Str2Addr=10000240
Str3Len=120
Str3Addr=10000360
Str4Len=120
Str4Addr=10000480
Str5Len=120
Str5Addr=10000600
Str6Len=120
Str6Addr=10000720
Str7Len=120
Str7Addr=10000840
Str8Len=120
Str8Addr=10000960
Str9Len=120
Str9Addr=10001080
[Lan2String]
Str0Len=120
Str0Addr=20000000
Str1Len=120
Str1Addr=20000120
Str2Len=120
Str2Addr=20000240
Str3Len=120
Str3Addr=20000360
Str4Len=120
Str4Addr=20000480
Str5Len=120
Str5Addr=20000600
Str6Len=120
Str6Addr=20000720
Str7Len=120
Str7Addr=20000840
Str8Len=120
Str8Addr=20000960
Str9Len=120
Str9Addr=20001080
[Lan3String]
Str0Len=120
Str0Addr=30000000
Str1Len=120
Str1Addr=30000120
Str2Len=120
Str2Addr=30000240
Str3Len=120
Str3Addr=30000360
Str4Len=120
Str4Addr=30000480
Str5Len=120
Str5Addr=30000600
Str6Len=120
Str6Addr=30000720
Str7Len=120
Str7Addr=30000840
Str8Len=120
Str8Addr=30000960
Str9Len=120
Str9Addr=30001080
Specifically:
Object class 1[LanAssInfo] mainly from being described on the whole of 3 kinds of language, only comprised an attribute item LanTotalNum here
Attribute-name | Describe | Data type | Data Source | Download to storer |
LanTotalNum | The language sum of index | Integer numerical value | The language lattice file number of index | Optional (because can know indexed language sum) by inquiring about following LanDummy attribute item |
Object class 2[Lan1Info], [Lan2Info], [Lan3Info] mainly carry out on the whole description to single language, comprised following attribute item:
Attribute-name | Describe | Data type | Data Source | Download to storer |
LanDummy | 0: index allows 1: index is forbidden | Integer | Whether index is set up | Force |
TotalStrNum | The statement sum of this language lattice file | Integer | The language lattice file | Force |
LanVer | Language lattice file version number | Integer | The language lattice file | Force |
LanCode | Language number | Integer | The language lattice file | Force |
Object class 3[Lan1String], [Lan2String], [Lan3String] mainly describe one by one to every statement of language, comprised following attribute item:
Attribute-name | Describe | Data type | Data Source | Download to storer |
Str##N##Len | The dot array data byte number of statement N | Integer | The language lattice file | Force |
Str##N##Addr | The storage geology of statement dot array data | Integer | By calculating (*) | Force |
(*) in the above in the example initial memory address of 3 language be respectively: 10000000,20000000,30000000, so
Str##N##Addr=start address+Str##N-1##Len+Str##N-2##Len+....Str1Len
In case created the language lattice file, all properties value in the concordance list file is written to the concordance list file after can reading out and handle from the language lattice file, so just can save the trival matters of creating the concordance list file.
Above we have finished the establishment of concordance list file and language lattice file, we therefrom also can see, comprised the necessary information of each bar statement of index in the index file: statement storage physical address, statement dot matrix byte number, and 3 pairing language message (category of language of index, version number, the statement sum, etc.), the dot array data of every statement in the language lattice file, comprised.We need read out index information and download in the storer in the concordance list file at ensuing task, then the dot array data of every statement are read out from the language lattice file and download in the storer successively according to physical address and data length.
Fig. 4 A illustrates the structural drawing according to the memory area of HMI equipment preferred implementation of the present invention, the storage index data item.Download in the present invention, in case the language lattice file that the user determine to select and after computer terminal generates index file, at first HMI equipment is from downloaded concordance list file, be the language lattice file then, we can carry out item by item data and download then according to object name and attribute-name reading of data when downloading.In process of downloading, concordance list is to be downloaded to fixing storage address, and we just can go to have obtained the index information of each bar statement according to fixed address like this, promptly, at first download the Str0Len value, the Str0Addr value is StrlLen value and Str1Addr value more then ....
Fig. 4 B illustrates the structural drawing according to HMI device memory preferred implementation of the present invention, the storage phrase data.Wherein, the dot array data of each bar statement can download in the storer according to the corresponding statement storage first address in the concordance list.
Fig. 5 illustrates the signal flow diagram according to communications packets preferred implementation of the present invention, computing machine and HMI communication between devices.Because when downloading language pack, property value in the ini file is downloaded item by item, must there be certain communication data packet format could allow Single Chip Microcomputer (SCM) system recognition data classification after receiving data over there so, such as being dot array data or index address or statement length.Have only the communications packets of having determined form, could allow Single Chip Microcomputer (SCM) system after receiving data, write data into corresponding external memory address through after unpacking.Next introduce the communications packets form: consider that ini file is the form that adopts object and attribute, if can give each object class and the given unique coding of attribute, can comprise object coding, attribute coding, data length and data in the form of communications packets so, when receiving data downloaded, Single Chip Microcomputer (SCM) system can be written to the correct storage area of external memory storage so by identifying object coding and attribute coding.
Fig. 6 illustrate according to preferred implementation of the present invention, at the form of the communications packets of computing machine and HMI communication between devices.When downloading the statement dot array data, the data segment in the download communication packet should comprise the physical storage address of dot array data.This is because the memory address of statement dot array data is that unfixed (some statement is long, some statement is short), so need to add memory address, but the memory address of index data is (just having determined the storage organization of index data in design) fixed, single-chip microcomputer only need just can be determined the memory address of index data according to object coding and attribute coding, so do not need given.By communications packets form as above, just can download to whole multilingual dot matrix bag (combined data block) in the external memory storage of Single Chip Microcomputer (SCM) system.
Fig. 7 illustrates the storage organization in the storer that language lattice file according to the combination of preferred implementation of the present invention downloads to HMI equipment.Externally in the storer we need to mark 6 storage areas be respectively language 1 index stores zone, language 2 index stores zones, language 3 index stores zones, language 1 dot array data storage area, language 2 dot array data storage areas, language 3 dot array data storage areas.
Fig. 8 illustrates the process flow diagram according to the method for data segment preferred implementation of the present invention, visit HMI equipment.According to Fig. 8, at step S801, HMI equipment is searched the identity property of each data block in the memory area of the index data item that is stored in each data block successively, determines the affiliated data block of data segment that will visit; At step S802, HMI equipment obtains storage start address and the data length of this data segment, the memory address scope of the definite data segment that will read of HMI equipment thus of the data segment that will visit in the storage area of the index data item of storing the data block under the determined data segment that will visit; At step S803, according to the memory address scope of the data segment that is obtained, the data of HMI equipment sense data section from storer.
Below, according to the storage organization of Fig. 9 A and 9B,, the method for the statement of visit HMI equipment is described with a kind of concrete form of statement as data segment.Fig. 9 A illustrates the storage organization of index data item in the storer of HMI equipment according to preferred implementation of the present invention.Fig. 9 B illustrates the storage organization of dot array data in the storer of HMI equipment according to preferred implementation of the present invention.If the LCD of Single Chip Microcomputer (SCM) system needs the 8th statement of Chinese display, so at first removing three index stores regional search language number is Chinese, and the index zone of linguistic index mark permission, in case found, so just can find the memory location skew (1+1+1+2+8* (2+4) byte) of the index data of the 8th statement according to the index stores structure, read out the memory address and the data length of the dot array data of this statement then according to offset address, read dot array data according to memory address and data length then, be presented on the LCD at last.
Figure 10 illustrates the module frame chart according to the download system of preferred implementation of the present invention.According to Figure 10, download system 1000 comprises computing machine 1001 and HMI equipment 1002.Computing machine 1001 comprises: Computer Storage module 1003, be used to store a plurality of data block files, wherein said data block file comprises at least one data segment, concordance list file generating module 1004, be used for a plurality of data block files of being stored for the Computer Storage module, generate the concordance list file, described concordance list file comprises and each data block associated index information described in a plurality of data block files, described concordance list file comprises the identity property of each data block and the index information of at least one data segment thereof, length and each data segment that described index information comprises each data segment of its index store the interior start address of HMI device memory into, with sending module 1005, be used for each data segment data that the index data item of the concordance list file that will be generated is sent to HMI equipment and described a plurality of data block files are write down, data segment is sent to HMI equipment successively in the storage start address of HMI device memory and the length of described data segment.HMI equipment 1002 comprises: HMI device memory 1006, be used to store a plurality of data blocks, and wherein said data block comprises at least one data segment; Control module 1007, the index data item that is used for being received stores fixing HMI device memory zone and each data segment data that write down based on described each data block file that is received, data segment into successively in the start address of HMI device memory and the length of described data segment, the respective regions of data segment data storage to the HMI device memory; Search module 1008, be used for searching successively the identity property of each data block in the HMI device memory zone of the index data item that is stored in each data block, determine the affiliated data block of data segment that to visit; Data segment address determination module 1009, be used in the storage area of the index data item of storing the data block under the determined data segment that will visit, obtaining storage start address and the data length of this data segment, the memory address scope of definite data segment that will read thus of the data segment that will visit; With read module 1010, be used for memory address scope, the data of sense data section from the HMI device memory according to the data segment that is obtained.
Figure 11 illustrates the internal module block diagram of searching module and data segment address determination module among Figure 10.Searching module 1008 also comprises: identity property address determination module 10081, be used for definite address of storing the HMI device memory zone of an index data item, and this index data item is associated with the identity property of the affiliated data block of the data segment that will visit; With side-play amount determination module 10082, be used for determining with the data segment associated index data item that will visit with respect to the data segment that will visit under the position of identity property associated index data item of data block.Data segment address determination module 1009 also comprises: data segment index address determination module 10091, be used for based on the address in described HMI device memory zone of searching the determined index data item of module and the predetermined length of determined relative position and described index data item, determine the address realm of the index data item of the data segment that will visit; Obtain module 10092 with the data segment memory address, be used for address realm, obtain to be used to the storing start address of the data segment that will visit and the memory address scope of the data segment that the length of the data segment that will visit and obtaining thus will be visited according to the index data item of the determined data segment that will visit.
Although specifically show and described the present invention with reference to the preferred embodiments of the present invention, but persons skilled in the art should be understood that, under the situation of the spirit and scope of the present invention that do not break away from the claims qualification, can carry out the various modifications on form and the details and can be applicable to other occasions it.
Claims (26)
1. a plurality of data block files that computing machine is stored download to respectively the method by a plurality of data blocks of the memory stores of embedded system, wherein said data block file and described data block comprise at least one data segment respectively, and described method comprises step:
For a plurality of data block files of being stored in the computing machine, generate the concordance list file by computing machine, described concordance list file comprises and each data block associated index information described in a plurality of data block files, described concordance list file comprises the identity property of each data block and the index information of at least one data segment thereof, and length and each data segment that described index information comprises each data segment of its index store the interior start address of embedded system storer into;
Computing machine is sent to embedded system with the index data item of the concordance list file that generated;
Embedded system stores the index data item that is received into the memory area of fixing embedded system successively;
Each data segment data, data segment that computing machine is write down described a plurality of data block files are sent to embedded system successively in the storage start address of embedded system storer and the length of described data segment; And
Each data segment data that embedded system is write down based on described each data block file that is received, data segment are in the start address of embedded system storer and the length of described data segment, the respective regions of data segment data storage to the embedded system storer.
2. the method for claim 1 is wherein with the predetermined described index information of length records.
3. method as claimed in claim 2, wherein said data block file are that the lattice file and the described data segment that comprise at least one lattice information are described lattice information.
4. method as claimed in claim 3, wherein said data block file are that language lattice file and described lattice information are the statement lattice information.
5. method as claimed in claim 4 wherein constitutes a language pack by described a plurality of language lattice files and described concordance list file.
6. method as claimed in claim 4 wherein is selected from Chinese language lattice file, French language lattice file, english language lattice file, Korean language lattice file and Japanese language lattice file by described a plurality of language lattice files.
7. method as claimed in claim 2, wherein said embedded system are Single Chip Microcomputer (SCM) system.
8. method as claimed in claim 2 wherein adopts the ini file form to store described concordance list file and described data segment data.
9. method as claimed in claim 4, the identity property of wherein said language lattice file are the language number of described language lattice file, and described concordance list file also comprises linguistic index mark, language version number and the statement sum of each language lattice file.
10. a visit comprises step as the method for method data downloaded section as described in one of claim 2-9:
(a) embedded system is searched the identity property of each data block in the memory area of the index data item that is stored in each data block successively, determines the affiliated data block of data segment that will visit;
(b) embedded system obtains storage start address and the data length of this data segment, the memory address scope of the definite data segment that will read of embedded system thus of the data segment that will visit in the storage area of the index data item of storing the data block under the determined data segment that will visit;
(c) according to the memory address scope of the data segment that is obtained, the data of embedded system sense data section from storer.
11. method as claimed in claim 10, wherein
Step (a) also comprises:
The address of the memory area of the embedded system of definite storage one index data item, this index data item is associated with the identity property of the affiliated data block of the data segment that will visit; And
Determine with the data segment associated index data item that will visit with respect to the data segment that will visit under the position of identity property associated index data item of data block;
Step (b) also comprises:
Based on the address of the memory area of the embedded system of determined index data item in step (a) and the predetermined length of determined relative position and described index data item, the address realm of the index data item of the definite data segment that will visit of embedded system; And
Address realm according to the index data item of the determined data segment that will visit, embedded system obtains to be used to the storing start address of the data segment that will visit and the length of the data segment that will visit, and obtains the memory address scope of the data segment that will visit thus.
12. method as claimed in claim 11, wherein in step (b), with the start address of the storage area of the data segment associated index data item that will visit be: the predetermined length * determined relative position of the address+described index data item of the memory area of the identity property of data block under the data segment that will visit.
13. method as claimed in claim 10 also comprises step:
The data that on the display device of embedded system, show the data segment of from storer, reading.
14. a download system comprises:
Computing machine comprises:
The Computer Storage module is used to store a plurality of data block files, and wherein said data block file comprises at least one data segment;
The concordance list file generating module, be used for a plurality of data block files of being stored for the Computer Storage module, generate the concordance list file, described concordance list file comprises and each data block associated index information described in a plurality of data block files, described concordance list file comprises the identity property of each data block and the index information of at least one data segment thereof, and length and each data segment that described index information comprises each data segment of its index store the interior start address of embedded system storer into;
Sending module, the index data item that is used for the concordance list file that will be generated are sent to embedded system and each data segment data that described a plurality of data block files are write down, data segment is sent to embedded system successively in the storage start address of embedded system storer and the length of described data segment;
Described embedded system comprises:
The embedded system storer is used to store a plurality of data blocks, and wherein said data block comprises at least one data segment;
Control module, the index data item that is used for being received stores fixing embedded system memory area and each data segment data that write down based on described each data block file that is received, data segment into successively in the start address of embedded system storer and the length of described data segment, the respective regions of data segment data storage to the embedded system storer.
15. system as claimed in claim 13 is wherein with the predetermined described index information of length records.
16. system as claimed in claim 15, wherein said data block file is that the lattice file and the described data segment that comprise at least one lattice information are described lattice information.
17. system as claimed in claim 16, wherein said data block file is that language lattice file and described lattice information are the statement lattice information.
18. system as claimed in claim 17 wherein constitutes a language pack by described a plurality of language lattice files and described concordance list file.
19. system as claimed in claim 17 wherein is selected from Chinese language lattice file, French language lattice file, english language lattice file, Korean language lattice file and Japanese language lattice file by described a plurality of language lattice files.
20. system as claimed in claim 15, wherein said embedded system are Single Chip Microcomputer (SCM) system.
21. system as claimed in claim 15 wherein adopts the ini file form to store described concordance list file and described data segment data.
22. system as claimed in claim 17, the identity property of wherein said language lattice file is the language number of described language lattice file, and described concordance list file also comprises linguistic index mark, language version number and the statement sum of each language lattice file.
23. as the described system of one of claim 14-22,
Described embedded system also comprises:
Search module, be used for searching successively the identity property of each data block in the embedded system memory area of the index data item that is stored in each data block, determine the affiliated data block of data segment that to visit;
Data segment address determination module, be used in the storage area of the index data item of storing the data block under the determined data segment that will visit, obtaining storage start address and the data length of this data segment, the memory address scope of definite data segment that will read thus of the data segment that will visit; With
Read module is used for the memory address scope according to the data segment that is obtained, the data of sense data section from the embedded system storer.
24. the system as claimed in claim 22, wherein
The described module of searching also comprises:
Identity property address determination module is used for definite address of storing the embedded system memory area of an index data item, and this index data item is associated with the identity property of the affiliated data block of the data segment that will visit; With
The side-play amount determination module, be used for determining with the data segment associated index data item that will visit with respect to the data segment that will visit under the position of identity property associated index data item of data block;
Described data segment address determination module also comprises:
Data segment index address determination module, be used for based on the address of the described embedded system memory area of searching the determined index data item of module and the predetermined length of determined relative position and described index data item, determine the address realm of the index data item of the data segment that will visit; With
The data segment memory address obtains module, be used for address realm, obtain to be used to the storing start address of the data segment that will visit and the memory address scope of the data segment that the length of the data segment that will visit and obtaining thus will be visited according to the index data item of the determined data segment that will visit.
25. system as claimed in claim 23, wherein said data segment index address determination module is determined the address realm of the index data item of the data segment that will visit according to following formula: the predetermined length * determined relative position of the address+described index data item of the memory area of the identity property of data block under the data segment that will visit.
26. system as claimed in claim 23, wherein:
Described embedded system also comprises:
Display unit is used for showing the data of the data segment that described read module is read from the embedded system storer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200710166559 CN101430685B (en) | 2007-11-06 | 2007-11-06 | Downloading method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200710166559 CN101430685B (en) | 2007-11-06 | 2007-11-06 | Downloading method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101430685A true CN101430685A (en) | 2009-05-13 |
CN101430685B CN101430685B (en) | 2013-05-01 |
Family
ID=40646091
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200710166559 Active CN101430685B (en) | 2007-11-06 | 2007-11-06 | Downloading method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101430685B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102082964A (en) * | 2009-11-30 | 2011-06-01 | 康佳集团股份有限公司 | Method, system and set top box (STB) for displaying text file |
CN102339293A (en) * | 2010-07-27 | 2012-02-01 | 高德软件有限公司 | Method and device for reading geographical data file record |
CN102508895A (en) * | 2011-11-02 | 2012-06-20 | 深圳市华力特电气股份有限公司 | Method and device for reading INI files |
CN104850534A (en) * | 2015-05-11 | 2015-08-19 | 深圳市元征科技股份有限公司 | Storage method and device based on embedded multilingual texts |
CN105243071A (en) * | 2014-07-12 | 2016-01-13 | 航天恒星科技有限公司 | Retrievable file access method suitable for no-file system |
CN105302912A (en) * | 2015-11-11 | 2016-02-03 | 中国联合网络通信集团有限公司 | Data storage method and device |
WO2016169152A1 (en) * | 2015-04-20 | 2016-10-27 | 中兴通讯股份有限公司 | File acceleration method and apparatus |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1845099A (en) * | 2006-04-27 | 2006-10-11 | 掌富科技(南京)有限公司 | Method and structure for conversion and storage of multimedia electronic file in intelligent mobile terminal |
-
2007
- 2007-11-06 CN CN 200710166559 patent/CN101430685B/en active Active
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102082964A (en) * | 2009-11-30 | 2011-06-01 | 康佳集团股份有限公司 | Method, system and set top box (STB) for displaying text file |
CN102339293A (en) * | 2010-07-27 | 2012-02-01 | 高德软件有限公司 | Method and device for reading geographical data file record |
CN102339293B (en) * | 2010-07-27 | 2015-04-22 | 高德软件有限公司 | Method and device for reading geographical data file record |
CN102508895A (en) * | 2011-11-02 | 2012-06-20 | 深圳市华力特电气股份有限公司 | Method and device for reading INI files |
CN105243071A (en) * | 2014-07-12 | 2016-01-13 | 航天恒星科技有限公司 | Retrievable file access method suitable for no-file system |
WO2016169152A1 (en) * | 2015-04-20 | 2016-10-27 | 中兴通讯股份有限公司 | File acceleration method and apparatus |
CN104850534A (en) * | 2015-05-11 | 2015-08-19 | 深圳市元征科技股份有限公司 | Storage method and device based on embedded multilingual texts |
CN104850534B (en) * | 2015-05-11 | 2018-02-23 | 深圳市元征科技股份有限公司 | Storage method and device based on embedded multi-language text |
CN105302912A (en) * | 2015-11-11 | 2016-02-03 | 中国联合网络通信集团有限公司 | Data storage method and device |
CN105302912B (en) * | 2015-11-11 | 2018-06-29 | 中国联合网络通信集团有限公司 | A kind of date storage method and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN101430685B (en) | 2013-05-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101430685B (en) | Downloading method and system | |
CN100456264C (en) | Magnetic disk space management and managing system | |
CN102023979B (en) | Meta-data management method and system | |
CN101258496B (en) | Autocompleting with queries to a database | |
CN102541529B (en) | A kind of query page generating device and method | |
CN1517885B (en) | Method and system for updating central cache by atomicity | |
CN101162441B (en) | Access apparatus and method for data | |
CN105094707A (en) | Method and device for storing and reading data | |
CN108334534A (en) | Operation system field configuration method, apparatus, server and readable storage medium storing program for executing | |
CN102708197A (en) | Multimedia file management method and device | |
CN100476726C (en) | Resource limited equipment and data accessing method | |
CN102968373A (en) | Method and device for maintaining test system | |
CN100458736C (en) | NAND flash information extraction method and NAND flash automatic identification method | |
CN107766130A (en) | The method and apparatus that virtual machine migrates to container | |
CN101251799B (en) | Apparatus and method for implementing management | |
CN107679182A (en) | A kind of catalogue collocation method and device | |
CN1952881A (en) | Object state transfer method, object state transfer device, object state transfer program, and recording medium for the program | |
KR100858157B1 (en) | System and method for updating map, storage medium recording method program, user terminal | |
CN102591787A (en) | Method and device for data processing of JAVA card | |
CN100334582C (en) | Method and apparatus for storing and searching data in hand-held device | |
CN100462973C (en) | XML file preprocessing method, apparatus, file structure, reading method and device | |
CN112394928B (en) | Method for constructing multilevel menu in embedded system and computer storage medium | |
CN100489855C (en) | Apparatus and method for journaling database changes using minimized journal entries | |
CN100378663C (en) | Method, system and module for dynamic downloading of applied programe to user identification | |
CN101917522A (en) | Method and device for updating list style of mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |