CN107966673A - A kind of simple effective clock of power meter management method - Google Patents
A kind of simple effective clock of power meter management method Download PDFInfo
- Publication number
- CN107966673A CN107966673A CN201711335089.7A CN201711335089A CN107966673A CN 107966673 A CN107966673 A CN 107966673A CN 201711335089 A CN201711335089 A CN 201711335089A CN 107966673 A CN107966673 A CN 107966673A
- Authority
- CN
- China
- Prior art keywords
- clock
- electric energy
- energy meter
- hardware
- soft
- 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
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R35/00—Testing or calibrating of apparatus covered by the other groups of this subclass
- G01R35/04—Testing or calibrating of apparatus covered by the other groups of this subclass of instruments for measuring time integral of power or current
-
- G—PHYSICS
- G04—HOROLOGY
- G04G—ELECTRONIC TIME-PIECES
- G04G5/00—Setting, i.e. correcting or changing, the time-indication
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Electric Clocks (AREA)
Abstract
The present invention relates to a kind of simple effective clock of power meter management method, when mistake occur in the hardware clock data in electric energy meter, using soft clock come the hardware clock of synchronized update clock chip;When mistake occur in hardware clock and soft clock in electric energy meter, using the clock of EEPROM come the hardware clock and soft clock in synchronized update electric energy meter;After main station system receives the suspicious state of clock transmitted by electric energy meter, ordered during main station system transmission pair to electric energy meter, the Clock management process of electric energy meter is directed to come the hardware clock and soft clock in synchronized update electric energy meter, completion with the clock data sent using main station system.Hardware clock, the soft clock of RAM generations and the clock of EEPROM that the present invention is generated by clock chip are combined adjustment, to ensure that electric energy meter has accurate clock value all the time to greatest extent, avoid the exceptions such as electric energy meter powers off and the hardware clock of clock chip is disturbed from adversely affecting clock of power meter, and then reduce user's economic loss.
Description
Technical field
The present invention relates to electric energy meter field, more particularly to a kind of simple effective clock of power meter management method.
Background technology
In current electric energy meter industry, value is usually provided by the clock chip in electric energy meter at the time of electric energy meter, that is,
Say, the hardware clock generated using clock chip is worth to adjust at the time of renewal electric energy meter.
However, for electric energy meter in actual use, since power-off and clock chip occurs in electric energy meter
Hardware clock such as is disturbed at the generation of abnormal conditions, and it is abnormal that these abnormal conditions can cause the clock of electric energy meter to occur, so that cannot
Ensure that electric energy meter has accurate moment value.
The content of the invention
The technical problems to be solved by the invention are when providing a kind of simple effective electric energy meter for the above-mentioned prior art
Clock management method.The clock of power meter management method can ensure that electric energy meter has accurate clock value all the time to greatest extent,
The exceptions such as electric energy meter powers off and the hardware clock of clock chip is disturbed are avoided to adversely affect clock of power meter.
Technical solution is used by the present invention solves above-mentioned technical problem:A kind of simple effective clock of power meter management
Method, for the electric energy meter with clock chip, RAM and EEPROM, it is characterised in that include the following steps 1 to step 4:
Step 1, electric energy meter obtains the hardware clock that clock chip is generated, and acquired hardware clock is detected:
When detection obtain the hardware clock data occur mistake when, then by electric energy meter reacquire clock chip it is hard when
Clock;Otherwise, electric energy meter is using the soft clock in the hardware clock renewal RAM obtained, with described hard in the synchronous electric energy meter
Clock and soft clock;
Step 2, when continuously there is the mistake of preset times in the acquired hardware clock data of the electric energy meter detection, electric energy meter
The soft clock in RAM is not updated, and performs the judgement for the soft clock data validation:
When the soft clock data are legal, the hardware clock of the current soft clock refresh clock chip in the RAM is utilized;
When the soft clock data are illegal, electric energy meter obtains the clock in the EEPROM, using acquired
Clock in EEPROM updates the hardware clock and soft clock;
Step 3, the clock status that the electric energy meter changes the electric energy meter are suspicious state, and by the described suspicious of change
State is sent to main station system processing;
Step 4, the main station system is after the suspicious state is received, main station system send for electric energy meter pair when
Order to the electric energy meter, with the hardware clock and soft clock described in synchronized update in electric energy meter, complete for the electric energy meter
Clock management process.
With improvement, the clock of power meter management method further includes:Enter awakening mode from low-power consumption mode in electric energy meter
Or after power up mode, the electric energy meter completes the Clock management for the electric energy meter according to the method for step 1 to step 4.
Specifically, in the clock of power meter management method, the preset times in the step 2 is three times.
With improvement, in the clock of power meter management method, the electric energy meter performs the electric energy according to predetermined period
The Clock management process of table.
Further, the predetermined period is 1min.
Improve again, the clock of power meter management method further includes:The electric energy meter, which is recorded at the time of it is powered off every time, to be worth,
And history power-cut time database is established in the electric energy meter, for transferring the step of electric energy meter power-off records at any time.
Improve again, the clock of power meter management method further includes following steps a1 to step a5:
Step a1, the electric energy meter establish parameter change buffer area;
Step a2, the parameter to change in the process of running is added change mark by the electric energy meter, and will be had more
The newest variation time of the parameter and corresponding parameter that change mark is saved in the parameter change buffer area;
Step a3, for the electric energy meter when powering off and powering on again, electric energy meter searches acquisition in parameter change buffer area
To the newest variation time in the variation time corresponding to all parameters;
Step a4, the electric energy meter is using the newest variation time of acquisition as electric energy meter internal clock chip on current
Hardware clock reference time during power mode;
Step a5, the electric energy meter judge hardware clock be updated after time earlier than the hardware clock reference time when, institute
State electric energy meter request main station system send pair when data, with by electric energy meter using main station system send pair when data update itself
The step of hardware clock.
Further improve, the clock of power meter management method further includes:The electric energy meter receives external management person to institute
State the adjustment of hardware clock and/or soft clock, using the hardware clock data after adjustment as the newest clock in clock chip and
Using the soft clock data after adjustment as in RAM the step of newest clock.
With improvement, the clock of power meter management method further includes:Establish the communication link of the electric energy meter and external network
Connect, and the hardware clock of clock chip and the soft clock of RAM be not up to clock it is consistent when, the electric energy meter is obtained on external network
Current real-time clock data, and using obtain the current real-time clock data synchronously replace electric energy meter in hardware clock and
Soft clock, to complete the electric energy meter internal clock step synchronous with external network clock.
Further, the electric energy meter establishes the communication connection with extraneous network by wireless or wired mode.
Compared with prior art, the advantage of the invention is that:
1) when there is mistake in hardware clock data in electric energy meter, using soft clock come synchronized update clock chip it is hard when
Clock, ensures that hardware clock is synchronous with soft clock in electric energy meter;
2) when mistake occur in the hardware clock in electric energy meter and soft clock, using the clock of EEPROM come synchronized update electricity
Hardware clock and soft clock in energy table, so as to ensure the synchronization of hardware clock and soft clock in electric energy meter again;
3) after main station system receives the suspicious state of clock transmitted by electric energy meter, by being ordered during main station system transmission pair
To electric energy meter, with the clock data that is sent using main station system come the hardware clock and soft clock in synchronized update electric energy meter, complete
For the Clock management process of electric energy meter;
4) present invention in clock of power meter management method generated by clock chip hardware clock, RAM generation it is soft
The clock of clock and EEPROM are combined adjustment, to ensure that electric energy meter has accurate clock value all the time to greatest extent,
Avoid the exceptions such as electric energy meter powers off and the hardware clock of clock chip is disturbed from adversely affecting clock of power meter, and then drop
Low user's economic loss;
5) present invention utilizes the existing soft and hardware resource of ammeter and running environment, in the case where additionally not increasing cost,
A kind of relatively reliable clock management method is provided;
6) present invention incorporates ammeter and the respective advantage of system main website, the accuracy of guarantee ammeter clock.
Brief description of the drawings
Fig. 1 is simple effective clock of power meter management method flow diagram in the embodiment of the present invention.
Embodiment
The present invention is described in further detail below in conjunction with attached drawing embodiment.
As shown in Figure 1, simple effective clock of power meter management method in the present embodiment, for clock chip, RAM
With the electric energy meter of EEPROM, the interior generation of clock chip has hardware clock, and being generated in RAM has soft clock;Specifically, the clock of power meter
Management method includes the following steps 1 to step 4:
Step 1, electric energy meter obtains the hardware clock that clock chip is generated, and acquired hardware clock is detected:
When mistake occur in the hardware clock data that detection obtains, then the hardware clock of clock chip is reacquired by electric energy meter;
Otherwise, electric energy meter is using the soft clock in the hardware clock renewal RAM obtained, with the hardware clock in the synchronous electric energy meter and it is soft when
Clock;
Step 2, when the mistake of preset times continuously occur in the acquired hardware clock data of electric energy meter detection, electric energy meter is refused
The soft clock in RAM is updated, and performs the judgement for soft clock data validation;Wherein, it is set pre- in the present embodiment
If number is three times;That is, when the acquired hardware clock data of electric energy meter detection continuously occur wrong three times, electric energy
Table is refused to update the soft clock in RAM;It is as follows for the judgment mode of soft clock data validation:
When soft clock data are legal, the hardware clock of the current soft clock refresh clock chip in RAM is utilized;
When soft clock data are illegal, electric energy meter obtain EEPROM in clock, using in acquired EEPROM when
Clock updates hardware clock and soft clock;
Step 3, the clock status of electric energy meter change electric energy meter are suspicious state, and the suspicious state of change is sent to master
System of standing processing;
Step 4, main station system is after suspicious state is received, main station system send for electric energy meter pair when order to electricity
Energy table, with the hardware clock and soft clock in synchronized update electric energy meter, completes the Clock management process for electric energy meter.The present embodiment
In, electric energy meter performs the above-mentioned Clock management process of electric energy meter according to predetermined period, and predetermined period here could be provided as
1min。
In addition, in electric energy meter after low-power consumption mode enters awakening mode or power up mode, electric energy meter is according to above-mentioned step
Rapid 1 to step 4 method complete for the electric energy meter Clock management.
Clock of power meter management method in the present embodiment can also be by performing following steps a1 to step a5, to complete
Renewal of the main station system to hardware clock in electric energy meter, specifically step a1 is as follows to step a5:
Step a1, electric energy meter establish parameter change buffer area;
Step a2, the parameter to change in the process of running is added change mark by electric energy meter, and will have change mark
The newest variation time of the parameter of knowledge and corresponding parameter is saved in the parameter change buffer area;
Step a3, electric energy meter when powering off and powering on again, in parameter change buffer area search and get institute by electric energy meter
There is the parameter corresponding newest variation time changed in the time;
Step a4, electric energy meter is using the newest variation time of acquisition as electric energy meter internal clock chip in current power up mode
The hardware clock reference time;
Step a5, electric energy meter judge hardware clock be updated after time earlier than the hardware clock reference time when, electric energy meter request
Main station system send pair when data, with by electric energy meter using main station system send pair when data update itself hardware clock.
Electric energy meter, which can also be recorded at the time of it is powered off every time, to be worth, and history power-cut time data are established in electric energy meter
Storehouse, for transferring the power-off of electric energy meter record at any time.
In order to meet adjustment needs of the electric energy meter manager to electric energy meter internal clock, the clock of power meter pipe in the present embodiment
Reason method can also receive adjustment of the external management person to hardware clock and/or soft clock by electric energy meter, will be hard after adjustment
Clock data is as the newest clock in clock chip and using the soft clock data after adjustment as newest clock in RAM.
In order to enable the clock in electric energy meter can be synchronous with the clock of external network, the clock of power meter in the present embodiment
Management method can include:Establish the communication connection of electric energy meter and external network, and clock chip hardware clock and RAM it is soft
Clock be not up to clock it is consistent when, electric energy meter obtain external network on current real-time clock data, and using obtain it is current
Real time clock data synchronously replaces hardware clock and soft clock in electric energy meter, to complete electric energy meter internal clock and external network clock
It is synchronous.Wherein, electric energy meter preferably establishes the communication connection with extraneous network by wireless or wired mode.
Although the preferred embodiment of the present invention described in detail above, it is to be clearly understood that for this area
Technical staff for, the invention may be variously modified and varied.That is made within the spirit and principles of the invention appoints
What modification, equivalent substitution, improvement etc., should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of simple effective clock of power meter management method, for the electric energy meter with clock chip, RAM and EEPROM,
It is characterised in that it includes following steps 1 are to step 4:
Step 1, electric energy meter obtains the hardware clock that clock chip is generated, and acquired hardware clock is detected:
When mistake occur in the hardware clock data that detection obtains, then the hardware clock of clock chip is reacquired by electric energy meter;
Otherwise, electric energy meter is using the soft clock in the hardware clock renewal RAM obtained, with the hardware clock in the synchronous electric energy meter
And soft clock;
Step 2, when the mistake of preset times continuously occur in the acquired hardware clock data of the electric energy meter detection, electric energy meter is refused
The soft clock in RAM is updated, and performs the judgement for the soft clock data validation:
When the soft clock data are legal, the hardware clock of the current soft clock refresh clock chip in the RAM is utilized;
When the soft clock data are illegal, electric energy meter obtains the clock in the EEPROM, using in acquired EEPROM
Clock update the hardware clock and soft clock;
Step 3, the clock status that the electric energy meter changes the electric energy meter are suspicious state, and by the suspicious state of change
It is sent to main station system processing;
Step 4, the main station system is after the suspicious state is received, main station system send for electric energy meter pair when order
To the electric energy meter, with the hardware clock and soft clock described in synchronized update in electric energy meter, the clock for the electric energy meter is completed
Management process.
2. clock of power meter management method according to claim 1, it is characterised in that further include:In electric energy meter from low work(
After consumption pattern enters awakening mode or power up mode, the electric energy meter is completed for described according to the method for step 1 to step 4
The Clock management of electric energy meter.
3. clock of power meter management method according to claim 1, it is characterised in that the preset times in the step 2
For three times.
4. clock of power meter management method according to claim 1, it is characterised in that the electric energy meter is according to predetermined period
Perform the Clock management process of the electric energy meter.
5. clock of power meter management method according to claim 4, it is characterised in that the predetermined period is 1min.
6. according to clock of power meter management method according to any one of claims 1 to 5, it is characterised in that further include:It is described
Electric energy meter, which is recorded at the time of it is powered off every time, to be worth, and history power-cut time database is established in the electric energy meter, at any time
The step of transferring electric energy meter power-off record.
7. according to clock of power meter management method according to any one of claims 1 to 5, it is characterised in that further include as follows
Step a1 to step a5:
Step a1, the electric energy meter establish parameter change buffer area;
Step a2, the parameter to change in the process of running is added change mark by the electric energy meter, and will have change mark
The newest variation time of the parameter of knowledge and corresponding parameter is saved in the parameter change buffer area;
Step a3, the electric energy meter when powering off and powering on again, in parameter change buffer area search and get institute by electric energy meter
There is the parameter corresponding newest variation time changed in the time;
The newest variation time of acquisition is powered on mould by step a4, the electric energy meter as electric energy meter internal clock chip currently
Hardware clock reference time during formula;
Step a5, the electric energy meter judge hardware clock be updated after time earlier than the hardware clock reference time when, the electricity
Can table request main station system send pair when data, with by electric energy meter using main station system send pair when data update itself it is hard when
The step of clock.
8. according to clock of power meter management method according to any one of claims 1 to 5, it is characterised in that further include:It is described
Electric energy meter receives adjustment of the external management person to the hardware clock and/or soft clock, using the hardware clock data after adjustment as
Newest clock in clock chip and using the soft clock data after adjustment as in RAM the step of newest clock.
9. clock of power meter management method according to claim 1, it is characterised in that further include:Establish the electric energy meter
With the communication connection of external network, and the hardware clock of clock chip and the soft clock of RAM be not up to clock it is consistent when, the electricity
Energy table obtains the current real-time clock data on external network, and utilizes the current real-time clock data obtained synchronously replacement
Hardware clock and soft clock in electric energy meter, to complete the electric energy meter internal clock step synchronous with external network clock.
10. clock of power meter management method according to claim 9, it is characterised in that the electric energy meter by wireless or
Person's wired mode establishes the communication connection with extraneous network.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711335089.7A CN107966673B (en) | 2017-12-14 | 2017-12-14 | Simple and effective clock management method for electric energy meter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711335089.7A CN107966673B (en) | 2017-12-14 | 2017-12-14 | Simple and effective clock management method for electric energy meter |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107966673A true CN107966673A (en) | 2018-04-27 |
CN107966673B CN107966673B (en) | 2020-06-09 |
Family
ID=61995336
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711335089.7A Active CN107966673B (en) | 2017-12-14 | 2017-12-14 | Simple and effective clock management method for electric energy meter |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107966673B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110320791A (en) * | 2019-06-20 | 2019-10-11 | 国网湖南省电力有限公司 | A kind of power information acquisition system clock management method and device |
CN110736873A (en) * | 2019-10-29 | 2020-01-31 | 宁波三星医疗电气股份有限公司 | clock repairing method, power terminal and power system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07280970A (en) * | 1994-04-07 | 1995-10-27 | Nissin Electric Co Ltd | Monitoring control system with time synchronizing function |
WO1998014842A1 (en) * | 1996-10-03 | 1998-04-09 | H.P.M. Technologies Pty. Ltd. | Synchronization of a timepiece to a reference time |
US8000696B2 (en) * | 2006-03-22 | 2011-08-16 | Actaris U.K. Limited | Method for accurate time setting of communication device over the air and corresponding communication device |
CN104635196A (en) * | 2015-02-10 | 2015-05-20 | 武汉阿迪克电子股份有限公司 | Real-time clock synchronous error-correcting method for charge-controlled intelligent electric energy meter |
CN106569921A (en) * | 2016-10-17 | 2017-04-19 | 国家电网公司 | Metering core clock processing method and apparatus for dual-core intelligent electric energy meter |
CN106569544A (en) * | 2015-10-10 | 2017-04-19 | 上海东软载波微电子有限公司 | Real time clock chip, and clock calibration method and apparatus |
-
2017
- 2017-12-14 CN CN201711335089.7A patent/CN107966673B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07280970A (en) * | 1994-04-07 | 1995-10-27 | Nissin Electric Co Ltd | Monitoring control system with time synchronizing function |
WO1998014842A1 (en) * | 1996-10-03 | 1998-04-09 | H.P.M. Technologies Pty. Ltd. | Synchronization of a timepiece to a reference time |
US8000696B2 (en) * | 2006-03-22 | 2011-08-16 | Actaris U.K. Limited | Method for accurate time setting of communication device over the air and corresponding communication device |
CN104635196A (en) * | 2015-02-10 | 2015-05-20 | 武汉阿迪克电子股份有限公司 | Real-time clock synchronous error-correcting method for charge-controlled intelligent electric energy meter |
CN106569544A (en) * | 2015-10-10 | 2017-04-19 | 上海东软载波微电子有限公司 | Real time clock chip, and clock calibration method and apparatus |
CN106569921A (en) * | 2016-10-17 | 2017-04-19 | 国家电网公司 | Metering core clock processing method and apparatus for dual-core intelligent electric energy meter |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110320791A (en) * | 2019-06-20 | 2019-10-11 | 国网湖南省电力有限公司 | A kind of power information acquisition system clock management method and device |
CN110736873A (en) * | 2019-10-29 | 2020-01-31 | 宁波三星医疗电气股份有限公司 | clock repairing method, power terminal and power system |
CN110736873B (en) * | 2019-10-29 | 2022-02-25 | 宁波三星医疗电气股份有限公司 | Clock repairing method, power terminal and power system |
Also Published As
Publication number | Publication date |
---|---|
CN107966673B (en) | 2020-06-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103997779B (en) | Information synchronization system and information synchronization method | |
US20150205316A1 (en) | Apparatus and method for managing energy information profile of home based on smart plug | |
CN103984323B (en) | A kind of integrated configurable industrial information monitoring analysis and Control system | |
CN103813356A (en) | Flow management device and flow management method thereof | |
CN112511393B (en) | Equipment linkage control method and device and storage medium | |
CN104217466B (en) | RFID-based traffic direction identification system and method | |
MY155484A (en) | Communication apparatus, communication method, program, information management apparatus and communication system | |
CN107966673A (en) | A kind of simple effective clock of power meter management method | |
US11607127B2 (en) | Transfer of sensor data | |
CN104156900A (en) | Smart water plant management information monitoring system | |
CN104580246B (en) | Dynamic and intelligent safe key is produced and managing and control system and method under WiFi environment | |
CN110381560A (en) | Wireless sensor network communication method suitable for electric field | |
CN103297333A (en) | Gateway information processor and wifi gateway control method with processor | |
CN105300025A (en) | Refrigerator monitoring system | |
CN107612988B (en) | Account book synchronization system and method based on Internet of things | |
CN106254124B (en) | One kind being based on the improved Intelligent substation merging unit configuration method in short address | |
CN109905911A (en) | WiFi control method, device, wearable smart machine and storage medium | |
WO2014141161A3 (en) | Techniques for communicating data amongst controllers in a power supply system | |
CN205373256U (en) | Fridge monitored control system | |
CN106792536A (en) | A kind of Intelligent bracelet and intelligent domestic system | |
CN203179990U (en) | Maintenance system for new energy fuel cell equipment | |
CN205880631U (en) | Workshop appliance daily test system based on thing networking | |
CN205484174U (en) | Laminar crack monitoring system is scribbled to novel intelligence based on induction type wireless technology | |
CN203180952U (en) | Gateway information processor | |
CN209419858U (en) | A kind of Bluetooth gateway |
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 |