CN101515259A - Inserted device configuring data protecting method - Google Patents
Inserted device configuring data protecting method Download PDFInfo
- Publication number
- CN101515259A CN101515259A CNA200910096989XA CN200910096989A CN101515259A CN 101515259 A CN101515259 A CN 101515259A CN A200910096989X A CNA200910096989X A CN A200910096989XA CN 200910096989 A CN200910096989 A CN 200910096989A CN 101515259 A CN101515259 A CN 101515259A
- Authority
- CN
- China
- Prior art keywords
- data
- configuration
- read
- verification
- finish
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
- Read Only Memory (AREA)
Abstract
The invention discloses an inserted device configuring data protecting method, comprising the following steps: adopting the FLASH partition to store the configuring data, using the double configuring area and the default configuring area to store the special configuring data, using accurate configuring data by checking the correctness of the configuring data, restoring the data reading process of the configuring data in the error configuring area, and using the method for refreshing the data writing process in the double configuring area one by one in the using the refreshed configuring data to guarantee the integrity and the recoverability of the inserted device configuring data.
Description
Technical field
The present invention relates to a kind of data guard method, relate in particular to configuration data the data integrity guard method under powered-off fault situation of a kind of FLASH of use as the embedded device of storer.
Background technology
At present, embedded device uses FLASH as configuration data memory usually, and the configuration of equipment and some significant datas all are kept in the FLASH.Equipment in use, configuration data will be upgraded or revise to the operation of program and user operation, at this moment need promptly refresh the data that FLASH stores at FLASH with new data replacement legacy data.Because the refresh operation of FLASH need empty storage block earlier, and then in this storage block, write data, in case the powered-off fault situation in the refresh operation process, occurs, to cause configuration data to be cleared or serious consequence such as data are imperfect, equipment can't load configuration data and normally start next time.
Summary of the invention
For technical matterss such as solving the configuration data that powered-off fault causes in the existing FLASH refresh operation process and empty, imperfect; the invention provides a kind of inserted device configuring data protecting method; this guard method can not only effectively guarantee the integrality that configuration data is preserved; even if occur unusually also guaranteeing the data restorability, also can obtain the equipment default configuration under the extreme case and guarantee that equipment can normally start.
The technical solution adopted for the present invention to solve the technical problems is: a kind of inserted device configuring data protecting method, embedded device use FLASH as configuration data memory, and the FLASH storer is divided into the program area, configuration one and configuration two; This method comprises to be read the configuration operation process and writes the configuration operation process, and wherein, the described configuration operation process of reading may further comprise the steps:
(1) behind the device start, data are disposed in the beginning verification, and two data are disposed in the normal back verification of verification, dispose two verifications and read configuration one data after normal, read to read configuration operation after finishing and finish;
(2) when two mistakes are disposed in verification configuration one correct back verification, take out the data of the data recovery configuring two of configuration one earlier, normal recover to finish after, read configuration one data, read and read configuration operation after finishing and finish;
(3) when verification configuration one failure, two data are disposed in verification, if it is correct to dispose two data, take out the data of the data recovery configuring one of configuration two, normal recover to finish after, read configuration one data, read and read configuration operation after finishing and finish;
(4) when verification configuration one failure, two data are disposed in verification, if dispose two data failures, read configuration operation after the default configuration of taking out the program area reads and finishes and finish;
The described configuration operation process of writing is specially: write configuration data during equipment work, first refresh configuration one data, after waiting configuration one data manipulation finishing, refresh configuration two data, wait configuration two data manipulations to finish after, write configuration operation and finish.
The invention has the beneficial effects as follows that method of the present invention guarantees that the interior configuration data of the FLASH storer of embedded device is complete, and error data can recover.This method operating process is simple, is easy to management.
Description of drawings
Fig. 1 is an operational flowchart of the present invention.
Embodiment
Because the FLASH storer adopts the piecemeal mode of operation, in one of them blocks of data of operation, can not have influence on the content of other blocks of data, and FLASH can be under the pattern of read data to piece in data exert an influence, under the pattern of write data, when being the refresh data operation, can empty data, overwriting data again in the piece earlier.Therefore FLASH is divided into 3 storage areas: program area, configuration one and dispose two.The program area is a reading mode, wherein a part of default configuration of having preserved equipment, owing to guarantee that data are not rewritten, this default configuration can guarantee its integrity.Configuration one and configuration two are preserved and operating area as the current configuration data of equipment, and in operating process, synchronization guarantees to have only a configuring area to be refreshed.Fetch equipment configuration behind device start, if the correctness of first verification configuration one and configuration two all correct, is then worked after obtaining system configuration from disposing one; If wherein some configuring area verifications make mistakes, then earlier obtain proper configuration from the proper configuration district, the configuring area of mistake is refreshed, write proper configuration, work after obtaining system configuration from disposing one then; If two configuring area all verification are made mistakes, then obtain default configuration from the program area, write configuration one and configuration two again, and use default configuration work.In equipment running process, need refresh configuration district data, then need to dispose one earlier and refresh, confirm the data of errorless back refresh configuration two, after assurance is correct, upgrades operation and just finish.Even if in the refresh operation process abnormal power-down takes place like this, also can guarantee to dispose one and configuration to have a configuration data at least in two be complete, thereby can obtain the proper configuration data when guaranteeing device start.Even if extreme case occurs, configuration one and configuration two data are all damaged, and system also can obtain the default configuration data from the default configuration of program area, the normal startup.
The FLASH storer adopts the piecemeal mode of operation, in one of them blocks of data of operation, can not have influence on the content of other blocks of data, and FLASH can be under the pattern of read data to piece in data exert an influence, only under the pattern of write data, when being the refresh data operation, can empty data, overwriting data again in the piece earlier.Therefore the abnormal power-down in the WriteMode process may cause in the current operating block data because of not writing the complete damage that causes the data field.The FLASH storer is divided into the program area, configuration one and configuration two, in program, the program area is changed to a reading mode, configuration one and configuration two preservation positions as configuration data of device, synchronization guarantees to have only a piece to be refreshed operation, thereby guarantee that in the whole FLASH storer, it is intact having a configuring area at least.Even if extreme case occurs, configuration one and configuration two data all are damaged, and still can obtain the default configuration that prestores in the program area, create the configuring area data again after the normal startup of assurance system.
Further specify the present invention below in conjunction with drawings and Examples, it is more obvious that purpose of the present invention and effect will become.
As shown in Figure 1, embedded device uses FLASH as configuration data memory, and the FLASH storer is divided into the program area, configuration one and configuration two, and method of the present invention is read configuration operation and is write configuration operation, wherein, reads configuration operation and may further comprise the steps:
1, behind the device start, data are disposed in the beginning verification, and two data are disposed in the normal back verification of verification, dispose two verifications and read configuration one data after normal, read to read configuration operation after finishing and finish.
2, when two mistakes are disposed in verification configuration one correct back verification, take out the data of the data recovery configuring two of configuration one earlier, normal recover to finish after, read configuration one data, read and read configuration operation after finishing and finish.
3, when verification configuration one failure, two data are disposed in verification, if it is correct to dispose two data, take out the data of the data recovery configuring one of configuration two, normal recover to finish after, read configuration one data, read and read configuration operation after finishing and finish.
4, when verification configuration one failure, two data are disposed in verification, if dispose two data failures, read configuration operation after the default configuration of taking out the program area reads and finishes and finish.
Writing configuration operation is specially: write configuration data during equipment work, first refresh configuration one data, after waiting configuration one data manipulation finishing, refresh configuration two data, wait configuration two data manipulations to finish after, write configuration operation and finish.
The present invention adopts the FLASH piecemeal to preserve configuration data, use two configuring area and default configuration district to preserve particular configuration data, by verification configuration data correctness, use the proper configuration data, and the reading data course of the configuration data in recovery error configurations district, the method of the write data process that two configuring area refresh one by one during with use refresh configuration data, the integrality and the restorability of assurance embedded device configuration data.
Claims (1)
1, a kind of inserted device configuring data protecting method, embedded device use FLASH as configuration data memory, and the FLASH storer is divided into the program area, configuration one and configuration two; It is characterized in that this method comprises to be read the configuration operation process and write the configuration operation process.Wherein, the described configuration operation process of reading may further comprise the steps:
(1) behind the device start, data are disposed in the beginning verification, and two data are disposed in the normal back verification of verification, dispose two verifications and read configuration one data after normal, read to read configuration operation after finishing and finish.
(2) when two mistakes are disposed in verification configuration one correct back verification, take out the data of the data recovery configuring two of configuration one earlier, normal recover to finish after, read configuration one data, read and read configuration operation after finishing and finish.
(3) when verification configuration one failure, two data are disposed in verification, if it is correct to dispose two data, take out the data of the data recovery configuring one of configuration two, normal recover to finish after, read configuration one data, read and read configuration operation after finishing and finish.
(4) when verification configuration one failure, two data are disposed in verification, if dispose two data failures, read configuration operation after the default configuration of taking out the program area reads and finishes and finish.
The described configuration operation process of writing is specially: write configuration data during equipment work, first refresh configuration one data, after waiting configuration one data manipulation finishing, refresh configuration two data, wait configuration two data manipulations to finish after, write configuration operation and finish.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910096989 CN101515259B (en) | 2009-03-26 | 2009-03-26 | Inserted device configuring data protecting method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910096989 CN101515259B (en) | 2009-03-26 | 2009-03-26 | Inserted device configuring data protecting method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101515259A true CN101515259A (en) | 2009-08-26 |
CN101515259B CN101515259B (en) | 2011-05-25 |
Family
ID=41039720
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200910096989 Expired - Fee Related CN101515259B (en) | 2009-03-26 | 2009-03-26 | Inserted device configuring data protecting method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101515259B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102271057A (en) * | 2011-08-02 | 2011-12-07 | 大唐移动通信设备有限公司 | Parameter updating method and equipment |
CN103365766A (en) * | 2012-03-31 | 2013-10-23 | 京信通信系统(中国)有限公司 | Method and system for protecting file integrity |
CN104156279A (en) * | 2014-08-04 | 2014-11-19 | 上海斐讯数据通信技术有限公司 | Backup method for configuration data of router |
CN106484567A (en) * | 2016-09-29 | 2017-03-08 | 深圳创维数字技术有限公司 | A kind of using method of flash data backup and system |
CN110955615A (en) * | 2019-10-23 | 2020-04-03 | 武汉光庭信息技术股份有限公司 | TBox internal data protection method and system |
CN111259459A (en) * | 2020-02-20 | 2020-06-09 | 福建师范大学 | Deployment, storage, acquisition and arbitration method for important data in mobile terminal |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100590606C (en) * | 2005-12-14 | 2010-02-17 | 兆日科技(深圳)有限公司 | Data completeness protection method of flash storage |
CN100543706C (en) * | 2006-05-25 | 2009-09-23 | 中兴通讯股份有限公司 | A kind of method that realizes the FLASH chip data security |
CN101170435B (en) * | 2007-09-20 | 2010-06-09 | 中兴通讯股份有限公司 | A method for solving non-symmetric digital user line Modem software loss |
-
2009
- 2009-03-26 CN CN 200910096989 patent/CN101515259B/en not_active Expired - Fee Related
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102271057A (en) * | 2011-08-02 | 2011-12-07 | 大唐移动通信设备有限公司 | Parameter updating method and equipment |
CN102271057B (en) * | 2011-08-02 | 2015-08-05 | 大唐移动通信设备有限公司 | Parameter updating method and equipment |
CN103365766A (en) * | 2012-03-31 | 2013-10-23 | 京信通信系统(中国)有限公司 | Method and system for protecting file integrity |
CN103365766B (en) * | 2012-03-31 | 2016-01-27 | 京信通信系统(中国)有限公司 | A kind of method and system of file integrality protection |
CN104156279A (en) * | 2014-08-04 | 2014-11-19 | 上海斐讯数据通信技术有限公司 | Backup method for configuration data of router |
CN104156279B (en) * | 2014-08-04 | 2018-10-12 | 上海斐讯数据通信技术有限公司 | A kind of backup method of router configuration data |
CN106484567A (en) * | 2016-09-29 | 2017-03-08 | 深圳创维数字技术有限公司 | A kind of using method of flash data backup and system |
CN110955615A (en) * | 2019-10-23 | 2020-04-03 | 武汉光庭信息技术股份有限公司 | TBox internal data protection method and system |
CN110955615B (en) * | 2019-10-23 | 2021-11-09 | 武汉光庭信息技术股份有限公司 | TBox internal data protection method and system |
CN111259459A (en) * | 2020-02-20 | 2020-06-09 | 福建师范大学 | Deployment, storage, acquisition and arbitration method for important data in mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN101515259B (en) | 2011-05-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101515259B (en) | Inserted device configuring data protecting method | |
CN102890657B (en) | The method that the reading and writing data of a kind of EEPROM of minimizing is made mistakes | |
US8078908B2 (en) | Data storage device and method | |
CN100590606C (en) | Data completeness protection method of flash storage | |
US7441085B2 (en) | Memory control method for restoring data in a cache memory | |
CN103914407B (en) | A kind of SD card power down protection, restoration methods and the SD card with power down protection | |
CN101782875B (en) | Storage unit and data storage method | |
CN102508686A (en) | Method and system for realizing safe upgrading of system | |
CN101903866A (en) | Method and system for storage of data in non-volatile media | |
CN102024502B (en) | Flash device testing method and device as well as board and network equipment | |
CN104133740A (en) | Method for recovering abnormal power failure data | |
CN101593083A (en) | Device, computing machine and method that computer profile is protected and recovered | |
CN108874582A (en) | A kind of system recovery method, device and terminal | |
CN103425549A (en) | Firmware managing method and system of embedded controller | |
CN105718330A (en) | Linux system backup data recovery method and device | |
CN102890647A (en) | Method and device for storing and updating data | |
CN103049407B (en) | Date storage method, Apparatus and system | |
CN101551772A (en) | Method and apparatus for recording abnormal information of embedded communications equipment | |
CN107066361A (en) | The method and apparatus that a kind of utilization BMC disables corrupted internal memory | |
CN104850511A (en) | Disk drive and data save method | |
CN106875977A (en) | A kind of solid state hard disc adjustment method and device | |
CN101599032A (en) | Storage node management method, control subsystem and storage system | |
CN110134545A (en) | The method and system of the virtual NVRAM of offer based on credible performing environment | |
CN101694636B (en) | Updating backup system and method for data of nonvolatile data memory | |
US9594792B2 (en) | Multiple processor 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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20110525 Termination date: 20200326 |