CN102882743A - Method for generating multi-interval message acquisition time of intelligent transformer station - Google Patents
Method for generating multi-interval message acquisition time of intelligent transformer station Download PDFInfo
- Publication number
- CN102882743A CN102882743A CN2012103623594A CN201210362359A CN102882743A CN 102882743 A CN102882743 A CN 102882743A CN 2012103623594 A CN2012103623594 A CN 2012103623594A CN 201210362359 A CN201210362359 A CN 201210362359A CN 102882743 A CN102882743 A CN 102882743A
- Authority
- CN
- China
- Prior art keywords
- time
- message
- acquisition time
- stamp
- message acquisition
- 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
Images
Landscapes
- Synchronisation In Digital Transmission Systems (AREA)
- Computer And Data Communications (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to a method for generating a multi-interval message acquisition time of an intelligent transformer station. The method is characterized by comprising the following steps: a counter in an FPGA (Field Programmable Gate Array) achieves resetting, zero-clearing and counting at the rising edge of exact seconds of B codes, and when a data message comes in, a timestamp is generated and a time stamp is printed on the message. According to the method, labeled sampling is generated by the external time and an internal counter, so that the precision of the sampling time is improved and a guarantee is provided for later data analysis.
Description
Technical field
The present invention relates to a kind of generation method of multi-compartment message acquisition time of intelligent substation.
Background technology
Intelligent grid is being built at present electric power system energetically, and transformer station develops to intelligent substation from traditional transformer station, and principal character is: primary equipment is intelligent, and the secondary device networking meets the IEC61850 standard.Be the digitlization of intelligent substation internal information, information transfer network, the traffic model standardization makes the unified platform of equipment and function sharing.
Intelligent substation has a large amount of network message data to need to monitor, analyzes, and the particularly analysis of multi-compartment message, the basis of multi-compartment message analysis is the time precision that the multi-compartment message gathers.Transformer station adopts the access of B (IRIG-B) code more now, and the B code is to represent the time with 100 code elements, each code element 10ms, in non-whole second situation, because hardware and algorithm, acquisition time can not be guaranteed, in fact the above difference of 100us arranged, very large on the data analysis impact in later stage.
Summary of the invention
The generation method that the purpose of this invention is to provide a kind of multi-compartment message acquisition time of intelligent substation can improve the precision of acquisition time, reaches the precision of submicrosecond.
A kind of generation method of multi-compartment message acquisition time of intelligent substation, its special feature is, comprise the steps: at first the counter by FPGA inside, at the whole second rising edge of B code along resetting, zero clearing, beginning counting, when being arranged, data message comes in, then produce time stamp, stamp time mark to message.
Wherein time stamp is the time that adds the conversion of current counter external time, and the time of conversion equals current counter and multiply by the clock cycle.
Wherein stamping time mark to message refers to add data packet head by the PCAP form.
In the methods of the invention, when sampling mark is by jointly producing with external time and internal counter, thereby improved the precision of acquisition time, for the data analysis in later stage provides assurance.
Description of drawings
Fig. 1 is the workflow diagram of FPGA internal counter among the present invention;
Fig. 2 is the collection of multi-compartment message and time stamp flow chart among the present invention.
Embodiment
As shown in Figure 1, the present invention is a kind of generation method of multi-compartment message acquisition time of intelligent substation, comprise the steps: at first the counter by FPGA inside, at the whole second rising edge of B code along resetting, zero clearing, beginning counting, when there being data message to come in, then produce time stamp, add data packet head by the PCAP form to message, comprise temporal information in the PCAP form, concrete form is as follows:
Wherein time stamp is the time that adds the conversion of current counter external time, and conversion time=current counter multiply by the clock cycle.
Adopt FPGA, can guarantee precision that whole second rising edge of clock B code externally resets and the precision of internal counter, and adopt general microprocessor, because be subjected to the restriction of hardware structure, can not reach the precision of submicrosecond, when Large Volume Data appears in port, can not guarantee real-time response, the situation of packet loss can appear.
Embodiment 1:
This example is selected fpga chip EP4CGX150, and the logical block of 150K is arranged, the internal memory of 6.5Mbit, and the Transceiver of 8 high speeds can provide 475 IO mouths, guarantees to provide at most 16 independent light mouths, operating frequency 125M.
The function that realizes is: device power brings into operation, and the collection of internal counter and each separate port is started working, and the ardware feature of fpga chip has guaranteed concurrency.When there being data message to come in, produce time stamp, stamp time mark by the PCAP form, send to ppu.
The performance of this routine device is:
Ethernet monitor log port number: 4;
Message processing capability during single port work: 100Mbps, accessible 12 groups of SMV messages or 30 groups of GOOSE messages;
Total message processing capability when operating at full capacity: 200Mbps;
According to reality test, time precision<50ns that message gathers.
Define a local counter time_cnt, it is just constantly cumulative after FPGA powers on, when receiving the whole second rising edge signal of B code b_flog, time_cnt is resetted, zero clearing, simultaneously the whole number of seconds b_time_s of 0: 0: 0 on the 1st January in 1970 to current time that parses in the B code is saved on the register b_time_s_reg, code is as follows
Just can accurately timestamp be beaten on message when message arrives, the timestamp of message is comprised of two parts: the one, and second part is provided by b_time_s_reg; The 2nd, nanosecond part, (the FPGA main clock frequency is 125MHz by (time_cnt*8) acquisition, so the time of each clock cycle was 8 nanoseconds, and counter time_cnt adds 1 at each clock cycle, it is the nanosecond of current time so time_cnt*8 obtains).
Timestamp is beaten on the message of receiving, form is followed the PCAP form, then message is dealt into the backstage, and the backstage is directly preserved message and got final product.Message is the PCAP form of standard, supports PCAP message analysis software can both open analysis.
Timestamp format analysis case:
73 DE, 57 50 b8,75 0D 01: wherein 50 57 DE 73 are that a second part is (because the low byte of PCAP form the inside stipulated time data is front, high byte is rear, so answer sorting by reversals when calculating) be converted to decimal number and be: 50 57 DE 73=1347935859 (second);
In like manner: 01 0D, 75 b8=17659320 (nanosecond), being converted to the Beijing Today time with 1347935859 seconds again is 2012-09-18 10:37:39, the time after second and the nanosecond combination is exactly: 2012-09-1810:37:39.01765932.
Above-described embodiments of the present invention do not consist of limiting the scope of the invention.Any modification of making within the spirit and principles in the present invention is equal to and replaces and improve, and all should be included within the claim protection range of the present invention.
Claims (3)
1. the generation method of the multi-compartment message acquisition time of an intelligent substation, it is characterized in that, comprise the steps: at first the counter by FPGA inside, at the whole second rising edge of B code along resetting, zero clearing, beginning counting, when being arranged, data message comes in, then produce time stamp, stamp time mark to message.
2. the generation method of the multi-compartment message acquisition time of a kind of intelligent substation as claimed in claim 1 is characterized in that: wherein time stamp is the time that adds current counter conversion external time, and the time of conversion equals current counter and multiply by the clock cycle.
3. the generation method of the multi-compartment message acquisition time of a kind of intelligent substation as claimed in claim 1 or 2 is characterized in that: wherein stamp time mark to message and refer to add data packet head by the PCAP form.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210362359.4A CN102882743B (en) | 2012-09-26 | 2012-09-26 | Method for generating multi-interval message acquisition time of intelligent transformer station |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210362359.4A CN102882743B (en) | 2012-09-26 | 2012-09-26 | Method for generating multi-interval message acquisition time of intelligent transformer station |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102882743A true CN102882743A (en) | 2013-01-16 |
CN102882743B CN102882743B (en) | 2015-07-01 |
Family
ID=47483897
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210362359.4A Active CN102882743B (en) | 2012-09-26 | 2012-09-26 | Method for generating multi-interval message acquisition time of intelligent transformer station |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102882743B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109412734A (en) * | 2018-09-26 | 2019-03-01 | 北京航天控制仪器研究所 | A kind of underwater sound signal synchronization point computing system and method based on buoy platform |
CN110336634A (en) * | 2018-04-23 | 2019-10-15 | 苏州拓夫电子科技有限公司 | The clock distribution of multiple subsystems and synchronous method in a kind of data transmission system |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102621954A (en) * | 2012-03-22 | 2012-08-01 | 上海许继电气有限公司 | Self-adaptive multi-signal-source time synchronization card device for smart grid and message analysis system |
-
2012
- 2012-09-26 CN CN201210362359.4A patent/CN102882743B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102621954A (en) * | 2012-03-22 | 2012-08-01 | 上海许继电气有限公司 | Self-adaptive multi-signal-source time synchronization card device for smart grid and message analysis system |
Non-Patent Citations (1)
Title |
---|
吴炜: ""具光电接口的IRIG_B码的时间同步系统与时滞校正"", 《中国优秀硕士学位论文全文数据库(电子期刊)》, 31 December 2011 (2011-12-31), pages 51 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110336634A (en) * | 2018-04-23 | 2019-10-15 | 苏州拓夫电子科技有限公司 | The clock distribution of multiple subsystems and synchronous method in a kind of data transmission system |
CN110336634B (en) * | 2018-04-23 | 2021-03-23 | 苏州拓夫电子科技有限公司 | Clock distribution and synchronization method for multiple subsystems in data transmission system |
CN109412734A (en) * | 2018-09-26 | 2019-03-01 | 北京航天控制仪器研究所 | A kind of underwater sound signal synchronization point computing system and method based on buoy platform |
Also Published As
Publication number | Publication date |
---|---|
CN102882743B (en) | 2015-07-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN207939521U (en) | A kind of clock synchronization apparatus towards digital transformer substation debugging | |
CN103036893A (en) | One-layer network data processing method suitable for intelligent substation | |
CN102064614B (en) | Method for fault inversion and communication inversion of digital substation based on IEC (International Electrotechnical Commission) 61850 standard | |
CN105391509B (en) | Network interface split-second precision scaling method based on FPGA | |
CN102664902A (en) | Hardware implementing method for kernels of POWERLINK communication protocol master and slave stations | |
CN105572516A (en) | Multifunctional FPGA acquisition unit with time reference output | |
CN101738931A (en) | IRIG-B (Inter-Range Instrumentation Group-B) code time hack device and time hack method thereof | |
CN102710012A (en) | Data resynchronization method for analyzing fault waveform of intelligent transformer substation | |
CN104038383A (en) | Switch based process level network message analysis method | |
CN104202131A (en) | Method for improving transmission real-time of sample data in electric power distribution network system | |
CN102882743B (en) | Method for generating multi-interval message acquisition time of intelligent transformer station | |
CN103840556A (en) | Method for sharing multi-interval transient traveling wave signals of intelligent substation in real time | |
CN205404700U (en) | Take multi -functional FPGA acquisition unit of time reference output | |
CN112671598A (en) | Special algorithm hardware module for electric power suitable for electric power system control protection device | |
CN102158381A (en) | Dual-mode network data acquisition device in smart grid and network data acquisition system | |
CN202334008U (en) | Multi-network-port high-speed data transmission architecture | |
CN102508423A (en) | IRIG-B (Inter-Range Instrumentation Group-B) time-setting method adopting enhanced capture module | |
CN113437997B (en) | Power line carrier communication method, device, equipment and medium | |
CN211606542U (en) | Optical message merging and distributing device with accurate time control | |
CN104348468A (en) | Pulse width self-adaptive single-bus receiver | |
CN203368439U (en) | Pulse-width self-adaptive single bus receiver | |
CN109309682B (en) | FT 3-IEC 61850-9-2 protocol conversion method and system for digital metering | |
CN203561840U (en) | Transformer station GPS time-setting IRIG-B decoder | |
CN202455336U (en) | Optical serial port self-adaptive decoding circuit | |
CN105487441A (en) | Substation lightning arrester data synchronous acquisition and transmission equipment and control method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |