CN105717476B - The method of testing and system of a kind of digital electric energy meter - Google Patents

The method of testing and system of a kind of digital electric energy meter Download PDF

Info

Publication number
CN105717476B
CN105717476B CN201610058952.8A CN201610058952A CN105717476B CN 105717476 B CN105717476 B CN 105717476B CN 201610058952 A CN201610058952 A CN 201610058952A CN 105717476 B CN105717476 B CN 105717476B
Authority
CN
China
Prior art keywords
data message
frame
random
initial data
test data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610058952.8A
Other languages
Chinese (zh)
Other versions
CN105717476A (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.)
Electric Power Research Institute of Yunnan Power System Ltd
Original Assignee
Electric Power Research Institute of Yunnan Power System Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Electric Power Research Institute of Yunnan Power System Ltd filed Critical Electric Power Research Institute of Yunnan Power System Ltd
Priority to CN201610058952.8A priority Critical patent/CN105717476B/en
Publication of CN105717476A publication Critical patent/CN105717476A/en
Application granted granted Critical
Publication of CN105717476B publication Critical patent/CN105717476B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R35/00Testing or calibrating of apparatus covered by the other groups of this subclass
    • G01R35/04Testing or calibrating of apparatus covered by the other groups of this subclass of instruments for measuring time integral of power or current

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a kind of method of testing of digital electric energy meter and system, passes through standard member Test data generation initial data message and standard metering result;Default totalframes and change frame number;It is continuous abnormal or random exception according to Network Abnormal type; initial data message is converted into follow-on test data message or random test data message; digital electric energy meter to be measured generates metric results to be measured according to above-mentioned test data message; by the comparison with standard metering result, the test of digital electric energy meter is completed.In above-mentioned test process, the network environment of digital electric energy meter can be simulated, by the way that quantitatively accurately the time response of control message, change are delayed, control frame losing, control to block, change quality word, the performance progress to digital electric energy meter is tested more comprehensive and accurately;And by analyzing influence of the heterogeneous networks abnormal conditions to digital electric energy meter performance, it is capable of the treatment mechanism of Quantitative Study digital electric energy meter.

Description

The method of testing and system of a kind of digital electric energy meter
Technical field
The present invention relates to power equipment technical field of measurement and test, a kind of method of testing more particularly to digital electric energy meter and System.
Background technology
As intelligent substation largely puts into operation, digital electric energy meter is widely applied.It is although digital in theory Formula electric energy meter advantages, the accuracy of transformer station's measuring system can be effectively improved, reduce the composition error of electric energy metered system.
But operating experience for many years shows digital electric energy meter there is also many deficiencies, such as digital electric energy meter is accurate Property depend on the stabilization of network transmission situation, the shake of network transmission easily causes the hydraulic performance decline of digital electric energy meter.Cause This for measuring confidence level under the abnormal conditions of digital electric energy meter, it is necessary to carry out comprehensive in-depth study and detection, research point The corresponding relation of the treatment mechanism of digital electric energy meter, ratio of error and error in dipping, assessment are digital in abnormal cases for analysis The metering reliability and confidence level of electric energy meter, and how the stability of digital electricity meter and reliable under test network abnormal conditions Degree is the technical problem of those skilled in the art's urgent need to resolve.
The content of the invention
The method of testing and system of a kind of digital electric energy meter are provided in the embodiment of the present invention, to solve in the prior art Digital electric energy meter the problem of being difficult to stability and reliability test.
In order to solve the above-mentioned technical problem, the embodiment of the invention discloses following technical scheme:
The embodiment of the invention discloses a kind of method of testing of digital electric energy meter, the method for testing comprises the following steps:
The initial data message being made up of according to standard source Test data generation initial data message frame, and standard metering As a result;
Default totalframes and change frame number;
Network Abnormal type is determined, the Network Abnormal type includes continuous abnormal and random exception;
If the Network Abnormal type is continuous abnormal, according to the totalframes and change frame number, by original datagram Text is converted to follow-on test data message;If the Network Abnormal to be random abnormal, according to the totalframes and changes frame number, Initial data message is converted into random test data message;
The follow-on test data message or the random test data message are sent to digital electric energy meter to be measured, it is raw Into metric results to be measured;The metric results to be measured and standard metering result are compared, completes test.
Preferably, it is described that initial data message is converted into follow-on test data message, including:
Generate the frame losing random number in [0, totalframes-change frame number -1] section;
Judge whether sending sequence number for current initial data message frame is in [frame losing random number, frame losing random number+changing frame Number) section in;
If it is, giving up current initial data message frame, and frame losing follow-on test data message is generated as described continuous Test data message.
Preferably, it is described that initial data message is converted into follow-on test data message, including:
Preset continuous centrifugal pump;
Generate the continuous Discrete Stochastic number in [0, totalframes-change frame number -1] section;
Judge whether sending sequence number for current initial data message frame is in [continuous Discrete Stochastic number, continuous Discrete Stochastic Number+change frame number) in section;
If it is, judge whether the continuous Discrete Stochastic number is odd number;If the continuous Discrete Stochastic number is odd number, Take and continuously bear centrifugal pump corresponding to the continuous centrifugal pump;If the continuous Discrete Stochastic number is even number, take it is described continuously from Dissipate continuous positive centrifugal pump corresponding to value;
According to the continuously negative centrifugal pump or the continuous positive centrifugal pump, it is corresponding to calculate the current initial data message frame of acquisition Continuous delay;
Discrete follow-on test data message is generated as the follow-on test data message according to the continuous delay.
Preferably, it is described that initial data message is converted into follow-on test data message, including:
Default continuously viscous frame number;
Consecutive intervals frame number corresponding to default initial data message frame;
Obstruction random number in generation [0, totalframes-change frame number * continuously glue frame number -1] section;
Judge whether sending sequence number in [obstruction random number-change frame number * continuously glues frame for current initial data message frame Number, block random number] in section;
If it is, judge sending sequence number and blocking random number difference to continuous viscous frame number for current initial data message frame Whether remainder is 0;If the remainder is 0, it is continuous to set consecutive intervals frame number corresponding to current initial data message frame Viscous frame number, otherwise, it is 0 to set the consecutive intervals frame number;
According to the consecutive intervals frame number sum before currently transmitted sequence number, obstruction follow-on test data message sequence number is calculated, And follow-on test data message is blocked as the follow-on test number according to the obstruction follow-on test data message serial number gencration According to message.
Preferably, it is described that initial data message is converted into follow-on test data message, including:
Generate the continuous quality random number in [0, totalframes-change frame number -1] section;
Judge whether sending sequence number in [continuous quality random number, continuous quality are random for current initial data message frame Number+change frame number] in section;
If it is, the raw value in current initial data message frame is replaced with into exceptional value, generation quality is continuously surveyed Data message is tried as the follow-on test data message.
Preferably, it is described that initial data message is converted into random test data message, including:
Sent corresponding to default initial data message frame and give up mark;
Judge to change whether frame number is less than totalframes/2;
If it is, all transmissions are given up into mark is arranged to 1;Generation be made up of the several random numbers of changing frame the One frame losing random number series, the random number in the first frame losing random number series are the natural number in [0, totalframes -1] section;Will The transmission of initial data message frame corresponding to the first frame losing random number series gives up mark and is arranged to 0;Judge current original number Give up according to the transmission of message frame and identify whether as 0, if it is, giving up current initial data message frame, if not, retaining current former Beginning data message frame, the first frame losing random test data message of generation is as the random test data message;
If not, all transmissions are given up into mark is arranged to 0;Generation is by the several random numbers of totalframes-changing frame Second frame losing random number series of composition, random number in the second frame losing random number series in [0, totalframes -1] section from So number;Mark is given up into the transmission of initial data message frame corresponding to the second frame losing random number series and is arranged to 1;Judge current The transmission of initial data message frame, which is given up, to be identified whether as 1, if it is, retaining current initial data message frame, if not, giving up Current initial data message frame, the second frame losing random test data message of generation is as the random test data message.
Preferably, it is described that initial data message is converted into random test data message, including:
Default Random Discrete value;
Judge to send to give up corresponding to current initial data message frame to identify whether as 1;
If it is, judge whether sent sequence number corresponding to current initial data message frame is odd number;If it is, take it is described with Centrifugal pump is born corresponding to machine centrifugal pump at random;If not, take random positive centrifugal pump corresponding to the Random Discrete value;
According to the centrifugal pump negative at random or the random positive centrifugal pump, it is corresponding to calculate the current initial data message frame of acquisition Random delay;
Discrete Stochastic test data message is generated as the random test data message according to the random delay.
Preferably, it is described that initial data message is converted into random test data message, including:
Default frame number viscous at random;
Generate the obstruction random number series of multiple random numbers composition, in the obstruction random number series random number number [1, become Change frame number] in section, the span of the random number in the obstruction random number series is [0, totalframes-random number number * is random Viscous frame number -1] in section;
Judge current initial data message frame send sequence number whether in [obstruction random number series in random number, block with Random number in machine ordered series of numbers+glue frame number at random] in section;
If it is, judge whether sending sequence number for current initial data message frame be random in random number series equal to blocking Number;If equal to random interval frame number corresponding to current initial data message frame is then set otherwise, to be set for viscous frame number at random The random interval frame number is 0;
According to the random interval frame number sum before currently transmitted sequence number, obstruction random test data message sequence number is calculated, And random test data message is blocked as the random test number according to the obstruction random test data message serial number gencration According to message.
Preferably, it is described that initial data message is converted into random test data message, including:
Generate random number corresponding with change frame number and the composition quality random number series in [0, totalframes -1] section;
Judge the random number whether being equal in the quality random number series that sends sequence number of current initial data message;
If it is, the raw value of current initial data message is replaced with into exceptional value, quality random test number is generated According to message as the random test data message.
The embodiment of the present invention additionally provides a kind of test system of digital electric energy meter, including standard source input unit, number Word powermeter verification instrumeter, message controller, high-precision analog table, protocol converter and host computer, wherein:
The standard source input unit includes standard source secondary side analog quantity three-phase voltage source and standard source secondary side is simulated Measure three-phase current source;The output end of the standard source secondary side analog quantity three-phase voltage source and the digital electricity meter tester The input of input and the high-precision analog table electrically connects;The standard source secondary side analog quantity three-phase current source it is defeated Go out end to electrically connect with the input of the digital electricity meter tester and the input of the high-end precision analog table;
The output end of the digital electricity meter tester is connected with the input of message controller, the message controller Output end be connected with the input of digital electricity meter to be measured, the output end of the digital electricity meter to be measured is connected with host computer Connect;The digital electricity meter tester, it is original for being made up of according to standard source Test data generation initial data message frame Data message;If the message controller is continuous abnormal for Network Abnormal type, according to default totalframes and change Frame number, initial data message is converted into follow-on test data message;If Network Abnormal is random abnormal, according to total frame Number and change frame number, random test data message is converted to by initial data message;By the follow-on test data message or institute Random test data message is stated to send to digital electric energy meter to be measured;The digital electricity meter to be measured generates metric results to be measured, And the metric results to be measured are sent to host computer;
The output end of the high-precision analog table is connected with the input of protocol converter, the protocol converter it is defeated Go out end with host computer to be connected;The high-precision analog table passes through according to standard source Test data generation standard metering result Sent after the conversion of protocol converter form to host computer.
From above technical scheme, the method for testing and system of digital electric energy meter provided in an embodiment of the present invention, lead to Cross standard member Test data generation initial data message and standard metering result;Default totalframes and change frame number;According to network Exception Type is continuous abnormal or random exception, and initial data message is converted into follow-on test data message or random test Data message, digital electric energy meter to be measured generate metric results to be measured according to above-mentioned test data message, by with standard metering As a result comparison, the test of digital electric energy meter is completed., can be to the network rings of digital electric energy meter in above-mentioned test process Border is simulated, and by quantitatively accurately controlling the time response of message, is changed delay size, is controlled frame losing, control blocking, changes Quality word etc., the performance progress to digital electric energy meter are tested more comprehensive and accurately;It is and different by analyzing heterogeneous networks Influence of the reason condition to digital electric energy meter performance, treatment mechanism, the mistake of analysis digital electric energy meter that can be qualitative and quantitative The corresponding relation of ratio and error in dipping, the metering reliability and confidence level of assessment digital electric energy meter by mistake.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, for those of ordinary skill in the art Speech, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of the method for testing of digital electric energy meter provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow sheet of follow-on test data message conversion method provided in an embodiment of the present invention;
Fig. 3 is the schematic flow sheet of another follow-on test data message conversion method provided in an embodiment of the present invention
Fig. 4 is the schematic flow sheet of another follow-on test data message conversion method provided in an embodiment of the present invention;
Fig. 5 is the schematic flow sheet of another follow-on test data message conversion method provided in an embodiment of the present invention;
Fig. 6 is a kind of schematic flow sheet of random test data message conversion method provided in an embodiment of the present invention;
Fig. 7 is the schematic flow sheet of another random test data message conversion method provided in an embodiment of the present invention;
Fig. 8 is the schematic flow sheet of another random test data message conversion method provided in an embodiment of the present invention;
Fig. 9 is the schematic flow sheet of another random test data message conversion method provided in an embodiment of the present invention;
Figure 10 is a kind of structural representation of the test system of digital electric energy meter provided in an embodiment of the present invention.
Embodiment
In order that those skilled in the art more fully understand the technical scheme in the present invention, below in conjunction with of the invention real The accompanying drawing in example is applied, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described implementation Example only part of the embodiment of the present invention, rather than whole embodiments.It is common based on the embodiment in the present invention, this area The every other embodiment that technical staff is obtained under the premise of creative work is not made, should all belong to protection of the present invention Scope.
It is a kind of schematic flow sheet of the method for testing of digital electric energy meter provided in an embodiment of the present invention referring to Fig. 1, institute Method of testing is stated to comprise the following steps:
Step S101:The initial data message that is made up of according to standard source Test data generation initial data message frame and Standard metering result.
During actual test, standard source secondary side analog voltage and standard source secondary side analog current are inputted, made For the standard source test data;By the standard source secondary side analog voltage of input and the sampling life of standard source secondary side analog current Into the initial data message being made up of initial data message frame, generation test and measuring result is used for digital electric energy meter to be measured; Standard source secondary side analog voltage and standard source secondary side analog current are also fed to high-precision analog table, and with described high-precision The metric results of degree simulation table are as standard metering result.Pass through the test and measuring result and the standard metering knot Fruit, and then test the accuracy of digital electric energy meter to be measured.
Step S102:Default totalframes and change frame number.
When user needs to simulate the situation of the frame of 1000 frame initial data message LOF 50, the totalframes is set to be 1000, the change frame number is 50;And counted according to totalframes, when the initial data message frame of processing reaches totalframes When, reorganize the new 1 group of totalframes initial data message frame generation test data message frame of control.In the specific implementation, Sending sequence number for message can also be set, and the message sends sequence number in section [0, totalframes -1], whenever the transmission When sequence number cycle is to 0, control initial data message frame generation test data message frame is reorganized.
Step S103:Determine Network Abnormal type.
The Network Abnormal type includes continuous abnormal and random exception.In the actual working environment of digital electric energy meter In, because the software and hardware characteristic and network transmission of signal source influence, the anomalous variation of digital quantity sampling value message is mainly shown as Message frame losing, the change of transmission spaced discrete degree, message obstruction cause annual report and data quality significance exception etc..Hardware fault Or software logic reason easily causes continuous abnormal;System entirety software and hardware characteristic or external disturbance easily cause random different Often.Therefore, above two network abnormal situation is provided in the method for testing of digital electric energy meter provided in an embodiment of the present invention Analogue simulation, Network Abnormal type can be determined for continuous abnormal or random different by upper computer selecting in the specific implementation Often, to be simulated to different network abnormal situations.
Step S104:It is continuous abnormal or random abnormal according to Network Abnormal type, and the totalframes and described Change frame number, initial data message is converted into follow-on test data message or random test data message.
If the Network Abnormal type is continuous abnormal, according to totalframes and change frame number, initial data message is turned Follow-on test data message is changed to, is a kind of follow-on test data message conversion method provided in an embodiment of the present invention referring to Fig. 2 Schematic flow sheet, the conversion method comprises the following steps:
Step S201:Generate the frame losing random number in [0, totalframes-change frame number -1] section.
The frame losing random number is produced by equiprobability random number extraction algorithm, the frame losing random number [0, totalframes- Change frame number -1] in section, the scope of certain frame losing random number may be limited to more a small range, for example (,) section [1, always Frame number-change frame number -2] in etc.;Method caused by random number is currently used production method, be will not be repeated here.
Step S202:Judge whether sending sequence number in [frame losing random number, frame losing are random for current initial data message frame Number+change frame number) section in.
Initial data message is made up of initial data message frame, and is transmitted in the form of message frame;It is former per frame Beginning data message frame is corresponding to send sequence number accordingly, such as sending sequence number for the initial data message frame arrived first at is defined as always The sending sequence number for initial data message frame that frame number -1, the second reaches is defined as totalframes -2, original for what is subsequently reached Data message frame number consecutively, until being sent sequence number corresponding to totalframes initial data message frame as 0, so far gather altogether Initial data message frame corresponding with totalframes is arrived;For the initial data message frame subsequently to arrive, again according to above-mentioned side Method, carry out a new round and send sequence number numbering.
Sending sequence number for current initial data message frame is compared, whether sending sequence number for current initial data message frame judged In [frame losing random number, frame losing random number+change frame number) section in.
Step S203:If it is, giving up current initial data message frame, and generate frame losing follow-on test data message conduct The follow-on test data message.
By step S202 judged result, if current initial data message frame sends sequence number in [frame losing is random Number, frame losing random number+change frame number) in section, then give up current initial data message frame;If it is not, then retain current original Data message frame.The initial data message frame after giving up processing is finally organized into frame losing follow-on test data message, with Analog simulation is carried out to frame losing phenomenon in the digital electric energy meter course of work, tests the measurement accuracy of digital electric energy meter.
In frame losing simulation process is carried out, the transmission parameter setting of frame losing follow-on test data message is as follows described in per frame:
Seq=dtCounter/ (count/1000)
Offset=dtCounter% (count/1000)
Wherein, dtCounter is with respect to second count value when original message data frame reaches, and count is FPGA statistics Unit interval count value, seq are message millisecond sequence number, offset be per frame between millisecond in relative time delay.
In order to emulate the initial data message spaced discrete situation from signal source, referring to Fig. 3, carried for the embodiment of the present invention The schematic flow sheet of another follow-on test data message conversion method supplied, the conversion method comprise the following steps:
Step S301:Preset continuous centrifugal pump.
The continuous centrifugal pump is preset, the span of the continuous centrifugal pump is [- 10,10].
Step S302:Generate the continuous Discrete Stochastic number in [0, totalframes-change frame number -1] section.
Call equiprobability random number extraction algorithm to produce 1 random number in [0, totalframes-change frame number -1] section to make For the continuous Discrete Stochastic number.
Step S303:Judge current initial data message send sequence number whether in [continuous Discrete Stochastic number, continuously from Dissipate random number+change frame number) in section.
Sending sequence number for current initial data message frame is compared, judges whether sending sequence number for current initial data message is located In [continuous Discrete Stochastic number, continuous Discrete Stochastic number+change frame number) in section.
Step S304:If it is, judging whether the Discrete Stochastic number is odd number;If the Discrete Stochastic number is strange Number, take and continuously bear centrifugal pump corresponding to the continuous centrifugal pump;If the continuous Discrete Stochastic number is even number, take described continuous Continuous positive centrifugal pump corresponding to centrifugal pump.
By step S303 judgement, if current sending sequence number for initial data message frame is in [continuous Discrete Stochastic Number, continuous Discrete Stochastic number+change frame number) in section, the parity of continuous Discrete Stochastic number is entered according to caused by step S302 Row is handled respectively;Specifically, when the continuous Discrete Stochastic number is odd number, it is considered as negative bias, that is, takes the continuous centrifugal pump Negative value is as the continuously negative centrifugal pump, for example, if the continuous centrifugal pump is 10, then the continuously negative centrifugal pump is -10; When the continuous centrifugal pump random number is even number, it is considered as positively biased, that is, takes continuous positive centrifugal pump corresponding to the continuous centrifugal pump, For example, if the continuous centrifugal pump is -10, then the continuous positive centrifugal pump is 10.
Step S305:According to the continuously negative centrifugal pump or the continuous positive centrifugal pump, calculate and obtain current initial data Continuously it is delayed corresponding to message frame.
In the specific implementation, the continuous delay is calculated according to below equation:
Δ t=Δ * count/1000000
T=count/f
Offset=n% (f/1000) * t+ Δs t
Wherein, n is to be sent sequence number corresponding to current initial data message frame, and f is the initial data message of host computer configuration Transmission frequency, Δ are that continuous centrifugal pump is the continuously negative centrifugal pump or the continuous positive centrifugal pump, and count is FPGA statistics Unit interval count value, t are averagely to send interval time per frame message to correspond to count value, and offset is described continuously to prolong When.
Step S306:Discrete follow-on test data message is generated as the follow-on test datagram according to the delay Text.
The delay obtained is calculated according to step S305, setting message frame sends rule, carrys out analog message frame period dispersion The very high harsh conditions such as arrival 1ms, and then the property to digital electric energy meter in the case of message spaced discrete degree height Energy.In the specific implementation, when initial data message frame is when sending sequence number in sample sequence, i.e. the hair of initial data message frame Send sequence number positioned at [continuous Discrete Stochastic number, continuous Discrete Stochastic number+change frame number) in section, except being set according to above-mentioned delay The transmission parameter of discrete follow-on test data message, the report of the discrete follow-on test data message is also calculated according to below equation Literary millisecond sequence number:
Seq=n/ (f/1000)
When initial data message frame is not at sample sequence, i.e. initial data message frame sends sequence number less than the company Continuous Discrete Stochastic number, or when sending sequence number more than or equal to continuous Discrete Stochastic number+change frame number of initial data message frame, The discrete follow-on test data message is generated according to following transmission parameter:
Seq=n/ (f/1000)
Offset=n% (f/1000) * t
According to the continuous delay of above-mentioned two situations and the message millisecond sequence number, discrete follow-on test data are generated Message is as the follow-on test data message.
In order to be emulated to message obstruction, referring to Fig. 4, the embodiment of the present invention additionally provides another follow-on test data The schematic flow sheet of message forwarding method, this method comprise the following steps:
Step S401:Default continuously viscous frame number.
Default continuously viscous frame number, the span of the continuous viscous frame number is [0, f/1000], and wherein f is original datagram Literary transmission frequency.
Step S402:Consecutive intervals frame number corresponding to default initial data message frame.
Corresponding consecutive intervals frame number, the number of the consecutive intervals frame number are set to the initial data message frame of each arrival It is worth for 1.
Step S403:Obstruction random number in generation [0, totalframes-change frame number * continuously glue frame number -1] section.
Call equiprobability random number extraction algorithm to produce 1 random number as the obstruction random number, the obstruction with The interval of machine number is [0, totalframes-change frame number * continuously glue frame number -1].
Step S404:Judge whether sending sequence number in [obstruction random number-changing frame for current initial data message frame Number * continuously glue frame number, block random number] in section.
Step S405:If it is, judge that (current initial data message send sequence number-block random number) % continuously glues frame number Remainder whether be 0;If the remainder is 0, consecutive intervals frame number corresponding to current initial data message frame is set to connect Continuous viscous frame number, otherwise, it is 0 to set the consecutive intervals frame number.
The sending sequence number of current initial data message frame glues frame number complementation after subtracting obstruction random number to continuous, judges remainder Whether it is 0;If the remainder is 0, consecutive intervals frame number corresponding to current initial data message frame is arranged to continuous viscous Frame number;Otherwise, if the remainder is not 0, consecutive intervals frame number corresponding to current initial data message frame is arranged to 0.
Step S406:According to the consecutive intervals frame number sum before currently transmitted sequence number, obstruction follow-on test data are calculated Test serial number, and follow-on test data message is blocked as the company according to the obstruction follow-on test data message serial number gencration Continuous test data message.
Consecutive intervals number corresponding to current initial data message frame, and the current initial data message frame are sent into sequence Consecutive intervals number corresponding to initial data message frame before number is added, and obtains consecutive intervals frame number sum;According to described continuous Frame number sum is spaced, calculates obstruction follow-on test data message sequence number, calculation formula is as follows:
Seq=sum/ (f/1000)
Wherein, sum is the consecutive intervals frame number sum, and smpinter [i] is corresponding to i-th of initial data message frame Consecutive intervals frame number, seq are obstruction follow-on test data message sequence number.
The delay of obstruction follow-on test data message frame is calculated according to below equation simultaneously:
Offset=n% (f/1000) * interval
Interval=count/f
Wherein, n, count and f implication are consistent with the description in above step, will not be repeated here.
It is another follow-on test datagram provided in an embodiment of the present invention referring to Fig. 5 to carry out quality abnormal emulation The schematic flow sheet of literary conversion method, this method comprise the following steps:
Step S501:Generate the continuous quality random number in [0, totalframes-change frame number -1] section.
Step S502:Judge current initial data message frame send sequence number whether in [continuous quality random number, continuously Quality random number+change frame number] in section.
Step S503:If it is, the raw value in current initial data message frame is replaced with into exceptional value, product are generated Matter follow-on test data message is as the follow-on test data message.
According to step S502 judgement, if current initial data message frame sends sequence number in [continuous quality is random Number, continuous quality random number+change frame number] in section, then raw value in current initial data message frame is replaced with different Constant value.In the specific implementation, initial data message frame carries the initial data such as voltage or electric current, according to exceptional value with respect to message First address deviant and data length, initial data is substituted with exceptional value;Using the initial data message frame after replacement as quality Follow-on test data message frame, and quality follow-on test data message conduct is generated by the quality follow-on test data message frame The follow-on test data message, to test performance of the digital electric energy meter when data quality exception occurs.
If to be random abnormal, according to totalframes and change frame number, initial data message is turned for the Network Abnormal type Random test data message is changed to, is a kind of random test data message conversion method provided in an embodiment of the present invention referring to Fig. 6 Schematic flow sheet, the conversion method comprises the following steps:
Step S601:Sent corresponding to default initial data message frame and give up mark.
Set corresponding send to give up mark to each initial data message frame, it is described send give up mark value be 0 or 1, certainly in the specific implementation, it can also be Bolean number TRUE or FALSE that mark is given up in the transmission.
Step S602:Judge to change whether frame number is less than totalframes/2.
Step S603:If it is, all transmissions are given up into mark is arranged to 1;Generation is several random by changing frame Array into the first frame losing random number series, the random number in the first frame losing random number series is in [0, totalframes -1] section Natural number;Mark is given up into the transmission of initial data message frame corresponding to the first frame losing random number series and is arranged to 0;Judge to work as The transmission of preceding initial data message frame, which is given up, to be identified whether as 0, if it is, giving up current initial data message frame, if not, protecting Current initial data message frame is stayed, the first frame losing random test data message of generation is as the random test data message.
If changing frame number is less than totalframes 1/2, give up mark by being sent corresponding to all initial data message frames Knowledge is arranged to 1;Call equiprobability random number generating algorithm produced out of natural number [0, totalframes -1] section changing frame it is several with Machine number, and the several random numbers of the changing frame are referred to as frame losing random number series;Take out and send sequence number from initial data message frame The initial data message frame consistent with the random number in the frame losing random number series, and the initial data message frame of taking-up is corresponding Transmission give up mark and be arranged to 0;If the transmission of current initial data message frame, which is given up, is identified as 0, give up current original number According to message frame, if the transmission of current initial data message frame, which is given up, is identified as 1, retain current initial data message frame;Most The initial data message frame Jing Guo above-mentioned processing is formed into frame losing random test data message afterwards, to test in random abnormal conditions Under to influence of the frame to digital electric energy meter performance.
Step S604:If not, all transmissions are given up into mark is arranged to 0;Generation is by totalframes-change frame number Second frame losing random number series of individual random number composition, the random number in the second frame losing random number series is [0, totalframes -1] area Interior natural number;Mark is given up into the transmission of initial data message frame corresponding to the second frame losing random number series and is arranged to 1; Judge that the transmission of current initial data message frame is given up to identify whether as 1, if it is, retaining current initial data message frame, such as Fruit is no, gives up current initial data message frame, the second frame losing random test data message of generation is as the random test data Message.
According to step S602 judgement, when changing frame number and being more than or equal to totalframes/2, mark is given up into all transmissions Knowledge is arranged to 0;Generate be made up of the several random numbers of totalframes-changing frame second lose why random number series, second frame losing with Random number in machine ordered series of numbers is the natural number in [0, totalframes -1] section;Sampling send sequence number with the second frame losing random number series The consistent initial data message frame of random number, and will be sent corresponding to the initial data message frame sampled out and give up mark and set For 1;Judge that the transmission of current initial data message frame is given up to identify whether as 1, if it is, retaining current initial data message Frame, if not, giving up current initial data message frame, the initial data message frame after above-mentioned processing is organized into second loses Frame random test data message, and sent as random test data message to digital electric energy meter to be measured, with to digital electric energy Table carries out data frame losing test under random abnormal conditions.
In order to detect the influence of spaced discrete degree to measuring accuracy under random abnormal conditions of data digital electric energy meter, It is another kind provided in an embodiment of the present invention referring to Fig. 7 on the basis of the conversion method of random test data message shown in Fig. 6 The schematic flow sheet of random test data message conversion method, the conversion method comprise the following steps:
Step S701:Default Random Discrete value.
The Random Discrete value span is [- 10,10].
Step S702:Judge to send to give up corresponding to current original initial data message frame to identify whether as 1.
Step S703:If it is, judge whether sent sequence number corresponding to current initial data message frame is odd number;If It is to take to bear centrifugal pump corresponding to the Random Discrete value at random;If not, take random just discrete corresponding to the Random Discrete value Value.
According to step S702 judged result, 1 is identified as if sending to give up corresponding to current initial data message frame, is entered One step judges whether sent sequence number corresponding to current initial data message frame is odd number, if it is, be considered as negative bias, that is, take it is described with Centrifugal pump is born corresponding to machine centrifugal pump at random, for example, if the Random Discrete value value is -2, then still keeps described random Negative centrifugal pump is -2;If sent sequence number corresponding to current initial data message frame as even number, it is considered as positively biased, that is, takes described random Random positive centrifugal pump corresponding to centrifugal pump, for example, if the Random Discrete value is -2, then the random positive centrifugal pump value is 2。
Step S704:According to the centrifugal pump negative at random or random positive centrifugal pump, calculate and obtain current initial data message Random delay corresponding to frame.
Random delay corresponding to current initial data message frame, characterize current initial data message frame with by sending sequence number down Delay between one original message frame;In the specific implementation, according to step S702 judged result, if current initial data Send to give up corresponding to message frame and is identified as 1, then calculated and described prolonged at random according to the centrifugal pump negative at random or random arrangement value When, the calculation formula of the random delay is consistent with the formula in step S305, will not be repeated here.
Step S705:Discrete Stochastic test data message is generated as the random test data according to the random delay Message.
The Discrete Stochastic test data message is generated according to the result of calculation of the random delay, when the transmission is given up When being identified as 1, the transmission parameter of the Discrete Stochastic test data message passes through initial data in step S305 and step S306 The calculation formula to send sequence number during in sample sequence of message frame is calculated;It is described when the transmission, which is given up, is identified as 0 When the transmission parameter of Discrete Stochastic test data message is not at sample sequence by original data message frame in step S306 Calculation formula is calculated.By the Discrete Stochastic test data message that above-mentioned transmission parameter is drawn as the random test data Message.
In the message obstruction under simulating random abnormal conditions, referring to Fig. 8, for it is provided in an embodiment of the present invention another with The schematic flow sheet of machine test data message forwarding method, this method comprise the following steps:
Step S801:Default frame number viscous at random.
The span of the random viscous frame number is consistent with step S401 span, will not be repeated here.
Step S802:The obstruction random number series of multiple random number compositions is generated, it is described to block the random several of random number series Number in [1, change frame number] section, the span of the random number in the obstruction random number series for [0, totalframes-random number Number * glues frame number -1 at random] in section.
The obstruction random number series is produced by way of repeatedly calling equiprobability random number extraction algorithm.
Step S803:Judge whether sending sequence number in for current initial data message frame [in obstruction random number series at random Number, block random number+at random in random number series and glue frame number] in section.
Enter line range to each random number element in obstruction random number series to judge, judge current initial data message frame Send sequence number and whether be in above-mentioned section.
Step S804:If it is, judging whether sending sequence number for current initial data message frame is equal to obstruction random number series In random number;If equal to random interval frame number corresponding to current initial data message frame is then set for viscous frame number at random;It is no Then, it is 0 to set the random interval frame number.
Step S805:According to the random interval frame number sum before currently transmitted sequence number, random test data message is calculated Sequence number, and according to the random blocking test data message of the random test data message serial number gencration as the random test number According to message.
The transmission parameter of the random blocking test data message will not be repeated here as described in step S406.
It is provided in an embodiment of the present invention another referring to Fig. 9 to carry out the emulation of the quality abnormal under random abnormal conditions The schematic flow sheet of kind random test data message conversion method, this method comprise the following steps:
Step S901:Generate the random number corresponding with change frame number in [0, totalframes -1] section and composition quality is random Ordered series of numbers.
Step S902:Judge current initial data message send sequence number whether be equal to the quality random number series in Machine number.
Step S903:If it is, the raw value of current initial data message replaced with into exceptional value, generation quality with Machine test data message is as the random test data message.
The detailed process that raw value is replaced with to exceptional value can will not be repeated here referring to step S503.
It should be noted that it is determined that after the Network Abnormal type, can be generated respectively for different network states Separate follow-on test data message or random test data message.For convenience, it is for network state herein The situation of continuous abnormal, and generate the follow-on test data message and be described in detail.When user is only to network frame losing feelings When condition is simulated, frame losing follow-on test data message is generated according to step S201 to S203 description, or user is to network When other network abnormal situations such as discrete, message obstruction and message quality abnormal are simulated, corresponding discrete company is generated respectively Continuous test data message, obstruction follow-on test data message and quality follow-on test data message.In embodiments of the present invention, In order to which network abnormal situation is often more complicated and changeable, network frame losing, network is discrete, message blocks and message quality abnormal is past It is past interrelated, therefore more complicated follow-on test data message can be generated according to above-mentioned steps, such as generation network be lost The discrete follow-on test data message of frame+network, can first generate frame losing follow-on test data message in the specific implementation, and right The delay of the frame losing follow-on test data message frame carries out discretization so as to generate the discrete follow-on test data message;Together Sample can also analog network frame losing+message quality abnormal network condition, such as first generate frame losing follow-on test data message, and Carry out stochastical sampling generation quality follow-on test data message again to frame losing follow-on test data message.
Step S105:The follow-on test data message or the random test data message are sent to be measured digital Electric energy meter, generate metric results to be measured;The metric results to be measured and standard metering result are compared, completes test.
Caused follow-on test data message or random test data message in step S104 are sent to be measured digital Electric energy meter, the digital electric energy meter to be measured carry out metering according to above-mentioned test data message and generate metric results to be measured, as Test data;The metric results to be measured are compared with standard metering result, may thereby determine that in network abnormal situation Under, the accuracy of digital electric energy meter to be measured is assessed, and by long term monitoring and the statistics of metric results, divides The corresponding relation of the treatment mechanism of digital electric energy meter, ratio of error and error in dipping, assessment are digital in abnormal cases for analysis The metering reliability and confidence level of electric energy meter.
It should be noted that during actual test, user's control is by Network Abnormal replying state to the normal shape of network State, to meet to carry out contrast test, or the demand for coordinating other testers to be tested.When actually implementing, Ke Yitong Cross and set the totalframes and the mode of change frame number to be configured, such as it is 0 to set totalframes and change frame number, then tests When network state it is normal;Or one selection window is set in host computer using current common method, choose whether opening network Abnormal simulation or network state are normal.
As seen from the above-described embodiment, the method for testing of digital electric energy meter provided in an embodiment of the present invention, standard member is passed through Test data generation initial data message and standard metering result;Default totalframes and change frame number;According to Network Abnormal type For continuous abnormal or random abnormal, initial data message is converted into follow-on test data message or random test datagram Text, digital electric energy meter to be measured generate metric results to be measured according to above-mentioned test data message, by with standard metering result Compare, complete the test of digital electric energy meter.In above-mentioned test process, the network environment of digital electric energy meter can be carried out Simulation, by quantitatively accurately controlling the time response of message, change delay size, control frame losing, control blocking, change quality word Deng carrying out testing to the performance of digital electric energy meter more comprehensive and accurately;And by analyzing heterogeneous networks abnormal conditions Influence to digital electric energy meter performance, the treatment mechanism of analysis digital electric energy meter that can be qualitative and quantitative, ratio of error Corresponding relation, the metering reliability and confidence level of assessment digital electric energy meter with error in dipping.
The description of embodiment of the method more than, it is apparent to those skilled in the art that the present invention can Realized by the mode of software plus required general hardware platform, naturally it is also possible to by hardware, but in many cases the former It is more preferably embodiment.Based on such understanding, technical scheme substantially makes tribute to prior art in other words The part offered can be embodied in the form of software product, and the computer software product is stored in a storage medium, bag Some instructions are included to so that a computer equipment (can be personal computer, server, or network equipment etc.) performs The all or part of step of each embodiment methods described of the present invention.And foregoing storage medium includes:Read-only storage (ROM), random access memory (RAM), magnetic disc or CD etc. are various can be with the medium of store program codes.
Corresponding with a kind of method of testing embodiment of digital electric energy meter provided by the invention, present invention also offers one The test system of kind digital electric energy meter.
It is a kind of structural representation of the test system of digital electric energy meter provided in an embodiment of the present invention referring to Figure 10, The test system include standard source input unit 1, digital electricity meter tester 2, message controller 3, high-precision analog table 4, Protocol converter 5 and host computer 6.
Wherein, the standard source input unit 1 includes standard source secondary side analog quantity three-phase voltage source 11 and standard source two Secondary side form analog quantity three-phase current source 12;The output end of the standard source secondary side analog quantity three-phase voltage source 11 and the numeral electricity The input of energy table tester 2 and the input of the high-precision analog table 4 electrically connect;The standard source secondary side analog quantity The input of the output end in three-phase current source 12 and the digital electricity meter tester 2 and the high-end precision analog table 4 it is defeated Enter end to electrically connect.The standard source input unit 1 is used to provide test standard source secondary side analog quantity three-phase voltage and mark Quasi- source secondary side analog quantity three-phase current.
The output end of the digital electricity meter tester 2 is connected with the input of message controller 3, the message control The output end of device 3 is connected with the input of digital electricity meter 7 to be measured, the output end of the digital electricity meter 7 to be measured with it is upper Machine 6 is connected;The digital electricity meter tester 2, for according to standard source Test data generation by initial data message frame group Into initial data message;If the message controller 3 is continuous abnormal for Network Abnormal type, according to default total frame Number and change frame number, follow-on test data message is converted to by initial data message;If Network Abnormal is random exception, according to The totalframes and change frame number, random test data message is converted to by initial data message;By the follow-on test data Message or the random test data message are sent to digital electric energy meter to be measured;The digital electricity meter to be measured 7 is according to described Follow-on test data message or the random test data message, generate metric results to be measured, and by the metric results to be measured Send to host computer 6.In the specific implementation, the message controller 3 sends to digital electric energy meter 7 to be measured and met The follow-on test data message or random test data message of IEC61850-9-2 stipulations.
The output end of the high-precision analog table 4 is connected with the input of protocol converter 5, the protocol converter 5 Output end be connected with host computer;The high-precision analog table 4 according to standard source Test data generation standard metering result, and Sent after the conversion of the form of protocol converter 5 to host computer 6.The high-precision analog table receives and comes from standard source input unit Standard source secondary side analog quantity three-phase voltage and standard source secondary side analog quantity three-phase current, pass through 485 communication 645 stipulations will Energy data is transferred to protocol converter 5, and be converted to IEC61850 stipulations by protocol converter 5 uploads to host computer through interchanger 6, in this, as the standard metering result of electric energy metrical.
As seen from the above-described embodiment, the test system of digital electric energy meter provided in an embodiment of the present invention, including standard source Input unit 1, digital electricity meter tester 2, message controller 3, high-precision analog table 4, protocol converter 5 and host computer 6;Institute The reception system Plays source secondary side analog quantity three-phase voltage of high-precision analog table 4 and three-phase current are stated, and passes through 485 communications Energy data is transferred to protocol converter 5 by 645 stipulations, and host computer is uploaded to by IEC61850 stipulations by protocol converter 5 6, in this, as the normal data of electric energy metrical;Digital electric energy meter to be measured receives passes through report from digital electricity meter tester 2 The IEC61850-9-2 data that literary controller 3 is sent, and transfer data to host computer 6;Wherein digital electricity meter tester 2 connects Receipts come from system standard source secondary side analog quantity three-phase voltage and three-phase current, by message controller 3 to digital electric energy meter The IEC61850-9-2 messages that tester 2 gives digital electric meter 7 to be measured carry out message packet loss, dispersion, obstruction and quality Abnormal quantitative control, to detect influence of the various Network Abnormals to digital electric energy meter performance, analysis counts in abnormal cases The treatment mechanism of word formula electric energy meter, the corresponding relation of ratio of error and error in dipping, the metering of assessment digital electric energy meter are reliable Property and confidence level.
For convenience of description, it is divided into various units during description apparatus above with function to describe respectively.Certainly, this is being implemented The function of each unit can be realized in same or multiple softwares and/or hardware during invention.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment Divide mutually referring to what each embodiment stressed is the difference with other embodiment.Especially for device or For system embodiment, because it is substantially similar to embodiment of the method, so describing fairly simple, related part is referring to method The part explanation of embodiment.Apparatus and system embodiment described above is only schematical, wherein the conduct The unit that separating component illustrates can be or may not be it is physically separate, can be as the part that unit is shown or Person may not be physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can root Factually border needs to select some or all of module therein realize the purpose of this embodiment scheme.Ordinary skill Personnel are without creative efforts, you can to understand and implement.
It should be noted that herein, the relational terms of such as " first " and " second " or the like are used merely to one Individual entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operate it Between any this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant are intended to Cover including for nonexcludability, so that process, method, article or equipment including a series of elements not only include those Key element, but also the other element including being not expressly set out, or also include for this process, method, article or set Standby intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Other identical element in the process including the key element, method, article or equipment also be present.
Described above is only the embodiment of the present invention, is made skilled artisans appreciate that or realizing this hair It is bright.A variety of modifications to these embodiments will be apparent to one skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The most wide scope caused.

Claims (10)

1. a kind of method of testing of digital electric energy meter, it is characterised in that comprise the following steps:
The initial data message being made up of according to standard source Test data generation initial data message frame, and standard metering knot Fruit;
Default totalframes and change frame number;
Network Abnormal type is determined, the Network Abnormal type includes continuous abnormal and random exception;
If the Network Abnormal type is continuous abnormal, according to the totalframes and change frame number, initial data message is turned It is changed to follow-on test data message;If the Network Abnormal is random abnormal, according to the totalframes and change frame number, by original Beginning data message is converted to random test data message;
The follow-on test data message or the random test data message are sent to digital electric energy meter to be measured, generation and treated Survey metric results;The metric results to be measured and standard metering result are compared, completes test.
2. the method for testing of digital electric energy meter according to claim 1, it is characterised in that described by initial data message Follow-on test data message is converted to, including:
Generate the frame losing random number in [0, totalframes-change frame number -1] section;
Judge current initial data message frame send sequence number whether in [frame losing random number, frame losing random number+change frame number) Section in;
If it is, giving up current initial data message frame, and frame losing follow-on test data message is generated as the follow-on test Data message.
3. the method for testing of digital electric energy meter according to claim 1, it is characterised in that described by initial data message Follow-on test data message is converted to, including:
Preset continuous centrifugal pump;
Generate the continuous Discrete Stochastic number in [0, totalframes-change frame number -1] section;
Judge whether sending sequence number for current initial data message frame is in [continuous Discrete Stochastic number, continuous Discrete Stochastic number+change Change frame number) in section;
If it is, judge whether the continuous Discrete Stochastic number is odd number;If the continuous Discrete Stochastic number is odd number, institute is taken State and centrifugal pump is continuously born corresponding to continuous centrifugal pump;If the continuous Discrete Stochastic number is even number, the continuous centrifugal pump is taken Corresponding continuous positive centrifugal pump;
According to the continuously negative centrifugal pump or the continuous positive centrifugal pump, calculate and connect corresponding to the current initial data message frame of acquisition When reneing;
Discrete follow-on test data message is generated as the follow-on test data message according to the continuous delay.
4. the method for testing of digital electric energy meter according to claim 1, it is characterised in that described by initial data message Follow-on test data message is converted to, including:
Default continuously viscous frame number;
Consecutive intervals frame number corresponding to default initial data message frame;
Obstruction random number in generation [0, totalframes-change frame number * continuously glue frame number -1] section;
Judge current initial data message frame send sequence number whether in [obstruction random number-change frame number * continuously glue frame number, Block random number] in section;
If it is, judge sending sequence number and blocking remainder of the random number difference to continuous viscous frame number for current initial data message frame Whether it is 0;If the remainder is 0, consecutive intervals frame number corresponding to current initial data message frame is set for continuously viscous frame Number, otherwise, it is 0 to set the consecutive intervals frame number;
According to the consecutive intervals frame number sum before currently transmitted sequence number, obstruction follow-on test data message sequence number, and root are calculated Block follow-on test data message as the follow-on test datagram according to the obstruction follow-on test data message serial number gencration Text.
5. the method for testing of digital electric energy meter according to claim 1, it is characterised in that described by initial data message Follow-on test data message is converted to, including:
Generate the continuous quality random number in [0, totalframes-change frame number -1] section;
Judge whether sending sequence number for current initial data message frame is in [continuous quality random number, continuous quality random number+change Change frame number] in section;
If it is, the raw value in current initial data message frame is replaced with into exceptional value, quality follow-on test number is generated According to message as the follow-on test data message.
6. the method for testing of digital electric energy meter according to claim 1, it is characterised in that described by initial data message Random test data message is converted to, including:
Sent corresponding to default initial data message frame and give up mark;
Judge to change whether frame number is less than totalframes/2;
If it is, all transmissions are given up into mark is arranged to 1;First be made up of the several random numbers of changing frame is generated to lose Frame random number series, the random number in the first frame losing random number series are the natural number in [0, totalframes -1] section;By described in The transmission of initial data message frame corresponding to first frame losing random number series gives up mark and is arranged to 0;Judge current original datagram The transmission of literary frame, which is given up, to be identified whether as 0, if it is, giving up current initial data message frame, if not, retaining current original number According to message frame, the first frame losing random test data message of generation is as the random test data message;
If not, all transmissions are given up into mark is arranged to 0;Generation is made up of the several random numbers of totalframes-changing frame The second frame losing random number series, the random number in the second frame losing random number series is the nature in [0, totalframes -1] section Number;Mark is given up into the transmission of initial data message frame corresponding to the second frame losing random number series and is arranged to 1;Judge current former The transmission of beginning data message frame, which is given up, to be identified whether as 1, if it is, retaining current initial data message frame, is worked as if not, giving up Preceding initial data message frame, the second frame losing random test data message of generation is as the random test data message.
7. the method for testing of digital electric energy meter according to claim 6, it is characterised in that described by initial data message Random test data message is converted to, including:
Default Random Discrete value;
Judge to send to give up corresponding to current initial data message frame to identify whether as 1;
If it is, judge whether sent sequence number corresponding to current initial data message frame is odd number;If it is, take it is described at random from Dissipate and bear centrifugal pump corresponding to value at random;If not, take random positive centrifugal pump corresponding to the Random Discrete value;
According to the centrifugal pump negative at random or the random positive centrifugal pump, calculate obtain corresponding to current initial data message frame with Machine is delayed;
Discrete Stochastic test data message is generated as the random test data message according to the random delay.
8. the method for testing of digital electric energy meter according to claim 1, it is characterised in that described by initial data message Random test data message is converted to, including:
Default frame number viscous at random;
Generate the obstruction random number series of multiple random numbers composition, in the obstruction random number series random number number [1, changing frame Number] in section, the span of the random number in the obstruction random number series is [0, totalframes-random number number * glue frame at random Several -1] in section;
Judge whether sending sequence number in [random number, blocks random number in obstruction random number series for current initial data message frame Random number in row+glue frame number at random] in section;
If it is, judge the random number whether being equal in obstruction random number series that sends sequence number of current initial data message frame;Such as Fruit is equal to, then sets random interval frame number corresponding to current initial data message frame as viscous frame number at random, otherwise, set it is described with Machine interval frame number is 0;
According to the random interval frame number sum before currently transmitted sequence number, obstruction random test data message sequence number, and root are calculated Block random test data message as the random test datagram according to the obstruction random test data message serial number gencration Text.
9. the method for testing of digital electric energy meter according to claim 1, it is characterised in that described by initial data message Random test data message is converted to, including:
Generate random number corresponding with change frame number and the composition quality random number series in [0, totalframes -1] section;
Judge the random number whether being equal in the quality random number series that sends sequence number of current initial data message;
If it is, the raw value of current initial data message is replaced with into exceptional value, quality random test datagram is generated Text is used as the random test data message.
10. a kind of test system of digital electric energy meter, it is characterised in that including standard source input unit, digital electricity meter school Instrument, message controller, high-precision analog table, protocol converter and host computer are tested, wherein:
The standard source input unit includes standard source secondary side analog quantity three-phase voltage source and standard source secondary side analog quantity three Phase current source;The output end of the standard source secondary side analog quantity three-phase voltage source and the input of the digital electricity meter tester The input of end and the high-precision analog table electrically connects;The output end in the standard source secondary side analog quantity three-phase current source Electrically connected with the input of the digital electricity meter tester and the input of the high-precision analog table;
The output end of the digital electricity meter tester is connected with the input of message controller, the message controller it is defeated Go out end with the input of digital electricity meter to be measured to be connected, the output end of the digital electricity meter to be measured is connected with host computer; The digital electricity meter tester, for the initial data being made up of according to standard source Test data generation initial data message frame Message;If the message controller is continuous abnormal for Network Abnormal type, according to default totalframes and change frame number, Initial data message is converted into follow-on test data message;If Network Abnormal is random abnormal, according to the totalframes and Change frame number, initial data message is converted into random test data message;By the follow-on test data message or it is described with Machine test data message is sent to digital electric energy meter to be measured;The digital electricity meter to be measured generates metric results to be measured, and will The metric results to be measured are sent to host computer;
The output end of the high-precision analog table is connected with the input of protocol converter, the output end of the protocol converter It is connected with host computer;The high-precision analog table passes through stipulations according to standard source Test data generation standard metering result Sent after the conversion of converter form to host computer.
CN201610058952.8A 2016-01-28 2016-01-28 The method of testing and system of a kind of digital electric energy meter Active CN105717476B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610058952.8A CN105717476B (en) 2016-01-28 2016-01-28 The method of testing and system of a kind of digital electric energy meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610058952.8A CN105717476B (en) 2016-01-28 2016-01-28 The method of testing and system of a kind of digital electric energy meter

Publications (2)

Publication Number Publication Date
CN105717476A CN105717476A (en) 2016-06-29
CN105717476B true CN105717476B (en) 2018-03-30

Family

ID=56154236

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610058952.8A Active CN105717476B (en) 2016-01-28 2016-01-28 The method of testing and system of a kind of digital electric energy meter

Country Status (1)

Country Link
CN (1) CN105717476B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106788924B (en) * 2017-03-13 2019-08-30 贵州电网有限责任公司电力科学研究院 A kind of message generation system and its production method realized sampling value message and lose control output function
CN112491610B (en) * 2020-11-25 2023-06-20 云南电网有限责任公司电力科学研究院 FT3 message anomaly simulation test method for direct current protection

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0645636A1 (en) * 1989-09-25 1995-03-29 General Electric Company Electronic watthour meter
CN102103199A (en) * 2009-12-22 2011-06-22 华北电力科学研究院有限责任公司 Digital signal generating device and method based on three-phase power system model
CN102413004A (en) * 2010-09-26 2012-04-11 北京旋极信息技术股份有限公司 Fault injection method and device
CN104198980A (en) * 2014-08-29 2014-12-10 国家电网公司 Accuracy evaluation system for digital electric energy meter
CN104198808A (en) * 2014-09-03 2014-12-10 国家电网公司 Frame-dropping error code delay error calculation method, device and system in electric energy measurement
CN104297717A (en) * 2014-11-03 2015-01-21 青岛世泽电子仪表有限公司 Electric energy meter correction method and system and electric energy meter
CN204331019U (en) * 2015-01-06 2015-05-13 国家电网公司 A kind of digital electricity meter IEC61850 compliance test system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6954706B2 (en) * 2003-08-20 2005-10-11 Hewlett-Packard Development Company, L.P. Method for measuring integrated circuit processor power demand and associated system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0645636A1 (en) * 1989-09-25 1995-03-29 General Electric Company Electronic watthour meter
CN102103199A (en) * 2009-12-22 2011-06-22 华北电力科学研究院有限责任公司 Digital signal generating device and method based on three-phase power system model
CN102413004A (en) * 2010-09-26 2012-04-11 北京旋极信息技术股份有限公司 Fault injection method and device
CN104198980A (en) * 2014-08-29 2014-12-10 国家电网公司 Accuracy evaluation system for digital electric energy meter
CN104198808A (en) * 2014-09-03 2014-12-10 国家电网公司 Frame-dropping error code delay error calculation method, device and system in electric energy measurement
CN104297717A (en) * 2014-11-03 2015-01-21 青岛世泽电子仪表有限公司 Electric energy meter correction method and system and electric energy meter
CN204331019U (en) * 2015-01-06 2015-05-13 国家电网公司 A kind of digital electricity meter IEC61850 compliance test system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种用于智能变电站数字化电能表的高精度电能算法;宋晓林等;《电测与仪表》;20151110;第52卷(第21期);第60-67页 *

Also Published As

Publication number Publication date
CN105717476A (en) 2016-06-29

Similar Documents

Publication Publication Date Title
CN110417011B (en) Online dynamic security assessment method based on mutual information and iterative random forest
CN106548021B (en) A kind of electronic mutual inductor error state appraisal procedure based on higher-dimension random matrix
CN108764666A (en) Economic loss evaluation method temporarily drops in the user based on multimass loss function synthesis
CN104218570A (en) Method and system for online evaluating overall measuring errors of electric energy measuring device
CN109274097A (en) A kind of electric power system transient stability method for situation assessment based on Random Matrices Theory
CN112199367A (en) Long-time scale power balance check and big data analysis method and system
CN105717476B (en) The method of testing and system of a kind of digital electric energy meter
CN102654937A (en) IEC61850 detection platform of power quality monitoring terminal and detection method thereof
CN116800517A (en) Data acquisition intelligent management system based on data analysis
CN106405280B (en) A kind of intelligent substation on-line monitoring parameter trend method for early warning
CN106257511A (en) A kind of grid faults characteristics quality testing method
CN110221138A (en) A kind of automatic test approach and system for protective relaying device
CN100440200C (en) Method for correcting gross error and random error of measurement data
CN107862391A (en) A kind of equipment operation condition test system based on cloud computing
CN104063577A (en) Method for forecasting characteristic gas development tendency in transformer oil based on generalized recurrent neural network
CN113985339A (en) Error diagnosis method, system, equipment and storage medium for intelligent electric meter
CN105676157A (en) WAMS low-frequency oscillation identification function test system and WAMS low-frequency oscillation identification function test method
CN107479007A (en) A kind of power supply module test system and method
CN205608171U (en) Digital electric energy measurement system's testing arrangement
CN117434440B (en) Automatic detection method and system for measuring switch
Vondrouš et al. Testing methodology for performance evaluation of communication systems for Smart Grid
CN108988347A (en) A kind of adjusting method and system that power grid Transient Voltage Stability sample set classification is unbalance
zu Westerhausen et al. Reliability Analysis for Sensor Networks and their Data Acquisition: A Systematic Literature Review
CN105044657B (en) Gate energy meter monitoring system
CN204925371U (en) Many analog output's of standard source electric energy quality on -line monitoring device's test system

Legal Events

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