CN114070404B - Optical fiber network working method based on multi-type test equipment - Google Patents

Optical fiber network working method based on multi-type test equipment Download PDF

Info

Publication number
CN114070404B
CN114070404B CN202111327791.5A CN202111327791A CN114070404B CN 114070404 B CN114070404 B CN 114070404B CN 202111327791 A CN202111327791 A CN 202111327791A CN 114070404 B CN114070404 B CN 114070404B
Authority
CN
China
Prior art keywords
data
data frame
optical fiber
frame
type
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.)
Active
Application number
CN202111327791.5A
Other languages
Chinese (zh)
Other versions
CN114070404A (en
Inventor
苏银科
郭卓锋
韩京燕
姚军
田禹泽
沈超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Electromechanical Engineering Research Institute
Original Assignee
Beijing Electromechanical Engineering Research Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Electromechanical Engineering Research Institute filed Critical Beijing Electromechanical Engineering Research Institute
Priority to CN202111327791.5A priority Critical patent/CN114070404B/en
Publication of CN114070404A publication Critical patent/CN114070404A/en
Application granted granted Critical
Publication of CN114070404B publication Critical patent/CN114070404B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/25Arrangements specific to fibre transmission
    • H04B10/2589Bidirectional transmission
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/25Arrangements specific to fibre transmission
    • H04B10/2589Bidirectional transmission
    • H04B10/25891Transmission components
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]

Abstract

The invention relates to an optical fiber network working method based on multi-type test equipment, belongs to the technical field of optical fiber network design, and solves the problems of large workload and low working efficiency of the existing optical fiber network working method related to the multi-type test equipment. The method comprises the following steps: based on a multi-type information transmission device connected with one or more types of test equipment and an upper computer, constructing an optical fiber network system; the multi-type information transmission device and the upper computer respectively generate data frames, convert the data frames into optical signals and upload the optical signals to the optical fiber network; the multi-type information transmission device generates a data frame through encoding test sampling data output by the test equipment; the upper computer generates a data frame by encoding control data for controlling the test equipment; the multi-type information transmission device and the upper computer also respectively receive optical signals from the optical fiber network, and execute forwarding, recycling or processing operations according to analysis results of the received optical signals.

Description

Optical fiber network working method based on multi-type test equipment
Technical Field
The invention relates to the technical field of optical fiber network design, in particular to an optical fiber network working method based on multi-type test equipment.
Background
In existing fiber optic networks, a plurality of fiber optic interface boards are connected according to the network topology of the fiber optic network, and then one or more test devices are connected to each fiber optic interface board. Since multiple types of test equipment (such as analog, switching, RS422 serial data, LVDS bus, etc.) may be connected to one fiber optic interface board. If each test device is directly connected to the optical fiber network, the following problems exist:
(1) A corresponding number of fiber buses need to be designed;
(2) Ensuring that the optical fiber bus is matched with a hardware interface of each test device;
(3) The specific situation of each test device needs to be considered;
(4) In the existing mode, the test equipment starts to collect and transmit data after receiving an instruction of acquiring the data of the upper computer, and the process is easy to cause transmission delay;
meanwhile, if each test device is connected to the optical fiber network respectively, each test device is added, the optical fiber network opens up a corresponding storage space for the test device and allocates a corresponding ID and a special storage address. Therefore, the existing mode obviously increases the workload of a user in using the optical fiber network and reduces the working efficiency of the optical fiber network.
Disclosure of Invention
In view of the above analysis, the embodiment of the invention aims to provide an optical fiber network working method based on multi-type test equipment, which is used for solving the problems of large workload and low working efficiency of the existing optical fiber network working method based on the multi-type test equipment.
The invention discloses an optical fiber network working method based on multi-type test equipment, which comprises the following steps:
based on a multi-type information transmission device connected with one or more types of test equipment and an upper computer, constructing an optical fiber network system;
the multi-type information transmission device and the upper computer respectively generate data frames, convert the data frames into optical signals and upload the optical signals to the optical fiber network; the multi-type information transmission device generates a data frame through encoding test sampling data output by the test equipment; the upper computer generates a data frame by encoding control data for controlling the test equipment;
the multi-type information transmission device and the upper computer also respectively receive optical signals from the optical fiber network, and execute forwarding, recycling or processing operations according to analysis results of the received optical signals.
Based on the scheme, the invention also makes the following improvements:
further, the building of the optical fiber network system includes:
connecting a plurality of optical fiber interface boards according to a network topology architecture of an optical fiber network;
each optical fiber interface board is connected with one or more multi-type information transmission devices, and each multi-type information transmission device is connected with one or more types of test equipment;
optionally, one of the optical fiber interface boards is connected with the upper computer;
forming the optical fiber network system.
Further, the data frame includes the following fields in order: a frame header synchronization flag, a data source node ID, the number of times a data frame has been forwarded, a data length, a high start address, a low start address, transmission valid data, a check code, and an end of frame flag.
Further, the multi-type information transmission device generates a data frame by encoding test sampling data output by the test equipment, and the method comprises the following steps:
generating a frame header synchronization mark indicating the start of a data frame and a frame end mark indicating the end of the data frame;
generating information matched with the current multi-type information transmission device in a data frame, wherein the information comprises a data source node ID and a high-order initial address;
generating information of test sampling data matched with the current type of test equipment in a data frame, wherein the information comprises a low-order initial address and transmission valid data;
generating a data length and a check code based on the determined high-order start address, low-order start address and transmission valid data;
sequentially combining the generated information according to the data frame format to obtain an encoded data frame;
wherein the number of times the data frame has been forwarded is 0.
Further, the host computer encodes control data by:
generating a frame header synchronization mark indicating the start of a data frame and a frame end mark indicating the end of the data frame;
generating information matched with an upper computer in a data frame, wherein the information comprises a data source node ID of the upper computer;
generating information matched with the target multi-type information transmission device in the data frame, wherein the information comprises a high-order initial address of the target multi-type information transmission device;
generating information matched with control data of the test equipment of the current type in a data frame, wherein the information comprises a low-order initial address and transmission valid data;
generating a data length and a check code based on the determined high-order start address, low-order start address, transmission valid data;
sequentially combining the generated information according to the data frame format to obtain an encoded data frame;
wherein the number of times the data frame has been forwarded is 0.
Further, the data length is the total length of the transmission data starting address and the transmission effective data; the transmission data starting address consists of the high-order starting address and the low-order starting address;
a high-order start address for characterizing a private memory address of the current information transmission device, the private memory address being matched with a data source node ID of the current information transmission device;
the low-order initial address is used for representing a first offset storage address corresponding to a data sending port or a data receiving port for storing the corresponding type of transmission effective data;
the transmission valid data consists of one or more valid data.
Further, the multi-type information transmission device performs forwarding, recycling or processing operations according to the analysis result of the received optical signal, including:
analyzing the optical signal to obtain corresponding data frame, judging whether the data source node ID in the data frame is the data source node ID of the current multi-type information transmission device,
if yes, recycling the data frame;
if not, modifying the number of times the data frame is forwarded, converting the modified data frame into an optical signal and forwarding the optical signal to an optical fiber network; and determining whether to process the data frame based on the high start address in the data frame.
Further, the determining whether to process the data frame according to the high-order start address in the data frame includes:
if the high-order initial address in the data frame is not the high-order initial address of the current multi-type information transmission device, discarding the data frame;
if yes, determining a matched data receiving port according to the low-order initial address in the data frame, and sending the transmission effective data in the data frame to the matched data receiving port so as to process the data frame.
Further, the upper computer executes forwarding, recycling or processing operations according to the analysis result of the received optical signal, including:
analyzing the optical signal to obtain corresponding data frame, judging whether the data source node ID in the data frame is the data source node ID of the upper computer,
if yes, recycling the data frame;
if not, modifying the number of times the data frame is forwarded, converting the modified data frame into an optical signal and forwarding the optical signal to an optical fiber network; and judging whether valid data transmission in the data frame is needed according to the data source node ID, the high-order initial address and the low-order initial address in the data frame, and if so, processing the data frame.
Further, the multi-type information transmission apparatus includes: the device comprises a plurality of types of data transmission ports, data receiving ports, an encoding module, a decoding module and an optical fiber receiving and transmitting integrated module; wherein,
the input end of each type of data transmission port is connected with the signal output end of the corresponding type of test equipment, and the output end of each type of data transmission port is connected with the input end of the coding module;
the input end of each type of data receiving port is connected with the output end of the decoding module, and the output end of each type of data receiving port is connected with the signal input end of the corresponding type of test equipment;
the data input end of the optical fiber receiving and transmitting integrated module is connected with the output end of the encoding module, the data output end of the optical fiber receiving and transmitting integrated module is connected with the input end of the decoding module, and the optical fiber interface is connected with the optical fiber network and is used for being connected with the optical fiber interface board so as to interact optical signals with the optical fiber network.
Compared with the prior art, the invention has at least one of the following beneficial effects:
according to the optical fiber network working method based on the multi-type test equipment, one or more types of test equipment are connected to the multi-type information transmission device, and an optical fiber network system is built based on the multi-type information transmission device and the upper computer, so that the upper computer does not directly interact information with the test equipment any more, and interaction information between the upper computer and the test equipment is realized through the multi-type information transmission device. In the actual working process, the upper computer can allocate node IDs and special storage addresses for the multi-type information transmission devices in advance, and then can execute the operations of generating, forwarding, recycling or processing data frames according to the pre-allocated information, so that the workload in the working process of the optical fiber network is greatly reduced, and the working efficiency is improved.
Meanwhile, in the optical fiber network system used in the invention, the multi-type information transmission device is connected to the optical fiber interface board, and the multi-type test equipment is directly connected to the multi-type information transmission device, so that each test equipment is prevented from being directly connected to the optical fiber interface board.
In addition, the multi-type information transmission device used in the invention is provided with the data transmission port and the data receiving port which are used for respectively connecting the testing equipment of various types, so that the testing equipment of various types can be connected to the optical fiber network through the device, the difficulty of accessing the testing equipment into the optical fiber network and the complexity of the whole network structure are effectively reduced, and the connection reliability of the optical fiber network is effectively improved. Meanwhile, in the process of transmitting the optical signals, the method of adopting and forwarding is adopted, so that the instantaneity in the data transmission process can be effectively improved, and the data transmission requirement of an optical fiber network can be met.
Finally, the invention also defines the format of the data frame, wherein, the high-order initial address is used for representing the special storage address of the current information transmission device, and the special storage address is matched with the data source node ID of the current information transmission device; the low-order initial address is used for representing the first offset storage address corresponding to the data sending port or the data receiving port for storing the corresponding type of transmission effective data. By setting the data frame in the mode, the forwarding judging process of the optical fiber receiving and transmitting integrated module can be simplified, meanwhile, the decoding module can be convenient to quickly determine whether the received data frame is sent to the current multi-type information transmission device, and if yes, the data receiving port for transmitting effective data can be quickly positioned according to the low-order initial address. Therefore, the optical signals sent by the multi-type information transmission device and the optical signals sent by the upper computer to the multi-type information transmission device can be reliably and rapidly transmitted in the optical fiber network.
In the invention, the technical schemes can be mutually combined to realize more preferable combination schemes. Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure particularly pointed out in the written description and drawings.
Drawings
The drawings are only for purposes of illustrating particular embodiments and are not to be construed as limiting the invention, like reference numerals being used to refer to like parts throughout the several views.
FIG. 1 is a flowchart of an optical fiber network operation method based on a multi-type test device in an embodiment of the present invention;
FIG. 2 is a schematic diagram of a fiber optic network system based on multiple types of test equipment according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a multi-type information transmission device according to an embodiment of the present invention.
Detailed Description
Preferred embodiments of the present invention will now be described in detail with reference to the accompanying drawings, which form a part hereof, and together with the description serve to explain the principles of the invention, and are not intended to limit the scope of the invention.
The embodiment of the invention discloses an optical fiber network working method based on multi-type test equipment, wherein a flow chart is shown in fig. 1, and the method comprises the following steps:
step S1: based on a multi-type information transmission device connected with one or more types of test equipment and an upper computer, constructing an optical fiber network system;
step S2: the multi-type information transmission device and the upper computer respectively generate data frames, convert the data frames into optical signals and upload the optical signals to the optical fiber network; the multi-type information transmission device generates a data frame through encoding test sampling data output by the test equipment; the upper computer generates a data frame by encoding control data for controlling the test equipment;
step S3: the multi-type information transmission device and the upper computer also respectively receive optical signals from the optical fiber network, and execute forwarding, recycling or processing operations according to analysis results of the received optical signals.
Preferably, in the present embodiment, an optical fiber network system is built by performing the following operations, where the system includes an optical fiber interface board, a multi-type information transmission device, a multi-type test apparatus, and an upper computer; wherein, a plurality of the optical fiber interface boards are connected according to the network topology architecture of the optical fiber network; each optical fiber interface board is connected with one or more multi-type information transmission devices, and each multi-type information transmission device is connected with one or more types of test equipment; optionally, one of the optical fiber interface boards is connected with the upper computer; thereby forming the optical fiber network system, and the system structure schematic diagram is shown in fig. 2.
For example, the network topology structure may be selected according to actual design requirements, such as a ring type, a star type, etc., and the form of the network topology structure is not limited in this embodiment.
Preferably, the multi-type information transmission device in this embodiment has a schematic structure as shown in fig. 3, and includes: the device comprises a plurality of types of data transmission ports, data receiving ports, an encoding module, a decoding module and an optical fiber receiving and transmitting integrated module; the input end of each type of data transmission port is connected with the signal output end of the corresponding type of test equipment, and the output end of each type of data transmission port is connected with the input end of the coding module; the input end of each type of data receiving port is connected with the output end of the decoding module, and the output end of each type of data receiving port is connected with the signal input end of the corresponding type of test equipment; the data input end of the optical fiber receiving and transmitting integrated module is connected with the output end of the encoding module, the data output end of the optical fiber receiving integrated module is connected with the input end of the decoding module, and the optical fiber interface is connected with an optical fiber network and used for exchanging optical signals with the optical fiber network.
Preferably, the device further comprises a data acquisition module arranged between the data transmission port and the coding module; the data acquisition module is used for respectively setting sampling parameters of each type of data transmission port; and the device is also used for respectively collecting test sampling data of each type of test equipment according to the set sampling parameters and sending the test sampling data to the coding module.
Preferably, the encoding module is configured to encode test sampling data of each type of test equipment to obtain corresponding data frames, and send the encoded data frames to the optical fiber transceiver module, so that the optical fiber transceiver module converts the encoded data frames into corresponding optical signals, and transmits the converted optical signals to an optical fiber network.
Preferably, to illustrate the encoding process of the encoding module, so that the technician can better implement the present embodiment, this embodiment illustrates an alternative format of the data frame; and actually exemplifies with a unit of 16 bits as a field: specifically, the data frame includes the following fields in order:
(1) Frame head synchronous sign
The frame head synchronizing mark is used for determining the beginning of a data frame, and the upper 8 bits and the lower 8 bits are respectively a frame head synchronizing mark 1 and a frame head synchronizing mark 2. In practical implementation, the frame header synchronization flag is a fixed value, for example, the frame header synchronization flag is fixed to 0x55AA.
(2) Data Source node ID
The data source node ID is used to uniquely characterize the node ID of the current information transmission device. The information transmission device is used as a node in the optical fiber network, and unique node IDs which are unique identifiers of the nodes are allocated in advance by the optical fiber network.
(3) The number of times the data frame has been forwarded
The number of times a data frame has been forwarded is used to represent the number of nodes through which the current data frame passes. When the number of forwarding is greater than the upper limit (e.g., 160), the data frame is determined to be illegal "rogue frames" and no longer forwarded for reclamation.
(4) Data length
The data length is the total length of the transmission data starting address and the transmission effective data, and the data length is expressed as N, and then the data length comprises 16 bits higher than AddrH, 16 bits lower than AddrL and N-2 effective data.
(5) Transmitting data start address
The transmission data start address comprises the high-order start address (AddrH high) and the low-order start address (AddrL low); in particular, the method comprises the steps of,
the high-order initial address is used for representing a special storage address of the current information transmission device, and the special storage address is matched with a data source node ID of the current information transmission device; illustratively, in the present embodiment, the content of the lower 8 bits of the AddrH upper 16 bits is the same as the content of the lower 8 bits of the data source node ID, as shown in table 2.
The low-order initial address is used for representing the first offset storage address corresponding to the data sending port or the data receiving port for storing the corresponding type of transmission effective data.
(6) Transmitting payload data
The transmission valid data consists of one or more valid data.
In the process of encoding the received test sample data by the information transmission device, the data source node ID in the data frame is the data source node ID of the current information transmission device, the high-order start address is the special storage address of the current information transmission device, the low-order start address is the start transmission address (first offset storage address) of the data transmission port corresponding to the current type of test sample data, and the transmission valid data in the data frame is obtained based on the test sample data.
In the data transmission process of the optical fiber network, the upper computer in the optical fiber network may send control data to the data receiving ports of the information transmission devices, so that the upper computer in the optical fiber network may generate a data frame according to the format, except that in the data frame generated by the upper computer, the data source node ID is the node ID of the upper computer, the high-order initial address is the special storage address of the multi-type information transmission device to be controlled (the target multi-type information transmission device), the low-order initial address is the initial transmission address of the data sending port of the information transmission device to be controlled, and the transmission valid data corresponds to specific control data. Since the information transmission device and the host computer in the optical fiber network both generate the data frame according to the format, the information transmission device receives the optical signal from the optical fiber network, can analyze the optical signal into the data frame, and can determine whether the signal is useful for itself by analyzing the data frame.
The storage offset address corresponds to the data receiving port, the data transmitting port, and the transmission valid data, and the correspondence relationship is not particularly limited in this embodiment. In order to facilitate the user to better understand the correspondence between the storage offset address and the transmission valid data, table 1 also gives examples of the storage offset address allocation and the valid data stored at each address.
Meanwhile, it should be noted that, in the process of outputting data, the test sample data of each type of data sending port needs to be sorted according to the valid data form in table 1, so as to obtain valid data for transmission, and the low-order start address is used for determining the corresponding start transmission address. Illustratively, when encoding switching value data, the low-order start address is 0x0002, and at this time, the 1 st bit transmission valid data is 12-channel data acquired by switching value; accordingly, stored in the low-order start address +1 (i.e., low-order address 0x 0003) is a switching value acquisition counter for use as a time stamp for acquiring the data.
Table 1 stores an offset address assignment and an example of valid data stored at each address
(7) Check code
The check code can be selected from CRC check code, the 5+N th 16bit of the data frame is the CRC check code of the data frame, the calculation of the CRC check code is from the 04 th 16bit of the data frame to the 4+N 16bit, the CRC check algorithm adopts the international standard CRC-CCITT data check method with the 16bit width, namely the generation polynomial is G (x) =x 16 +x 12 +x 5 +1 cyclic redundancy check method.
(8) An end of frame flag;
6+N th 16 bits of the data frame are end-of-frame flags, which are used to mark the end of the data frame, and are fixed to 0xFFFF.
Examples of data frames are shown in table 2.
Table 2 data frame example
Preferably, the encoding module encodes the test sample data of each type of test equipment to obtain a corresponding data frame by performing the following operations:
generating a frame header synchronization mark indicating the start of a data frame and a frame end mark indicating the end of the data frame;
generating information matched with the current multi-type information transmission device in the data frame, wherein the information comprises a data source node ID and a high-order initial address;
generating information of test sampling data matched with the current type of test equipment in a data frame, wherein the information comprises a low-order initial address and transmission valid data; generating a data length and a check code based on the determined high-order start address, low-order start address and transmission valid data; specifically, a low-order initial address is determined according to a data sending port corresponding to test sampling data, then the test sampling data are sorted according to a format of table 1 to form transmission effective data, then the data length is determined, and finally a corresponding check code is generated according to the data length, the low-order initial address and the transmission effective data. It should be noted that, the number of times the data frame of the first encoded data frame has been forwarded is 0.
And combining the generated information in turn according to the data frame format to obtain the encoded data frame.
The optical fiber transceiver module in this embodiment not only converts and transmits the optical signal of the data frame output by the encoding module, but also receives the optical signal from the optical fiber network. The received optical signals are generated by other multi-type information transmission devices or upper computers; in a data frame corresponding to an optical signal generated by an upper computer, a data source node ID is the node ID of the upper computer, a high-order initial address is a special storage address of an information transmission device to be controlled, a low-order initial address is an initial transmission address of a data transmission port of the information transmission device to be controlled, and effective data is transmitted as control data;
specifically, the optical fiber transceiver module is configured to receive an optical signal from an optical fiber network, parse the optical signal to obtain a data frame, determine whether a data source node ID of the parsed data frame is a data source node ID of a current multi-type information transmission device,
if yes, the data frame sent by the current multi-type information transmission device is received again, and at the moment, the data frame is recovered;
if not, the data frame is indicated to be the data frame of other multi-type information transmission devices, and at the moment, on one hand, the data frame is transmitted to the decoding module, and whether the processing object of the data frame is the device is judged; on the other hand, the data frame in the data frame is modified to be forwarded times, and then the data frame is converted into a corresponding optical signal and transmitted to the optical fiber network.
Preferably, after modifying the number of times the data frame has been forwarded, the process of determining the number of times the data frame has been forwarded may be further increased: and if the number of times the modified data frame is forwarded exceeds the upper limit of the forwarding number, recovering the data frame, otherwise, converting the data frame into a corresponding optical signal and transmitting the corresponding optical signal to an optical fiber network. To avoid "rogue frames" being transmitted in the fiber optic network.
In the process of interconversion of a data frame and an optical signal, when each field in the data frame takes 16 bits as a unit, if the optical signal also takes 16 bits as a unit, the interconversion of the data frame and the optical signal is directly executed; if the optical signal takes 32 bits as a unit, sequentially combining two adjacent fields in the data frame, and then performing the interconversion between the data frame and the optical signal; at this time, the number of valid data in the transmission valid data is an even number.
Preferably, in this embodiment, the decoding module is configured to decode a received data frame to obtain a high-order start address, a low-order start address, and transmission valid data in the data frame; if the high-order start address is not the high-order start address of the current multi-type information transmission device, the data frame is not related to the current multi-type information transmission device, and the data frame is discarded; if yes, the data frame is related to the current multi-type information transmission device, a matched data receiving port is determined according to the low-order initial address, and transmission effective data in the data frame is sent to the matched data receiving port.
Preferably, the apparatus further comprises a data reconstruction module disposed between the decoding module and the data receiving port; the data reconstruction module is configured to reconstruct the transmission valid data based on the reconstruction parameters of the data receiving port, and send the reconstructed transmission valid data to the matched data receiving port.
Preferably, the types of the data transmitting port and the data receiving port in this embodiment are analog, switching, RS422 serial communication, 1M1553B, 4M1553B, CAN bus or LVDS bus. It should be noted that, because the manners of collecting and receiving data by the ports of different types are different, the manners of collecting and receiving data by the data transmitting port and the data receiving port corresponding to each type are also different. In the practical implementation process, a technician can set the corresponding data sending port and the corresponding data receiving port according to the types. In fig. 1, the data transmitting port corresponding to the analog is an a/D conversion port, and the data receiving port corresponding to the analog is a D/a conversion port; the data transmitting port and the data receiving port corresponding to the switching value are level conversion ports; the data transmitting port and the data receiving port corresponding to the RS422 serial communication are both signal conditioning ports.
It should be noted that, if the types of the data transmitting port and the data receiving port are the same, the sampling parameter of the data transmitting port is matched with the reconstruction parameter of the data receiving port. Illustratively, the sampling parameter is sampling frequency at the data transmission port of analog or switching type; and a data receiving port of analog quantity or switching quantity type, and reconstructing parameters to reconstruct frequency. Here, the sampling frequency and the reconstruction frequency should be kept identical. In addition, for the RS422 serial communication type, the sampling parameter of the data transmitting port and the reconstruction parameter of the data receiving port both include the baud rate, the parity bit; for the 1M1553B and 4M1553B types, the sampling parameters of the data transmission port and the reconstruction parameters of the data receiving port both comprise an operation mode and BC\RT\MT.
In step S2, the multi-type information transmission apparatus generates a data frame by encoding test sampling data output by the test device, including:
generating a frame header synchronization mark indicating the start of a data frame and a frame end mark indicating the end of the data frame;
generating information matched with the current multi-type information transmission device in a data frame, wherein the information comprises a data source node ID and a high-order initial address;
generating information of test sampling data matched with the current type of test equipment in a data frame, wherein the information comprises a low-order initial address and transmission valid data;
generating a data length and a check code based on the high-order start address, the low-order start address and the transmission valid data;
and combining the generated information in turn according to the data frame format to obtain the encoded data frame.
Based on the above description of the multi-type information transmission apparatus, it is known that the above-described process is performed in an encoding module in the multi-type information transmission apparatus.
In step S2, the host computer encodes control data by:
generating a frame header synchronization mark indicating the start of a data frame and a frame end mark indicating the end of the data frame;
generating information matched with an upper computer in a data frame, wherein the information comprises a data source node ID of the upper computer;
generating information matched with the target multi-type information transmission device in the data frame, wherein the information comprises a high-order initial address of the target multi-type information transmission device;
generating information matched with control data of the test equipment of the current type in a data frame, wherein the information comprises a low-order initial address and transmission valid data;
generating a data length and a check code based on the high-order start address, the low-order start address and the transmission valid data;
and combining the generated information in turn according to the data frame format to obtain the encoded data frame.
Preferably, in step S3, the multi-type information transmission apparatus performs forwarding, recycling or processing operations according to the analysis result of the received optical signal, including:
analyzing the optical signal to obtain corresponding data frame, judging whether the data source node ID in the data frame is the data source node ID of the current multi-type information transmission device,
if yes, recycling the data frame;
if not, modifying the number of times the data frame is forwarded, converting the modified data frame into an optical signal and forwarding the optical signal to an optical fiber network; and determining whether to process the data frame based on the high start address in the data frame.
The determining whether to process the data frame according to the high-order initial address in the data frame comprises the following steps:
if the high-order initial address in the data frame is not the high-order initial address of the current multi-type information transmission device, discarding the data frame;
if yes, determining a matched data receiving port according to the low-order initial address in the data frame, and sending the transmission effective data in the data frame to the matched data receiving port so as to process the data frame.
The above-mentioned process is completed based on the optical fiber transceiver module and the decoding module in the multi-type information transmission device.
In addition, the upper computer executes forwarding, recycling or processing operations according to the analysis result of the received optical signal, including:
analyzing the optical signal to obtain corresponding data frame, judging whether the data source node ID in the data frame is the data source node ID of the upper computer,
if yes, recycling the data frame;
if not, modifying the number of times the data frame is forwarded, converting the modified data frame into an optical signal and forwarding the optical signal to an optical fiber network; and judging whether valid data transmission in the data frame is needed according to the data source node ID, the high-order initial address and the low-order initial address in the data frame, and if so, processing the data frame.
Those skilled in the art will appreciate that all or part of the flow of the methods of the embodiments described above may be accomplished by way of a computer program to instruct associated hardware, where the program may be stored on a computer readable storage medium. Wherein the computer readable storage medium is a magnetic disk, an optical disk, a read-only memory or a random access memory, etc.
The present invention is not limited to the above-mentioned embodiments, and any changes or substitutions that can be easily understood by those skilled in the art within the technical scope of the present invention are intended to be included in the scope of the present invention.

Claims (8)

1. A method of operating a fiber optic network based on multiple types of test equipment, the method comprising:
based on a multi-type information transmission device connected with one or more types of test equipment and an upper computer, constructing an optical fiber network system;
the multi-type information transmission device and the upper computer respectively generate data frames, convert the data frames into optical signals and upload the optical signals to the optical fiber network; the multi-type information transmission device generates a data frame through encoding test sampling data output by the test equipment; the upper computer generates a data frame by encoding control data for controlling the test equipment;
the multi-type information transmission device and the upper computer also respectively receive optical signals from the optical fiber network and execute forwarding, recycling or processing operations according to analysis results of the received optical signals;
the building of the optical fiber network system comprises the following steps:
connecting a plurality of optical fiber interface boards according to a network topology architecture of an optical fiber network;
each optical fiber interface board is connected with one or more multi-type information transmission devices, and each multi-type information transmission device is connected with one or more types of test equipment;
optionally, one of the optical fiber interface boards is connected with the upper computer;
forming the optical fiber network system;
the multi-type information transmission apparatus includes: the device comprises a plurality of types of data transmission ports, data receiving ports, an encoding module, a decoding module and an optical fiber receiving and transmitting integrated module; wherein,
the input end of each type of data transmission port is connected with the signal output end of the corresponding type of test equipment, and the output end of each type of data transmission port is connected with the input end of the coding module;
the input end of each type of data receiving port is connected with the output end of the decoding module, and the output end of each type of data receiving port is connected with the signal input end of the corresponding type of test equipment;
the data input end of the optical fiber receiving and transmitting integrated module is connected with the output end of the encoding module, the data output end of the optical fiber receiving and transmitting integrated module is connected with the input end of the decoding module, and the optical fiber interface is connected with the optical fiber network and is used for being connected with the optical fiber interface board so as to interact optical signals with the optical fiber network.
2. The method of claim 1, wherein the data frame comprises the following fields in order: a frame header synchronization flag, a data source node ID, the number of times a data frame has been forwarded, a data length, a high start address, a low start address, transmission valid data, a check code, and an end of frame flag.
3. The method for operating a multi-type test equipment-based optical fiber network according to claim 2, wherein the multi-type information transmission device generates the data frame by encoding the test sample data outputted from the test equipment, comprising:
generating a frame header synchronization mark indicating the start of a data frame and a frame end mark indicating the end of the data frame;
generating information matched with the current multi-type information transmission device in a data frame, wherein the information comprises a data source node ID and a high-order initial address;
generating information of test sampling data matched with the current type of test equipment in a data frame, wherein the information comprises a low-order initial address and transmission valid data;
generating a data length and a check code based on the determined high-order start address, low-order start address and transmission valid data;
sequentially combining the generated information according to the data frame format to obtain an encoded data frame;
wherein the number of times the data frame has been forwarded is 0.
4. The method of claim 2, wherein the host computer encodes control data by:
generating a frame header synchronization mark indicating the start of a data frame and a frame end mark indicating the end of the data frame;
generating information matched with an upper computer in a data frame, wherein the information comprises a data source node ID of the upper computer;
generating information matched with the target multi-type information transmission device in the data frame, wherein the information comprises a high-order initial address of the target multi-type information transmission device;
generating information matched with control data of the test equipment of the current type in a data frame, wherein the information comprises a low-order initial address and transmission valid data;
generating a data length and a check code based on the determined high-order start address, low-order start address, transmission valid data;
sequentially combining the generated information according to the data frame format to obtain an encoded data frame;
wherein the number of times the data frame has been forwarded is 0.
5. A method of operating a multi-type test equipment based optical fiber network as claimed in any one of claims 2-4,
the data length is the total length of the transmission data starting address and the transmission effective data; the transmission data starting address consists of the high-order starting address and the low-order starting address;
a high-order start address for characterizing a private memory address of the current information transmission device, the private memory address being matched with a data source node ID of the current information transmission device;
the low-order initial address is used for representing a first offset storage address corresponding to a data sending port or a data receiving port for storing the corresponding type of transmission effective data;
the transmission valid data consists of one or more valid data.
6. The method according to claim 5, wherein the multi-type information transmission device performs forwarding, recycling or processing operations according to the analysis result of the received optical signal, and comprises:
analyzing the optical signal to obtain corresponding data frame, judging whether the data source node ID in the data frame is the data source node ID of the current multi-type information transmission device,
if yes, recycling the data frame;
if not, modifying the number of times the data frame is forwarded, converting the modified data frame into an optical signal and forwarding the optical signal to an optical fiber network; and determining whether to process the data frame based on the high start address in the data frame.
7. The method of claim 6, wherein determining whether to process the data frame based on a high-order start address in the data frame comprises:
if the high-order initial address in the data frame is not the high-order initial address of the current multi-type information transmission device, discarding the data frame;
if yes, determining a matched data receiving port according to the low-order initial address in the data frame, and sending the transmission effective data in the data frame to the matched data receiving port so as to process the data frame.
8. The method for operating a multi-type test device-based optical fiber network according to claim 5, wherein the host computer performs forwarding, recycling or processing operations according to the analysis result of the received optical signal, and the method comprises:
analyzing the optical signal to obtain corresponding data frame, judging whether the data source node ID in the data frame is the data source node ID of the upper computer,
if yes, recycling the data frame;
if not, modifying the number of times the data frame is forwarded, converting the modified data frame into an optical signal and forwarding the optical signal to an optical fiber network; and judging whether valid data transmission in the data frame is needed according to the data source node ID, the high-order initial address and the low-order initial address in the data frame, and if so, processing the data frame.
CN202111327791.5A 2021-11-10 2021-11-10 Optical fiber network working method based on multi-type test equipment Active CN114070404B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111327791.5A CN114070404B (en) 2021-11-10 2021-11-10 Optical fiber network working method based on multi-type test equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111327791.5A CN114070404B (en) 2021-11-10 2021-11-10 Optical fiber network working method based on multi-type test equipment

Publications (2)

Publication Number Publication Date
CN114070404A CN114070404A (en) 2022-02-18
CN114070404B true CN114070404B (en) 2023-12-22

Family

ID=80274594

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111327791.5A Active CN114070404B (en) 2021-11-10 2021-11-10 Optical fiber network working method based on multi-type test equipment

Country Status (1)

Country Link
CN (1) CN114070404B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104158636A (en) * 2014-08-12 2014-11-19 烽火通信科技股份有限公司 Multipath fibre channel (FC) business long distance transmission method based on field programmable gate array (FPGA), and multipath FC business long distance transmission device based on FPGA
CN106612141A (en) * 2016-12-20 2017-05-03 北京旋极信息技术股份有限公司 Optical fiber channel protocol general simulation testing card and data interaction method thereof
CN106788736A (en) * 2016-12-26 2017-05-31 北京电子工程总体研究所 A kind of multifunctional optical fiber communicator based on PXI buses
CN109004991A (en) * 2018-08-02 2018-12-14 深圳大学 A kind of anti-intercepting and capturing FSO- optical fiber hybrid network
CN113259006A (en) * 2021-07-14 2021-08-13 北京国科天迅科技有限公司 Optical fiber network communication system, method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102377633B (en) * 2010-08-06 2014-10-08 北京乾唐视联网络科技有限公司 Communication connection method and system of access network device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104158636A (en) * 2014-08-12 2014-11-19 烽火通信科技股份有限公司 Multipath fibre channel (FC) business long distance transmission method based on field programmable gate array (FPGA), and multipath FC business long distance transmission device based on FPGA
CN106612141A (en) * 2016-12-20 2017-05-03 北京旋极信息技术股份有限公司 Optical fiber channel protocol general simulation testing card and data interaction method thereof
CN106788736A (en) * 2016-12-26 2017-05-31 北京电子工程总体研究所 A kind of multifunctional optical fiber communicator based on PXI buses
CN109004991A (en) * 2018-08-02 2018-12-14 深圳大学 A kind of anti-intercepting and capturing FSO- optical fiber hybrid network
CN113259006A (en) * 2021-07-14 2021-08-13 北京国科天迅科技有限公司 Optical fiber network communication system, method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于RapidIO协议的光纤通信系统设计与实现;刘光祖;张强;仲雅莉;;电讯技术(第07期);全文 *

Also Published As

Publication number Publication date
CN114070404A (en) 2022-02-18

Similar Documents

Publication Publication Date Title
CN101651683B (en) Method for generating analysis source code of signaling message
WO2009004631A1 (en) Data packet header compression
CN111064545B (en) Device and method for realizing private network ground inspection with SPW interface based on FPGA
CN114070405B (en) Optical fiber network system based on multi-type test equipment
CN106598889A (en) SATA (Serial Advanced Technology Attachment) master controller based on FPGA (Field Programmable Gate Array) sandwich plate
CN114070885B (en) Multi-type information transmission method suitable for optical fiber network
CN111010616A (en) Audio and video transmission method and system based on IP network
CN114070404B (en) Optical fiber network working method based on multi-type test equipment
CN113676386B (en) FC-AE-1553 bus protocol message communication system
CN113784237B (en) Method, device, network equipment and computer medium for reporting collected data
CN114050890B (en) Multi-type information transmission device suitable for optical fiber network
CN114040018A (en) Data receiving and transmitting method and device based on JSON data format
CN111225077B (en) Network distribution method, device and system for Internet of things equipment
CN112118197B (en) Overhead monitoring method and device and computer readable storage medium
CN110138505B (en) CRC calculation method and system for heterogeneous protocol conversion
CN108259130A (en) The Modbus Transmission systems and method of a kind of baud rate even-odd check position adaptive
CN108833018B (en) Networking communication system and method
CN112486885A (en) Data frame generation method, storage medium and computer equipment
CN113595842B (en) FC-AE-1553 protocol message communication processing system
CN112732810A (en) Data transmission system, data transmission method, data transmission device, storage medium, and electronic device
CN111814161A (en) Data transmission method and system
CN112335203A (en) Processing local area network diagnostic data
CN214751515U (en) Test system of stability control system
EP4340232A1 (en) Encoding method, decoding method, and optical module
JPH04249447A (en) Atm transmission equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant