CN107506308A - A kind of chip rewrites date storage method, electronic equipment and the storage medium of equipment - Google Patents
A kind of chip rewrites date storage method, electronic equipment and the storage medium of equipment Download PDFInfo
- Publication number
- CN107506308A CN107506308A CN201710527880.1A CN201710527880A CN107506308A CN 107506308 A CN107506308 A CN 107506308A CN 201710527880 A CN201710527880 A CN 201710527880A CN 107506308 A CN107506308 A CN 107506308A
- Authority
- CN
- China
- Prior art keywords
- data
- storage
- field
- equipment
- address
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/0223—User address space allocation, e.g. contiguous or non contiguous base addressing
- G06F12/023—Free address space management
- G06F12/0238—Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory
- G06F12/0246—Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory in block erasable memory, e.g. flash memory
-
- 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/08—Error detection or correction by redundancy in data representation, e.g. by using checking codes
- G06F11/10—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- G06F11/1004—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's to protect a block of data words, e.g. CRC or checksum
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C16/00—Erasable programmable read-only memories
- G11C16/02—Erasable programmable read-only memories electrically programmable
- G11C16/06—Auxiliary circuits, e.g. for writing into memory
- G11C16/10—Programming or data input circuits
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C29/00—Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
- G11C29/04—Detection or location of defective memory elements, e.g. cell constructio details, timing of test signals
- G11C29/08—Functional testing, e.g. testing during refresh, power-on self testing [POST] or distributed testing
- G11C29/12—Built-in arrangements for testing, e.g. built-in self testing [BIST] or interconnection details
- G11C29/18—Address generation devices; Devices for accessing memories, e.g. details of addressing circuits
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C29/00—Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
- G11C29/04—Detection or location of defective memory elements, e.g. cell constructio details, timing of test signals
- G11C29/08—Functional testing, e.g. testing during refresh, power-on self testing [POST] or distributed testing
- G11C29/12—Built-in arrangements for testing, e.g. built-in self testing [BIST] or interconnection details
- G11C29/18—Address generation devices; Devices for accessing memories, e.g. details of addressing circuits
- G11C2029/1806—Address conversion or mapping, i.e. logical to physical address
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Quality & Reliability (AREA)
- Read Only Memory (AREA)
Abstract
The present invention discloses the date storage method that a kind of chip rewrites equipment, memory space is divided including step, data storage, storage address, also include step data check, check results are stored, memory space is different series consumptive material data configuration separate storage area, stores data and the address of consumptive material data respectively;The invention further relates to a kind of electronic equipment and computer-readable recording medium;Present invention optimizes writing mode, data storage method and data store organisation, realizes that arbitrary address position data are erasable, and the erasable number of data does flexible setting according to different series product, adds erasable number, realizes the balanced use of memory space.
Description
Technical field
The present invention relates to printing consumable chip to rewrite apparatus field, more particularly to a kind of chip rewrites the data storage of equipment
Method, electronic equipment and storage medium.
Background technology
In existing printing consumable chip rewrites equipment, generally use is built in the FLASH in main control chip to store
Chip reset rewrite data.Due to the characteristic of FLASH memory, the disposably erasable operation of all address spaces, and its are only supported
Erasable number is 10K times, and causing a consumable chip to be rewritten can only realize that all resets to its storage inside are rewritten in equipment
Data carry out the reset rewriting operation distribution of unified number.10 classes as being stored with A-J in a consumable chip rewriting equipment
The consumptive material data of type, and be stored with to reset and rewrite number as 100 times, when Selective type A consumptive material data reset is rewritten once
Afterwards, then all types of consumptive material data can reset and rewrite number and reduce 1 residue 99 times, therefore existing printing consumable chip
Rewriting equipment can not realize that the printing consumables data of different model are carried out with reset rewrites being independently arranged for number, does not possess compatibility
Property.
The content of the invention
For overcome the deficiencies in the prior art, it is an object of the invention to provide the data storage that a kind of chip rewrites equipment
Method, electronic equipment and storage medium, optimize writing mode, realize that arbitrary address position data are erasable, add erasable number,
Optimize data storage method and data store organisation, be embodied as different series data configuration separate storage area, erasable time of data
It is several to do flexible setting according to different series product, realize the balanced use of memory space.
The present invention provides the date storage method that a kind of chip rewrites equipment, comprises the following steps:
Memory space is divided, the memory space of memory is divided into data field and pointer area, the data field storage consumption
Material data, the pointer area store pointer, and the pointer points to the address of the consumptive material data, and the consumptive material data include chip
Rewrite rewritable the mandate number and configuration data of device of equipment;
Data storage, the field of the data field, the memory cell of data storage to the data field are scanned, and return to institute
State access unit address offset;
Storage address, the field in the pointer area is scanned, store the address offset amount to the storage list in the pointer area
Member.
Further, the step data storage includes judging whether the field of data field memory cell is that word is not used
Section, if so, then data storage returns to the data field access unit address offset to the data field memory cell;If
No, then whether the field for judging the data field is to use field, if so, then data storage to the data field stores list
Member, return to the data field access unit address offset;If it is not, it is without storage available, the unused field then
Mark is not used in memory cell, and described be that memory cell is recyclable and reuse mark using field.
Further, the step storage address includes judging whether the field of pointer area memory cell is that word is not used
Section, if so, the address offset amount is then stored to pointer area memory cell, if it is not, then judging that the pointer area storage is single
Whether the field of member is to use field, if so, the address offset amount is then stored to pointer area memory cell, if it is not,
Then return without storage available.
Further, step data check is also included after the step storage address, is deposited using checking algorithm to described
The data in storage space are verified, and obtain check results.
Further, the checking algorithm include CRC algorithm, MD2 algorithms, MD4 algorithms, MD5 algorithms, SHA1 algorithms,
SHA256 algorithms, SHA384 algorithms, SHA512 algorithms, RIPEMD algorithms, PANAMA algorithms, TIGER algorithms, ADLER32 algorithms.
Further, step storage check results are also included after the step data check, store the check results
Nonvolatile memory in piece.
Further, the data storage cell division address section stores the consumptive material data, and the pointer storage is single
Member division address section stores the address of the consumptive material data.
Further, the memory is nonvolatile memory.
A kind of electronic equipment, including:Processor;Memory;And program, wherein described program are stored in the storage
In device, and it is configured to by computing device, described program includes being used to perform the data that a kind of above-mentioned chip rewrites equipment
Storage method.
A kind of computer-readable recording medium, is stored thereon with computer program, and the computer program is held by processor
A kind of above-mentioned chip of row rewrites the date storage method of equipment.
Compared with prior art, the beneficial effects of the present invention are:
A kind of chip of the present invention rewrites the date storage method of equipment, including step division memory space, data storage, deposits
Address, in addition to step data check are stored up, stores check results, data Division address section storage consumptive material data, storage sky
Between be divided into data field and pointer area, data field storage consumptive material data, pointer area storage pointer, pointer points to the ground of consumptive material data
Location;The invention further relates to a kind of electronic equipment and computer-readable recording medium;Present invention optimizes writing mode, data storage
Mode and data store organisation, realize that arbitrary address position data are erasable, the erasable number of data does spirit according to different series product
It is living to set, erasable number is added, realizes the balanced use of memory space.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of specification, below with presently preferred embodiments of the present invention and coordinate accompanying drawing describe in detail as after.
The embodiment of the present invention is shown in detail by following examples and its accompanying drawing.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is that a kind of chip of the present invention rewrites the date storage method flow chart of equipment;
The BOOTLOADER routine datas that Fig. 2 is the present invention update flow chart;
Fig. 3 is that a kind of chip of the present invention rewrites the data storage device structured flowchart of equipment.
Embodiment
Below, with reference to accompanying drawing and embodiment, the present invention is described further, it is necessary to which explanation is, not
Under the premise of afoul, new implementation can be formed between various embodiments described below or between each technical characteristic in any combination
Example.
A kind of chip rewrites the date storage method of equipment, as shown in figure 1, comprising the following steps:
Memory space is divided, the memory space of memory is divided into data field and pointer area, it is preferable that memory is non-
Volatile memory, specially EEPROM, table 1 are EEPROM memory spaces.
The EEPROM memory spaces of table 1
In one embodiment, data field storage consumptive material data, pointer area storage pointer, pointer point to the ground of consumptive material data
Location, it is preferable that data storage cell division address section storage consumptive material data, pointer memory cell division address section storage consumption
The address of material data, consumptive material data include rewritable the mandate number and configuration data of device that chip rewrites equipment, are embodied as not
Homologous series data configuration separate storage area, such as the different types of consumptive material data of A, B expression, pointer memory unit address is
The address of 0X0000-0X0012 region storage type-A consumptive material data, pointer memory unit address is 0X0014-0X0026's
Region stores the address of B type consumptive material data.
Data storage, the field in scan data area, the memory cell of data storage to data field, and return to memory cell
Address offset amount, in one embodiment, as shown in Fig. 2 when BOOTLOADER programs import new mandate number, scan first
The memory cell of data can be deposited in eeprom memory, original data field is deposited in the memory space of eeprom memory
The field of storage unit and pointer area memory cell is 0XFF, the data field used in the memory space of eeprom memory
The field of memory cell and pointer area memory cell is 0X00, it is preferable that judge data field memory cell field whether be
0XFF, if so, then data storage is to data field memory cell, returned data area access unit address offset, if it is not, then sentencing
Whether the field of disconnected data field is 0X00, if so, then data storage to data field memory cell, returned data area memory cell
Address offset amount, if not, then it represents that without storage available.
Storage address, the field in scan pointer area, the memory cell of storage address offset to pointer area, in an embodiment
In, after BOOTLOADER programs import the numerical value of new mandate number in data field, it is preferable that judge the word of pointer area memory cell
Whether section is 0XFF, if so, then storage address offset is to pointer area memory cell, if it is not, then judging pointer area memory cell
Field whether be 0X00, if so, then storage address offset is to pointer area memory cell, if not, then it represents that storage can not be used
Unit, if the address of type-A consumptive material data and the mandate number numerical value of B type consumptive material data is 0X4e20, in data field
The mandate number for the memory cell storage that location is 0X4e20 is 16.
In one embodiment, it is preferable that also include step data check after step storage address, using checking algorithm pair
The data of eeprom memory storage are verified, and obtain check results, it is preferable that checking algorithm includes CRC algorithm, MD2 is calculated
Method, MD4 algorithms, MD5 algorithms, SHA1 algorithms, SHA256 algorithms, SHA384 algorithms, SHA512 algorithms, RIPEMD algorithms,
PANAMA algorithms, TIGER algorithms, ADLER32 algorithms.
In one embodiment, it is preferable that also include step storage check results, storage verification knot after step data check
Nonvolatile memory in fruit to piece, specially FLASH memory.
In one embodiment, a kind of electronic equipment, including:Processor;Memory;And program, wherein described program quilt
It is stored in the memory, and is configured to by computing device, described program includes being used to perform a kind of above-mentioned chip
Rewrite the date storage method of equipment.
In one embodiment, a kind of computer-readable recording medium, computer program, the computer journey are stored thereon with
Sequence is executed by processor the date storage method that a kind of above-mentioned chip rewrites equipment.
In one embodiment, a kind of chip rewrites the data storage device of equipment, as shown in figure 3, including main control chip with
The outer eeprom memory of piece, MCU control module include ram in slice memory and in-chip FLASH memory, the outer EEPROM storages of piece
Device is connected with MCU control module, and eeprom memory includes data storage cell and pointer memory cell, data storage cell are deposited
Data, pointer memory cell storage pointer are stored up, pointer points to data, opens up in the fixing address of RAM memory and hold with EEPROM
Identical mirror image space is measured, mirror image unit reads the data of eeprom memory.
In one embodiment, it is preferable that MCU control module also includes correction verification module, correction verification module by checking algorithm at
The data of eeprom memory are managed, obtain check results, MCU control module stores check results to FLASH memory, preferably
Ground, checking algorithm include CRC algorithm.
A kind of chip of the present invention rewrites the date storage method of equipment, including step division memory space, data storage, deposits
Address, in addition to step data check are stored up, stores check results, data Division address section storage consumptive material data, storage sky
Between be divided into data field and pointer area, data field storage consumptive material data, pointer area storage pointer, pointer points to the ground of consumptive material data
Location;The invention further relates to a kind of electronic equipment and computer-readable recording medium;Present invention optimizes writing mode, data storage
Mode and data store organisation, realize that arbitrary address position data are erasable, the erasable number of data does spirit according to different series product
It is living to set, erasable number is added, realizes the balanced use of memory space.
More than, only presently preferred embodiments of the present invention, any formal limitation not is made to the present invention;All one's own professions
The those of ordinary skill of industry can swimmingly implement the present invention shown in by specification accompanying drawing and above;But all to be familiar with sheet special
The technical staff of industry without departing from the scope of the present invention, is made a little using disclosed above technology contents
The equivalent variations of variation, modification and evolution, it is the equivalent embodiment of the present invention;Meanwhile all substantial technologicals according to the present invention
Variation, modification and evolution of any equivalent variations made to above example etc., still fall within technical scheme
Within protection domain.
Claims (10)
1. a kind of chip rewrites the date storage method of equipment, it is characterised in that comprises the following steps:
Memory space is divided, the memory space of memory is divided into data field and pointer area, the data field stores consumptive material number
According to the pointer area stores pointer, and the pointer points to the address of the consumptive material data, and the consumptive material data are rewritten including chip
Rewritable the mandate number and configuration data of device of equipment;
Data storage, the field of the data field, the memory cell of data storage to the data field are scanned, and deposited described in return
The address offset amount of storage unit;
Storage address, the field in the pointer area is scanned, store the address offset amount to the memory cell in the pointer area.
2. a kind of chip as claimed in claim 1 rewrites the date storage method of equipment, it is characterised in that:The step storage
Data include judging whether the field of data field memory cell is unused field, if so, then data storage is to the data field
Memory cell, return to the data field access unit address offset;If it is not, then judge the data field field whether be
Field is used, if so, then it is inclined to return to the data field access unit address to the data field memory cell for data storage
Shifting amount;If it is not, then without storage available, the unused field is that mark is not used in memory cell, described to use field
It is recyclable and reuse mark for memory cell.
3. a kind of chip as claimed in claim 2 rewrites the date storage method of equipment, it is characterised in that:The step storage
Address includes judging whether the field of pointer area memory cell is unused field, if so, then storing the address offset amount extremely
Pointer area memory cell, if it is not, whether the field for then judging pointer area memory cell is to use field, if so,
The address offset amount is then stored to pointer area memory cell, if it is not, then returning without storage available.
4. a kind of chip as claimed in claim 1 rewrites the date storage method of equipment, it is characterised in that:Deposited in the step
Storage also includes step data check behind address, and the data of the memory space are verified using checking algorithm, verified
As a result.
5. a kind of chip as claimed in claim 4 rewrites the date storage method of equipment, it is characterised in that:The checking algorithm
Calculated including CRC algorithm, MD2 algorithms, MD4 algorithms, MD5 algorithms, SHA1 algorithms, SHA256 algorithms, SHA384 algorithms, SHA512
Method, RIPEMD algorithms, PANAMA algorithms, TIGER algorithms, ADLER32 algorithms.
6. a kind of chip as claimed in claim 4 rewrites the date storage method of equipment, it is characterised in that:In the number of steps
According to step storage check results are also included after verification, nonvolatile memory in the check results to piece is stored.
7. a kind of chip as claimed in claim 1 rewrites the date storage method of equipment, it is characterised in that:The data storage
Dividing elements address section stores the consumptive material data, and the pointer memory cell division address section stores the consumptive material data
Address.
8. a kind of chip as claimed in claim 1 rewrites the date storage method of equipment, it is characterised in that:The memory is
Nonvolatile memory.
9. a kind of electronic equipment, it is characterised in that including:Processor;Memory;And program, wherein described program are stored in
In the memory, and it is configured to by computing device, described program includes being used for perform claim requirement 1-8 any one
Described method.
10. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that:The computer program
It is executed by processor the method as described in claim 1-8 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710527880.1A CN107506308A (en) | 2017-06-30 | 2017-06-30 | A kind of chip rewrites date storage method, electronic equipment and the storage medium of equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710527880.1A CN107506308A (en) | 2017-06-30 | 2017-06-30 | A kind of chip rewrites date storage method, electronic equipment and the storage medium of equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107506308A true CN107506308A (en) | 2017-12-22 |
Family
ID=60679626
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710527880.1A Pending CN107506308A (en) | 2017-06-30 | 2017-06-30 | A kind of chip rewrites date storage method, electronic equipment and the storage medium of equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107506308A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111666177A (en) * | 2020-05-07 | 2020-09-15 | 中国石油天然气股份有限公司 | Gas-liquid two-phase flowmeter and meter data storage method |
CN112835745A (en) * | 2021-02-09 | 2021-05-25 | 天津易鼎丰动力科技有限公司 | High-reliability storage algorithm of embedded system |
CN113515070A (en) * | 2021-07-12 | 2021-10-19 | 珠海格力电器股份有限公司 | Motor equipment address processing method and device, storage medium and motor controller |
CN113960391A (en) * | 2021-09-13 | 2022-01-21 | 珠海亿智电子科技有限公司 | Abnormal power failure testing device and method for storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101178693A (en) * | 2007-12-14 | 2008-05-14 | 沈阳东软软件股份有限公司 | Data cache method and system |
CN102508784A (en) * | 2011-11-02 | 2012-06-20 | 杭州海康威视数字技术股份有限公司 | Data storage method of flash memory card in video monitoring equipment, and system thereof |
CN102950899A (en) * | 2011-08-26 | 2013-03-06 | 珠海天威技术开发有限公司 | Chip, data writing method for same, consumable container and imaging equipment |
-
2017
- 2017-06-30 CN CN201710527880.1A patent/CN107506308A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101178693A (en) * | 2007-12-14 | 2008-05-14 | 沈阳东软软件股份有限公司 | Data cache method and system |
CN102950899A (en) * | 2011-08-26 | 2013-03-06 | 珠海天威技术开发有限公司 | Chip, data writing method for same, consumable container and imaging equipment |
CN102508784A (en) * | 2011-11-02 | 2012-06-20 | 杭州海康威视数字技术股份有限公司 | Data storage method of flash memory card in video monitoring equipment, and system thereof |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111666177A (en) * | 2020-05-07 | 2020-09-15 | 中国石油天然气股份有限公司 | Gas-liquid two-phase flowmeter and meter data storage method |
CN111666177B (en) * | 2020-05-07 | 2023-06-30 | 中国石油天然气股份有限公司 | Meter data storage method for gas-liquid two-phase flowmeter |
CN112835745A (en) * | 2021-02-09 | 2021-05-25 | 天津易鼎丰动力科技有限公司 | High-reliability storage algorithm of embedded system |
CN112835745B (en) * | 2021-02-09 | 2022-04-01 | 天津易鼎丰动力科技有限公司 | High-reliability storage method of embedded system |
CN113515070A (en) * | 2021-07-12 | 2021-10-19 | 珠海格力电器股份有限公司 | Motor equipment address processing method and device, storage medium and motor controller |
CN113960391A (en) * | 2021-09-13 | 2022-01-21 | 珠海亿智电子科技有限公司 | Abnormal power failure testing device and method for storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107506308A (en) | A kind of chip rewrites date storage method, electronic equipment and the storage medium of equipment | |
TWI546666B (en) | Data storage device and flash memory control method | |
TWI544334B (en) | Data storage device and operating method thereof | |
WO2008132725A4 (en) | A method for efficient storage of metadata in flash memory | |
WO2018054261A1 (en) | Storage medium, data processing method and cartridge chip using this method | |
CN105723462B (en) | The fail-safe for storing the data in NAND memory device refreshes | |
TWI659307B (en) | Data storage device and flash memory control method | |
CN104885052B (en) | The virtual boundary code read and write in the data mapping of storage device | |
CN107451494A (en) | A kind of chip rewrites data guard method, electronic equipment and the storage medium of equipment | |
CN207182914U (en) | A kind of chip rewrites the storage device of equipment | |
CN103136108A (en) | Quick flashing memory device and data reading method thereof | |
CN108415663A (en) | The operating method of data storage device | |
CN109582216A (en) | Data storage device and data processing method of memory device | |
CN108108261A (en) | Data storage device and its operating method | |
JP2010182268A (en) | Memory controller, flash memory system equipped with the same, and control method of flash memory | |
JP2011107925A5 (en) | ||
US9195582B2 (en) | Data storing method and apparatus applied to flash memory storage device | |
JP4821845B2 (en) | MEMORY CONTROLLER, FLASH MEMORY SYSTEM HAVING MEMORY CONTROLLER, AND FLASH MEMORY CONTROL METHOD | |
JP2008225576A (en) | Control device of nand flash memory | |
JP2017004212A (en) | Reprogramming system | |
JP2009086738A (en) | Memory controller, flash memory system equipped with memory controller and method for controlling flash memory | |
US10719436B2 (en) | Management device, information processing device, and management method | |
JP2011175361A (en) | Data storage device and method | |
US20130318284A1 (en) | Data Storage Device and Flash Memory Control Method | |
JP4821844B2 (en) | MEMORY CONTROLLER, FLASH MEMORY SYSTEM HAVING MEMORY CONTROLLER, AND FLASH MEMORY CONTROL METHOD |
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: 20171222 |