Multi-channel high-speed optical fiber link alignment method and system based on K characters

By using the K-character multi-channel high-speed optical fiber link alignment method in digital phased array radar, the problem of clock inconsistency and data asynchronization between TR components is solved, efficient synchronization alignment is achieved, design costs are reduced and design is improved. Anti-interference performance.

CN118740260APending Publication Date: 2024-10-01SICHUAN JIUZHOU AIR TRAFFIC CONTROL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410997487.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In digital phased array radar, the same source clock cannot be provided between TR components, resulting in data asynchronous, and the traditional method causes synchronization failure due to TR channel anomalies, resulting in synchronization alignment failure.

Method used

A multi-channel high-speed optical fiber link alignment method based on K characters is adopted. A clock management chip is used at the TR end to provide a reference clock and synchronization signal, and data is received and forwarded in the FPGA. Increasing serial numbers are added for synchronization alignment, and the initialization protocol is used. Solve the problem of data out of sync.

Benefits of technology

It reduces the design cost of synchronization alignment, improves the anti-interference performance, avoids synchronization failure caused by TR channel abnormalities, and achieves effective alignment of multi-channel data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740260A_ABST
    Figure CN118740260A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-channel high-speed optical fiber link alignment method and system based on K characters, and relates to the field of optical fiber link alignment, and the method comprises the steps: sequentially adding an incremental serial number into each frame of collection data collected by each channel, and aligning a reference clock phase of an ADC (Analog to Digital Converter) by taking a synchronization signal as a reference; the FPGA receives and forwards the collected data sent by the ADC by taking a reference clock as a reference, and synchronizes the collected data received in a multi-channel board in the FPGA by taking a synchronizing signal as a reference; carrying out inter-board data receiving on the acquired data forwarded by the FPGA by utilizing a signal processing receiving end; the problem that a homologous clock cannot be provided between a digital beam forming module and a TR assembly or data transmission asynchronization caused by link delay, a clock and the like between the TR assemblies is solved, and the problem of synchronization abnormity caused by cache data reading failure due to data errors caused by abnormal interference of some TR channels in a traditional method is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of optical fiber link alignment, and more specifically, to a multi-channel high-speed optical fiber link alignment method and system based on K characters. Background Art

[0002] Each channel of the digital phased array radar uses digital methods to generate a digital intermediate frequency signal, which is converted into an analog broadband intermediate frequency signal through a high-speed device, and then converted into a radio frequency through a TR component, and finally the transmission process is completed through the antenna array; the receiving process is similar to the transmitting process. After the antenna array receives the radio frequency signal, it is sampled and received by the TR component at the intermediate frequency and then sent to the back end for digital signal processing. Since the synchronization characteristics of each channel are compensated at the intermediate frequency through digital methods, the digital phased array radar has strong flexibility. The principle block diagram of the digital phased array radar is shown in the figure. Figure 2 As shown in the figure, in the digital phased array system, the synchronization alignment between the TRs is the key, because it directly affects whether the amplitude and phase of each receiving channel are consistent. If the amplitude and phase are inconsistent, it will directly affect the effect after beam synthesis, resulting in a decrease in the radar's detection performance and low recognition efficiency.

[0003] In the traditional processing method, each TR component and the beamforming process are the same clock system. For the beamforming process, the delay between each TR component is often fixed. This fixed delay is often caused by line delay. Therefore, the TR data of each channel is sent to the FPGA for cache. When the data of all channels in the cache arrives, the data is read and the synchronization alignment of each TR channel is completed. However, the above method has the following disadvantages:

[0004] 1) The system needs to perform coherent clock processing, which requires high hardware cost. In some practical situations, such as when the distance between the TR component and the digital beamforming is far, the coherent clock cannot be achieved. In addition, the TR components may also be out of sync due to factors such as link delay and clock, resulting in problems with the waveform synthesized by the digital beamforming.

[0005] 2) The method of reading after all the data of the TR channel arrives is prone to failure in reading cached data due to abnormal data of some TR channels, resulting in synchronization failure.

[0006] In view of this, this application is hereby made. Summary of the invention

[0007] The purpose of the present invention is to provide a multi-channel high-speed optical fiber link alignment method and system based on K characters, which solves the problem that the digital beamforming module and the TR component cannot provide a homologous clock or the transmission data is not synchronized between the TR components due to link delay, clock and other reasons, as well as the traditional method. The data error caused by abnormal interference of some TR channels leads to the synchronization abnormality caused by the failure to read the cached data.

[0008] The above technical objectives of the present invention are achieved through the following technical solutions:

[0009] In a first aspect, the present application provides a multi-channel high-speed optical fiber link alignment method based on K characters, comprising a signal processing receiving end and a TR end, wherein the TR end is used to send the collected data of multiple channels in each ADC to the signal processing receiving end, and the alignment method is used to realize the synchronous alignment of the collected data of multiple channels of each ADC, and the synchronous alignment of the collected data received by the signal processing receiving end, and the alignment method comprises the following specific steps:

[0010] The clock management chip in the TR end is used to phase-lock and frequency-multiply the clock provided by the external local oscillator source, control the TR end to output multiple reference clocks and multiple synchronization signals, and transmit each reference clock and each synchronization signal to the FPGA and each ADC respectively;

[0011] Each ADC uses the reference clock as a reference and each channel to collect data, adds an increasing serial number to each frame of the collected data collected by each channel, and aligns the reference clock phase of the ADC with the synchronization signal as a reference;

[0012] The FPGA receives and forwards the collected data sent by the ADC based on the reference clock, and synchronizes the collected data received in the multi-channel board in the FPGA based on the synchronization signal;

[0013] The signal processing receiving end is used to receive the collected data forwarded by the FPGA between boards. The signal processing receiving end uses an external crystal oscillator as a reference clock and as a benchmark for receiving data between boards.

[0014] Based on the above technical solution, the present invention can also be improved as follows.

[0015] Furthermore, the TR end includes a TR component A, a TR component B and a TR component C. The method further includes: before collecting the collected data, initializing the TR end, and the initialization is specifically as follows:

[0016] TR component A, TR component B and TR component C respectively determine whether they are the master TR through position detection. When one of them is determined to be the master TR, the master TR sends the initialization protocol to the other two non-master TRs through the communication discrete line; when the other two non-master TRs detect the initialization message, the two non-master TRs return ACK information to the master TR. If the master TR does not receive the returned ACK information, the master TR continues to send the initialization protocol until it receives the ACK information;

[0017] After receiving the ACK information sent back by the other two non-master TRs, the master TR sends a synchronization signal to the two non-master TRs, and the two non-master TRs complete the initialization process according to the received synchronization signal;

[0018] The delay parameters between the master TR and the non-master TR are obtained. The master TR performs delay processing according to the delay parameters, and the master TR after delay processing is initialized. The delay parameters include communication delay and protocol analysis delay. The initialization processing includes resetting DDS, clearing the cache, and setting the incremented sequence number.

[0019] Furthermore, the FPGA receives and forwards the collected data sent by the ADC, specifically:

[0020] The GTH IP in the FPGA is used to perform serial-to-parallel conversion processing on the collected data sent by TR component A, TR component B and TR component C respectively;

[0021] According to the preset packet grouping protocol, and based on the K character at a fixed position in each collected data, the collected data after the serial-to-parallel conversion is respectively verified and analyzed, and the original data of the ADC, the incrementing serial number and the K character are extracted;

[0022] According to the obtained K character, it is judged whether the collected data sent by each component in the TR end is pre-initialization data or post-initialization data, and the collected data sent by each component in the TR end is marked respectively according to the judgment result.

[0023] Furthermore, the above-mentioned signal processing receiving end receives the collected data forwarded by the FPGA between boards, specifically:

[0024] The signal processing receiving end obtains the original data, the incrementing sequence number and the K character of the ADC extracted from each collected data, and sends each collected data to the FIFO1 of the corresponding TR component for buffering, and the incrementing sequence number corresponding to the collected data to the FIFO2 of the corresponding TR component for buffering;

[0025] Get the mark information of the collected data sent by each component in the TR end. If there is mark information of incomplete initialization in each TR component, read the cached data in FIFO1 and use it in the next level; if there is no mark information of incomplete initialization in each TR component, determine the incremental serial number of the collected data transmitted in each TR component. If the incremental serial numbers are the same, read the cached data in FIFO1 of each TR component for one frame and use it in the next level; if the incremental serial numbers are different in size, send the feedback status of different sizes to each TR component through the packetization protocol.

[0026] Furthermore, the above method also includes:

[0027] When there is no mark information of incomplete initialization in each TR component, according to the first time of reading a frame of data cached in FIFO2 and the preset time redundancy, it is judged whether each TR component has data within the period of the first time and the sum of the time redundancy, if so, directly read the data from FIFO1; if the period for judging whether the data exists exceeds the sum of the first time and the time redundancy, the timeout channel remains unchanged.

[0028] In a second aspect, the present application provides a multi-channel high-speed optical fiber link alignment system based on K characters, which is applied to a multi-channel high-speed optical fiber link alignment method based on K characters in any one of the first aspects, including a signal processing receiving end and a TR end, the TR end is used to send the collected data of multiple channels in each ADC to the signal processing receiving end, and the alignment system is used to realize the synchronous alignment of the collected data of multiple channels of each ADC, and the synchronous alignment of the collected data received by the signal processing receiving end, including:

[0029] The first module is used to control the TR end to output multiple reference clocks and multiple synchronization signals after phase locking and frequency multiplication of the clock provided by the external local oscillator source by the clock management chip in the TR end, and transmit each reference clock and each synchronization signal to the FPGA and each ADC respectively;

[0030] The second module is used to collect data through each ADC using the reference clock as a reference and using each channel, adding an increasing sequence number in each frame of the collected data collected by each channel in sequence, and aligning the reference clock phase of the ADC using the synchronization signal as a reference;

[0031] The third module is used to receive and forward the collected data sent by the ADC based on the reference clock through the FPGA, and synchronize the collected data received in the multi-channel board in the FPGA based on the synchronization signal;

[0032] The fourth module is used to use the signal processing receiving end to receive the collected data forwarded by the FPGA between boards. The signal processing receiving end uses an external crystal oscillator as a reference clock and as a benchmark for receiving data between boards.

[0033] Furthermore, the TR end includes a TR component A, a TR component B and a TR component C. The first module is also used to initialize the TR end before collecting the collected data. The initialization is specifically as follows:

[0034] TR component A, TR component B and TR component C respectively determine whether they are the master TR through position detection. When one of them is determined to be the master TR, the master TR sends the initialization protocol to the other two non-master TRs through the communication discrete line; when the other two non-master TRs detect the initialization message, the two non-master TRs return ACK information to the master TR. If the master TR does not receive the returned ACK information, the master TR continues to send the initialization protocol until it receives the ACK information;

[0035] After receiving the ACK information sent back by the other two non-master TRs, the master TR sends a synchronization signal to the two non-master TRs, and the two non-master TRs complete the initialization process according to the received synchronization signal;

[0036] The delay parameters between the master TR and the non-master TR are obtained. The master TR performs delay processing according to the delay parameters, and the master TR after delay processing is initialized. The delay parameters include communication delay and protocol analysis delay. The initialization processing includes resetting DDS, clearing the cache, and setting the incremented sequence number.

[0037] Furthermore, the third module includes:

[0038] The first submodule is used to use the GTH IP in the FPGA to perform serial-to-parallel conversion processing on the collected data sent by the TR component A, the TR component B and the TR component C respectively;

[0039] The second submodule is used to perform verification processing and analysis processing on the collected data after serial-to-parallel conversion processing according to the preset packet grouping protocol and based on the K character at a fixed position in each collected data, and extract the original data of ADC, the incremental sequence number and the K character;

[0040] The third submodule is used to determine whether the collected data sent by each component in the TR end is pre-initialization data or post-initialization data according to the obtained K character, and mark the collected data sent by each component in the TR end according to the judgment result.

[0041] In a third aspect, the present application provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any one of the methods in the first aspect when executing the computer program.

[0042] In a fourth aspect, the present application provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions enable a computer to execute any one of the methods in the first aspect.

[0043] Compared with the prior art, the present invention has at least the following beneficial effects:

[0044] In the present application, due to the problem that the digital beamforming module and the TR component cannot provide the same source clock under certain circumstances, or the transmission data between the TR components is not synchronized due to link delay, clock and other reasons, and the traditional method causes data errors due to abnormal interference of some TR channels, thereby failing to read the cached data and causing synchronization abnormality problems; a multi-channel high-speed optical fiber link alignment method based on K characters is adopted, based on K character timing control, when the TR component is transmitting data, an incremental sequence number is added to each frame message, and the receiving end completes the alignment processing of the multi-channel data by judging and controlling the received incremental sequence number. At the same time, the "initialization handshake mechanism" is used to solve the problem of asynchronous data transmission between TR components, thereby solving the problems of high design hardware cost and failure of data synchronization alignment due to interference.

[0045] In the present application, in view of the shortcomings of the existing synchronization alignment technology, such as high design cost and anti-interference performance, a multi-channel high-speed optical fiber link alignment method based on K characters is used to support multi-channel data transmission between boards. The TR component initialization processing is used to complete the synchronous processing of the sent data, and the sent data increases the incremental sequence number, etc., thereby reducing the synchronization alignment design cost. A threshold-based multi-channel data reading method is adopted to solve the data anomalies caused by the traditional simultaneous reading of FIFOs and improve the anti-interference performance. The method is flexible in application, effectively simplifies the design, and reduces the design cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The drawings described herein are used to provide a further understanding of the embodiments of the present invention, constitute a part of this application, and do not constitute a limitation of the embodiments of the present invention. In the drawings:

[0047] Figure 1 A flowchart of an alignment method according to an embodiment of the present invention;

[0048] Figure 2 This is a principle block diagram of a digital phased array radar in an embodiment of the present invention;

[0049] Figure 3A general block diagram of the system hardware design of the alignment method in an embodiment of the present invention;

[0050] Figure 4 A detailed block diagram of the system hardware design of the alignment method in an embodiment of the present invention;

[0051] Figure 5 A system software design block diagram of the alignment method in an embodiment of the present invention;

[0052] Figure 6 Schematic diagram of the connection of the alignment system in an embodiment of the present invention. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0054] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0055] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0056] In the description of the embodiments of the present invention, "plurality" means at least 2.

[0057] In the description of the embodiments of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal connection of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0058] Embodiment 1: In some scenarios, there is a problem that the digital beamforming module and the TR component cannot provide the same source clock, and there is a problem of asynchronous transmission data between the TR components due to link delay, clock and other reasons. In addition, there is a synchronization abnormality problem caused by data errors caused by abnormal interference of some TR channels in traditional methods, which leads to failure to read cached data. This embodiment provides a multi-channel high-speed optical fiber link alignment method based on K characters, including a signal processing receiving end and a TR end. The TR end is used to send the collected data of multiple channels in each ADC to the signal processing receiving end. The alignment method is used to achieve synchronous alignment of the collected data of multiple channels of each ADC, and synchronous alignment of the collected data received by the signal processing receiving end, such as Figure 1 As shown, the alignment method includes the following specific steps:

[0059] S1, uses the clock management chip in the TR end to phase-lock and multiply the clock provided by the external local oscillator source, controls the TR end to output multiple reference clocks and multiple synchronization signals, and transmits each reference clock and each synchronization signal to the FPGA and each ADC respectively.

[0060] To implement the alignment method, we first need to build a system that implements the alignment method. The system includes hardware and software. The hardware part of the system is as follows: Figure 3 and Figure 4 As shown in the figure, the system hardware design is divided into a TR end and a signal processing receiving end; the TR end has three TR components, A, B, and C, whose main function is to receive data from the TR and send the data collected by the ADC to the signal processing board. The three TRs use the same clock and have communication discrete lines of equal length with strong anti-interference performance; the main function of the signal processing board receiving end is to perform digital beam synthesis on the received TR data.

[0061] Specifically, the clock management chip at the TR end performs phase locking and frequency multiplication on the clock provided by the external local oscillator source, and then outputs multiple reference clocks and synchronization signals to multiple ADC sampling chips and FPGAs. Figure 3 and Figure 4 As shown in the figure, the ADC uses the reference clock as a benchmark to collect and send data, and uses the synchronization signal as a benchmark to align the ADC reference clock phase. The FPGA receiving end uses the reference clock as a benchmark to receive and forward the data sent by the ADC, and uses the synchronization signal as a benchmark to synchronize the received data in the multi-channel board. Figure 3 and Figure 4 ,The digital beamforming FPGA uses the local external crystal oscillator as the reference clock as the benchmark, and receives the FPGA input data from the 4-way TR through the optical fiber .

[0062] Furthermore, the software part of the system corresponding to this alignment method can be regarded as the data sending end (TR component and digital signal processing FPGA) and the data receiving end (digital beamforming FPGA), such as Figure 5 As shown in the figure, the overall data transmission process is as follows: after detecting that the optical fiber link is successfully established, the data sending end will increment the identifier and the sampled data for packet processing, and then the Transceiver will complete the data parallel-to-serial conversion; at the data receiving end, the Transceiver will complete the serial-to-parallel conversion, and then complete the unpacking process through the unpacking protocol to restore the original ADC sampling data and other data.

[0063] Optionally, the TR end includes a TR component A, a TR component B and a TR component C, combined with Figure 3 and Figure 4 , where: TR component A includes various ADCs and digital signal processing FPGA, TR component A forms an FPGA connection with the digital signal, and TR component B and TR component C also form FPGA connections with the digital signal respectively, and TR component A, TR component B and TR component C are connected through communication discrete lines, and their connection relationship is as follows Figure 3 As shown; the alignment method may also include: before collecting the collected data, initializing the TR end, the initialization specifically includes:

[0064] S11, TR component A, TR component B and TR component C respectively determine whether they are the master TR through position detection. When one of them is determined to be the master TR, the master TR sends an initialization protocol to the other two non-master TRs through the communication discrete line; when the other two non-master TRs detect the initialization message, the two non-master TRs return ACK information to the master TR. If the master TR does not receive the returned ACK information, the master TR continues to send the initialization protocol until it receives the ACK information.

[0065] S12, after receiving the ACK information sent back by the other two non-master TRs, the master TR sends a synchronization signal to the two non-master TRs, and the two non-master TRs complete the initialization process according to the received synchronization signal.

[0066] S13, obtaining the delay parameters between the master TR and the non-master TR, the master TR performs delay processing according to the delay parameters, and initializes the master TR after the delay processing. The delay parameters include communication delay and protocol analysis delay. The initialization processing includes resetting DDS, clearing the cache, and setting an incrementing sequence number.

[0067] Among them, completing the initialization processing can solve the delay caused by factors such as link, startup, and clock between the three TR components, thereby causing phase asynchrony. Through the initialization reset operation, it is ensured that the data sent by the TR component is synchronized in time and phase; specifically, after the initialization of the TR component is successfully completed, it first resets the DDS to ensure that the data phase after down-conversion remains synchronized, and at the same time clears the FIFO buffer and sets the incrementing sequence number. Then, the data is packaged according to the preset protocol, and the packaged data is sent out through GTH. After each frame of data is sent, the incrementing sequence number in the protocol is accumulated once, and then the next frame of data is packaged and sent.

[0068] S2, using each ADC to collect data using each channel with reference clock as reference, adding an increasing serial number to each frame of the collected data collected by each channel in sequence, and aligning the reference clock phase of the ADC with the synchronization signal as reference.

[0069] S3, receiving and forwarding the collected data sent by the ADC by using the reference clock as a reference through the FPGA, and synchronizing the collected data received in the multi-channel board in the FPGA by using the synchronization signal as a reference.

[0070] Optionally, the FPGA receives and forwards the collected data sent by the ADC, specifically:

[0071] S31, using the GTH IP in the FPGA to perform serial-to-parallel conversion processing on the collected data sent by the TR component A, the TR component B and the TR component C respectively.

[0072] S32, according to the preset packet grouping protocol, and based on the K character at a fixed position in each collected data, the collected data after the serial-to-parallel conversion is respectively verified and analyzed, and the original data of the ADC, the incrementing serial number and the K character are extracted.

[0073] Among them, the preset packetization protocol can be that the sending and receiving ends use the Transceiver communication protocol, 8B / 10B encoding, and 4-byte alignment. The specific protocols are shown in Tables 1 and 2, wherein Table 1 represents the communication protocol between the TR component and the digital beamforming (downlink), and Table 2 represents the communication protocol between the digital beamforming and the TR component (uplink).

[0074] Table 1

[0075]

[0076] Table 2

[0077] Serial number content illustrate Remark 1. D31 Working Mode Serial Data 2. D30 Synchronous alignment indicator 0 is aligned, 1 is not aligned 3. …… …… / 4. …… Encoded signal / 5. …… …… / 6. D17 Transmit IQ data Serial Data 7. D16 Increment sequence number Serial Data 8. D15-D08 Checksum All data except this field are added byte by byte, then inverted and added 1 9. D07-D00 K Character 8hB

[0078] S33, judging whether the collected data sent by each component in the TR end is pre-initialization data or post-initialization data according to the obtained K character, and marking the collected data sent by each component in the TR end respectively according to the judgment result.

[0079] The above can be described as unpacking processing, which mainly completes multi-channel data reception and data analysis processing. The GTH IP core in the FPGA is used to complete the serial-to-parallel conversion of the data sent by the TR component, and then the data is verified and analyzed based on the packetization protocol and the K character at a fixed position, and the ADC original data, the incrementing serial number, and the K character are extracted. The TR data is judged based on the K character whether it is pre-initialization or post-initialization data, and marked as FLAG_INIT (0 represents pre-initialization and 1 represents post-initialization).

[0080] S4, using the signal processing receiving end to receive the collected data forwarded by the FPGA between boards, the signal processing receiving end uses an external crystal oscillator as a reference clock and as a benchmark for receiving data between boards.

[0081] Optionally, the signal processing receiving end performs inter-board data reception on the collected data forwarded by the FPGA, specifically:

[0082] S41, the signal processing receiving end obtains the original data, incremental serial number and K character of the ADC extracted from each collected data, and sends each collected data to the FIFO1 of the corresponding TR component for caching, and the incremental serial number corresponding to the collected data is sent to the FIFO2 of the corresponding TR component for caching.

[0083] Among them, although the TR components are synchronized, there is still a fixed delay in the receiving channel due to line differences; therefore, the data that is correctly parsed after unpacking is first sent to FIFO1 for caching, and the incremental sequence number corresponding to this data is also sent to FIFO2 for caching to record the incremental sequence number.

[0084] S42, obtain the mark information of the collected data sent by each component in the TR end. If there is mark information of incomplete initialization in each TR component, read the cached data in FIFO1 and use it in the next level; if there is no mark information of incomplete initialization in each TR component, determine the incremental serial number of the collected data transmitted in each TR component. If the incremental serial numbers are the same in size, read the cached data in FIFO1 of each TR component for one frame and then use it in the next level; if the incremental serial numbers are different in size, send the feedback status of different sizes to each TR component through the packetization protocol.

[0085] Among them, the data of FIFO2 of each TR component is read. If the FLAG_INIT of the three TR components is not all 1, it means that the initialization has not been completed, so the data of FIFO1 is directly read for the next level; if the FLAG_INIT of the three TR components is 1, it means that the initialization has been completed, and then the size of the incremented sequence number after reading is determined. If the size is the same, the data in the FIFO1 of all TRs is read for one frame and then used in the next level; if the size is inconsistent, the information of this state is sent to the TR component through the synchronization alignment indication in Table 2. The TR component performs reset and other operations by judging the status information of the synchronization alignment indication. When the continuous detection has not been synchronized, the reset operation is canceled, and this state is notified to the operator through self-test.

[0086] Optionally, the above method further includes:

[0087] S5, when there is no mark information of incomplete initialization in each TR component, according to the first time of reading a frame of data cached in FIFO2 and the preset time redundancy, it is judged whether each TR component has data within the period of the sum of the first time and the time redundancy, if so, directly read data from FIFO1; if the period for judging whether the data exists exceeds the sum of the first time and the time redundancy, the timeout channel remains unchanged.

[0088] Among them, the operation of reading FIFO2 under the condition that FLAG_INIT of the three TR components are all 1 can be: the cycle of reading FIFO2 is the time T1 of one frame of data, and the time redundancy T2 can be set according to the parameters; if the three TRs have data during the period T1+T2, the data is read directly; if the timing exceeds T1+T2, the data of the timeout channel is set to be consistent with the last time.

[0089] Specifically, in view of the high design cost and anti-interference performance of the existing synchronization alignment technology, this embodiment provides a multi-channel high-speed optical fiber link alignment method based on K characters, which can support multi-channel data transmission between boards, complete the synchronous processing of the transmitted data through the TR component initialization processing, increase the sequence number of the transmitted data, etc., reduce the synchronization alignment design cost, adopt a multi-channel data reading method based on threshold value, solve the data anomaly caused by the traditional simultaneous reading of FIFO, and improve the anti-interference performance. The method is flexible in application, effectively simplifies the design, and reduces the design cost.

[0090] Embodiment 2: The embodiment of the present application is a multi-channel high-speed optical fiber link alignment system based on K characters, which is applied to a multi-channel high-speed optical fiber link alignment method based on K characters in any one of Embodiment 1, including a signal processing receiving end and a TR end, the TR end is used to send the collected data of multiple channels in each ADC to the signal processing receiving end, and the alignment system executes the above alignment method and realizes the synchronous alignment of the collected data of multiple channels of each ADC, and the synchronous alignment of the collected data received by the signal processing receiving end based on hardware design and software settings, such as Figure 6 As shown, including:

[0091] The first module is used to use the clock management chip in the TR end to phase-lock and multiply the clock provided by the external local oscillator source, control the TR end to output multiple reference clocks and multiple synchronization signals, and transmit each reference clock and each synchronization signal to the FPGA and each ADC respectively.

[0092] Optionally, the TR end includes a TR component A, a TR component B and a TR component C. The first module is further used to initialize the TR end before collecting the collected data. The initialization is specifically as follows:

[0093] TR component A, TR component B and TR component C respectively determine whether they are the master TR through position detection. When one of them is determined to be the master TR, the master TR sends an initialization protocol to the other two non-master TRs through the communication discrete line; when the other two non-master TRs detect the initialization message, the two non-master TRs return ACK information to the master TR. If the master TR does not receive the returned ACK information, the master TR continues to send the initialization protocol until it receives the ACK information.

[0094] After receiving the ACK information sent back by the other two non-master TRs, the master TR sends a synchronization signal to the two non-master TRs, and the two non-master TRs complete the initialization process according to the received synchronization signal.

[0095] The delay parameters between the master TR and the non-master TR are obtained. The master TR performs delay processing according to the delay parameters, and the master TR after delay processing is initialized. The delay parameters include communication delay and protocol analysis delay. The initialization processing includes resetting DDS, clearing the cache, and setting the incremented sequence number.

[0096] The second module is used to collect data through each ADC using the reference clock as the reference and using each channel, adding an increasing serial number in each frame of the collected data collected by each channel in sequence, and aligning the reference clock phase of the ADC using the synchronization signal as the reference.

[0097] The third module is used to receive and forward the collected data sent by the ADC through the FPGA based on the reference clock, and synchronize the collected data received in the multi-channel board in the FPGA based on the synchronization signal.

[0098] Optionally, the third module includes:

[0099] The first submodule is used to use the GTH IP in the FPGA to perform serial-to-parallel conversion processing on the collected data sent by the TR component A, the TR component B and the TR component C respectively.

[0100] The second submodule is used to perform verification processing and analysis processing on the collected data after serial-to-parallel conversion according to the preset packet grouping protocol and based on the K character at a fixed position in each collected data, and extract the original data of ADC, the incrementing serial number and the K character.

[0101] The third submodule is used to determine whether the collected data sent by each component in the TR end is pre-initialization data or post-initialization data according to the obtained K character, and mark the collected data sent by each component in the TR end according to the judgment result.

[0102] The fourth module is used to use the signal processing receiving end to receive the collected data forwarded by the FPGA between boards. The signal processing receiving end uses an external crystal oscillator as a reference clock and as a benchmark for receiving data between boards.

[0103] Embodiment 3: The embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, any one of the methods in Embodiment 1 is implemented.

[0104] Embodiment 4: The embodiment of the present application provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions enable a computer to execute any method in Embodiment 1.

[0105] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A multi-channel high-speed optical fiber link alignment method based on K characters, comprising a signal processing receiving end and a TR end, wherein the TR end is used to send the collected data of multiple channels in each ADC to the signal processing receiving end, and the alignment method is used to achieve synchronous alignment of the collected data of multiple channels of each ADC, and synchronous alignment of the collected data received by the signal processing receiving end, characterized in that: The alignment method comprises the following specific steps: The clock management chip in the TR end is used to phase-lock and frequency-multiply the clock provided by the external local oscillator source, control the TR end to output multiple reference clocks and multiple synchronization signals, and transmit each reference clock and each synchronization signal to the FPGA and each ADC respectively; Using each ADC to collect data using the reference clock as a reference and using each channel, adding an increasing sequence number to each frame of the collected data collected by each channel in sequence, and aligning the reference clock phase of the ADC using the synchronization signal as a reference; The collected data sent by the ADC is received and forwarded by the FPGA based on the reference clock, and the collected data received in the multi-channel board in the FPGA is synchronized based on the synchronization signal; The signal processing receiving end is used to receive the collected data forwarded by the FPGA between boards. The signal processing receiving end uses an external crystal oscillator as a reference clock and as a benchmark for receiving the data between boards.

2. A K-character-based multi-channel high-speed optical fiber link alignment method according to claim 1, characterized in that: The TR end includes a TR component A, a TR component B and a TR component C. The method further includes: before collecting the collected data, initializing the TR end, and the initialization is specifically: TR component A, TR component B and TR component C respectively determine whether they are the master TR through position detection. When one of them is determined to be the master TR, the master TR sends an initialization protocol to the other two non-master TRs through the communication discrete line; when the other two non-master TRs detect the initialization message, the two non-master TRs return ACK information to the master TR. If the master TR does not receive the returned ACK information, the master TR continues to send the initialization protocol until it receives the ACK information; After receiving the ACK information returned by the other two non-master TRs, the master TR sends a synchronization signal to the two non-master TRs, and the two non-master TRs complete the initialization process according to the received synchronization signal; Obtain the delay parameters between the master TR and the non-master TR, the master TR performs delay processing according to the delay parameters, and initializes the master TR after the delay processing, the delay parameters include communication delay and protocol analysis delay, and the initialization processing includes resetting DDS, clearing the cache, and setting an incrementing sequence number.

3. A K-character-based multi-channel high-speed optical fiber link alignment method according to claim 2, characterized in that: FPGA receives and forwards the collected data sent by ADC, specifically: The GTH IP in the FPGA is used to perform serial-to-parallel conversion processing on the collected data sent by TR component A, TR component B and TR component C respectively; According to the preset packet grouping protocol, and based on the K character at a fixed position in each collected data, the collected data after the serial-to-parallel conversion is respectively verified and analyzed, and the original data of the ADC, the incrementing serial number and the K character are extracted; According to the obtained K character, it is judged whether the collected data sent by each component in the TR end is pre-initialization data or post-initialization data, and the collected data sent by each component in the TR end is marked respectively according to the judgment result.

4. A K-character-based multi-channel high-speed optical fiber link alignment method according to claim 3, characterized in that: The use of the signal processing receiving end to receive the collected data forwarded by the FPGA between boards is specifically as follows: The signal processing receiving end obtains the original data, the incrementing sequence number and the K character of the ADC extracted from each collected data, and sends each collected data to the FIFO1 of the corresponding TR component for buffering, and the incrementing sequence number corresponding to the collected data to the FIFO2 of the corresponding TR component for buffering; Get the mark information of the collected data sent by each component in the TR end. If there is mark information of incomplete initialization in each TR component, read the cached data in FIFO1 and use it in the next level; if there is no mark information of incomplete initialization in each TR component, determine the incremental serial number of the collected data transmitted in each TR component. If the incremental serial numbers are the same, read the cached data in FIFO1 of each TR component for one frame and use it in the next level; if the incremental serial numbers are different in size, send the feedback status of different sizes to each TR component through the packetization protocol.

5. A K-character-based multi-channel high-speed optical fiber link alignment method according to claim 4, characterized in that: The method further comprises: When there is no mark information of incomplete initialization in each TR component, according to the first time of reading a frame of data cached in FIFO2 and the preset time redundancy, it is judged whether each TR component has data within the period of the first time and the sum of the time redundancy, if so, directly read the data from FIFO1; if the period for judging whether the data exists exceeds the sum of the first time and the time redundancy, the timeout channel remains unchanged.

6. A multi-channel high-speed optical fiber link alignment system based on K characters, applied to a multi-channel high-speed optical fiber link alignment method based on K characters according to any one of claims 1 to 5, comprising a signal processing receiving end and a TR end, wherein the TR end is used to send the collected data of multiple channels in each ADC to the signal processing receiving end, and the alignment system is used to realize the synchronous alignment of the collected data of multiple channels of each ADC, and the synchronous alignment of the collected data received by the signal processing receiving end, characterized in that: include: The first module is used to control the TR end to output multiple reference clocks and multiple synchronization signals after phase locking and frequency multiplication of the clock provided by the external local oscillator source by the clock management chip in the TR end, and transmit each reference clock and each synchronization signal to the FPGA and each ADC respectively; The second module is used to collect data through each ADC using the reference clock as a reference and using each channel, add an increasing sequence number in each frame of the collected data collected by each channel in sequence, and align the reference clock phase of the ADC using the synchronization signal as a reference; The third module is used to receive and forward the collected data sent by the ADC based on the reference clock through the FPGA, and synchronize the collected data received in the multi-channel board in the FPGA based on the synchronization signal; The fourth module is used to use the signal processing receiving end to receive the collected data forwarded by the FPGA between boards. The signal processing receiving end uses an external crystal oscillator as a reference clock and as a benchmark for receiving data between boards.

7. A K-character-based multi-channel high-speed optical fiber link alignment system according to claim 6, characterized in that: The TR end includes a TR component A, a TR component B and a TR component C. The first module is also used to initialize the TR end before collecting the collected data. The initialization is specifically: TR component A, TR component B and TR component C respectively determine whether they are the master TR through position detection. When one of them is determined to be the master TR, the master TR sends an initialization protocol to the other two non-master TRs through the communication discrete line; when the other two non-master TRs detect the initialization message, the two non-master TRs return ACK information to the master TR. If the master TR does not receive the returned ACK information, the master TR continues to send the initialization protocol until it receives the ACK information; After receiving the ACK information returned by the other two non-master TRs, the master TR sends a synchronization signal to the two non-master TRs, and the two non-master TRs complete the initialization process according to the received synchronization signal; Obtain the delay parameters between the master TR and the non-master TR, the master TR performs delay processing according to the delay parameters, and initializes the master TR after the delay processing, the delay parameters include communication delay and protocol analysis delay, and the initialization processing includes resetting DDS, clearing the cache, and setting an incrementing sequence number.

8. A K-character-based multi-channel high-speed optical fiber link alignment system according to claim 6, characterized in that: The third module includes: The first submodule is used to use the GTH IP in the FPGA to perform serial-to-parallel conversion processing on the collected data sent by the TR component A, the TR component B and the TR component C respectively; The second submodule is used to perform verification processing and analysis processing on the collected data after serial-to-parallel conversion processing according to the preset packet grouping protocol and based on the K character at a fixed position in each collected data, and extract the original data of ADC, the incremental sequence number and the K character; The third submodule is used to determine whether the collected data sent by each component in the TR end is pre-initialization data or post-initialization data according to the obtained K character, and mark the collected data sent by each component in the TR end according to the judgment result.

9. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the method according to any one of claims 1 to 5 is implemented when the processor executes the computer program.

10. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium stores computer instructions, which enable a computer to execute the method of any one of claims 1-5.