CN113835336A - Multi-dimensional self-adaptive metering device patrol and timing method for supporting electric power spot market - Google Patents

Multi-dimensional self-adaptive metering device patrol and timing method for supporting electric power spot market Download PDF

Info

Publication number
CN113835336A
CN113835336A CN202111398528.5A CN202111398528A CN113835336A CN 113835336 A CN113835336 A CN 113835336A CN 202111398528 A CN202111398528 A CN 202111398528A CN 113835336 A CN113835336 A CN 113835336A
Authority
CN
China
Prior art keywords
time
terminal
timing
master station
metering device
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
CN202111398528.5A
Other languages
Chinese (zh)
Other versions
CN113835336B (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 Jiangsu Electric Power Co ltd Marketing Service Center
Original Assignee
State Grid Jiangsu Electric Power Co ltd Marketing Service Center
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 Jiangsu Electric Power Co ltd Marketing Service Center filed Critical State Grid Jiangsu Electric Power Co ltd Marketing Service Center
Priority to CN202111398528.5A priority Critical patent/CN113835336B/en
Publication of CN113835336A publication Critical patent/CN113835336A/en
Application granted granted Critical
Publication of CN113835336B publication Critical patent/CN113835336B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G04HOROLOGY
    • G04RRADIO-CONTROLLED TIME-PIECES
    • G04R20/00Setting the time according to the time information carried or implied by the radio signal
    • G04R20/02Setting the time according to the time information carried or implied by the radio signal the radio signal being sent by a satellite, e.g. GPS
    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G7/00Synchronisation
    • GPHYSICS
    • G04HOROLOGY
    • G04RRADIO-CONTROLLED TIME-PIECES
    • G04R20/00Setting the time according to the time information carried or implied by the radio signal
    • G04R20/02Setting the time according to the time information carried or implied by the radio signal the radio signal being sent by a satellite, e.g. GPS
    • G04R20/04Tuning or receiving; Circuits therefor
    • GPHYSICS
    • G04HOROLOGY
    • G04RRADIO-CONTROLLED TIME-PIECES
    • G04R20/00Setting the time according to the time information carried or implied by the radio signal
    • G04R20/02Setting the time according to the time information carried or implied by the radio signal the radio signal being sent by a satellite, e.g. GPS
    • G04R20/06Decoding time data; Circuits therefor

Abstract

A multi-dimensional self-adaptive metering device patrol and timing method for supporting the electric power spot market comprises the following steps: the master station is used for acquiring standard time from a standard clock source, performing self-timing according to the standard time and sending an encrypted message comprising the standard time to the terminal; the terminal is used for receiving the encrypted message, performing time correction according to the encrypted message, performing NTP time correction with the master station, performing NTP time correction with the standard clock source and performing Beidou time correction; the master station is also used for carrying out time service on the electric meter and sending time correction broadcast to the electric meter through the terminal; the ammeter is used for receiving the timing broadcast, performing timing according to the timing broadcast and performing timing with the terminal, so that the multi-dimensional self-adaptive metering device patrol and timing system supporting the electric power spot market of the main station-terminal-ammeter is realized, the time synchronization of the ammeter can be accurate, the deviation requirements of a market-oriented user terminal and the ammeter are reduced, and the clock deviation range of the intelligent ammeter is further reduced.

Description

Multi-dimensional self-adaptive metering device patrol and timing method for supporting electric power spot market
Technical Field
The application relates to the field of electric power, in particular to a method for patrolling and timing a multidimensional self-adaptive metering device supporting an electric power spot market.
Background
With the popularization and application of the intelligent electric energy meter, more and more electric energy meter information needs to be recorded in a freezing way. However, in practice, the clock inside the electric energy meter is often deviated due to various reasons, so that the problems that the freezing time of the electricity quantity readings of a plurality of electric energy meters is not synchronous, the freezing of the calculation cost readings of a plurality of electric energy meters is not accurate, and the like occur.
Disclosure of Invention
The embodiment of the application aims to provide a method for patrolling and timing a multidimensional self-adaptive metering device supporting an electric power spot market, which can enable the time of an electric meter to be synchronous and accurate, so that the deviation requirements of a marketized user terminal and the electric meter are reduced, and the clock deviation range of an intelligent electric energy meter is further reduced.
In a first aspect, the embodiment of the present application provides a system for patrol and timing of a multidimensional adaptive metering device supporting an electric power spot market, the system for patrol and timing of a multidimensional adaptive metering device supporting an electric power spot market comprises a master station, a terminal and an electric meter, wherein,
the master station is used for acquiring standard time from a standard clock source and performing self-timing according to the standard time;
the master station is further configured to send an encrypted message including the standard time to the terminal;
the terminal is used for receiving the encrypted message and correcting time according to the encrypted message;
the terminal is also used for carrying out NTP time synchronization with the master station;
the terminal is also used for carrying out NTP time synchronization with the standard clock source;
the terminal is also used for carrying out Beidou time synchronization;
the master station is also used for carrying out time service on the electric meter;
the master station is also used for sending timing broadcast to the electric meter through the terminal;
the ammeter is used for receiving the timing broadcast and performing timing according to the timing broadcast;
the ammeter is also used for timing with the terminal.
In the implementation process, the master station is used for acquiring standard time from a standard clock source, performing self-timing according to the standard time, and sending an encrypted message including the standard time to the terminal; the terminal is used for receiving the encrypted message, performing time correction according to the encrypted message, performing NTP time correction with the master station, performing NTP time correction with the standard clock source and performing Beidou time correction; the master station is also used for carrying out time service on the electric meter and sending time correction broadcast to the electric meter through the terminal; the ammeter is used for receiving the timing broadcast, performing timing according to the timing broadcast and performing timing with the terminal, so that the multi-dimensional self-adaptive metering device patrol and timing system supporting the electric power spot market of the main station-terminal-ammeter is realized, the time synchronization of the ammeter can be accurate, the deviation requirements of a market-oriented user terminal and the ammeter are reduced, and the clock deviation range of the intelligent ammeter is further reduced.
A second aspect of the embodiments of the present application provides a method for polling and timing a multidimensional adaptive metering device supporting an electric power spot market, which is applied to a master station included in a system for polling and timing a multidimensional adaptive metering device supporting an electric power spot market provided in the first aspect, and the method includes:
acquiring first time in a first standard clock source and second time in a second standard clock source;
judging whether the difference value of the first time and the second time is greater than a first time difference threshold value or not;
when the difference value between the first time and the second time is not greater than the first time difference threshold value, judging whether the difference value between the first time and the second time is greater than a second time difference threshold value; the first time difference threshold is greater than the second time difference threshold;
when the difference value of the first time and the second time is not larger than the second time difference threshold value, determining standard time according to the first time and the second time;
and self-timing is carried out according to the standard time.
A third aspect of the embodiments of the present application provides a method for polling and timing a multidimensional adaptive metering device supporting an electric power spot market, which is applied to a master station included in a system for polling and timing a multidimensional adaptive metering device supporting an electric power spot market provided in the first aspect, and the method includes:
monitoring the terminal time of the terminal;
judging whether the time difference between the master station time of the master station and the terminal time is greater than a preset timing threshold value or not;
when the time difference between the master station time and the terminal time is greater than the preset timing threshold, generating a timing list according to the identity information of the terminal, the terminal time and the master station time, and outputting the timing list;
and timing the terminal according to the timing list.
Further, the step of monitoring the terminal time of the terminal includes:
acquiring the reporting times of the heartbeat frame reported by the terminal;
judging whether the reporting times are greater than preset monitoring times or not;
when the reporting times are not more than the preset monitoring times, determining the terminal time according to the heartbeat frame;
and when the reporting times are greater than the monitoring times, generating a terminal clock freezing list according to the recorded monitoring list.
Further, the step of monitoring the terminal time of the terminal includes:
when a power failure event reported by the terminal is received, calling the terminal time of the terminal;
judging whether the terminal time is successfully summoned;
when the terminal time is successfully summoned, acquiring the terminal time;
when the terminal time calling is unsuccessful, judging whether the calling times of the terminal time are greater than preset failure times;
and when the summoning times are greater than the failure times, generating a terminal clock freezing list according to the recorded summoning details.
Further, the step of timing the terminal according to the timing manifest includes:
according to the timing list, issuing accurate timing parameters or timing commands to the terminal so that the terminal feeds back timing success information or timing failure information;
when the time correction success information is received, judging whether the time correction success information is received continuously for preset days;
when the time correction success information is received continuously for the preset number of days, generating a terminal clock abnormity record table;
when the timing failure information is received, judging whether the timing failure information is received for a preset number of times;
and when the timing failure information is received continuously for the preset times, generating a terminal clock abnormity record table.
A fourth aspect of the embodiments of the present application provides a method for polling and timing a multidimensional adaptive metering device supporting an electric power spot market, which is applied to a master station included in a system for polling and timing a multidimensional adaptive metering device supporting an electric power spot market provided in the first aspect, and the method includes:
monitoring ammeter information and ammeter time reported by the ammeter;
judging whether the ammeter is abnormal or not according to the ammeter information;
when the ammeter has no abnormal information, judging whether the time difference between the master station time of the master station and the ammeter time is greater than a preset timing threshold value or not;
when the time difference between the master station time and the electric meter time is greater than the preset timing threshold value, generating a timing list according to the identity information of the electric meter, the electric meter time and the master station time, and outputting the timing list;
and timing the ammeter according to the timing list.
Further, the electric meter information is an electric meter status word, wherein the step of determining whether the electric meter is abnormal according to the electric meter information includes:
judging whether a clock battery of the ammeter is under-voltage or not according to the ammeter state word;
when the clock battery of the ammeter is under-voltage, generating a clock battery under-voltage detail table;
and outputting the clock battery under-voltage detail table, and determining that the ammeter has abnormality.
A fifth aspect of the embodiments of the present application provides a method for polling and timing a multidimensional adaptive metering device supporting an electric power spot market, which is applied to a terminal included in a system for polling and timing a multidimensional adaptive metering device supporting an electric power spot market provided in the first aspect, and the method includes:
when a power failure and recovery event reported by the ammeter is received, judging whether the ammeter version of the ammeter is a preset version or not;
when the electric meter version is the preset version, calling the electric meter time of the electric meter;
when the difference value between the electric meter time and the terminal time of the terminal is smaller than a preset difference value, performing subsection broadcasting timing on the electric meter;
and when the electric meter version is not the preset version, performing point-to-point timing on the electric meter.
A sixth aspect of the present application provides a method for polling and timing a multidimensional adaptive metering device supporting a power spot market, which is applied to a system for polling and timing a multidimensional adaptive metering device supporting a power spot market provided in the first aspect, and the method includes:
the terminal sends a one-time setting request to the master station and records a first time setting time for sending the one-time setting request;
the master station receives the primary time setting request and replies a master station rough time to the terminal;
the terminal receives the rough time of the master station and performs primary timing according to the rough time of the master station;
the terminal sends a secondary time setting request to the master station and records a second time setting time for sending the secondary time setting request;
the master station receives the secondary time setting request and replies the accurate time of the master station to the terminal;
and the terminal receives the accurate time of the main station and performs secondary time correction according to the accurate time of the main station.
Further, the step of receiving, by the master station, the secondary time synchronization request and replying the accurate time of the master station to the terminal includes:
the master station receives the secondary time setting request and obtains master station time of the master station;
the master station calculates network delay according to a preset multi-dimensional adaptive algorithm;
the master station adjusts the master station time according to the network delay to obtain the master station accurate time;
and the master station replies the accurate time of the master station to the terminal.
Further, the multidimensional adaptive algorithm comprises determining a time delay, determining a weather delay, and determining a temperature influence, wherein a calculation formula when the time delay is determined is as follows:
W=[(T2-T1)-(T4-T3)]/2 + V;
wherein T1 is a transmission time of a device, T2 is a reception time of the master station, T3 is a response time of the master station, T4 is a reception time of the device, the device is the terminal or the electric meter, W is a time delay between the master station and the device, and V is another error value, which at least includes a terminal response time and a delay affected by a communication protocol;
wherein, when determining the weather delay, the weather delay is measured by an environment negative factor delay coefficient, which is:
K=F[A,B,C,D,E];
Y=W*K*T;
y is total delay, the total delay is time correction time determined according to the time delay, the weather delay and the temperature influence, and the master station can obtain a time value which is to be issued to the equipment according to the standard time and the total delay Y;
wherein K is an environmental negative factor delay coefficient, T is a temperature influence factor, A is a sunny influence factor, B is a cloudy influence factor, C is a rainy influence factor, D is a thunderstorm influence factor, E is a rain and snow influence factor, K is an environmental influence factor, and the environmental influence factor is one of A, B, C, D, E;
and measuring by using a temperature influence factor T when determining the temperature influence, wherein the value of the temperature influence factor T is 1 at 10-30 ℃.
A seventh aspect of the embodiments of the present application provides an electronic device, including a memory and a processor, where the memory is used to store a computer program, and the processor runs the computer program to make the electronic device execute the method for polling and timing the multidimensional adaptive metering device supporting the electric power spot market according to any one of the second aspect to the sixth aspect of the embodiments of the present application.
An eighth aspect of the embodiments of the present application provides a computer-readable storage medium, which stores computer program instructions, and when the computer program instructions are read and executed by a processor, the method for performing the patrol and timing of the multidimensional adaptive metering device supporting the electric power spot market according to any one of the second aspect to the sixth aspect of the embodiments of the present application is performed.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic diagram of a system architecture of a patrol and timing system of a multidimensional adaptive metering device supporting an electric power spot market according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for polling and timing a multidimensional adaptive metering device supporting a power spot market for self-timing by a master station according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a method for polling and timing a multidimensional adaptive metering device used in a supported power spot market between a master station and a terminal according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a method for performing patrol and timing of a multidimensional adaptive metering device for supporting a power spot market between a master station and an electric meter according to an embodiment of the present application;
fig. 5 is a schematic flowchart of a method for performing patrol and timing of a multidimensional adaptive metering device for supporting a power spot market between a master station and an electric meter according to an embodiment of the present application;
fig. 6 is a schematic flowchart of a method for performing patrol and timing of a multidimensional adaptive metering device for supporting a power spot market between a terminal and an electric meter according to an embodiment of the present application;
fig. 7 is a schematic flowchart of another method for polling and timing a multidimensional adaptive metering device in a bolt-supported power spot market between a master station and a terminal according to an embodiment of the present application;
fig. 8 is a schematic diagram of a service cluster of a cryptographic engine provided in an embodiment of the present application;
fig. 9 is a schematic flow chart of self-timing of a master station according to an embodiment of the present disclosure;
fig. 10 is a schematic flowchart of automatic timing of a master station to a terminal according to an embodiment of the present application;
fig. 11 is a schematic total flow chart of automatic timing of a master station to a terminal according to an embodiment of the present application;
fig. 12 is a schematic flowchart of heartbeat analysis according to an embodiment of the present application;
fig. 13 is a schematic flowchart of monitoring a power restoration clock of a terminal according to an embodiment of the present disclosure;
fig. 14 is a schematic flowchart of a process in which a master station performs patrol detection on a terminal according to an embodiment of the present application;
fig. 15 is a schematic timing flow diagram of a master station calibrating an electric energy meter according to an embodiment of the present application;
fig. 16 is a schematic diagram of a patrol flow of a master station for detecting an under-voltage status word of a battery of an electric energy meter according to an embodiment of the present application;
fig. 17 is a schematic diagram illustrating that a master station performs patrol measurement on an electric meter according to an embodiment of the present application;
fig. 18 is a schematic flowchart of electrical timing on an electric energy meter according to an embodiment of the present disclosure;
fig. 19 is a schematic flow chart illustrating automatic timing of a deviation meter according to an embodiment of the present disclosure.
The figure is as follows: the system comprises a main station-110, a terminal-120 and an electric meter-130.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Example 1
Referring to fig. 1, fig. 1 is a schematic diagram of a system architecture of a multi-dimensional adaptive metering device patrol and timing system supporting an electric power spot market according to an embodiment of the present application. The system for patrolling and calibrating the multi-dimensional adaptive metering device supporting the electric power spot market comprises a main station 110, a terminal 120 and an electric meter 130, wherein,
and the master station 110 is configured to obtain the standard time from the standard clock source and perform self-timing according to the standard time.
In the embodiment of the present application, the master station 110 first needs to satisfy the accuracy of its own clock, and performs self-calibration by obtaining a standard clock source.
The primary station 110 is further configured to send an encrypted message including a standard time to the terminal 120.
And the terminal 120 is configured to receive the encrypted message and perform timing according to the encrypted message.
In this embodiment, the terminal 120 may be a concentrator, which is not limited in this embodiment.
In this embodiment, the encrypted message including the standard time may be sent to the terminal 120 through the cryptographic engine.
In the embodiment of the present application, each application service in the prior art is a pair of direct access crypto engines, and the following four problems mainly exist: a single crypto-engine failure can cause application service related business failure configured to access the crypto-engine; the access frequency of the cipher machines is unbalanced, some cipher machines are busy, and some cipher machines are rarely accessed; if the IP address of the cipher machine is changed, a large number of related application services are correspondingly changed; the IP of the cipher machine is directly exposed out without authority control, and great safety risk is realized. Aiming at the problems, the embodiment of the application can adopt a micro-service mode to provide uniform cipher machine service for the outside. Each cipher machine corresponds to two cipher machine services, a plurality of cipher machine services form a cluster, and a uniform access interface is provided for the outside through load balancing. Referring to fig. 8, fig. 8 is a schematic diagram of a cryptographic engine service cluster according to an embodiment of the present application. As shown in fig. 8, the cryptographic engine service needs to implement all cryptographic engine interface functions, including 15 interfaces, such as an acquisition track technology, session initialization and session recovery, session negotiation verification, identity authentication, remote control, terminal 120 acquiring certificate information, terminal 120/electric meter 130 secure transmission encryption, terminal 120/electric meter 130 secure transmission decryption, and the like.
The terminal 120 is further configured to perform NTP time synchronization with the master station 110.
The terminal 120 is further configured to perform NTP time synchronization with the standard clock source.
And the terminal 120 is also used for carrying out Beidou time synchronization.
The main station 110 is also used for timing the electricity meter 130.
The master station 110 is further configured to transmit the timing broadcast to the electricity meter 130 through the terminal 120.
And the electric meter 130 is used for receiving the timing broadcast and performing timing according to the timing broadcast.
In the embodiment of the present application, the electric meter 130, i.e., the electric energy meter, is an instrument for measuring electric energy, and is also called a watt-hour meter, a fire meter, a kilowatt-hour meter, and is an instrument for measuring various electrical quantities.
In this embodiment, the master station 110 or the terminal 120 may time-calibrate at least one electric meter 130.
The electricity meter 130 is also used for time synchronization with the terminal 120.
In the embodiment of the application, the system for patrol measurement and time correction of the multidimensional adaptive metering device supporting the power spot market and comprising the main station 110, the terminal 120 and the electric meter 130 is divided into three parts, namely time correction of the main station 110 to the terminal 120, time correction of the main station 110 to the electric meter 130 and time correction of the terminal 120 to the electric meter 130, so that time synchronization of the electric meter 130 can be accurate, the deviation requirements of the marketized user terminal 120 and the electric meter 130 are reduced, and the clock deviation range of the intelligent electric energy meter is further reduced.
In this embodiment, the master station 110 performs timing on the terminal 120 in two ways, the first way is to send an encrypted message and write a correct clock into the terminal 120 with clock skew, and the second way is to perform frequent file exchange with the master station 110 when the terminal 120 performs NTP timing inside the master station 110, so as to autonomously correct clock skew.
In the embodiment of the present application, the master station 110 performs timing on the electric meter 130 in two ways, the first way is to perform broadcast timing by using the terminal 120, which includes segmented broadcast timing and single-address broadcast timing, and the second way is to perform accurate time service on the electric meter 130 by the master station 110.
In the embodiment of the present application, the time synchronization of the terminal 120 to the electric meter 130 is implemented in two ways, the first way is that after the terminal 120 completes the NTP time synchronization with the master station 110, the electric meter 130 further hung down is subjected to the time synchronization, and the second way is that the terminal 120 directly performs the NTP time synchronization/beidou time synchronization with the electric meter 130, which is unrelated to the master station 110.
In the embodiment of the application, the multi-dimensional adaptive metering device patrol and timing system supporting the electric power spot market of the main station 110, the terminal 120 and the electric meter 130 is combined to form an integral sampling and timing system by the timing method, so that the autonomous timing function of the terminal 120 can be realized, the autonomous timing of the terminal 120 is realized by using the NTP technology/Beidou timing, the pressure of the main station 110 is effectively reduced, and the problem that the timing of the terminal 120 is not accurate is solved.
It can be seen that, by implementing the method for patrol survey and time calibration of the multi-dimensional adaptive metering device supporting the electric power spot market described in this embodiment, the time of the electric meter 130 can be synchronized accurately, so that the deviation requirements of the marketized user terminal 120 and the electric meter 130 are reduced, and the clock deviation range of the intelligent electric energy meter is further reduced.
Example 2
Referring to fig. 2, fig. 2 is a schematic flowchart of a method for patrol and time calibration of a multidimensional adaptive metering device supporting a power spot market for self-time calibration of a master station according to an embodiment of the present application. As shown in fig. 2, the method for polling and timing the multidimensional adaptive metering device supporting the electric power spot market is applied to a master station included in the system for polling and timing the multidimensional adaptive metering device supporting the electric power spot market, and is used for self-timing of the master station, and includes:
s201, obtaining first time in a first standard clock source, and obtaining second time in a second standard clock source.
In this embodiment, the first standard clock source may specifically be a standard clock source, and the second standard constant source may specifically be a disaster recovery center standard clock source, which is not limited in this embodiment.
S202, judging whether the difference value of the first time and the second time is larger than a first time difference threshold value, and if so, executing a step S203; if not, step S204 is executed.
Referring to fig. 9, fig. 9 is a schematic diagram illustrating a self-timing process of a master station according to an embodiment of the present disclosure. As shown in fig. 9, the time deviation (i.e. the difference between the first time and the second time) of the standard clock source and the standard clock source of the disaster recovery center is obtained and compared, and corresponding alarm information is generated according to the different deviations.
And S203, outputting prompt information for prompting troubleshooting, and ending the process.
In the embodiment of the present application, when it is determined that the difference between the first time and the second time is greater than the first time difference threshold, that is, the time deviation of the two standard clock sources exceeds the first time difference threshold (for example, 1 s), performing troubleshooting, and recovering to receive the standard clock source signal after troubleshooting.
S204, judging whether the difference value of the first time and the second time is larger than a second time difference threshold value, and if not, executing a step S205; if so, step S207 is performed.
In an embodiment of the application, the first time difference threshold is greater than the second time difference threshold.
And S205, determining standard time according to the first time and the second time.
S206, self-timing is carried out according to the standard time, and the process is ended.
And S207, outputting prompt information for prompting the promotion of the detection duration and frequency.
As shown in fig. 9, it is first determined whether the time deviation of the two standard clock sources exceeds a first time difference threshold (1000 ms), if not, it is determined whether the time deviation of the two standard clock sources exceeds a second time difference threshold (100 ms), and if so, the monitoring frequency and the monitoring duration are increased. Wherein, the monitoring duration can be 15min, and the monitoring frequency can be 1 per minute.
Therefore, by implementing the method for patrol survey and time correction of the multidimensional adaptive metering device for supporting the electric power spot market, the time of the electric meter can be synchronized accurately, so that the deviation requirements of a marketized user terminal and the electric meter are reduced, and the clock deviation range of the intelligent electric energy meter is further reduced. The method of the embodiment of the invention can ensure that the terminal deviation of the marketized user is kept within 10s and the ammeter deviation of the marketized user is within 30s, has obvious progress and foresight compared with the current time correction technology, can powerfully support the construction of the future electric power market and the clearing settlement of the electric power spot market, and ensures the settlement accuracy of the marketized user participating in the electric power market.
Example 3
Referring to fig. 3, fig. 3 is a schematic flowchart of a method for patrol and time calibration of a multidimensional adaptive metering device for supporting a power spot market between a master station and a terminal according to an embodiment of the present application. As shown in fig. 3, the method for polling and timing the multidimensional adaptive metering device supporting the electric power spot market is applied to a master station included in the system for polling and timing the multidimensional adaptive metering device supporting the electric power spot market, and is used for timing between the master station and a terminal, and includes:
s301, acquiring the reporting times of the heartbeat frame reported by the terminal.
In the embodiment of the application, clock monitoring is carried out according to the 13-version electric energy meter and the heartbeat frame reported by the object-oriented protocol terminal, a timing list is generated, and a heartbeat clock monitoring result is recorded.
S302, judging whether the reporting times are greater than the preset monitoring times, and if not, executing the step S302; if so, step S303 is performed.
And S303, generating a terminal clock freezing list according to the recorded monitoring list, and ending the process.
And S304, determining the terminal time according to the heartbeat frame.
In the embodiment of the present application, the terminal time of the terminal can be monitored by implementing the steps S301 to S304.
S305, judging whether the time difference between the master station time of the master station and the terminal time is greater than a preset timing threshold value, if so, executing a step S306; if not, the flow is ended.
And S306, generating a timing list according to the identity information of the terminal, the terminal time and the master station time, and outputting the timing list.
And S307, issuing an accurate timing parameter or a timing command to the terminal according to the timing list so that the terminal feeds back timing success information or timing failure information.
S308, when the time correction success information is received, judging whether the time correction success information is received continuously for preset days, if so, executing the step S309; if not, step S312 is performed.
S309, when the time correction success information is received continuously for the preset number of days, generating a terminal clock abnormity record table, and ending the process.
S310, when the timing failure information is received, judging whether the timing failure information is received for a preset number of times, if so, executing a step S311; if not, step S312 is performed.
And S311, generating a terminal clock abnormity record table and ending the flow.
And S312, recording and storing the time correction list.
Referring to fig. 10, fig. 10 is a schematic flowchart illustrating an automatic timing of a master station to a terminal according to an embodiment of the present application. As shown in fig. 10, the flow of the master station automatically timing the terminal is as follows:
(1-1) the master station inquires a timing list to obtain terminal information;
(1-2) judging whether an object-oriented protocol terminal exists, if the object-oriented protocol terminal exists, executing (1-3), and if the object-oriented protocol terminal exists, executing (1-4);
(1-3) issuing an accurate timing parameter command, starting the terminal to perform accurate timing, and executing (1-5);
(1-4) issuing a time synchronization command to realize automatic time synchronization of the terminal, and executing (1-5);
(1-5) judging whether the time correction is successful, if so, executing (1-7), if not, accumulating failure times, recording failure reasons and executing (1-6);
(1-6) judging whether the continuous 3-time timing fails, if the continuous 3-time timing fails, executing (1-8), and if the continuous 3-time timing fails, executing (1-2);
(1-7) judging whether time correction is needed for two consecutive days, if so, executing (1-8), and if not, executing (1-9);
(1-8) generating a terminal clock exception record to be processed on site;
and (1-9) recording the timing result of the terminal clock and ending.
In the embodiment of the present application, the terminal can be calibrated according to the timing list by implementing the steps S307 to S311.
Referring to fig. 11 and 12 together, fig. 11 is a general flow chart of the master station automatically calibrating the time of the terminal according to the embodiment of the present application, and fig. 12 is a flow chart of heartbeat analysis according to the embodiment of the present application. As shown in fig. 12, the terminal heartbeat continuous monitoring frequency exceeds the preset monitoring frequency (for example, the default value is 24 times), the clock is normal, and the monitoring is not performed within the calibration period (the default value is 12 h). And if the clock deviation between the terminal and the master station exceeds a threshold value (the terminal of the marketized trading user is not more than 10s, and the terminal of the non-marketized trading user is not more than 1 min), determining that the clock is out of tolerance.
As shown in fig. 12, the heartbeat analysis process includes the following steps:
(2-1) the terminal reports the heartbeat frame, and the master station analyzes the heartbeat frame to obtain terminal information;
(2-2) judging whether the terminal exceeds the maximum monitoring times, if not, executing (2-3), and if the maximum monitoring times is exceeded, executing (2-6);
(2-3) judging whether the terminal clock is out of tolerance or not, if so, executing (2-4), and if so, ending;
(2-4) judging whether the terminal is added into the timing list, if not, executing (2-5), and if so, ending;
(2-5) adding the clock out-of-tolerance terminal into a timing list;
and (2-6) recording the monitoring result of the heartbeat clock of the terminal and updating a 'terminal clock freezing list'.
Referring to fig. 4, fig. 4 is a schematic flowchart of a method for polling and timing a multidimensional adaptive metering device supporting a power spot market between a master station and an electric meter according to an embodiment of the present application. As shown in fig. 4, the method for polling and timing the multidimensional adaptive metering device supporting the electric power spot market is applied to a master station included in the system for polling and timing the multidimensional adaptive metering device supporting the electric power spot market, and is used for timing between the master station and an electric meter, and includes:
s401, when a power failure and restoration event reported by the terminal is received, calling the terminal time of the terminal.
S402, judging whether the terminal time is successfully summoned, and if so, executing a step S403; if not, step S404 is performed.
S403, acquiring the terminal time, and executing the step S406.
S404, judging whether the number of times of calling and testing the terminal time is greater than the preset failure number, if so, executing the step S405; if not, step S401 is executed.
And S405, generating a terminal clock freezing list according to the recorded calling list, and ending the flow.
In the embodiment of the present application, the terminal time of the terminal can be monitored by implementing the steps S401 to S105.
S406, judging whether the time difference between the master station time of the master station and the terminal time is greater than a preset timing threshold value, and if so, executing a step S407; if not, step S409 is performed.
S407, generating a timing list according to the identity information of the terminal, the terminal time and the master station time, outputting the timing list and ending the process.
In the embodiment of the application, when the time difference between the master station time and the terminal time is greater than a preset timing threshold value, the clock out-of-tolerance is indicated; and when the time difference between the master station time and the terminal time is greater than a preset timing threshold value, indicating that the clock is not out of tolerance.
And S408, timing the terminal according to the timing list.
As an alternative embodiment, the method may further comprise the steps of:
and S409, recording the terminal clock patrol result and updating the terminal clock freezing list.
Referring to fig. 13 and 14 together, fig. 13 is a schematic flowchart of a monitoring process of a power recovery clock of a terminal according to an embodiment of the present application, and fig. 14 is a schematic flowchart of a process of a master station performing a patrol test on the terminal according to the embodiment of the present application. As shown in fig. 14, the deviation list is generated on the premise that the master station performs polling on the terminal, and the deviation or the timing list is determined according to the polling result. The specific patrol flow is as follows:
(3-1) the master station automatically executes the terminal clock patrol according to the compiled patrol plan;
(3-2) when the test is called, the clock terminal judges whether the test is called successfully or not, if the test is called unsuccessfully, the clock terminal executes the step (3-3), and if the test is called successfully, the clock terminal executes the step (3-4);
(3-3) judging whether the failure is continuously performed for 3 times, if the continuous failure is less than 3 times, executing (3-2), and if the continuous failure is continuously performed for 3 times, executing (3-7);
(3-4) judging whether the terminal clock is out of tolerance or not, if so, executing (3-5), and if not, executing (3-7);
(3-5) judging whether the terminal is added into the timing list, if not, executing (3-6), and if so, executing (3-7);
(3-6) adding the clock out-of-tolerance terminal into a timing list;
and (3-7) recording the terminal clock patrol result and updating the 'terminal clock freezing list'.
Therefore, by implementing the method for patrol survey and time correction of the multidimensional adaptive metering device for supporting the electric power spot market, the time of the electric meter can be synchronized accurately, so that the deviation requirements of a marketized user terminal and the electric meter are reduced, and the clock deviation range of the intelligent electric energy meter is further reduced.
Example 4
Referring to fig. 5, fig. 5 is a schematic flowchart of a method for patrol and time calibration of a multi-dimensional adaptive metering device for supporting a power spot market between a master station and an electric meter according to an embodiment of the present application. As shown in fig. 5, the method for polling and timing the multidimensional adaptive metering device supporting the electric power spot market is applied to a master station included in the system for polling and timing the multidimensional adaptive metering device supporting the electric power spot market, and is used for timing between the master station and an electric meter, and includes:
s501, monitoring the electric meter information and the electric meter time reported by the electric meter.
S502, judging whether a clock battery of the ammeter is under-voltage or not according to the ammeter state word, and if so, executing a step S503; if not, step S505 is performed.
In the embodiment of the application, the electric meter information is an electric meter status word.
And S503, generating a clock battery under-voltage list.
And S504, outputting a clock battery under-voltage detailed list, determining that the ammeter has abnormity, and ending the process.
And S505, determining that the electricity meter does not have abnormal information, and executing the step S506.
In the embodiment of the present application, the above steps S502 to S505 are implemented, and whether the electricity meter is abnormal or not can be determined according to the information of the electricity meter.
S506, judging whether the time difference between the master station time of the master station and the electric meter time is larger than a preset timing threshold value or not, and if so, executing a step S507; if not, step S509 is performed.
And S507, generating a timing list according to the identity information of the electric meter, the electric meter time and the master station time, and outputting the timing list.
And S508, timing the electric meter according to the timing list, and ending the process.
As an alternative embodiment, the method may further comprise the steps of:
and S509, recording a terminal clock patrol result and updating a terminal clock freezing list.
Referring to fig. 15 and fig. 16 together, fig. 15 is a schematic diagram of a timing process of a master station for an electric energy meter according to an embodiment of the present application, and fig. 16 is a schematic diagram of a patrol process of the master station for a battery under-voltage status word of the electric energy meter according to the embodiment of the present application. As shown in fig. 16, the patrol flow of the master station to the under-voltage status word of the battery of the electric energy meter is as follows:
(4-1) the master station automatically executes the electric energy meter running state word 1 patrol according to the compiled patrol plan;
(4-2) calling the running state word 1 of the electric energy meter, judging whether the calling is successful or not, if the calling is successful, executing (4-4), and if the calling is failed, accumulating the failure times, recording the failure reason and executing (4-3);
(4-3) judging whether the failure is continuously performed for 3 times, if the failure is performed for 3 times, executing (4-8), and if the failure is less than 3 times, executing (4-2);
(4-4) judging whether the clock battery is under-voltage or not, if the battery is not under-voltage, executing (4-8), and if the battery is under-voltage, executing (4-5);
(4-5) judging whether an electric energy meter clock battery under-voltage detailed table is added or not, if the electric energy meter clock battery under-voltage detailed table is added, executing (4-6) and (4-8), and if the electric energy meter clock battery under-voltage detailed table is not added, executing (4-7) and (4-8);
(4-6) updating the undervoltage list of the clock battery of the electric energy meter;
(4-7) adding a clock battery undervoltage detail table of the electric energy meter;
and (4-8) writing the patrol result into the electric energy meter running state word 1 patrol detail table and finishing.
Referring to fig. 17, fig. 17 is a schematic diagram illustrating a master station patrolling an electric meter according to an embodiment of the present application, as shown in fig. 17, a deviation list is generated on the premise that the master station patrols the electric meter, and the deviation or the timing list is determined according to a patrol result, specifically, a patrol process includes:
(5-1) the master station automatically executes the clock patrol of the electric energy meter according to the compiled patrol plan;
(5-2) calling the clock of the electric energy meter, judging whether the calling is successful, if the calling is successful, executing (5-4), if the calling is failed, accumulating the failure times, recording the failure reason, and executing (5-3);
(5-3) judging whether the failure is continuously performed for 3 times, if the continuous failure is less than 3 times, executing (5-2), and if the continuous failure is continuously performed for 3 times, executing (5-6);
(5-4) judging whether the clock of the electric energy meter is out of tolerance or not, if the clock of the electric energy meter is out of tolerance, executing (5-5), and if the clock of the electric energy meter is normal, executing (5-6);
(5-5) adding a timing list; and writing the polling result into an electric energy meter clock polling list and finishing.
In the embodiment of the present application, for the explanation of the method for the patrol measurement and the time correction of the multidimensional adaptive metering device supporting the electric power spot market, reference may be made to the descriptions in embodiments 1 to 3, and further description is not repeated in this embodiment.
Therefore, by implementing the method for patrol survey and time correction of the multidimensional adaptive metering device for supporting the electric power spot market, the time of the electric meter can be synchronized accurately, so that the deviation requirements of a marketized user terminal and the electric meter are reduced, and the clock deviation range of the intelligent electric energy meter is further reduced.
Example 5
Referring to fig. 6, fig. 6 is a schematic flowchart of a method for patrol and time calibration of a multi-dimensional adaptive metering device for supporting a power spot market between a terminal and an electric meter according to an embodiment of the present application. As shown in fig. 6, the method for polling and timing the multidimensional adaptive metering device supporting the electric power spot market is applied to a terminal in the polling and timing system of the multidimensional adaptive metering device supporting the electric power spot market, and is used for timing between the terminal and an electric meter, and includes:
s601, when a power failure and recovery event reported by an ammeter is received, judging whether the ammeter version of the ammeter is a preset version, and if so, executing the steps S602-S603; if not, S604.
And S602, calling the electric meter time of the electric meter.
And S603, when the difference value between the electric meter time and the terminal time of the terminal is smaller than a preset difference value, performing subsection broadcasting timing on the electric meter, and ending the process.
And S604, performing point-to-point timing on the electric meter.
Referring to fig. 18, fig. 18 is a schematic diagram of a process of power-on timing of an electric energy meter according to an embodiment of the present application, as shown in fig. 18, the power-on timing of the electric energy meter is that a master station receives a power-on event of the electric energy meter sent by a terminal, and immediately corrects the time of the electric energy meter, and the electric energy meter corresponding to the above process stops power restoration. As shown in fig. 18, the specific flow is as follows:
(6-1) the terminal reports the power-on event of the electric energy meter, and the master station analyzes the power-on event to obtain information of the electric energy meter;
(6-2) judging the version of the electric energy meter, if the electric energy meter is not the 09 version, executing (6-3), and if the electric energy meter is the 09 version, executing (6-6);
(6-3) carrying out remote point-to-point timing on the electric energy meter;
(6-4) judging whether the point-to-point timing succeeds or not, if the point-to-point timing succeeds, executing (6-13), if the point-to-point timing fails, accumulating failure times, recording failure reasons and executing (6-5);
(6-5) judging whether the time correction fails for 3 times in the period, if the time correction fails for 3 times, executing (6-12), and if the time correction fails for less than 3 times, executing (6-3);
(6-6) calling the clock of the electric energy meter;
(6-7) judging whether the clock calling is successful, and if the clock calling is successful, executing (6-9); if the summoning test fails, accumulating the failure times, recording the failure reason and executing (6-8);
(6-8) judging whether the period is lost for 3 times, if the period is lost for 3 times, executing (6-13), and if the period is lost for less than 3 times, executing (6-6);
(6-9) judging whether the absolute value of the clock deviation is greater than 30min, if so, executing (6-12), and if not, executing (6-10);
(6-10) segment broadcasting timing;
(6-11) judging whether the subsection broadcasting time correction is successful or not, if so, executing (6-13), and if not, executing (6-12);
and (6-12) writing in a clock abnormal meter of the electric energy meter to be processed on site.
Referring to fig. 19, fig. 19 is a schematic diagram of a process of automatically calibrating a deviation meter according to an embodiment of the present application, and as shown in fig. 19, the process of automatically calibrating the deviation meter is as follows:
(7-1) the master station inquires a timing list to obtain the information of the electric energy meter;
(7-2) judging the version of the electric energy meter, if the electric energy meter is not the 09 version, executing (7-3), and if the electric energy meter is the 09 version, executing (7-6);
(7-3) carrying out remote point-to-point timing on the electric energy meter;
(7-4) judging whether the point-to-point timing succeeds or not, if the point-to-point timing succeeds, executing (7-10), and if the point-to-point timing fails, accumulating failure times, recording failure reasons and executing (7-5);
(7-5) judging whether the time correction fails for 3 times in the period, if the time correction fails for 3 times, executing (7-9), and if the time correction fails for less than 3 times, executing (7-3);
(7-6) judging whether the absolute value of the clock deviation is greater than 30min, if so, executing (7-9), and if not, executing (7-7);
(7-7) segment broadcasting timing;
(7-8) judging whether the subsection broadcasting time correction is successful or not, if the time correction is successful, executing (7-10), and if the time correction is failed, executing (7-9);
and (7-9) writing in a clock abnormal meter of the electric energy meter to be processed on site.
In the embodiment of the present application, for the explanation of the method for the patrol measurement and the time correction of the multidimensional adaptive metering device supporting the electric power spot market, reference may be made to the descriptions in embodiments 1 to 4, and further description is not repeated in this embodiment.
Therefore, by implementing the method for patrol survey and time correction of the multidimensional adaptive metering device for supporting the electric power spot market, the time of the electric meter can be synchronized accurately, so that the deviation requirements of a marketized user terminal and the electric meter are reduced, and the clock deviation range of the intelligent electric energy meter is further reduced.
Example 6
Referring to fig. 7, fig. 7 is a schematic flowchart of another method for polling and timing a multidimensional adaptive metering device for a bolt-supported power spot market between a master station and a terminal according to an embodiment of the present application. As shown in fig. 7, the method for polling and timing the multidimensional adaptive metering device supporting the electric power spot market is applied to the polling and timing system of the multidimensional adaptive metering device supporting the electric power spot market, and is used for timing between a master station and a terminal, and includes:
s701, the terminal sends a time setting request to the master station, and records a first time setting time of sending the time setting request.
In the embodiment of the application, the method is that the terminal and the master station internal NTP time synchronization automatically correct the clock deviation through frequently carrying out file exchange with the master station.
S702, the master station receives the time synchronization request once and replies the rough time of the master station to the terminal.
And S703, the terminal receives the rough time of the main station and carries out primary time correction according to the rough time of the main station.
S704, the terminal sends a secondary time setting request to the main station and records a second time setting time for sending the secondary time setting request.
S705, the master station receives the secondary time synchronization request and acquires the master station time of the master station.
And S706, the master station calculates network delay according to a preset multidimensional self-adaptive algorithm.
In the embodiment of the application, the multidimensional adaptive algorithm firstly needs to acquire the natural environment and the network condition of the day, set different deviations according to the natural environment to adjust the coefficient weight of the natural environment, and adjust the corresponding coefficient weight of the network transmission by combining the current network transmission rate.
In the embodiment of the application, a multidimensional self-adaptive algorithm is innovatively utilized to scientifically calculate the channel transmission time delay under multiple scenes, and the accuracy of a clock issued by a master station to a terminal or an electric meter is ensured.
In the embodiment of the application, the algorithm plays an important role in accurate timing, and the influence caused by issuing of the weather, temperature and time delay timing instructions can be comprehensively considered. The multidimensional adaptive algorithm comprises the steps of determining time delay, determining weather delay and determining temperature influence, and the algorithm idea is as follows:
(1) the calculation formula when determining the time delay is:
W=[(T2-T1)-(T4-T3)]/2 + V;
wherein, T1 is the transmission time of the device, T2 is the receiving time of the master station, T3 is the response time of the master station, T4 is the receiving time of the device, the device is a terminal or an electric meter, W is the time delay between the master station and the device, V is another error value, and the another error value at least includes the terminal response time and the delay influenced by the communication protocol.
(2) For the weather delay, since the weather has a large influence on the transmission of the power system, especially the weather such as rain, snow, thunderstorm, etc., it is necessary to quantify this. And when weather delay is determined, measuring by adopting an environment negative factor delay coefficient, wherein the environment negative factor delay coefficient is as follows:
K=F[A,B,C,D,E]=W*X;
Y=W*K*T;
and Y is total delay, the total delay is timing time determined according to the time delay, the weather delay and the temperature influence, and the master station can obtain a time value which is to be issued to the equipment according to the standard time and the total delay Y.
Wherein K is an environmental negative factor delay coefficient, T is a temperature influence factor, A is a sunny influence factor, generally 1, B is a cloudy influence factor, C is a cloudy rain influence factor, D is a thunderstorm influence factor, E is a rain and snow influence factor, X is an environmental influence factor, the environmental influence factor is one of A, B, C, D, E, and B, C, D, E is less than 1.
(3) And measuring by using a temperature influence factor T when determining the temperature influence, wherein the value of the temperature influence factor T is 1 at 10-30 ℃.
And S707, the master station adjusts the master station time according to the network delay to obtain the master station accurate time.
And S708, the master station replies the accurate time of the master station to the terminal.
In this embodiment, by implementing the steps S705 to S708, the master station can receive the secondary time synchronization request and reply the accurate time of the master station to the terminal.
And S709, the terminal receives the accurate time of the master station and performs secondary time correction according to the accurate time of the master station.
In the embodiment of the application, the terminal performs NTP timing or Beidou timing, on the basis of guaranteeing the accuracy of the clock of the terminal, the clock of the electric energy meter can be periodically and automatically monitored and reported to the master station, the periodic automatic timing to the electric energy meter is performed, the timing accuracy of the terminal and the electric meter is improved through the layered timing and management of the master station, the terminal and the electric meter, and the deviation requirement of a marketized user terminal and the electric meter is met.
In the embodiment of the application, the NTP protocol station is added to realize the coding and decoding of NTP protocol messages, the NTP service is added on the master station side, hardware does not need to be added, the accuracy of the terminal is enhanced through the promotion of the time setting frequency, the automatic time setting task of the terminal on the basis is added to the ammeter, and then layered time setting is realized. Specifically, the following steps may be included:
(8-1) the terminal sends a request for inquiring one time setting to the master station and records the time for sending the request; one time pair is relatively rough time, and the modification range of the terminal clock is small.
(8-2) the master station receives the clock query request;
(8-3) the master station replies to a request of the terminal for inquiring a clock, wherein the reply request contains the first half (8-if 'several minutes', only 'several hours' are obtained) of the standard clock source time of the master station, and clock data are sent to the terminal;
(8-4) the terminal receives the clock data sent by the master station, requests a decryption sequence from the master station, decodes the clock data according to the decryption sequence and modifies the clock data with self deviation;
(8-5) the terminal sends a request for inquiring secondary accurate time synchronization to the master station and records the time for sending the request; the secondary time synchronization is relatively accurate time, and on the basis of successful primary time synchronization, the secondary time synchronization is further completed, and the time calibration accuracy is improved in a step-by-step time synchronization mode;
(8-6) the master station receives a request for inquiring the accurate clock;
(8-7) the master station replies a request for inquiring a clock of the terminal, wherein the reply request comprises standard clock source time (8-accurate 'several hours, a few minutes and a few seconds') of the master station and network delay calculated by a multidimensional adaptive algorithm, and adjusted clock data are sent to the terminal;
(8-8) the terminal receives the clock data sent by the master station, requests a decryption sequence from the master station, decodes the clock data according to the decryption sequence and modifies the clock data with self deviation;
(8-9) repeating the process at regular intervals, and performing accurate time setting frequently.
In the embodiment of the present application, for the explanation of the method for the patrol measurement and the time correction of the multidimensional adaptive metering device supporting the electric power spot market, reference may be made to the descriptions in embodiments 1 to 5, and further description is not repeated in this embodiment.
Therefore, by implementing the method for patrol survey and time correction of the multidimensional adaptive metering device for supporting the electric power spot market, the time of the electric meter can be synchronized accurately, so that the deviation requirements of a marketized user terminal and the electric meter are reduced, and the clock deviation range of the intelligent electric energy meter is further reduced.
The embodiment of the application provides electronic equipment, which comprises a memory and a processor, wherein the memory is used for storing a computer program, and the processor runs the computer program to enable the electronic equipment to execute the method for patrolling and timing the multidimensional adaptive metering device supporting the electric power spot market in any one of embodiments 2-6 of the application.
The embodiment of the application provides a computer-readable storage medium, which stores computer program instructions, and when the computer program instructions are read and executed by a processor, the method for performing the patrol and timing of the multidimensional adaptive metering device supporting the electric power spot market in any one of embodiments 2 to 6 of the application is executed.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 a process, method, article, or apparatus that comprises the element.

Claims (12)

1. A multi-dimensional self-adaptive metering device patrol and timing system for supporting an electric power spot market is characterized by comprising a main station, a terminal and an electric meter,
the master station is used for acquiring standard time from a standard clock source and performing self-timing according to the standard time;
the master station is further configured to send an encrypted message including the standard time to the terminal;
the terminal is used for receiving the encrypted message and correcting time according to the encrypted message;
the terminal is also used for carrying out NTP time synchronization with the master station;
the terminal is also used for carrying out NTP time synchronization with the standard clock source;
the terminal is also used for carrying out Beidou time synchronization;
the master station is also used for carrying out time service on the electric meter;
the master station is also used for sending timing broadcast to the electric meter through the terminal;
the ammeter is used for receiving the timing broadcast and performing timing according to the timing broadcast;
the ammeter is also used for timing with the terminal.
2. A method for patrolling and timing a multidimensional adaptive metering device supporting an electric power spot market, which is applied to a main station included in the system for patrolling and timing the multidimensional adaptive metering device supporting the electric power spot market in claim 1, and is characterized by comprising the following steps:
acquiring first time in a first standard clock source and second time in a second standard clock source;
judging whether the difference value of the first time and the second time is greater than a first time difference threshold value or not;
when the difference value between the first time and the second time is not greater than the first time difference threshold value, judging whether the difference value between the first time and the second time is greater than a second time difference threshold value; the first time difference threshold is greater than the second time difference threshold;
when the difference value of the first time and the second time is not larger than the second time difference threshold value, determining standard time according to the first time and the second time;
and self-timing is carried out according to the standard time.
3. A method for patrolling and timing a multidimensional adaptive metering device supporting an electric power spot market, which is applied to a main station included in the system for patrolling and timing the multidimensional adaptive metering device supporting the electric power spot market in claim 1, and is characterized by comprising the following steps:
monitoring the terminal time of the terminal;
judging whether the time difference between the master station time of the master station and the terminal time is greater than a preset timing threshold value or not;
when the time difference between the master station time and the terminal time is greater than the preset timing threshold, generating a timing list according to the identity information of the terminal, the terminal time and the master station time, and outputting the timing list;
and timing the terminal according to the timing list.
4. The method for patrol and timing of the multi-dimensional adaptive metering device for supporting the electric power spot market according to claim 3, wherein the step of monitoring the terminal time of the terminal comprises:
acquiring the reporting times of the heartbeat frame reported by the terminal;
judging whether the reporting times are greater than preset monitoring times or not;
when the reporting times are not more than the preset monitoring times, determining the terminal time according to the heartbeat frame;
and when the reporting times are greater than the monitoring times, generating a terminal clock freezing list according to the recorded monitoring list.
5. The method for patrol and timing of the multi-dimensional adaptive metering device for supporting the electric power spot market according to claim 3, wherein the step of monitoring the terminal time of the terminal comprises:
when a power failure event reported by the terminal is received, calling the terminal time of the terminal;
judging whether the terminal time is successfully summoned;
when the terminal time is successfully summoned, acquiring the terminal time;
when the terminal time calling is unsuccessful, judging whether the calling times of the terminal time are greater than preset failure times;
and when the summoning times are greater than the failure times, generating a terminal clock freezing list according to the recorded summoning details.
6. The method for patrol and timing of the multi-dimensional adaptive metering device for supporting the electric power spot market according to claim 3, wherein the step of timing the terminal according to the timing list comprises:
according to the timing list, issuing accurate timing parameters or timing commands to the terminal so that the terminal feeds back timing success information or timing failure information;
when the time correction success information is received, judging whether the time correction success information is received continuously for preset days;
when the time correction success information is received continuously for the preset number of days, generating a terminal clock abnormity record table;
when the timing failure information is received, judging whether the timing failure information is received for a preset number of times;
and when the timing failure information is received continuously for the preset times, generating a terminal clock abnormity record table.
7. A method for patrolling and timing a multidimensional adaptive metering device supporting an electric power spot market, which is applied to a main station included in the system for patrolling and timing the multidimensional adaptive metering device supporting the electric power spot market in claim 1, and is characterized by comprising the following steps:
monitoring ammeter information and ammeter time reported by the ammeter;
judging whether the ammeter is abnormal or not according to the ammeter information;
when the ammeter has no abnormal information, judging whether the time difference between the master station time of the master station and the ammeter time is greater than a preset timing threshold value or not;
when the time difference between the master station time and the electric meter time is greater than the preset timing threshold value, generating a timing list according to the identity information of the electric meter, the electric meter time and the master station time, and outputting the timing list;
and timing the ammeter according to the timing list.
8. The method for patrol and time calibration of the multi-dimensional adaptive metering device for supporting the electric power spot market according to claim 7, wherein the electric meter information is an electric meter status word, and the step of judging whether the electric meter is abnormal according to the electric meter information comprises the following steps:
judging whether a clock battery of the ammeter is under-voltage or not according to the ammeter state word;
when the clock battery of the ammeter is under-voltage, generating a clock battery under-voltage detail table;
and outputting the clock battery under-voltage detail table, and determining that the ammeter has abnormality.
9. A multi-dimensional adaptive metering device patrol and timing method for supporting an electric power spot market, which is applied to a terminal included in the multi-dimensional adaptive metering device patrol and timing system for supporting the electric power spot market according to claim 1, and is characterized by comprising the following steps:
when a power failure and recovery event reported by the ammeter is received, judging whether the ammeter version of the ammeter is a preset version or not;
when the electric meter version is the preset version, calling the electric meter time of the electric meter;
when the difference value between the electric meter time and the terminal time of the terminal is smaller than a preset difference value, performing subsection broadcasting timing on the electric meter;
and when the electric meter version is not the preset version, performing point-to-point timing on the electric meter.
10. A multi-dimensional adaptive metering device patrol and timing method for supporting an electric power spot market, which is applied to the multi-dimensional adaptive metering device patrol and timing system for supporting the electric power spot market in claim 1, and is characterized by comprising the following steps:
the terminal sends a one-time setting request to the master station and records a first time setting time for sending the one-time setting request;
the master station receives the primary time setting request and replies a master station rough time to the terminal;
the terminal receives the rough time of the master station and performs primary timing according to the rough time of the master station;
the terminal sends a secondary time setting request to the master station and records a second time setting time for sending the secondary time setting request;
the master station receives the secondary time setting request and replies the accurate time of the master station to the terminal;
and the terminal receives the accurate time of the main station and performs secondary time correction according to the accurate time of the main station.
11. The method for patrol and time calibration of the multi-dimensional adaptive metering device for supporting the electric power spot market according to claim 10, wherein the step of receiving the secondary time calibration request by the master station and replying the accurate time of the master station to the terminal comprises:
the master station receives the secondary time setting request and obtains master station time of the master station;
the master station calculates network delay according to a preset multi-dimensional adaptive algorithm;
the master station adjusts the master station time according to the network delay to obtain the master station accurate time;
and the master station replies the accurate time of the master station to the terminal.
12. The method for patrol and timing of the multi-dimensional adaptive metering device for supporting the electric power spot market according to claim 11, wherein the multi-dimensional adaptive algorithm comprises determining a time delay, determining a weather delay and determining a temperature influence, wherein the calculation formula for determining the time delay is as follows:
W=[(T2-T1)-(T4-T3)]/2 + V;
wherein T1 is a transmission time of a device, T2 is a reception time of the master station, T3 is a response time of the master station, T4 is a reception time of the device, the device is the terminal or the electric meter, W is a time delay between the master station and the device, and V is another error value, which at least includes a terminal response time and a delay affected by a communication protocol;
wherein, when determining the weather delay, the weather delay is measured by an environment negative factor delay coefficient, which is:
K=F[A,B,C,D,E];
Y=W*K*T;
y is total delay, the total delay is time correction time determined according to the time delay, the weather delay and the temperature influence, and the master station can obtain a time value which is to be issued to the equipment according to the standard time and the total delay Y;
wherein K is an environmental negative factor delay coefficient, T is a temperature influence factor, A is a sunny influence factor, B is a cloudy influence factor, C is a rainy influence factor, D is a thunderstorm influence factor, E is a rain and snow influence factor, K is an environmental influence factor, and the environmental influence factor is one of A, B, C, D, E;
and measuring by using a temperature influence factor T when determining the temperature influence, wherein the value of the temperature influence factor T is 1 at 10-30 ℃.
CN202111398528.5A 2021-11-24 2021-11-24 Multi-dimensional self-adaptive metering device patrol and timing method for supporting electric power spot market Active CN113835336B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111398528.5A CN113835336B (en) 2021-11-24 2021-11-24 Multi-dimensional self-adaptive metering device patrol and timing method for supporting electric power spot market

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111398528.5A CN113835336B (en) 2021-11-24 2021-11-24 Multi-dimensional self-adaptive metering device patrol and timing method for supporting electric power spot market

Publications (2)

Publication Number Publication Date
CN113835336A true CN113835336A (en) 2021-12-24
CN113835336B CN113835336B (en) 2022-04-15

Family

ID=78971588

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111398528.5A Active CN113835336B (en) 2021-11-24 2021-11-24 Multi-dimensional self-adaptive metering device patrol and timing method for supporting electric power spot market

Country Status (1)

Country Link
CN (1) CN113835336B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114006674A (en) * 2021-12-31 2022-02-01 深圳市海清视讯科技有限公司 Time correction method, device, equipment and storage medium for attendance equipment
CN115291157A (en) * 2022-07-14 2022-11-04 国网山东省电力公司营销服务中心(计量中心) Electric energy meter residual life prediction method and system based on clock deviation
CN116540518A (en) * 2023-07-04 2023-08-04 云南电网有限责任公司 Method and system for judging clock out-of-step of relay protection device through remote wave recording

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105446130A (en) * 2015-12-16 2016-03-30 深圳智能表芯科技有限公司 Pointer type intelligent clock automatic regular time service method and time service system
CN111045319A (en) * 2019-12-12 2020-04-21 广西电网有限责任公司 Method for automatically correcting clock differentiation of electric energy meter
CN111756466A (en) * 2020-05-25 2020-10-09 江苏方天电力技术有限公司 District sensing terminal clock synchronization method and system based on district power failure event capture
CN112217591A (en) * 2020-09-18 2021-01-12 厦门安泰力达电气有限公司 Time correction method of multi-data-source voting mechanism based on mode principle

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105446130A (en) * 2015-12-16 2016-03-30 深圳智能表芯科技有限公司 Pointer type intelligent clock automatic regular time service method and time service system
US20190250567A1 (en) * 2015-12-16 2019-08-15 Shenzhen Smartmovt Data Services Co., Ltd. Automatic regular time service method and time service system for pointer type intelligent clock
CN111045319A (en) * 2019-12-12 2020-04-21 广西电网有限责任公司 Method for automatically correcting clock differentiation of electric energy meter
CN111756466A (en) * 2020-05-25 2020-10-09 江苏方天电力技术有限公司 District sensing terminal clock synchronization method and system based on district power failure event capture
CN112217591A (en) * 2020-09-18 2021-01-12 厦门安泰力达电气有限公司 Time correction method of multi-data-source voting mechanism based on mode principle

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114006674A (en) * 2021-12-31 2022-02-01 深圳市海清视讯科技有限公司 Time correction method, device, equipment and storage medium for attendance equipment
CN114006674B (en) * 2021-12-31 2022-04-01 深圳市海清视讯科技有限公司 Time correction method, device, equipment and storage medium for attendance equipment
CN115291157A (en) * 2022-07-14 2022-11-04 国网山东省电力公司营销服务中心(计量中心) Electric energy meter residual life prediction method and system based on clock deviation
CN115291157B (en) * 2022-07-14 2023-09-22 国网山东省电力公司营销服务中心(计量中心) Electric energy meter residual life prediction method and system based on clock deviation
CN116540518A (en) * 2023-07-04 2023-08-04 云南电网有限责任公司 Method and system for judging clock out-of-step of relay protection device through remote wave recording
CN116540518B (en) * 2023-07-04 2023-10-13 云南电网有限责任公司 Method and system for judging clock out-of-step of relay protection device through remote wave recording

Also Published As

Publication number Publication date
CN113835336B (en) 2022-04-15

Similar Documents

Publication Publication Date Title
CN113835336B (en) Multi-dimensional self-adaptive metering device patrol and timing method for supporting electric power spot market
CN110320791B (en) Clock management method and device for electricity consumption information acquisition system
US20100192001A1 (en) Device time adjustment for accurate data exchange
US20120232915A1 (en) System and method for monitoring a utility meter network
US10999382B2 (en) Multi-source deterministic oracle management
US9032237B2 (en) Using travel-time as means for improving the accuracy of Simple Network Time Protocol
US10080069B2 (en) Collection of telemetry data through a meter reading system
KR101701099B1 (en) Methods and apparatus for time synchronization and measurement of power distribution systems
US20210303721A1 (en) Data management server, data utilization server, and data circulation system
CN111131290B (en) Flow data processing method and device
DK2598843T3 (en) SECURING AND CHECKING THE SYSTEM TIME FOR A CHARGING STATION
CN111711192B (en) Real-time line loss analysis method and system for lean management of line loss of support station area
CN110677211B (en) Time synchronization method and device and power acquisition terminal
US20040181492A1 (en) Method and apparatus for managing utility usage
CN113783649B (en) Terminal timing method, system, electronic equipment and storage medium
CN113221151A (en) Data processing method and device based on block chain and storage medium
CN114691443A (en) Cross section data sending method and device, electronic equipment and storage medium
US20220303144A1 (en) Automated tamper detection of meter configuration parameters
CN112328463A (en) Log monitoring method and device
CN117424760B (en) Ammeter management method, control device and management device based on Internet of things
CN117478605B (en) Load balancing method, concentrator, ammeter and storage medium
US10965403B2 (en) Gap data collection for low energy devices
CN117014223B (en) Concentrator, data transmission method and device thereof and storage medium
CN111355624B (en) Self-adaptive equipment performance acquisition method and device
US20220173912A1 (en) Smart meter and method for the reliable provision of measurement data in a decentralized transaction database

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