CN102346713A - Method for realizing compact save of system configuration in embedded system - Google Patents
Method for realizing compact save of system configuration in embedded system Download PDFInfo
- Publication number
- CN102346713A CN102346713A CN2011102796017A CN201110279601A CN102346713A CN 102346713 A CN102346713 A CN 102346713A CN 2011102796017 A CN2011102796017 A CN 2011102796017A CN 201110279601 A CN201110279601 A CN 201110279601A CN 102346713 A CN102346713 A CN 102346713A
- Authority
- CN
- China
- Prior art keywords
- configuration
- embedded system
- default
- conservation zone
- embedded
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention relates to a method for realizing compact save of system configuration in an embedded system. A memory of application equipment in the embedded system comprises a set configuration save region, a default configuration save region and a memory configuration region. The method comprises configuration reading operation and configuration saving operation, wherein in the configuration reading operation, the default system configuration in the default configuration saving region is read to the memory configuration region; the system configuration in the set configuration saving region is read to the memory configuration region to obtain traditional configuration information of the embedded system; and the configuration is subjected to saving operation, different contents in the memory configuration region and the default configuration saving region are accessed into the set configuration saving region. Therefore, repeated saving for the system configuration is completely avoided, the requirement for a memory space is lower and the problem that the memory space is wasted in the prior art is overcome; in addition, the method for realizing compact save of the system configuration in the embedded system has the advantages of low realizing cost, simple and convenient application mode and wider application range.
Description
Technical field
The present invention relates to the embedded system technology field, the particularly configuration store method technical field in the embedded system specifically is meant and realizes in a kind of embedded system that system configuration simplifies the method for preservation.
Background technology
In embedded system, generally all can there be some system configuration to preserve.These configurations mostly are kept at the storer that is difficult for mistake, in the FLASH flash memory.Common way is to be kept at a certain position of FLASH after the configuration compression in the existing embedded system.Though present compression algorithm is all relatively good, the configuration information big or small such as 1M possibly need the FLASH of 128K to preserve.But concerning embedded system, required shelf space is still bigger, in addition the space that can further optimize.
In the prior art, can in FLASH, mark a zone (configuration conservation zone) and be used for compressing the configuration that preservation is being used.For the resuming default setting, embedded system has been preserved a default setting a default configuration conservation zone toward contact.As, in FLASH, mark a configuration conservation zone and compress the preservation file system, in file system, preserve a default configuration again.System all uses the configuration information in the memory configurations district in operational process, and the configuration information in the memory configurations district is the copy of data in the configuration conservation zone.When preserving, the data compression in memory configurations district is saved in the configuration conservation zone.Resuming default setting if desired is just the data in the configuration conservation zone of the covering of the default configuration in file system FLASH.
The shortcoming of such store method is that the space requirement of the configuration conservation zone among the FLASH is bigger, and the content of configuration in the conservation zone largely with the default configuration conservation zone in content repeat, cause the waste of storage space.
Summary of the invention
The objective of the invention is to have overcome above-mentioned shortcoming of the prior art; Provide a kind of avoid in storer for system configuration repeat preserve; Thereby effectively reduce system configuration and preserve needed space; Reduce the requirement of the storage space of embedded system application device; And realize with low cost; Application mode is easy, and range of application realizes that comparatively widely system configuration simplifies the method for preservation in the embedded system.
The realization system configuration is simplified in the method for preservation in embedded system of the present invention; Has application apparatus in the described embedded system; Comprise storer in this application apparatus; Described storer comprises sets configuration conservation zone, default configuration conservation zone and memory configurations district, and the default system configuration store that described embedded system had is in described default configuration conservation zone.
In embedded system commonly used, the place that is modified in the configuration is often fewer, and the overwhelming majority can not be modified to.That is to say that need be saved in the data of setting in the configuration conservation zone has only a part seldom different with the default configuration conservation zone.Like this, just can be when preserving the configuration conservation zone, only that this part is different configurations is saved in the setting configuration conservation zone just passable.In system start-up, earlier the data in the default configuration conservation zone are copied to the memory configurations district, the data of setting the correspondence in the data division covering memory configuring area different in the configuration conservation zone, just obtained the current configuration that will use again.Like this, set the configuration conservation zone and just can use very little space.Thereby reach the purpose of practicing thrift system memory space.
In order to realize above-mentioned purpose, this system configuration is simplified store method and is comprised configuration read operation and configuration preservation operation.Wherein, described configuration read operation may further comprise the steps:
(11) user starts embedding system application device;
(12) embedded system reads to described memory configurations district with the described default system configuration that is stored in the default configuration conservation zone;
(13) embedded system judges whether described setting configuration conservation zone is empty, if, then get into step (15), if not, then get into step (14);
(14) embedded system reads to described memory configurations district with the described system configuration of setting the configuration conservation zone that is stored in, and covers the corresponding information in original default system configuration;
(15) the described embedding system application device of configuration operation in the described embedded system application memory configuring area;
Described configuration is preserved operation and may further comprise the steps:
(31) content in embedded system more described memory configurations district and the described default configuration conservation zone deposits wherein different contents in described setting configuration conservation zone.
The realization system configuration is simplified in the method for preservation in this embedded system, and described configuration is preserved in the operation further comprising the steps of before in described step (31):
(30) embedded system receives according to user's operation and preserves configuration-direct or shutdown command.
The realization system configuration is simplified in the method for preservation in this embedded system, and described method also comprises the configuration read operation and dispose the configuration settings of preserving between the operation and operate that described configuration settings operation may further comprise the steps:
(21) user carries out the embedded system configuration modification through described application apparatus;
(22) embedded system deposits the configuration of being revised in described memory configurations district, and covers the corresponding information in original configuration.
Adopted and realized in the embedded system of this invention that system configuration simplifies the method for preservation; Owing to comprise in the storer of its application apparatus and set configuration conservation zone and default configuration conservation zone; And configuration modification information stores that only will be different with default configuration information is in described default configuration conservation zone; Thereby avoided the preservation that repeats fully for system configuration; Require lessly for the storage space of the application apparatus of embedded system, overcome the problem of waste of storage space in the prior art.When being written into configuration, only need read default configuration earlier, read again and set configuration, can accomplish.Therefore, realize in the embedded system of the present invention that system configuration simplifies the method for preservation and realize with low costly, application mode is easy, and range of application is comparatively extensive.
Description of drawings
Fig. 1 simplifies the process flow diagram of the configuration read operation of the method for preservation for realization system configuration in the embedded system of the present invention.
Fig. 2 simplifies the configuration of the method for preservation and preserves the process flow diagram of operation for realizing system configuration in the embedded system of the present invention.
Fig. 3 simplifies the process flow diagram that the configuration settings of the method for preservation is operated for realizing system configuration in the embedded system of the present invention.
Fig. 4 simplifies the schematic flow sheet of method in practical application of preservation for realizing system configuration in the embedded system of the present invention.
Embodiment
In order more to be expressly understood technology contents of the present invention, the special following examples of lifting describe in detail.
In one embodiment; Realize in the embedded system of the present invention that system configuration simplifies the embedded system described in the method for preservation and have application apparatus; Comprise storer in this application apparatus; Described storer comprises sets configuration conservation zone, default configuration conservation zone and memory configurations district, and the default system configuration store that described embedded system had is in described default configuration conservation zone.Described system configuration is simplified store method and is comprised configuration read operation and configuration preservation operation.
Wherein, described configuration read operation may further comprise the steps as shown in Figure 1:
(11) user starts embedding system application device;
(12) embedded system reads to described memory configurations district with the described default system configuration that is stored in the default configuration conservation zone;
(13) embedded system judges whether described setting configuration conservation zone is empty, if, then get into step (15), if not, then get into step (14);
(14) embedded system reads to described memory configurations district with the described system configuration of setting the configuration conservation zone that is stored in, and covers the corresponding information in original default system configuration;
(15) the described embedding system application device of configuration operation in the described embedded system application memory configuring area;
Described configuration is preserved operation and may further comprise the steps as shown in Figure 2:
(31) content in embedded system more described memory configurations district and the described default configuration conservation zone deposits wherein different contents in described setting configuration conservation zone.
In a kind of more preferably embodiment, described configuration is preserved operation as shown in Figure 2, in further comprising the steps of before in described step (31):
(30) embedded system receives according to user's operation and preserves configuration-direct or shutdown command.
In a kind of preferred embodiment, described method also comprises the configuration settings operation between configuration read operation and the configuration preservation operation, and described configuration settings operation as shown in Figure 3, may further comprise the steps:
(21) user carries out the embedded system configuration modification through described application apparatus;
(22) embedded system deposits the configuration of being revised in described memory configurations district, and covers the corresponding information in original configuration.
In an application of the invention, adopt system configuration of the present invention to simplify the embedded system of store method, it adopts following steps in starting for the first time and starting the non-first time:
One, system starts for the first time.
(1) system start-up;
(2) it is empty setting the configuration conservation zone this moment, and system uses the data of default configuration conservation zone to copy to the memory configurations district;
(3) user's modification configuration, configuration is placed on the memory configurations district earlier, and this step can repeat;
When (4) user preserved configuration, system was saved in different portions in memory configurations district and the default configuration conservation zone and sets the configuration conservation zone, and this operation can repeat;
(5) system restarts.
Two, system starts the non-first time.
(1) system start-up;
(2) it is not empty setting the configuration conservation zone this moment; System copies to the memory configurations district with the data in the default configuration conservation zone earlier; To set the data of the correspondence in the data division covering memory configuring area different in the configuration conservation zone again, just obtain the configuration data that used before the system closedown last time.
As shown in Figure 4, method of the present invention can be taked following steps in practical application:
(1) user starts embedding system application device;
(2) described application apparatus judges that whether set the configuration conservation zone is empty, for sky jumps to step (3), does not jump to step (4) for sky;
(3) described application apparatus operation embedded OS uses the data of default configuration conservation zone to copy to the memory configurations district, and brings into use the configuration operation in the internal memory, system to jump to step (6);
(4) embedded OS of described application apparatus copies to the memory configurations district to the data in the default configuration conservation zone;
(5) embedded OS of described application apparatus will be set the data of the correspondence in the data division covering memory configuring area different in the configuration conservation zone; The data of using before the system closedown last time have been obtained; And bringing into use the configuration operation in memory configurations district, system jumps to step (6);
(6) described application apparatus operation embedded OS uses the configuration operation in the memory configurations district, and system operates according to the user and gets into step (7) or (9) or (11);
(7) user revises configuration through user interface;
(8) embedded OS of described application apparatus is placed on the memory configurations district to the configuration of revising, and system jumps to step (6);
(9) user preserves configuration operation through user interface;
(10) embedded OS of described application apparatus is saved in different portions in memory configurations district and the default configuration conservation zone and sets the configuration conservation zone, and system jumps to step (6);
(11) embedded OS of described application apparatus shutdown.
Adopted and realized in the embedded system of this invention that system configuration simplifies the method for preservation; Owing to comprise in the storer of its application apparatus and set configuration conservation zone and default configuration conservation zone; And configuration modification information stores that only will be different with default configuration information is in described default configuration conservation zone; Thereby avoided the preservation that repeats fully for system configuration; Require lessly for the storage space of the application apparatus of embedded system, overcome the problem of waste of storage space in the prior art.When being written into configuration, only need read default configuration earlier, read again and set configuration, can accomplish.Therefore, realize in the embedded system of the present invention that system configuration simplifies the method for preservation and realize with low costly, application mode is easy, and range of application is comparatively extensive.
In this instructions, the present invention is described with reference to its certain embodiments.But, still can make various modifications and conversion obviously and not deviate from the spirit and scope of the present invention.Therefore, instructions and accompanying drawing are regarded in an illustrative, rather than a restrictive.
Claims (3)
1. realize in the embedded system that system configuration simplifies the method for preservation; It is characterized in that; Has application apparatus in the described embedded system; Comprise storer in this application apparatus; Described storer comprises sets configuration conservation zone, default configuration conservation zone and memory configurations district; The default system configuration store that described embedded system had is in described default configuration conservation zone; Described system configuration is simplified store method and is comprised configuration read operation and configuration preservation operation, and described configuration read operation may further comprise the steps:
(11) user starts embedding system application device;
(12) embedded system reads to described memory configurations district with the described default system configuration that is stored in the default configuration conservation zone;
(13) embedded system judges whether described setting configuration conservation zone is empty, if, then get into step (15), if not, then get into step (14);
(14) embedded system reads to described memory configurations district with the described system configuration of setting the configuration conservation zone that is stored in, and covers the corresponding information in original default system configuration;
(15) the described embedding system application device of configuration operation in the described embedded system application memory configuring area;
Described configuration is preserved operation and may further comprise the steps:
(31) content in embedded system more described memory configurations district and the described default configuration conservation zone deposits wherein different contents in described setting configuration conservation zone.
2. the realization system configuration is simplified the method for preservation in the embedded system according to claim 1, it is characterized in that, described configuration is preserved in the operation further comprising the steps of before in described step (31):
(30) embedded system receives according to user's operation and preserves configuration-direct or shutdown command.
3. the realization system configuration is simplified the method for preservation in the embedded system according to claim 1 and 2; It is characterized in that; Described method also comprises the configuration settings operation between configuration read operation and the configuration preservation operation, and described configuration settings operation may further comprise the steps:
(21) user carries out the embedded system configuration modification through described application apparatus;
(22) embedded system deposits the configuration of being revised in described memory configurations district, and covers the corresponding information in original configuration.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011102796017A CN102346713A (en) | 2011-09-20 | 2011-09-20 | Method for realizing compact save of system configuration in embedded system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011102796017A CN102346713A (en) | 2011-09-20 | 2011-09-20 | Method for realizing compact save of system configuration in embedded system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102346713A true CN102346713A (en) | 2012-02-08 |
Family
ID=45545405
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011102796017A Pending CN102346713A (en) | 2011-09-20 | 2011-09-20 | Method for realizing compact save of system configuration in embedded system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102346713A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102662819A (en) * | 2012-05-08 | 2012-09-12 | 太仓市同维电子有限公司 | Node addition and configuration automatic monitoring method and embedded system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7007036B2 (en) * | 2002-03-28 | 2006-02-28 | Lsi Logic Corporation | Method and apparatus for embedding configuration data |
CN1900908A (en) * | 2005-07-21 | 2007-01-24 | 鸿富锦精密工业(深圳)有限公司 | Computer quick start system and method |
CN101763279A (en) * | 2010-01-15 | 2010-06-30 | 上海维宏电子科技有限公司 | BootLoader architectural design method |
-
2011
- 2011-09-20 CN CN2011102796017A patent/CN102346713A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7007036B2 (en) * | 2002-03-28 | 2006-02-28 | Lsi Logic Corporation | Method and apparatus for embedding configuration data |
CN1900908A (en) * | 2005-07-21 | 2007-01-24 | 鸿富锦精密工业(深圳)有限公司 | Computer quick start system and method |
CN101763279A (en) * | 2010-01-15 | 2010-06-30 | 上海维宏电子科技有限公司 | BootLoader architectural design method |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102662819A (en) * | 2012-05-08 | 2012-09-12 | 太仓市同维电子有限公司 | Node addition and configuration automatic monitoring method and embedded system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8782018B2 (en) | Storage device and data processing device utilizing determined dictionary compression | |
EP1926022B1 (en) | Apparatus and method for efficient memory use in portable terminal | |
CN101526923A (en) | Data processing method, device thereof and flash-memory storage system | |
CN105138362B (en) | The method and device of user configuration is preserved under a kind of Linux system | |
CN102761540A (en) | Data compression method, device and system and server | |
CN101969502A (en) | Mobile terminal service recovering method and mobile terminal | |
EP2472996B1 (en) | Method and system for operating telephone directory | |
CN101398807B (en) | Method and device for decompressing mobile terminal zip file | |
CN101706783A (en) | Method and device for checking and repairing files in embedded equipment | |
CN105094709A (en) | Dynamic data compression method for solid-state disc storage system | |
CN110069215B (en) | Method and device for dynamically adjusting storage unit based on block storage | |
CN110908608A (en) | Storage space saving method and system | |
CN105205142A (en) | Method, device and mobile terminal for saving log file | |
JP2005222534A (en) | Data management apparatus and method used for flash memory | |
EP2512190B1 (en) | Mobile terminal and sleep method in mbbms module of mobile terminal | |
CN102346713A (en) | Method for realizing compact save of system configuration in embedded system | |
CN101373436B (en) | Method for automatically compressing and de-compressing data on U disk | |
CN105528425A (en) | Method of implementing asynchronous data storage based on files in cloud computing environment | |
CN102792296B (en) | Demand paging method, controller and mobile terminal in mobile terminal | |
CN101807212A (en) | Caching method for embedded file system and embedded file system | |
CN102200919B (en) | Method and device for starting operation of embedded operation system | |
CN102117328B (en) | Recording data rapid storage method in Android system | |
CN103905694A (en) | Key frame processing method and system | |
CN101938594A (en) | Volume saving method for digital television set top box | |
CN202134001U (en) | Executable file backup device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20120208 |