CN114384787B - Method and device for calibrating clock of electric energy meter - Google Patents

Method and device for calibrating clock of electric energy meter Download PDF

Info

Publication number
CN114384787B
CN114384787B CN202111434256.XA CN202111434256A CN114384787B CN 114384787 B CN114384787 B CN 114384787B CN 202111434256 A CN202111434256 A CN 202111434256A CN 114384787 B CN114384787 B CN 114384787B
Authority
CN
China
Prior art keywords
electric energy
energy meter
clock
target electric
clock information
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
CN202111434256.XA
Other languages
Chinese (zh)
Other versions
CN114384787A (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.)
State Grid Corp of China SGCC
State Grid Beijing Electric Power Co Ltd
Qingdao Topscomm Communication Co Ltd
Original Assignee
State Grid Corp of China SGCC
State Grid Beijing Electric Power Co Ltd
Qingdao Topscomm Communication 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 State Grid Corp of China SGCC, State Grid Beijing Electric Power Co Ltd, Qingdao Topscomm Communication Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN202111434256.XA priority Critical patent/CN114384787B/en
Publication of CN114384787A publication Critical patent/CN114384787A/en
Application granted granted Critical
Publication of CN114384787B publication Critical patent/CN114384787B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G5/00Setting, i.e. correcting or changing, the time-indication
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R11/00Electromechanical arrangements for measuring time integral of electric power or current, e.g. of consumption
    • G01R11/02Constructional details
    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G7/00Synchronisation

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Electric Clocks (AREA)

Abstract

The invention discloses a method and a device for calibrating a clock of an electric energy meter. The invention comprises the following steps: acquiring clock information of a target electric energy meter; after receiving the broadcast timing command, calculating a time difference value between the system time contained in the broadcast timing command and clock information of the electric energy meter; judging whether the time difference value is larger than or equal to a preset threshold value; and under the condition that the time difference value is greater than or equal to a preset threshold value, controlling the target electric energy meter to enter a programming state, and performing calibration operation on the date information and the clock information of the target electric energy meter in the programming state. The invention solves the problem that automatic calibration cannot be carried out under the condition of larger clock overtime range of the electric energy meter in the related technology.

Description

Method and device for calibrating clock of electric energy meter
Technical Field
The invention relates to the field of electric energy meter calibration, in particular to a method and a device for calibrating an electric energy meter clock.
Background
In the related technology, along with continuous application of an electricity consumption information acquisition system, popularization of time-sharing rate electricity prices, assessment calculation of voltage line losses of various grades, reporting of power outage and transmission events and other links, higher requirements are put forward on the accuracy of an electric energy meter clock. The clock abnormality of the electric energy meter not only affects the success rate of electricity consumption collection and effective control of line loss rate, but also easily causes time-sharing rate metering errors and causes customer complaints. The clock abnormality can cause the electric energy meter alarm lamp to flash and appear a white screen, thereby influencing the time-sharing electricity price of residents.
At present, the method for processing clock abnormality of the electric energy meter mainly has five points, and the following 2009 edition electric energy meter is taken as an example: 1) Remote timing: and for 2009 version electric energy meters with clock deviation within +/-5 min, a broadcasting timing command is used, and remote timing operation processing can be performed at a master station. 2) Encryption modification: for 2009 version electric energy meters with clock deviation beyond 5min, related personnel go to the site operation electric energy meter end, and when the clock is timed by adopting a common palm machine or a special notebook computer program, a programming key needs to be manually opened, and the permission and the password are correct. 3) And (3) reinforcing management and control: for the electric energy meter with 2009 version of electric energy meter built-in components damaged and Zhong Dianchi exhausted in time, damaged components or batteries can be replaced on site, and clock abnormality is avoided. Meanwhile, transportation and installation process management and control are enhanced, and damage to components of the intelligent electric energy meter in the transportation and installation process is avoided. 4) And (3) batch replacement: for 2009 version electric energy meters with faults of a large number of clock built-in chips, records are needed to be made and timely reflected to manufacturers. In order to ensure that the customers are using electricity and the electricity charge is accurate, the customers can replace the customers in batches in advance. 5) And (3) periodically monitoring: and a 2009 electric energy meter clock abnormality periodic monitoring system is established, the 2009 electric energy meter clock abnormality problem is found in time, the analysis and the treatment of the problem are enhanced, and the health running level of the 2009 electric energy meter is improved.
The condition that 2009 edition ammeter clock exceeds the tolerance for more than 5min can only be solved to traditional solution is long-range, and when 2009 edition ammeter clock exceeds the tolerance for more than 5min, can only go to the scene through personnel, and the ammeter programming button of 2009 edition of operation at the table end calibrates or directly changes the ammeter, and not only maintenance cost is high, and inefficiency.
In view of the above problems in the related art, no effective solution has been proposed at present.
Disclosure of Invention
The invention mainly aims to provide a method and a device for calibrating a clock of an electric energy meter, which are used for solving the problem that automatic calibration cannot be carried out under the condition of larger overtime range of the clock of the electric energy meter in the related art.
In order to achieve the above object, according to one aspect of the present invention, there is provided a method for calibrating a clock of an electric energy meter. The invention comprises the following steps: acquiring clock information of a target electric energy meter; after receiving the broadcast timing command, calculating a time difference value between the system time contained in the broadcast timing command and clock information of the electric energy meter; judging whether the time difference value is larger than or equal to a preset threshold value; and under the condition that the time difference value is greater than or equal to a preset threshold value, controlling the target electric energy meter to enter a programming state, and performing calibration operation on the date information and the clock information of the target electric energy meter in the programming state.
Above-mentioned, obtaining clock information of the target electric energy meter includes: according to a preset protocol, a reading command for reading a communication address of a target electric energy meter is sent; reading the communication address of the target electric energy meter according to the reading command; sending a read data identifier according to the communication address; and reading clock information corresponding to the target electric energy meter according to the data identification.
After receiving the broadcast timing command, before calculating the time difference between the system time contained in the broadcast timing command and the clock information of the electric energy meter, the method further comprises: judging whether the broadcast timing command is legal or not; and under the condition that the broadcast timing command is legal, storing the system time contained in the broadcast timing command, and triggering a clock management task according to the broadcast timing command.
Above, in case the time difference is smaller than a preset threshold, the method further comprises: forwarding the broadcast timing command to a target electric energy meter; and controlling the target electric energy meter to adjust the clock information of the electric energy meter to the clock information consistent with the system time.
Under the condition that the time difference value is larger than or equal to a preset threshold value, the target electric energy meter is controlled to enter a programming state, and the calibration operation is carried out on the date information and the clock information of the target electric energy meter in the programming state, and the method comprises the following steps: when the time difference value is larger than or equal to a preset threshold value, controlling a preset motor to rotate to drive a pressing rod to act so as to press a programming key of the target electric energy meter to enable the target electric energy meter to enter a programming state, wherein the preset motor is arranged adjacent to the programming key; and in the programming state, performing calibration operation on the date information and the clock information according to the authority of writing data.
Under the condition that the time difference value is larger than or equal to a preset threshold value, the target electric energy meter is controlled to enter a programming state, and after the date information and the clock information of the target electric energy meter are calibrated in the programming state, the method further comprises the following steps: controlling a preset motor to rotate so as to loosen a programming key of the target electric energy meter; and under the condition that the programming key is released, controlling the target electric energy meter to exit from the programming state.
Under the condition that the time difference value is larger than or equal to a preset threshold value, the target electric energy meter is controlled to enter a programming state, and after the date information and the clock information of the target electric energy meter are calibrated in the programming state, the method further comprises the following steps: and recording and storing the date information and the clock information of the calibrated target electric energy meter.
In order to achieve the above object, according to another aspect of the present invention, there is provided a calibration device for a clock of an electric energy meter. The device comprises: the acquisition module is used for acquiring clock information of the target electric energy meter; the clock management module is used for calculating the time difference between the system time contained in the broadcast timing command and the clock information of the electric energy meter after receiving the broadcast timing command; the judging module is used for judging whether the time difference value is larger than or equal to a preset threshold value; the clock management module is also used for controlling the target electric energy meter to enter a programming state under the condition that the time difference value is larger than or equal to a preset threshold value, and performing calibration operation on the date information and the clock information of the target electric energy meter under the programming state.
To achieve the above object, according to another aspect of the present application, there is provided a computer-readable storage medium including a stored program, wherein the program performs a method of calibrating a clock of an electric energy meter of any one of the above.
To achieve the above object, according to another aspect of the present application, there is provided a processor for executing a program, wherein the program performs a method of calibrating a clock of an electric energy meter of any one of the above.
According to the invention, the following steps are adopted: acquiring clock information of a target electric energy meter; after receiving the broadcast timing command, calculating a time difference value between the system time contained in the broadcast timing command and clock information of the electric energy meter; judging whether the time difference value is larger than or equal to a preset threshold value; under the condition that the time difference value is larger than or equal to a preset threshold value, the target electric energy meter is controlled to enter a programming state, and the date information and the clock information of the target electric energy meter are calibrated in the programming state, so that the problem that automatic calibration cannot be carried out under the condition that the clock timeout range of the electric energy meter is larger in the related art is solved. Furthermore, the effects of saving manpower and material resources are achieved without the participation of personnel on site and without the limitation of out-of-tolerance time.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention. In the drawings:
FIG. 1 is a flow chart of a method for calibrating a clock of an electric energy meter according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a calibration device for a clock of an electric energy meter according to an embodiment of the present invention.
Detailed Description
It should be noted that, without conflict, the embodiments of the present invention and features of the embodiments may be combined with each other. The invention will be described in detail below with reference to the drawings in connection with embodiments.
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the invention herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an embodiment of the invention, a method for calibrating a clock of an electric energy meter is provided.
Fig. 1 is a flowchart of a method for calibrating a clock of an electric energy meter according to an embodiment of the invention. As shown in fig. 1, the invention comprises the following steps:
step S101, obtaining clock information of the target electric energy meter.
Above-mentioned ground, the clock abnormality of the electric energy meter causes an unstable factor to the resident's execution time-of-use electricity price, so power supply enterprises must in time and accurately make fault analysis judgment and processing to the clock abnormality of the electric energy meter. The electric energy meter in the embodiment of the application is specifically described by taking a traditional 2009 type electric energy meter as an example.
And initializing a calibration system to acquire clock information of the target electric energy meter.
Step S102, after receiving the broadcast timing command, calculating a time difference between the system time contained in the broadcast timing command and clock information of the electric energy meter.
The technical scheme of remotely calibrating clock information of the electric energy meter through the broadcasting timing command is provided, specifically, a time difference value between system time and the clock of the electric energy meter is calculated according to the broadcasting timing command, wherein the broadcasting timing command comprises the system time.
The clock information of the electric energy meter at least comprises clock time and date and time.
Step S103, judging whether the time difference value is larger than or equal to a preset threshold value.
In the embodiment provided in the present application, preferably, the preset threshold is 5min, and the preset threshold may be specifically set according to different scenes.
And step S104, controlling the target electric energy meter to enter a programming state under the condition that the time difference value is larger than or equal to a preset threshold value, and performing calibration operation on the date information and the clock information of the target electric energy meter in the programming state.
Specifically, the application provides an electric energy meter with clock management module, wherein, is provided with motor and rotation depression bar on clock management module, and the motor drives the rotation depression bar action, and when the calibration electric energy meter clock information, the motor drives the rotation depression bar action so that the programming button of pressing the electric energy meter makes the electric energy become programming state.
Under the condition that the time difference value is larger than or equal to the preset threshold value, the motor of the clock management module is controlled to operate the programming key of the electric energy meter, so that the electric energy meter enters a programming state, and the calibration operation of date and time and clock time is automatically carried out in the programming state.
According to the method, the problem of clock abnormality of the electric energy meter can be effectively solved, even if the time difference value is larger than the preset threshold value, people do not need to go to the site of the meter end, the clock abnormality can be treated one by one, manpower and material resources are greatly saved, the problems of freezing, event time label errors, electric energy meter metering errors of time-sharing rates, line loss abnormality and the like caused by clock out-of-tolerance are effectively solved, meanwhile, the system is automatically maintained, once the clock out-of-tolerance of the electric energy meter is found, clock management can be timely carried out, and accuracy of user data acquisition is guaranteed.
In an alternative example, obtaining clock information for a target power meter includes: according to a preset protocol, a reading command for reading a communication address of a target electric energy meter is sent; reading the communication address of the target electric energy meter according to the reading command; sending a read data identifier according to the communication address; and reading clock information corresponding to the target electric energy meter according to the data identification.
Above-mentioned ground, according to DL/T645-2007 agreement, send and read the communication address command of goal electric energy meter, obtain the communication address of goal electric energy meter, after successfully obtaining the communication address of goal electric energy meter, send and read the data identification: 04 00 01 01 date and week command, and read data identification: 04 00 01 02, obtaining clock information of the target electric energy meter, and storing and maintaining.
In an alternative embodiment, after receiving the broadcast timing command, before calculating a time difference between the system time included in the broadcast timing command and clock information of the electric energy meter, the method further includes: judging whether the broadcast timing command is legal or not; and under the condition that the broadcast timing command is legal, storing the system time contained in the broadcast timing command, and triggering a clock management task according to the broadcast timing command.
After receiving the broadcast timing command, the clock management module of the target electric energy meter firstly judges whether the timing system time is legal, namely whether the time, the month, the day, the time and the second are within the effective data range, stores the timing system time after judging that the timing system time is legal, and triggers the clock management task. In the clock management task, the difference value between the system time of timing and the clock of the target electric energy meter is calculated, and corresponding processing logic is determined to be started according to the out-of-tolerance time.
In an alternative embodiment, in the case that the time difference is smaller than the preset threshold, the method further includes: forwarding the broadcast timing command to a target electric energy meter; and controlling the target electric energy meter to adjust the clock information of the electric energy meter to the clock information consistent with the system time.
As described above, according to the broadcast timing specification in the DL/T645-2007 protocol: and when the time difference between the date and clock of the slave station and the master station is within + -preset threshold value, executing the broadcast timing command, namely adjusting the date and clock of the slave station to be consistent with the date and clock given by the command. When the clock out-of-tolerance of the target electric energy meter does not exceed a preset threshold, the clock management module directly forwards the broadcast timing message to the target electric energy meter, and the target electric energy meter can adjust the date clock to be consistent with the date clock issued by the broadcast timing command.
In an alternative embodiment, when the time difference is greater than or equal to a preset threshold, the method controls the target electric energy meter to enter a programming state, and performs calibration operation on date information and clock information of the target electric energy meter in the programming state, including: when the time difference value is larger than or equal to a preset threshold value, controlling a preset motor to rotate to drive a pressing rod to act so as to press a programming key of the target electric energy meter to enable the target electric energy meter to enter a programming state, wherein the preset motor is arranged adjacent to the programming key; and in the programming state, performing calibration operation on the date information and the clock information according to the authority of writing data.
When the clock out-of-tolerance of the target electric energy meter exceeds the preset threshold, the target electric energy meter cannot be calibrated through broadcasting timing any more, and date and time modification is needed through higher authority data writing operation. According to the write data requirements in the DL/T645-2007 protocol, a push-button fit needs to be programmed. At the moment, the motor of the clock management module is controlled to drive the pressing rod when rotating, the programming key of the target electric energy meter is pressed down through the pressing rod to enter a programming state, and in the programming state, the date and the clock of the target electric energy meter can be calibrated through the data writing authority, and manual intervention is not needed in the process.
After the electric energy meter enters a programming state, the data control code is written according to the data writing format requirement in the DL/T645-2007 protocol: c=14h, data field length: l=04h+04h (password) +04H (operator code) +m (data length), data field: DI0DI1DI2DI3 (DATA identification) +pap0p0p1p2 (password) +c0c1c2c3 (operator code) +data. Password default to 000000, rights 02, operator code default to 12345678, through external settings.
Firstly, setting the date and the week of the electric energy meter, according to the date and the week of the data identifier 04 00 01 01 in the DL/T645-2007 protocol, calculating the week according to the date of the broadcast timing command, sending a writing date and a week command to the electric energy meter, calibrating the date to the master station date, then setting the time of the electric energy meter, according to the time of the data identifier 04 00 01 02 in the DL/T645-2007 protocol, extracting the time of the unit time in the broadcast timing command, sending the writing time command to the electric energy meter, calibrating the time to the master station system time, and calibrating the clock of the electric energy meter to the master station system time after the process is finished.
In an alternative example, when the time difference value is greater than or equal to a preset threshold value, the method further includes, after controlling the target electric energy meter to enter a programmed state and performing a calibration operation on date information and clock information of the target electric energy meter in the programmed state: controlling a preset motor to rotate so as to loosen a programming key of the target electric energy meter; and under the condition that the programming key is released, controlling the target electric energy meter to exit from the programming state.
Above-mentioned ground, after the date and time calibration to the electric energy meter, the motor of control clock management module drives the depression bar when the motor rotates, pushes down the programming button of electric energy meter through the depression bar, exits programming state, prevents to carry out other maloperation under the programming state.
In an alternative example, when the time difference value is greater than or equal to a preset threshold value, the method further includes, after controlling the target electric energy meter to enter a programmed state and performing a calibration operation on date information and clock information of the target electric energy meter in the programmed state: and recording and storing the date information and the clock information of the calibrated target electric energy meter.
Above-mentioned ground, to electric energy meter clock calibration accomplish the back, reacquire the date and time of electric energy meter, synchronize the electric energy meter clock that stores, after receiving broadcast timing command once more, just can be accurate calculate the clock out of tolerance of system clock and electric energy meter to handle.
According to the calibration method of the electric energy meter clock, clock information of the target electric energy meter is obtained; after receiving the broadcast timing command, calculating a time difference value between the system time contained in the broadcast timing command and clock information of the electric energy meter; judging whether the time difference value is larger than or equal to a preset threshold value; under the condition that the time difference value is larger than or equal to a preset threshold value, the target electric energy meter is controlled to enter a programming state, and the date information and the clock information of the target electric energy meter are calibrated in the programming state, so that the problem that automatic calibration cannot be carried out under the condition that the clock timeout range of the electric energy meter is larger in the related art is solved. Furthermore, the effects of saving manpower and material resources are achieved without the participation of personnel on site and without the limitation of out-of-tolerance time.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
The embodiment of the invention also provides a calibrating device for the electric energy meter clock, and the calibrating device for the electric energy meter clock can be used for executing the calibrating method for the electric energy meter clock. The following describes a calibration device for an electric energy meter clock provided by the embodiment of the invention.
Fig. 2 is a schematic diagram of a calibration device for a clock of an electric energy meter according to an embodiment of the invention. As shown in fig. 2, the apparatus includes: an acquisition module 201, configured to acquire clock information of a target electric energy meter; the clock management module 202 calculates a time difference value between the system time contained in the broadcast timing command and clock information of the electric energy meter after receiving the broadcast timing command; a determining module 203, configured to determine whether the time difference is greater than or equal to a preset threshold; the clock management module 202 is further configured to control the target electric energy meter to enter a programmed state when the time difference value is greater than or equal to a preset threshold value, and perform calibration operation on date information and clock information of the target electric energy meter in the programmed state.
In an alternative example, the obtaining module includes: the first sending submodule is used for sending a reading command for reading the communication address of the target electric energy meter according to a preset protocol; the first reading sub-module is used for reading the communication address of the target electric energy meter according to the reading command; the second sending sub-module is used for sending the read data identifier according to the communication address; and the second reading submodule is used for reading clock information corresponding to the target electric energy meter according to the data identifier.
In an alternative example, the apparatus further comprises: the judging module is used for judging whether the broadcast timing command is legal or not before calculating the time difference between the system time contained in the broadcast timing command and the clock information of the electric energy meter after receiving the broadcast timing command; and the first storage module is used for storing the system time contained in the broadcast timing command under the condition that the broadcast timing command is legal, and triggering a clock management task according to the broadcast timing command.
In an alternative example, comprising: the clock management module 202 is further configured to forward the broadcast timing command to the target electric energy meter if the time difference value is less than a preset threshold value; the clock management module is also used for controlling the target electric energy meter to adjust the clock information of the electric energy meter to the clock information consistent with the system time.
In an alternative example, the clock governance module 202 includes: the control sub-module is used for controlling the preset motor to rotate to drive the pressing rod to act so as to press the programming key of the target electric energy meter to enable the target electric energy meter to enter a programming state under the condition that the time difference value is larger than or equal to a preset threshold value, and the preset motor is arranged adjacent to the programming key; and the calibration sub-module is used for carrying out calibration operation on the date information and the clock information according to the authority of writing data in the programming state.
In an alternative example, comprising: the clock management module 202 is further configured to control the target electric energy meter to enter a programmed state when the time difference value is greater than or equal to a preset threshold value, and control the preset motor to rotate to release a programming key of the target electric energy meter after performing calibration operation on date information and clock information of the target electric energy meter in the programmed state; and under the condition that the programming key is released, controlling the target electric energy meter to exit from the programming state.
In an alternative example, the apparatus further comprises: the second storage module is used for controlling the target electric energy meter to enter a programming state under the condition that the time difference value is larger than or equal to a preset threshold value, and recording and storing the date information and the clock information of the calibrated target electric energy meter after the calibration operation is carried out on the date information and the clock information of the target electric energy meter in the programming state.
The embodiment of the invention provides a calibrating device for an electric energy meter clock, which is used for acquiring clock information of a target electric energy meter; after receiving the broadcast timing command, calculating a time difference value between the system time contained in the broadcast timing command and clock information of the electric energy meter; judging whether the time difference value is larger than or equal to a preset threshold value; under the condition that the time difference value is larger than or equal to a preset threshold value, the target electric energy meter is controlled to enter a programming state, and the date information and the clock information of the target electric energy meter are calibrated in the programming state, so that the problem that automatic calibration cannot be carried out under the condition that the clock timeout range of the electric energy meter is large in the related art is solved, and further the effects that personnel do not need to participate in the field, the limit of the out-of-tolerance time is avoided, and manpower and material resources are greatly saved are achieved.
The calibration device of the electric energy meter clock comprises a processor and a memory, wherein the acquisition module 201 and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one kernel, and the problem that automatic calibration cannot be performed under the condition of larger clock timeout range of the electric energy meter in the related art is solved by adjusting kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The embodiment of the invention provides a computer readable storage medium, wherein a program is stored on the computer readable storage medium, and the program is executed by a processor to realize the calibration method of the electric energy meter clock.
The embodiment of the invention provides a processor which is used for running a program, wherein the calibration method of an electric energy meter clock is executed when the program runs.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program stored in the memory and capable of running on the processor, wherein the processor realizes the following steps when executing the program: acquiring clock information of a target electric energy meter; after receiving the broadcast timing command, calculating a time difference value between the system time contained in the broadcast timing command and clock information of the electric energy meter; judging whether the time difference value is larger than or equal to a preset threshold value; and under the condition that the time difference value is greater than or equal to a preset threshold value, controlling the target electric energy meter to enter a programming state, and performing calibration operation on the date information and the clock information of the target electric energy meter in the programming state.
In an alternative example, obtaining clock information for a target power meter includes: according to a preset protocol, a reading command for reading a communication address of a target electric energy meter is sent; reading the communication address of the target electric energy meter according to the reading command; sending a read data identifier according to the communication address; and reading clock information corresponding to the target electric energy meter according to the data identification.
In an alternative embodiment, after receiving the broadcast timing command, before calculating a time difference between the system time included in the broadcast timing command and clock information of the electric energy meter, the method further includes: judging whether the broadcast timing command is legal or not; and under the condition that the broadcast timing command is legal, storing the system time contained in the broadcast timing command, and triggering a clock management task according to the broadcast timing command.
In an alternative embodiment, in the case that the time difference is smaller than the preset threshold, the method further includes: forwarding the broadcast timing command to a target electric energy meter; and controlling the target electric energy meter to adjust the clock information of the electric energy meter to the clock information consistent with the system time.
In an alternative embodiment, when the time difference is greater than or equal to a preset threshold, the method controls the target electric energy meter to enter a programming state, and performs calibration operation on date information and clock information of the target electric energy meter in the programming state, including: when the time difference value is larger than or equal to a preset threshold value, controlling a preset motor to rotate to drive a pressing rod to act so as to press a programming key of the target electric energy meter to enable the target electric energy meter to enter a programming state, wherein the preset motor is arranged adjacent to the programming key; and in the programming state, performing calibration operation on the date information and the clock information according to the authority of writing data.
In an alternative example, when the time difference value is greater than or equal to a preset threshold value, the method further includes, after controlling the target electric energy meter to enter a programmed state and performing a calibration operation on date information and clock information of the target electric energy meter in the programmed state: controlling a preset motor to rotate so as to loosen a programming key of the target electric energy meter; and under the condition that the programming key is released, controlling the target electric energy meter to exit from the programming state.
In an alternative example, when the time difference value is greater than or equal to a preset threshold value, the method further includes, after controlling the target electric energy meter to enter a programmed state and performing a calibration operation on date information and clock information of the target electric energy meter in the programmed state: and recording and storing the date information and the clock information of the calibrated target electric energy meter.
The device herein may be a server, PC, PAD, cell phone, etc.
The invention also provides a computer program product adapted to perform, when executed on a data processing device, a program initialized with the method steps of: acquiring clock information of a target electric energy meter; after receiving the broadcast timing command, calculating a time difference value between the system time contained in the broadcast timing command and clock information of the electric energy meter; judging whether the time difference value is larger than or equal to a preset threshold value; and under the condition that the time difference value is greater than or equal to a preset threshold value, controlling the target electric energy meter to enter a programming state, and performing calibration operation on the date information and the clock information of the target electric energy meter in the programming state.
In an alternative example, obtaining clock information for a target power meter includes: according to a preset protocol, a reading command for reading a communication address of a target electric energy meter is sent; reading the communication address of the target electric energy meter according to the reading command; sending a read data identifier according to the communication address; and reading clock information corresponding to the target electric energy meter according to the data identification.
In an alternative embodiment, after receiving the broadcast timing command, before calculating a time difference between the system time included in the broadcast timing command and clock information of the electric energy meter, the method further includes: judging whether the broadcast timing command is legal or not; and under the condition that the broadcast timing command is legal, storing the system time contained in the broadcast timing command, and triggering a clock management task according to the broadcast timing command.
In an alternative embodiment, in the case that the time difference is smaller than the preset threshold, the method further includes: forwarding the broadcast timing command to a target electric energy meter; and controlling the target electric energy meter to adjust the clock information of the electric energy meter to the clock information consistent with the system time.
In an alternative embodiment, when the time difference is greater than or equal to a preset threshold, the method controls the target electric energy meter to enter a programming state, and performs calibration operation on date information and clock information of the target electric energy meter in the programming state, including: when the time difference value is larger than or equal to a preset threshold value, controlling a preset motor to rotate to drive a pressing rod to act so as to press a programming key of the target electric energy meter to enable the target electric energy meter to enter a programming state, wherein the preset motor is arranged adjacent to the programming key; and in the programming state, performing calibration operation on the date information and the clock information according to the authority of writing data.
In an alternative example, when the time difference value is greater than or equal to a preset threshold value, the method further includes, after controlling the target electric energy meter to enter a programmed state and performing a calibration operation on date information and clock information of the target electric energy meter in the programmed state: controlling a preset motor to rotate so as to loosen a programming key of the target electric energy meter; and under the condition that the programming key is released, controlling the target electric energy meter to exit from the programming state.
In an alternative example, when the time difference value is greater than or equal to a preset threshold value, the method further includes, after controlling the target electric energy meter to enter a programmed state and performing a calibration operation on date information and clock information of the target electric energy meter in the programmed state: and recording and storing the date information and the clock information of the calibrated target electric energy meter.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The foregoing is merely exemplary of the present invention and is not intended to limit the present invention. Various modifications and variations of the present invention will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the invention are to be included in the scope of the claims of the present invention.

Claims (9)

1. A method of calibrating a clock of an electric energy meter, comprising:
acquiring clock information of a target electric energy meter;
after receiving a broadcast timing command, calculating a time difference value between system time contained in the broadcast timing command and clock information of the electric energy meter;
judging whether the time difference value is larger than or equal to a preset threshold value;
when the time difference value is larger than or equal to the preset threshold value, controlling the target electric energy meter to enter a programming state, and performing calibration operation on date information and clock information of the target electric energy meter in the programming state, wherein the clock information of the target electric energy meter at least comprises clock time and date time;
under the condition that the time difference value is larger than or equal to the preset threshold value, controlling a preset motor to rotate to drive a pressing rod to act so as to press a programming key of the target electric energy meter, so that the target electric energy meter enters the programming state, wherein the preset motor is arranged adjacent to the programming key;
and in the programming state, performing calibration operation on the date information and the clock information according to the write data authority.
2. The method of claim 1, wherein obtaining clock information for a target power meter comprises:
according to a preset protocol, a reading command for reading the communication address of the target electric energy meter is sent;
reading the communication address of the target electric energy meter according to the reading command;
sending a read data identifier according to the communication address;
and reading the clock information corresponding to the target electric energy meter according to the data identifier.
3. The method of claim 1, wherein after receiving a broadcast timing command, before calculating a time difference between a system time contained in the broadcast timing command and clock information of the power meter, the method further comprises:
judging whether the broadcast timing command is legal or not;
and under the condition that the broadcast timing command is legal, storing the system time contained in the broadcast timing command, and triggering a clock management task according to the broadcast timing command.
4. The method according to claim 1, wherein in case the time difference value is smaller than the preset threshold value, the method further comprises:
forwarding the broadcast timing command to the target electric energy meter;
and controlling the target electric energy meter to adjust the clock information of the electric energy meter to the clock information consistent with the system time.
5. The method according to claim 1, wherein, in the case where the time difference value is equal to or greater than the preset threshold value, the target electric energy meter is controlled to enter a programmed state, and after performing a calibration operation on date information and clock information of the target electric energy meter in the programmed state, the method further comprises:
controlling the preset motor to rotate so as to loosen a programming key of the target electric energy meter;
and under the condition that the programming key is released, controlling the target electric energy meter to exit the programming state.
6. The method according to claim 1, wherein, in the case where the time difference value is equal to or greater than the preset threshold value, the target electric energy meter is controlled to enter a programmed state, and after performing a calibration operation on date information and clock information of the target electric energy meter in the programmed state, the method further comprises:
and recording and storing the date information and the clock information of the calibrated target electric energy meter.
7. A calibration device for an electric energy meter clock, comprising:
the acquisition module is used for acquiring clock information of the target electric energy meter;
the clock management module is used for calculating the time difference between the system time contained in the broadcast timing command and the clock information of the electric energy meter after receiving the broadcast timing command;
the judging module is used for judging whether the time difference value is larger than or equal to a preset threshold value;
the clock management module is further configured to control the target electric energy meter to enter a programmed state when the time difference value is greater than or equal to the preset threshold value, and calibrate date information and clock information of the target electric energy meter in the programmed state, where the clock information of the target electric energy meter at least includes clock time and date time;
the control module is used for controlling a preset motor to rotate to drive a pressing rod to act so as to press a programming key of the target electric energy meter to enable the target electric energy meter to enter the programming state under the condition that the time difference value is larger than or equal to the preset threshold value, and the preset motor is arranged adjacent to the programming key;
and the calibration module is used for performing calibration operation on the date information and the clock information according to the write data authority in the programming state.
8. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program when run controls a device in which the computer readable storage medium is located to perform a method of calibrating a clock of an electric energy meter according to any of claims 1 to 6.
9. A processor for running a program, wherein the program runs to perform a method of calibrating a clock of an electric energy meter according to any one of claims 1 to 6.
CN202111434256.XA 2021-11-29 2021-11-29 Method and device for calibrating clock of electric energy meter Active CN114384787B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111434256.XA CN114384787B (en) 2021-11-29 2021-11-29 Method and device for calibrating clock of electric energy meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111434256.XA CN114384787B (en) 2021-11-29 2021-11-29 Method and device for calibrating clock of electric energy meter

Publications (2)

Publication Number Publication Date
CN114384787A CN114384787A (en) 2022-04-22
CN114384787B true CN114384787B (en) 2024-01-23

Family

ID=81195964

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111434256.XA Active CN114384787B (en) 2021-11-29 2021-11-29 Method and device for calibrating clock of electric energy meter

Country Status (1)

Country Link
CN (1) CN114384787B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114815573B (en) * 2022-05-11 2023-10-27 宁波三星医疗电气股份有限公司 Ammeter time calibration method and device, electronic equipment and storage medium
CN115292099B (en) * 2022-09-26 2023-01-13 浙江正泰仪器仪表有限责任公司 Electric energy meter clock processing method and device and storage medium

Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SU815709A1 (en) * 1979-05-25 1981-03-23 Владимирский Политехнический Инсти-Тут Electric motor for time-pieces
CN2146729Y (en) * 1992-07-10 1993-11-17 李鹏生 24 hours mechanical programming timing switch
US5557585A (en) * 1993-08-25 1996-09-17 Sony Corp. Broadcast signal receiver which automatically sets an internal clock
JP2000074960A (en) * 1998-08-31 2000-03-14 Mitsubishi Electric Corp Method and device for metering watthour for every time zone
JP2003227889A (en) * 2002-02-01 2003-08-15 Matsushita Electric Ind Co Ltd Water heater
CN201886042U (en) * 2010-09-09 2011-06-29 深圳市森晖电子有限公司 Smart electricity meter for state grid single-phase carrier long-distance prepayment
CN102253261A (en) * 2011-04-19 2011-11-23 浙江省电力公司 Device and method for automatically triggering programmable switch of electric energy meter
WO2012013433A1 (en) * 2010-07-28 2012-02-02 Rwe Ag Saving and checking the system time of a charging station
WO2012025311A2 (en) * 2010-08-27 2012-03-01 Rwe Ag Securing and synchronizing the system time of a charging station
CN202339407U (en) * 2011-11-07 2012-07-18 河南省电力公司计量中心 Mechanism capable of automatically pressing down programming switch key of electric energy meter
CN103513568A (en) * 2013-09-24 2014-01-15 国家电网公司 Automatic time comparing method capable of breaking limit of intelligent electric power meter hardware
CN203737634U (en) * 2014-03-20 2014-07-30 广西云涌科技有限公司 Electric energy meter automatic cleaning device
CN104734338A (en) * 2013-12-20 2015-06-24 国家电网公司 Clock monitoring method, device and system of transformer substations
CN206388016U (en) * 2016-12-13 2017-08-08 东莞市准点塑胶电子有限公司 A kind of pointer blue-tooth intelligence school constantly clock movement
CN107991643A (en) * 2017-11-14 2018-05-04 国网福建省电力有限公司 A kind of clock of power meter bearing calibration
CN109062025A (en) * 2018-08-13 2018-12-21 云南电网有限责任公司大理供电局 A method of it introducing GPS external clock and corrects electric energy meter internal clocking failure
CN110320791A (en) * 2019-06-20 2019-10-11 国网湖南省电力有限公司 A kind of power information acquisition system clock management method and device
CN210181210U (en) * 2019-06-27 2020-03-24 南方电网科学研究院有限责任公司 Electric energy meter key closing detection system
CN111355552A (en) * 2020-02-14 2020-06-30 国网新疆电力有限公司电力科学研究院 Electric energy meter clock remote time synchronization management method and system
CN112511259A (en) * 2020-12-18 2021-03-16 南方电网电力科技股份有限公司 Intelligent terminal clock management method and device, storage medium and terminal equipment
CN113556629A (en) * 2021-06-02 2021-10-26 天津大学 Intelligent ammeter error remote estimation method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4831154B2 (en) * 2008-09-30 2011-12-07 ブラザー工業株式会社 Timing device

Patent Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SU815709A1 (en) * 1979-05-25 1981-03-23 Владимирский Политехнический Инсти-Тут Electric motor for time-pieces
CN2146729Y (en) * 1992-07-10 1993-11-17 李鹏生 24 hours mechanical programming timing switch
US5557585A (en) * 1993-08-25 1996-09-17 Sony Corp. Broadcast signal receiver which automatically sets an internal clock
JP2000074960A (en) * 1998-08-31 2000-03-14 Mitsubishi Electric Corp Method and device for metering watthour for every time zone
JP2003227889A (en) * 2002-02-01 2003-08-15 Matsushita Electric Ind Co Ltd Water heater
WO2012013433A1 (en) * 2010-07-28 2012-02-02 Rwe Ag Saving and checking the system time of a charging station
WO2012025311A2 (en) * 2010-08-27 2012-03-01 Rwe Ag Securing and synchronizing the system time of a charging station
CN201886042U (en) * 2010-09-09 2011-06-29 深圳市森晖电子有限公司 Smart electricity meter for state grid single-phase carrier long-distance prepayment
CN102253261A (en) * 2011-04-19 2011-11-23 浙江省电力公司 Device and method for automatically triggering programmable switch of electric energy meter
CN202339407U (en) * 2011-11-07 2012-07-18 河南省电力公司计量中心 Mechanism capable of automatically pressing down programming switch key of electric energy meter
CN103513568A (en) * 2013-09-24 2014-01-15 国家电网公司 Automatic time comparing method capable of breaking limit of intelligent electric power meter hardware
CN104734338A (en) * 2013-12-20 2015-06-24 国家电网公司 Clock monitoring method, device and system of transformer substations
CN203737634U (en) * 2014-03-20 2014-07-30 广西云涌科技有限公司 Electric energy meter automatic cleaning device
CN206388016U (en) * 2016-12-13 2017-08-08 东莞市准点塑胶电子有限公司 A kind of pointer blue-tooth intelligence school constantly clock movement
CN107991643A (en) * 2017-11-14 2018-05-04 国网福建省电力有限公司 A kind of clock of power meter bearing calibration
CN109062025A (en) * 2018-08-13 2018-12-21 云南电网有限责任公司大理供电局 A method of it introducing GPS external clock and corrects electric energy meter internal clocking failure
CN110320791A (en) * 2019-06-20 2019-10-11 国网湖南省电力有限公司 A kind of power information acquisition system clock management method and device
CN210181210U (en) * 2019-06-27 2020-03-24 南方电网科学研究院有限责任公司 Electric energy meter key closing detection system
CN111355552A (en) * 2020-02-14 2020-06-30 国网新疆电力有限公司电力科学研究院 Electric energy meter clock remote time synchronization management method and system
CN112511259A (en) * 2020-12-18 2021-03-16 南方电网电力科技股份有限公司 Intelligent terminal clock management method and device, storage medium and terminal equipment
CN113556629A (en) * 2021-06-02 2021-10-26 天津大学 Intelligent ammeter error remote estimation method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于GPS 标准时钟的智能电能表时钟同步校准技术开发和应用;黄建硕 等;电子测试;全文 *
基于同步时钟电能质量检测技术研究;张宗超;中国优秀硕士学位论文全文数据库;全文 *

Also Published As

Publication number Publication date
CN114384787A (en) 2022-04-22

Similar Documents

Publication Publication Date Title
CN114384787B (en) Method and device for calibrating clock of electric energy meter
CN110320791B (en) Clock management method and device for electricity consumption information acquisition system
US20170311054A1 (en) Meter Device
US7734359B2 (en) Systems and methods for capturing data within an intelligent electronic device
US20190353709A1 (en) Trusted battery meter and battery monitoring system
US20120060152A1 (en) System and method for firmware update of meter, watt hour meter with function of remote firmware update
CN103079113A (en) Smart television with time-limited application program and control method thereof
CN110829590A (en) Intelligent monitoring system, method, platform and storage medium for transformer area line loss
CN109840684A (en) Management method, equipment, system and the storage medium of architecture information
CN110659935A (en) Electric energy metering system suitable for competitive retail market
CN117371964B (en) Ultrasonic metering instrument data management method, device and equipment based on Internet of things
CN105207836A (en) Method for quickly testing consistency of PQDIF (Power Quality Data Interchange Format) files
CN116736818B (en) Meta logic-based production takt processing method, device, equipment and medium
CN113064803A (en) Power failure event recording method and device for double-core intelligent electric meter and computer equipment
CN104081299A (en) Programmable controller, programmable controller system, and provision system for programmable controller
CN104699553A (en) Clock self-recovery method after failure in acquiring terminal clock battery with electrical information
CN113296480A (en) Water treatment method, system, equipment and storage medium
CN116263595B (en) Universal automatic test platform for satellite single machine environment test and control method thereof
CN110891016A (en) Energy gateway for accurate metering
KR102551190B1 (en) Method and system for scheduling recharge and discharge of energy storage system
CN104991193B (en) Rechargeable battery uses efficiency tracing system and method
CN110599245A (en) Engineering project cost data management system
RU197324U1 (en) INTELLIGENT METER OF ELECTRIC ENERGY WITH REMOTE CONTROL OF ENCRYPTION OF INFORMATION
CN109166245B (en) Method and device for calculating electric charge amount based on stepped electricity price
CN113590375B (en) Block chain-based stability control device information verification method and system

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