CN104699421B - A kind of table storage medium - Google Patents

A kind of table storage medium Download PDF

Info

Publication number
CN104699421B
CN104699421B CN201410705962.7A CN201410705962A CN104699421B CN 104699421 B CN104699421 B CN 104699421B CN 201410705962 A CN201410705962 A CN 201410705962A CN 104699421 B CN104699421 B CN 104699421B
Authority
CN
China
Prior art keywords
data portion
mtp
nvm
data
time interval
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
CN201410705962.7A
Other languages
Chinese (zh)
Other versions
CN104699421A (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 CN201410705962.7A priority Critical patent/CN104699421B/en
Publication of CN104699421A publication Critical patent/CN104699421A/en
Application granted granted Critical
Publication of CN104699421B publication Critical patent/CN104699421B/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

Table storage medium is electrically coupled to the CPU inside table to store and comes from processing data therein, and the storage medium includes nonvolatile memory(NVM)With can unlimited flash memory(MTP), the NVM is exchanged by parallel serial ports handles data, and the MTP exchanges processing data by SPI interface, wherein the NVM is configured as the first data portion of storage, the MTP is configured as the second data portion of storage.

Description

A kind of table storage medium
Technical field
The present invention relates to common block list, especially ammeter, water meter or hotlists, for measuring public energy consumption(Such as water, electricity, heat It warms up), especially relate to the energy consumption data memory technology of common block list.
Background technology
High-capacity FLASH is widely used cheap nonvolatile storage on current instrument and meter(NVM), 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, device that 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 certain file writing fixing address, thus balanced entire chip is erasable Number.It does so, can improve the service life of complete machine, but for more frequent operation and helpless.
When power line AC power have electricity, the data to be stored are saved in RAM, the regular hour is run up to, It again will be in data conversion storage to 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 stand-by power supply at present, after detecting that exchange has a power failure, It is stored data into FLASH by stand-by power supply.It does so and seems that there is no problem, but is inadequate in battery failure or capacitance electricity When, whens power failure unloading data just will appear data conversion storage not the unloading of all or none method the case where.
Invention content
Technical solution:Table storage medium is electrically coupled to the CPU inside table to store and comes from processing data therein, institute It includes nonvolatile memory to state storage medium(NVM)With can unlimited flash memory(MTP), 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 is containing electricity, clock CLK.
In one embodiment, the NVM selects FLASH units, the MTP to select FRAM units.
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, including: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 the coupling CPU's is at least one 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 is containing electricity, clock CLK.
In one embodiment, the NVM selects FLASH units, the MTP to select FRAM units.
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 First time interval T1In the second time interval T2 in addition, will be stored in the second data portion in this at least one MTP into Row extraction, is written in the NVM.
In one embodiment, the MTP is configured as including 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 improving common block list data access efficiency is provided, including:It is 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, if wherein selection store to NVM, extract the first data in the energy consumption measurement data 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 is containing electricity, clock CLK.
In one embodiment, the NVM selects FLASH units, the MTP to select FRAM units.
In one embodiment, the CPU is configured as in third time cycle interval T3In addition, it deletes in MTP The second data portion.
Description of the drawings
Fig. 1 is the structural schematic diagram of storage medium of the present invention.
Specific implementation mode
Table referring to Fig.1(Such as ammeter)The CPU 3 inside table is electrically coupled to store from therein with storage medium 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 by SPI interface exchange processing data, can reach the bus speed of 20MHz, wherein the NVM by with 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 is containing electricity, clock CLK.
In one embodiment, the NVM selects FLASH units, the MTP to select FRAM units, wherein FRAM units It is suitble to the frequent read-write of small data quantity, FLASH units that the rolling storage of big data quantity is suitble to become by the caching of FLASH units Change the data acquired frequently or often through some cycles(Such as 60 minutes)FLASH units are written after collecting, 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, including: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 the coupling CPU's is at least one 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 is containing electricity, clock CLK.
In one embodiment, the NVM selects FLASH units, the MTP to select FRAM units.
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 First time interval T1In the second time interval T2 in addition, will be stored in the second data portion in this at least one MTP into Row extraction, is written in the NVM.
In one embodiment, the MTP is configured as including 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 improving common block list data access efficiency is provided, including:It is 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, if wherein selection store to NVM, extract the first data in the energy consumption measurement data 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 is containing electricity, clock CLK.
In one embodiment, the NVM selects FLASH units, the MTP to select FRAM units.
In one embodiment, the CPU is configured as in third time cycle interval T3In addition, it deletes in MTP The second data portion.

Claims (4)

1. a kind of table storage medium, is electrically coupled to the CPU inside table to store and comes from processing data therein, feature exists In:The storage medium include nonvolatile memory NVM and can flash memory MTP infinitely, the non-volatile memories Device NVM exchanges processing data by parallel serial ports, described to exchange processing number by SPI interface by flash memory MTP infinitely According to, wherein the nonvolatile memory NVM be configured as storage the first data portion, it is described can unlimited flash memory MTP is configured as the second data portion of storage;
The CPU is configured as:Other than a first time interval T1, nonvolatile memory is written into the first data portion In NVM;It, can be infinitely in flash memory MTP by the write-in of the second data portion within this first time interval T1;At one In the second time interval T2 other than first time interval T1, by be stored in can infinitely in flash memory MTP the second number According to partly extracting, be written in the nonvolatile memory NVM;In the third other than a first time interval T1 Between in period distances T3, the first data portion and the second data portion that will be stored in the nonvolatile memory NVM It is merged according to preset clock CLK;Other than third time cycle interval T3, deletion can unlimited flash memory The second data portion in MTP.
2. a kind of table storage medium, is electrically coupled to the CPU inside table to store and comes from processing data therein, feature exists In:The storage medium include nonvolatile memory NVM and can flash memory MTP infinitely, the non-volatile memories Device NVM exchanges processing data by parallel serial ports, described to exchange processing number by SPI interface by flash memory MTP infinitely According to, wherein the nonvolatile memory NVM be configured as storage the first data portion, it is described can unlimited flash memory MTP is configured as the second data portion of storage;
The CPU is configured as:Other than a first time interval T1, the first data portion and the second data portion are distinguished In the write-in nonvolatile memory NVM;It, can be unlimited by the write-in of the second data portion within this first time interval T1 In secondary flash memory MTP;In the third time cycle interval T3 other than a first time interval T1, it will be stored in described Nonvolatile memory NVM in the first data portion merged according to preset clock CLK with the second data portion; Other than third time cycle interval T3, the second data portion that can infinitely in flash memory MTP is deleted.
3. table storage medium according to claim 1 or 2, it is characterised in that:First data portion includes electricity It includes electricity, clock CLK to press qualification rate, electrical power, second data portion.
4. table storage medium according to claim 1 or 2, it is characterised in that:The nonvolatile memory NVM is selected FLASH units, it is described to select FRAM units by flash memory MTP infinitely.
CN201410705962.7A 2014-12-01 2014-12-01 A kind of table storage medium Active CN104699421B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410705962.7A CN104699421B (en) 2014-12-01 2014-12-01 A kind of table storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410705962.7A CN104699421B (en) 2014-12-01 2014-12-01 A kind of table storage medium

Publications (2)

Publication Number Publication Date
CN104699421A CN104699421A (en) 2015-06-10
CN104699421B true CN104699421B (en) 2018-08-24

Family

ID=53346602

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410705962.7A Active CN104699421B (en) 2014-12-01 2014-12-01 A kind of table storage medium

Country Status (1)

Country Link
CN (1) CN104699421B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109901787A (en) * 2017-12-08 2019-06-18 比亚迪股份有限公司 The storage of energy-storage battery parameter, read method, device and equipment in energy-storage system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5473776A (en) * 1992-02-20 1995-12-05 Hitachi, Ltd. Data backup method and data processing system having data maintenance function
CN102004656A (en) * 2010-12-11 2011-04-06 九江中弘电子科技有限公司 Redundancy backup and security updating technology of vehicle integration information liquid crystal display and control platform
CN202939193U (en) * 2012-11-26 2013-05-15 哈尔滨理工大学 Single-phase intelligent multi-user remote cost control electric energy meter
CN103500131A (en) * 2013-09-18 2014-01-08 华为技术有限公司 Storage system power-failure data backup method and storage system controller

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5473776A (en) * 1992-02-20 1995-12-05 Hitachi, Ltd. Data backup method and data processing system having data maintenance function
CN102004656A (en) * 2010-12-11 2011-04-06 九江中弘电子科技有限公司 Redundancy backup and security updating technology of vehicle integration information liquid crystal display and control platform
CN202939193U (en) * 2012-11-26 2013-05-15 哈尔滨理工大学 Single-phase intelligent multi-user remote cost control electric energy meter
CN103500131A (en) * 2013-09-18 2014-01-08 华为技术有限公司 Storage system power-failure data backup method and storage system controller

Also Published As

Publication number Publication date
CN104699421A (en) 2015-06-10

Similar Documents

Publication Publication Date Title
CN105745714B (en) Flash memory system based on temperature maintains
CN103635968B (en) Comprise equipment and the correlation technique of memory system controller
US8874942B2 (en) Asynchronous management of access requests to control power consumption
CN101656106B (en) Method for writing data into EEPROM and device thereof
CN104424112B (en) Data storage device and flash memory control method
CN104239229B (en) Data storage device and data reading method for flash memory
CN108984336A (en) The heat shutoff of processing storage equipment
CN102063943A (en) Nand flash memory parameter automatic detecting system
CN104346296A (en) Data storage device and voltage protection method thereof
CN105278875B (en) A kind of mixing isomery NAND solid state hard disk
Chen et al. Heating dispersal for self-healing NAND flash memory
CN103914397B (en) Flash memory device and its management method
CN102456404A (en) NVM (nonvolatile memory) storage device, memory controller and data storage method
CN104346292A (en) Method for managing a memory device, memory device and controller
CN107179877A (en) Data transmission method, memorizer control circuit unit and memory storage apparatus
CN103729143A (en) Data safety method for electric energy data storage of multi-path electricity meter
CN101308701A (en) Apparatus and method of managing mapping table of non-volatile memory
CN103488582B (en) Write the method and device of cache memory
CN104699421B (en) A kind of table storage medium
CN204129729U (en) A kind of Flash storage control system based on DMA transmission
CN107817943A (en) Data transmission method, memory storage apparatus and memorizer control circuit unit
CN206331414U (en) A kind of solid state hard disc
CN105718205B (en) Improve the method and common block list of common block list data access efficiency
TWI536392B (en) Non-volatile memory storage apparatus, memory controller and data storage method
TWI619015B (en) Memory controller and memory control method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: HOLLEY Technology Park No. 181 310023 Hangzhou city Zhejiang District of Yuhang province Wuchang Avenue

Applicant after: HOLLEY METERING LIMITED

Address before: HOLLEY Technology Park No. 181 310023 Hangzhou city Zhejiang District of Yuhang province Wuchang Avenue

Applicant before: Holley Metering Ltd.

COR Change of bibliographic data
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Ma Xiaohui

Inventor after: Zhao Qiang

Inventor after: Wei Ping

Inventor after: Xu Yimin

Inventor before: Zhao Qiang

Inventor before: Wei Ping

Inventor before: Xu Yimin

GR01 Patent grant
GR01 Patent grant