Summary of the invention
In order to solve shortcoming and defect existing in the prior art, the present invention provides the ammeter clocks based on mean difference
Bearing calibration, for improving the accuracy of ammeter internal clock.
It is described the present invention provides the ammeter clock correction method based on mean difference in order to reach above-mentioned technical purpose
Ammeter clock correction method, comprising:
Networking is carried out to the ammeter group including target ammeter, obtains network when ammeter school;
Ammeter error amount when timing extraction ammeter school in network seeks the mean difference of whole ammeter error amounts;
When obtaining ammeter school in network whole ammeter types factory error mean, it is equal to obtain calibration in conjunction with mean difference
Value;
Calibration mean value is broadcasted in network at ammeter school, enables the ammeter that receives based on calibration mean value to itself clock
It is calibrated.
Optionally, the described couple of ammeter group including target ammeter carries out networking, obtains network when ammeter school, comprising:
Target ammeter is enabled wirelessly to broadcast target device coding;
Ammeter in broadcast radiation region stores the target device received coding, and broadcast is compiled comprising target device
Replying message including code, equipment of itself coding and current time;
Target ammeter and the ammeter that replies message of transmission is enabled to be constructed as network when ammeter school, it is every in network when ammeter school
Communication connection is established between a ammeter.
Optionally, the ammeter error amount when timing extraction ammeter school in network seeks the flat of whole ammeter error amounts
Equal difference, comprising:
On the basis of the current time of target ammeter, according to receive reply message in current time determine each sample
The ammeter error amount of this ammeter;
Based on the whole ammeter error amounts received, the mean difference for representing ammeter clock mean error is sought.
Optionally, in network when obtaining ammeter school whole ammeter types factory error mean, in conjunction with mean difference
Obtain calibration mean value, comprising:
From each ammeter equipment of itself coding of middle reading is replied message, corresponding ammeter type is determined based on equipment of itself coding
Number;
The factory error mean for obtaining each ammeter model is chosen minimum value from factory error mean and is asked with mean difference
With, obtain calibration mean value.
Optionally, the factory error mean for obtaining each ammeter model, comprising:
Factory error mean is read from the specification or exfactory inspection list of ammeter.
Technical solution provided by the invention has the benefit that
By carrying out average value solutions based on ammeter error currents whole in network, in the hope of average value as calibrator quantity
Ammeter in the whole network is calibrated.Since the step of extracting ammeter error amount is clocked flip, grasped by successive ignition
The error that can be effectively reduced ammeter in the whole network, the error after reduction are calibrated to the whole network ammeter, can be enabled in the whole network
Ammeter be in the lesser state of error, effectively deduct a percentage ammeter in clock accuracy.
Embodiment one
The present invention provides the ammeter clock correction methods based on mean difference, as shown in Figure 1, the ammeter clock correction
Method, comprising:
11, networking is carried out to the ammeter group including target ammeter, obtains network when ammeter school;
12, ammeter error amount when timing extraction ammeter school in network seeks the mean difference of whole ammeter error amounts;
13, when obtaining ammeter school in network whole ammeter types factory error mean, calibrated in conjunction with mean difference
Mean value;
14, calibration mean value is broadcasted in network at ammeter school, enable the ammeter that receives based on calibration mean value to itself
Clock is calibrated.
In an implementation, in order to realize the calibration to ammeter internal clock, the present embodiment proposes a kind of based on to ammeter progress
Networking, and then the method for carrying out the whole network meter calibration based on ammeter average error whole in power grid, due to after networking in network
Ammeter is large number of, therefore carries out average value solutions based on ammeter error currents whole in network, in the hope of average value conduct
Calibrator quantity calibrates the ammeter in the whole network.Since the step of extracting ammeter error amount is clocked flip, by multiple
Iterative operation can be effectively reduced the error of ammeter in the whole network, and the error after reduction is calibrated to the whole network ammeter, Neng Gouling
Ammeter in the whole network is in the lesser state of error, the accuracy of clock in ammeter of effectively deducting a percentage.
Specifically, networking step of the step 11 for network when executing ammeter school, specifically:
111, target ammeter is enabled wirelessly to broadcast target device coding;
112, the ammeter in broadcast radiation region stores the target device received coding, and broadcast is set comprising target
Replying message including standby coding, equipment of itself coding and current time;
113, target ammeter and the ammeter that replies message of transmission is enabled to be constructed as network when ammeter school, when ammeter school in network
Each ammeter between establish communication connection.
In an implementation, network when why establishing ammeter school, in order to large number of ammeter is obtained as far as possible, into
And it is chosen from these ammeters and needs most the ammeter being calibrated.
Mean difference when specific step 12 is used to obtain ammeter school in network, specifically:
121, on the basis of the current time of target ammeter, according to receive reply message in current time determine it is every
The ammeter error amount of a sample ammeter;
122, based on the whole ammeter error amounts received, the mean difference for representing ammeter clock mean error is sought
Value.
Network when in an implementation, based on the ammeter school constructed in abovementioned steps 11, after success networking, target ammeter can
It is collected into the current time of remaining ammeter in network.Intrinsic transmission on the basis of the time, when being superimposed ammeter school in network
It is poor that result and target ammeter after delay are made at the time of receiving return information, can obtain ammeter existing for each sample ammeter
Error amount.
Then the average of whole ammeter error amounts is sought based on ammeter error amount corresponding with each sample ammeter,
Obtain representing the mean difference of ammeter clock mean error.
Specific step 13 calibrates mean value for obtaining, specifically:
131, from each ammeter equipment of itself coding of middle reading is replied message, corresponding electricity is determined based on equipment of itself coding
Phenotype number;
132, the factory error mean for obtaining each ammeter model chooses minimum value and mean difference from factory error mean
Value summation obtains calibration mean value.
In an implementation, in order to improve the accuracy to ammeter clock alignment, mean difference is being determined according to return information
On the basis of also according to ammeter school when network in each ammeter model different the step of obtaining ammeters factory error mean.
The acquisition of factory error mean is according to itself setting in the return information in the meter calibration network hereinbefore referred to
Standby coding, encodes to obtain the corresponding factory error mean of each ammeter with reference to the equipment of itself of each ammeter.
In view of under prior art standard, the factory error of the even ammeter of different model is not much different, therefore is
Promotion calibration efficiency, directly choose in whole error means of acquisition minimum value, and by minimum value with hereinbefore propose
Mean difference summation, obtains the calibration mean value for calibration.
At the ammeter school set up in network, by target ammeter broadcast calibration mean value, so that other ammeters are according to reception
To calibration mean value itself is calibrated, complete reduce itself clocking error effect.
Optionally, the factory error mean for obtaining each ammeter model, comprising:
Factory error mean is read from the specification or exfactory inspection list of ammeter.
The present invention provides the ammeter clock correction methods based on mean difference, including to the electricity including target ammeter
Table group carries out networking, obtains network when ammeter school;Ammeter error amount when timing extraction ammeter school in network, seeks whole ammeters
The mean difference of error amount;When obtaining ammeter school in network whole ammeter types factory error mean, obtained in conjunction with mean difference
To calibration mean value;Calibration mean value is broadcasted in network at ammeter school, enable the ammeter that receives based on calibration mean value to itself
Clock is calibrated.By carrying out average value solutions based on ammeter error currents whole in network, in the hope of average value conduct
Calibrator quantity calibrates the ammeter in the whole network.Since the step of extracting ammeter error amount is clocked flip, by multiple
Iterative operation can be effectively reduced the error of ammeter in the whole network, and the error after reduction is calibrated to the whole network ammeter, Neng Gouling
Ammeter in the whole network is in the lesser state of error, the accuracy of clock in ammeter of effectively deducting a percentage.
Each serial number in above-described embodiment is for illustration only, the assembling for not representing each component or the elder generation in use process
Sequence afterwards.
The above description is only an embodiment of the present invention, is not intended to limit the invention, all in the spirit and principles in the present invention
Within, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.