CN106445422A - Method and device for storing large volume data of electric energy meter - Google Patents
Method and device for storing large volume data of electric energy meter Download PDFInfo
- Publication number
- CN106445422A CN106445422A CN201610901551.4A CN201610901551A CN106445422A CN 106445422 A CN106445422 A CN 106445422A CN 201610901551 A CN201610901551 A CN 201610901551A CN 106445422 A CN106445422 A CN 106445422A
- Authority
- CN
- China
- Prior art keywords
- memory
- deposited
- markers
- information
- less
- 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.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 238000013500 data storage Methods 0.000 claims description 24
- 230000005611 electricity Effects 0.000 claims description 16
- 230000002123 temporal effect Effects 0.000 description 7
- 238000000151 deposition Methods 0.000 description 2
- 235000013399 edible fruits Nutrition 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000005055 memory storage Effects 0.000 description 2
- PEDCQBHIVMGVHV-UHFFFAOYSA-N Glycerine Chemical compound OCC(O)CO PEDCQBHIVMGVHV-UHFFFAOYSA-N 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000001186 cumulative effect Effects 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 239000011800 void material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R11/00—Electromechanical arrangements for measuring time integral of electric power or current, e.g. of consumption
- G01R11/02—Constructional details
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0614—Improving the reliability of storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0673—Single storage device
- G06F3/0679—Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- Measurement Of Unknown Time Intervals (AREA)
Abstract
The invention discloses a method for storing large volume data of an electric energy meter. The method comprises the following steps: acquiring first to-be-stored information; storing the first to-be-stored information to a first memory; judging whether a value of a first time scale is less than a first preset time; if the value of the first time scale is not less than the first preset time, storing the to-be-stored information in the first memory to a second memory and removing the data in the first memory; otherwise, acquiring second to-be-stored information; storing the second to-be-stored information to the first memory; judging whether the value of the second time scale is less than the first preset time; if not, storing the to-be-stored information in the first memory to the second memory and removing the data in the first memory. Before the to-be-stored information is stored to the second memory, the method further comprises the step of acquiring the maximal time scale in the second memory and confirming the maximal time scale in the second memory that is more than the second time scale.
Description
Technical field
The present invention relates to power domain, and more particularly, to a kind of electric energy meter mass data storage method and dress
Put.
Background technology
Electric energy meter is used to measure the instrument of electric energy, also known as kilowatt-hour meter, in current design, in intelligent electric energy meter
Metering core basis energy data storage need to meet forward and reverse active energy 1min memory gap, and first, second, third and fourth as
Limit reactive energy 15min memory gap, storage depth is not less than 1 year, and for ensureing the safety of data, data is frequently with three
The mode preserving, data volume is very big (can exceed 20MByte), and therefore, the storage for electric energy meter data does not require nothing more than memorizer
Capacity is big, and also needs to it and have longer reading-writing life-span.
The existing memorizer that can be used for electric energy meter data storage has EEPROM EEPROM
(Electrically Erasable Programmable Read-Only Memory, EEPROM) and Flash flash memory (Flash
Memory, Flash flash memory), EEPROM reading-writing life-span is long, can exceed 1,000,000 times, but its memory capacity is limited;Flash storage is held
Amount is big, but it, before write data, if storage is not empty, need to carry out erasing operation, not only the erasing time is long, and efficiency is low, and
And erasing times are usually no more than 100,000 times, service life is shorter, and the defect of above two memorizer frequently can lead to electric energy meter
The storage of Large Volume Data is restricted.
Therefore, how to improve the storage efficiency of electric energy meter Large Volume Data, the service life of extended menory, and then improve
The safety of electric energy meter data storage, becomes a problem to be solved.
Content of the invention
In order to solve the above problems, the invention provides a kind of electric energy meter mass data storage method, methods described bag
Include:
First information to be deposited of acquisition, described first information to be deposited includes the first markers and the first data, wherein said markers
Including the start time point obtaining electricity and end time point;
By the described first information Store to be deposited to first memory;
Judge when described first, whether target value is less than the first Preset Time, when wherein said, target value is included from acquisition electricity
The end time point of amount and the difference of start time point;And
If when described first, target value is not less than described first Preset Time, by the information to be deposited in described first memory
Store to second memory, and wipe the data in described first memory.
Preferably, wherein said method also includes:
If target value is less than described first Preset Time when described first, obtain the second information to be deposited, described second waits to deposit
Information includes the second markers and the second data;
By the described second information Store to be deposited to described first memory;
Judge when described second, whether target value is less than described first Preset Time;And
If when described second, target value is not less than described first Preset Time, by the information to be deposited in described first memory
Store to described second memory, and wipe the data in described first memory.
Preferably, wherein will information Store be deposited to before described second memory, further include:Obtain described
Maximum markers in two memorizeies, and confirm the maximum markers that described second markers is more than in described second memory.
Preferably, also include after the maximum markers wherein in obtaining described second memory:
Judge during described maximum, whether target value is less than the second Preset Time;And
If target value is not less than described second Preset Time when described maximum, wipe minimum markers in described second memory
Corresponding storage information.
Preferably, methods described also includes:If target value is less than described second Preset Time when described maximum, execution is described
Judge described second markers whether more than described maximum markers.
Preferably, if target value is less than described first Preset Time when described second, continue executing with and obtain information to be deposited and enter
The step of row storage.
Present invention also offers a kind of electric energy meter bulk data storage device, described device includes:
First acquisition module, for obtaining the first information to be deposited, described first information to be deposited includes the first markers and first
Data, wherein said markers includes start time point and the end time point obtaining electricity;
First memory module, for by the described first information Store to be deposited to first memory;
First judge module, for judging when described first, whether target value is less than the first Preset Time, when wherein said
Target value includes the difference of the end time point from acquisition electricity and start time point;And
Second memory module, if be not less than described first Preset Time for target value when described first, by described the
Information Store to be deposited in one memorizer is to second memory, and wipes the data in described first memory.
Preferably, described electric energy meter bulk data storage device also includes:
Described first acquisition module is additionally operable to, if target value is less than described first Preset Time when described first, obtains the
Two information to be deposited, described second information to be deposited includes the second markers and the second data;
Described first memory module is additionally operable to the described second information Store to be deposited to described first memory;
Described first judge module is additionally operable to judge when described second, whether target value is less than described first Preset Time;With
And
If described second memory module is additionally operable to target value when described second is not less than described first Preset Time, will be described
Information Store to be deposited in first memory is to described second memory, and wipes the data in described first memory.
Preferably, described electric energy meter bulk data storage device also includes:
Second acquisition module, if be not less than described first Preset Time for target value when described second, in information to be deposited
Store to before described second memory, obtain the maximum markers in described second memory.
Preferably, described electric energy meter bulk data storage device also includes:
Second judge module, for judging described maximum after the described maximum markers obtaining in described second memory
When target value whether be less than the second Preset Time;And
Erasing module, if being no less than described second Preset Time for target value during described maximum, wipes described second
The minimum corresponding storage information of markers in memorizer.
Preferably, described electric energy meter bulk data storage device also includes:
3rd judge module, if being less than described second Preset Time for target value when judging described maximum, judges described
Whether the second markers is more than described maximum markers.
Preferably, described electric energy meter bulk data storage device also includes:
Control module, if being less than described second Preset Time for target value during described maximum, executes described judgement institute
Whether state the second markers more than described maximum markers.
Preferably, if described control module is additionally operable to target value when described second and is less than described first Preset Time, continue
Execution obtains the step that information to be deposited is stored.
Preferably, a kind of electric energy meter for storing Large Volume Data, including:
First memory, for storing the first information to be deposited, wherein said first information to be deposited includes the first markers and the
One data, wherein said markers includes start time point and the end time point obtaining electricity;
Controller, judges when described first whether target value is less than the first Preset Time, if target value is not when described first
Less than the first Preset Time, treat information Store to be deposited in first memory to after second memory, controller erasing is described
Information to be deposited in first memory, when wherein said, target value is included from the end time point obtaining electricity and start time point
Difference;And
Second memory, is derived from the information to be deposited of described first memory for storage.
The beneficial effects of the present invention is:
A kind of electric energy meter mass data storage method that the present invention provides is it is adaptable to (first deposits using two memorizeies
Reservoir and second memory) electric energy meter, by by first memory storage time meet the first Preset Time storage letter
Breath is transferred to second memory automatically, and the storage information being transferred in second memory meets the second Preset Time in storage time
When, the meeting auto-erasing storage information of earliest a day, with to the storage information headspace being stored into, so, the first storage
Only retain the storage information of nearest a day in device, retain the storage information of a year in second memory it is achieved that storage information exists
Temporary in first memory, meet and be transferred to, during condition, the function that second memory is stored for a long time again, that is,
Say while reducing the storage capacity requirement to first memory, decrease the read-write number of times of second memory, not only carry
The high storage efficiency of electric energy meter data, and extend the service life of memorizer, and then improve electric energy meter Large Copacity number
Safety and reliability according to storage.
This invention effectively avoids that in electric energy meter design prior art, EEPROM memory capacity is little, Flash flash memory wiping/writing
Number of times is low and the shortcoming of erasable time length, while preserving Large Volume Data, improves Information Security.
Brief description
By reference to the following drawings, the illustrative embodiments of the present invention can be more fully understood by:
Fig. 1 is the flow chart of the storage method 100 according to embodiment of the present invention;
Fig. 2 is the flow chart of the further storage method 200 according to embodiment of the present invention;
Fig. 3 is the flow chart of the further storage method 300 according to embodiment of the present invention;
Fig. 4 is the structural representation of the storage device 400 according to embodiment of the present invention;And
Fig. 5 is the flow chart of the storage method 500 according to embodiment of the present invention.
Specific embodiment
With reference now to accompanying drawing, introduce the illustrative embodiments of the present invention, however, the present invention can be with many different shapes
Formula is implementing, and is not limited to embodiment described herein, provides these embodiments to be at large and fully disclose
The present invention, and fully pass on the scope of the present invention to person of ordinary skill in the field.For showing of being illustrated in the accompanying drawings
Term in example property embodiment is not limitation of the invention.In the accompanying drawings, identical cells/elements use identical attached
Icon is remembered.In describing the invention, it should be noted that term " first ", " second ", " the 3rd " are only used for describing purpose,
And it is not intended that indicating or hint relative importance.
Unless otherwise stated, term (inclusion scientific and technical terminology) used herein has to person of ordinary skill in the field
Common understand implication.Further it will be understood that the term being limited with the dictionary that is usually used is it should be understood to and it
The linguistic context of association area has consistent implication, and is not construed as Utopian or excessively formal meaning.
Fig. 1 is the flow chart of the storage method 100 according to embodiment of the present invention.As shown in figure 1, storage method 100 is used
In storing to electric energy meter Large Volume Data.Wherein below described markers include obtaining electricity start time point and at the end of
Between point, when described, target value includes the difference from end time point and the start time point obtaining electricity.Methods described 100 is from step
Start at rapid S101, obtain the first information to be deposited in step S101, described first information to be deposited includes the first markers and the first number
According to.Such as, the time interval of acquisition is one minute, and the first of acquisition is to be designated as 12 during including first wait the information of depositing:00-12:01,
First data electricity is 1 degree.
Preferably, in step S102 by the described first information Store to be deposited to first memory.First memory is excellent herein
First adopt eeprom memory.
Preferably, when step S103 judges described first, whether target value is less than the first Preset Time.This first preset
Time is the maximum storage time set in advance of first memory, and the such as first Preset Time is set to 1 day, then pass through to judge
When first, whether target value meets and determines whether over 1 day that the information to be deposited by first memory is transferred to second memory, such as
Fruit meet, that is, first when target value then enter step S104 not less than described first Preset Time, otherwise entrance step S105.Excellent
Selection of land, if step S104 described first when target value be not less than described first Preset Time, by described first memory
Information Store to be deposited is to second memory, and wipes the data in described first memory.For example, setting the first Preset Time is
1 day, the first information to be deposited of acquisition included:First markers is first day 12:00 to the second day 12:00, the first data is this
It total electricity, when corresponding first, target value is one day, now first when target value be not less than the first Preset Time, just automatically
Temporary information to be deposited in the first memory is transferred to second memory.
Fig. 2 is the flow chart of the further storage method 200 according to embodiment of the present invention.As shown in Fig. 2 in step
If S105 described first when target value be less than described first Preset Time, obtain the second information to be deposited, described second information to be deposited
Including the second markers and the second data, if that is, the time corresponding to the first markers be not reaching to the first Preset Time, then continue
Continuous acquisition the second information to be deposited, the first markers described herein is less than described second markers, obtains every time after the information of depositing, at that time
Clock time is cumulative.
Preferably, in step S106 by the described second information Store to be deposited to described first memory, that is, get the
Two information to be deposited also will be kept in the first memory.
Preferably, when step S107 judges described second, whether target value is less than described first Preset Time, further
Time corresponding to second markers is judged, if it is judged that for otherwise entering step S108, otherwise entering step
S121.
Preferably, if step S108 described second when target value be not less than described first Preset Time, obtain described the
Maximum markers in two memorizeies, if the second markers corresponding time reached the first Preset Time (such as 1 day), that is, first
Information memory capacity in memorizer has reach 1 day, then obtain the maximum markers in second memory, and this maximum markers corresponds to
The nearest data message being stored in for a day.
Preferably, whether judge described second markers more than described maximum markers in step S109, during by judging second
Mark whether the corresponding time determines whether information unloading more than the maximum markers corresponding time getting, if it is determined that knot
Fruit is yes, then enter step S110, otherwise not unloading.
Preferably, if being more than described maximum markers in described second markers of step S110, illustrate that second memory meets number
According to the time conditions of unloading, then by the information Store to be deposited in described first memory to described second memory, and wipe institute
State the data in first memory.If the second markers is less than described maximum markers, directly terminate.Such as, second when be designated as 8
The 9 of the moon 2:00, second memory maximum when be designated as the 9 of August 1 day:00, then meet storage condition, by first memory
Information to be deposited is transferred to second memory, and wipes the data in first memory.
Preferably, if step S121 described second when target value be less than described first Preset Time, i.e. first memory
In the quantity of information also less than 1 day for the information memory capacity, then continue executing with and obtain the step that information to be deposited is stored.
Fig. 3 is the flow chart of the further storage method 300 according to embodiment of the present invention.As shown in figure 3, as one
Plant and be preferably chosen scheme, whether little also should include the target value when step S1081 judges described maximum after step S108
In the second Preset Time, if it is judged that being yes, then entering step S1083 (i.e. step S109), otherwise entering step
S1082.Preferably, if target value is no less than described second Preset Time when step S1082 is described maximum, erasing is described
The minimum corresponding storage information of markers in second memory, with to the storage information headspace being stored into second memory.
If when step S1083 is described maximum, target value is less than described second Preset Time, i.e. storage information in second memory
Amount is also not up to predetermined maximum, then execute described judge described second markers whether target step during more than described maximum, continue
Continuous unloading.
Fig. 4 is the structural representation of the storage device 400 according to embodiment of the present invention.As shown in figure 4, the present embodiment carries
For electric energy meter bulk data storage device 400 include:First acquisition module 41, the first memory module 42, first judge mould
Block 43, the second memory module 44, the second acquisition module 45, the second judge module 46, the 3rd judge module 47, erasing module 48 and
Control module 49.First acquisition module 41 is used for obtaining the first information to be deposited, described first information to be deposited include the first markers and
First data;First memory module 42 is used for the described first information Store to be deposited to first memory;First judge module 43
For judging when described first, whether target value is less than the first Preset Time;If the second memory module 44 is used for described first markers
Value be not less than described first Preset Time, being needed in described first memory is deposited information Store to second memory,
And wipe the data in described first memory.
Preferably, if described first acquisition module 41 be additionally operable to when described first target value be less than described first default when
Between, obtain the second information to be deposited, described second information to be deposited includes the second markers and the second data;Described first memory module 42
It is additionally operable to the described second information Store to be deposited to described first memory;It is described that described first judge module 43 is additionally operable to judgement
When second, whether target value is less than described first Preset Time;If described second memory module 44 is additionally operable to target when described second
Value is not less than described first Preset Time, by the information Store to be deposited in described first memory to described second memory, and
Wipe the data in described first memory.
Described electric energy meter bulk data storage device 400 also includes:If the second acquisition module 45 is used for described second
Target value is not less than described first Preset Time, before information Store to be deposited to described second memory, obtains described second
Maximum markers in memorizer;Second judge module 46 is used for after the described maximum markers obtaining in described second memory
Judge during described maximum, whether target value is less than the second Preset Time;And if target value when erasing module 48 is used for described maximum
It is no less than described second Preset Time, wipe the minimum corresponding storage information of markers in described second memory.
Described electric energy meter bulk data storage device 400 also includes:If the 3rd judge module 47 is used for described maximum
Whether target value is less than described second Preset Time, judge described second markers more than described maximum markers.
Preferably, also include:If target value is less than described second Preset Time when control module 49 is used for described maximum,
Whether execution is described judges target value when described second more than the step of target value during described maximum.
Preferably, if described control module 49 is additionally operable to target value when described second and is less than described first Preset Time, continue
Continuous execution obtains the step that information to be deposited is stored.
Above-mentioned electric energy meter bulk data storage device 400 is it is adaptable to adopt two memorizeies (first memory and second
Memorizer) electric energy meter, by by first memory storage time meet the first Preset Time (such as one day) storage letter
Breath is transferred to second memory automatically, and the storage information being transferred in second memory meets the second Preset Time in storage time
When (such as 365 days, that is, 1 year), the meeting auto-erasing storage information of earliest a day, to reserve to the storage information being stored into
Space, so, only retains the storage information of nearest a day in first memory, retain the storage letter of a year in second memory
Breath, it is achieved that storage information is kept in the first memory, meets when being transferred to second memory again during condition and carrying out long
Between storage function that is to say, that while reducing the storage capacity requirement to first memory, decreasing the second storage
The read-write number of times (second memory is only once read and write for one day) of device, not only increases the storage efficiency of electric energy meter data, and
And extend the service life of memorizer, and then improve the safety and reliability of electric energy meter mass data storage.
Present embodiments provide a kind of electric energy meter data storage implementation method in actual applications, first memory
EEPROM and second memory Flash.In wherein EEPROM can with the energy data in real-time storage the most every 1 minute,
The energy data of other times is all regularly saved in Flash.
Eeprom memory is described as follows:As a kind of concrete implementation mode, open up two in EEPROM and deposit
Storage area, i.e. the first memory block and the second memory block, can be used for storing the storage information of two days, alternately erasable using two memory blocks
Mode data storage.In electric energy meter normal work, at two memory spaces only, deposit data, another place is sky.Than
If, storage information (i.e. information to be deposited) is in the first memory block, when the first memory block storage in EEPROM full 1 day of quantity of information (i.e.
First Preset Time is set to 1 day) when, this storage information is write in Flash, the storage letter in simultaneously erased first memory block
Breath, the information to be deposited (being the information to be stored of first minute point of next day) that electric energy meter got in next minute can deposit to
Second memory block, so, is realized two memory blocks and is carried out information Store in the way of rotation.Wherein, press storage information in Flash
The storage of markers sequential loop, when data storage amount full 1 year (i.e. the second Preset Time is 1 year), will cover earliest one day
Data, by that analogy.
Fig. 5 is the flow chart of the storage method 500 according to embodiment of the present invention.As shown in figure 5, comprising the steps:
S401:Ammeter trigger data per minute storage action, after current ammeter clock is organized with the data that need to store
Put into temporal cache;
S402:Read the data of memory block at two, judge whether its markers is all effective, if entering step S403, S404,
Otherwise enter step S411;
S403:Then compare temporal cache data markers whether more than two in memory block (the such as first memory block) larger
When the target date, judgement be enter step S405, otherwise enter step S408;
S404:Using the less valid data of markers in memory block at two as treating unloading data, subsequently into step S406;
S405:Using this temporal cache data as treating unloading data;
S406:Relatively treat whether the markers of unloading data is more than the markers of a nearest day data in Flash, if entering step
Rapid S407, otherwise terminates;
S407:By data conversion storage effective in EEPROM to Flash, subsequently into step S410;
S408:If target date when temporal cache data markers is not more than larger in memory block at two, judge interim
On target date when whether data cached markers is equal to larger in memory block at two, judgement is to enter step S409, otherwise terminates;
S409:Judge the time-division offset address of time-division in the markers of temporal cache canned data in corresponding EEPROM backward
The data of (including this point) whether void in whole, if entering step S410, otherwise terminates;
S410:Temporal cache data is write EEPROM;
S411:Judging whether the data in memory block at two has at one effectively, if entering step S403, otherwise entering step
Rapid S412;
S412:Data in temporal cache is stored in memory block at wherein the one of EEPROM;
The electric energy meter data storage that the present embodiment provides implementation method in actual applications, is adopted by first memory
EEPROM carries out real-time storage, second memory is timed storage using Flash flash memory, effectively avoids in prior art
EEPROM memory capacity is little, Flash flash memory wiping/writing number of times is low and the shortcoming of erasable time length, is preserving the same of Large Volume Data
When, improve Information Security.
The present invention is described by reference to a small amount of embodiment.However, known in those skilled in the art, as
Subsidiary Patent right requirement is limited, except present invention others disclosed above embodiment equally falls the present invention's
In the range of.
Normally, all terms using in the claims are all solved in the usual implication of technical field according to them
Release, unless in addition clearly defined wherein.All of reference "/described/be somebody's turn to do [device, assembly etc.] " is all opened ground
It is construed at least one of described device, assembly etc. example, unless otherwise expressly specified.Any method disclosed herein
Step all need not be run with disclosed accurate order, unless explicitly stated otherwise.
Claims (14)
1. a kind of electric energy meter mass data storage method is it is characterised in that include:
First information to be deposited of acquisition, described first information to be deposited includes the first markers and the first data, and wherein said markers includes
Obtain start time point and the end time point of electricity;
By the described first information Store to be deposited to first memory;
Judge when described first, whether target value is less than the first Preset Time, when wherein said, target value is included from acquisition electricity
End time point and the difference of start time point;And
If when described first, target value is not less than described first Preset Time, by the information Store to be deposited in described first memory
To second memory, and wipe the data in described first memory.
2. method according to claim 1 is it is characterised in that also include:
If target value is less than described first Preset Time when described first, obtain the second information to be deposited, described second information to be deposited
Including the second markers and the second data;
By the described second information Store to be deposited to described first memory;
Judge when described second, whether target value is less than described first Preset Time;And
If when described second, target value is not less than described first Preset Time, by the information Store to be deposited in described first memory
To described second memory, and wipe the data in described first memory.
3. method according to claim 2, wherein will information Store be deposited to before described second memory, further
Including:Obtain the maximum markers in described second memory, and confirm that described second markers is more than in described second memory
Maximum markers.
4. method according to claim 3 it is characterised in that described obtain described second memory in maximum markers
Also include afterwards:
Judge during described maximum, whether target value is less than the second Preset Time;And
If target value is not less than described second Preset Time when described maximum, wipes minimum markers in described second memory and correspond to
Storage information.
5. method according to claim 4 is it is characterised in that also include:If target value is less than described the when described maximum
Two Preset Times, whether execution is described judges described second markers more than described maximum markers.
If 6. the method according to claim 1 to 5 it is characterised in that when described second target value to be less than described first pre-
If the time, continue executing with and obtain the step that information to be deposited is stored.
7. a kind of electric energy meter bulk data storage device is it is characterised in that include:
First acquisition module, for obtaining the first information to be deposited, described first information to be deposited includes the first markers and the first data,
Wherein said markers includes start time point and the end time point obtaining electricity;
First memory module, for by the described first information Store to be deposited to first memory;
First judge module, for judging when described first, whether target value is less than the first Preset Time, target when wherein said
Value includes the difference of the end time point from acquisition electricity and start time point;And
Second memory module, if be not less than described first Preset Time for target value when described first, described first is deposited
Information Store to be deposited in reservoir is to second memory, and wipes the data in described first memory.
8. device according to claim 7 is it is characterised in that include:
Described first acquisition module is additionally operable to, if target value is less than described first Preset Time when described first, obtains second and treats
Deposit information, described second information to be deposited includes the second markers and the second data;
Described first memory module is additionally operable to the described second information Store to be deposited to described first memory;
Described first judge module is additionally operable to judge when described second, whether target value is less than described first Preset Time;And
If described second memory module is additionally operable to target value when described second is not less than described first Preset Time, by described first
Information Store to be deposited in memorizer is to described second memory, and wipes the data in described first memory.
9. device according to claim 8 is it is characterised in that include:Second acquisition module, if for described second markers
Value be not less than described first Preset Time, deposit to before described second memory, obtaining described second in information Store to be deposited
Maximum markers in reservoir.
10. device according to claim 9 is it is characterised in that include:
Second judge module, for judging described maximum markers after the described maximum markers obtaining in described second memory
Value whether be less than the second Preset Time;And
Erasing module, if being no less than described second Preset Time for target value during described maximum, described second storage of erasing
The minimum corresponding storage information of markers in device.
11. devices according to claim 10 are it is characterised in that include:
3rd judge module, if being less than described second Preset Time for target value during described maximum, judges described second markers
Whether more than described maximum markers.
12. devices according to claim 11 are it is characterised in that include:
Control module, if for described maximum when target value be less than described second Preset Time, execution is described to judge described the
Whether two markers are more than target step during described maximum.
13. if devices described according to Claim 8 to 12 are it is characterised in that when described control module is additionally operable to described second
Target value is less than described first Preset Time, continues executing with and obtains the step that information to be deposited is stored.
A kind of 14. electric energy meters for storing Large Volume Data, including:
First memory, for storing the first information to be deposited, wherein said first information to be deposited includes the first markers and the first number
According to wherein said markers includes start time point and the end time point obtaining electricity;
Controller, judges when described first whether target value is less than the first Preset Time, if target value is not less than when described first
First Preset Time, treats information Store to be deposited in first memory to after second memory, controller erasing described first
Information to be deposited in memorizer, when wherein said, target value includes the difference of the end time point from acquisition electricity and start time point
Value;And
Second memory, is derived from the information to be deposited of described first memory for storage.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610901551.4A CN106445422A (en) | 2016-10-17 | 2016-10-17 | Method and device for storing large volume data of electric energy meter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610901551.4A CN106445422A (en) | 2016-10-17 | 2016-10-17 | Method and device for storing large volume data of electric energy meter |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106445422A true CN106445422A (en) | 2017-02-22 |
Family
ID=58174261
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610901551.4A Withdrawn CN106445422A (en) | 2016-10-17 | 2016-10-17 | Method and device for storing large volume data of electric energy meter |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106445422A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116679891A (en) * | 2023-08-04 | 2023-09-01 | 青岛鼎信通讯股份有限公司 | Method, device and medium for storing total accumulated occurrence time of electric energy meter event |
-
2016
- 2016-10-17 CN CN201610901551.4A patent/CN106445422A/en not_active Withdrawn
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116679891A (en) * | 2023-08-04 | 2023-09-01 | 青岛鼎信通讯股份有限公司 | Method, device and medium for storing total accumulated occurrence time of electric energy meter event |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106199433B (en) | Impairment grade calculation method, control method and the control device of lithium ion secondary battery | |
CN100447749C (en) | Method of using flash memory for storing metering data | |
CN106383662A (en) | Electric energy meter large volume data storage method and apparatus | |
CN106776095A (en) | SSD solid state hard disc data reliability intelligent detecting methods and detection means | |
CN106772091A (en) | The update method of battery capacity value, device and terminal | |
CN105842633A (en) | Method for estimating SOC (State of Charge) of lithium ion battery based on gray extended Kalman filtering algorithm | |
DE102012200414A1 (en) | Method and device for determining a state of charge of an electrical energy store | |
CN104346236B (en) | Data storage device and data maintenance method thereof | |
CN105467321B (en) | The calculation method and battery system of the charging remaining time of battery | |
CN106445422A (en) | Method and device for storing large volume data of electric energy meter | |
CN107167739A (en) | A kind of electrokinetic cell life-span prediction method | |
CN115907429B (en) | PSO algorithm-based combined overflow optimization control method and device | |
CN109470918A (en) | The electricity data processing method and IR46 electric energy meter of IR46 electric energy meter | |
CN107507644A (en) | Storage arrangement and its operating method | |
CN105548907B (en) | New energy vehicle data record method based on battery management system | |
CN114356792B (en) | Electric energy meter frozen data storage method based on FLASH pre-erasing technology and electric energy meter | |
Oberascher et al. | Advanced rainwater harvesting through smart rain barrels | |
CN112965919B (en) | Electric energy meter data minute freezing method, storage medium and equipment | |
CN109873439A (en) | A kind of setting method and device of demand control limit value | |
CN102750235A (en) | Method for performing data storage to nonvolatile memory and control device | |
CN106920567A (en) | The method for refreshing and device of a kind of memory | |
CN101151777A (en) | Method for storing individual data items of a low-voltage switch | |
CN103354925A (en) | Memory controller | |
CN205941292U (en) | But automatic testing filtration liquid chemical composition's device | |
CN106205698A (en) | The data of improvement nonvolatile memory retain the method and apparatus with reading performance |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C04 | Withdrawal of patent application after publication (patent law 2001) | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20170222 |