CN108594010B - Electric quantity measuring method for electric power acquisition terminal - Google Patents

Electric quantity measuring method for electric power acquisition terminal Download PDF

Info

Publication number
CN108594010B
CN108594010B CN201810553509.7A CN201810553509A CN108594010B CN 108594010 B CN108594010 B CN 108594010B CN 201810553509 A CN201810553509 A CN 201810553509A CN 108594010 B CN108594010 B CN 108594010B
Authority
CN
China
Prior art keywords
acquisition terminal
power acquisition
electric quantity
metering
metering chip
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
CN201810553509.7A
Other languages
Chinese (zh)
Other versions
CN108594010A (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.)
Ningbo Sanxing Electric Co Ltd
Original Assignee
Ningbo Sanxing 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 Ningbo Sanxing Electric Co Ltd filed Critical Ningbo Sanxing Electric Co Ltd
Priority to CN201810553509.7A priority Critical patent/CN108594010B/en
Publication of CN108594010A publication Critical patent/CN108594010A/en
Application granted granted Critical
Publication of CN108594010B publication Critical patent/CN108594010B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R22/00Arrangements for measuring time integral of electric power or current, e.g. electricity meters
    • G01R22/06Arrangements for measuring time integral of electric power or current, e.g. electricity meters by electronic methods
    • G01R22/08Arrangements for measuring time integral of electric power or current, e.g. electricity meters by electronic methods using analogue techniques

Abstract

The invention relates to a method for measuring the electric quantity of a power acquisition terminal, which comprises the following steps of S1: the power acquisition terminal is powered on, a bootstrap program is started, a metering chip is initialized, and the metering chip starts to monitor the consumption of electric quantity; s2: the power acquisition terminal enters an application program, initializes the metering module and enters an electric quantity operation program to process the electric quantity consumption monitored by the metering chip. Compared with the prior art, the method and the device can monitor the electric quantity consumption of the electric power acquisition terminal in the starting process, avoid electric quantity loss in the starting process and improve the accuracy of electric quantity metering.

Description

Electric quantity measuring method for electric power acquisition terminal
Technical Field
The invention relates to the field of power acquisition terminals, in particular to a method for metering electric quantity of a power acquisition terminal.
Background
At present, the power acquisition terminal system is started in three stages, wherein the first stage is a boot program starting stage, the second stage is a kernel program starting stage, the third stage is a kernel program starting stage, and each application program is started in the third stage, namely, a metering chip for calculating electric quantity is started in the third stage application program.
However, the existing starting mode causes complex functions of the power acquisition terminal system and slow program starting; more importantly, the electric power acquisition terminal cannot enter a metering state immediately after being powered on, so that before the metering chip is completely started, the electric power acquisition terminal cannot monitor electric quantity consumption, electric quantity pulse loss is caused, the electric quantity operation accuracy is influenced, and especially when the electric power acquisition terminal is powered off for multiple times, the electric quantity metering error is larger.
Disclosure of Invention
In view of the foregoing problems, an object of the present invention is to provide a method for measuring an electric quantity of an electric power collection terminal, which can monitor and measure the electric quantity during a startup process of the electric power collection terminal, and improve the accuracy of electric quantity measurement of the electric power collection terminal.
In order to achieve the purpose, the invention adopts the technical scheme that: a method for measuring the electric quantity of a power acquisition terminal is characterized in that: the method comprises the following steps of,
s1: the power acquisition terminal is powered on, a bootstrap program is started, a metering chip is initialized, and the metering chip starts to monitor the consumption of electric quantity;
s2: the electric power acquisition terminal enters an application program, a metering module is initialized, and electric quantity consumption monitored by a metering chip is processed by an electric quantity operation program, wherein the electric quantity consumption comprises electric quantity consumed by starting the electric power acquisition terminal and normal electricity consumption monitored by the electric power acquisition terminal.
Further, when the metering chip completes initialization and starts monitoring electric quantity consumption, the initialization flag bit flag is set and stored in the EEPROM.
Furthermore, before entering the electric quantity operation program, the electric power acquisition terminal reads a flag bit flag stored in the EEPROM to judge whether the metering chip works normally.
Further, if the flag bit flag is equal to 0xfe, the metering chip works normally, and the power acquisition terminal enters a power operation program; if flag is 0xab, it indicates that the metering chip is not operating normally, and the metering chip is initialized again and enters the power calculation program.
Further, the metering chip monitors the electricity consumption in a pulse number storage mode.
Furthermore, the metering module processes and meters the electricity consumption amount by reading the pulse number stored in the metering chip and comparing the pulse number with the pulse equivalent.
Further, when the number of pulses in the read metering chip is greater than or equal to the pulse equivalent, the electric quantity of the electric power acquisition terminal is increased by a set value; and if the pulse equivalent is not reached, continuing to monitor the electric quantity, skipping again to read the pulse number in the metering chip again, and comparing the pulse number with the pulse equivalent.
Further, the metering chip is initialized by reading the calibration parameters in the EEPROM.
Further, when the power acquisition terminal is powered on for the first time, the chip initialization parameters are corrected, and the corrected parameters are stored in the EEPROM to obtain the calibration table parameters.
Further, the power acquisition terminal also passes through a kernel program before entering an application program; the set value is 0.01 kwh.
Compared with the prior art, the invention has the advantages that: according to the method, the metering chip is started when the boot program is started at the first stage in the starting process of the power acquisition terminal, the electric quantity trend in the starting process of the power acquisition terminal is effectively monitored, the electric quantity loss in the starting stage is avoided, and the accuracy of electric quantity metering is improved.
Drawings
Fig. 1 is a flowchart of an embodiment of a method for measuring an electric quantity of a power collection terminal according to the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
Fig. 1 is a flowchart illustrating an embodiment of a method for measuring an electric quantity of an electric power collection terminal according to the present invention, the method includes the steps of powering on the electric power collection terminal, entering a boot program, and initializing a parameter by a measurement chip by reading an initial calibration parameter in an EEPROM in a storage area. Because the normal working parameters can not be stored after the metering chip is powered off, the initial correction parameters are stored in the storage area EEPROM by the metering chip when the metering chip is powered on for the first time, so that the initial correction parameters can be used when the metering chip is powered on again for initialization after being powered off.
After the metering chip is initialized, monitoring of electric quantity consumption is started, and meanwhile, an initialization flag bit flag is set and stored in the storage area EEPROM. Then enters the application phase via the kernel. In the application program stage, the power acquisition terminal firstly initializes the metering module, then reads a flag value stored in the EEPROM and judges whether the metering chip works normally. Specifically, if the flag bit flag is equal to 0xfe, it indicates that the metering chip normally operates, the power acquisition terminal directly enters the power calculation program to calculate power consumption, and if the flag bit flag is equal to 0xab, it indicates that the metering chip does not normally operate, the metering chip is initialized again and then enters the power calculation program to calculate power consumption.
It should be reminded that, when the power acquisition terminal enters the application program stage through the kernel program by the bootstrap stage, the power consumption all can consume the electric quantity, and the consumption of the electric quantity can influence the statistics of the electric quantity, so in order to improve the power statistics accuracy, the power acquisition terminal enters the bootstrap at the power acquisition terminal, and after the initialization metering chip succeeds, the power consumption is monitored immediately, in other words, the power consumption in the power acquisition terminal includes the electric quantity consumed in the start-up stage.
The metering chip monitors the electricity consumption in the form of storing the number of pulses. In the electric quantity operation program, specifically corresponding to the program, the metering module reads the pulse number stored in the metering chip, compares the pulse number with the pulse equivalent, if the pulse number is greater than or equal to the pulse equivalent, the electric quantity is subjected to a certain numerical value, for example, 0.01kwh is increased, if the pulse number is less than the pulse equivalent, the monitoring time is continuously waited, and the operation is skipped to the cycle operation of reading the pulse number of the chip again and comparing the pulse number with the pulse equivalent.
According to the method, the metering chip is started in the first stage of the starting process of the electric power acquisition terminal, the electric quantity trend in the starting process of the electric power acquisition terminal is effectively monitored, the electric quantity loss in the starting stage is avoided, and the electric quantity metering accuracy of the electric power acquisition terminal is improved.
In addition to the above-mentioned modifications, other similar modifications are also included in the scope of the modifications of the present invention, and are not described herein in detail. While embodiments of the invention have been shown and described, it will be understood by those skilled in the art that: many changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention.

Claims (10)

1. A method for measuring the electric quantity of a power acquisition terminal is characterized in that: the method comprises the following steps of,
s1: the power acquisition terminal is powered on, a bootstrap program is started, a metering chip is initialized, and the metering chip starts to monitor the consumption of electric quantity;
s2: the electric power acquisition terminal enters an application program, a metering module is initialized, and an electric quantity operation program is entered to process the electric quantity consumption monitored by the metering chip, wherein the electric quantity consumption comprises the electric quantity consumed by starting the electric power acquisition terminal and the normal electricity consumption monitored by the electric power acquisition terminal.
2. The power acquisition terminal electricity metering method according to claim 1, wherein:
and when the metering chip finishes initialization and starts to monitor the consumption of electric quantity, the initialization flag bit flag is set and stored in the EEPROM.
3. The power acquisition terminal electricity metering method according to claim 2, wherein:
before entering the electric quantity operation program, the electric power acquisition terminal reads a flag bit flag stored in the EEPROM to judge whether the metering chip works normally.
4. The power acquisition terminal electricity metering method according to claim 3, wherein:
if the flag bit flag is equal to 0xfe, the metering chip works normally, and the power acquisition terminal enters an electric quantity operation program;
if flag is 0xab, it indicates that the metering chip is not operating normally, and the metering chip is initialized again and then enters the electric quantity calculation program.
5. The power acquisition terminal electricity metering method according to claim 1, wherein:
the metering chip monitors the electricity consumption in a pulse number storage mode.
6. The power acquisition terminal electricity metering method according to claim 5, wherein:
the metering module processes and meters the electricity consumption quantity by reading the pulse number stored in the metering chip and comparing the pulse number with the pulse equivalent.
7. The power acquisition terminal electricity metering method according to claim 6, wherein:
when the number of pulses in the read metering chip is more than or equal to the pulse equivalent, increasing a set value by the electric quantity of the electric power acquisition terminal; and if the pulse equivalent is not reached, continuing to monitor the electric quantity, skipping again to read the pulse number in the metering chip again, and comparing the pulse number with the pulse equivalent.
8. The power acquisition terminal electricity metering method according to claim 1, wherein:
and the metering chip is initialized by reading the calibration parameters in the EEPROM.
9. The power acquisition terminal electricity metering method according to claim 8, wherein:
and correcting the chip initialization parameters when the power acquisition terminal is powered on for the first time, and storing the corrected parameters in the EEPROM to obtain the calibration table parameters.
10. The power acquisition terminal electricity metering method according to claim 7, wherein:
the power acquisition terminal also goes through a kernel program before entering an application program; the set value is 0.01 kwh.
CN201810553509.7A 2018-05-31 2018-05-31 Electric quantity measuring method for electric power acquisition terminal Active CN108594010B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810553509.7A CN108594010B (en) 2018-05-31 2018-05-31 Electric quantity measuring method for electric power acquisition terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810553509.7A CN108594010B (en) 2018-05-31 2018-05-31 Electric quantity measuring method for electric power acquisition terminal

Publications (2)

Publication Number Publication Date
CN108594010A CN108594010A (en) 2018-09-28
CN108594010B true CN108594010B (en) 2021-08-24

Family

ID=63630654

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810553509.7A Active CN108594010B (en) 2018-05-31 2018-05-31 Electric quantity measuring method for electric power acquisition terminal

Country Status (1)

Country Link
CN (1) CN108594010B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101923112A (en) * 2010-07-26 2010-12-22 珠海中慧微电子有限公司 Method for managing high reliability of electric energy measurement data
CN103543317A (en) * 2013-09-26 2014-01-29 光一科技股份有限公司 Method for measuring IEC (International Electrical Commission) standard voltage flicker
CN103728493A (en) * 2012-10-12 2014-04-16 苏州工业园区新宏博通讯科技有限公司 Multi-path single-phase and three-phase mixed electric energy metering device and method
CN104502883A (en) * 2014-12-30 2015-04-08 宁波三星电气股份有限公司 Method for detecting and solving anomaly of metering chips
CN108037355A (en) * 2017-11-01 2018-05-15 宁波三星医疗电气股份有限公司 Optimization method is calculated based on the requirement for stopping powering on

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040164741A1 (en) * 2003-02-25 2004-08-26 Chi-Yi Wang Apparatus for detecting batteries in an uninterruptible power supply by utilizing voltage drop rate

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101923112A (en) * 2010-07-26 2010-12-22 珠海中慧微电子有限公司 Method for managing high reliability of electric energy measurement data
CN103728493A (en) * 2012-10-12 2014-04-16 苏州工业园区新宏博通讯科技有限公司 Multi-path single-phase and three-phase mixed electric energy metering device and method
CN103728493B (en) * 2012-10-12 2016-09-14 苏州新宏博智能科技股份有限公司 Multichannel list three-phase uses electric energy gauging method with
CN103543317A (en) * 2013-09-26 2014-01-29 光一科技股份有限公司 Method for measuring IEC (International Electrical Commission) standard voltage flicker
CN104502883A (en) * 2014-12-30 2015-04-08 宁波三星电气股份有限公司 Method for detecting and solving anomaly of metering chips
CN108037355A (en) * 2017-11-01 2018-05-15 宁波三星医疗电气股份有限公司 Optimization method is calculated based on the requirement for stopping powering on

Also Published As

Publication number Publication date
CN108594010A (en) 2018-09-28

Similar Documents

Publication Publication Date Title
US7808244B2 (en) System and method for determining state of charge of a battery utilizing initial voltage and current measurement and a previous estimate of battery resistance
US9643508B2 (en) Method for estimating an accurate state of charge for initializing a battery management system
EP1950398B1 (en) Electronic control apparatus
US8234087B2 (en) Apparatus and method for detecting a status of a secondary battery connected to a load
CN111983495A (en) Battery pack health degree determination method and related device
US20090102514A1 (en) Duty cycle detecting circuit for pulse width modulation
CN112098712B (en) Method for preventing fraudulent use of electricity
CN103033758A (en) Display electric quantity value calibration method and device
CN105388445A (en) Automatic meter calibration method for single-phase electric energy meter
WO2013107694A4 (en) In situ processor re-characterization
JP2023101509A (en) Semiconductor device and method for detecting remaining amount of battery
CN108594010B (en) Electric quantity measuring method for electric power acquisition terminal
CN103913706A (en) Lithium-battery electric-quantity detection method and device
CN109426198B (en) Managing determination of transfer function of measurement sensor
CN111836347A (en) Electric quantity display method, device and equipment and readable storage medium
CN111025223B (en) Clock correction method, device, equipment and storage medium of electric energy meter
CN110646738A (en) Power battery SOC obtaining method and system and related components
US8249757B2 (en) Method and system for detection of standby status in linear and non-linear charges connected to the electricity mains and automatic disconnection thereof
CN112946562B (en) Power failure protection method and device for double-core intelligent electric meter and double-core intelligent electric meter
CN113032232B (en) Correlation method, correlation device and equipment for performance detection of equipment
CN114355212A (en) Battery self-discharge detection method and device, computer equipment and storage medium
US20200144953A1 (en) Brushless dc motor with automatic record of abnormal operation and method therefor
CN211348413U (en) Power supply voltage monitoring circuit
CN112098867B (en) Method, device and medium for determining remaining capacity and capacity display information of battery
CN109884573B (en) Method for testing electric energy meter

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant