CN101287212A - Data storing method for mobile terminal - Google Patents

Data storing method for mobile terminal Download PDF

Info

Publication number
CN101287212A
CN101287212A CNA2008100947665A CN200810094766A CN101287212A CN 101287212 A CN101287212 A CN 101287212A CN A2008100947665 A CNA2008100947665 A CN A2008100947665A CN 200810094766 A CN200810094766 A CN 200810094766A CN 101287212 A CN101287212 A CN 101287212A
Authority
CN
China
Prior art keywords
data
read
described data
memory cell
storage method
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
Application number
CNA2008100947665A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNA2008100947665A priority Critical patent/CN101287212A/en
Publication of CN101287212A publication Critical patent/CN101287212A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a data storage method which is used in a mobile system and comprises the steps as follows: the data to be stored are coded according to a preset format; the coded data are written in two different memory cells of a memory chip of a mobile terminal in two times. The data storage method of the invention promotes the reliability of the system.

Description

The date storage method that is used for portable terminal
Technical field
The present invention relates to the communications field, in particular to a kind of date storage method that is used for portable terminal.
Background technology
Through the development of decades, embedded system is ubiquitous, and is especially apparent in its importance of some special dimensions.True and reliable data then are the bases of the normal operation of embedded system.Some significant data often all is saved in the independent storage chip in the embedded system, and system the time need carry out the reading of data revised and storage on storage chip in work.The useful life of storage chip is all by the read-write number of times.
Now common way all is directly significant data not to be saved in fixed position in the storage chip with not adding any protection, increases reliability protection in the driver that chip is read and write and when data are used again.But these safeguard measures all are very limited, only can guarantee the correctness of the execution flow process the when reliability of the process of reading and writing and application program are used these data.But the useful life of chip, these fixed positions were taken place to wear out or lost efficacy after the read-write chronically probably by the read-write number of times.In case this situation takes place, even driver is very reliable, the application program fault-tolerance is very strong, the system that can not realize is to the reading, revise of storage data, and storage, and the work of system is also just without any meaning so.
Existing memory space is divided as shown in Figure 1, and data store in the storage chip simply in order, all operates identical memory cell during each operating data A.
In realizing process of the present invention, the inventor finds that there are the following problems at least in the prior art: in present date storage method, the read-write frequency of identical memory cell has caused the shortening in storage chip useful life than higher.
Summary of the invention
The present invention aims to provide a kind of date storage method that is used for portable terminal, to solve the problem of storage chip shortening in useful life.
In an embodiment of the present invention, provide a kind of date storage method that is used for mobile system, comprised the steps: the data that will store are encoded according to default form; Data behind the coding are write at twice two different memory cell of the storage chip of portable terminal.
Preferably, at the above-mentioned date storage method that is used for mobile system, coding adopts simple parity check method or summation.
Preferably, at the above-mentioned date storage method that is used for mobile system, add check field by being encoded to described data.
Preferably, the above-mentioned date storage method that is used for mobile system also comprises: when the described data of having stored are read, read the data of same memory cell at every turn.
Preferably, the above-mentioned date storage method that is used for mobile system also comprises: by the data that read are carried out the verification inspection, whether judgment data is available; If data are unavailable, then from another memory cell reading of data.
Preferably, the above-mentioned date storage method that is used for mobile system also comprises: when the described data of having stored are read, two memory cell are read by turns fetch data.
Preferably, the above-mentioned date storage method that is used for mobile system also comprises: by the data that read are carried out the verification inspection, whether judgment data is available; If data are unavailable, then from another memory cell reading of data.
Above method is because adopt the data that will store to write the method for two different memory cell of storage chip at twice, so overcome the problem of storage chip shortening in useful life, prolong the useful life of pin-saving chip in the cell phone system, and then reached the effect that improves system reliability.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 shows the schematic diagram that existing memory space is divided;
Fig. 2 shows the flow chart according to the date storage method that is used for cell phone system of the embodiment of the invention;
Fig. 3 shows the schematic diagram of dividing according to the memory space of the embodiment of the invention.
Embodiment
Below with reference to the accompanying drawings and in conjunction with the embodiments, describe the present invention in detail.
Fig. 2 shows the flow chart according to the date storage method that is used for cell phone system of the embodiment of the invention, comprises the steps:
Step S10 encodes according to default form to the data that will store;
Step S20 writes two different memory cell of the storage chip of portable terminal at twice to the data behind the coding.
This embodiment is because adopt the data that will store to write the method for two different memory cell of storage chip at twice, so overcome the problem of storage chip shortening in useful life, prolong the useful life of pin-saving chip in the cell phone system, and then reached the effect that improves system reliability.
Preferably, at the above-mentioned date storage method that is used for mobile system, coding adopts simple parity check method or summation.The preferred embodiment provides the concrete grammar of coding.
Preferably, at the above-mentioned date storage method that is used for mobile system, add check field by being encoded to described data.The preferred embodiment is to check for the legitimacy to data.
Two kinds of method for reading data that are used for mobile system are provided below.
Preferably, the above-mentioned date storage method that is used for mobile system also comprises: when the described data of having stored are read, read the data of same memory cell at every turn.
Preferably, the above-mentioned date storage method that is used for mobile system also comprises: by the data that read are carried out the verification inspection, whether judgment data is available; If data are unavailable, then from another memory cell reading of data.
Preferably, the above-mentioned date storage method that is used for mobile system also comprises: when the described data of having stored are read, two memory cell are read by turns fetch data.
Preferably, the above-mentioned date storage method that is used for mobile system also comprises: by the data that read are carried out the verification inspection, whether judgment data is available; If data are unavailable, then from another memory cell reading of data.
The read method that above preferred embodiment provides can prolong storage chip useful life, improves the method for data reliability.
In actual cell phone system, often write operation is fewer and read operation is many to the data in the storage chip.The read-write number of times of chip is directly connected to the useful life of chip.The storage chip technology improves a lot now, and the memory capacity of chip is generally all very big, and this provides good hardware environment to realization of the present invention.
In order to reduce read operation to the chip fixed cell, when practical application, can encode to the data that will store, write two different memory cell of storage chip then at twice.Coding can adopt simple parity check method or summation, and purpose is that the legitimacy of the data that read is checked.If this check result is made mistakes, show that this memory cell is aging or damaged that the data that are stored on this unit are unavailable, at this moment can read desired data from the another one memory cell.
Adopt embodiments of the invention to guarantee the true and reliable of storage data; realized important Data Protection; thereby guaranteed reliability of system operation, also prolonged the useful life of pin-saving chip in the cell phone system, thereby significantly improved system reliability.
Embodiments of the invention may further comprise the steps:
Step 1: the data that store are at first encoded according to the form that oneself defines, add check field.
Data are encoded and the purpose of adding check field is the data that prevent the aging back of memory cell read error.Can adopt existing multiple coded system that data are encoded, simple coded system commonly used comprises parity check method, summation etc., adds check field by being encoded to these data; Can decision data whether true and reliable available according to check field after reading of data.Increase memory cell though do like this, guaranteed the reliability of reading of data.Very more practical than higher application scenario to reliability requirement.
Step 2: dividing two parts to be saved in the storage chip through the data behind the coding.
In storage chip, memory space is divided into the two large divisions, in chip, simultaneously two parts is carried out write operation during write data, so just preserved two piece of data at needs.When being carried out read operation, only reads chip a piece of data wherein.Can significantly reduce reading times like this to static memory cell.Owing to preserved two parts of identical data simultaneously in different memory cell, therefore when needs read these data, can adopt different strategies:
A), read same memory cell at every turn.By the data that read are carried out the verification inspection, whether judgment data is available.If this memory cell of unavailable explanation is aging or damage, to read from another memory cell again, later operation is just only operated available memory cell.Be equivalent to prolong the useful life of memory cell like this.
B), two memory cell are read in turn.Read for the first time first memory cell, read second memory cell for the second time, reduced reading frequency, prolonged the chip life-span same memory cell.
Fig. 3 shows the schematic diagram of dividing according to the memory space of the embodiment of the invention, and as can be seen from Figure 3 original monoblock memory space is divided into memory space 1 and memory space 2.Need data A, the B and the C that use to be stored in respectively in space 1 and the space 2 in the program.Certainly data A, B here and C refer to the data content behind the coding.As long as read one of them memory space when the needs reading of data, Fig. 1 is equivalent to reduce the read-write frequency to memory cell relatively.
Storing step:
Step 1: suppose to store data a now;
Step 2: at first data a being encoded and adding check word forms the data A that will store;
Step 3: calculate the memory address of memory space 1, and preserve data A to space 1;
Step 4: calculate the memory address of memory space 2, and preserve data A to space 2.
Read step:
Step 1: the data a that supposes to read now storage;
Step 2: at first read the data A in the memory space 1;
The legitimacy of step 3: check data A, if the correct data a that just further decodes of check, read step finishes;
Step 4:, then read the data A in the memory space 2 if check data A is illegal.
Above embodiment is because adopt the data that will store to write the method for two different memory cell of storage chip at twice, so overcome the problem of storage chip shortening in useful life, prolong the useful life of pin-saving chip in the cell phone system, and then reached the effect that improves system reliability.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the storage device and carry out by calculation element, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (7)

1. a date storage method that is used for portable terminal is characterized in that, comprises the steps:
The data that will store are encoded according to default form;
Described data behind the coding are write at twice two different memory cell of the storage chip of portable terminal.
2. date storage method according to claim 1 is characterized in that, described coding adopts simple parity check method or summation.
3. date storage method according to claim 1 is characterized in that, adds check field by being encoded to described data.
4. date storage method according to claim 1 is characterized in that, also comprises:
When the described data of having stored are read, read the described data of same described memory cell at every turn.
5. date storage method according to claim 4 is characterized in that, also comprises:
By the described data that read are carried out the verification inspection, judge whether described data are available;
If described data are unavailable, then read described data from another described memory cell.
6. date storage method according to claim 1 is characterized in that, also comprises:
When the described data of having stored are read, two described memory cell are read described data in turn.
7. date storage method according to claim 6 is characterized in that, also comprises:
By the described data that read are carried out the verification inspection, judge whether described data are available;
If described data are unavailable, then read described data from another described memory cell.
CNA2008100947665A 2008-05-16 2008-05-16 Data storing method for mobile terminal Pending CN101287212A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008100947665A CN101287212A (en) 2008-05-16 2008-05-16 Data storing method for mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008100947665A CN101287212A (en) 2008-05-16 2008-05-16 Data storing method for mobile terminal

Publications (1)

Publication Number Publication Date
CN101287212A true CN101287212A (en) 2008-10-15

Family

ID=40059130

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008100947665A Pending CN101287212A (en) 2008-05-16 2008-05-16 Data storing method for mobile terminal

Country Status (1)

Country Link
CN (1) CN101287212A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914667B (en) * 2012-12-29 2017-05-24 北京谊安医疗系统股份有限公司 Safety electrically erasable programmable read only memory (EEPROM) reading method and system thereof
CN110912698A (en) * 2019-12-27 2020-03-24 嘉应学院 Method and device for encrypted transmission of hillside orchard monitoring information

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914667B (en) * 2012-12-29 2017-05-24 北京谊安医疗系统股份有限公司 Safety electrically erasable programmable read only memory (EEPROM) reading method and system thereof
CN110912698A (en) * 2019-12-27 2020-03-24 嘉应学院 Method and device for encrypted transmission of hillside orchard monitoring information
CN110912698B (en) * 2019-12-27 2022-07-15 嘉应学院 Method and device for encrypted transmission of hillside orchard monitoring information

Similar Documents

Publication Publication Date Title
CN100578660C (en) Robust and high-speed memory access with adaptive interface timing
EP2294510B1 (en) Method and apparatus for error correction according to erase counts of a solid-state memory
CN101124639B (en) System and method of accessing non-volatile computer memory
US9817725B2 (en) Flash memory controller, data storage device, and flash memory control method with volatile storage restoration
US20060036897A1 (en) Data storage device
CN104750571A (en) Method for error correction, memory device and controller of memory device
CN104541249A (en) Endurance aware error-correcting code (ECC) protection for non-volatile memories
WO2007136655A3 (en) System to detect and identify errors in control information, read data and/or write data
US9348692B2 (en) Flash memory apparatus, memory controller and method for controlling flash memory
CN102203740A (en) Data processing method, device and system
US10992322B2 (en) Data storage system and associated method for saving storage space and eliminating data errors
WO2014046750A1 (en) Method, apparatus and system for providing error correction information
CN102279757A (en) Method and device for starting system program
CN101308702B (en) Data structure suitable for flash memory and data writing and reading method thereof
CN100549971C (en) A kind of method and device that reads the CPU code
CN102063342A (en) Method and system for managing data of flash memory storage equipment
US8549384B1 (en) Method and apparatus for determining, based on an error correction code, one or more locations to store data in a flash memory
CN101287212A (en) Data storing method for mobile terminal
CN105575439B (en) Method for correcting failure of storage unit and memory
CN109271275A (en) Labeling method, device, equipment and the medium of a kind of bad block in solid state hard disk
CN115729746A (en) Data storage protection method based on CRC and ECC
CN111796774B (en) Memory control method, memory storage device and memory controller
CN103092713A (en) Method for storing embedded code by using NAND flash
CN107783725A (en) The method, apparatus and nonvolatile memory of data storage
US10312943B2 (en) Error correction code in memory

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20081015