CN101430685B - Downloading method and system - Google Patents

Downloading method and system Download PDF

Info

Publication number
CN101430685B
CN101430685B CN 200710166559 CN200710166559A CN101430685B CN 101430685 B CN101430685 B CN 101430685B CN 200710166559 CN200710166559 CN 200710166559 CN 200710166559 A CN200710166559 A CN 200710166559A CN 101430685 B CN101430685 B CN 101430685B
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.)
Active
Application number
CN 200710166559
Other languages
Chinese (zh)
Other versions
CN101430685A (en
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.)
Schneider Electric SE
Schneider Electric Industries SAS
Original Assignee
Schneider Electric SE
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 Schneider Electric SE filed Critical Schneider Electric SE
Priority to CN 200710166559 priority Critical patent/CN101430685B/en
Publication of CN101430685A publication Critical patent/CN101430685A/en
Application granted granted Critical
Publication of CN101430685B publication Critical patent/CN101430685B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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

Method for down loading and system thereof
Technical field
The present invention relates to a kind of method for down loading and system thereof, more particularly, but relate to storage upgrade method and the system thereof of many data blocks 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 that creates the language lattice file adopts is convenient to the language lattice file form revised-ini file form 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 2=property value 2
Attribute 3=property value 3
[2 of objects]
Attribute 1=property value 1
Attribute 2=property value 2
Attribute 3=property value 3
[3 of objects]
Attribute 1=property value 1
Attribute 2=property value 2
Attribute 3=property value 3
In ini file, the access of any one attribute all is based on object name and attribute-name is carried out, utilize windows API built-in function to carry out read and write to the property value in the ini file, specific definition function following (because be the windowsAPI function, detail is not done expansion):
Definition GetFromini function in the vb engineering, with the property value of this function in can reading INI files, 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 the 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 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 show 10 Chinese statements the support of a HMI equipment, 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 to set up two object class so, first object class is the whole class of descriptive language, can be named as LanInfo (name can be freely given by the deviser), 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 (because there is the language number can the identifiable language type, depositing so language name can not download to
In the reservoir)
LanVersion The version of language Integer numerical value Force (help before upgrading, carry out the inquiry of version relatively)
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 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, such as China and British, method, Korea Spro, Japanese, but when by chance not having this compositional language bag, so just can not meet consumers' demand.
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 arbitrarily needed category of language according to user's language combination demand, the last dynamic language pack (combined data block) that forms.
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 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 respectively at least one data segment, described method comprises step: for a plurality of data block files of storing in the computing machine, by computing machine generating indexes list file, the index information that described concordance list file including is associated with each data block described in a plurality of data block files, length and each data segment that the identity property of described each data block of concordance list file including and the index information of at least one data segment thereof, described index information comprise 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 generates; Embedded system stores the index data item that receives into the memory area of fixing embedded system successively; Each data segment data that computing machine records described a plurality of data block files, data segment 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 recording based on described each data block file that receives of embedded system, data segment store the data segment data into the respective regions of embedded system storer in the start address of embedded system storer and the length of described data segment.
According to another aspect of the present invention, the method of the data segment that a kind of access downloads 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 access; (b) embedded system obtains storage start address and the data length of this data segment, thus the memory address scope of the definite data segment that will read of embedded system of the data segment that will access in the storage area of the index data item of storing the data block under the determined data segment that will access; (c) according to the memory address scope of the data segment that obtains, 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 for storing a plurality of data block files, and wherein said data block file comprises at least one data segment; The concordance list file generating module, for a plurality of data block files of storing for the Computer Storage module, the generating indexes list file, the index information that described concordance list file including is associated with each data block described in a plurality of data block files, length and each data segment that the identity property of described each data block of concordance list file including and the index information of at least one data segment thereof, described index information comprise 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 generate are sent to embedded system and each data segment data that described a plurality of data block files are recorded, 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 for storing a plurality of data blocks, and wherein said data block comprises at least one data segment; Control module, for the index data item that receives being stored successively into fixing embedded system memory area and each data segment data that record based on described each data block file that receives, data segment in the start address of embedded system storer and the length of described data segment, the data segment data are stored into the respective regions of embedded system storer.
According to another aspect of the present invention, a kind of embedded system is provided, comprise: search module, for the identity property of each data block in the embedded system memory area of searching successively the index data item that is stored in each data block, the data block under the data segment of determining to access; 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 access, obtaining storage start address and the data length of this data segment, thus the memory address scope of definite data segment that will read of the data segment that will access; And read module, be used for the memory address scope according to the data segment that obtains, the data of sense data section from the embedded system storer.
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 arbitrarily data block combinations (language combination), can dynamically generate combined data block (multilingual bag).
2. adopt the ini file form, be more prone to carry out management and the making of dot array data with the file layout of object class and attribute, with maintenance.
3. this concordance list file way of separating 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 for every kind of data block (language), saved time and energy.
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, access 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 example 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 widely application, 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 many data blocks, 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 possibly to show many menu statements, here be referred to as data segment to them, and most HMI equipment is supported user selection menu language type, can switch to arbitrarily a kind of in China and British, days three kinds language such as the user, for every kind of language lattice file, its all included statement information have just 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 dot array data, so the present invention is applicable to the dot array data of picture form too, be applicable to too representation of file, data download, the storage of data block tape index and that include many data segments, the widespread use of index.Just used in the present invention 3 data blocks, the developer should know that also the present invention can expand to any number according to the combination of 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 the 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, although 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 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 respectively at least one data segment.As shown in Figure 3, at step S301, for a plurality of data block files of storing in the computing machine, by computing machine generating indexes list file, the index information that described concordance list file including is associated with each data block described in a plurality of data block files, length and each data segment that the identity property of described each data block of concordance list file including and the index information of at least one data segment thereof, described index information comprise 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 generates; At step S303, HMI equipment stores the index data item that receives into the memory area of fixing HMI equipment successively; At step S304, each data segment data that computing machine records described a plurality of data block files, data segment 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 records based on described each data block file that receives, data segment store the data segment data into the respective regions of HMI device memory in the start address of HMI device memory and the length of described data segment.
Below, with the language lattice file that the adopts the ini file form a kind of concrete form as data block, the preferred embodiment of dynamic creation concordance list is described.If supporting at most 3 kinds of language to show, 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 now the retrieval to the lattice information of China and British, method, must write so the index information of China and British, method in the concordance list file, form is as follows:
[LanAss Info]
LanTotalNum=3
[LanlInfo]
LanDummy=0
TotalStrNum=10
LanVer=1
LanCode=21
[Lan2Info]
LanDummy=0
TotalStrNum=10
LanVer=1
LanCode=22
[Lan3Info]
LanDummy=0
TotalStrNum=10
LanVer=1
LanCode=23
[LanlString]
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[LanlInfo], [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 that create 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 joint number, and 3 corresponding language message (category of language of index, version number, statement sum, etc.), the dot array data of every statement in the language lattice file, comprised.We need to read out index information and download in the storer in the concordance list file 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 behind computer terminal generating indexes file, at first HMI equipment is from downloaded concordance list file, then be the language lattice file, we can according to object name and attribute-name reading out data, then carry out item by item data and download when downloading.In the 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, namely, at first download the Str0Len value, then the Str0Addr value is Str1Len value and Str1Addr value again ....
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 in the download language bag, property value in the ini file is downloaded item by item, must there be so certain communication data packet format could allow Single Chip Microcomputer (SCM) system recognition data classification after receiving data over there, such as being dot array data or index address or statement length.Only determine the communications packets 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 the data of download, Single Chip Microcomputer (SCM) system can by identifying object coding and attribute coding, be written to the correct storage area of external memory storage so.
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 to 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 zone, language 3 index stores zone, 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, access 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 access; At step S802, HMI equipment obtains storage start address and the data length of this data segment, thus the memory address scope of the definite data segment that will read of HMI equipment of the data segment that will access in the storage area of the index data item of storing the data block under the determined data segment that will access; At step S803, according to the memory address scope of the data segment that obtains, the data of HMI equipment sense data section from storer.
Below, according to the storage organization of Fig. 9 A and 9B, with a kind of concrete form of statement as data segment, the method for the statement of access HMI equipment is described.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 license, in case found, so just can find according to the index stores structure memory location skew (1+1+1+2+8* (2+4) byte) of the index data of the 8th statement, then read out memory address and the data length of the dot array data of this statement according to offset address, then read dot array data according to memory address and data length, 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 for storing a plurality of data block files, wherein said data block file comprises at least one data segment, concordance list file generating module 1004, for a plurality of data block files of storing for the Computer Storage module, the generating indexes list file, the index information that described concordance list file including is associated with each data block described in a plurality of data block files, the identity property of described each data block of concordance list file including 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 generate is sent to HMI equipment and described a plurality of data block files are recorded, 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 for storing a plurality of data blocks, and wherein said data block comprises at least one data segment; Control module 1007, for the index data item that receives being stored successively into fixing HMI device memory zone and each data segment data that record based on described each data block file that receives, data segment in the start address of HMI device memory and the length of described data segment, the data segment data are stored into the respective regions of HMI device memory; Search module 1008, for the identity property of each data block in the HMI device memory zone of searching successively the index data item that is stored in each data block, the data block under the data segment of determining to access; 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 access, obtaining storage start address and the data length of this data segment, thus the memory address scope of definite data segment that will read of the data segment that will access; With read module 1010, be used for the memory address scope according to the data segment that obtains, the data of sense data section from the HMI device memory.
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 access; With side-play amount determination module 10082, be used for to determine the index data item that is associated with the data segment that will access with respect to the data segment that will access under the position of the index data item that is associated of the identity property 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 access; Obtain module 10092 with the data segment memory address, be used for the address realm according to the index data item of the determined data segment that will access, obtain to be used for the start address of the data segment that storage will access and the memory address scope of the data segment that the length of the data segment that will access and obtaining thus will be accessed.
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, in the situation of the spirit and scope of the present invention that do not break away from the claims restriction, 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 storer of embedded system to store the method for a plurality of data blocks that comprise in described a plurality of data block files in this storer, wherein said data block file and described data block comprise respectively at least one data segment, and described method comprises step:
For a plurality of data block files of storing in the computing machine, by computing machine generating indexes list file, the index information that described concordance list file including and a plurality of data blocks in a plurality of data block files are associated respectively, length and each data segment that the identity property of described each data block of concordance list file including and the index information of at least one data segment thereof, the index information of described at least one data segment comprise each data segment of its index store the interior start address of embedded system storer into;
The index information that the index information that a plurality of data blocks with in a plurality of data block files that computing machine comprises the concordance list file that generates are associated respectively and data segment are associated is sent to embedded system as index data item;
Embedded system stores the index data item that receives into the memory area of fixing embedded system successively;
Computing machine will be sent to embedded system in the storage start address of embedded system storer and the length of described data segment successively based on each data segment data, the data segment that described a plurality of data block files produce; And
Each data segment data that embedded system records based on described each data block file that receives, data segment are in the start address of embedded system storer and the length of described data segment, the data segment data are stored into the respective regions of embedded system storer
Data block of each data block file including wherein, each data block comprises at least one data segment.
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 is that language lattice file and described lattice information are the statement lattice information.
5. method as claimed in claim 4 wherein consists of 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 is Single Chip Microcomputer (SCM) system.
8. method as claimed in claim 2, wherein said concordance list file and described data segment data create with the ini file form.
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. the method for the data segment downloaded such as method as described in one of claim 2-9 of an access comprises 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 access;
(b) embedded system obtains storage start address and the data length of this data segment, thus the memory address scope of the definite data segment that will read of embedded system of the data segment that will access in the storage area of the index data item of storing the data block under the determined data segment that will access;
(c) according to the memory address scope of the data segment that obtains, 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 access; And
Determine the index data item be associated with the data segment that will access with respect to the data segment that will access under the position of the index data item that is associated of the identity property of data block between the two; 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 access of embedded system; And
Address realm according to the index data item of the determined data segment that will access, embedded system to be used for the start address of the data segment that storage will access and the length of the data segment that will access, and obtains thus the memory address scope of the data segment that will access.
12. method as claimed in claim 11, wherein in step (b), the start address of the storage area of the index data item that is associated with the data segment that will access is: be used for the length of the address of memory area that the identity property of data block under the data segment that will access is stored+described index data item * determined relative position.
13. method as claimed in claim 10 also comprises step:
Show the data of the data segment of from storer, reading in the display device of embedded system.
14. a plurality of data block files that computing machine is stored download to respectively the storer of embedded system to store the download system of a plurality of data blocks that comprise in described a plurality of data block files in this storer, wherein said data block file and described data block comprise respectively at least one data segment, and described download system comprises:
Device for a plurality of data block file generated concordance list files of storing for computing machine, the index information that described concordance list file including and a plurality of data blocks in a plurality of data block files are associated respectively, length and each data segment that the identity property of described each data block of concordance list file including and the index information of at least one data segment thereof, the index information of described at least one data segment comprise each data segment of its index store the interior start address of embedded system storer into;
Be used for the index information that the concordance list file that the generates index information that is associated respectively with a plurality of data blocks a plurality of data block files that comprise and data segment are associated is sent to as index data item the device of embedded system;
Be used for the index data item that receives is stored into successively the device of the memory area of fixing embedded system;
Each data segment data that are used for producing based on described a plurality of data block files, data segment are sent to the device of embedded system successively in the length of the storage start address of embedded system storer and described data segment; And
Each data segment data that are used for recording based on described each data block file that receives, data segment are in the start address of embedded system storer and the length of described data segment, the data segment data are stored into the device of the respective regions of embedded system storer
Data block of each data block file including wherein, each data block comprises at least one data segment.
15. system as claimed in claim 14 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 consists of 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 said concordance list file and described data segment data create with the ini file form.
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. an access is such as the system of the data segment of system downloads as described in one of claim 14-22,
Described system also comprises:
Search device for the identity property of each data block in the embedded system memory area of searching successively the index data item that is stored in each data block, the data block under the data segment of determining to access;
Device is determined in the data segment address, be used in the storage area of the index data item of storing the data block under the determined data segment that will access, obtaining storage start address and the data length of this data segment, thus the memory address scope of definite data segment that will read of the data segment that will access; With
Reading device is used for the memory address scope according to the data segment that obtains, the data of sense data section from the embedded system storer.
24. system as claimed in claim 23, wherein
The described device of searching also comprises:
Device is determined in the identity property address, is used for the address of the embedded system memory area of definite storage one 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 access; With
Side-play amount is determined device, be used for to determine the index data item that is associated with the data segment that will access with respect to the data segment that will access under the position of the index data item that is associated of the identity property of data block between the two;
Described data segment address determines that device also comprises:
The data segment index address is determined device, be used for based on the address of the described embedded system memory area of searching the determined index data item of device 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 access; With
The data segment memory address obtains device, be used for the address realm according to the index data item of the determined data segment that will access, obtain to be used for the start address of the data segment that storage will access and the memory address scope of the data segment that the length of the data segment that will access and obtaining thus will be accessed.
25. system as claimed in claim 23, wherein said data segment index address determines that device determines the address realm of the index data item of the data segment that will access according to following formula: be used for the length of the address of memory area that the identity property of data block under the data segment that will access is stored+described index data item * determined relative position.
26. system as claimed in claim 23, wherein:
Described system also comprises a kind of module, is used for the data that display device in embedded system shows the data segment of reading from storer.
CN 200710166559 2007-11-06 2007-11-06 Downloading method and system Active CN101430685B (en)

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 CN101430685A (en) 2009-05-13
CN101430685B true 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)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
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
CN102339293B (en) * 2010-07-27 2015-04-22 高德软件有限公司 Method and device for reading geographical data file record
CN102508895B (en) * 2011-11-02 2015-01-21 深圳市华力特电气股份有限公司 Method and device for reading INI files
CN105243071A (en) * 2014-07-12 2016-01-13 航天恒星科技有限公司 Retrievable file access method suitable for no-file system
CN106156183A (en) * 2015-04-20 2016-11-23 中兴通讯股份有限公司 File acceleration method and device
CN104850534B (en) * 2015-05-11 2018-02-23 深圳市元征科技股份有限公司 Storage method and device based on embedded multi-language text
CN105302912B (en) * 2015-11-11 2018-06-29 中国联合网络通信集团有限公司 A kind of date storage method and equipment

Citations (1)

* Cited by examiner, † Cited by third party
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

Patent Citations (1)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN101430685A (en) 2009-05-13

Similar Documents

Publication Publication Date Title
CN101430685B (en) Downloading method and system
CN102023979B (en) Meta-data management method and system
CN1517885B (en) Method and system for updating central cache by atomicity
CN101162441B (en) Access apparatus and method for data
CN104991708B (en) Electronic reading device and its reading scene adaptive collocation method
CN100456264C (en) Magnetic disk space management and managing system
CN103186622B (en) The update method of index information and device in a kind of text retrieval system
CN105094707A (en) Method and device for storing and reading data
CN100555284C (en) A kind of electronic dictionary data update system and method thereof
CN108334534A (en) Operation system field configuration method, apparatus, server and readable storage medium storing program for executing
US5845226A (en) Navigation system for leading to a destination and recording medium used for the navigation system
CN101983376A (en) Access device, information recording device, information recording system, file management method, and program
CN100458736C (en) NAND flash information extraction method and NAND flash automatic identification method
CN100449545C (en) Method and system for accessing sector data
CN102708197A (en) Multimedia file management method and device
CN107679182A (en) A kind of catalogue collocation method and device
CN100334582C (en) Method and apparatus for storing and searching data in hand-held device
KR20080005855A (en) Format description for a navigation database
CN106528441B (en) Data processing method and device for simulating EEPROM (electrically erasable programmable read-Only memory) and electronic equipment
CN1952881A (en) Object state transfer method, object state transfer device, object state transfer program, and recording medium for the program
CN101303667B (en) Method and device for establishing magnetic disk null cluster table and seeking magnetic disk null cluster
CN100462973C (en) XML file preprocessing method, apparatus, file structure, reading method and device
CN100489855C (en) Apparatus and method for journaling database changes using minimized journal entries
KR100858157B1 (en) System and merhod for map uapdate, storage medium recording that method program, user termianl
CN112394928A (en) Method for constructing multilevel menu in embedded system and computer storage medium

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