CN103487619A - Electric energy data storage method - Google Patents
Electric energy data storage method Download PDFInfo
- Publication number
- CN103487619A CN103487619A CN201310297438.6A CN201310297438A CN103487619A CN 103487619 A CN103487619 A CN 103487619A CN 201310297438 A CN201310297438 A CN 201310297438A CN 103487619 A CN103487619 A CN 103487619A
- Authority
- CN
- China
- Prior art keywords
- electric energy
- data
- energy
- storage
- data storage
- 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.)
- Granted
Links
Images
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
The invention is applicable to the field of electric energy measuring, and provides an electric energy data storage method. The electric energy data storage method comprises the following steps that parameter initialization is conducted on a memorizer, and memory addresses of an integer part and a decimal part are distributed respectively; data in a decimal storage disk are initialized; whether an electric energy increment reaches 0.01 kilowatt hour is judged; if the electric energy increment does not reach 0.01 kilowatt hour, electric energy storage is not conducted, and the moment when the electric energy increment reaches 0.01 kilowatt hour is waited for; if the electric energy increment reaches 0.01 kilowatt hour, whether the electric energy increment reaches 1 kilowatt hour is judged further; if the electric energy increment does not reach 1 kilowatt hour, the decimal part of electric energy is stored; if the electric energy increment reaches 1 kilowatt hour, the integral part and the decimal part of the electric energy are stored.
Description
Technical field
The invention belongs to the electric energy metrical field, be specifically related to a kind of energy data storage means.
?
Background technology
Current electric energy metrical product, the problem that normal memory is done power storaging unit and the electric energy that occurs without the electric energy meter of battery is lost.Current electric energy counting product energy data storage life is short, overload capacity is not strong, and performance is stable not.
Therefore, how providing a kind of energy data storage life length, overload capacity by force and the energy data storage means of stable performance, is technical issues that need to address.
Summary of the invention
In view of this, provide a kind of energy data storage means, can guarantee life-span, overload capacity and the performance of the energy data storage of electric energy metrical product.
The present invention is achieved in that a kind of energy data storage means, comprises the following steps: storer carries out parameter initialization, distributes respectively the memory address of integral part and fraction part; Data in initialization decimal memory disc; Judge whether the electric energy increment reaches 0.01 kilowatt hour; If do not reach 0.01 kilowatt hour, do not carry out the power storage processing, wait for that the electric energy increment reaches 0.01 kilowatt hour; If reach 0.01 kilowatt hour, further judge whether to reach 1 kilowatt hour; If the electric energy increment does not reach 1 kilowatt hour, the fraction part of storage of electrical energy; If the electric energy increment reaches 1 kilowatt hour, the integer of storage of electrical energy and fraction part.
Above-mentioned energy data storage means, guaranteed that the energy storage life-span is long, overload capacity is strong; Performance is more stable; Superior communication function.
The accompanying drawing explanation
Fig. 1 is the process flow diagram of energy data storage means of the present invention;
Fig. 2 is that the integer of energy data storage means of the present invention stores process flow diagram;
Fig. 3 is that the decimal of energy data storage means of the present invention stores process flow diagram;
Fig. 4 is power on and the error correction process flow diagram of energy data storage means of the present invention;
Fig. 5 is the circuit diagram of energy data storer of the present invention;
Fig. 6 is the assembly structure figure of energy data storer of the present invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Be the process flow diagram of energy data storage means as shown in Figure 1, Fig. 2 is that the integer of energy date storage method stores process flow diagram, and Fig. 3 is that the decimal of energy data storage means stores process flow diagram.
This kind of energy data storage means comprises the following steps:
Step S10, storer carries out parameter initialization, distributes respectively the memory address of integral part and fraction part.
Step S11, the data in initialization decimal memory disc.
Step S12, judge whether the electric energy increment reaches 0.01 kilowatt hour.If, enter step S13, further judge whether to reach 1 kilowatt hour; If not, return to step S12.
Step S13, if the electric energy increment reaches 1 kilowatt hour, enter step S14, the storage integral part.Be specially: step S141, the integral part of power taking energy; Step S142, the corresponding storage address of power taking energy integer; Step S143, write electric energy in the storage address that described integer is corresponding.
If the electric energy increment does not reach 1 kilowatt hour, enter step S15, the storage fraction part.Be specially: step S151, by the integer of electric energy, search the first address of the memory address that the storage of electrical energy decimal is corresponding; Step S152, by decimal, 10 data of corresponding dish are read from storer; Step S153, find the trip point of described 10 data; Step S154, deposit described electric energy decimal in the storage address that described trip point is corresponding in.
In the present embodiment, single-phase electronic energy meter is when normal operation, and the metering module of electric energy meter can be measured electric energy, when electric energy reaches 0.01kwh, carries out the power storage processing.During power storage, first by the bit data of energy data integer, calculate now address area corresponding to power storage, by the data reading in 10 addresses of this address area, find the trip point of data in these 10 addresses again, the data change of trip point is the little logarithmic data of electric energy, 10 data (being 1 data disks) after change are deposited in the corresponding address district, realized the storage of 0.01kwh electric energy, when electric energy runs to 1kwh, electric energy integer corresponding data has been deposited in assigned address.
Power on and the error correction process flow diagram of energy data storage means as shown in Figure 4.During power on, check fraction part after first checking the integral part data, search the fraction part data disks by integral part, by each data disks, only have the continuity rule before and after a trip point and saltus step data, find out the point of error in data and by its correction.Ten data in each decimal dish are initialized as: 00,91,92,93,94,95,96,97,98,99.
Be specially: step S161 starts power on.
Step S162 reads the electric energy integer from storer.
Step S163, judge that whether the electric energy integer is legal, if legal, enters step S164, by the integer of electric energy, searches the first address of the memory address of storage of electrical energy decimal respective disc; Step S165, by decimal, 10 data of corresponding dish are read from storer; Step S166, find the trip point in these 10 data.Step S167, determine whether 1 trip point, if enter step S168, determines that the previous data of saltus step are the actual power decimal.If not 1 trip point, in step S169, determines whether 2 trip points.
If in step S169, be two trip points, carry out step S170, judge whether first trip point front and back are continuous, if in step S171, correct first data; In step S172, determine second the previous data bit actual power of trip point decimal.
If in step S170, discontinuous before and after first trip point,, in step S173, correct second data; In step S174, determine that the previous data of first trip point are the actual power decimal.
If in step S169, unnecessary 2 trip points, carry out step S176, decimal zero clearing, and initialization data memory disc.
If in step S163, the electric energy integer is illegal, carries out step S175, electric energy zero clearing; Carry out step S176, decimal zero clearing, and initialization data memory disc.
In present embodiment, by the separately storage of electric energy integral part and fraction part, the storage of integral part: stored when electric energy reaches whole spending or while having a power failure, deposit in assigned address; The storage of fraction part: according to the bit data in the electric energy integer, distribute in 10 address areas, distribute 10 addresses (being 1 wheel disc) in each address area simultaneously, the fraction part data of electric energy are stored to the difference recycling storage in these 10 addresses; During the storage data, first according to the bit data in the electric energy integer, find corresponding address area, find again in this address area trip point in 10 addresses, now corresponding electric energy decimal is deposited in the address that trip point is corresponding, carrying out when electric energy checks realizing by trip point the error correction of electric energy simultaneously.
The circuit diagram of energy data storer as shown in Figure 5.This energy data storer comprises a storer (EEPROM), and described storer is by pin VCC input voltage, and by pin SDA input serial data, described storer also comprises serial clock pin SCL and circuit protection pin WP.
The assembly structure figure of energy data storer as shown in Figure 6.This energy data storer also comprises assembly structure.Described assembly structure comprises upper cover 2, liquid crystal display district 3, pulse pilot lamp 4, the pilot lamp 5 of operating a switch, infrared receiving/transmission 6 and end cap 7.Described assembly structure also comprises upper cover lead sealing 1 and end cap lead sealing 8.
This storer is arranged on pcb board, this pcb board is also integrated metering units, Single-chip Controlling unit, data storage cell, LCD liquid crystal display, telecommunication circuit and Power supply unit.The LCD liquid crystal display be positioned at primary module PCB directly over, the PCB below it is partly integrated CPU control module and data storage cell, liquid crystal the right be the LED lamp, lower right is metering units.This pcb board is contained in a set of plastic electricity meter shell, is screwed.
As above, energy data storage means provided by the present invention, guaranteed that the energy storage life-span is long, overload capacity is strong; Performance is more stable; Superior communication function.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.
Claims (7)
1. an energy data storage means, is characterized in that, comprises the following steps:
Storer carries out parameter initialization, distributes respectively the memory address of integral part and fraction part;
Data in initialization decimal memory disc;
Judge whether the electric energy increment reaches 0.01 kilowatt hour;
If further judge whether to reach 1 kilowatt hour;
If not, do not carry out the power storage processing, wait for that the electric energy increment reaches 0.01 kilowatt;
If the electric energy increment does not reach 1 kilowatt hour, the fraction part of storage of electrical energy;
If the electric energy increment reaches 1 kilowatt hour, the integer of storage of electrical energy and fraction part.
2. energy data storage means according to claim 1, is characterized in that, described storage integral part comprises the following steps:
The integral part of power taking energy;
The corresponding storage address of power taking energy integer;
Electric energy is write in the storage address that described integer is corresponding.
3. energy data storage means according to claim 1, is characterized in that, described storage fraction part comprises the following steps:
By the integer of electric energy, search the first address of the memory address that the storage of electrical energy decimal is corresponding;
By decimal, 10 data of corresponding dish are read from storer;
Find the trip point of described 10 data;
Described electric energy decimal is deposited in the storage address that described trip point is corresponding.
4. energy data storage means according to claim 1, is characterized in that: also comprise this step of power on.
5. energy data storage means according to claim 4, is characterized in that, described power on specifically comprises the following steps:
Check fraction part after checking the integral part data;
Search the fraction part data disks by integral part;
Only have the continuity rule before and after a trip point and saltus step data by each data disks, find out the point of error in data and by its correction.
6. energy data storage means according to claim 1 is characterized in that: described storer is by pin VCC input voltage, by pin SDA input serial data.
7. energy data storage means according to claim 6, it is characterized in that: described storer also comprises serial clock pin SCL and circuit protection pin WP.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310297438.6A CN103487619B (en) | 2013-07-16 | 2013-07-16 | electric energy data storage method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310297438.6A CN103487619B (en) | 2013-07-16 | 2013-07-16 | electric energy data storage method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103487619A true CN103487619A (en) | 2014-01-01 |
CN103487619B CN103487619B (en) | 2016-09-07 |
Family
ID=49828000
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310297438.6A Active CN103487619B (en) | 2013-07-16 | 2013-07-16 | electric energy data storage method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103487619B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107544914A (en) * | 2017-09-06 | 2018-01-05 | 华立科技股份有限公司 | Electricity piecemeal storage method and system |
CN107861687A (en) * | 2017-10-13 | 2018-03-30 | 华立科技股份有限公司 | The method that the step-by-step storage of ammeter electricity decimal is realized in FLASH memory |
CN108052456A (en) * | 2017-12-28 | 2018-05-18 | 杭州万高科技股份有限公司 | A kind of electricity data storage method, system and a kind of electricity data storage device |
CN109445682A (en) * | 2018-09-10 | 2019-03-08 | 宁波三星智能电气有限公司 | A kind of electricity data management method for electric power acquisition equipment |
CN112763777A (en) * | 2020-12-28 | 2021-05-07 | 华立科技股份有限公司 | Electric quantity storage method, device, equipment and medium for intelligent electric meter |
CN112882654A (en) * | 2021-01-27 | 2021-06-01 | 深圳市森世泰科技有限公司 | Method, device, storage medium and computer equipment for prolonging EEPROM write life |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04220306A (en) * | 1990-12-20 | 1992-08-11 | Janome Sewing Mach Co Ltd | Preparation of ceramic mold |
CN2372693Y (en) * | 1998-07-23 | 2000-04-05 | 连希贤 | Additional IC card pre-payment signal phase kilowatt-hour meter |
JP2004117034A (en) * | 2002-09-24 | 2004-04-15 | Toshiba Corp | Integral power consumption measuring system and its method |
JP4220306B2 (en) * | 1999-07-15 | 2009-02-04 | 四国電力株式会社 | Electricity meter |
CN102692536A (en) * | 2011-03-21 | 2012-09-26 | 北京华煜宏博科技有限公司 | Multi-step charging electricity meter device |
CN103033655A (en) * | 2011-10-08 | 2013-04-10 | 江阴长仪集团有限公司 | Intelligent electric energy meter with accurate timing module |
-
2013
- 2013-07-16 CN CN201310297438.6A patent/CN103487619B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04220306A (en) * | 1990-12-20 | 1992-08-11 | Janome Sewing Mach Co Ltd | Preparation of ceramic mold |
CN2372693Y (en) * | 1998-07-23 | 2000-04-05 | 连希贤 | Additional IC card pre-payment signal phase kilowatt-hour meter |
JP4220306B2 (en) * | 1999-07-15 | 2009-02-04 | 四国電力株式会社 | Electricity meter |
JP2004117034A (en) * | 2002-09-24 | 2004-04-15 | Toshiba Corp | Integral power consumption measuring system and its method |
CN102692536A (en) * | 2011-03-21 | 2012-09-26 | 北京华煜宏博科技有限公司 | Multi-step charging electricity meter device |
CN103033655A (en) * | 2011-10-08 | 2013-04-10 | 江阴长仪集团有限公司 | Intelligent electric energy meter with accurate timing module |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107544914A (en) * | 2017-09-06 | 2018-01-05 | 华立科技股份有限公司 | Electricity piecemeal storage method and system |
CN107861687A (en) * | 2017-10-13 | 2018-03-30 | 华立科技股份有限公司 | The method that the step-by-step storage of ammeter electricity decimal is realized in FLASH memory |
CN107861687B (en) * | 2017-10-13 | 2020-09-11 | 华立科技股份有限公司 | Method for realizing bit-by-bit storage of electric quantity decimal of electric meter on FLASH memory |
CN108052456A (en) * | 2017-12-28 | 2018-05-18 | 杭州万高科技股份有限公司 | A kind of electricity data storage method, system and a kind of electricity data storage device |
CN108052456B (en) * | 2017-12-28 | 2020-11-06 | 杭州万高科技股份有限公司 | Electric quantity data storage method and system and electric quantity data storage equipment |
CN109445682A (en) * | 2018-09-10 | 2019-03-08 | 宁波三星智能电气有限公司 | A kind of electricity data management method for electric power acquisition equipment |
CN112763777A (en) * | 2020-12-28 | 2021-05-07 | 华立科技股份有限公司 | Electric quantity storage method, device, equipment and medium for intelligent electric meter |
CN112882654A (en) * | 2021-01-27 | 2021-06-01 | 深圳市森世泰科技有限公司 | Method, device, storage medium and computer equipment for prolonging EEPROM write life |
Also Published As
Publication number | Publication date |
---|---|
CN103487619B (en) | 2016-09-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103487619A (en) | Electric energy data storage method | |
CN102005795B (en) | Electric quantity detecting device for rechargeable battery | |
US9281535B2 (en) | System dongle | |
CN108845655B (en) | Electronic equipment control method and device, control circuit and electronic equipment | |
CN103135682B (en) | Blade server | |
US20150123669A1 (en) | Battery identification system and method for electronic device, and electronic device | |
CN103091550B (en) | Synchronous isolation sampling direct-current power meter of wide voltage and large current | |
CN103176100B (en) | Method and device for detecting whether storage battery is normally connected in UPS (uninterrupted power supply) or not | |
US9612638B1 (en) | Systems and methods for automatic detection and configuration of voltage regulator phases in a multi-rail voltage regulator | |
CN103207834B (en) | A kind of electric energy data storage method | |
CN206649501U (en) | A kind of computer software testing device | |
CN106130134B (en) | A kind of charging circuit and mobile terminal | |
CN101614763B (en) | Method and device for detecting battery information | |
CN202362901U (en) | Acquisition terminal of special transformer | |
US9977063B2 (en) | Battery with improved discharge utilization | |
CN203672970U (en) | Intelligent three-phase charge-control electric energy meter | |
Liu et al. | The Design of Smart Battery Management Systems. | |
CN202916420U (en) | Electric quantity detecting circuit of mobile power supply | |
CN207166195U (en) | A kind of passive balanced hardware protection circuit of electrokinetic cell | |
CN112946559A (en) | Smart electric meter detection method based on power detection | |
CN107367947A (en) | A kind of communication system based on CAN | |
CN102253279B (en) | Reliable data storage type multifunctional electric meter | |
CN205788191U (en) | A kind of information encryption storage device of multiplex roles | |
KR20090013866A (en) | Electronic type watt hour meter using nand flash memory and method for saving wave data thereof | |
CN107863577A (en) | BBU capacity restorative procedure and system in a kind of storage system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |