An optical signal detection device for bidirectional optical fiber transmission system
By designing an optical signal detection device including a data processor and a microcontroller, and using the I2C bus to read the optical module data of the SFF-8472 protocol standard, the problem of low detection efficiency of optical signal power in the bidirectional optical fiber transmission system is solved. It realizes efficient optical signal detection and real-time optical power monitoring.
Patent Information
- Application Number
- CN202210456260.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-27
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2042-04-27
AI Technical Summary
When the existing bidirectional optical fiber transmission system is too low in the main optical path or cannot extract the optical signal, the detection efficiency is low and may affect the normal operation of the system.
An optical signal detection device including data processor I, data processor II, a microcontroller and a computer operated by the upper control is designed to read optical modules of the SFF-8472 protocol standard to transmit and receive optical power data through the I2C bus, realizing bidirectional optical fiber transmission. Real-time detection of bidirectional dynamic optical power of the system.
It realizes efficient optical signal detection of bidirectional optical fiber transmission systems with long transmission distances, avoids power loss to the main optical path, ensures the normal operation of the system, and provides real-time optical power warning function.
Smart Images

Figure CN114866157B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of optical detection of optical fiber transmission systems, and relates to a detection device with a long transmission distance and capable of dynamically and real-time detection of optical signals of a bidirectional transmission system, and in particular to an optical signal detection device of a bidirectional optical fiber transmission system constructed with an optical module conforming to the SFF-8472 protocol standard. Background Art
[0002] The bidirectional optical fiber transmission system establishes the first optical terminal or the second optical terminal on both sides of the optical fiber, and transmits optical signals of different wavelengths internally, and receives optical signals from the second optical terminal or the first optical terminal on the opposite side. The optical signals carry transmission data information, thereby realizing bidirectional transmission of data. The bidirectional optical fiber transmission system utilizes the advantages of optical fiber such as light weight, long transmission distance, and strong anti-interference ability, and is widely used in various optical fiber transmission systems.
[0003] The internal transmission signal of the bidirectional fiber optic transmission system is an optical signal, and the quality of optical signal transmission directly determines the reliability of the transmission system. At the same time, the bidirectional fiber optic transmission system integrates optical devices and electronic components. The detection of optical signals can timely and accurately locate faults. Therefore, the detection of optical signals is particularly important and has great help in judging the faults of the transmission channel. In the existing optical signal detection methods of bidirectional fiber optic transmission systems, most of them use appropriate proportions of optical signals of the main optical path and use the divided light for detection. This detection method causes a certain power loss to the optical signal of the main optical path, and is particularly unsuitable for bidirectional fiber optic transmission systems when the power value of the optical signal in the main optical path is too low or it is difficult to extract the optical signal.
[0004] The Chinese patent application with publication number CN103438995 proposes a multi-channel optical power automatic monitoring technology solution. This patent effectively solves the problem of automatic monitoring of mechanical and environmental tests of multi-core optical cables and multi-channel branching devices through hardware and software design, but the device implemented by this solution is large in size and will also destroy the integrity of the optical path of the bidirectional optical fiber transmission system, making the bidirectional optical fiber transmission system unable to work normally, and unable to provide real-time alarm for the optical power transmitted inside the optical fiber. Summary of the invention
[0005] (I) Purpose of the invention
[0006] The purpose of the present invention is to provide an optical signal detection device applied to a bidirectional optical fiber transmission system, which can achieve high detection efficiency and accurate measurement results for a bidirectional optical fiber transmission system in which the optical signal power value in the main optical path is too low or the optical signal cannot be extracted.
[0007] (II) Technical solution
[0008] In order to solve the above technical problems, the present invention provides an optical signal detection device for a bidirectional optical fiber transmission system, comprising a data processor I, a data processor II, a single-chip microcomputer, and an upper control computer; the data processor I and the data processor II have at least N groups of pins, N being the number of bidirectional optical fiber transmission systems to be detected; a group of pins on the data processor I: a first optical terminal optical power data reading pin I2C 1n , the first optical terminal optical power control pin K 1n , the first optical terminal optical power data sending pin T 1n , n = 1, 2, 3 ..., N, and the first optical terminal optical power data sending pin I2CS of the first optical terminal in the nth bidirectional optical fiber transmission system under test 1n , the first optical terminal optical power optical power enable pin AS 1n , the first optical terminal optical power data receiving pin RS 1n One-to-one connection; the second optical terminal optical power data reading pin I2C of the data processor II 2m , the second optical terminal optical power control pin Q 2m , the second optical terminal optical power data receiving pin R 2m , m = 1, 2, ..., N, and the measured second optical terminal optical power data sending pin I2CS of the second optical terminal in the nth bidirectional optical fiber transmission system 2n , the second optical terminal optical power enable pin AS 2n , the second optical terminal optical power data sending pin RS 2n One-to-one connection; the data processor II has an address enable pin add2 and data pins D0-D7, which are connected to the address enable pin add1 and data pins K0-K7 of the single-chip microcomputer in a one-to-one correspondence; the sending pin TX and receiving pin RX of the single-chip microcomputer are connected to the receiving pin RX and sending pin TX of the upper control computer in a one-to-one correspondence; the data processor I reads the optical power data through the first optical terminal pin I2C 1n Get the transmit and receive optical power value 1 of the first optical terminal in the nth bidirectional optical fiber transmission system under test, and control the optical power pin K of the first optical terminal through 1n Select the first optical terminal transmitting and receiving optical power value 1 in the nth bidirectional optical fiber transmission system under test, and transmit the acquired first optical terminal transmitting and receiving optical power value 1 through the first optical terminal optical power data sending pin T 1nThe optical power values 1 of the first optical terminal in the bidirectional optical fiber transmission system are respectively sent back to the selected nth bidirectional optical fiber transmission system 1; the first optical terminal in the bidirectional optical fiber transmission system provides the transmitting and receiving optical power values 1 to the data processor I, and the second optical terminal in the bidirectional optical fiber transmission system provides the transmitting and receiving optical power values 2 to the data processor II; the bidirectional optical fiber transmission system also transmits the transmitting and receiving optical power values 1 of the first optical terminal sent back by the data processor I to the second optical terminal; the data processor II reads the optical power data through the second optical terminal I2C pin 2m Get the measured transmit and receive optical power value 2 of the second optical terminal in the nth bidirectional optical fiber transmission system, and control the optical power pin Q of the second optical terminal through the optical power control pin Q 2m Select the nth bidirectional optical fiber transmission system under test and receive the optical power data through the second optical terminal pin R 2m The first optical terminal transmitting and receiving optical power value 1 returned by the nth bidirectional optical fiber transmission system under test is obtained; the single-chip microcomputer selects the data processor II through the address enable pin add1, and receives the second optical terminal transmitting and receiving optical power value 2 and the first optical terminal transmitting and receiving optical power value 1 obtained by the data processor II through the data pins K0-K7; the single-chip microcomputer also receives the first optical terminal receiving optical power threshold and the second optical terminal receiving optical power threshold provided by the upper control computer; the single-chip microcomputer compares the first optical terminal receiving optical power threshold with the transmitting optical power threshold and received optical power value 1, obtain the first optical terminal received optical power threshold alarm result 1, the single chip compares the second optical terminal received optical power threshold and the transmitting and receiving optical power value 2, and obtains the second optical terminal received optical power threshold alarm result 2; the upper control computer receives the threshold value and the detection start instruction input by the operator, receives the first optical terminal transmitted and received optical power value 1, the second optical terminal transmitted and received optical power value 2, the first optical terminal received optical power threshold alarm result 1 and the second optical terminal received optical power threshold alarm result 2 provided by the single chip and displays them.
[0009] In the present invention, the data processor I, n bidirectional optical fiber transmission systems, the data processor II, the single chip microcomputer and the upper control computer jointly form n bidirectional optical fiber transmission system optical power detection loops.
[0010] (III) Beneficial effects
[0011] The optical signal detection device provided by the above technical solution and applied to a bidirectional optical fiber transmission system has beneficial effects in the following aspects.
[0012] (1) The present invention is suitable for a bidirectional optical fiber transmission system with a long transmission distance, and can realize real-time detection of bidirectional dynamic optical power of the bidirectional optical fiber transmission system.
[0013] (2) The present invention can obtain the real-time bidirectional transmission optical power and the attenuation of the optical power of the optical channel of a certain transmission system in the real-time transmission system through the command signal input by the upper control computer; at the same time, by inputting the first optical terminal receiving optical power threshold and the second optical terminal receiving optical power threshold command information of a certain bidirectional optical fiber transmission system, the transmission and receiving optical power of the first optical terminal or the second optical terminal of the current bidirectional optical fiber transmission system and the optical power threshold detection results of the first optical terminal or the second optical terminal are returned in real time, and the result data information such as whether the threshold is exceeded and alarm is given to realize human-computer interaction.
[0014] (3) The bidirectional optical power detection of the present invention uses the software I2C bus to read the optical module transmission and reception optical power data of the SFF-8472 protocol standard, does not extract the optical signal in the transmission optical path, does not affect the original signal transmission, and has no optical path loss of the bidirectional optical fiber transmission system, thereby ensuring the original performance of the transmission system.
[0015] (4) The present invention can set a real-time dynamic loss over-value alarm threshold for optical power, which is conducive to early detection of optical path power failure problems and provides optical power early warning for the optical fiber transmission channel.
[0016] (5) The present invention can expand the optical power detection device to detect 64 bidirectional optical fiber transmission systems, thereby reducing the design cost and advantageously improving the scalability of the detection device. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a principle block diagram of a preferred embodiment of a bidirectional optical fiber transmission system device of the present invention.
[0018] Figure 2 It is a flow chart of the control method of the detection device of the present invention.
[0019] Figure 3 It is the work flow chart of the host computer of the present invention.
[0020] Figure 4 This is the data processor I state sub-process of the present invention.
[0021] Figure 5 This is the data processor II state sub-routine of the present invention.
[0022] Figure 6 It is the single chip microcomputer subroutine of the present invention. DETAILED DESCRIPTION
[0023] In order to make the purpose, content and advantages of the present invention more clear, the specific implementation methods of the present invention are further described in detail below in conjunction with the drawings and examples.
[0024] according to Figure 1As shown, the optical signal detection device applied to the bidirectional optical fiber transmission system of this embodiment is implemented in the bidirectional optical fiber transmission system, and the device includes a host control computer, a single chip microcomputer, a data processor I and a data processor II. In this embodiment, real-time optical signal detection can be performed on a 64-channel bidirectional optical fiber transmission system.
[0025] The data processor I and the data processor II have at least 64 groups of pins. A group of optical power reading pins on the data processor I includes the first optical terminal optical power data reading pin I2C 1n , the first optical terminal optical power control pin K 1n , the first optical terminal optical power data sending pin T 1n , n = 1, 2, 3 ..., 64, and the optical power output pin of the first optical terminal in the n-th bidirectional optical fiber transmission system under test, wherein the optical power data sending pin of the first optical terminal is I2CS 1n , the first optical terminal optical power optical power enable pin AS 1n , the first optical terminal optical power data receiving pin RS 1n The pins are connected one by one; a group of optical power reading pins on the data processor II, wherein the second optical terminal optical power data reading pin I2C 2m , the second optical terminal optical power control pin Q 2m , the second optical terminal optical power data receiving pin R 2m , m = 1, 2, ..., n, and the optical power output pin of the second optical terminal in the n-th bidirectional optical fiber transmission system under test, wherein the optical power data sending pin of the second optical terminal is I2CS 2n , the second optical terminal optical power enable pin AS 2n , the second optical terminal optical power data sending pin TS 2n One-to-one connection; the data processor II also has an address enable pin add2 and data pins D0~D7, which are connected one-to-one with the address enable pin add1 and data pins K0~K7 of the single-chip microcomputer; the sending pin TX and receiving pin RX of the single-chip microcomputer are connected one-to-one with the receiving pin RX and sending pin TX of the upper control computer.
[0026] The upper control computer is connected to the single-chip microcomputer through the RS422 serial bus, the single-chip microcomputer is connected to the data processor II through the parallel bus, the data processor II is connected to the second optical terminal of each of the 64-channel bidirectional optical fiber transmission systems, and the first optical terminal of each of the 64-channel bidirectional optical fiber transmission systems is connected to the data processor I.
[0027] According to the threshold requirements of the bidirectional optical fiber transmission system, the operator inputs the optical power threshold data packet and the test instruction packet in the upper control computer in sequence, and then waits to receive the optical power threshold alarm data packet from the microcontroller, thereby realizing the information interaction between the optical signal detection device of the bidirectional optical fiber transmission system and the operator.
[0028] The single-chip microcomputer can select the data processor II by the address enable pin add1, and obtain the optical power data packet through the data pins K0-K7, which includes the second optical terminal transmitting and receiving optical power values 2 and the first optical terminal transmitting and receiving optical power values 1 of 64 bidirectional optical fiber transmission systems. When the single-chip microcomputer receives the optical power threshold data packet and the test instruction packet from the upper control computer, it caches the optical power threshold data packet, and compares the first optical terminal receiving optical power threshold of the nth bidirectional optical fiber transmission system with the transmitting and receiving optical power value 1 according to the number n of the bidirectional optical fiber transmission system to be alarmed, and obtains the first optical terminal receiving optical power threshold alarm result 1, and compares the second optical terminal receiving optical power threshold with the transmitting and receiving optical power value 2, and obtains the second optical terminal receiving optical power threshold alarm result 2.
[0029] The data processor II reads the optical power data of the second optical terminal through the I2C pin 2m Get the measured transmit and receive optical power value 2 of the second optical terminal in the n-th bidirectional optical fiber transmission system, and control the optical power pin Q of the second optical terminal 2m Select the second optical terminal of the n-th bidirectional optical fiber transmission system under test, and receive the optical power data through the second optical terminal optical power data receiving pin R 2m Obtain the transmit and receive optical power value 1 of the first optical terminal that is selected to transmit back the n-th bidirectional optical fiber transmission system under test.
[0030] The first optical terminal in the bidirectional optical fiber transmission system provides a transmit and receive optical power value 1 to the data processor I, and the second optical terminal in the bidirectional optical fiber transmission system provides a transmit and receive optical power value 2 to the data processor II; the bidirectional optical fiber transmission system also transmits the transmit and receive optical power value 1 of the first optical terminal sent back by the data processor I to the second optical terminal.
[0031] The data processor 1 reads the optical power data of the first optical terminal through the pin I2C 1n Get the measured transmit and receive optical power value 1 of the first optical terminal in the n-th bidirectional optical fiber transmission system, and control the optical power pin K of the first optical terminal 1n Select the first optical terminal of the n-th bidirectional optical fiber transmission system under test, and send the optical power data through the first optical terminal pin T 1n The n-th bidirectional optical fiber transmission system under test is selected and the transmit and receive optical power value 1 of the first optical terminal is fed back.
[0032] The upper control computer displays the optical power value 1 of the first optical terminal transmitting and receiving, the optical power value 2 of the second optical terminal transmitting and receiving, the optical power threshold alarm result 1 of the first optical terminal, and the optical power threshold alarm result 2 of the second optical terminal.
[0033] The following is the working process of the bidirectional optical fiber transmission system and the optical signal detection device of the bidirectional optical fiber transmission system after power-on. Figure 2 and Figure 3 shown.
[0034] The first step is to start the data processor I state sub-process, that is, according to Figure 4 The process shown performs the following steps:
[0035] 1.1 Let variable n=1.
[0036] This variable is used to mark the reading of the transmit and receive optical power value 1 of the first optical terminal in the n-th bidirectional optical fiber transmission system.
[0037] 1.2 Read the transmit and receive optical power value 1 of the first optical terminal of the n-th bidirectional optical fiber transmission system.
[0038] The data processor I reads the optical power data of the first optical terminal through the pin I2C 1n The first optical terminal optical power data sending pin I2CS of the n-th bidirectional optical fiber transmission system 1n The data processor 1 reads the transmit and receive optical power value 1 of the first optical terminal of the n-th bidirectional optical fiber transmission system through the pin.
[0039] In this embodiment, the transmit and receive optical power value 1 is composed of 4 8-bit binary numbers, wherein the first 8-bit binary number represents the high 8 bits of the transmit optical power, the second 8-bit binary number represents the low 8 bits of the transmit optical power, the third 8-bit binary number represents the high 8 bits of the receive optical power, and the fourth 8-bit binary number represents the low 8 bits of the receive optical power. The optical module of the bidirectional optical fiber transmission system implements the SFF-8472 protocol. The transmit optical power or the receive optical power is composed of a 16-bit binary number and split into 2 8-bit binary numbers, each counting unit is 0.1uw. If the transmit optical power or the receive optical power is 0, the corresponding transmit optical power or the receive optical power of the optical module is no light. When the transmit or receive optical power is the maximum value of 65535, the corresponding transmit or receive optical power is 6553.5uw.
[0040] 1.3 The first optical terminal of the n-th bidirectional optical fiber transmission system transmits and receives an optical power value of 1.
[0041] The data processor I controls the optical power of the first optical terminal through the pin K 1n and the first optical terminal optical power data sending pin T1n The first optical terminal optical power enable pin AS of the n-th bidirectional optical fiber transmission system is respectively connected to the first optical terminal optical power enable pin AS of the n-th bidirectional optical fiber transmission system 1n and the first optical transceiver optical power data receiving pin RS 1n When K 1n After the pin sends the enable signal, the n-th bidirectional optical fiber transmission system is connected through T 1n The pin receives the sending and receiving optical power value 1 of the first optical terminal of the n-th bidirectional optical fiber transmission system, and transmits it to the second optical terminal on the other side of the n-th bidirectional optical fiber transmission system through the n-th bidirectional optical fiber transmission system.
[0042] 1.4 The data processor 1 receives the optical power values 1 sent and received by the first optical terminal of the 64-way bidirectional optical fiber transmission system one by one, and transmits them back to the corresponding second optical terminal of the bidirectional optical fiber transmission system. The specific operation is to add 1 to the variable n, and determine whether n is equal to 65. If not, return to step 1.2; if yes, enter step 1.1.
[0043] The second step is to start the data processor II state sub-process, that is, according to Figure 5 The process shown performs the following steps:
[0044] 2.1 Let variable n=1.
[0045] This variable is used to mark the reading of the transmit and receive optical power value 2 of the second optical terminal of the n-th bidirectional optical fiber transmission system, and the transmit and receive optical power value 1 of the first optical terminal of the n-th bidirectional optical fiber transmission system.
[0046] 2.2 Read the transmit and receive optical power value 2 of the second optical terminal returned by the n-th bidirectional optical fiber transmission system.
[0047] Data processor II reads the optical power data through the second optical transceiver pin I2C 2m The data transmission pin I2CS of the second optical terminal of the n-th bidirectional optical fiber transmission system 2n The data processor II reads the transmit and receive optical power value 2 of the second optical terminal of the n-th bidirectional optical fiber transmission system through the pin. In this embodiment, the transmit and receive optical power value 2 of the second optical terminal has the same data format as the transmit and receive optical power value 1 of the first optical terminal.
[0048] 2.3 Read the transmit and receive optical power value 1 of the first optical terminal returned by the n-th bidirectional optical fiber transmission system.
[0049] Data processor II controls the optical power of the second optical transceiver through the pin Q 2m And the second optical terminal optical power data receiving pin R 2mThe second optical terminal optical power enable pin AS of the second optical terminal of the n-th bidirectional optical fiber transmission system is respectively connected to the second optical terminal optical power enable pin AS of the second optical terminal of the n-th bidirectional optical fiber transmission system 2n And the second optical terminal optical power data sending pin TS 2n When Q 2m After sending the enable signal, the data processor II receives the optical power data through the second optical terminal optical power receiving pin R 2m The transmit and receive optical power value 1 of the first optical terminal returned by the n-th bidirectional optical fiber transmission system is obtained from the second optical terminal of the n-th bidirectional optical fiber transmission system.
[0050] 2.4 Data processor II receives the optical power value 2 sent and received by the second optical terminal of the 64-way bidirectional optical fiber transmission system and the optical power value 1 sent and received by the first optical terminal returned from the corresponding bidirectional optical fiber transmission system one by one. The specific operation is to set variable n=n+1, determine whether n is equal to 65, if not, return to step 2.2; if yes, enter step 2.5.
[0051] 2.5 Send optical power data packet.
[0052] The data processor II is connected to the address enable pin add1 and data pins K0...K7 of the single chip computer through the address enable pin add2 and data pins D0...D7. When add2 sends the enable signal, the single chip computer obtains the optical power data packet composed of the first optical terminal transmitting and receiving optical power value 1 and the second optical terminal transmitting and receiving optical power value 2 of each of the 64-channel bidirectional optical fiber transmission systems from the data processor II through K0...K7.
[0053] The optical power data packet includes a packet flag, an optical power attribute word, an optical power information body and a command check code.
[0054] The packet flag is used to distinguish packet characteristics, that is, to distinguish data packets from test instructions. In this embodiment, the packet flag is composed of an 8-bit binary number: the 1st, 3rd, 5th, and 7th bits are defined as 1, and the remaining bits are reserved and defined as 0.
[0055] The optical power attribute word is used to identify the type of the data packet, that is, to indicate that the data packet is an optical power data packet. In this embodiment, the optical power attribute word is composed of an 8-bit binary number: the 1st, 3rd, 4th, and 6th bits are all defined as 1, and the remaining bits are reserved bits and are all defined as 0.
[0056] The optical power information body is composed of a bidirectional optical fiber transmission system 1, a first optical terminal transmitting and receiving optical power value 1 of the bidirectional optical fiber transmission system 1, a second optical terminal transmitting and receiving optical power value 2 of the bidirectional optical fiber transmission system 1, a bidirectional optical fiber transmission system 2, a first optical terminal transmitting and receiving optical power value 1 of the bidirectional optical fiber transmission system 2, a second optical terminal transmitting and receiving optical power value 2 of the bidirectional optical fiber transmission system 2, ..., a bidirectional optical fiber transmission system 64, a first optical terminal transmitting and receiving optical power value 1 of the bidirectional optical fiber transmission system 64, a second optical terminal transmitting and receiving optical power value 2 of the bidirectional optical fiber transmission system 64.
[0057] In this embodiment, the bidirectional optical fiber transmission system 1, the first optical terminal transmitting and receiving optical power value 1 of the bidirectional optical fiber transmission system 1, and the second optical terminal transmitting and receiving optical power value 2 of the bidirectional optical fiber transmission system 1 are used as examples for explanation. The bidirectional optical fiber transmission system 1 is composed of an 8-bit binary number: wherein the 0th bit is defined as 1, and the remaining bits are defined as 0, which represents the bidirectional optical fiber transmission system 1; the first optical terminal transmitting and receiving optical power value 1 of the bidirectional optical fiber transmission system 1 is composed of two 16-bit binary numbers: the definition is shown in step 1.2; the second optical terminal transmitting and receiving optical power value 2 of the bidirectional optical fiber transmission system 1 is composed of two 16-bit binary numbers: the definition is shown in step 2.2.
[0058] The command check code is an 8-bit binary number, which is obtained by taking the XOR of the corresponding bits of the optical power data packet flag, the optical power attribute word, and the components in the optical power information body.
[0059] The third step is to start the microcontroller subroutine, that is, according to Figure 6 The process shown performs the following steps:
[0060] 3.1 Read and save optical power data packets
[0061] 3.2 According to the optical power threshold data packet input by the operator on the host computer, the optical power threshold data packet is saved, otherwise, it goes to step 3.3.
[0062] The optical power threshold data packet includes a packet flag, an optical power threshold attribute word, an optical power threshold query number, an optical power threshold information body and a command check code.
[0063] The packet flag is used to distinguish packet characteristics, that is, to distinguish data packets from test instructions. In this embodiment, the packet flag is composed of an 8-bit binary number: the 1st, 3rd, 5th, and 7th bits are defined as 1, and the remaining bits are reserved and defined as 0.
[0064] The optical power threshold attribute word is used to identify the type of the data packet, that is, to indicate that the data packet is an optical power threshold data packet. In this embodiment, the optical power attribute word is composed of an 8-bit binary number: the 0th, 1st, 3rd, 4th, and 6th bits are all defined as 1, and the remaining bits are reserved bits and are all defined as 0.
[0065] The optical power threshold query number is used to identify the number n of the bidirectional optical fiber transmission system 1 or the bidirectional optical fiber transmission system 2 or ... or the bidirectional optical fiber transmission system n that currently needs to be queried. In this embodiment, the optical power threshold query number is composed of an 8-bit binary number: if the 0th bit is defined as 1 and the remaining bits are defined as 0, it means that the bidirectional optical fiber transmission system 1 needs to be queried.
[0066] The optical power threshold information body is used to identify the first optical terminal receiving optical power threshold 1 and the second optical terminal receiving optical power threshold 2 of the bidirectional optical fiber transmission system 1 or the bidirectional optical fiber transmission system 2 or ... or the bidirectional optical fiber transmission system 64 that needs to be queried currently. The first optical terminal receiving optical power threshold 1 is the threshold threshold for the optical reception of the first optical terminal, and the second optical terminal receiving optical power threshold 2 is the threshold threshold for the optical reception of the second optical terminal. The units of the first optical terminal receiving optical power threshold 1 and the second optical terminal receiving optical power threshold 2 are both dBm. According to the characteristics of light, the threshold can be set to a negative number, and the negative number can be obtained in the form of a binary complement. In this embodiment, the first optical terminal receiving optical power threshold 1 and the second optical terminal receiving optical power threshold 2 are both composed of an 8-bit binary number: if the first optical terminal receiving optical power threshold is -15dBm, then the 0th, 4th, 5th, 6th, and 7th positions are all set to 1, and the 1st, 2nd, and 3rd positions are all set to 0, indicating that the receiving optical power threshold of the first optical terminal of the bidirectional optical fiber transmission system is -15dBm.
[0067] The command check code is an 8-bit binary number, which is obtained by taking the XOR of the corresponding bits of the packet flag, the optical power threshold attribute word, and the optical power threshold information body.
[0068] 3.3 According to the test instructions input by the operator on the host computer, go to step 3.4, otherwise, go to step 3.1.
[0069] The test instruction packet includes a packet flag, a test attribute word and an instruction check code.
[0070] The packet flag is used to distinguish packet characteristics, that is, to distinguish data packets from test instructions. In this embodiment, the packet flag is an 8-bit binary number: the 0th, 2nd, 4th, and 6th bits are defined as 1, and the remaining bits are reserved and defined as 0.
[0071] The test attribute word is composed of an 8-bit binary number. In this embodiment, the 0th, 2nd, 4th, and 6th bits of the test attribute word are all defined as 1, and the remaining bits are reserved bits and are all defined as 0.
[0072] The instruction check code is an 8-bit binary number, which is obtained by taking the XOR of the corresponding bits of the packet flag and each component number in the test attribute word.
[0073] 3.4 Let variable n = optical power threshold query number.
[0074] This variable is used to mark the first optical terminal transmitting and receiving optical power value 1 and the second optical terminal transmitting and receiving optical power value 2 of the bidirectional optical fiber transmission system n that are consistent with the optical power threshold query number and are read from the optical power threshold data packet.
[0075] 3.5 Process and calculate the optical power threshold alarm result of the n-th bidirectional optical fiber transmission system.
[0076] The received optical power threshold alarm result of the first optical terminal of the n-th bidirectional optical fiber transmission system is obtained by extracting the received optical power of the first optical terminal of the n-th bidirectional optical fiber transmission system from the optical power data packet according to the value of n, and completing the optical power unit conversion according to formula (1); then extracting the received optical power threshold 1 of the first optical terminal of the n-th bidirectional optical fiber transmission system from the optical power threshold data packet, and calculating the received optical power threshold alarm result of the first optical terminal according to formula (2).
[0077] Similarly, the received optical power threshold alarm result of the second optical terminal of the n-th bidirectional optical fiber transmission system is calculated.
[0078] In this embodiment, formula (1) converts the transmitted or received optical power from um to dBm.
[0079] Y(dBm)=10log((Xmw) / (1mw)) (1)
[0080] In the formula, X is power and Y is converted dBm. If the transmitted optical power or received optical power is 0x0001, the corresponding optical power is 0.1um, that is, the optical power value is -40dBm.
[0081] Formula (2) is the calculation result of the optical power threshold alarm.
[0082] P n =Y n -Y 阈值 (2)
[0083] Where P n The result of receiving the optical power threshold alarm of the first optical terminal or the second optical terminal of the n-th optical fiber transmission system; Y n The first optical terminal or the second optical terminal of the n-th optical fiber transmission system receives the optical power; Y 阈值It is the first optical terminal receiving optical power threshold 1 or the second optical terminal receiving optical power threshold 2 of the n-th optical fiber transmission system.
[0084] If P n If the calculation result is greater than or equal to 0, the optical power threshold alarm result of the first optical terminal or the second optical terminal of the n-th optical fiber transmission system is considered normal; if the calculation result is less than 0, the optical power threshold alarm result of the first optical terminal or the second optical terminal of the n-th optical fiber transmission system is considered abnormal.
[0085] 3.7 Compose an optical power threshold alarm result package.
[0086] The optical power threshold alarm result packet includes a packet flag, an optical power threshold alarm attribute word, an optical power threshold query number, an optical power threshold alarm result information body and a command check code.
[0087] The packet flag is used to distinguish packet characteristics, that is, to distinguish data packets from test instructions. In this embodiment, the packet flag is composed of an 8-bit binary number: the 1st, 3rd, 5th, and 7th bits are defined as 1, and the remaining bits are reserved and defined as 0.
[0088] The optical power threshold alarm attribute word is used to identify the type of the data packet, that is, to indicate that the data packet is an optical power threshold alarm data packet. In this embodiment, the optical power threshold alarm attribute word is composed of an 8-bit binary number: bits 2, 3, 4, and 6 are all defined as 1, and the remaining bits are reserved bits and are all defined as 0.
[0089] The optical power threshold alarm result information body is composed of the optical power threshold query number and the corresponding first optical terminal transmit and receive optical power value 1, the first optical terminal optical power threshold alarm result 1, the second optical terminal transmit and receive optical power value 2, and the second optical terminal optical power threshold alarm result 2 of the bidirectional optical fiber transmission system.
[0090] In this embodiment, the optical power threshold alarm result 1 of the first optical terminal or the optical power threshold alarm result 2 of the second optical terminal is composed of an 8-bit binary number: when the 0th bit is defined as 1 and the remaining bits are defined as 0, it indicates that the optical power threshold alarm result 1 of the first optical terminal or the optical power threshold alarm result 2 of the second optical terminal is abnormal; when the 0th bit is defined as 0 and the remaining bits are defined as 1, it indicates that the optical power threshold alarm result 1 of the first optical terminal or the optical power threshold alarm result 2 of the second optical terminal is normal.
[0091] The command check code is an 8-bit binary number, which is obtained by taking the XOR of the corresponding bits of the packet flag, the optical power threshold attribute word, and the components in the optical power threshold information body.
[0092] 3.8 Start sending the optical power threshold alarm result package.
[0093] In the fourth step, the upper control computer displays the optical power threshold alarm result package.
[0094] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. An optical signal detection device for a bidirectional optical fiber transmission system, characterized in that: It includes a data processor I, a data processor II, a single-chip microcomputer, and a host control computer; the data processor I and the data processor II have at least N groups of pins, N is the number of bidirectional optical fiber transmission systems detected; a group of pins on the data processor I: the first optical terminal optical power data reading pin I2C 1n , the first optical terminal optical power control pin K 1n , the first optical terminal optical power data sending pin T 1n , n = 1, 2, 3 ..., N, and the first optical terminal optical power data sending pin I2CS of the first optical terminal in the nth bidirectional optical fiber transmission system under test 1n , the first optical terminal optical power optical power enable pin AS 1n , the first optical terminal optical power data receiving pin RS 1n One-to-one connection; the second optical terminal optical power data reading pin I2C of the data processor II 2m , the second optical terminal optical power control pin Q 2m , the second optical terminal optical power data receiving pin R 2m , m = 1, 2, ..., N, and the measured second optical terminal optical power data sending pin I2CS of the second optical terminal in the nth bidirectional optical fiber transmission system 2n , the second optical terminal optical power enable pin AS 2n , the second optical terminal optical power data sending pin TS 2n One-to-one connection; the data processor II has an address enable pin add2 and data pins D0-D7, which are connected to the address enable pin add1 and data pins K0-K7 of the single-chip microcomputer in a one-to-one correspondence; the sending pin TX and receiving pin RX of the single-chip microcomputer are connected to the receiving pin RX and sending pin TX of the upper control computer in a one-to-one correspondence; The data processor 1 reads the optical power data of the first optical terminal through the pin I2C 1n Get the transmit and receive optical power value 1 of the first optical terminal in the nth bidirectional optical fiber transmission system under test, and control the optical power pin K of the first optical terminal through 1n Select the first optical terminal transmitting and receiving optical power value 1 in the nth bidirectional optical fiber transmission system under test, and transmit the acquired first optical terminal transmitting and receiving optical power value 1 through the first optical terminal optical power data sending pin T 1n are respectively sent back to the selected n-th bidirectional optical fiber transmission system; The first optical terminal in the bidirectional optical fiber transmission system provides a transmit and receive optical power value 1 to the data processor I, and the second optical terminal in the bidirectional optical fiber transmission system provides a transmit and receive optical power value 2 to the data processor II; the bidirectional optical fiber transmission system also transmits the transmit and receive optical power value 1 of the first optical terminal sent back by the data processor I to the second optical terminal; The data processor II reads the optical power data of the second optical terminal through the I2C pin 2m Get the measured transmit and receive optical power value 2 of the second optical terminal in the nth bidirectional optical fiber transmission system, and control the optical power pin Q of the second optical terminal through the optical power control pin Q 2m Select the nth bidirectional optical fiber transmission system under test and receive the optical power data through the second optical terminal pin R 2m Obtain the transmit and receive optical power value 1 of the first optical terminal returned by the nth bidirectional optical fiber transmission system under test; The single chip microcomputer selects the data processor II through the address enable pin add1, and receives the second optical terminal transmitting and receiving optical power value 2 and the first optical terminal transmitting and receiving optical power value 1 obtained by the data processor II through the data pins K0-K7.
2. The optical signal detection device for a bidirectional optical fiber transmission system according to claim 1, characterized in that: The single-chip microcomputer also receives the first optical terminal receiving optical power threshold and the second optical terminal receiving optical power threshold provided by the upper control computer; the single-chip microcomputer compares the first optical terminal receiving optical power threshold with the transmitting and receiving optical power value 1, and obtains the first optical terminal receiving optical power threshold alarm result 1, and the single-chip microcomputer compares the second optical terminal receiving optical power threshold with the transmitting and receiving optical power value 2, and obtains the second optical terminal receiving optical power threshold alarm result 2; the upper control computer receives the threshold value and detection start instruction input by the operator, receives the first optical terminal transmitting and receiving optical power value 1, the second optical terminal transmitting and receiving optical power value 2, the first optical terminal receiving optical power threshold alarm result 1 and the second optical terminal receiving optical power threshold alarm result 2 provided by the single-chip microcomputer and displays them.
3. The optical signal detection device for a bidirectional optical fiber transmission system according to claim 2, characterized in that: The optical signal detection device performs real-time optical signal detection on a 64-channel bidirectional optical fiber transmission system, and the data processor I and the data processor II have at least 64 groups of pins.
4. The optical signal detection device for a bidirectional optical fiber transmission system according to claim 3, characterized in that: The upper control computer is connected to the single-chip microcomputer via an RS422 serial bus, the single-chip microcomputer is connected to the data processor II via a parallel bus, the data processor II is connected to the second optical terminal of each of the 64-way bidirectional optical fiber transmission systems, and the first optical terminal of each of the 64-way bidirectional optical fiber transmission systems is connected to the data processor I.
5. The optical signal detection method based on the optical signal detection device applied to the bidirectional optical fiber transmission system according to claim 4, characterized in that: The following steps are involved: The first step is to start the data processor I 1.1 Let variable n = 1 This variable is used to mark the reading of the transmit and receive optical power value 1 of the first optical terminal of the n-th bidirectional optical fiber transmission system; 1.2 Read the transmit and receive optical power value 1 of the first optical terminal of the n-th bidirectional optical fiber transmission system; 1.3 Send the transmit and receive optical power value 1 of the first optical terminal of the n-th bidirectional optical fiber transmission system; 1.4 The data processor 1 receives the optical power values 1 sent and received by the first optical terminal of the 64-channel bidirectional optical fiber transmission system one by one, and transmits them back to the second optical terminal of the corresponding bidirectional optical fiber transmission system; the specific operation is to add 1 to the variable n, determine whether n is equal to 65, if not, return to step 1.2; if yes, enter step 1.1; Step 2: Start Data Processor II 2.1 Let variable n = 1 This variable is used to mark the reading of the transmit and receive optical power value 2 of the second optical terminal of the n-th bidirectional optical fiber transmission system, and the transmit and receive optical power value 1 of the first optical terminal of the n-th bidirectional optical fiber transmission system. 2.2 Read the transmit and receive optical power value 2 of the second optical terminal returned by the n-th bidirectional optical fiber transmission system; 2.3 Read the transmit and receive optical power value 1 of the first optical terminal returned by the n-th bidirectional optical fiber transmission system; 2.4 The data processor II receives the optical power value 2 sent and received by the second optical terminal of the 64-channel bidirectional optical fiber transmission system and the optical power value 1 sent and received by the first optical terminal transmitted back from the corresponding bidirectional optical fiber transmission system one by one; the specific operation is to set the variable n=n+1, determine whether n is equal to 65, if not, return to step 2.2; if yes, enter step 2.5; 2.5 Sending optical power data packets When add2 sends an enable signal, the single-chip microcomputer obtains the optical power data packet consisting of the optical power value 1 transmitted and received by the first optical terminal and the optical power value 2 transmitted and received by the second optical terminal of each of the 64-channel bidirectional optical fiber transmission systems from the data processor II through K0...K7; The third step is to start the microcontroller 3.1 Read and save the optical power data packet; 3.2 According to the optical power threshold data packet input by the operator on the host computer, the optical power threshold data packet is saved, otherwise, it goes to step 3.3; 3.3 According to the test instructions input by the operator on the host computer, go to step 3.4, otherwise, go to step 3.1; 3.4 Let variable n = optical power threshold query number This variable is used to mark the first optical terminal transmitting and receiving optical power value 1 and the second optical terminal transmitting and receiving optical power value 2 of the bidirectional optical fiber transmission system n which are consistent with the optical power threshold query number and are read from the optical power threshold data packet; 3.5 process and calculate the optical power threshold alarm result of the n-th bidirectional optical fiber transmission system; 3.6 forming an optical power threshold alarm result package; 3.7 Start sending the optical power threshold alarm result package; In the fourth step, the upper control computer displays the optical power threshold alarm result package.
6. The optical signal detection method according to claim 5, characterized in that: In the step 2.5, the optical power data packet includes a packet flag, an optical power attribute word, an optical power information body and an instruction check code; The packet flag is used to distinguish packet characteristics, that is, to distinguish data packets and test instructions; The optical power attribute word is used to identify the type of the data packet, that is, to indicate that the data packet is an optical power data packet; The optical power information body is composed of a bidirectional optical fiber transmission system 1, a first optical terminal transmitting and receiving optical power value 1 of the bidirectional optical fiber transmission system 1, a second optical terminal transmitting and receiving optical power value 2 of the bidirectional optical fiber transmission system 1, a bidirectional optical fiber transmission system 2, a first optical terminal transmitting and receiving optical power value 1 of the bidirectional optical fiber transmission system 2, a second optical terminal transmitting and receiving optical power value 2 of the bidirectional optical fiber transmission system 2, ..., a bidirectional optical fiber transmission system 64, a first optical terminal transmitting and receiving optical power value 1 of the bidirectional optical fiber transmission system 64, a second optical terminal transmitting and receiving optical power value 2 of the bidirectional optical fiber transmission system 64; The command check code is an 8-bit binary number, which is obtained by taking the XOR of the corresponding bits of the optical power data packet flag, the optical power attribute word, and the components in the optical power information body.
7. The optical signal detection method according to claim 6, characterized in that: In the step 3.2, the optical power threshold data packet includes a packet flag, an optical power threshold attribute word, an optical power threshold query number, an optical power threshold information body and a command check code; The packet flag is used to distinguish packet characteristics, that is, to distinguish data packets and test instructions; The optical power threshold attribute word is used to identify the type of the data packet, that is, to indicate that the data packet is an optical power threshold data packet; The optical power threshold query number is used to identify the number n of the bidirectional optical fiber transmission system 1 or the bidirectional optical fiber transmission system 2 or ... or the bidirectional optical fiber transmission system n that needs to be queried currently; The optical power threshold information body is used to identify the first optical terminal receiving optical power threshold 1 and the second optical terminal receiving optical power threshold 2 of the bidirectional optical fiber transmission system 1 or the bidirectional optical fiber transmission system 2 or ... or the bidirectional optical fiber transmission system 64 that need to be queried currently; The command check code is an 8-bit binary number, which is obtained by taking the XOR of the corresponding bits of the packet flag, the optical power threshold attribute word, and the optical power threshold information body; In step 3.3, the test instruction packet includes a packet flag, a test attribute word and an instruction check code; The packet flag is used to distinguish packet characteristics, that is, to distinguish data packets and test instructions; The test attribute word consists of an 8-bit binary number; The instruction check code is an 8-bit binary number, which is obtained by taking the XOR of the corresponding bits of the packet flag and each component number in the test attribute word; In step 3.6, the optical power threshold alarm result packet includes a packet flag, an optical power threshold alarm attribute word, an optical power threshold query number, an optical power threshold alarm result information body and a command check code; The packet flag is used to distinguish packet characteristics, that is, to distinguish data packets and test instructions; The optical power threshold alarm attribute word is used to identify the type of the data packet, that is, to indicate that the data packet is an optical power threshold alarm data packet; The optical power threshold alarm result information body is composed of the optical power threshold query number and the corresponding first optical terminal transmitting and receiving optical power value 1 of the bidirectional optical fiber transmission system, the first optical terminal optical power threshold alarm result 1, the second optical terminal transmitting and receiving optical power value 2, and the second optical terminal optical power threshold alarm result 2; The command check code is an 8-bit binary number, which is obtained by taking the XOR of the corresponding bits of the packet flag, the optical power threshold attribute word, and the components in the optical power threshold information body.
Citation Information
Patent Citations
Optical-fiber bidirectional loss testing device, testing method and communication method thereof
CN106482932A
Optical power monitoring system cooperation intelligence optical fiber management system and fault processing method
CN106571955A