CN114384787A - Calibration method and device for electric energy meter clock - Google Patents

Calibration method and device for electric energy meter clock Download PDF

Info

Publication number
CN114384787A
CN114384787A CN202111434256.XA CN202111434256A CN114384787A CN 114384787 A CN114384787 A CN 114384787A CN 202111434256 A CN202111434256 A CN 202111434256A CN 114384787 A CN114384787 A CN 114384787A
Authority
CN
China
Prior art keywords
electric energy
energy meter
clock
target electric
time difference
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
Application number
CN202111434256.XA
Other languages
Chinese (zh)
Other versions
CN114384787B (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

Images

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 the clock information of the electric energy meter; judging whether the time difference is greater than or equal to a preset threshold value or not; 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 calibrating the date information and the clock information of the target electric energy meter in the programming state. The invention solves the problem that the automatic calibration cannot be carried out under the condition that the overtime range of the electric energy meter clock is large in the related technology.

Description

Calibration method and device for electric energy meter clock
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 the continuous application of the electricity utilization information acquisition system, the popularization of time-sharing rate electricity price, the examination and calculation of voltage line loss of each grade, the report of power failure and transmission events and other links, higher requirements are provided for the accuracy of the electric energy meter clock. The clock abnormity of the electric energy meter not only affects the success rate of power consumption information acquisition and the effective management and control of line loss rate, but also easily causes time-sharing rate metering errors and causes customer complaints. The abnormal clock can cause the alarm lamp of the electric energy meter to flash and the white screen to appear, and the time-of-use electricity price of residents is influenced.
At present, the method for processing clock abnormality of an electric energy meter mainly has five points, and an 2009 electric energy meter is taken as an example as follows: 1) remote timing: and for the 2009 electric energy meter with the clock deviation within +/-5 min, a broadcast timing command is used, and remote timing operation processing can be carried out at the master station. 2) Encryption modification: for the 2009 electric energy meter with clock deviation beyond 5min, the relevant personnel go to the site to operate the electric energy meter end, and adopt a common palm machine or a notebook computer special program to time, and the programming key needs to be manually opened during time synchronization, so that the authority and the password need to be correct. 3) Reinforcing management and control: the electric energy meter with damaged built-in parts of the 2009 electric energy meter and exhausted clock batteries can replace damaged parts or batteries on the spot, and the clock abnormity is prevented from being generated again. Meanwhile, the management and control of the transportation and installation processes are enhanced, and the damage of parts of the intelligent electric energy meter in the transportation and installation processes is avoided. 4) Batch replacement: the 2009 electric energy meter with the fault of the large-batch clock built-in chip needs to be recorded and reflected to a manufacturer in time. In order to ensure the normal electricity utilization and accurate electricity charge of customers, the system can be replaced in batches. 5) And (3) regular monitoring: a regular monitoring system for the clock abnormality of the 2009 electric energy meter is established, the problem of the clock abnormality of the 2009 electric energy meter is found in time, the problem is analyzed and processed, and the healthy operation level of the 2009 electric energy meter is improved.
The traditional solution scheme can only solve the problem that the clock of the 2009 electric energy meter is out of tolerance within 5min in a long distance, when the clock of the 2009 electric energy meter is out of tolerance for more than 5min, people can only go to the site, the programming key of the 2009 electric energy meter is operated at the meter end to calibrate the clock or directly replace the electric energy meter, the maintenance cost is extremely high, and the efficiency is low.
In view of the above problems in the related art, no effective solution has been proposed.
Disclosure of Invention
The invention mainly aims to provide a method and a device for calibrating an electric energy meter clock, which are used for solving the problem that automatic calibration cannot be performed under the condition that the overtime range of the electric energy meter clock is large in the related art.
To achieve the above object, according to one aspect of the present invention, there is provided a calibration method of a clock of a power 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 the clock information of the electric energy meter; judging whether the time difference is greater than or equal to a preset threshold value or not; 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 calibrating the date information and the clock information of the target electric energy meter in the programming state.
The acquiring the clock information of the target electric energy meter comprises the following steps: sending a reading command for reading the communication address of the target electric energy meter according to a preset protocol; 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 the above, after receiving the broadcast timing command, before calculating a time difference between the system time included in the broadcast timing command and the 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 administration task according to the broadcast timing command.
In the above, 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 the control target electric energy meter adjusts the clock information of the electric energy meter to the clock information consistent with the system time.
In the above, when the time difference is greater than or equal to the preset threshold, controlling the target electric energy meter to enter the programming state, and performing calibration operation on the date information and the clock information of the target electric energy meter in the programming state includes: under the condition that the time difference value is larger than or equal to the preset threshold value, the preset motor is controlled 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, and the preset motor is arranged adjacent to the programming key; and in a programming state, calibrating date information and clock information according to the data writing authority.
In the above, when the time difference is greater than or equal to the preset threshold, the target electric energy meter is controlled to enter the 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 includes: controlling a preset motor to rotate to release a programming key of the target electric energy meter; and under the condition that the programming key is released, the control target electric energy meter exits the programming state.
In the above, when the time difference is greater than or equal to the preset threshold, the target electric energy meter is controlled to enter the 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 includes: 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 apparatus for a clock of a power meter. The device includes: the acquisition module is used for acquiring clock information of the target electric energy meter; the clock management module is used for calculating a time difference value 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 or not; and 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 greater than or equal to the preset threshold value, and calibrating the date information and the clock information of the target electric energy meter under the programming state.
In order 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 calibration method of 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 calibration method of a clock of a power meter according to any one of the above.
The invention adopts 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 the clock information of the electric energy meter; judging whether the time difference is greater than or equal to a preset threshold value or not; and under the condition that the time difference value is greater than or equal to the preset threshold value, controlling the target electric energy meter to enter a programming state, and calibrating the date information and the clock information of the target electric energy meter under the programming state, so that the problem that automatic calibration cannot be performed under the condition that the overtime range of the clock of the electric energy meter is large in the related technology is solved. And then the effects that personnel do not need to participate in the field, the limitation of out-of-tolerance time is avoided, and manpower and material resources are greatly saved are achieved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate an embodiment of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1 is a flowchart of a method for calibrating a clock of a power meter according to an embodiment of the invention;
fig. 2 is a schematic diagram of a calibration apparatus for a clock of a power meter according to an embodiment of the invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict. The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged under appropriate circumstances in order to facilitate the description of 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 the embodiment of the invention, a calibration method of a clock of a power meter is provided.
Fig. 1 is a flowchart of a method for calibrating a clock of a power meter according to an embodiment of the invention. As shown in fig. 1, the present invention comprises the steps of:
and step S101, acquiring clock information of the target electric energy meter.
In the above way, the abnormal clock of the electric energy meter causes unstable factors to the time-of-use electricity price executed by residents, so that power supply enterprises must timely and accurately perform fault analysis, judgment and processing on the abnormal clock of the electric energy meter. The electric energy meter in the embodiment of the present application specifically takes a traditional 2009 electric energy meter as an example for description.
And initializing the calibration system to acquire the clock information of the target electric energy meter.
Step S102, after receiving the broadcast timing command, calculating a time difference value between the system time contained in the broadcast timing command and the clock information of the electric energy meter.
In the above, the present application provides a technical solution for calibrating clock information of an electric energy meter remotely by broadcasting a timing command, and specifically, a time difference between a system time and a clock of the electric energy meter is calculated according to the broadcasting timing command, where the broadcasting timing command includes the system time.
It should be noted that the clock information of the electric energy meter at least includes a clock time and a date time.
Step S103, judging whether the time difference is larger than or equal to a preset threshold value.
In the embodiment provided by the application, preferably, the preset threshold is 5min, and the preset threshold may be specifically set according to different scenarios.
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 the preset threshold value, and calibrating the date information and the clock information of the target electric energy meter under the programming state.
Specifically, the application provides an electric energy meter with clock administration module, wherein, be provided with motor and rotation depression bar on clock administration module, the motor drives the action of rotation depression bar, and when calibration electric energy meter clock information, the motor drives the action of rotation depression bar in order to press the programming button of electric energy meter and make the electric energy become and get into programming state.
In the above, when the time difference is greater than or equal to the preset threshold, the programming button of the electric energy meter is operated by controlling the motor of the clock management module, so that the electric energy meter enters the programming state, and the calibration operation of the date and the clock time is automatically performed in the programming state.
By the method, the problem of clock abnormity of the electric energy meter can be effectively solved, even in a scene with a time difference value larger than a preset threshold value, people do not need to go to a meter end site to process 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 abnormity and the like caused by clock overproof are effectively solved, meanwhile, the system is automatically maintained, once the clock overproof of the electric energy meter is found, clock management can be timely carried out, and the accuracy of user data acquisition is guaranteed.
In an alternative example, the obtaining the clock information of the target electric energy meter includes: sending a reading command for reading the communication address of the target electric energy meter according to a preset protocol; 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 the above, according to the DL/T645-2007 protocol, a command for reading the communication address of the target electric energy meter is sent, the communication address of the target electric energy meter is obtained, and after the communication address of the target electric energy meter is successfully obtained, a read data identifier is sent: 04000101 date and week command, and read data identification: 04000102, obtaining the clock information of the target electric energy meter by time command, and storing and maintaining the clock information.
In an optional example, after receiving the broadcast timing command, before calculating a time difference between the system time contained 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 administration 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 system time of timing is legal, namely whether the time of year, month, day, hour, minute and second is in an effective data range, and stores the system time of timing and triggers a clock management task after judging that the system time of timing is legal. In the clock administration task, the difference value calculation is carried out on the system time of timing and the clock of the target electric energy meter, and the corresponding processing logic is determined to be started according to the out-of-tolerance time.
In an optional example, in a case that the time difference is smaller than a preset threshold, the method further includes: forwarding the broadcast timing command to a target electric energy meter; and the control target electric energy meter adjusts the clock information of the electric energy meter to the clock information consistent with the system time.
In the above, according to the broadcast timing provision in the DL/T645-2007 protocol: and when the time difference between the date and the clock of the slave station and the time difference between the master station are within +/-preset threshold values, executing a broadcast timing command, namely adjusting the date and the clock of the slave station to be consistent with the date and the clock issued by the command. When the clock out-of-tolerance of the target electric energy meter does not exceed the 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 optional example, in the case that the time difference is greater than or equal to the preset threshold, the target electric energy meter is controlled to enter a programming state, and a calibration operation is performed on date information and clock information of the target electric energy meter in the programming state, including: under the condition that the time difference value is larger than or equal to the preset threshold value, the preset motor is controlled 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, and the preset motor is arranged adjacent to the programming key; and in a programming state, calibrating date information and clock information according to the data writing authority.
In the above, when the clock out-of-tolerance of the target electric energy meter exceeds the preset threshold, the calibration cannot be performed by the broadcast timing, and the date and time need to be modified by the data writing operation with higher authority. According to the data writing requirements in the DL/T645-2007 protocol, programming key coordination is required. At the moment, the motor of the clock management module is controlled to rotate to drive the pressing rod, the programming key of the target electric energy meter is pressed down through the pressing rod to enter a programming state, the date and the clock of the target electric energy meter can be calibrated through the data writing authority in the programming state, and manual intervention is not needed in the process.
After the electric energy meter enters the programming state, according to the requirement of the data writing format in the DL/T645-2007 protocol, the data writing control code: c — 14H, data field length: l ═ 04H +04H (password) +04H (operator code) + m (data length), data field: DI0DI1DI2DI3 (DATA id) + PAP0P1P2 (password) + C0C1C2C3 (operator code) + DATA. The password defaults to 000000, rights 02, and the operator code defaults to 12345678, which is externally settable.
Firstly, setting the date and the week of the electric energy meter, calculating the week according to the date and the week of a data identifier 04000101 in a DL/T645-2007 protocol and the date, the day and the week of a unit year, month, day and the week of a broadcast timing command, sending a date writing command and a week writing command to the electric energy meter, calibrating the date to the date of a master station, then setting the time of the electric energy meter, extracting the time in the broadcast timing command according to the date identifier 04000102 time and the unit time minute second in the DL/T645-2007 protocol, sending the time writing command to the electric energy meter, calibrating the time to the time of the master station system, and calibrating the clock of the electric energy meter to the time of the master station system after the process is finished.
In an optional example, in a case that the time difference is greater than or equal to a preset threshold, the target electric energy meter is controlled to enter a programming state, and after the calibration operation is performed on the date information and the clock information of the target electric energy meter in the programming state, the method further includes: controlling a preset motor to rotate to release a programming key of the target electric energy meter; and under the condition that the programming key is released, the control target electric energy meter exits the programming state.
According to the method, after the date and time of the electric energy meter are calibrated, the motor of the clock management module is controlled, the motor drives the pressing rod when rotating, the programming key of the electric energy meter is pressed down through the pressing rod, the programming state is exited, and other misoperation in the programming state is prevented.
In an optional example, in a case that the time difference is greater than or equal to a preset threshold, the target electric energy meter is controlled to enter a programming state, and after the calibration operation is performed on the date information and the clock information of the target electric energy meter in the programming state, the method further includes: and recording and storing the date information and the clock information of the calibrated target electric energy meter.
After the electric energy meter clock is calibrated, the date and the time of the electric energy meter are obtained again, the stored electric energy meter clock is synchronized, and the clock out-of-tolerance between the system clock and the electric energy meter can be accurately calculated after the broadcast timing command is received again, so that the processing is carried out.
According to the calibration method of the electric energy meter clock, provided by the embodiment of the invention, the 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 the clock information of the electric energy meter; judging whether the time difference is greater than or equal to a preset threshold value or not; and under the condition that the time difference value is greater than or equal to the preset threshold value, controlling the target electric energy meter to enter a programming state, and calibrating the date information and the clock information of the target electric energy meter under the programming state, so that the problem that automatic calibration cannot be performed under the condition that the overtime range of the clock of the electric energy meter is large in the related technology is solved. And then the effects that personnel do not need to participate in the field, the limitation of out-of-tolerance time is avoided, and manpower and material resources are greatly saved are achieved.
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 different than presented herein.
The embodiment of the present invention further provides a calibration apparatus for a clock of an electric energy meter, and it should be noted that the calibration apparatus for a clock of an electric energy meter according to the embodiment of the present invention may be used to execute the calibration method for a clock of an electric energy meter according to the embodiment of the present invention. The following describes a calibration device for a clock of an electric energy meter according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of a calibration apparatus for a clock of a power meter according to an embodiment of the invention. As shown in fig. 2, the apparatus includes: the obtaining module 201 is configured to obtain clock information of the target electric energy meter; the clock management module 202 is used for calculating a time difference value 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; 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 programming state when the time difference is greater than or equal to the preset threshold, and perform calibration operation on date information and clock information of the target electric energy meter in the programming 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 submodule is used for reading the communication address of the target electric energy meter according to the reading command; the second sending submodule is used for sending the read data identifier according to the communication address; and the second reading submodule is used for reading the clock information corresponding to the target electric energy meter according to the data identification.
In an optional example, the apparatus further comprises: the judging module is used for judging whether the broadcast timing command is legal or not before calculating a time difference value 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 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 when the time difference is smaller than a preset threshold; and 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 embodiment, clock administration module 202 includes: the control submodule 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 greater than or equal to the preset threshold value, and the preset motor is arranged adjacent to the programming key; and the calibration submodule is used for performing calibration operation on date information and clock information according to the data writing authority in a 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 programming state when the time difference is greater than or equal to a preset threshold, 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 programming state; and under the condition that the programming key is released, the control target electric energy meter exits the programming state.
In an optional example, the apparatus further comprises: and 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 greater than or equal to the preset threshold value, and recording and storing the date information and the clock information of the calibrated target electric energy meter after the date information and the clock information of the target electric energy meter are calibrated under the programming state.
According to the calibration device for the electric energy meter clock, provided by the embodiment of the invention, the 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 the clock information of the electric energy meter; judging whether the time difference is greater than or equal to a preset threshold value or not; under the condition that the time difference value is larger than or equal to the 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 under the programming state, so that the problem that automatic calibration cannot be carried out under the condition that the overtime range of the clock of the electric energy meter is large in the related technology is solved, personnel do not need to participate in the field, the limitation of the overtime is avoided, and the effects of saving manpower and material resources are greatly achieved.
The calibration device for the clock of the electric energy meter 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 comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the problem that automatic calibration cannot be carried out under the condition that the overtime range of the electric energy meter clock is large in the related technology is solved by adjusting kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a computer-readable storage medium, on which a program is stored, where the program, when executed by a processor, implements the calibration method for the clock of the electric energy meter.
The embodiment of the invention provides a processor, which is used for running a program, wherein the program executes the calibration method of the clock of the electric energy meter during running.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein the processor executes the program and realizes 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 the clock information of the electric energy meter; judging whether the time difference is greater than or equal to a preset threshold value or not; 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 calibrating the date information and the clock information of the target electric energy meter in the programming state.
In an alternative example, the obtaining the clock information of the target electric energy meter includes: sending a reading command for reading the communication address of the target electric energy meter according to a preset protocol; 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 optional example, after receiving the broadcast timing command, before calculating a time difference between the system time contained 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 administration task according to the broadcast timing command.
In an optional example, in a case that the time difference is smaller than a preset threshold, the method further includes: forwarding the broadcast timing command to a target electric energy meter; and the control target electric energy meter adjusts the clock information of the electric energy meter to the clock information consistent with the system time.
In an optional example, in the case that the time difference is greater than or equal to the preset threshold, the target electric energy meter is controlled to enter a programming state, and a calibration operation is performed on date information and clock information of the target electric energy meter in the programming state, including: under the condition that the time difference value is larger than or equal to the preset threshold value, the preset motor is controlled 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, and the preset motor is arranged adjacent to the programming key; and in a programming state, calibrating date information and clock information according to the data writing authority.
In an optional example, in a case that the time difference is greater than or equal to a preset threshold, the target electric energy meter is controlled to enter a programming state, and after the calibration operation is performed on the date information and the clock information of the target electric energy meter in the programming state, the method further includes: controlling a preset motor to rotate to release a programming key of the target electric energy meter; and under the condition that the programming key is released, the control target electric energy meter exits the programming state.
In an optional example, in a case that the time difference is greater than or equal to a preset threshold, the target electric energy meter is controlled to enter a programming state, and after the calibration operation is performed on the date information and the clock information of the target electric energy meter in the programming state, the method further includes: 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, a PC, a PAD, a mobile phone, etc.
The invention also provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device: 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 the clock information of the electric energy meter; judging whether the time difference is greater than or equal to a preset threshold value or not; 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 calibrating the date information and the clock information of the target electric energy meter in the programming state.
In an alternative example, the obtaining the clock information of the target electric energy meter includes: sending a reading command for reading the communication address of the target electric energy meter according to a preset protocol; 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 optional example, after receiving the broadcast timing command, before calculating a time difference between the system time contained 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 administration task according to the broadcast timing command.
In an optional example, in a case that the time difference is smaller than a preset threshold, the method further includes: forwarding the broadcast timing command to a target electric energy meter; and the control target electric energy meter adjusts the clock information of the electric energy meter to the clock information consistent with the system time.
In an optional example, in the case that the time difference is greater than or equal to the preset threshold, the target electric energy meter is controlled to enter a programming state, and a calibration operation is performed on date information and clock information of the target electric energy meter in the programming state, including: under the condition that the time difference value is larger than or equal to the preset threshold value, the preset motor is controlled 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, and the preset motor is arranged adjacent to the programming key; and in a programming state, calibrating date information and clock information according to the data writing authority.
In an optional example, in a case that the time difference is greater than or equal to a preset threshold, the target electric energy meter is controlled to enter a programming state, and after the calibration operation is performed on the date information and the clock information of the target electric energy meter in the programming state, the method further includes: controlling a preset motor to rotate to release a programming key of the target electric energy meter; and under the condition that the programming key is released, the control target electric energy meter exits the programming state.
In an optional example, in a case that the time difference is greater than or equal to a preset threshold, the target electric energy meter is controlled to enter a programming state, and after the calibration operation is performed on the date information and the clock information of the target electric energy meter in the programming state, the method further includes: and recording and storing the date information and the clock information of the calibrated target electric energy meter.
As will be appreciated by one skilled in the art, 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 flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The 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 computer storage media 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 that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
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 an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, 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 above are merely examples of the present invention, and are not intended to limit the present invention. Various modifications and alterations to this invention will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (10)

1. A method for calibrating a clock of an electric energy meter is characterized by comprising the following steps:
acquiring clock information of a target electric energy meter;
after a broadcast timing command is received, 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 is greater than or equal to a preset threshold value or not;
and under the condition that 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 calibrating date information and clock information of the target electric energy meter under the programming state.
2. The method of claim 1, wherein obtaining clock information for the target power meter comprises:
sending a reading command for reading the communication address of the target electric energy meter according to a preset protocol;
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 identification.
3. The method of claim 1, wherein after receiving a broadcast timing command, before calculating a time difference between a system time included 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 administration task according to the broadcast timing command.
4. The method according to claim 1, wherein in case the time difference is smaller than the preset threshold, 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 of claim 1, wherein in the case that the time difference is greater than or equal to the preset threshold, controlling the target electric energy meter to enter a programming state, and performing a calibration operation on date information and clock information of the target electric energy meter in the programming state comprises:
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 pressure lever 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, wherein the preset motor is arranged adjacent to the programming key;
and in the programming state, calibrating the date information and the clock information according to the data writing authority.
6. The method according to claim 5, wherein in a case that the time difference is greater than or equal to the preset threshold, the target electric energy meter is controlled to enter a programming state, and after a calibration operation is performed on date information and clock information of the target electric energy meter in the programming state, the method further comprises:
controlling the preset motor to rotate to release 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.
7. The method according to claim 5, wherein in a case that the time difference is greater than or equal to the preset threshold, the target electric energy meter is controlled to enter a programming state, and after a calibration operation is performed on date information and clock information of the target electric energy meter in the programming state, the method further comprises:
and recording and storing the date information and the clock information of the calibrated target electric energy meter.
8. A calibration device for a clock of an electric energy meter, comprising:
the acquisition module is used for acquiring clock information of the target electric energy meter;
the clock management module is used for calculating a time difference value 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 or not;
the clock management module is further configured to control the target electric energy meter to enter a programming state under the condition that the time difference is greater than or equal to the preset threshold, and perform calibration operation on date information and clock information of the target electric energy meter under the programming state.
9. A computer-readable storage medium, comprising a stored program, wherein the program, when executed, controls an apparatus 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 one of claims 1 to 7.
10. A processor configured to run a program, wherein the program is configured to perform the method of calibrating a clock of a power meter of any one of claims 1 to 7 when running.
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 true CN114384787A (en) 2022-04-22
CN114384787B 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)

Cited By (2)

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

Citations (22)

* 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
US20100083025A1 (en) * 2008-09-30 2010-04-01 Brother Kogyo Kabushiki Kaisha Clock Device and Computer-Readable Record Medium Storing Program for Implementing the Same
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

Patent Citations (22)

* 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
US20100083025A1 (en) * 2008-09-30 2010-04-01 Brother Kogyo Kabushiki Kaisha Clock Device and Computer-Readable Record Medium Storing Program for Implementing the Same
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 标准时钟的智能电能表时钟同步校准技术开发和应用", 电子测试 *

Cited By (3)

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

Also Published As

Publication number Publication date
CN114384787B (en) 2024-01-23

Similar Documents

Publication Publication Date Title
CN114384787A (en) Calibration method and device for electric energy meter clock
CN110320791B (en) Clock management method and device for electricity consumption information acquisition system
CN110908964B (en) Monitoring method, device, terminal and storage medium of distributed file system
CN110300017B (en) Standard configuration generating device and method and network equipment configuration error correcting device and method
CN110568284B (en) Intelligent substation one-key sequential control automatic test verification method, device and system
CN103477607B (en) Energy automation installation and the method for running energy automation installation
CN108764596A (en) The monitoring method and monitoring system of the power failure of metering automation system
CN112040476A (en) Upgrading method and device for Internet of things terminal
CN112531893A (en) Power demand response system and method
CN108897646B (en) Switching method of BIOS (basic input output System) chips and substrate management controller
CN113625672B (en) Equipment monitoring method and device and storage medium
CN104081299A (en) Programmable controller, programmable controller system, and provision system for programmable controller
CN111752592A (en) Power system secondary equipment version control method, client and system
CN110891016A (en) Energy gateway for accurate metering
CN115002154A (en) Method, device and system for automatically adjusting reporting frequency of Internet of things equipment
CN112184487A (en) Method and device for predicting power supply index
CN114548929A (en) On-site inspection monitoring method and system
CN109166245B (en) Method and device for calculating electric charge amount based on stepped electricity price
CN116736818B (en) Meta logic-based production takt processing method, device, equipment and medium
CN113589006B (en) Electric energy meter operation clock control method
CN116561101B (en) Version management and version switching method of industrial control system data and related equipment
EP3952040A1 (en) System for controlling a low-voltage electrical panel and corresponding control method
FR3113341A1 (en) CONTROL SYSTEM FOR A LOW VOLTAGE ELECTRICAL PANEL AND CORRESPONDING CONTROL METHOD
CN113392993A (en) Production equipment operation and maintenance management system
CN115681808A (en) Liquid hydrogenation method, device, equipment and storage medium

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