CN103207834B - A kind of electric energy data storage method - Google Patents

A kind of electric energy data storage method Download PDF

Info

Publication number
CN103207834B
CN103207834B CN201310097354.8A CN201310097354A CN103207834B CN 103207834 B CN103207834 B CN 103207834B CN 201310097354 A CN201310097354 A CN 201310097354A CN 103207834 B CN103207834 B CN 103207834B
Authority
CN
China
Prior art keywords
electric energy
pointer
adds
e2prom
bus
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
CN201310097354.8A
Other languages
Chinese (zh)
Other versions
CN103207834A (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.)
Qingdao iTechene Technologies Co ltd
Original Assignee
Hangzhou Techen Hongtai Electric Power Science & Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Techen Hongtai Electric Power Science & Technology Co Ltd filed Critical Hangzhou Techen Hongtai Electric Power Science & Technology Co Ltd
Priority to CN201310097354.8A priority Critical patent/CN103207834B/en
Publication of CN103207834A publication Critical patent/CN103207834A/en
Application granted granted Critical
Publication of CN103207834B publication Critical patent/CN103207834B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention belongs to Electric Energy Metering Technology field, relate to a kind of electric energy data storage method, first adjust I2C bus, then enter the total line write transactions of I2C starting E2PROM storer after function write by E2PROM storer, whole integer electricity is divided into N number of power storage block, and every M kWh switches once; Electric energy judges whether after being added to 1kWh to be accumulated to M kWh, if electric energy is not accumulated to M kWh, then electric energy adds 1; If electric energy is accumulated to M kWh, then electric energy pointer adds 1; If electric energy pointer is less than N, then electric energy adds 1, and is recorded to electric energy pointer and adds the power storage block pointed to after 1; Otherwise the electric energy of current electric energy pointed is copied to first power storage block, and electric energy adds 1 at first power storage block, electric energy pointer resets; Its technique is simple, and principle is reliable, and save cost, highly versatile, storage data reliability is high, electric energy instrument long service life.

Description

A kind of electric energy data storage method
Technical field:
The invention belongs to Electric Energy Metering Technology field, relate to a kind of technique, particularly a kind of electric energy data storage method based on low-cost data storage chip E2PROM storage of electrical energy data, time data memory is long, accurately and reliably.
Background technology:
Energy data storage is the most important part of electric energy metrical, be related to the personal economic interests of user and Utilities Electric Co., internal and internationally at present all pushing away intelligent grid, electric energy measurement instrument expands a lot of information interaction and management controlling functions by simple function of measuring, namely present intelligent electric meter and energy efficiency management terminal, how intellectuality regardless of electric instrument develops, and the reliability that electric energy metrical and data store is basic most important function.Existing energy data storage chip on electric energy instrument generally have two kinds: E2PROM electricity erasable memorizer and FRAM ferroelectric, data control bus is all the I2C bus of serial, wherein the cost of E2PROM is lower, as long as the E2PROM of 256Kbit also about 1 yuan, but the time delay of E2PROM twice write operation must ensure time enough, otherwise data store can be unreliable, erasable number of times also can only ensure 1,000,000 times, and the cost of FRAM is higher, identical storage space price is the several times of E2PROM, but erasable number of times is unrestricted, also without the need to considering erasable time delay, reliability is higher, in current electric energy metrical field, for single-phase measurement instrument, general E2PROM stores, three phase metering instrument can carry out energy data storage with FRAM, but often there is the phenomenon of energy data exception in these electric energy data storage method, very large loss is caused to Biao Ji manufacturer, waste resource.Therefore, seek design and provide that a kind of cost is low, data store reliable electric energy data storage method, improve the designed life of electric energy instrument, promote the overall performance of instrument, economize on resources, reduce costs.
Summary of the invention:
The object of the invention is to overcome the shortcoming that prior art exists, seeking to design provides a kind of simple and reliable, electric energy data storage method that cost is low, utilizes the design concept and method optimized, realizes the maximization of the utilization of resources and performance.
To achieve these goals, the present invention is based on the E2PROM storer that data control bus is serial 12C bus, improve serviceable life of electric energy instrument and overall performance, comprise I2C bus operation, the piecemeal process of energy data and electric energy and to add up storage three steps, its concrete technology step is:
(1), I2C bus operation: the clock rate first adjusting I2C bus is 90-110KHz, makes the E2PROM storer of all producers model all compatible, and the time storing a byte is 8 microseconds, and memory rate meets design requirement, and strengthens the versatility of designing program; Enter E2PROM storer again and write function, make the Transfer Parameters storage organization type of I2C bus function consistent, ensure that the operation of E2PROM memory read/write is normal; Then the total line write transactions of I2C of E2PROM storer is started, when sending E2PROM storage component part address, carrying out I2C bus and returning ACK 10ms and judge, if normally return response (ACK) in I2C bus 10ms, then allow E2PROM memory write operation, continue subsequent step; Otherwise resend E2PROM storage component part address, resend number of times when being less than the number of times of time delay needs of 10ms, stop the operation of I2C bus; The time delay of 10ms improves E2PROM storer and stores the reliability of operation and the efficiency of program;
(2), the piecemeal process of energy data: partitioned storage is carried out to integer electricity, store by the electric energy number of degrees, whole integer electricity is divided into N number of power storage block, with an electricity pointer, these power storage blocks are pointed to, every M kWh switches once, life-span improves M doubly, such as integer electric energy divides into 4 blocks, every 500,000 kWh electric energy pointers switch once, according to single-phase 220V, the load of 100A, the serviceable life of electric energy instrument is 10 years, if be divided into 6 blocks, it is then 15 years, add the electric energy pointer circular treatment of program, improve the life-span of electric energy instrument, electric energy pointer is interval in whole designed life simultaneously, write operation once, improve the reliability of electric energy pointer,
(3), electric energy is cumulative stores: the cumulative storage carrying out electric energy according to every 1kWh, and electric energy judges whether after being added to 1kWh to be accumulated to M kWh, if electric energy is not accumulated to M kWh, then electric energy adds 1, and is recorded to the block of current electric energy pointed; If electric energy is accumulated to MkWh, then electric energy pointer adds 1; Electric energy pointer adds after 1 and judges whether electric energy pointer is more than or equal to the subregion N of electricity, if electric energy pointer is less than N, then electric energy adds 1, and is recorded to the power storage block that electric energy pointer adds 1 sensing afterwards; Otherwise the electric energy of current electric energy pointed is copied to first power storage block, and electric energy adds 1 at first power storage block, and electric energy pointer resets; Realize the storage of energy data.
Compared with prior art, its technique is simple in the present invention, and principle is reliable, and save cost, stored program highly versatile, storage data reliability is high, electric energy instrument long service life.
Accompanying drawing illustrates:
Fig. 1 is the operating process schematic block diagram of the I2C bus that the present invention relates to.
Fig. 2 is the cumulative Stored Procedure schematic block diagram of the electric energy that the present invention relates to.
Embodiment:
Also be described further by reference to the accompanying drawings below by embodiment.
Embodiment:
The present embodiment is the E2PROM storer of serial 12C bus based on data control bus, improve serviceable life and the overall performance of electric energy instrument, comprise I2C bus operation, the piecemeal process of energy data and electric energy to add up storage three steps, its concrete technology step is:
(1), I2C bus operation: the clock rate first adjusting I2C bus is 90-110KHz, makes the E2PROM storer of all producers model all compatible, and the time storing a byte is 8 microseconds, and memory rate meets design requirement, and strengthens the versatility of designing program; Enter E2PROM storer again and write function, make the Transfer Parameters storage organization type of I2C bus function consistent, ensure that the operation of E2PROM memory read/write is normal; Then the total line write transactions of I2C of E2PROM storer is started, when sending E2PROM storage component part address, carrying out I2C bus and returning ACK 10ms and judge, if normally return response (ACK) in I2C bus 10ms, then allow E2PROM memory write operation, continue subsequent step; Otherwise resend E2PROM storage component part address, resend number of times when being less than the number of times of time delay needs of 10ms, stop the operation of I2C bus; The time delay of 10ms improves E2PROM storer and stores the reliability of operation and the efficiency of program;
(2), the piecemeal process of energy data: partitioned storage is carried out to integer electricity, store by the electric energy number of degrees, whole integer electricity is divided into N number of power storage block, with an electricity pointer, these power storage blocks are pointed to, every M kWh switches once, life-span improves M doubly, such as integer electric energy divides into 4 blocks, every 500,000 kWh electric energy pointers switch once, according to single-phase 220V, the load of 100A, the serviceable life of electric energy instrument is 10 years, if be divided into 6 blocks, it is then 15 years, add the electric energy pointer circular treatment of program, the life-span of very big raising electric energy instrument, electric energy pointer is interval in whole designed life simultaneously, write operation once, improve the reliability of electric energy pointer,
(3), electric energy is cumulative stores: the cumulative storage carrying out electric energy according to every 1kWh, and electric energy judges whether after being added to 1kWh to be accumulated to M kWh, if electric energy is not accumulated to M kWh, then electric energy adds 1, and is recorded to the block of current electric energy pointed; If electric energy is accumulated to MkWh, then electric energy pointer adds 1; Electric energy pointer adds after 1 and judges whether electric energy pointer is more than or equal to the subregion N of electricity, if electric energy pointer is less than N, then electric energy adds 1, and is recorded to the power storage block that electric energy pointer adds 1 sensing afterwards; Otherwise the electric energy of current electric energy pointed is copied to first power storage block, and electric energy adds 1 at first power storage block, and electric energy pointer resets; Realize the storage of energy data.
The present embodiment designs a rated voltage 220V, maximum current 100A, the three-phase and four-line electric energy measurement instrument of 15 years designed lives, and the every 1kWh of electric energy is cumulative to be stored once, then correlation computations is as follows:
The time of 15 years, under the electric current of 100A, the maximum electricity that can walk is E:
E=220×100×15×365×24×3
=8672400000Wh
=8672400kWh
Each block E2PROM memory block with 90% the E2PROM life-span, namely M is 900,000 kWh, and N gets 10, and the E2PROM byte space size of one piece of 256Kbit is 32768 bytes, and sufficient space carries out this partitioned storage; N and M that the present embodiment relates to is respectively the natural number being greater than 0.

Claims (1)

1. an electric energy data storage method, it is characterized in that comprising I2C bus operation, the piecemeal process of energy data and electric energy and to add up storage three steps, its concrete steps are:
(1), I2C bus operation: the clock rate first adjusting I2C bus is 90-110KHz, make the E2PROM storer of all producers model all compatible, the time storing a byte is 8 microseconds, and memory rate meets design requirement, and strengthens the versatility of designing program; Enter E2PROM storer again and write function, make the Transfer Parameters storage organization type of I2C bus function consistent, ensure that the operation of E2PROM memory read/write is normal; Then the total line write transactions of I2C of E2PROM storer is started, when sending E2PROM storage component part address, carrying out I2C bus and returning ACK 10ms and judge, if normally return response in I2C bus 10ms, then allow E2PROM memory write operation, continue subsequent step; Otherwise resend E2PROM storage component part address, resend number of times when being less than the number of times of time delay needs of 10ms, stop the operation of I2C bus; The time delay of 10ms improves E2PROM storer and stores the reliability of operation and the efficiency of program;
(2), the piecemeal process of energy data: partitioned storage is carried out to integer electricity, store by the electric energy number of degrees, whole integer electricity is divided into N number of power storage block, with an electricity pointer, these power storage blocks are pointed to, every M kWh switches once, life-span improves M doubly, integer electric energy divides into 4 blocks, every 500,000 kWh electric energy pointers switch once, according to single-phase 220V, the load of 100A, the serviceable life of electric energy instrument is 10 years, if be divided into 6 blocks, it is then 15 years, add the electric energy pointer circular treatment of program, improve the life-span of electric energy instrument, electric energy pointer is interval in whole designed life simultaneously, write operation once, improve the reliability of electric energy pointer,
(3), electric energy is cumulative stores: the cumulative storage carrying out electric energy according to every 1kWh, electric energy judges whether after being added to 1kWh to be accumulated to M kWh, if electric energy is not accumulated to M kWh, then electric energy adds 1, and is recorded to the block of current electric energy pointed; If electric energy is accumulated to MkWh, then electric energy pointer adds 1; Electric energy pointer adds after 1 and judges whether electric energy pointer is more than or equal to the subregion N of electricity, if electric energy pointer is less than N, then electric energy adds 1, and is recorded to the power storage block that electric energy pointer adds 1 sensing afterwards; Otherwise the electric energy of current electric energy pointed is copied to first power storage block, and electric energy adds 1 at first power storage block, and electric energy pointer resets; Realize the storage of energy data.
CN201310097354.8A 2013-03-25 2013-03-25 A kind of electric energy data storage method Active CN103207834B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310097354.8A CN103207834B (en) 2013-03-25 2013-03-25 A kind of electric energy data storage method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310097354.8A CN103207834B (en) 2013-03-25 2013-03-25 A kind of electric energy data storage method

Publications (2)

Publication Number Publication Date
CN103207834A CN103207834A (en) 2013-07-17
CN103207834B true CN103207834B (en) 2015-08-12

Family

ID=48755063

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310097354.8A Active CN103207834B (en) 2013-03-25 2013-03-25 A kind of electric energy data storage method

Country Status (1)

Country Link
CN (1) CN103207834B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108052456B (en) * 2017-12-28 2020-11-06 杭州万高科技股份有限公司 Electric quantity data storage method and system and electric quantity data storage equipment
CN109976676B (en) * 2019-04-02 2022-04-05 苏州和欣致远节能科技有限公司 Method for increasing cumulative number of write-in times
CN113267673A (en) * 2021-04-10 2021-08-17 煜邦电力智能装备(嘉兴)有限公司 Effective method for solving electric energy loss of electronic electric energy meter

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102339254A (en) * 2011-06-17 2012-02-01 杭州炬华科技股份有限公司 Flash data storage method for intelligent electric energy meter

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI514136B (en) * 2010-12-28 2015-12-21 Silicon Motion Inc Flash memory device and data writing method thereof

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102339254A (en) * 2011-06-17 2012-02-01 杭州炬华科技股份有限公司 Flash data storage method for intelligent electric energy meter

Also Published As

Publication number Publication date
CN103207834A (en) 2013-07-17

Similar Documents

Publication Publication Date Title
CN102937830B (en) Electric quantity management method and device of mobile equipment and mobile equipment
CN103207834B (en) A kind of electric energy data storage method
CN204304532U (en) A kind of computer and the feed circuit based on its USB interface
CN102890170B (en) Three-phase electric energy meter false wiring automated conversion system
CN103487619A (en) Electric energy data storage method
CN201765272U (en) Three-fee-controlled wireless intelligent electric energy meter
CN103278707B (en) Obtain method and the terminal of terminal standby time
CN201570897U (en) Two-supply switching circuit for electronic-type electric energy meter
CN202662148U (en) Electricity utilization information concentrator
CN202362901U (en) Acquisition terminal of special transformer
CN204203382U (en) The uneven remote monitoring circuit of threephase load
CN204116503U (en) Intelligent AC distribution equipment accurate monitoring device
CN109448256B (en) Method for activating a reserve rate of an electrical consumer
CN106785708B (en) A kind of socket and its line management method
CN102253280A (en) Single-phase remote charge-control carrier intelligent electric energy meter
CN202917746U (en) Intelligent safety socket
CN205335912U (en) Battery and mobile terminal
CN105515118A (en) Method for controlling charging and terminal
CN202887436U (en) Wireless residential area meter reading system based on MG2455
CN101527067A (en) Intelligent metering control electricity meter box
CN204613300U (en) A kind of power acquirer
CN201259512Y (en) Reverse indication device for electric energy metering chip
CN104280606A (en) Self-starting method and parameter self-calibration method of metering chip
CN202948546U (en) Multi-user electric energy acquisition terminal
CN202495061U (en) Master control circuit of second-generation identity card reader

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211118

Address after: 266061 Shandong Province, Qingdao city Laoshan District Songling Road No. 169 Software Park

Patentee after: QINGDAO ITECHENE TECHNOLOGIES Co.,Ltd.

Address before: 310030 No. 298, Zhenhua Road, Xihu District, Hangzhou, Zhejiang

Patentee before: HANGZHOU TECHEN HONGTAI ELECTRIC POWER SCIENCE & TECHNOLOGY Co.,Ltd.