CN104464247A - Method for reducing time synchronization error of public network of concentrator - Google Patents
Method for reducing time synchronization error of public network of concentrator Download PDFInfo
- Publication number
- CN104464247A CN104464247A CN201410768022.2A CN201410768022A CN104464247A CN 104464247 A CN104464247 A CN 104464247A CN 201410768022 A CN201410768022 A CN 201410768022A CN 104464247 A CN104464247 A CN 104464247A
- Authority
- CN
- China
- Prior art keywords
- time
- concentrator
- heartbeat frame
- frame
- public network
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a method for reducing the time synchronization error of a public network of a concentrator. The method comprises the following steps: the concentrator packs current moment to a heartbeat frame which is sent to a main computer; the heartbeat frame received by the main computer is fed back to the concentrator; the concentrator calculates a difference value of moments when the same heartbeat frame is sent and received; if the difference value is less than or equal to a threshold value, the difference value is put in a time delay queue and if an interpolation value is greater than the threshold value, the difference value is abandoned, the average value of each queue unit in the time delay queue is calculated and half of the average value is taken as compensation time; a master station packs current main computer time to a time synchronization command and the time synchronization command is sent to the concentrator; and after the concentrator receives the time synchronization command of the master station, the compensation time added with the main computer time in the time synchronization command is taken as standard time and a clock of the concentrator is corrected based on the standard time. The time synchronization error of the public network of the concentrator provided by the invention is shortened to be within 1 secondfrom originally 4-5 seconds. The concentrator provides a relatively precise clock synchronization source for remote timing of an intelligent electric meter, and the implementation method is simple and effective.
Description
Technical field
The present invention relates to power information and gather field, be specifically related to a kind ofly reduce the method for concentrator public network to time error.
Background technology
Along with the popularization of centralized meter-reading system, concentrator use amount is increasing, and the clock synchronous of electricity consumption acquisition system is the basis of whole system.Main website is generally configured with gps clock synchro system, effectively can ensure the clocking error of master device; Although concentrator have employed hardware clock circuit, can meet and walk time error and control at 0.5 second, main website carries out constantly by wireless public network to concentrator, and the number existed due to public network communication passes time delay, causes the clock of concentrator cannot be synchronous with master device.
Along with the propelling that intelligent grid is built, require that concentrator is calibrated administered intelligent electric meter, carry out line loss calculation and statistical study according to ammeter freezing data at zero point.But owing to being exactly the real-time clock of concentrator to reference clock during ammeter school, this causes ammeter clock reference to calibrate.
In centralized meter-reading system, concentrator sends heartbeat frame according to eartbeat interval timing to main website, after main website receives heartbeat frame, sends acknowledgement frame, to acknowledge receipt of heartbeat frame immediately to concentrator.Concentrator and main website keep being connected by this heartbeat mechanism exactly.
Summary of the invention
The object of the invention is to be the problems referred to above existed for prior art, provide and a kind ofly reduce the method for concentrator public network to time error, the actual clocking error between concentrator and main website server can be effectively reduced, can control within 1 second.
In order to realize above-mentioned object, the present invention by the following technical solutions:
A kind ofly reduce the method for concentrator public network to time error:
Comprise the following steps,
Make-up time measuring process:
Heartbeat frame is sent to main frame after current time T1 being bundled to heartbeat frame according to predetermined eartbeat interval by step 1.1, concentrator;
Heartbeat frame is fed back to concentrator after receiving the heartbeat frame of concentrator transmission by step 1.2, main frame;
After step 1.3, concentrator receive the heartbeat frame of main frame feedback, record receives the moment T2 of the heartbeat frame of main frame feedback;
Step 1.4, concentrator calculate the difference u of the moment T1 of moment T2 that same heartbeat frame receives and transmission, if difference u is less than or equal to predetermined threshold time, then by difference u stored in time delay queue, and the mean value X1 of each queue unit of calculation delay queue; If difference u is greater than predetermined threshold time, then not stored in time delay queue; Using the half of mean value X1 as the make-up time;
Pair time step:
Concentrator is sent in order when current host time is bundled to pair by step 2.1, main website;
When step 2.2, concentrator receive main website pair after order, using pair time order in host time add that the make-up time is as the standard time, and revise concentrator clock with the standard time.
The First Input First Output of time delay queue as above to be queue unit number be n, the make-up time
wherein ui is i-th queue unit in time delay queue.
The present invention compared with prior art, has the following advantages:
1, after adopting this conceptual design during long-range pair of wireless public network concentrator of the present invention, the public network of concentrator has been reduced within 1 second from original 4 ~ 5 seconds time error.
2, provide clock synchronous source more accurately when the present invention is concentrator school long-range to intelligent electric meter, and implementation method is simply effective.
Accompanying drawing explanation
Fig. 1 is schematic flow sheet of the present invention.
Fig. 2 is the signal wiring schematic diagram that the present invention relates to.
Fig. 3 is communication flow schematic diagram of the present invention.
Embodiment
Below in conjunction with accompanying drawing, technical scheme of the present invention is described in further detail.
Embodiment 1
Example is described in further detail patent of the present invention by reference to the accompanying drawings:
According to Fig. 2, comprise the electricity consumption acquisition system of concentrator, comprise main website, wireless public network, concentrator, electric energy meter etc.For the electricity consumption acquisition system of Jiangsu actual motion, whole system is made up of Jiangsu Power Company electricity consumption collection main station system, mobile GPRS network, Wuhan Zhongyuan Electronic Information Company DJGZ23-ZY93Z type concentrator, Weisheng, Changsha DDS102 type carrier electric energy meter.Freezing data preserving at zero point in DJGZ23-ZY93Z concentrator copy reading ammeter, waits for that main website recruits and surveys; When DJGZ23-ZY93Z type concentrator 2:00 every day timing to be carried out pair all ammeters of subordinate, pair time order in clock use the clock of concentrator.
Reduce the method for concentrator public network to time error,
Comprise the following steps,
Make-up time measuring process:
Heartbeat frame is sent to main frame after current time T1 being bundled to heartbeat frame according to predetermined eartbeat interval (being 5 minutes in the present embodiment) by step 1.1, concentrator;
Heartbeat frame is fed back to concentrator after receiving the heartbeat frame of concentrator transmission by step 1.2, main frame;
After step 1.3, concentrator receive the heartbeat frame of main frame feedback, record receives the moment T2 of the heartbeat frame of main frame feedback;
Step 1.4, concentrator calculate the difference u of the moment T1 of moment T2 that same heartbeat frame receives and transmission, if interpolation u is less than or equal to predetermined threshold time (threshold time predetermined in the present embodiment is set as 15 seconds), then by interpolation u stored in time delay queue, and the mean value X1 of each queue unit of calculation delay queue; If interpolation u is greater than predetermined threshold time, then not stored in time delay queue; And using the half of mean value X1 as the make-up time;
Pair time step:
Concentrator is sent in order when current host time is bundled to pair by step 2.1, main website;
When step 2.2, concentrator receive main website pair after order, using pair time order in host time add that the make-up time is as the standard time, and revise concentrator clock with the standard time.
The First Input First Output of time delay queue to be queue unit be n (n is the number of heartbeat in 12 hours, n=144 in the present embodiment), the make-up time
The concentrator of multiple stage difference numbering is chosen at scene, measures the actual error of concentrator and gps clock when not using of the present invention, chooses wherein effective error, as following table 1.
Actual error table when table 1 does not use concentrator during the present invention couple to carry out pair
Numbering | Error (ms) | Numbering | Error (ms) | Numbering | Error (ms) | Numbering | Error (ms) |
1 | 4990 | 26 | 4360 | 51 | 5720 | 76 | 4510 |
2 | 4540 | 27 | 3980 | 52 | 4870 | 77 | 4650 |
3 | 5100 | 28 | 4680 | 53 | 4900 | 78 | 4490 |
4 | 4870 | 29 | 5210 | 54 | 4680 | 79 | 4640 |
5 | 5030 | 30 | 4430 | 55 | 4280 | 80 | 4570 |
6 | 4720 | 31 | 4500 | 56 | 4420 | 81 | 4530 |
7 | 4360 | 32 | 4450 | 57 | 4390 | 82 | 4870 |
8 | 4450 | 33 | 4680 | 58 | 4630 | 83 | 4460 |
9 | 4870 | 34 | 4270 | 59 | 4550 | 84 | 4560 |
10 | 4610 | 35 | 4330 | 60 | 4600 | 85 | 4440 |
11 | 4580 | 36 | 4720 | 61 | 4560 | 86 | 4570 |
12 | 4600 | 37 | 4430 | 62 | 4370 | 87 | 4600 |
13 | 4680 | 38 | 4540 | 63 | 4460 | 88 | 4410 |
14 | 4610 | 39 | 4530 | 64 | 4680 | 89 | 4690 |
15 | 4480 | 40 | 4490 | 65 | 4870 | 90 | 4540 |
16 | 4550 | 41 | 4870 | 66 | 4480 | 91 | 4420 |
17 | 4390 | 42 | 4620 | 67 | 5070 | 92 | 4910 |
18 | 4550 | 43 | 4430 | 68 | 4630 | 93 | 4680 |
19 | 4690 | 44 | 5110 | 69 | 4550 | 94 | 4570 |
20 | 4480 | 45 | 4710 | 70 | 4640 | 95 | 4460 |
21 | 4540 | 46 | 4930 | 71 | 4530 | 96 | 4640 |
22 | 4870 | 47 | 4560 | 72 | 4670 | 97 | 4800 |
23 | 4530 | 48 | 4480 | 73 | 4530 | 98 | 4620 |
24 | 4470 | 49 | 4730 | 74 | 4640 | 99 | 4720 |
25 | 4530 | 50 | 4420 | 75 | 4540 | 100 | 4630 |
Use the present invention, wait for that concentrator runs 24 hours, measure the actual error between concentrator and gps clock, see the following form 2:
Actual error table when table 2 uses concentrator during the present invention couple to carry out pair
Numbering | Error (ms) | Numbering | Error (ms) | Numbering | Error (ms) | Numbering | Error (ms) |
1 | 320 | 26 | 340 | 51 | 410 | 76 | 390 |
2 | 170 | 27 | 260 | 52 | 350 | 77 | 420 |
3 | 510 | 28 | 320 | 53 | 240 | 78 | 230 |
4 | 380 | 29 | 550 | 54 | 390 | 79 | 190 |
5 | 440 | 30 | 390 | 55 | 310 | 80 | 730 |
6 | 390 | 31 | 260 | 56 | 420 | 81 | 250 |
7 | 270 | 32 | 310 | 57 | 430 | 82 | 400 |
8 | 330 | 33 | 280 | 58 | 330 | 83 | 540 |
9 | 650 | 34 | 160 | 59 | 350 | 84 | 360 |
10 | 520 | 35 | 330 | 60 | 260 | 85 | 440 |
11 | 260 | 36 | 630 | 61 | 410 | 86 | 540 |
12 | 300 | 37 | 340 | 62 | 430 | 87 | 390 |
13 | 470 | 38 | 250 | 63 | 300 | 88 | 260 |
14 | 370 | 39 | 370 | 64 | 640 | 89 | 480 |
15 | 230 | 40 | 390 | 65 | 330 | 90 | 450 |
16 | 360 | 41 | 290 | 66 | 450 | 91 | 320 |
17 | 400 | 42 | 130 | 67 | 570 | 92 | 390 |
18 | 670 | 43 | 360 | 68 | 460 | 93 | 260 |
19 | 340 | 44 | 400 | 69 | 350 | 94 | 330 |
20 | 490 | 45 | 380 | 70 | 610 | 95 | 400 |
21 | 410 | 46 | 640 | 71 | 570 | 96 | 390 |
22 | 450 | 47 | 340 | 72 | 510 | 97 | 330 |
23 | 390 | 48 | 440 | 73 | 290 | 98 | 480 |
24 | 780 | 49 | 310 | 74 | 410 | 99 | 680 |
25 | 470 | 50 | 530 | 75 | 350 | 100 | 370 |
The present invention effectively can reduce concentrator wireless public network to time error, improves the accuracy of clock of power meter,
Specific embodiment described herein is only to the explanation for example of the present invention's spirit.Those skilled in the art can make various amendment or supplement or adopt similar mode to substitute to described specific embodiment, but can't depart from spirit of the present invention or surmount the scope that appended claims defines.
Claims (2)
1. reduce the method for concentrator public network to time error, it is characterized in that:
Comprise the following steps,
Make-up time measuring process:
Heartbeat frame is sent to main frame after current time T1 being bundled to heartbeat frame according to predetermined eartbeat interval by step 1.1, concentrator;
Heartbeat frame is fed back to concentrator after receiving the heartbeat frame of concentrator transmission by step 1.2, main frame;
After step 1.3, concentrator receive the heartbeat frame of main frame feedback, record receives the moment T2 of the heartbeat frame of main frame feedback;
Step 1.4, concentrator calculate the difference u of the moment T1 of moment T2 that same heartbeat frame receives and transmission, if difference u is less than or equal to predetermined threshold time, then by difference u stored in time delay queue, and the mean value X1 of each queue unit of calculation delay queue; If difference u is greater than predetermined threshold time, then not stored in time delay queue; Using the half of mean value X1 as the make-up time;
Pair time step:
Concentrator is sent in order when current host time is bundled to pair by step 2.1, main website;
When step 2.2, concentrator receive main website pair after order, using pair time order in host time add that the make-up time is as the standard time, and revise concentrator clock with the standard time.
2. according to claim 1ly a kind ofly reduce the method for concentrator public network to time error, it is characterized in that, the First Input First Output of described time delay queue to be queue unit number be n, make-up time
wherein ui is i-th queue unit in time delay queue.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410768022.2A CN104464247B (en) | 2014-12-12 | 2014-12-12 | A kind of method of error during reduction concentrator public network pair |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410768022.2A CN104464247B (en) | 2014-12-12 | 2014-12-12 | A kind of method of error during reduction concentrator public network pair |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104464247A true CN104464247A (en) | 2015-03-25 |
CN104464247B CN104464247B (en) | 2018-01-02 |
Family
ID=52910223
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410768022.2A Active CN104464247B (en) | 2014-12-12 | 2014-12-12 | A kind of method of error during reduction concentrator public network pair |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104464247B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104978842A (en) * | 2015-06-10 | 2015-10-14 | 烟台东方威思顿电气股份有限公司 | Self-repair method of low-pressure concentrator clock |
CN105680969A (en) * | 2015-12-31 | 2016-06-15 | 浙江中控技术股份有限公司 | Clock synchronization method and device |
JP2018005556A (en) * | 2016-07-01 | 2018-01-11 | トヨタテクニカルディベロップメント株式会社 | Measurement data collection system |
CN108053637A (en) * | 2017-10-30 | 2018-05-18 | 中国电力科学研究院有限公司 | A kind of test method and system of power information acquisition terminal error of time of day |
CN108092731A (en) * | 2017-12-28 | 2018-05-29 | 国网山东省电力公司聊城供电公司 | A kind of method of clocking error during accurate school |
CN111025223A (en) * | 2019-12-24 | 2020-04-17 | 宁波三星医疗电气股份有限公司 | Clock correction method, device, equipment and storage medium of electric energy meter |
CN112104433A (en) * | 2019-06-18 | 2020-12-18 | 国网江苏省电力有限公司常州供电分公司 | Concentrator accurate time synchronization method based on quadratic iteration algorithm |
CN115225244A (en) * | 2022-07-14 | 2022-10-21 | 广东电网有限责任公司 | Low-voltage integrated reading electric energy meter clock time setting method, device, main equipment and medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7146516B2 (en) * | 2002-12-20 | 2006-12-05 | Invensys Systems, Inc. | Time synchronization schemes wherein at least one data message associates a hardware pulse with a future time |
CN101227246A (en) * | 2008-01-28 | 2008-07-23 | 中兴通讯股份有限公司 | Method and apparatus for master-salve clock synchronization |
CN101247168A (en) * | 2007-02-15 | 2008-08-20 | 华为技术有限公司 | Time synchronization method and system |
CN101425865A (en) * | 2007-10-31 | 2009-05-06 | 大唐移动通信设备有限公司 | Method and system for synchronizing clock of transmission network as well as subordinate clock side entity |
CN101515831A (en) * | 2008-02-22 | 2009-08-26 | 杭州华三通信技术有限公司 | Method, system and device for time synchronous transfer |
CN102291233A (en) * | 2011-09-08 | 2011-12-21 | 武汉烽火网络有限责任公司 | Method for acquiring accurate line transmission delay during time synchronization |
CN102638324A (en) * | 2012-03-27 | 2012-08-15 | 杭州华三通信技术有限公司 | Method and device for realizing precise time synchronization |
-
2014
- 2014-12-12 CN CN201410768022.2A patent/CN104464247B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7146516B2 (en) * | 2002-12-20 | 2006-12-05 | Invensys Systems, Inc. | Time synchronization schemes wherein at least one data message associates a hardware pulse with a future time |
CN101247168A (en) * | 2007-02-15 | 2008-08-20 | 华为技术有限公司 | Time synchronization method and system |
CN101425865A (en) * | 2007-10-31 | 2009-05-06 | 大唐移动通信设备有限公司 | Method and system for synchronizing clock of transmission network as well as subordinate clock side entity |
CN101227246A (en) * | 2008-01-28 | 2008-07-23 | 中兴通讯股份有限公司 | Method and apparatus for master-salve clock synchronization |
CN101515831A (en) * | 2008-02-22 | 2009-08-26 | 杭州华三通信技术有限公司 | Method, system and device for time synchronous transfer |
CN102291233A (en) * | 2011-09-08 | 2011-12-21 | 武汉烽火网络有限责任公司 | Method for acquiring accurate line transmission delay during time synchronization |
CN102638324A (en) * | 2012-03-27 | 2012-08-15 | 杭州华三通信技术有限公司 | Method and device for realizing precise time synchronization |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104978842A (en) * | 2015-06-10 | 2015-10-14 | 烟台东方威思顿电气股份有限公司 | Self-repair method of low-pressure concentrator clock |
CN104978842B (en) * | 2015-06-10 | 2018-03-06 | 烟台东方威思顿电气有限公司 | A kind of method of low pressure concentrator clock self-regeneration |
CN105680969A (en) * | 2015-12-31 | 2016-06-15 | 浙江中控技术股份有限公司 | Clock synchronization method and device |
JP2018005556A (en) * | 2016-07-01 | 2018-01-11 | トヨタテクニカルディベロップメント株式会社 | Measurement data collection system |
CN108053637A (en) * | 2017-10-30 | 2018-05-18 | 中国电力科学研究院有限公司 | A kind of test method and system of power information acquisition terminal error of time of day |
CN108053637B (en) * | 2017-10-30 | 2020-05-19 | 中国电力科学研究院有限公司 | Method and system for testing daily timing error of power consumption information acquisition terminal |
CN108092731A (en) * | 2017-12-28 | 2018-05-29 | 国网山东省电力公司聊城供电公司 | A kind of method of clocking error during accurate school |
CN108092731B (en) * | 2017-12-28 | 2019-04-12 | 国网山东省电力公司聊城供电公司 | A kind of method of clocking error when accurate school |
CN112104433A (en) * | 2019-06-18 | 2020-12-18 | 国网江苏省电力有限公司常州供电分公司 | Concentrator accurate time synchronization method based on quadratic iteration algorithm |
CN111025223A (en) * | 2019-12-24 | 2020-04-17 | 宁波三星医疗电气股份有限公司 | Clock correction method, device, equipment and storage medium of electric energy meter |
CN115225244A (en) * | 2022-07-14 | 2022-10-21 | 广东电网有限责任公司 | Low-voltage integrated reading electric energy meter clock time setting method, device, main equipment and medium |
CN115225244B (en) * | 2022-07-14 | 2023-08-18 | 广东电网有限责任公司 | Clock time setting method and device for low-voltage meter reading, main equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN104464247B (en) | 2018-01-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104464247A (en) | Method for reducing time synchronization error of public network of concentrator | |
CN103516507A (en) | Electricity utilization information collecting system time synchronization method based on DLPTP clock synchronization | |
CN102315929B (en) | Timing synchronization controller of ground simulation system | |
CN107037722A (en) | A kind of time terminal | |
CN103185886B (en) | Satellite navigation system and implementation method | |
CN104410481A (en) | Time synchronization method and time synchronization system based on NTP (network time protocol) network | |
WO2021008532A1 (en) | Active antenna unit delay alignment method and apparatus and active antenna unit | |
MX2015010590A (en) | A system for measuring and reporting resource usage. | |
CN103078697B (en) | A kind of distributed clock synchronization method | |
CN103529401B (en) | Based on the battery information synchronous acquisition device of FlexRay bus | |
CN101951300B (en) | Method for realizing accurate time tick of Ethernet | |
CN103699963A (en) | Mounting work amount calculation method and system for nuclear power project | |
CN106095721A (en) | A kind of method for synchronizing time, system and board units | |
CN103595588A (en) | Method for accurately measuring asynchronous Ethernet circuit time delay | |
CN204832528U (en) | Big dipper common type commands machine | |
CN102571518B (en) | Electronic transformer data transmission method based on field bus | |
CN109765582A (en) | A kind of temporal frequency calibration system based on GNSS | |
CN204180093U (en) | A kind of PPS system balance device based on FPGA | |
CN113406436A (en) | Traveling wave fault location method and system for alternating-current and direct-current transmission line based on 5G communication | |
CN205038790U (en) | Portable machine of checking meter | |
CN109696603B (en) | Real-time monitoring method for two-side external clocks of two-end traveling wave ranging | |
CN206920837U (en) | A kind of multiple clock sources correction device of vehicle-mounted TBOX systems | |
CN203502510U (en) | Automatic detection device of power distribution feeder terminal | |
CN202524426U (en) | Enterprise cloud computing service application system | |
CN102508423A (en) | IRIG-B (Inter-Range Instrumentation Group-B) time-setting method adopting enhanced capture module |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |