CN106503594B - The date storage method of intellectual water meter - Google Patents
The date storage method of intellectual water meter Download PDFInfo
- Publication number
- CN106503594B CN106503594B CN201610960901.4A CN201610960901A CN106503594B CN 106503594 B CN106503594 B CN 106503594B CN 201610960901 A CN201610960901 A CN 201610960901A CN 106503594 B CN106503594 B CN 106503594B
- Authority
- CN
- China
- Prior art keywords
- storage
- data
- memory
- water meter
- page
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/70—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
- G06F21/78—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data
- G06F21/79—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data in semiconductor storage media, e.g. directly-addressable memories
-
- 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/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0706—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
- G06F11/0733—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a data processing system embedded in an image processing device, e.g. printer, facsimile, scanner
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Quality & Reliability (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
- Measuring Volume Flow (AREA)
Abstract
The invention discloses a kind of date storage methods of intellectual water meter, and the storage of data is carried out using the area flash that Intelligent water meter controller carries, specifically includes the information content for obtaining and needing data to be saved and inquiring the memory block flash;Judge the state of all memory pages in the memory block flash, and data to be saved will be needed to store the memory block flash according to the state of memory page.Storage method provided by the invention does not use additional storage chip storing data, therefore low in cost, and simplifies circuit design;The area flash of controller is all read protection configuration; therefore storage information can not be stolen by extraneous means; the data information of water meter is more safe and reliable; even if when time data storage is abnormal; historical data will not be destroyed easily, can give historical data reduction loss for change by reading last memory page data information;The method of the present invention, data storage is quick reliable and low in cost, applied widely.
Description
Technical field
Present invention relates particularly to a kind of date storage methods of intellectual water meter.
Background technique
With the development and the improvement of people's living standards of national economy technology, intelligence instrument has been widely used for people
Daily life in, play very important effect.
Intellectual water meter as the metering unit in water system, the importance of continuous data, operational data etc. do not say and
Analogy.Intellectual water meter data storage is a very important function, it saves the data on flows of water meter, recharge amount, consumption
The important parameters information such as information, communication, and require for significant data information to be unanimously saved in several years more than water meter service life
Time clears matters so as to later period water meter operation and maintenance and with client;Intellectual water meter saves the general holding time of data at present
It is 8 years, data save once daily.In order to reliably and with long-term, the data of safety assurance intellectual water meter storage, make its data be not easy to lose
Mistake is lost or occurred, is that data preservation is carried out using separate storage chip using general approach.This scheme has following defects that
It is at high cost, utilization rate is low;Circuit design is relative complex, and the EMC performance of separate storage chip is low, and data transmission anti-interference is poor,
Need to increase complicated protection device;Easily stolen to take or destroy, separate storage chip does not support secrecy provision generally, and operates association
View is standard public information, can steal and modify the data in memory by extraneous means, and the management such as water supply company is caused to look forward to
The loss of industry;SAM Stand Alone Memory capacity is directly proportional to cost, carries out data exception protection without spare capacity.If encountering data
Storage is abnormal, and not only when secondary data can not save, the data of Historic preservation, which also go to pot, to be restored.
Summary of the invention
The purpose of the present invention is to provide a kind of data of the quick reliable and low-cost intellectual water meter of data storage
Storage method.
The date storage method of this intellectual water meter provided by the invention, the flash carried using Intelligent water meter controller
Area carries out the storage of data, and storage method includes the following steps:
S1. when needing to carry out data storage, the memory block flash for needing data to be saved and inquiring controller is obtained
The information content of interior all memory pages;
S2. judge the state of all memory pages in the memory block flash:
If all memory pages are the blank section page not operated, the number that currently will need to store in the memory block flash
Enter first memory page according to saving with storage time;
If all memory pages are non-empty white area and the memory page there are blank in the memory block flash, when time water is believed
Breath and storage time are stored in corresponding memory page;
If all memory pages are non-empty white area in the memory block flash, storage time and intelligence in all memory pages are inquired
Can water meter runing time closest to which memory page;
S3. the position for the memory page that judgment step S2 is obtained:
If the memory page is not located at the end of the blank area, water data information and storage time are stored in this memory page
Next page number memory block in;
If the memory page is located at the end of the blank area, water data information and storage time are stored in this memory page
In homepage memory block.
The date storage method of the intellectual water meter, further includes following steps:
S4. step S1 ~ S3 is repeated, until the data of institute's some need storage all complete by storage, that is, completes intelligent water
The data of table store.
Described in step S2 then ought time water amount information and storage time be stored in corresponding memory page, specially will be by page
Sequence is when in time water amount information and the corresponding memory page of storage time deposit number from small to large.
The date storage method of this intellectual water meter provided by the invention is carried out due to not using additional storage chip
The storage of data, therefore cost is reduced, and simplify circuit design;Further, since the area flash of controller is all read protection
Configuration, therefore storage information can not be stolen by extraneous means, so that the data information of metering water meter is more safe and reliable;Most
Afterwards, since the every page preservation data information project in the region flash of controller is the same, even if when time data storage generation is different
Often, historical data will not be destroyed easily, can give historical data reduction damage for change by reading last memory page data information
It loses.Date storage method of the invention, it is applied widely, it is applicable not only to intellectual water meter, is also applied for can be used for all types of
Intelligent metering instrument, such as intelligent electric energy meter, intelligent gas meter, intelligent calorimeter etc., it can also be used to which other any need utilize
The electronic equipment of flash pages of progress data storage of controller, including electric energy management terminal, distribution terminal, electric energy quality monitoring
Equipment, grid automation terminal, acquisition terminal, concentrator, data collector, measuring instrument write by hand device etc..
Detailed description of the invention
Fig. 1 is the flow chart of the method for the present invention.
Specific embodiment
It is as shown in Figure 1 the flow chart of the method for the present invention: the date storage method of this intellectual water meter provided by the invention,
The storage of data is carried out using the area flash that Intelligent water meter controller carries, and storage method includes the following steps:
S1. when needing to carry out data storage, the memory block flash for needing data to be saved and inquiring controller is obtained
The information content of interior all memory pages;
S2. judge the state of all memory pages in the memory block flash:
If all memory pages are the blank section page not operated, the number that currently will need to store in the memory block flash
Enter first memory page according to saving with storage time;
If in the memory block flash all memory pages be non-empty white area and the memory page there are blank, by page number from it is small to
Big sequence is when in time water amount information and the corresponding memory page of storage time deposit;
If all memory pages are non-empty white area in the memory block flash, storage time and intelligence in all memory pages are inquired
Can water meter runing time closest to which memory page;
S3. the position for the memory page that judgment step S2 is obtained:
If the memory page is not located at the end of the blank area, water data information and storage time are stored in this memory page
Next page number memory block in;
If the memory page is located at the end of the blank area, water data information and storage time are stored in this memory page
In homepage memory block.
S4. step S1 ~ S3 is repeated, until the data of institute's some need storage all complete by storage, that is, completes intelligent water
The data of table store.
Claims (3)
1. a kind of date storage method of intellectual water meter, the area flash carried using Intelligent water meter controller carries out depositing for data
Storage, and storage method includes the following steps:
S1. when needing to carry out data storage, obtaining needs data to be saved and inquires institute in the memory block flash of controller
There is the information content of memory page;
S2. judge the state of all memory pages in the memory block flash:
If in the memory block flash all memory pages be do not operate blank section page, by the data for currently needing to store with
Storage time, which saves, enters first memory page;
If all memory pages are non-empty white area and the memory page there are blank in the memory block flash, when time water amount information with
Storage time is stored in corresponding memory page;
If all memory pages are non-empty white area in the memory block flash, storage time and intelligent water in all memory pages are inquired
Table runing time is closest to which memory page;
S3. the position for the memory page that judgment step S2 is obtained:
If the memory page is not located at the end of the blank area, water data information and storage time are stored under this memory page
In one page number memory block;
If the memory page is located at the end of the blank area, water data information and storage time are stored in the homepage of this memory page
In number memory block.
2. the date storage method of intellectual water meter according to claim 1, it is characterised in that the number of the intellectual water meter
Further include following steps according to storage method:
S4. step S1 ~ S3 is repeated, until the data of institute's some need storage all complete by storage, that is, completes intellectual water meter
Data storage.
3. the date storage method of intellectual water meter according to claim 1 or 2, it is characterised in that then will described in step S2
It, specially will be by page number from small to large sequentially when secondary water when secondary water amount information and storage time are stored in corresponding memory page
Information and storage time are stored in corresponding memory page.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610960901.4A CN106503594B (en) | 2016-11-04 | 2016-11-04 | The date storage method of intellectual water meter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610960901.4A CN106503594B (en) | 2016-11-04 | 2016-11-04 | The date storage method of intellectual water meter |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106503594A CN106503594A (en) | 2017-03-15 |
CN106503594B true CN106503594B (en) | 2019-05-07 |
Family
ID=58322568
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610960901.4A Active CN106503594B (en) | 2016-11-04 | 2016-11-04 | The date storage method of intellectual water meter |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106503594B (en) |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102243611B (en) * | 2010-05-11 | 2015-06-17 | 深圳市朗科科技股份有限公司 | Data storage method and system |
CN103198574B (en) * | 2013-03-19 | 2015-09-02 | 成都秦川科技发展有限公司 | Be embedded with the remote-control intelligent water meter of information security management module |
CN103199993B (en) * | 2013-03-19 | 2015-12-30 | 成都秦川科技发展有限公司 | Be embedded with the IC-card intellectual water meter of information security management module |
CN103152166B (en) * | 2013-03-19 | 2015-08-26 | 成都秦川科技发展有限公司 | Remote-control intelligent water meter information security management module |
-
2016
- 2016-11-04 CN CN201610960901.4A patent/CN106503594B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN106503594A (en) | 2017-03-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101477162B (en) | Energy consumption monitoring terminal | |
CN101477163B (en) | Method for monitoring electric consumption | |
CN207051425U (en) | A kind of power transmission line lightning shielding stream on-Line Monitor Device | |
CN103217648A (en) | Control system application structure of fuel cell testing platform | |
CN204649936U (en) | A kind of plurality of groups of storage batteries fast inspection device | |
CN203433025U (en) | Intelligent monitor for electricity larceny prevention | |
CN105737338B (en) | Information about power calculation method, device, multi-gang air-conditioner device system and its outer machine | |
CN106503594B (en) | The date storage method of intellectual water meter | |
CN204391674U (en) | A kind of communication chip real-time voltage monitoring device | |
CN105243814A (en) | Data collector for intelligent meter reading network system | |
CN202351339U (en) | Power quality monitoring device | |
CN101477164A (en) | Energy consumption monitoring system | |
CN105676044A (en) | Online test method and system for lightning arrester and monitor thereof | |
CN202058180U (en) | Intelligent power distribution monitoring device with SD card | |
CN105389746A (en) | Method and system for detecting electric power data | |
CN206210098U (en) | Multiple types automatic data collection device based on GPRS | |
CN207557732U (en) | A kind of intelligence transposition case | |
CN203552355U (en) | Single-phase and wide-range intelligent prepayment electric energy meter | |
CN206906814U (en) | Network intelligence measure and control instrument | |
CN105334794A (en) | Intelligent building management system | |
CN205229235U (en) | Waterproof type smart electric meter of low -power consumption | |
CN202974326U (en) | Automatic monitor system for liquid substance in pipeline | |
CN203825138U (en) | Terminal electric leakage monitor | |
CN203204043U (en) | Single-phase local charge-control electric energy meter | |
CN202916922U (en) | Oiling machine data collecting device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |