CN100426230C - Method for processing data of embedded system - Google Patents

Method for processing data of embedded system Download PDF

Info

Publication number
CN100426230C
CN100426230C CNB2005101017602A CN200510101760A CN100426230C CN 100426230 C CN100426230 C CN 100426230C CN B2005101017602 A CNB2005101017602 A CN B2005101017602A CN 200510101760 A CN200510101760 A CN 200510101760A CN 100426230 C CN100426230 C CN 100426230C
Authority
CN
China
Prior art keywords
data
volatile memory
configuration data
embedded system
label
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.)
Expired - Fee Related
Application number
CNB2005101017602A
Other languages
Chinese (zh)
Other versions
CN1971512A (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.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CNB2005101017602A priority Critical patent/CN100426230C/en
Publication of CN1971512A publication Critical patent/CN1971512A/en
Application granted granted Critical
Publication of CN100426230C publication Critical patent/CN100426230C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

A data processing method of embedded system includes: a controller, a volatile memory and a non-volatile memory; the layout data of the system is added with label and grouped, many labels are set into one group and marked a label, it is then memorized in the non-volatile memory; the set data of system is received; the group label of all the layout data is searched; judging whether the set data of system is uniform to the layout data searched; if the set data of system is uniform to the layout data searched, the layout data searched will be loaded to the volatile memory; the layout data in the volatile memory is read out by the controller to accomplish the self-initialization to start work. Said data processing method of embedded system takes use of searching group label to lead in the layout data, the time of system configuration and the occupancy of volatile memory when system is running normally can be effectively reduced.

Description

A kind of method of processing data of embedded system
[technical field]
The present invention relates to a kind of method of processing data of embedded system, refer to a kind of method of embedded system fast processing data especially.
[background technology]
The development of the fast development of the adjoint network communication technology, especially wireless network makes embedded system miscellaneous become the main tool that people obtain data gradually.Present mobile phone, modulator-demodular unit, gateway etc. are embedded system.
Embedded system generally is made of following module: a controller, is used to preserve nonvolatile memory (the non-volatile random access memory of firmware (Firmware), NVRAM), a volatile memory that is used for the stored routine data (volatile randomaccess memory, VRAM), the embedded OS of a lightweight etc.
Because all configuration datas all are stored in the nonvolatile memory in the embedded system, embedded system is when work, need the loading system configuration data, then all data need to read in volatile memory from nonvolatile memory, and microcontroller is chosen required configuration data again from volatile memory.Generally speaking, during the system operate as normal, microcontroller does not need all configuration datas, only need provide the configuration data consistent to get final product with default, therefore all configuration datas are directly deposited in the method for volatile memory, when embedded system is worked, can waste the space of a large amount of volatile memory, and all configuration datas import volatile memory from nonvolatile memory, controller is searched required configuration data more one by one and is needed the more time in volatile memory, such method is seriously restricting whole system operation speed.
In order to address the above problem, label (tag) storing method has appearred at present, promptly at label of the preceding increase of each value (value), when importing configuration data in system like this, can discern required configuration data in regular turn according to label, but this kind method still exists a shortcoming, when switching on operation for the first time in system, microcontroller still needs all configuration datas are imported in the volatile memory together with its label, so that can search required configuration data in regular turn.Therefore, this kind method has still occupied the big quantity space of volatile memory to a great extent, and all configuration datas are still needed the more time from nonvolatile memory importing volatile memory.
[summary of the invention]
In view of this, be necessary to put forward a kind of method for utilization group label fast processing data in the embedded system.
A kind of method of processing data of embedded system comprises: a controller, a volatile memory and a nonvolatile memory are provided.The configuration data of this system is increased label and divides into groups, and a plurality of labels are made as one group, indicate one group of label, and are stored in this nonvolatile memory.Then, receiving system setting data.Search all the set of configuration data labels in this nonvolatile memory.Whether the group label of judging the system configuration data that default data and this search is consistent.If the two unanimity, then the configuration data that this is searched loads this volatile memory.And read configuration data in this volatile memory by this controller, finish the initialization of self, and then start working.
The method of described processing data of embedded system utilizes the mode import system configuration data of hunt group label, taking the volatibility storage space when effectively having reduced required time of system configuration and system's operate as normal.
[description of drawings]
Fig. 1 is the module map of embedded system in the embodiment of the present invention.
Fig. 2 is the storage mode table of data in nonvolatile memory in the embodiment of the present invention.
Fig. 3 is the workflow diagram of embedded system under reading mode in the embodiment of the present invention.
Fig. 4 is the workflow diagram of embedded system under WriteMode in the embodiment of the present invention.
[embodiment]
Consult Fig. 1, shown in be the module map of embedded system in the embodiment of the present invention, in the present embodiment, embedded system 10 comprise a controller 100, a volatile memory 102 and a nonvolatile memory 104 (Non-Volatile Random Access Memory, NVRAM).Controller 100 can be a CPU (central processing unit) (CPU), is used for all system configuration datas (configuration data) are stored in nonvolatile memory 104.When embedded system 10 operate as normal, configuration data is read in the volatile memory 102 from nonvolatile memory 104.In the present embodiment, volatile memory 102 can be a dynamic RAM (Dynamic Random-Access Memory, DRAM), or other can provide the storer of fast access.
Consult Fig. 2, be depicted as the storage mode table of data in nonvolatile memory 104 in the embodiment of the present invention.In the present embodiment, all configuration datas have not only added label before each value, and described label is divided into groups, and a plurality of labels are divided into one group, and each group data has one group of label (group tag).For example, as shown in FIG., the configuration data that stores in the nonvolatile memory 104 is native system 10 and network (Internet) ways of connecting, comprise Point-to-Point Protocol over Ethernet (Point to Point Protocol over Ethernet, PPPoE) mode and DHCP (Dynamic Host ConfigurationProtocol, DHCP) mode, then PPPoE is two different group labels with DHCP.With regard to the PPPoE connected mode, they data that comprise have title, password, the network of logining PPPoE to carry out data such as archives, are called 123 if system logins the name of PPPoE, and then 123 is concrete value, and title (name) then can be used as 123 label; The password of logining PPPoE is 456, then 456 are value, and password (password) is as 456 label, other data relevant with PPPoE all adopt aforesaid way to indicate corresponding label, described label is being associated under the PPPoE group label, and before embedded system work, is being stored in the nonvolatile memory 104.The DHCP related data also is like this.Promptly in the present embodiment, system configuration data comprises group label, label and value.
Consult Fig. 3, be depicted as the workflow diagram of embedded system under reading mode in the embodiment of the present invention.At first, provide an embedded system 10, this system comprises a controller 100, a volatile memory 102, a nonvolatile memory 104 (step S301).The configuration data of this system 10 is increased label and divides into groups, a plurality of labels are made as one group, indicate one group of label, and be stored in (step S303) in the nonvolatile memory 104.Then, receiving system setting data (step S305).Search all configuration datas that are stored in nonvolatile memory 104 (step S307).Judge the required configuration data of system whether consistent with the configuration data that searches (step S309), in the present embodiment, storing mode is as shown in Figure 2 in nonvolatile memory 104 for configuration data, it is stored in different blocks according to different group labels, so in step S309, only need judge that the group label that searches is whether consistent with system required configuration data.If the two unanimity, then will with the required consistent group label of system and the label that is associated with this group label and data with the form of pointer (Pointer) from nonvolatile memory 104 importing volatile memory 102 (step S311).Controller imports required system configuration data again from volatile memory 102, and then start working (step S313).In step S309, on the other hand,, then continue in nonvolatile memory 104, to search the group label of all the other configuration datas if the required configuration data of system is inconsistent with the group label of the configuration data that searches.
Consult the 4th figure, be depicted as the workflow diagram of embedded system under WriteMode in the embodiment of the present invention.Because embedded system in the use of reality, because of the continuous development of product technology, usually needs firmware is upgraded, and need write new data.In the present embodiment, the workflow of embedded system may further comprise the steps under the WriteMode: at first, after above-mentioned steps S313, embedded system 10 receiving system upgrade (step S401); Beginning receiving system configuration data (step S403); The group label of judging the configuration data receive whether with the group label of configuration data in the volatile memory 104 consistent (step S405); If the two is inconsistent, group label that then will receive and related data are stored in (step S407) in the nonvolatile memory 104.In step S405, if the group label of the configuration data that receives is consistent with the group label in the volatile memory 102, then system works on, and need not store the configuration data that receives.
Processing data of embedded system method provided by the present invention, the mode storage data of its utilization group label, taking the volatibility storage space when effectively having reduced required time of system configuration and system's operate as normal.

Claims (7)

1. the method for a processing data of embedded system is characterized in that comprising:
Controller, volatile memory and nonvolatile memory are provided;
The configuration data of this embedded system is increased label and divides into groups, and a plurality of labels are made as one group, sign group label, and be stored in this nonvolatile memory;
The receiving system setting data;
Search all the set of configuration data labels in this nonvolatile memory;
Judge whether these default data are consistent with the group label of this configuration data that searches;
If the two unanimity, then the configuration data that this is searched loads on this volatile memory; Or
If the two is inconsistent, then continue to search the configuration data in the nonvolatile memory; And
Read configuration data in this volatile memory by this controller, finish the initialization of self, and then start working.
2. the method for processing data of embedded system as claimed in claim 1 is characterized in that the step that this configuration data that searches loads on this volatile memory comprised this configuration data that searches is loaded into step in this volatile memory in the mode of pointer.
3. the method for processing data of embedded system as claimed in claim 1 is characterized in that more comprising the step of system's receiving system upgrade when operate as normal.
4. as the method for the processing data of embedded system as described in the claim 3, it is characterized in that more comprising the step of the configuration data when receiving upgrading.
5. the method for processing data of embedded system as claimed in claim 4 is characterized in that more comprising:
Whether the group label of judging the configuration data that this receives is consistent with the group label in current this volatile memory;
If the group label and the group label in the current volatile memory of configuration data are inconsistent, then this configuration data is stored in the different blocks of nonvolatile memory according to different group labels; Or
If the group label of configuration data is consistent with the group label in the current volatile memory, then this embedded system continues operate as normal.
6. the method for processing data of embedded system as claimed in claim 1 is characterized in that this volatile memory is a dynamic RAM.
7. the method for processing data of embedded system as claimed in claim 1 is characterized in that this controller is a central processing unit.
CNB2005101017602A 2005-11-23 2005-11-23 Method for processing data of embedded system Expired - Fee Related CN100426230C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101017602A CN100426230C (en) 2005-11-23 2005-11-23 Method for processing data of embedded system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101017602A CN100426230C (en) 2005-11-23 2005-11-23 Method for processing data of embedded system

Publications (2)

Publication Number Publication Date
CN1971512A CN1971512A (en) 2007-05-30
CN100426230C true CN100426230C (en) 2008-10-15

Family

ID=38112352

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101017602A Expired - Fee Related CN100426230C (en) 2005-11-23 2005-11-23 Method for processing data of embedded system

Country Status (1)

Country Link
CN (1) CN100426230C (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0816481A (en) * 1994-06-30 1996-01-19 Nec Field Service Ltd Information protection system for external storage medium
US5640608A (en) * 1993-12-28 1997-06-17 International Business Machines Corporation System and method for block generation of monotonic globally unique tag values, where restart tag value due to failure starts at highest value of previously generated tag values
US20050195635A1 (en) * 2004-03-08 2005-09-08 Conley Kevin M. Flash controller cache architecture

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5640608A (en) * 1993-12-28 1997-06-17 International Business Machines Corporation System and method for block generation of monotonic globally unique tag values, where restart tag value due to failure starts at highest value of previously generated tag values
JPH0816481A (en) * 1994-06-30 1996-01-19 Nec Field Service Ltd Information protection system for external storage medium
US20050195635A1 (en) * 2004-03-08 2005-09-08 Conley Kevin M. Flash controller cache architecture

Also Published As

Publication number Publication date
CN1971512A (en) 2007-05-30

Similar Documents

Publication Publication Date Title
US8185688B2 (en) Method for managing the address mapping table in a flash memory
CN106354615B (en) Solid state disk log generation method and device
CN101258467B (en) Method and device for preboot of a computer system
CN100367306C (en) Nonvolatile memory card
CN100458699C (en) Method and system for updating fastener
CN100458736C (en) NAND flash information extraction method and NAND flash automatic identification method
CN108710578A (en) Date storage method based on flash memory and device
CN110175001A (en) A kind of NOR-FLASH date storage method, computer equipment and storage medium
CN101571832B (en) Data writing method, quick flashing memory system using same and a controller thereof
CN101986649B (en) Shared data center used in telecommunication industry billing system
CN102792285A (en) Hierarchical translation tables control
WO2007066326A3 (en) Method for flash-memory management
CN101625897B (en) Data write-in method, storage system and controller used for quick flash memory
CN106445398A (en) Novel memory-based embedded file system and realization method thereof
AU774735B2 (en) A method and apparatus for reducing ram size while maintaining fast data access
CN103778120A (en) Global file identification generation method, generation device and corresponding distributed file system
CN106528441B (en) Data processing method and device for simulating EEPROM (electrically erasable programmable read-Only memory) and electronic equipment
US20110004719A1 (en) Memory Element
CN101430685A (en) Downloading method and system
CN104090986B (en) A kind of wireless control tank position control method, access device and wireless controller
US20030056141A1 (en) Control method used in and-gate type system to increase efficiency and lengthen lifetime of use
CN101944011A (en) Device, chip and method for running program
CN100426230C (en) Method for processing data of embedded system
CN101131649A (en) Updating speed improving method for read-only memory of device with flash memory
CN101739272A (en) Electronic device, and method and system for starting basic input-output system

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20081015

Termination date: 20211123

CF01 Termination of patent right due to non-payment of annual fee