CN102097784B - Relay protective optical fiber digital interface device - Google Patents
Relay protective optical fiber digital interface device Download PDFInfo
- Publication number
- CN102097784B CN102097784B CN201110026783.7A CN201110026783A CN102097784B CN 102097784 B CN102097784 B CN 102097784B CN 201110026783 A CN201110026783 A CN 201110026783A CN 102097784 B CN102097784 B CN 102097784B
- Authority
- CN
- China
- Prior art keywords
- module
- cpu
- input
- circuit
- output
- 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
Links
- 239000013307 optical fiber Substances 0.000 title claims abstract description 24
- 230000001681 protective effect Effects 0.000 title claims 5
- 238000006243 chemical reaction Methods 0.000 claims abstract description 40
- 238000009432 framing Methods 0.000 claims abstract description 19
- 238000004891 communication Methods 0.000 claims description 3
- 230000004069 differentiation Effects 0.000 claims 1
- 230000005540 biological transmission Effects 0.000 abstract description 21
- 230000009977 dual effect Effects 0.000 abstract description 4
- 238000000034 method Methods 0.000 description 14
- 230000003287 optical effect Effects 0.000 description 14
- 238000010586 diagram Methods 0.000 description 6
- 238000005070 sampling Methods 0.000 description 6
- 230000001934 delay Effects 0.000 description 2
- 238000002955 isolation Methods 0.000 description 2
- 230000009466 transformation Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000003908 quality control method Methods 0.000 description 1
Images
Landscapes
- Optical Communication System (AREA)
Abstract
本发明涉及继电保护光纤数字接口装置,包括开关量输入电路、开关量输出电路、两个CPU,开关量输入电路的输出端分别连入两CPU的输入端口,两CPU的输出端连入与门电路输入端,与门电路的输出端控制连接开关量输出电路;两CPU均分为发送部分和接收部分,输入各CPU信道的信号经过发送部分的延时判断模块、编码与组帧模块和码型变换模块处理后,发送给光电转换模块,CPU从光电转换模块接收的信号经过接收部分的码型逆变换模块、解帧和解码模块处理后由输出电路输出;本发明采用双CPU、双通道,实现了传输时间的提高、安全性和可靠性大幅提高。
The invention relates to an optical fiber digital interface device for relay protection, comprising a switching value input circuit, a switching value output circuit, and two CPUs, the output ends of the switching value input circuit are respectively connected to the input ports of the two CPUs, and the output ends of the two CPUs are connected to the The input terminal of the gate circuit and the output terminal of the AND gate circuit are connected to the switching value output circuit; the two CPUs are divided into a sending part and a receiving part, and the signals input to each CPU channel pass through the delay judgment module of the sending part, the encoding and framing module and After the code conversion module is processed, it is sent to the photoelectric conversion module, and the signal received by the CPU from the photoelectric conversion module is output by the output circuit after being processed by the code type inverse conversion module, deframing and decoding module of the receiving part; the present invention adopts dual CPUs, dual The channel has realized the improvement of the transmission time, and the security and reliability have been greatly improved.
Description
技术领域 technical field
本发明属于继电保护技术领域,涉及一种高集成的继电保护光纤数字接口装置。 The invention belongs to the technical field of relay protection and relates to a highly integrated optical fiber digital interface device for relay protection.
背景技术 Background technique
继电保护光纤数字接口装置是利用光传输通道,专门用于传送继电保护信号的具有单一功能的电力设备,可以传输多个继电保护的命令信号,它区别于电力线载波收发信机。继电保护光纤数字接口装置是用来传输继电保护跳闸信号的,所以对传输时间的要求比较高,一般几个毫秒以内;另外对命令的传输可靠性、装置的稳定性要求也很高,如果因为错误的命令或者丢失命令造成保护拒动或者误动,那么损失是不可想象的。 The optical fiber digital interface device for relay protection is a power device with a single function specially used to transmit relay protection signals by using optical transmission channels. It can transmit multiple command signals for relay protection, which is different from power line carrier transceivers. The relay protection optical fiber digital interface device is used to transmit the relay protection trip signal, so the requirements for the transmission time are relatively high, generally within a few milliseconds; in addition, the requirements for the transmission reliability of the command and the stability of the device are also very high. If the protection refuses to move or malfunctions due to wrong or lost orders, the loss is unimaginable.
现有的一种继电保护光纤通信接口装置如图1所示,该装置由一块CPU芯片通过中断检测到命令信号,然后把信号通过串口传送到SCC串口通信控制器及外围芯片电路,然后编码解码,再进行光电转换。该装置的关键电路是串连接,关键节点比较多,相互之间传输数据有一定的延时;当任一个关键节点出现故障,整台设备就停止运行,增加故障率;数据传输环节多,增加了不可靠性;如果发送命令和接受命令同时启动,可能引起并行冲突,增加了不可靠性。 An existing optical fiber communication interface device for relay protection is shown in Figure 1. The device detects the command signal through an interrupt by a CPU chip, and then transmits the signal to the SCC serial port communication controller and the peripheral chip circuit through the serial port, and then encodes Decoding, and then photoelectric conversion. The key circuit of the device is connected in series, there are many key nodes, and there is a certain delay in transmitting data between each other; when any key node fails, the entire device will stop running, increasing the failure rate; there are many data transmission links, increasing This increases unreliability; if sending commands and receiving commands starts at the same time, it may cause parallel conflicts and increase unreliability.
发明内容 Contents of the invention
本发明的目的是提供一种双通道继电保护光纤数字接口装置,以解决现有接口装置故障率高、可靠性和稳定性差的问题。 The purpose of the present invention is to provide a dual-channel relay protection optical fiber digital interface device to solve the problems of high failure rate, poor reliability and stability of the existing interface device.
为实现上述目的,本发明的继电保护光纤数字接口装置,包括开关量输入电路、开关量输出电路和CPU,开关量输入电路的输出端连入CPU的输入端口,CPU控制连接开关量输出电路,所述CPU分为发送部分和接收部分,发送部分包括延时判断模块、编码与组帧模块和码型变换模块,接收部分包括码型逆变换模块、解帧和解码模块;输入CPU的信号经过发送部分的延时判断模块、编码与组帧模块和码型变换模块处理后,发送给光电转换模块,CPU从光电转换模块接收的信号经过接收部分的码型逆变换模块、解帧和解码模块处理后由输出电路输出。 In order to achieve the above object, the relay protection optical fiber digital interface device of the present invention comprises a switching value input circuit, a switching value output circuit and a CPU, the output end of the switching value input circuit is connected to the input port of the CPU, and the CPU controls and connects the switching value output circuit , the CPU is divided into a sending part and a receiving part, and the sending part includes a delay judgment module, an encoding and framing module and a pattern conversion module, and the receiving part includes a pattern inverse transformation module, an unframing and a decoding module; the signal input to the CPU After being processed by the delay judgment module, encoding and framing module and code conversion module of the sending part, it is sent to the photoelectric conversion module, and the signal received by the CPU from the photoelectric conversion module passes through the code inverse conversion module of the receiving part, deframes and decodes After processing by the module, it is output by the output circuit.
进一步的,所述CPU为具有并行处理能力的CPLD芯片。 Further, the CPU is a CPLD chip with parallel processing capability.
进一步的,还包括服务单元,该服务单元与所述CPU相连,服务单元上设有与人机界面通讯连接的接口。 Further, it also includes a service unit, the service unit is connected to the CPU, and the service unit is provided with an interface for communicating with the man-machine interface.
进一步的,所述服务单元为一单片机。 Further, the service unit is a single-chip microcomputer.
进一步的,所述CPU接收部分还包括判别时间模块和输出扩展模块,所述信号经解码模块、判别时间模块、输出扩展模块处理后由输出端输出。 Further, the CPU receiving part also includes a discrimination time module and an output expansion module, and the signal is output by the output terminal after being processed by the decoding module, the discrimination time module and the output expansion module.
本发明的另一继电保护光纤数字接口装置技术方案为:包括开关量输入电路、开关量输出电路,还包括两个CPU,两CPU分别与各自的光纤通道组成两路独立信道,所述开关量输入电路的输出端分别连入两CPU的输入端口,两CPU的输出端连入与门电路输入端,与门电路的输出端控制连接开关量输出电路;所述两个CPU均分为发送部分和接收部分,发送部分包括延时判断模块、编码与组帧模块和码型变换模块,接收部分包括码型逆变换模块、解帧和解码模块;输入各CPU信道的信号经过发送部分的延时判断模块、编码与组帧模块和码型变换模块处理后,发送给光电转换模块,CPU从光电转换模块接收的信号经过接收部分的码型逆变换模块、解帧和解码模块处理后由输出电路输出。 The technical scheme of another optical fiber digital interface device for relay protection of the present invention is as follows: it includes a switching value input circuit, a switching value output circuit, and two CPUs, and the two CPUs respectively form two independent channels with their respective optical fiber channels, and the switch The output terminals of the quantity input circuit are respectively connected to the input ports of the two CPUs, the output terminals of the two CPUs are connected to the input terminals of the AND gate circuit, and the output terminals of the AND gate circuit are connected to the switching value output circuit; the two CPUs are equally divided into sending Part and receiving part, the sending part includes a delay judgment module, encoding and framing module and code conversion module, the receiving part includes a code inverse conversion module, deframing and decoding module; the signal input to each CPU channel passes through the delay of the sending part After being processed by the timing judgment module, encoding and framing module and code conversion module, it is sent to the photoelectric conversion module, and the signal received by the CPU from the photoelectric conversion module is processed by the code inverse conversion module, deframing and decoding module of the receiving part, and then output circuit output.
进一步的,所述CPU为具有并行处理能力的CPLD芯片。 Further, the CPU is a CPLD chip with parallel processing capability.
进一步的,还包括两单片机,单片机上设有与人机界面通讯连接的接口,两个单片机与所述两CPU对应相连。 Further, it also includes two single-chip microcomputers, the single-chip microcomputers are provided with an interface for communicating with the man-machine interface, and the two single-chip microcomputers are correspondingly connected to the two CPUs.
进一步的,所述CPU接收部分还包括判别时间模块和输出扩展模块,所述信号经解码模块、判别时间模块、输出扩展模块处理后由输出端输出。 Further, the CPU receiving part also includes a discrimination time module and an output expansion module, and the signal is output by the output terminal after being processed by the decoding module, the discrimination time module and the output expansion module.
进一步的,所述与门电路没有输入命令时,与门的输入是高电平,命令来到后,输入改为低电平。 Further, when there is no command input to the AND gate circuit, the input of the AND gate is at high level, and when the command comes, the input changes to low level.
本发明的继电保护光纤数字接口装置,CPU分为发送部分和接收部分,发送部分包括延时判断模块、编码与组帧模块和码型变换模块,接收部分包括码型逆变换模块、解帧和解码模块,使得命令发送和接收、编码和解码能同时进行,且都能在CPU内部实现,减少命令传输环节,关键元器件减少到一个,使得接口装置的可靠性、稳定性、命令传输时间有了大幅提高。CPU采用具备并行处理能力的CPLD芯片,如果多个命令同时到达,采用CPLD的并行处理特性,可以并行处理命令信号,不会造成命令丢失。 In the optical fiber digital interface device for relay protection of the present invention, the CPU is divided into a sending part and a receiving part, the sending part includes a delay judgment module, an encoding and framing module and a code conversion module, and the receiving part includes a code inverse conversion module, a deframing module, and a code conversion module. And decoding module, so that the command sending and receiving, encoding and decoding can be carried out at the same time, and can be realized inside the CPU, reducing the command transmission link, reducing the key components to one, making the reliability, stability and command transmission time of the interface device There has been a substantial improvement. The CPU uses a CPLD chip with parallel processing capabilities. If multiple commands arrive at the same time, the parallel processing characteristics of the CPLD can be used to process command signals in parallel without causing loss of commands.
本发明的另一继电保护光纤数字接口装置,采用两个CPU及各自光纤通道构成的双通道,增加了可靠性和稳定性;每个CPU分为发送部分和接收部分,发送部分包括延时判断模块、编码与组帧模块和码型变换模块,接收部分包括码型逆变换模块、解帧和解码模块,这样在命令的检测、传输、解码编码、输出接收过程全部在CPU内部实现,减少命令传输环节,关键元器件减少到一个,使得接口装置的可靠性、稳定性、命令传输时间有了大幅提高。CPU采用具备并行处理能力的CPLD芯片,如果多个命令同时到达,采用CPLD的并行处理特性,可以并行处理命令信号,不会造成命令丢失。本发明的接口装置运行稳定可靠,用质量控制计算方法计算故障率,同现有的接口装置相比降低了三个量级,从而提高了电力系统运行的稳定性,采用可靠的编解码技术,增加命令的可靠性,同时也降低了维护费用,这对用户和生产厂家都是一笔不小的费用。 Another relay protection optical fiber digital interface device of the present invention adopts dual channels formed by two CPUs and respective optical fiber channels, which increases reliability and stability; each CPU is divided into a sending part and a receiving part, and the sending part includes a delay Judgment module, encoding and framing module and code conversion module, the receiving part includes code conversion module, deframing and decoding module, so that the process of command detection, transmission, decoding and encoding, and output receiving are all realized inside the CPU, reducing In the command transmission link, the key components are reduced to one, which greatly improves the reliability, stability and command transmission time of the interface device. The CPU uses a CPLD chip with parallel processing capabilities. If multiple commands arrive at the same time, the parallel processing characteristics of the CPLD can be used to process command signals in parallel without causing loss of commands. The interface device of the present invention is stable and reliable in operation, and the failure rate is calculated by the quality control calculation method, which is reduced by three orders of magnitude compared with the existing interface device, thereby improving the stability of the power system operation, and adopting reliable encoding and decoding technology, The reliability of the command is increased, and the maintenance cost is reduced at the same time, which is not a small expense for the user and the manufacturer.
附图说明 Description of drawings
图1是现有接口装置的原理框图; Fig. 1 is a functional block diagram of an existing interface device;
图2是本发明接口装置实施例的原理框图; Fig. 2 is a functional block diagram of an embodiment of the interface device of the present invention;
图3是本发明双通道接口装置的原理框图; Fig. 3 is a functional block diagram of the dual-channel interface device of the present invention;
图4是本发明CPLD的原理框图。 Fig. 4 is a functional block diagram of the CPLD of the present invention.
具体实施方式 Detailed ways
一、继电保护光纤数字接口装置(单通道) 1. Optical fiber digital interface device for relay protection (single channel)
本发明的继电保护光纤数字接口装置如图2、图4所示,该实施例的继电保护光纤数字接口装置包括开关量输入电路、开关量输出电路、一个CPU和服务单元,CPU为具有并行处理能力的CPLD芯片,服务单元上设有与人机接口界面通讯连接的接口,服务单元为一单片机,开关量输入电路的输出端连入CPLD芯片的输入端口,CPLD芯片控制连接开关量输出电路,CPLD芯片分为发送部分和接收部分,发送部分设有输入延时即延时判断模块、抽样模块、编码与组帧模块、码型变换模块;接收部分设有码型逆变换模块、同步模块、解帧模块、解码模块、判别时间模块和输出扩展模块。 The relay protection optical fiber digital interface device of the present invention is shown in Fig. 2, Fig. 4, and the relay protection optical fiber digital interface device of this embodiment comprises switch quantity input circuit, switch quantity output circuit, a CPU and service unit, and CPU has CPLD chip with parallel processing capability, the service unit is provided with an interface for communicating with the man-machine interface interface, the service unit is a single-chip microcomputer, the output end of the switch input circuit is connected to the input port of the CPLD chip, and the CPLD chip controls the connection switch output circuit, the CPLD chip is divided into a sending part and a receiving part. The sending part is equipped with an input delay or delay judgment module, a sampling module, an encoding and framing module, and a code conversion module; the receiving part is provided with a code inverse conversion module, synchronization module, deframing module, decoding module, discrimination time module and output expansion module.
开关量输入电路主要是将外部保护输入的命令信号经光耦隔离变换成装置内部的逻辑电平。开关量输出电路主要是将所接收到的命令信号变换成相应的接点输出。装置的核心是CPLD,它收到命令信号后,经过发送部分的输入延时模块、抽样模块、然后编码、组帧,再经过码位变换,发送给光电转换模块,转换成光信号;由于CPLD具有并行处理能力,它在发送的同时,也把从光电模块接收到的数据经过接收部分的码型逆变换模块进行码位变换,然后解帧、解码,经过可选的延时,把命令信号送到命令输出回路。服务单元是一个单片机,它在上电时做一些初始化工作,给CPLD提供收发延时的参数,另外做一些其他事务的管理工作,但它不参与命令的传输。 The switching value input circuit is mainly to transform the command signal input by the external protection into the logic level inside the device through optocoupler isolation. The switching value output circuit mainly transforms the received command signal into corresponding contact output. The core of the device is the CPLD. After receiving the command signal, it passes through the input delay module and sampling module of the sending part, then encodes, frames, and then undergoes code bit conversion, and then sends it to the photoelectric conversion module to convert it into an optical signal; because CPLD It has parallel processing capability. While sending, it also converts the data received from the photoelectric module through the code inverse conversion module of the receiving part, and then deframes and decodes the command signal. sent to the command output loop. The service unit is a single-chip microcomputer. It does some initialization work when it is powered on, provides parameters for sending and receiving delays to the CPLD, and manages other affairs, but it does not participate in the transmission of commands.
CPLD芯片中还设有与单片机相连的锁存器1、锁存器2和缓冲器。 The CPLD chip is also provided with a latch 1, a latch 2 and a buffer connected to the microcontroller. the
依据图4,对CPLD芯片原理框图说明如下: According to Figure 4, the block diagram of the CPLD chip is explained as follows:
标号为输入到缓冲器中①~⑨的数据分别为: The data marked as input into the buffer ①~⑨ are respectively:
①.1…4命令通道的发命令状态; ①.1...4 command channel sending status;
②.5…8命令通道的发命令状态; ②.5...8 command channel sending status;
③.1…4命令通道的收命令状态; ③.1...4 command channel receiving status;
④.5…8命令通道的收命令状态; ④.5...8 command channel receiving command status;
⑤.接收告警; ⑤. Receive alarm;
⑥.误码率告警; ⑥. BER alarm;
⑦.帧失步告警; ⑦. Out-of-frame alarm ;
⑧.光路A中断(光路接收告警A); ⑧. Optical path A is interrupted (optical path receiving alarm A);
⑨.光路B中断(光路接收告警B)。 ⑨. Optical path B is interrupted (optical path receiving alarm B).
发送部分sending part
1)输入延时模块 1) Input delay module
延时模块可以避免将噪声误认为“命令”状态。在输入命令信号发现低电平时延时模块开始工作。延时模块的工作时钟为64k,延迟的时间就是对时钟脉冲的计数。 A delay block prevents noise from being mistaken for a "command" state. The delay module starts to work when the input command signal finds a low level. The working clock of the delay module is 64k, and the delay time is the count of clock pulses.
2)抽样模块 2) Sampling module
数据发送的时钟频率为64K,一帧的数据共80比特,发送时间为1.25ms,因此两帧之间发送时间间隔为1.25ms;故每隔1.25ms需要对命令信号抽样一次。 The clock frequency of data transmission is 64K, the data in one frame is 80 bits in total, and the transmission time is 1.25ms, so the transmission time interval between two frames is 1.25ms; therefore, the command signal needs to be sampled every 1.25ms.
3)编码与组帧模块 3) Coding and framing module
编码与组帧均受到命令方式的控制。将前4命令称为A组命令,后4命令称为B组命令,4命令工作方式的时候只需对A组命令的命令信号进行编码、组帧、发送,8命令工作方式的时候则需要对A、B两组命令交替进行编码组帧发送等过程。编解码采用48位分组码,该种方法能对48位中出现低于24位的误码给予纠正,增加了传输的可靠性。 Both encoding and framing are controlled by command mode. The first 4 commands are called group A commands, and the last 4 commands are called group B commands. In the working mode of 4 commands, it is only necessary to encode, frame and send the command signals of the commands in group A. In the working mode of 8 commands, it is necessary to Alternately carry out the process of coding, grouping and frame sending for the two groups of commands A and B. Encoding and decoding adopts 48-bit block code, which can correct errors of less than 24 bits in 48 bits and increase the reliability of transmission.
4)码型变换模块 4) code conversion module
经过编码与组帧模块输出数据也就是移位寄存器移出的数据的时钟频率为64khz,把这些数据转化成256khz的信号,把数据1变成1100,把数据0变成1010。 After the encoding and framing module outputs the data, that is, the clock frequency of the data shifted out by the shift register is 64khz, convert these data into 256khz signals, change data 1 into 1100, and change data 0 into 1010.
接收部分receiving part
1)码型逆变换模块 1) Code inversion module
CPLD从码型变换电路接收到数据形式为1100或1010,需要把1100转化成1,1010转化成0,码型逆变换模块就是完成这样的功能的。 The CPLD receives data in the form of 1100 or 1010 from the code conversion circuit. It needs to convert 1100 into 1 and 1010 into 0. The code inverse conversion module completes such a function. the
2)同步模块 2) Synchronization module
在解帧解码之前需要进行同步,同步的整个过程包括搜索与跟踪两个过程,刚开机或者处于帧失步状态的时候首先要搜索同步头。完成了同步就可以进行解帧,解帧的同时还要跟踪同步,以避免失步重新进入搜索的状态。 Synchronization is required before frame decoding. The whole process of synchronization includes two processes of search and tracking. When the device is just turned on or in a frame out-of-sync state, the synchronization header must be searched first. After the synchronization is completed, the frame can be deframed, and the synchronization must be tracked at the same time to avoid out-of-synchronization and re-enter the search state.
3)解帧模块 3) Deframing module
达到同步后就可以进行解帧,数据处理单元中共有四种帧,分别为A组命令帧,B组命令帧(分别对应于前四命令,后四命令),记录帧,其它的辅助帧(设置帧、请求帧),帧之间的区别就是在组帧时加上不同的帧识别标志,具体的区别是同步头后面的8比特数据。 After the synchronization is achieved, the frame can be deframed. There are four types of frames in the data processing unit, which are group A command frames, group B command frames (corresponding to the first four commands and the last four commands respectively), record frames, and other auxiliary frames ( Set frame, request frame), the difference between frames is to add different frame identification marks when framing, the specific difference is the 8-bit data behind the synchronization header.
4)解码模块 4) Decoding module
命令解码是命令编码的逆过程。 Command decoding is the reverse process of command encoding.
5)判别时间模块 5) Discrimination time module
判别时间与输入延时的作用完全一样,唯一的差别在判别时间模块是对输出命令的延时,而输入延时是对输入命令的延时。 The function of the judgment time and the input delay is exactly the same, the only difference is that the judgment time module is the delay of the output command, and the input delay is the delay of the input command.
6)输出扩展模块 6) Output expansion module
输出扩展就是对命令的有效状态(命令为低电平)进行扩展,为了系统的正常工作而对命令进行的一种处理。 Output expansion is to expand the valid state of the command (command is low level), and to process the command for the normal operation of the system.
二、继电保护光纤数字接口装置(双通道) 2. Relay protection optical fiber digital interface device (dual channel)
本发明的双通道继电保护光纤数字接口装置如图3所示,该接口装置包括开关量输入电路、开关量输出电路,两个CPU、两个服务单元,两服务单元均为单片机,单片机上设有与人机界面通讯连接的接口,两CPU均采用具有并行处理能力的CPLD芯片,两CPLD芯片分别与各自的光纤通道组成两路独立信道,开关量输入电路的输出端分别连入两CPLD芯片的输入端口,两CPLD芯片的输出端连入与门电路的输入端,与门电路的输出端控制连接开关量输出电路;两个CPLD芯片如图4所示均分为发送部分和接收部分。发送部分设有输入延时即延时判断模块、抽样模块、编码与组帧模块、码型变换模块;接收部分设有码型逆变换模块、同步模块、解帧模块、解码模块、判别时间模块和输出扩展模块。 The dual-channel relay protection optical fiber digital interface device of the present invention is shown in Figure 3, and the interface device includes a switching value input circuit, a switching value output circuit, two CPUs, and two service units, both of which are single-chip microcomputers. There is an interface for communicating with the man-machine interface. Both CPUs use CPLD chips with parallel processing capabilities. The two CPLD chips form two independent channels with their respective optical fiber channels. The output terminals of the switch input circuit are respectively connected to two CPLDs. The input port of the chip, the output ends of the two CPLD chips are connected to the input end of the AND gate circuit, and the output end of the AND gate circuit is connected to the switching value output circuit; the two CPLD chips are equally divided into a sending part and a receiving part as shown in Figure 4 . The sending part is equipped with an input delay or delay judgment module, a sampling module, an encoding and framing module, and a pattern conversion module; the receiving part is equipped with a pattern inverse transformation module, a synchronization module, a deframing module, a decoding module, and a time discrimination module and output expansion modules.
开关量输入电路主要是将外部保护输入的命令信号经光耦隔离变换成装置内部的逻辑电平。开关量输出电路主要是将所接收到的命令信号变换成相应的接点输出。装置的核心是CPLD,它收到命令信号后,经过发送部分的输入延时模块,抽样模块、然后编码、组帧,再经过码位变换,发送给光电转换模块,转换成光信号;由于CPLD具有并行处理能力,它在发送的同时,也把从光电模块接收到的数据经过接收部分的码型逆变换模块进行码位变换,然后解帧、解码,经过可选的延时,把命令信号送到命令输出回路。服务单元是一个单片机,它在上电时做一些初始化工作,给CPLD提供收发延时的参数,另外做一些其他事务的管理工作,但它不参与命令的传输。 The switching value input circuit is mainly to transform the command signal input by the external protection into the logic level inside the device through optocoupler isolation. The switching value output circuit mainly transforms the received command signal into corresponding contact output. The core of the device is the CPLD. After receiving the command signal, it passes through the input delay module of the sending part, the sampling module, then encodes, frames, and then undergoes code bit conversion, and then sends it to the photoelectric conversion module to convert it into an optical signal; because CPLD It has parallel processing capability. While sending, it also converts the data received from the photoelectric module through the code inverse conversion module of the receiving part, and then deframes and decodes the command signal. sent to the command output loop. The service unit is a single-chip microcomputer. It does some initialization work when it is powered on, provides parameters for sending and receiving delays to the CPLD, and manages other affairs, but it does not participate in the transmission of commands.
CPLD(A)和CPLD(B)和各自的光纤通道组成两路独立信道。接口装置收到的命令信号同时传送到CPLD(A)和CPLD(B),它们分别工作,把命令信号送入光通道;再把从各自光通道收到的光信号转变成命令信号,两路命令信号经过与门电路处理后,变成一路信号,由输出电路输出。 CPLD (A) and CPLD (B) and their respective fiber channels form two independent channels. The command signal received by the interface device is transmitted to CPLD (A) and CPLD (B) at the same time, they work separately, and send the command signal to the optical channel; then convert the optical signal received from the respective optical channel into a command signal, two-way After the command signal is processed by the AND gate circuit, it becomes a signal and is output by the output circuit.
与门电路,在没有命令时,与门的输入是高电平,命令来到后,输入就改为低电平,这样,两路传输信道,只要有一路正确传输,经过与门电路后,都可以正确输出命令信号。这样可靠性就得到保证。 In the AND gate circuit, when there is no command, the input of the AND gate is at a high level. After the command comes, the input is changed to a low level. In this way, as long as one of the two transmission channels is correctly transmitted, after passing through the AND gate circuit, The command signal can be output correctly. This way reliability is guaranteed.
CPLD芯片中还设有与单片机相连的锁存器1、锁存器2和缓冲器。 The CPLD chip is also provided with a latch 1, a latch 2 and a buffer connected to the microcontroller. the
依据图4,对CPLD芯片原理框图说明如下: According to Figure 4, the block diagram of the CPLD chip is explained as follows:
标号为输入到缓冲器中①~⑨的数据分别为: The data marked as input into the buffer ①~⑨ are respectively:
①.1…4命令通道的发命令状态; ①.1...4 command channel sending status;
②.5…8命令通道的发命令状态; ②.5...8 command channel sending status;
③.1…4命令通道的收命令状态; ③.1...4 command channel receiving status;
④.5…8命令通道的收命令状态; ④.5...8 command channel receiving command status;
⑤.接收告警; ⑤. Receive alarm;
⑥.误码率告警; ⑥. BER alarm;
⑦.帧失步告警; ⑦. Out-of-frame alarm ;
⑧.光路A中断(光路接收告警A); ⑧. Optical path A is interrupted (optical path receiving alarm A);
⑨.光路B中断(光路接收告警B)。 ⑨. Optical path B is interrupted (optical path receiving alarm B).
发送部分sending part
1)输入延时模块 1) Input delay module
延时模块可以避免将噪声误认为“命令”状态。在输入命令信号发现低电平时延时模块开始工作。延时模块的工作时钟为64k,延迟的时间就是对时钟脉冲的计数。 A delay block prevents noise from being mistaken for a "command" state. The delay module starts to work when the input command signal finds a low level. The working clock of the delay module is 64k, and the delay time is the count of clock pulses.
2)抽样模块 2) Sampling module
数据发送的时钟频率为64K,一帧的数据共80比特,发送时间为1.25ms,因此两帧之间发送时间间隔为1.25ms;故每隔1.25ms需要对命令信号抽样一次。 The clock frequency of data transmission is 64K, the data in one frame is 80 bits in total, and the transmission time is 1.25ms, so the transmission time interval between two frames is 1.25ms; therefore, the command signal needs to be sampled every 1.25ms.
3)编码与组帧模块 3) Coding and framing module
编码与组帧均受到命令方式的控制。将前4命令称为A组命令,后4命令称为B组命令,4命令工作方式的时候只需对A组命令的命令信号进行编码、组帧、发送,8命令工作方式的时候则需要对A、B两组命令交替进行编码组帧发送等过程。编解码采用48位分组码,该种方法能对48位中出现低于24位的误码给予纠正,增加了传输的可靠性。 Both encoding and framing are controlled by command mode. The first 4 commands are called group A commands, and the last 4 commands are called group B commands. In the working mode of 4 commands, it is only necessary to encode, frame and send the command signals of the commands in group A. In the working mode of 8 commands, it is necessary to Alternately carry out the process of coding, grouping and frame sending for the two groups of commands A and B. Encoding and decoding adopts 48-bit block code, which can correct errors of less than 24 bits in 48 bits and increase the reliability of transmission.
4)码型变换模块 4) code conversion module
经过编码与组帧模块输出数据也就是移位寄存器移出的数据的时钟频率为64khz,把这些数据转化成256khz的信号,把数据1变成1100,把数据0变成1010。 After the encoding and framing module outputs the data, that is, the clock frequency of the data shifted out by the shift register is 64khz, convert these data into 256khz signals, change data 1 into 1100, and change data 0 into 1010.
接收部分receiving part
1)码型逆变换模块 1) Code inversion module
CPLD从码型变换电路接收到数据形式为1100或1010,需要把1100转化成1,1010转化成0,码型逆变换模块就是完成这样的功能的。 The CPLD receives data in the form of 1100 or 1010 from the code conversion circuit. It needs to convert 1100 into 1 and 1010 into 0. The code inverse conversion module completes such a function. the
2)同步模块 2) Synchronization module
在解帧解码之前需要进行同步,同步的整个过程包括搜索与跟踪两个过程,刚开机或者处于帧失步状态的时候首先要搜索同步头。完成了同步就可以进行解帧,解帧的同时还要跟踪同步,以避免失步重新进入搜索的状态。 Synchronization is required before frame decoding. The whole process of synchronization includes two processes of search and tracking. When the device is just turned on or in a frame out-of-sync state, the synchronization header must be searched first. After the synchronization is completed, the frame can be deframed, and the synchronization must be tracked at the same time to avoid out-of-synchronization and re-enter the search state.
3)解帧模块 3) Deframing module
达到同步后就可以进行解帧,数据处理单元中共有四种帧,分别为A组命令帧,B组命令帧(分别对应于前四命令,后四命令),记录帧,其它的辅助帧(设置帧、请求帧),帧之间的区别就是在组帧时加上不同的帧识别标志,具体的区别是同步头后面的8比特数据。 After the synchronization is achieved, the frame can be deframed. There are four types of frames in the data processing unit, which are group A command frames, group B command frames (corresponding to the first four commands and the last four commands respectively), record frames, and other auxiliary frames ( Set frame, request frame), the difference between frames is to add different frame identification marks when framing, the specific difference is the 8-bit data behind the synchronization header.
4)解码模块 4) Decoding module
命令解码是命令编码的逆过程。 Command decoding is the reverse process of command encoding.
5)判别时间模块 5) Discrimination time module
判别时间与输入延时的作用完全一样,唯一的差别在判别时间模块是对输出命令的延时,而输入延时是对输入命令的延时。 The function of the judgment time and the input delay is exactly the same, the only difference is that the judgment time module is the delay of the output command, and the input delay is the delay of the input command.
6)输出扩展模块 6) Output expansion module
输出扩展就是对命令的有效状态(命令为低电平)进行扩展,为了系统的正常工作而对命令进行的一种处理。 Output expansion is to expand the valid state of the command (command is low level), and to process the command for the normal operation of the system.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110026783.7A CN102097784B (en) | 2011-01-25 | 2011-01-25 | Relay protective optical fiber digital interface device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110026783.7A CN102097784B (en) | 2011-01-25 | 2011-01-25 | Relay protective optical fiber digital interface device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102097784A CN102097784A (en) | 2011-06-15 |
CN102097784B true CN102097784B (en) | 2014-02-05 |
Family
ID=44130704
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110026783.7A Expired - Fee Related CN102097784B (en) | 2011-01-25 | 2011-01-25 | Relay protective optical fiber digital interface device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102097784B (en) |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07322477A (en) * | 1994-05-19 | 1995-12-08 | Hitachi Ltd | Protection relay device using optical cable |
JPH08274718A (en) * | 1995-03-29 | 1996-10-18 | Nec Corp | Interface device |
CN101162839B (en) * | 2007-10-24 | 2010-11-24 | 国电南瑞科技股份有限公司 | Circuit relay protection information exchange method and device thereof |
CN201134808Y (en) * | 2007-11-30 | 2008-10-15 | 南京中德保护控制系统有限公司 | Optical fiber channel simulation apparatus of circuit differential protection |
CN101350519B (en) * | 2008-09-12 | 2011-12-14 | 南京因泰莱电器股份有限公司 | Real-time synchronization equipment for protecting optical fibre longitudinal difference |
CN201438636U (en) * | 2009-07-22 | 2010-04-14 | 天津市电力公司 | Simple bus differential protection device for digital transformer station |
-
2011
- 2011-01-25 CN CN201110026783.7A patent/CN102097784B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN102097784A (en) | 2011-06-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110445533B (en) | Dual-redundancy optical fiber Ethernet transmission system | |
CN102386970B (en) | Optical network unit (ONU) device of EPON (Ethernet Passive Optical Network) system and protection switching method for same | |
US9455821B2 (en) | Method, system, and apparatus for dynamically adjusting link | |
CN108259127B (en) | PCIE dual-redundancy ten-gigabit network IP core | |
US8660125B2 (en) | Node device, integrated circuit and control method in ring transmission system | |
CN105743566B (en) | A kind of double-PON port ONU optical link pretection switch devices and guard method | |
CN102761396B (en) | High-speed serial interface based on FPGA (Field Programmable Gate Array) | |
CN102984059B (en) | Gigabit Ethernet redundancy network interface card and link switching condition criterion output control method thereof | |
CN101800599A (en) | Optical fiber circuit-protecting equipment and system | |
JPH04117743A (en) | optical transceiver | |
CN101374115B (en) | Rapid discriminating multiport control method based on PROFIBUS packet | |
CN205179046U (en) | Unmanned aerial vehicle observes and controls signal distribution ware | |
CN103795520A (en) | Method for real-time synchronization based on FPGA message | |
CN101072064B (en) | Ethernet relay device and method | |
CN105681131A (en) | Main-backup system and parallel outputting method thereof | |
CN102097784B (en) | Relay protective optical fiber digital interface device | |
CN110676818A (en) | In-situ bus protection method and system based on star network topology | |
CN212098886U (en) | Redundant structure track circuit reader | |
CN110297795B (en) | System and method for realizing single-channel serial data transmission based on Ethernet PHY chip | |
CN104468301A (en) | Safety output method based on MVB communication | |
CN104363046A (en) | Intelligent bypass device and work method thereof | |
CN201750414U (en) | Semi-automatically-applied WBS-C interstation safety information transmission system | |
CN108345231A (en) | Power equipment linkage control method, system and device | |
CN104572537A (en) | Fault-tolerant master-slave synchronization serial communication system based on FPGA | |
CN102523142A (en) | GTX (Gigabit texture per second)-based 20-port gigabit Ethernet access system and method |
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 | ||
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: 20140205 Termination date: 20180125 |