CN103389411B - Multifunctional electric energy meter and energy data restoration methods thereof - Google Patents

Multifunctional electric energy meter and energy data restoration methods thereof Download PDF

Info

Publication number
CN103389411B
CN103389411B CN201310313634.8A CN201310313634A CN103389411B CN 103389411 B CN103389411 B CN 103389411B CN 201310313634 A CN201310313634 A CN 201310313634A CN 103389411 B CN103389411 B CN 103389411B
Authority
CN
China
Prior art keywords
electric energy
data
memory
energy meter
cpu
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310313634.8A
Other languages
Chinese (zh)
Other versions
CN103389411A (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.)
JIANGYIN SFERE ELECTRIC CO Ltd
Original Assignee
JIANGYIN SFERE ELECTRIC 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 JIANGYIN SFERE ELECTRIC CO Ltd filed Critical JIANGYIN SFERE ELECTRIC CO Ltd
Priority to CN201310313634.8A priority Critical patent/CN103389411B/en
Publication of CN103389411A publication Critical patent/CN103389411A/en
Application granted granted Critical
Publication of CN103389411B publication Critical patent/CN103389411B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

A kind of multifunctional electric energy meter and energy data restoration methods thereof, including: CPU, three-phase voltage current analog input circuit, ferroelectric memory, EPPROM memory, CPU is connected with ferroelectric memory, EPPROM memory, three-phase voltage current simulated measurement input circuit respectively, voltage in circuit, electric current are sampled by three-phase voltage current simulated measurement input circuit, and it is transferred to CPU, CPU calculates integral power and electric energy, carrying out the storage of energy data in ferroelectric memory, EPPROM memory carries out the backup of energy data.The multifunctional electric energy meter of the present invention can carry out the redundant storage of energy data, as required storage time recording energy data, improves reliability and the restorability of energy data storage.

Description

Multifunctional electric energy meter and energy data restoration methods thereof
Technical field
The invention belongs to electronic instrument technical field, relate to one and there is redundancy electric energy data storage technology Multifunctional electric energy meter and energy data restoration methods.
Background technology
Along with national grid is for the proposition of strong intelligent grid and construction, property strong to electric instrument carries Go out higher requirement.Multifunctional electric energy meter is as the terminal of strong intelligent grid, to intelligent strong electricity The construction of net has important function.Electric energy metrical as the charge of grid company and user according to, conduct The foundation of electricity consumption enterprises examination, its stability and restorability are significant.Current many merits Energy data storage and reading can be carried out by the electric energy meter a piece of ferroelectric memory of many employings.Once multi-functional Electric energy meter causes the timing error of write ferroelectricity when storing energy data due to interference, causes write electricity Can error in data, then when re-reading data in ferroelectricity, can due to check code incorrect and not Can obtain energy data, the energy data causing this electric energy meter to measure is lost, thus cause the user is numb Tired.
Summary of the invention
For solving above-mentioned technical problem, it is an object of the invention to provide one and there is redundancy energy data The multifunctional electric energy meter of memory technology, including: CPU, three-phase voltage current analog input circuit, ferroelectricity Memory, EPPROM memory, CPU respectively with ferroelectric memory, EPPROM memory, three-phase electricity Current voltage simulated measurement input circuit connects, and three-phase voltage current simulated measurement input circuit is to the electricity in circuit Pressure, electric current are sampled, and are transferred to CPU, and CPU measures voltage, current value, calculate integral power And electric energy, when electric energy increment exceedes and presets threshold value, CPU carries out electric energy number in ferroelectric memory According to storage;When the distance CPU previous time to EPPROM memory stores data reaches predetermined value, New energy data and temporal information are stored in EPPROM memory.
Additionally, described multifunctional electric energy meter also includes communication module, relay output module, switching value Input module, analog quantity transformation output module, key-press module, clock chip, LCD display module and Power module, above-mentioned each module is connected with CPU.
It addition, CPU can be selected for SOC.
Further, described ferroelectric memory uses FM25CL64 chip, its first pin CS, the 6th draws Pin SCK, the 5th pin DI and the second pin DO are connected with the input/output interface of CPU respectively, carry out The reading of energy data and storage, use SPI interface sequential to carry out storing and reading energy data.
Further, described EPPROM memory uses 24C02 chip, its 6th pin WP and the 5th draws Pin SDA is connected with the input/output interface of CPU respectively, as energy data additional storage, carries out The backup of energy data, the backup using IIC interface to realize carrying out energy data is read and backup storage.
The data that the present invention also provides for a kind of electric energy meter with ferroelectric memory and EPPROM memory are extensive Compound method, when electric energy meter needs to carry out data recovery, from ferroelectric memory and EPPROM memory Read energy data, when electric energy meter storage data:
The first step, samples to the voltage in circuit, electric current, measures voltage, current value, calculates Integral power P and electric energy E,
Second step, it is judged that whether electric energy increment exceedes presets threshold value, sets if electric energy increases above Determine threshold value, then in ferroelectric memory, store new energy data, if electric energy is less than setting threshold value, In ferroelectric memory, the most do not store new energy data,
3rd step, it is judged that whether reach predetermined apart from the previous time to EPPROM memory stores data Value, if reaching predetermined value, is then stored in EPPROM memory by new energy data and temporal information In, without reaching predetermined value, then proceed sampling monitoring.
Additionally, when electric energy meter needs to carry out data recovery: read the electric energy of storage in ferroelectric memory Data, it is judged that the check code in data streams read is the most correct, if correctly, then these data is recovered In electric energy meter, if check code is incorrect, then reads and be stored on EPPROM memory nearest one Secondary energy data.
It addition, after reading energy data from EPPROM memory, it is judged that the verification in data streams read Code is the most correct, if correctly, then these data is returned in electric energy meter, if check code is incorrect, The energy data once stored before then reading in EPPROM memory, judges, repeats this process, Until reading correct energy data.If correct energy data can not be obtained, electric energy meter is abnormal.
Further, electric energy meter show the storage temporal information reading energy data from EPPROM memory with And the duty of electric energy meter.
Further, integral power P and electric energy E are calculated by below equation:
P = Σ n = 0 N - 1 Un × In , E = Σ i = 0 N - 1 Pi × Ti .
The present invention has the multifunctional electric energy meter of redundancy electric energy data storage technology can carry out energy data Redundant storage, storage records energy data per hour, the energy data of each hour in can inquiring about a year, Improve reliability and the restorability of energy data storage.
Accompanying drawing explanation
Fig. 1 is multifunctional electric energy meter module map of the present invention;
Fig. 2 is the ferroelectric memory line map of multifunctional electric energy meter of the present invention;
Fig. 3 is multifunctional electric energy meter EPPROM memory line map of the present invention;
Fig. 4 is multifunctional electric energy meter energy data Stored Procedure figure of the present invention;
Fig. 5 is that multifunctional electric energy meter energy data of the present invention reads flow chart;
Detailed description of the invention
The multifunctional electric energy meter to the present invention below in conjunction with the accompanying drawings with redundancy electric energy data storage technology is made Further describe.
As it is shown in figure 1, the present invention has the multifunctional electric energy meter of redundancy electric energy data storage technology, bag Include: by CPU, three-phase voltage current analog input circuit, communication module, relay output module, open Pass amount input module, analog quantity transformation output module, ferroelectric memory, EPPROM memory, button Module, clock chip, LCD display module and power module composition.CPU respectively with ferroelectric memory, EPPROM memory, three-phase voltage current simulated measurement input circuit, communication module, relay output mould Block, switching input module, analog quantity transformation output module, key-press module, clock chip, LCD Display module connects.CPU can be selected for SOC.
Fig. 2 shows that the line map of the ferroelectric memory in above-mentioned electric energy meter, described ferroelectric memory are adopted Using FM25CL64 chip, its first pin CS, the 6th pin SCK, the 5th pin DI and second draw Pin DO is connected with the input/output interface of CPU respectively, carries out reading and the storage of energy data, uses SPI interface sequential carries out storing and reading energy data.
Fig. 3 shows the line map of the EPPROM memory in above-mentioned electric energy meter, and described EPPROM deposits Reservoir uses 24C02 chip, and its 6th pin WP and the 5th pin SDA is defeated with the input of CPU respectively Outgoing interface connects, and as energy data additional storage, carries out the backup of energy data, uses IIC Interface realizes carrying out the backup of energy data and reads and backup storage.
Fig. 4 shows above-mentioned electric energy meter energy data Stored Procedure figure.CPU passes through three-phase voltage current mould Voltage in circuit, electric current are sampled by analog quantity input circuit, measure voltage, current value, calculate Integral power P and electric energy E, wherein:
P = Σ n = 0 N - 1 Un × In , E = Σ i = 0 N - 1 Pi × Ti .
Preset threshold value carry out the storage of energy data by judging whether electric energy increment exceedes, example As, the setting threshold value of increment may be set to 1Wh/1varh, if electric energy increases above 1Wh/1varh, In ferroelectric memory, then store new energy data, do not increase to 1Wh/1varh such as electric energy, the most not Energy data is stored in ferroelectric memory.Subsequently, it is judged that distance CPU is previous to EPPROM memory Whether the time of storage data reaches predetermined value, e.g. 1 hour, if reaching predetermined value, then will New energy data and temporal information are stored in EPPROM memory, without reaching predetermined value, Then proceed sampling monitoring.According to the actual requirements, can choose different capabilities EPPROM memory and Ferroelectric memory carries out energy data storage.
Fig. 5 shows above-mentioned electric energy meter electric energy digital independent flow chart.Electric energy meter powers on, and CPU first reads The energy data of storage in ferroelectric memory, it is judged that check code is the most correct, if correct, instrument is at L Normally show energy value on CD display module, and normally work;If check code is incorrect, then read It is stored in recent energy data on EPPROM memory, it is judged that check code is the most correct, if Correct then instrument normally shows energy value, and shows the time of record electric energy in LCD display module. If incorrect, read the energy data of last time storage, judge, repeat this process, until Read correct energy data.If correct energy data can not be obtained, then in LCD display module Upper display instrument is abnormal.
The present invention has the multifunctional electric energy meter of redundancy electric energy data storage technology can be the most extensive Multiple because power source aging, single-chip microcomputer are abnormal when causing electric instrument cisco unity malfunction energy data extensive Multiple, can compatible IIC interface, the ferroelectric memory of SPI interface or the middle data of EPPROM memory Recover, the ferroelectric memory of the most compatible 3.3 volts and 5 volts working powers and EPPROM memory.
Below preferred embodiment to the invention is illustrated, but the invention is also Being not limited to embodiment, those of ordinary skill in the art are on the premise of the invention spirit Also can make modification or the replacement of all equivalents, modification or the replacement of these equivalents are all contained in this Shen Please be in claim limited range.

Claims (9)

1. a multifunctional electric energy meter, it is characterised in that including: CPU, three-phase voltage current analog quantity are defeated Entering circuit, ferroelectric memory and EPPROM memory, CPU deposits with ferroelectric memory, EPPROM respectively Reservoir, three-phase voltage current simulated measurement input circuit connect,
Voltage in circuit, electric current are sampled by three-phase voltage current simulated measurement input circuit, and are transferred to CPU,
CPU measures voltage, current value, calculates integral power and electric energy, presets when electric energy increment exceedes During threshold value, CPU carries out the storage of energy data in ferroelectric memory;When distance CPU is previous to EPPROM When the time of memory stores data reaches predetermined value, new energy data and temporal information are stored in In EPPROM memory.
Multifunctional electric energy meter the most according to claim 1, it is characterised in that: described multifunctional electric energy meter Also include communication module, relay output module, switching input module, analog quantity transformation output module, by Key module, clock chip, LCD display module and power module, above-mentioned each module is connected with CPU.
Multifunctional electric energy meter the most according to claim 1, it is characterised in that: CPU selects SOC.
4. according to the multifunctional electric energy meter one of claim 1-3 Suo Shu, it is characterised in that: described ferroelectricity stores Device uses FM25CL64 chip, its first pin6th pin SCK, the 5th pin DI and second draw Pin DO is connected with the input/output interface of CPU respectively, carries out reading and the storage of energy data, uses SPI Interface carries out storing and reading energy data.
5. according to the multifunctional electric energy meter one of claim 1-3 Suo Shu, it is characterised in that: described EPPROM Memory uses 24C02 chip, its 6th pin WP and the 5th pin SDA respectively with the input of CPU Output interface connects, and as energy data additional storage, carries out the backup of energy data, uses IIC interface The backup realizing energy data is read and backup storage.
6. a data reconstruction method for multifunctional electric energy meter, when electric energy meter needs to carry out data recovery, from Ferroelectric memory and EPPROM memory read energy data, it is characterised in that store number at electric energy meter According to time:
The first step, samples to the voltage in circuit, electric current, measures voltage, current value, calculates accumulative merit Rate P and electric energy E,
Second step, it is judged that whether electric energy increment exceedes presets threshold value, if electric energy increases above setting threshold value, In ferroelectric memory, then store new energy data, if electric energy is less than setting threshold value, do not store in ferroelectricity Device stores new energy data,
3rd step, it is judged that whether reach predetermined value apart from the previous time to EPPROM memory stores data, If reaching predetermined value, then new energy data and temporal information are stored in EPPROM memory, as Fruit is not reaching to predetermined value, then proceed sampling monitoring,
4th step, when electric energy meter needs to carry out data recovery, reads the energy data of storage in ferroelectric memory,
5th step, it is judged that the check code in data streams read is the most correct, if correctly, then these data is recovered In electric energy meter, if check code is incorrect, then reading is stored on EPPROM memory recent Energy data.
7. the data reconstruction method of multifunctional electric energy meter as claimed in claim 6, it is characterised in that: the In five steps, after reading energy data from EPPROM memory, it is judged that the check code in data streams read is No correctly, if correctly, then these data are returned in electric energy meter, if check code is incorrect, then read The energy data once stored before in EPPROM memory, judges, repeats this process, until reading Correct energy data, if correct energy data can not be obtained, electric energy meter is abnormal.
8. the data reconstruction method of multifunctional electric energy meter as claimed in claim 7, it is characterised in that: electric energy Table shows storage temporal information and the work shape of electric energy meter reading energy data from EPPROM memory State.
9. the data reconstruction method of the multifunctional electric energy meter as described in one of claim 6-8, it is characterised in that: Integral power P and electric energy E are calculated by below equation:
P = Σ n = 0 N - 1 U n × I n , E = Σ i = 0 N - 1 P i × T i .
CN201310313634.8A 2013-07-24 2013-07-24 Multifunctional electric energy meter and energy data restoration methods thereof Active CN103389411B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310313634.8A CN103389411B (en) 2013-07-24 2013-07-24 Multifunctional electric energy meter and energy data restoration methods thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310313634.8A CN103389411B (en) 2013-07-24 2013-07-24 Multifunctional electric energy meter and energy data restoration methods thereof

Publications (2)

Publication Number Publication Date
CN103389411A CN103389411A (en) 2013-11-13
CN103389411B true CN103389411B (en) 2016-08-31

Family

ID=49533745

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310313634.8A Active CN103389411B (en) 2013-07-24 2013-07-24 Multifunctional electric energy meter and energy data restoration methods thereof

Country Status (1)

Country Link
CN (1) CN103389411B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104571961B (en) * 2014-12-31 2018-01-09 深圳市成为信息技术有限公司 Data check backup, write-in and the read method of a kind of trigonometric expression storage device
CN105334383B (en) * 2015-10-21 2018-06-22 宁波三星医疗电气股份有限公司 A kind of electricity data storage method of electric energy meter
CN110631662A (en) * 2018-06-23 2019-12-31 新智数字科技有限公司 Power-on self-test meter and power-on self-test method thereof
CN110333387B (en) * 2019-06-13 2021-08-31 宁波三星医疗电气股份有限公司 Electric energy metering method of electric energy meter
CN112416246B (en) * 2020-10-22 2022-07-08 浙江晨泰科技股份有限公司 High-resolution method for storing electric energy data

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1194638A (en) * 1997-09-19 1999-04-09 Toshiba Tec Corp Electronic meter
CN201188118Y (en) * 2008-03-19 2009-01-28 广东东方电讯科技有限公司 Whole electronic type intelligent electric meter
US7663957B2 (en) * 2008-05-27 2010-02-16 Via Technologies, Inc. Microprocessor with program-accessible re-writable non-volatile state embodied in blowable fuses of the microprocessor
CN101514999B (en) * 2008-12-15 2011-07-27 安徽鑫龙电器股份有限公司 Electric power measurement multifunctional instrument system and method for measurement
CN101656432A (en) * 2009-09-08 2010-02-24 宁夏隆基宁光仪表有限公司 Electronic radio carrier communication watt-hour meter
CN101710153A (en) * 2009-12-12 2010-05-19 安徽鑫龙电器股份有限公司 Embedded electric energy meter with harmonic measurement function and measurement method thereof
CN101923112A (en) * 2010-07-26 2010-12-22 珠海中慧微电子有限公司 Method for managing high reliability of electric energy measurement data
CN202196119U (en) * 2011-09-15 2012-04-18 无锡华润矽科微电子有限公司 Single-phase multifunctional electric energy metering circuit
CN203455376U (en) * 2013-07-24 2014-02-26 江苏斯菲尔电气股份有限公司 Multifunctional electric energy meter with redundancy electric energy data storing technology

Also Published As

Publication number Publication date
CN103389411A (en) 2013-11-13

Similar Documents

Publication Publication Date Title
CN103389411B (en) Multifunctional electric energy meter and energy data restoration methods thereof
CN109856556A (en) A kind of power battery SOC estimation method
CN106054114A (en) Detecting and checking method of DC charging pile charging parameter and detection equipment
CN206922415U (en) A kind of under-voltage protecting circuit of onboard system, auto meter and vehicle
CN108445321A (en) A kind of relay protection fault intelligence Wave record method
CN203455376U (en) Multifunctional electric energy meter with redundancy electric energy data storing technology
CN205583839U (en) Computer integrated protection measurement and control device of transformer substation
CN106443171A (en) System and method for metering data of power bus during power failure of power utilization equipment
CN204008812U (en) A kind of current-leaking measuring device
CN201698525U (en) IC card electrical isolation electric energy meter
CN106291338A (en) Digital ASIC chip test system and method
CN203643504U (en) Single-phase intelligent electric energy meter based SOC technology
CN103197249A (en) Low power consumption detection circuit for battery power
CN101424284B (en) Gear box oil pump test control timing method and timer
CN112505613B (en) Method and system for estimating fault loss electric quantity of high-voltage supply and high-voltage metering full-voltage loss metering
CN108469572A (en) A kind of low pass automatic filter system
CN208721739U (en) Single-phase electric energy metering device with defencive function
CN208314988U (en) A kind of water meter reading system
CN207232279U (en) A kind of automobile door handle function test system based on LabVIEW
CN105656429A (en) Electrical parameter test method capable of being applicable to high-efficiency photovoltaic cell module
CN205103875U (en) A integrated circuit device for netting silver is safe to be verified
CN201069455Y (en) Single phase electronic multi-charge rate power meter
CN104237842A (en) Alternating voltage test verification device for verifying automatic single-phase kilowatt-hour meter production line
CN103353549B (en) The energy data recovery device of electric instrument and method
CN204101626U (en) A kind of direct current leakage current measuring device based on Zigbee

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
CB03 Change of inventor or designer information

Inventor after: Zhang Fengchu

Inventor after: Zhang Shoushang

Inventor after: Wang Xiaojian

Inventor before: Zhang Shoushang

Inventor before: Wang Xiaojian

Inventor before: Ye Changming

Inventor before: Xu Wenzhuan

Inventor before: Zhang Fengchu

CB03 Change of inventor or designer information
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Multifunctional watt-hour meter and electric energy data recovery method thereof

Effective date of registration: 20200121

Granted publication date: 20160831

Pledgee: Bank of Communications Ltd. Wuxi branch

Pledgor: JIANGYIN SFERE ELECTRIC Co.,Ltd.

Registration number: Y2020320010004

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20220725

Granted publication date: 20160831

Pledgee: Bank of Communications Ltd. Wuxi branch

Pledgor: JIANGYIN SFERE ELECTRIC Co.,Ltd.

Registration number: Y2020320010004

PC01 Cancellation of the registration of the contract for pledge of patent right