[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN102426414A - Time synchronization method of power quality monitoring system - Google Patents

Time synchronization method of power quality monitoring system Download PDF

Info

Publication number
CN102426414A
CN102426414A CN2011101418800A CN201110141880A CN102426414A CN 102426414 A CN102426414 A CN 102426414A CN 2011101418800 A CN2011101418800 A CN 2011101418800A CN 201110141880 A CN201110141880 A CN 201110141880A CN 102426414 A CN102426414 A CN 102426414A
Authority
CN
China
Prior art keywords
time
information
time synchronization
quality monitoring
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.)
Granted
Application number
CN2011101418800A
Other languages
Chinese (zh)
Other versions
CN102426414B (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.)
Lingbu Science And Technology Co Ltd Shenzhen
State Grid Corp of China SGCC
Shanghai Municipal Electric Power Co
Original Assignee
Shenzhen Linbo Science And Technology Co ltd
Shanghai Municipal Electric Power Co
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 Shenzhen Linbo Science And Technology Co ltd, Shanghai Municipal Electric Power Co filed Critical Shenzhen Linbo Science And Technology Co ltd
Priority to CN 201110141880 priority Critical patent/CN102426414B/en
Publication of CN102426414A publication Critical patent/CN102426414A/en
Application granted granted Critical
Publication of CN102426414B publication Critical patent/CN102426414B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Electric Clocks (AREA)

Abstract

A time synchronization method of a power quality monitoring system comprises the steps that firstly, a time synchronization port of a power quality monitoring terminal receives B code time synchronization data sent by a time synchronization server, time synchronization reference codes are found out from the received B code time synchronization data, then second information, minute information, time information and day information are respectively received into a memory, then days are converted into year, month and day, and then a system clock is set. The invention has high time synchronization precision, high speed and a plurality of standby schemes, and can automatically judge the optimal scheme to carry out comprehensive time synchronization.

Description

A kind of setting means of electric energy quality monitoring system
Technical field
The present invention relates to a kind of setting means of electric energy quality monitoring system.
Background technology
Electric energy quality monitoring system carry out long-range to the time; Through certain agreement the time of wanting to be provided with; Comprise year, the moon, day, the time, information transmission such as branch, second give electric energy quality monitoring terminal; On the terminal through resolve long-range to the time agreement, come out the date and time information analysis, and the check and correction of line time during to system by the date and time of resolving.
At present, on electric energy quality monitoring terminal, several kinds of setting means below the existence:
1, satellite to the time
1.1, impulsive synchronization to the time
The advantage of impulsive synchronization: response speed is fast; Can carry out the synchronous of multiple devices, not have the agreement constraint, implement on the software than be easier to; As long as open parallel port given and received signal on hardware, in the software through application call parallel port driver come directly realization pulse to the time.
The shortcoming of impulsive synchronization: can't directly provide the date Hour Minute Second these temporal informations.Impulse form can only be provided, and instrument when needing special GPS school.The school constantly, equipment receives the time delays of gps signal, processing and transmitting pulse signal when having the school, and in the processing time-delay of device interior driver, operating system and application program.Though in two processing procedures, all can reduce to minimum to error, also have some errors, and this error there is uncertainty.Experimental result shows, with pulse per second (PPS) to the time technology to constantly, with the naked eye can't see.Have only through software and test.With divide pulse to the time technology arriving of just can observing fully.When staggering the time in the clock source, the pulse per second (PPS) maximum error divides the pulse maximum error less than 1min less than 1sec, this can only the correction time at last, and alignment time at last is not because there is the definite time.
1.2, the IRIG-B sign indicating number to the time
The B sign indicating number to the time advantage: can calibrate Hour Minute Second, precision is also than higher.The moon day Hour Minute Second of system can be set according to the time that send in the clock source, can observe change of time through naked eyes.Maximum error is 50ms.Because having utilized baud rate during software design is 1200.Be through receiving the temporal information that byte receives the B sign indicating number, just having looked for individual skill in realization in the identifying.Next step level identification that will carry out hardware realizes with single-chip microcomputer, CPLD or FPGA, thereby like this will be more accurately and the error that has accurately also reduced the time processing.
The B sign indicating number to the time shortcoming: only provided fate, will carry out the conversion that the sky is counted to month day in the software; The calibration in year is not provided; As long as year is wrong, will be when fate is transformed into the day moon because of whether the leap year miscalculates.Do not have the calibration in year,, also can possibly mistake can occur yet because of the difference that leap year and non-leap year are arranged though can not error arrive year.
2, network to the time
Because transformer station can not network with internet, thus can only be at time server of set inside, each electric energy quality monitoring terminal as the user end to server end carry out to the time request.Through the server on setting and the runtime server, running client program in electric energy quality monitoring terminal is with regard to renewable system time.To time technology, have three kinds of schemes available for network:
Network to the time scheme 1: with linux system the same, bring direct usefulness to client application, in application program, directly call this application program and get final product.
Advantage: need not think the writing of application program, realize simple.
Shortcoming: can make Embedded operating system become big, also will change root file system, because it is read-only wanting file system, also will carry out the stability that root file system is tested in a series of test again.Application program is simple, but other operation is just many comparatively speaking.Because the every aspect that the program that provides relates to is many, program is bigger.
Network to the time scheme 2: programming realizes NTP (NTP) client, and makes the form of dynamic link library, in application program, adds corresponding header file, and in application program, calls corresponding function and get final product.
Advantage: owing to will upgrade dynamic link library together during original upgrade applications, also do not have any influence, when client-side program changes, can recompilate kernel so add one again.
Shortcoming: the various statements of header file also will be arranged.
Network to the time scheme 3: programming realizes the NTP Client program, and generates application program, in application program, directly calls this order and gets final product.
Advantage: in application program, need not add any program code and just can directly call the calibration that network time is carried out in this order.
3, long-range to the time: generally all be when carrying out electric energy quality monitoring system test and checking and accepting, just to use this function.
Advantage: practice thrift cost, do not have in the unit running environment corresponding satellite to the time equipment, also without ntp server.
Shortcoming: the time can not be unified, if unit is many, some function does not realize, such as synchronously.
4, terminal device to the time: generally all be when testing or just can use this function when checking and accepting.
Advantage: need not any other equipment just can carry out to the time.
Shortcoming: relate to the dual shortcoming that manually-operated just exists maloperation and error.
Summary of the invention
The setting means of a kind of electric energy quality monitoring system provided by the invention, to the time precision high, speed is fast, alternative scheme is many, can judge automatically optimal case carry out comprehensively to the time.
In order to achieve the above object, the present invention provides a kind of setting means of electric energy quality monitoring system, comprises following steps:
The start of step 1, electric energy quality monitoring terminal, start to the time;
Step 2, electric energy quality monitoring terminal to the time port receive to the time server B sign indicating number that sends to the time data, from the B sign indicating number that receives to the time data, find out to the time reference code;
Step 3, receive second information: to the time data second Data Receiving in internal memory;
Step 4, receive branch information: to the time data divided data receive in the internal memory;
Step 5, information when receiving: to the time data hour data receive in the internal memory;
Step 6, receive fate information: to the time data the fate Data Receiving in internal memory;
Step 7, convert fate into the date: is the information translation of fate concrete date information;
Step 8, system clock is set:, be set to the concrete clock of system the date and time information of forming by the date Hour Minute Second;
Step 9, finish to the time.
The present invention to the time precision high, speed is fast, alternative scheme is many, can judge automatically optimal case carry out comprehensively to the time.
Description of drawings
Fig. 1 is a process flow diagram of the present invention.
Embodiment
Following according to Fig. 1, specify preferred embodiment of the present invention:
As shown in Figure 1, be a kind of setting means of electric energy quality monitoring system, be used for electric energy quality monitoring terminal and to the time between the server to the time, this setting means comprises following steps:
The start of step 1, electric energy quality monitoring terminal, start to the time;
Step 2, electric energy quality monitoring terminal to the time port receive to the time server B sign indicating number that sends to the time data, from the B sign indicating number that receives to the time data, find out to the time reference code;
Step 3, receive second information: to the time data second Data Receiving in internal memory;
Step 4, receive branch information: to the time data divided data receive in the internal memory;
Step 5, information when receiving: to the time data hour data receive in the internal memory;
Step 6, receive fate information: to the time data the fate Data Receiving in internal memory;
Step 7, convert fate into the date: is the information translation of fate concrete date information;
If fate is 1, then be exactly to convert first day then into, as: 2011-01-01;
Step 8, system clock is set:, be set to the concrete clock of system the date and time information of forming by the date Hour Minute Second;
Step 9, finish to the time.
In the step 2 to the time reference code be the B sign indicating number to the time a kind of numeric data code of regulation in the agreement, just the B sign indicating number to the time when transmitting, send at first to the time initial data, be only then second, branch, the time etc. information data.
Although content of the present invention has been done detailed introduction through above-mentioned preferred embodiment, will be appreciated that above-mentioned description should not be considered to limitation of the present invention.After those skilled in the art have read foregoing, for multiple modification of the present invention with to substitute all will be conspicuous.Therefore, protection scope of the present invention should be limited appended claim.

Claims (1)

1. the setting means of an electric energy quality monitoring system comprises following steps:
The start of step 1, electric energy quality monitoring terminal, start to the time;
Step 2, electric energy quality monitoring terminal to the time port receive to the time server B sign indicating number that sends to the time data, from the B sign indicating number that receives to the time data, find out to the time reference code;
Step 3, receive second information: to the time data second Data Receiving in internal memory;
Step 4, receive branch information: to the time data divided data receive in the internal memory;
Step 5, information when receiving: to the time data hour data receive in the internal memory;
Step 6, receive fate information: to the time data the fate Data Receiving in internal memory;
Step 7, convert fate into the date: is the information translation of fate concrete date information;
Step 8, system clock is set:, be set to the concrete clock of system the date and time information of forming by the date Hour Minute Second;
Step 9, finish to the time.
CN 201110141880 2011-05-30 2011-05-30 Time checking method of electric energy quality monitoring system Active CN102426414B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110141880 CN102426414B (en) 2011-05-30 2011-05-30 Time checking method of electric energy quality monitoring system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110141880 CN102426414B (en) 2011-05-30 2011-05-30 Time checking method of electric energy quality monitoring system

Publications (2)

Publication Number Publication Date
CN102426414A true CN102426414A (en) 2012-04-25
CN102426414B CN102426414B (en) 2013-06-05

Family

ID=45960415

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110141880 Active CN102426414B (en) 2011-05-30 2011-05-30 Time checking method of electric energy quality monitoring system

Country Status (1)

Country Link
CN (1) CN102426414B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103616653A (en) * 2013-12-06 2014-03-05 国家电网公司 System and method for testing clock synchronization and clock precision of power quality monitor terminal
CN108181798A (en) * 2017-11-28 2018-06-19 东莞理工学院 A kind of electric grid secondary apparatus self-adaptation setting means

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1189640A (en) * 1997-01-30 1998-08-05 深圳金泰克科技有限公司 Method and device for semi-automatic setting electrical wave clock preset time
CN1629652A (en) * 2003-12-19 2005-06-22 德克萨斯仪器股份有限公司 System and method for supplying time from networking time server to SPS receiver
CN1749916A (en) * 2004-09-16 2006-03-22 中国科学院电子学研究所 Insert the method that the GPS pps pulse per second signal realizes that precise time is aimed at computing machine
CN101453523A (en) * 2007-11-30 2009-06-10 上海市电力公司 Time setting method and device for remote station of electric power scheduling sound recording system
EP2293158A2 (en) * 2009-09-01 2011-03-09 Seiko Epson Corporation Timepiece with internal antenna

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1189640A (en) * 1997-01-30 1998-08-05 深圳金泰克科技有限公司 Method and device for semi-automatic setting electrical wave clock preset time
CN1629652A (en) * 2003-12-19 2005-06-22 德克萨斯仪器股份有限公司 System and method for supplying time from networking time server to SPS receiver
CN1749916A (en) * 2004-09-16 2006-03-22 中国科学院电子学研究所 Insert the method that the GPS pps pulse per second signal realizes that precise time is aimed at computing machine
CN101453523A (en) * 2007-11-30 2009-06-10 上海市电力公司 Time setting method and device for remote station of electric power scheduling sound recording system
EP2293158A2 (en) * 2009-09-01 2011-03-09 Seiko Epson Corporation Timepiece with internal antenna

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103616653A (en) * 2013-12-06 2014-03-05 国家电网公司 System and method for testing clock synchronization and clock precision of power quality monitor terminal
CN103616653B (en) * 2013-12-06 2016-08-17 国家电网公司 System and method are tested with clock accuracy during a kind of electric energy quality monitoring terminal pair
CN108181798A (en) * 2017-11-28 2018-06-19 东莞理工学院 A kind of electric grid secondary apparatus self-adaptation setting means

Also Published As

Publication number Publication date
CN102426414B (en) 2013-06-05

Similar Documents

Publication Publication Date Title
CN106293977B (en) A kind of data verification method and equipment
CN106452506B (en) A kind of method that multiple data item disposably acquire
WO2021103219A1 (en) Test apparatus, system and method for satellite receiver
KR20100053895A (en) Testing method and its apparatus of digital substation merging unit
CN108008623B (en) Time system and method for providing time system signal
CN102593955B (en) Comprehensive intelligent time frequency testing system and testing method
CN108988975B (en) Correction method and device for ammeter clock
CN102426414B (en) Time checking method of electric energy quality monitoring system
Ferencz et al. Hardware assisted COTS IEEE 1588 solution for x86 Linux and its performance evaluation
Rana et al. Exploring IEEE standard for synchrophasor C37. 118 with practical implementation
CN110794426B (en) Cold start control method and device of receiver, terminal equipment and medium
US20120176119A1 (en) Phase line identification system and method
CN203708224U (en) Multipurpose serial time code decoder
CN103490856B (en) Mark5B-format VLBI data receiving decoding and error correcting system and method used for deep space exploration
CN116306508A (en) Date data conversion method and device
CN109472012A (en) A kind of management method and device of electronization test report
US9973333B1 (en) Bump-in-the-wire time code signal decoder and debugger
CN109167640B (en) Error code instrument
CN113050133B (en) GNSS star card data interface processing capability test method of satellite system application equipment
Stukach Automated Remote Calibration of Electrical Measuring Tools on the Example of a Digital Multimeter NI PXI 4072
CN109738918B (en) Method for testing time taking precision of satellite time frequency card software interface layer
EP4343485A1 (en) System and method for time synchronization between multiple operating systems
CN112737725B (en) Clock calibration method and device, computer equipment, storage medium and application
Sumec Software tool for verification of sampled values transmitted via IEC 61850-9-2 protocol
CN111106890B (en) Method and equipment for time synchronization

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: STATE GRID CORPORATION OF CHINA LINGBU SCIENCE AND

Free format text: FORMER OWNER: LINGBU SCIENCE AND TECHNOLOGY CO LTD, SHENZHEN

Effective date: 20121204

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20121204

Address after: 200002 Nanjing East Road, Shanghai, No. 181, No.

Applicant after: Shanghai Electric Power Corporation

Applicant after: State Grid Corporation of China

Applicant after: Lingbu Science and Technology Co., Ltd., Shenzhen

Address before: 200002 Nanjing East Road, Shanghai, No. 181, No.

Applicant before: Shanghai Electric Power Corporation

Applicant before: Lingbu Science and Technology Co., Ltd., Shenzhen

C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 200002 Nanjing East Road, Shanghai, No. 181, No.

Applicant after: Shanghai Electric Power Corporation

Applicant after: State Grid Corporation of China

Applicant after: LINBO TECHNOLOGY GROUP CO., LTD.

Address before: 200002 Nanjing East Road, Shanghai, No. 181, No.

Applicant before: Shanghai Electric Power Corporation

Applicant before: State Grid Corporation of China

Applicant before: Lingbu Science and Technology Co., Ltd., Shenzhen

C14 Grant of patent or utility model
GR01 Patent grant