CN102158282B - Optical fiber longitudinal difference protection device and synchronous communication method thereof - Google Patents

Optical fiber longitudinal difference protection device and synchronous communication method thereof Download PDF

Info

Publication number
CN102158282B
CN102158282B CN201010574844.9A CN201010574844A CN102158282B CN 102158282 B CN102158282 B CN 102158282B CN 201010574844 A CN201010574844 A CN 201010574844A CN 102158282 B CN102158282 B CN 102158282B
Authority
CN
China
Prior art keywords
module
signal
data
frame
fifo
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.)
Expired - Fee Related
Application number
CN201010574844.9A
Other languages
Chinese (zh)
Other versions
CN102158282A (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.)
Shanghai Sunrise Power Technology Co., Ltd.
Original Assignee
SHANGHAI SUNRISE POWER TECHNOLOGY Co 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 SHANGHAI SUNRISE POWER TECHNOLOGY Co Ltd filed Critical SHANGHAI SUNRISE POWER TECHNOLOGY Co Ltd
Priority to CN201010574844.9A priority Critical patent/CN102158282B/en
Publication of CN102158282A publication Critical patent/CN102158282A/en
Application granted granted Critical
Publication of CN102158282B publication Critical patent/CN102158282B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Optical Communication System (AREA)

Abstract

The invention discloses an optical fiber longitudinal difference protection device and a synchronous communication method thereof, which relate to the technical field of communication and aim at solving the technical problems of reducing hardware cost and simplifying software design. The device comprises a CPU (central processing unit) and an FPGA (field-programmable gate array), wherein a signal modulation module, a signal demodulation module, a sending FIFO (first-in first-out) module, a receiving FIFO module, a data frame encoding module, a data frame decoding module, a parallel-serial conversion module and a serial-parallel conversion module are built in the FPGA, wherein the input end of the sending FIFO module and the output end of the receiving FIFO module are connected with a parallel communication port of the CPU respectively; the output end of the sending FIFO module is sequentially connected with the data frame encoding module and the parallel-serial conversion module to the input end of the signal modulation module; and the output end of the signal demodulation module is sequentially connected with the serial-parallel conversion module and the data frame decoding module to the input end of the receiving FIFO module. The device has a low hardware cost and simple software design.

Description

Equipment for protecting optical fibre longitudinal difference and synchronized communication method thereof
Technical field
The present invention relates to the communication technology, particularly relate to the technology of a kind of equipment for protecting optical fibre longitudinal difference and synchronized communication method thereof.
Background technology
Relaying protection is the important leverage that power system safety and stability runs; and the development of Fibre Optical Communication Technology makes optical fiber obtain applying more and more widely in relaying protection, be that the Current Differential Protection of medium is just more and more paid close attention to because there being the incomparable various advantages of other protection forms and applying with optical fiber.
The optical-fiber longitudinal difference protection of electric power system is by being in two protective devices of diverse location by optical fiber communication interaction data; and realize sampling synchronously to realize longitudinal difference protection; synchronous communication must be adopted between two protective devices, and both sides can extract information lock in time easily in a stream.
As shown in Figure 2; existing fiber longitudinal differential protecting equipment is all by CPU(central processing unit), synchronous serial chip, FPGA(programmable gate array) form; signal madulation module and signal receiving module is built-in with in FPGA; the output of signal madulation module and the input of signal receiving module are connected to optical fiber transport channel through interface conversion circuit; utilize synchronous serial chip to realize transmitting-receiving and the encoding and decoding of data, utilize FPGA to carry out signal madulation to serial data and demodulation makes its applicable Optical Fiber Transmission.The mode that the synchronous serial chip that existing fiber longitudinal differential protecting equipment adopts adds FPGA has the high defect of hardware cost, and synchronous serial chip is encoded to data according to HDLC agreement, need when encoding to utilize opening flag and closing the location that flag realizes frame head and postamble of HDLC agreement, the form opening flag and pass flag due to it is " 01111110 ", for ensureing to open flag, close the uniqueness of flag, therefore when data encoding except, close in other data outside flag and often run into 5 continuous print " 1 " just automatic insertion one " 0 ", when data decode except, close in other data outside flag and often run into 5 continuous " 1 " just automatic deletion one " 0 ", but because the data of transmission are real-time change, make the number inserting " 0 " in a data frame also in change, and then make to adopt the data frame length of this coding method to be also uncertain, make the time needed for the transmission of every frame data also different, therefore first must carry out frame head identification when data frame transfer realize synchronous, and then data are read in time delay, its software processes more complicated, Software for Design is cumbersome.
Summary of the invention
For the defect existed in above-mentioned prior art, it is low that technical problem to be solved by this invention is to provide a kind of hardware cost, the simple equipment for protecting optical fibre longitudinal difference of Software for Design and synchronized communication method thereof.
In order to solve the problems of the technologies described above, a kind of equipment for protecting optical fibre longitudinal difference provided by the present invention, comprise CPU and FPGA, described CPU is provided with parallel communications mouth, the signal madulation module for serial signal being modulated to fiber-optic signal is built-in with in described FPGA, and for fiber-optic signal being demodulated into the signal receiving module of serial signal, the output of described signal madulation module and the input of signal receiving module are respectively connected to optical fiber transport channel through interface conversion circuit, it is characterized in that: in described FPGA, be also built-in with transmission fifo module, receive fifo module, Frame coding module, Frame decoder module, parallel serial conversion module, serioparallel exchange module,
The input of described transmission fifo module and the output of reception fifo module are connected respectively to the parallel communications mouth of CPU;
The output of described transmission fifo module successively connection data frame coding module, parallel serial conversion module to the input of signal madulation module;
The output of described signal receiving module connects serioparallel exchange module, Frame decoder module successively to the input receiving fifo module.
The synchronized communication method of equipment for protecting optical fibre longitudinal difference provided by the present invention, is characterized in that, in advance the length of packet is set to fixed length, and by the format setting of packet is:
Frame head+Frame+check code+bell idles;
Wherein, frame head is 10 " 0 ", inserts one " 1 " as boundary mark will between frame head and Frame, and insert one " 1 " after each byte in Frame as boundary mark will, check code is CRC(cyclic redundancy) check code, bell idles is complete " 1 ";
When sending data, data to be sent are first sent into and are sent in fifo module by CPU, send one again and send order to transmission fifo module, send after fifo module receives transmission order and send the data to Frame coding module, Frame coding module carries out coding packing according to the data packet length preset and form to the data received, and by the Packet Generation after coding to parallel serial conversion module, parallel serial conversion module sends to signal madulation module after the packet received is converted to serial signal, signal madulation module is sent to optical fiber transport channel by interface conversion circuit after serial signal is modulated to fiber-optic signal,
When receiving data, fiber-optic signal in optical fiber transport channel is sent to signal receiving module by interface conversion circuit, signal receiving module sends to serioparallel exchange module after fiber-optic signal is demodulated into serial signal, serioparallel exchange module sends Frame decoder module after serial signal is converted to parallel data bag, Frame decoder module according to preset data packet length and form to the decoding data received, decoded data are sent into and are received in fifo module, after receiving fifo module reception data, by sending interrupt mode notice CPU, have no progeny during CPU receives from receiving fifo module and read data.
Equipment for protecting optical fibre longitudinal difference provided by the invention and synchronized communication method thereof, the combination using single FPGA to instead of original synchronous serial interface chip to add FPGA, hardware cost can be saved, and have employed 10 " 0 " as frame head, have employed 1 " 1 " as the boundary mark will between byte, and fill complete " 1 " in room between check code to packet afterbody as bell idles, therefore what the data content no matter sent is, total energy ensures the uniqueness of frame head, and specifically should be used for saying for one, its data volume sent is certain, therefore the length of whole Frame and transmission time are also fixing, receiving terminal applies for the read operation of CPU again after whole data frame receipt can being completed, Software for Design can be simplified.
Accompanying drawing explanation
Fig. 1 is the structured flowchart of the equipment for protecting optical fibre longitudinal difference of the embodiment of the present invention;
Fig. 2 is the structured flowchart of existing fiber longitudinal differential protecting equipment.
Embodiment
Illustrate below in conjunction with accompanying drawing and be described in further detail embodiments of the invention, but the present embodiment is not limited to the present invention, every employing analog structure of the present invention and similar change thereof, all should list protection scope of the present invention in.
As shown in Figure 1, a kind of equipment for protecting optical fibre longitudinal difference that the embodiment of the present invention provides, comprise CPU(central processing unit) and FPGA(programmable gate array), described CPU is provided with parallel communications mouth, the signal madulation module for serial signal being modulated to fiber-optic signal is built-in with in described FPGA, and for fiber-optic signal being demodulated into the signal receiving module of serial signal, the output of described signal madulation module and the input of signal receiving module are respectively connected to optical fiber transport channel through interface conversion circuit, it is characterized in that: be also built-in with in described FPGA and send FIFO(first in first out) module, receive FIFO(first in first out) module, Frame coding module, Frame decoder module, parallel serial conversion module, serioparallel exchange module,
The input of described transmission fifo module and the output of reception fifo module are connected respectively to the parallel communications mouth of CPU;
The output of described transmission fifo module successively connection data frame coding module, parallel serial conversion module to the input of signal madulation module;
The output of described signal receiving module connects serioparallel exchange module, Frame decoder module successively to the input receiving fifo module.
The synchronized communication method of the equipment for protecting optical fibre longitudinal difference that the embodiment of the present invention provides, is characterized in that, in advance the length of packet is set to fixed length, and by the format setting of packet is:
Frame head+Frame+check code+bell idles;
Wherein, frame head is 10 " 0 ", inserts one " 1 " as boundary mark will between frame head and Frame, and insert one " 1 " after each byte in Frame as boundary mark will, check code is CRC(cyclic redundancy) check code, bell idles is complete " 1 ";
When sending data, data to be sent are first sent into and are sent in fifo module by CPU, send one again and send order to transmission fifo module, send after fifo module receives transmission order and send the data to Frame coding module, Frame coding module carries out coding packing according to the data packet length preset and form to the data received, and by the Packet Generation after coding to parallel serial conversion module, parallel serial conversion module sends to signal madulation module after the packet received is converted to serial signal, signal madulation module is sent to optical fiber transport channel by interface conversion circuit after serial signal is modulated to fiber-optic signal,
When receiving data, fiber-optic signal in optical fiber transport channel is sent to signal receiving module by interface conversion circuit, signal receiving module sends to serioparallel exchange module after fiber-optic signal is demodulated into serial signal, serioparallel exchange module sends Frame decoder module after serial signal is converted to parallel data bag, Frame decoder module according to preset data packet length and form to the decoding data received, decoded data are sent into and are received in fifo module, after receiving fifo module reception data, by sending interrupt mode notice CPU, have no progeny during CPU receives from receiving fifo module and read data.

Claims (1)

1. the synchronized communication method of an equipment for protecting optical fibre longitudinal difference, described equipment for protecting optical fibre longitudinal difference comprises CPU and FPGA, described CPU is provided with parallel communications mouth, the signal madulation module for serial signal being modulated to fiber-optic signal is built-in with in described FPGA, and for fiber-optic signal being demodulated into the signal receiving module of serial signal, the output of described signal madulation module and the input of signal receiving module are respectively connected to optical fiber transport channel through interface conversion circuit, it is characterized in that: in described FPGA, be also built-in with transmission fifo module, receive fifo module, Frame coding module, Frame decoder module, parallel serial conversion module, serioparallel exchange module,
The input of described transmission fifo module and the output of reception fifo module are connected respectively to the parallel communications mouth of CPU;
The output of described transmission fifo module successively connection data frame coding module, parallel serial conversion module to the input of signal madulation module;
The output of described signal receiving module connects serioparallel exchange module, Frame decoder module successively to the input receiving fifo module;
The synchronized communication method of described equipment for protecting optical fibre longitudinal difference, is characterized in that, in advance the length of packet is set to fixed length, and by the format setting of packet is:
Frame head+Frame+check code+bell idles;
Wherein, frame head is 10 " 0 ", inserts one " 1 " as boundary mark will between frame head and Frame, and insert one " 1 " after each byte in Frame as boundary mark will, check code is CRC(cyclic redundancy) check code, bell idles is complete " 1 ";
When sending data, data to be sent are first sent into and are sent in fifo module by CPU, send one again and send order to transmission fifo module, send after fifo module receives transmission order and send the data to Frame coding module, Frame coding module carries out coding packing according to the data packet length preset and form to the data received, and by the Packet Generation after coding to parallel serial conversion module, parallel serial conversion module sends to signal madulation module after the packet received is converted to serial signal, signal madulation module is sent to optical fiber transport channel by interface conversion circuit after serial signal is modulated to fiber-optic signal,
When receiving data, fiber-optic signal in optical fiber transport channel is sent to signal receiving module by interface conversion circuit, signal receiving module sends to serioparallel exchange module after fiber-optic signal is demodulated into serial signal, serioparallel exchange module sends Frame decoder module after serial signal is converted to parallel data bag, Frame decoder module according to preset data packet length and form to the decoding data received, decoded data are sent into and are received in fifo module, after receiving fifo module reception data, by sending interrupt mode notice CPU, have no progeny during CPU receives from receiving fifo module and read data.
CN201010574844.9A 2010-12-06 2010-12-06 Optical fiber longitudinal difference protection device and synchronous communication method thereof Expired - Fee Related CN102158282B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010574844.9A CN102158282B (en) 2010-12-06 2010-12-06 Optical fiber longitudinal difference protection device and synchronous communication method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010574844.9A CN102158282B (en) 2010-12-06 2010-12-06 Optical fiber longitudinal difference protection device and synchronous communication method thereof

Publications (2)

Publication Number Publication Date
CN102158282A CN102158282A (en) 2011-08-17
CN102158282B true CN102158282B (en) 2015-06-17

Family

ID=44439498

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010574844.9A Expired - Fee Related CN102158282B (en) 2010-12-06 2010-12-06 Optical fiber longitudinal difference protection device and synchronous communication method thereof

Country Status (1)

Country Link
CN (1) CN102158282B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104022824A (en) * 2014-06-21 2014-09-03 滁州惠智科技服务有限公司 LED street lamp system with communication function
CN107276053B (en) * 2017-07-13 2019-09-20 天津凯发电气股份有限公司 A kind of equipment for protecting optical fibre longitudinal difference and method of data synchronization
CN107357206A (en) * 2017-07-20 2017-11-17 郑州云海信息技术有限公司 A kind of method, apparatus and system of the computing optimization based on FPGA boards
CN111277327B (en) * 2020-01-21 2021-10-01 国网四川省电力公司 Line protection communication channel fault area identification method
CN114050890B (en) * 2021-11-10 2023-11-14 北京机电工程研究所 Multi-type information transmission device suitable for optical fiber network

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201145945Y (en) * 2007-11-01 2008-11-05 中国石油天然气集团公司 Multifunctional down-hole cable telemetry data transmission converter
CN101447988A (en) * 2008-11-25 2009-06-03 中国船舶重工集团公司第七0七研究所 A FPGA-based kilomega data communication card
CN101488265A (en) * 2008-01-14 2009-07-22 华为技术有限公司 Voice alarming system and voice alarming implementing method
CN201536371U (en) * 2009-09-25 2010-07-28 深圳市夏光通信测量技术有限公司 FPGA-based E1 test instrument with DDN PING function
CN101867452A (en) * 2010-06-10 2010-10-20 国网电力科学研究院 Communication method of serial real-time bus special in electricity
CN201868845U (en) * 2010-12-06 2011-06-15 上海申瑞电力科技股份有限公司 Optical longitudinal differential protection device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1246012A (en) * 1999-07-14 2000-03-01 邮电部武汉邮电科学研究院 Adaptation method for making internet be compatible with synchronous digital system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201145945Y (en) * 2007-11-01 2008-11-05 中国石油天然气集团公司 Multifunctional down-hole cable telemetry data transmission converter
CN101488265A (en) * 2008-01-14 2009-07-22 华为技术有限公司 Voice alarming system and voice alarming implementing method
CN101447988A (en) * 2008-11-25 2009-06-03 中国船舶重工集团公司第七0七研究所 A FPGA-based kilomega data communication card
CN201536371U (en) * 2009-09-25 2010-07-28 深圳市夏光通信测量技术有限公司 FPGA-based E1 test instrument with DDN PING function
CN101867452A (en) * 2010-06-10 2010-10-20 国网电力科学研究院 Communication method of serial real-time bus special in electricity
CN201868845U (en) * 2010-12-06 2011-06-15 上海申瑞电力科技股份有限公司 Optical longitudinal differential protection device

Also Published As

Publication number Publication date
CN102158282A (en) 2011-08-17

Similar Documents

Publication Publication Date Title
CN102158282B (en) Optical fiber longitudinal difference protection device and synchronous communication method thereof
CN108989708B (en) Low-speed control signal photoelectric conversion module of universal multimedia interface
CN101146102B (en) HDLC data uplink and downlink method and communication device in RRU network
CN106385390B (en) Method and system for realizing ten-gigabit Ethernet power port transmission based on FPGA
CN102196321A (en) Method for transmitting 100GE (100gigabit Ethernet) data in OTN (Optical Transport Network) and data sending device
WO2017219725A1 (en) Method and apparatus for frame data transmission between near-end device and remote device
CN104993982A (en) Ethernet realization system of FPGA chip internally provided with PHY transceiver function
CN201868845U (en) Optical longitudinal differential protection device
CN102523436A (en) Transmission terminal, receiving terminal, multi-channel video optical fiber transmission system and multi-channel video optical fiber transmission method
CN101355821B (en) Method and apparatus for transmitting 10G bit optical fiber channel service in optical transmission network
EP1648133B2 (en) A method for encapsulating data stream
CN110474692B (en) Optical communication device, optical communication system, data transmission method and storage medium
CN102223282A (en) Method for establishing virtual multi-Ethernet channel through optical fibre
CN105072058B (en) A kind of positive and negative phase coding method of data and data transmission method based on optical fiber transmission
CN103281773A (en) System and method for processing data
CN110838892B (en) High-reliability merging and forwarding method for multi-path full-duplex serial port
CN102420675B (en) Methods and devices for transmitting and receiving using state information of buffer of data message
KR101603674B1 (en) Method and Apparatus for Urgent Data Transmission
US9647782B2 (en) Frame synchronization for data transmission over an optical network
CN203135884U (en) Relay-protection multi-communication intelligent switching device
CN113867234B (en) Redundant communication system and method based on communication port of field bus PA coupler
CN102158400A (en) Communication interface of space-based route switching system and space-based route switching system
CN111475447B (en) High-speed serial transmission device based on LVDS and data transmission method
CN103532788B (en) EPON terminal use flow detection device
CN202331445U (en) High-speed data transmission device

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: SHANGHAI SUNRISE PROTECTIVE RELAY ELECTRIC CO.,LTD

Free format text: FORMER OWNER: SHANGHAI SUNRISE POWER AUTOMATION CO., LTD.

Effective date: 20130621

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

Effective date of registration: 20130621

Address after: 200233 Guiping Road, Xuhui District, No. 470, building 12, building 5, building

Applicant after: Shanghai Sunrise Power Technology Co., Ltd.

Address before: 200233 Shanghai City, Xuhui District Road No. 159 15 Tianzhou room unit 1301

Applicant before: Shanghai Sunrise Power Automation Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150617

Termination date: 20181206