CN105718205B - Improve the method and common block list of common block list data access efficiency - Google Patents

Improve the method and common block list of common block list data access efficiency Download PDF

Info

Publication number
CN105718205B
CN105718205B CN201410706587.8A CN201410706587A CN105718205B CN 105718205 B CN105718205 B CN 105718205B CN 201410706587 A CN201410706587 A CN 201410706587A CN 105718205 B CN105718205 B CN 105718205B
Authority
CN
China
Prior art keywords
data portion
mtp
data
nvm
cpu
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.)
Active
Application number
CN201410706587.8A
Other languages
Chinese (zh)
Other versions
CN105718205A (en
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.)
Holley Technology Co Ltd
Original Assignee
Holley Technology Co Ltd
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 Holley Technology Co Ltd filed Critical Holley Technology Co Ltd
Priority to CN201410706587.8A priority Critical patent/CN105718205B/en
Publication of CN105718205A publication Critical patent/CN105718205A/en
Application granted granted Critical
Publication of CN105718205B publication Critical patent/CN105718205B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Read Only Memory (AREA)

Abstract

The embodiment of the present invention provides a kind of common block list, comprising: CPU, for calculating and handling table to the measurement data of energy consumption;A NVM for coupling the CPU is configured as the first data portion of storage;And at least one MTP of the coupling CPU, it is configured as the second data portion of storage, wherein the CPU is configured as that storage order of at least one time interval to control first data portion and the second data portion is arranged.

Description

Improve the method and common block list of common block list data access efficiency
Technical field
The present invention relates to common block list, especially ammeter, water meter or hotlist, for measuring public energy consumption (such as water, electricity, heat Warm up), especially relate to the energy consumption data memory technology of common block list.
Background technique
High-capacity FLASH is widely used cheap nonvolatile storage (NVM) on current instrument and meter, but FLASH Greatest drawback is that erasable number is limited, and general FLASH only has 100,000 erasable numbers --- the model having may be lower, is more than It allows erasable number, and device will be damaged.For the characteristic of FLASH, the way in routine techniques generally has: using text The embedded file systems such as part operating system, such as JFFS2, YAFFS2, UBI, these file system have load-balancing function, Can reasonable memory space dynamic allocation, to avoid writing certain file into fixing address, thus balanced entire chip is erasable Number.It does so, can be improved the service life of complete machine, but for more frequent operation and helpless.
When power line AC power source have electricity, the data to be stored are saved in RAM, the regular hour is run up to, Again by data conversion storage into FLASH.It operates in this way, is that there is no problem when not having a power failure, can greatly reduce to FLASH's Erasable number.Majority instrument and meter uses battery or large bulk capacitance as backup power source at present, after detecting that exchange has a power failure, It is stored data into FLASH by backup power source.It does so and seems that there is no problem, but is inadequate in battery failure or capacitor electricity When, whens power failure unloading data just will appear data conversion storage not the unloading of all or none method the case where.
Summary of the invention
Technical solution: table storage medium is electrically coupled to the CPU inside table to store and come from processing data therein, institute State storage medium include nonvolatile memory (NVM) and can flash memory (MTP) infinitely, the NVM by going here and there parallel Processing data are changed in oral sex, and the MTP exchanges processing data by SPI interface, wherein the NVM is configured as the first data of storage Part, the MTP are configured as the second data portion of storage.
In one embodiment, first data portion includes rate of qualified voltage, electrical power, second data portion Subpackage contains electricity, clock CLK.
In one embodiment, the NVM selects FLASH unit, and the MTP selects FRAM unit.
In one embodiment, the CPU is configured as: in a first time interval T1In addition, by the first data portion Divide in write-in NVM;In this first time interval T1Within, the second data portion is written in MTP.
Further, in a first time interval T1The second time interval T in addition2It is interior, in MTP will be stored in Two data portions extract, and are written in the NVM.
In one embodiment, the CPU is configured as: in a first time interval T1In addition, by the first data portion Divide and the second data portion is respectively written into the NVM;In this first time interval T1Within, the second data portion is written In MTP.
In one embodiment, the CPU is configured as: in a first time interval T1The third time cycle in addition It is spaced T3It is interior, the first data portion being stored in the NVM and the second data portion are carried out according to preset clock CLK Merge.
In one embodiment, the CPU is configured as in third time cycle interval T3In addition, it deletes in MTP The second data portion.
In another embodiment, a kind of common block list is provided, comprising: CPU, for calculating and handling measurement of the table to energy consumption Data;A NVM for coupling the CPU is configured as the first data portion of storage;And at least one of the coupling CPU MTP is configured as the second data portion of storage, wherein the CPU is configured as being arranged at least one time interval to control State the storage order of the first data portion and the second data portion.
In one embodiment, first data portion includes rate of qualified voltage, electrical power, second data portion Subpackage contains electricity, clock CLK.
In one embodiment, the NVM selects FLASH unit, and the MTP selects FRAM unit.
In one embodiment, the CPU is configured as: other than a first time interval T1, by the first data portion Divide in write-in NVM;Within this first time interval T1, the second data portion is written at least one MTP;And at one In the second time interval T2 other than first time interval T1, will be stored in the second data portion in this at least one MTP into Row extracts, and is written in the NVM.
In one embodiment, the MTP is configured to include n MTP unit, wherein in (n-1)th time interval Tn-1 Within, n-th of MTP unit stores n-th of block content in second data portion.
In one embodiment, the CPU is configured as: in n-th of time interval TnBetween the third time cycle in addition Every T3It is interior, the first data portion being stored in the NVM is closed with the second data portion according to preset clock CLK And.
In yet another embodiment, a kind of method for improving common block list data access efficiency is provided, comprising: read by CPU Energy consumption measurement data are taken, the storage classification of energy consumption measurement data is selected;By the way that first time interval T is arranged1To judge energy consumption Measurement data is stored to NVM or MTP, wherein extracting the first data in the energy consumption measurement data if selection is stored to NVM The NVM is written in part, if selection is stored to MTP, extracts the second data portion in the energy consumption measurement data, writes Enter the MTP;By the way that the second time interval T is arranged2To judge to store the second data portion into the NVM;And According to third time cycle interval T3, the first data portion in the NVM and the second data portion will be stored according to pre- If clock CLK merge.
In one embodiment, first data portion includes rate of qualified voltage, electrical power, second data portion Subpackage contains electricity, clock CLK.
In one embodiment, the NVM selects FLASH unit, and the MTP selects FRAM unit.
In one embodiment, the CPU is configured as in third time cycle interval T3In addition, it deletes in MTP The second data portion.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of storage medium of the present invention;
Fig. 2 is a kind of flow chart for improving storage efficiency method.
Specific embodiment
Table (such as ammeter) referring to Fig.1 is electrically coupled to the CPU 3 inside table with storage medium to store from therein Data are handled, the storage medium includes NVM 2 and MTP 1, and NVM 2 exchanges processing data, bus speed by parallel serial ports Up to 133MHz, the MTP exchanges processing data by SPI interface, can reach the bus speed of 20MHz, wherein the NVM is matched It is set to the first data portion of storage, the MTP is configured as the second data portion of storage.
In one embodiment, first data portion includes rate of qualified voltage, electrical power, second data portion Subpackage contains electricity, clock CLK.
In one embodiment, the NVM selects FLASH unit, and the MTP selects FRAM unit, wherein FRAM unit It is suitble to the frequent read-write of small data quantity, FLASH unit is suitble to the rolling storage of big data quantity to become by the caching of FLASH unit Change the data acquired frequently or often and FLASH unit is written after some cycles (such as 60 minutes) collect, so that it is mono- to reduce FLASH The page of member writes number.
In one embodiment, the CPU is configured as: in a first time interval T1In addition, by the first data portion Divide in write-in NVM;In this first time interval T1Within, the second data portion is written in MTP.
Further, in a first time interval T1The second time interval T in addition2It is interior, in MTP will be stored in Two data portions extract, and are written in the NVM.
In one embodiment, the CPU is configured as: in a first time interval T1In addition, by the first data portion Divide and the second data portion is respectively written into the NVM;In this first time interval T1Within, the second data portion is written In MTP.
In one embodiment, the CPU is configured as: in a first time interval T1The third time cycle in addition It is spaced T3It is interior, the first data portion being stored in the NVM and the second data portion are carried out according to preset clock CLK Merge.
In one embodiment, the CPU is configured as in third time cycle interval T3In addition, it deletes in MTP The second data portion.
In another embodiment, a kind of common block list is provided, comprising: CPU, for calculating and handling measurement of the table to energy consumption Data;A NVM for coupling the CPU is configured as the first data portion of storage;And at least one of the coupling CPU MTP is configured as the second data portion of storage, wherein the CPU is configured as being arranged at least one time interval to control State the storage order of the first data portion and the second data portion.
In one embodiment, first data portion includes rate of qualified voltage, electrical power, second data portion Subpackage contains electricity, clock CLK.
In one embodiment, the NVM selects FLASH unit, and the MTP selects FRAM unit.
In one embodiment, the CPU is configured as: other than a first time interval T1, by the first data portion Divide in write-in NVM;Within this first time interval T1, the second data portion is written at least one MTP;And at one In the second time interval T2 other than first time interval T1, will be stored in the second data portion in this at least one MTP into Row extracts, and is written in the NVM.
In one embodiment, the MTP is configured to include n MTP unit, wherein in (n-1)th time interval Tn-1 Within, n-th of MTP unit stores n-th of block content in second data portion.
In one embodiment, the CPU is configured as: in n-th of time interval TnBetween the third time cycle in addition Every T3It is interior, the first data portion being stored in the NVM is closed with the second data portion according to preset clock CLK And.
In yet another embodiment, a kind of method for improving common block list data access efficiency is provided, comprising: read by CPU Energy consumption measurement data are taken, the storage classification of energy consumption measurement data is selected;By the way that first time interval T is arranged1To judge energy consumption Measurement data is stored to NVM or MTP, wherein extracting the first data in the energy consumption measurement data if selection is stored to NVM The NVM is written in part, if selection is stored to MTP, extracts the second data portion in the energy consumption measurement data, writes Enter the MTP;By the way that the second time interval T is arranged2To judge to store the second data portion into the NVM;And According to third time cycle interval T3, the first data portion in the NVM and the second data portion will be stored according to pre- If clock CLK merge.
In one embodiment, first data portion includes rate of qualified voltage, electrical power, second data portion Subpackage contains electricity, clock CLK.
In one embodiment, the NVM selects FLASH unit, and the MTP selects FRAM unit.
In one embodiment, the CPU is configured as in third time cycle interval T3In addition, it deletes in MTP The second data portion.

Claims (5)

1. a kind of method for improving common block list data access efficiency, characterized by comprising: CPU, for calculating and handling table pair The measurement data of energy consumption;A nonvolatile memory NVM for coupling the CPU is configured as the first data portion of storage;With And the coupling CPU can flash memory MTP infinitely, the second data portion of storage is configured as, wherein the CPU is matched It is set to: other than a first time interval T1, the first data portion being written in nonvolatile memory NVM;Herein first It, can be infinitely in flash memory MTP by the write-in of the second data portion within time interval T1;And between a first time In the second time interval T2 other than T1, will be stored in can the second data portion infinitely in flash memory MTP carry out It extracts, is written in the nonvolatile memory NVM.
2. it is according to claim 1 improve common block list data access efficiency method, it is characterised in that: it is described can be unlimited Flash memory MTP is configured to include n MTP unit, wherein n-th of MTP unit is deposited within (n-1)th time interval Store up n-th of block content in second data portion;The CPU is configured as: other than n-th of time interval Tn In three time cycle interval T3, the first data portion in the nonvolatile memory NVM and the second data will be stored in Part is merged according to preset clock CLK, and other than third time cycle interval T3, deletion can be erasable infinitely The second data portion in memory MTP.
3. a kind of method for improving common block list data access efficiency, characterized by comprising: CPU, for calculating and handling table pair The measurement data of energy consumption;A nonvolatile memory NVM for coupling the CPU is configured as the first data portion of storage;With And the coupling CPU can flash memory MTP infinitely, be configured as the second data portion of storage, energy consumption read by CPU Measurement data selects the storage classification of energy consumption measurement data;Judged by setting first time interval T1 by energy consumption measurement number According to store to nonvolatile memory NVM or can flash memory MTP infinitely, wherein if selection is stored to non-volatile memories Device NVM then extracts the first data portion in the energy consumption measurement data, and the nonvolatile memory NVM is written, if choosing Select store to can flash memory MTP infinitely, then the second data portion in the energy consumption measurement data is extracted, described in write-in Can flash memory MTP infinitely;Judge to store the second data portion to described by the second time interval T2 of setting Nonvolatile memory NVM in;And according to third time cycle interval T3, the nonvolatile memory will be stored in The first data portion in NVM is merged with the second data portion according to preset clock CLK;In the third time cycle It is spaced other than T3, deletes the second data portion that can infinitely in flash memory MTP.
4. the method according to claim 1 or 2 or 3 for improving common block list data access efficiency, it is characterised in that: described the One data portion includes rate of qualified voltage, electrical power, and second data portion includes electricity, clock CLK.
5. the method according to claim 1 or 2 or 3 for improving common block list data access efficiency, it is characterised in that: described non- Volatile memory NVM selects FLASH unit, described to select FRAM unit by flash memory MTP infinitely.
CN201410706587.8A 2014-12-01 2014-12-01 Improve the method and common block list of common block list data access efficiency Active CN105718205B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410706587.8A CN105718205B (en) 2014-12-01 2014-12-01 Improve the method and common block list of common block list data access efficiency

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410706587.8A CN105718205B (en) 2014-12-01 2014-12-01 Improve the method and common block list of common block list data access efficiency

Publications (2)

Publication Number Publication Date
CN105718205A CN105718205A (en) 2016-06-29
CN105718205B true CN105718205B (en) 2019-04-16

Family

ID=56145744

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410706587.8A Active CN105718205B (en) 2014-12-01 2014-12-01 Improve the method and common block list of common block list data access efficiency

Country Status (1)

Country Link
CN (1) CN105718205B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1843024A (en) * 2003-07-17 2006-10-04 埃内尔迪斯特里布齐恩公司 Method and system for remote updates of meters for metering the consumption of electricity, water or gas
CN102004656A (en) * 2010-12-11 2011-04-06 九江中弘电子科技有限公司 Redundancy backup and security updating technology of vehicle integration information liquid crystal display and control platform

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100282623B1 (en) * 1998-05-12 2001-03-02 탁승호 Value transfer and value storage method and value storage power meter using the same

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1843024A (en) * 2003-07-17 2006-10-04 埃内尔迪斯特里布齐恩公司 Method and system for remote updates of meters for metering the consumption of electricity, water or gas
CN102004656A (en) * 2010-12-11 2011-04-06 九江中弘电子科技有限公司 Redundancy backup and security updating technology of vehicle integration information liquid crystal display and control platform

Also Published As

Publication number Publication date
CN105718205A (en) 2016-06-29

Similar Documents

Publication Publication Date Title
CN107168647B (en) FLASH data read-write method and system
CN104641356B (en) Address of cache
CN104424112B (en) Data storage device and flash memory control method
CN105843749B (en) A kind of NAND Flash fault-tolerance approach based on FPGA
US20140258761A1 (en) Asynchronous management of access requests to control power consumption
CN104239229B (en) Data storage device and data reading method for flash memory
CN108984336A (en) The heat shutoff of processing storage equipment
CN103150258A (en) Writing, reading and garbage collection method of solid-state memory system
CN105278875B (en) A kind of mixing isomery NAND solid state hard disk
CN102385902A (en) Solid state storage device and data control method thereof
CN101656106A (en) Method for writing data into EEPROM and device thereof
Chen et al. Heating dispersal for self-healing NAND flash memory
CN106940625A (en) The date storage method of intelligent electric meter
CN103914397B (en) Flash memory device and its management method
CN104346292A (en) Method for managing a memory device, memory device and controller
CN103729143A (en) Data safety method for electric energy data storage of multi-path electricity meter
CN102456404A (en) NVM (nonvolatile memory) storage device, memory controller and data storage method
CN101308701A (en) Apparatus and method of managing mapping table of non-volatile memory
CN105512047A (en) Method and device for write operation and erasure operation of Flash memory
CN111737162A (en) Solid state disk using method for quickly recovering data and computer readable storage medium
CN105446848B (en) The test method and device of the data processing performance of electronic equipment
CN109783406A (en) Control method, memory storage and its controller and electronic device of memory storage
CN103488582B (en) Write the method and device of cache memory
CN104699421B (en) A kind of table storage medium
CN105718205B (en) Improve the method and common block list of common block list data access efficiency

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant