CN109542685A - Checking memory data method, apparatus, equipment and medium based on more sectors - Google Patents
Checking memory data method, apparatus, equipment and medium based on more sectors Download PDFInfo
- Publication number
- CN109542685A CN109542685A CN201811389220.2A CN201811389220A CN109542685A CN 109542685 A CN109542685 A CN 109542685A CN 201811389220 A CN201811389220 A CN 201811389220A CN 109542685 A CN109542685 A CN 109542685A
- Authority
- CN
- China
- Prior art keywords
- data
- memory
- sectors
- equal
- extracted
- 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
- 230000015654 memory Effects 0.000 title claims abstract description 83
- 238000000034 method Methods 0.000 title claims abstract description 25
- 239000000284 extract Substances 0.000 claims abstract description 18
- 238000003860 storage Methods 0.000 claims description 10
- 238000004519 manufacturing process Methods 0.000 abstract description 5
- 238000000605 extraction Methods 0.000 description 6
- 238000000151 deposition Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000001915 proofreading effect Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1479—Generic software techniques for error detection or fault masking
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The invention discloses checking memory data method, apparatus, equipment and media based on more sectors, the present invention is only with a memory, and a point sectors process is carried out to the memory space of memory, identical data are stored into each sector simultaneously, the data of all sectors are read out and are compared when extracting, when can just extract the data in the preferable situation of the consistency of certain data, otherwise do not extract.The present invention can not only guarantee the accuracy of extracted data, and also simplify circuit structure, reduce production cost.
Description
Technical field
The present invention relates to data check fields, are based particularly on checking memory data method, apparatus, the equipment of more sectors
And medium.
Background technique
Currently, storing and proofreading for existing data, usually there is following two mode, the first is independent by one
Memory stored, stored data are directly extracted from memory at the extraction and are carried out using but due to depositing
Reservoir can have situations such as loss of data and damage, therefore will lead to the corrupt data of extraction, data inaccuracy;Second is logical
It crosses multiple independent memories to store identical data, at the extraction proofreads the data in multiple memories,
It is carried out using the identical data that is in the great majority as most accurate data using but which can use multiple memories, structure
Complexity, higher cost.
Summary of the invention
To solve the above problems, the purpose of the present invention is to provide the checking memory data methods based on more sectors, dress
It sets, equipment and medium, can not only guarantee the accuracy of extracted data, and also simplify circuit structure, reduce
Production cost.
Technical solution used by the present invention solves the problems, such as it is:
The first aspect of the present invention provides a kind of checking memory data method based on more sectors, including following step
It is rapid:
The memory space of memory is divided into n sector, wherein n >=2;
Data are obtained, and by identical data while being deposited in all sectors into the memory;
It receives data and extracts instruction, the data in all sectors in the memory are read out and are compared;
When n is odd number, judge whether the consistent quantity of storing data is more than or equal in read all data
When the consistent quantity of data is more than or equal toThe data are then extracted, otherwise do not extract data, and prompt corrupt data;
When n is even number, judge whether the consistent quantity of storing data is more than or equal in read all dataWhen the consistent quantity of data is more than or equal toThe data are then extracted, otherwise do not extract data, and data is prompted to go out
It is wrong.
Further, the n=3.
Further, the memory is eeprom.
The second aspect of the present invention provides a kind of checking memory data device based on more sectors, comprising:
Segmenting device, for the memory space of memory to be divided into n sector, wherein n >=2;
Data acquisition and storage device are deposited into the memory simultaneously for obtaining data, and by identical data
In all sectors;
Data extract order reception apparatus, extract instruction for receiving data, will be in all sectors in the memory
Data be read out and compare;
First data calibration device, for judging that storing data is consistent in read all data when n is odd number
Whether quantity is more than or equal toWhen the consistent quantity of data is more than or equal toThe data are then extracted, data are not otherwise extracted,
And prompt corrupt data;
Second data calibration device, for judging that storing data is consistent in read all data when n is even number
Whether quantity is more than or equal toWhen the consistent quantity of data is more than or equal toThe data are then extracted, number is not otherwise extracted
According to, and prompt corrupt data.
The third aspect of the present invention provides a kind of checking memory data equipment based on more sectors, comprising:
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one
A processor executes, so that at least one described processor is able to carry out the above-mentioned checking memory data side based on more sectors
Method.
The fourth aspect of the present invention provides a kind of computer readable storage medium, comprising: the computer-readable storage
Media storage has computer executable instructions, and the computer executable instructions are above-mentioned based on more fans for executing computer
The checking memory data method in area.
A technical solution in above-mentioned technical proposal have the following advantages that or the utility model has the advantages that
A kind of checking memory data method, apparatus, equipment and the medium based on more sectors provided according to the present invention, energy
The memory space of memory is enough divided into n sector, wherein n >=2;After obtaining data by identical data exist simultaneously to
In all sectors;The data in all sectors in the memory can be read out simultaneously after receiving data and extracting instruction
It compares;Divide following two situation during comparison, the first is judged in read all data when n is odd number
Whether there are the consistent quantity of data to be more than or equal toWhen the consistent quantity of data is more than or equal toThe data are then extracted, it is no
Data are not extracted then, and prompt corrupt data;Second is to judge that there are numbers in read all data when n is even number
Whether it is more than or equal to according to consistent quantityWhen the consistent quantity of data is more than or equal toThe data are then extracted, otherwise
Data are not extracted, and prompt corrupt data.The present invention divides only with a memory, and to the memory space of memory
Identical data are stored into each sector simultaneously, are read out when extracting to the data of all sectors by sectors process
And otherwise comparison is not extracted when can just extract the data in the preferable situation of the consistency of certain data.The present invention can not only protect
The accuracy of extracted data is demonstrate,proved, and also simplifies circuit structure, reduces production cost.
Detailed description of the invention
The invention will be further described with example with reference to the accompanying drawing.
Fig. 1 is checking memory data method, apparatus, equipment based on more sectors provided by one embodiment of the invention
And the flow chart of medium;
Fig. 2 is checking memory data method, apparatus, equipment based on more sectors provided by one embodiment of the invention
And the structural schematic diagram of medium;
Fig. 3 is checking memory data method, apparatus, equipment based on more sectors provided by one embodiment of the invention
And medium is about memory and its circuit diagram of peripheral circuit.
Specific embodiment
Currently, storing and proofreading for existing data, usually there is following two mode, the first is independent by one
Memory stored, stored data are directly extracted from memory at the extraction and are carried out using but due to depositing
Reservoir can have situations such as loss of data and damage, therefore will lead to the corrupt data of extraction, data inaccuracy;Second is logical
It crosses multiple independent memories to store identical data, at the extraction proofreads the data in multiple memories,
It is carried out using the identical data that is in the great majority as most accurate data using but which can use multiple memories, structure
Complexity, higher cost.
Based on the above situation ,-Fig. 3, one embodiment of the present of invention referring to Fig.1, provide a kind of depositing based on more sectors
Memory data method of calibration, comprising the following steps:
S1: the memory space of memory is divided into n sector, wherein n >=2;
S2: data are obtained, and by identical data while being deposited in all sectors into the memory;
S3: data are received and extract instruction, the data in all sectors in the memory are read out and are carried out pair
Than;
S4: when n is odd number, judge whether the consistent quantity of storing data is more than or equal in read all data
S4-1: when the consistent quantity of data is more than or equal toThen extract the data;
S4-2: when the consistent quantity of data is less thanData are not extracted then, and prompt corrupt data;
S5: when n is even number, judge whether the consistent quantity of storing data is more than or equal in read all data
S5-1: when the consistent quantity of data is more than or equal toThen extract the data;
S5-2: when the consistent quantity of data is less thanData are not extracted then, and prompt corrupt data.
The present invention carries out a point sectors process only with a memory, and to the memory space of memory, will be identical
Data are stored into each sector simultaneously, and the data of all sectors are read out and are compared when extracting, when certain data
The data can be just extracted in the preferable situation of consistency, are not otherwise extracted.The present invention can not only guarantee the standard of extracted data
True property, and circuit structure is also simplified, reduce production cost.
Further, the n=3, the memory are eeprom.In order to reduce the quantity of sector, preferably it is divided into
Identical data are stored in three different sectors in eeprom during use by three sectors respectively, are using eeprom number
According to when, the data of three sectors are read out respectively and are compared, when the data of two of them sector are consistent, are meant that
The data of the two sectors are correct, otherwise prompt corrupt data.
One embodiment of the present of invention provides a kind of checking memory data device based on more sectors, comprising:
Segmenting device, for the memory space of memory to be divided into n sector, wherein n >=2;
Data acquisition and storage device are deposited into the memory simultaneously for obtaining data, and by identical data
In all sectors;
Data extract order reception apparatus, extract instruction for receiving data, will be in all sectors in the memory
Data be read out and compare;
First data calibration device, for judging that storing data is consistent in read all data when n is odd number
Whether quantity is more than or equal toWhen the consistent quantity of data is more than or equal toThe data are then extracted, data are not otherwise extracted,
And prompt corrupt data;
Second data calibration device, for judging that storing data is consistent in read all data when n is even number
Whether quantity is more than or equal toWhen the consistent quantity of data is more than or equal toThe data are then extracted, number is not otherwise extracted
According to, and prompt corrupt data.
The present invention carries out a point sectors process only with a memory, and to the memory space of memory, will be identical
Data are stored into each sector simultaneously, and the data of all sectors are read out and are compared when extracting, when certain data
The data can be just extracted in the preferable situation of consistency, are not otherwise extracted.The present invention can not only guarantee the standard of extracted data
True property, and circuit structure is also simplified, reduce production cost.For example, identical data are deposited respectively as n=3
Three different sectors in eeprom are put into, when using eeprom data, the data of three sectors are read out respectively
It compares, when the data of two of them sector are consistent, means that the data of the two sectors are correct, otherwise data is prompted to go out
It is wrong.
One embodiment of the present of invention provides a kind of checking memory data equipment based on more sectors, comprising:
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one
A processor executes, so that at least one described processor is able to carry out the above-mentioned checking memory data side based on more sectors
Method.
U1 in Fig. 3 is memory.
One embodiment of the present of invention provides a kind of computer readable storage medium, comprising: described computer-readable to deposit
Storage media is stored with computer executable instructions, and the computer executable instructions are above-mentioned based on more for executing computer
The checking memory data method of sector.
The above, only presently preferred embodiments of the present invention, the invention is not limited to above embodiment, as long as
It reaches technical effect of the invention with identical means, all should belong to protection scope of the present invention.
Claims (6)
1. a kind of checking memory data method based on more sectors, which comprises the following steps:
The memory space of memory is divided into n sector, wherein n >=2;
Data are obtained, and by identical data while being deposited in all sectors into the memory;
It receives data and extracts instruction, the data in all sectors in the memory are read out and are compared;
When n is odd number, judge whether the consistent quantity of storing data is more than or equal in read all dataWork as data
Consistent quantity is more than or equal toThe data are then extracted, otherwise do not extract data, and prompt corrupt data;
When n is even number, judge whether the consistent quantity of storing data is more than or equal in read all dataWhen
The consistent quantity of data is more than or equal toThe data are then extracted, otherwise do not extract data, and prompt corrupt data.
2. a kind of checking memory data method based on more sectors according to claim 1, it is characterised in that: the n
=3.
3. a kind of checking memory data method based on more sectors according to claim 1, it is characterised in that: described to deposit
Reservoir is eeprom.
4. a kind of checking memory data device based on more sectors characterized by comprising
Segmenting device, for the memory space of memory to be divided into n sector, wherein n >=2;
Identical data for obtaining data, and are deposited owning into the memory by data acquisition and storage device simultaneously
In sector;
Data extract order reception apparatus, instruction are extracted for receiving data, by the number in all sectors in the memory
According to being read out and compare;
First data calibration device, for judging the consistent quantity of storing data in read all data when n is odd number
Whether it is more than or equal toWhen the consistent quantity of data is more than or equal toThe data are then extracted, otherwise do not extract data, and mention
Show corrupt data;
Second data calibration device, for judging the consistent quantity of storing data in read all data when n is even number
Whether it is more than or equal toWhen the consistent quantity of data is more than or equal toThe data are then extracted, data are not otherwise extracted,
And prompt corrupt data.
5. a kind of checking memory data equipment based on more sectors characterized by comprising
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one
It manages device to execute, so that at least one described processor is able to carry out the method according to claim 1.
6. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer can
It executes instruction, the computer executable instructions are for making computer execute the method according to claim 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811389220.2A CN109542685A (en) | 2018-11-20 | 2018-11-20 | Checking memory data method, apparatus, equipment and medium based on more sectors |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811389220.2A CN109542685A (en) | 2018-11-20 | 2018-11-20 | Checking memory data method, apparatus, equipment and medium based on more sectors |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109542685A true CN109542685A (en) | 2019-03-29 |
Family
ID=65848610
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811389220.2A Pending CN109542685A (en) | 2018-11-20 | 2018-11-20 | Checking memory data method, apparatus, equipment and medium based on more sectors |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109542685A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101937721A (en) * | 2010-08-04 | 2011-01-05 | 武汉天喻信息产业股份有限公司 | Method for testing memory device |
CN102521084A (en) * | 2011-12-20 | 2012-06-27 | 惠州市亿能电子有限公司 | Data storage and reading method |
CN104021806A (en) * | 2014-05-16 | 2014-09-03 | 华为技术有限公司 | Data processing method and data processing equipment |
CN105469822A (en) * | 2014-09-12 | 2016-04-06 | 华邦电子股份有限公司 | Semiconductor memory apparatus, semiconductor system and reading method |
-
2018
- 2018-11-20 CN CN201811389220.2A patent/CN109542685A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101937721A (en) * | 2010-08-04 | 2011-01-05 | 武汉天喻信息产业股份有限公司 | Method for testing memory device |
CN102521084A (en) * | 2011-12-20 | 2012-06-27 | 惠州市亿能电子有限公司 | Data storage and reading method |
CN104021806A (en) * | 2014-05-16 | 2014-09-03 | 华为技术有限公司 | Data processing method and data processing equipment |
CN105469822A (en) * | 2014-09-12 | 2016-04-06 | 华邦电子股份有限公司 | Semiconductor memory apparatus, semiconductor system and reading method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104461390B (en) | Write data into the method and device of imbricate magnetic recording SMR hard disks | |
CN109508381B (en) | Knowledge graph processing method and device | |
CN104702784A (en) | Method and system for detecting multi-SIM hot plug of mobile terminal | |
CN106358181A (en) | Method and device for loading MBN document | |
CN104199784B (en) | A kind of data migration method and device based on classification storage | |
CN112733581B (en) | Vehicle attribute identification method and system | |
CN101794261B (en) | Mapping table data recovery method and device | |
CN106528821A (en) | Method for importing change column data into database | |
CN104461925A (en) | Automatic correcting method and device for aligning storage device addresses | |
CN107480466A (en) | Genomic data storage method and electronic equipment | |
CN107944866B (en) | Transaction record duplication elimination method and computer-readable storage medium | |
CN104765792B (en) | A kind of method, apparatus and system of dimension data storage | |
CN110969000B (en) | Data merging processing method and device | |
CN106446133A (en) | Method and device for simultaneous butt joint of two databases | |
CN106326439B (en) | A kind of storage of real-time video, search method and device | |
CN104077557A (en) | Method and device for acquiring card information | |
CN109542685A (en) | Checking memory data method, apparatus, equipment and medium based on more sectors | |
CN106802958A (en) | Conversion method and system of the CAD data to GIS data | |
CN109684517A (en) | A kind of historical data storage method, reading/writing method, storage device and equipment | |
CN104298570A (en) | Data processing method and device | |
CN105989124B (en) | Method and its system of the Sqlite file access pattern from increasing Major key | |
CN106204252A (en) | Internal credit and debt remaining sum identification, the method and system gathering and checking | |
CN106971757A (en) | A kind of method and system of inspection Nand Flash mass | |
CN105045725A (en) | Multi-storage-card storage realization method and system for mobile terminal | |
CN105094999A (en) | Method for clearing nonresident defect list of Seagate hard disk |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190329 |