Device and method for time-division wavelength-division multiplexing optical fiber digital communication experimental teaching
By using all-non-programmable chips and hybrid multiplexing technology in the time-division and wavelength-division multiplexing optical fiber digital communication experimental teaching, combined with Gray code and CMI code, the problem of difficulty in intuitive understanding of programmable chip-based equipment is solved, and low-threshold experiments are achieved. Teaching and equipment maintenance enhance students’ comprehensive design capabilities.
Patent Information
- Application Number
- CN202010025608.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-10
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-01-10
AI Technical Summary
The existing time-division and wavelength-division multiplexing optical fiber digital communication experimental teaching equipment based on programmable chips is difficult for students to intuitively understand the basic principles of data transmission and signal processing. It is also costly and inconvenient to maintain, which increases the difficulty and threshold of learning.
It adopts a circuit design structure based on all-non-programming chips, uses a hybrid multiplexing technology of time division and wavelength division multiplexing technology, and combines Gray code and CMI code to realize pulse code modulation, encoding and decoding of signals, which is convenient for students to operate and debug, and is intuitive Understand communication knowledge.
It lowers students' learning threshold, facilitates equipment maintenance and modification, enhances students' comprehensive design and independent innovation capabilities, and provides a more intuitive experimental teaching effect.
Smart Images

Figure CN111127986B
Abstract
Description
Technical Field
[0001] The invention relates to the research field of time-division and wavelength-division multiplexing optical fiber digital communication and teaching equipment, and in particular to a device and method suitable for time-division and wavelength-division multiplexing optical fiber digital communication experimental teaching based on a fully non-programmable chip. Background Art
[0002] With the rapid development and continuous improvement of modern information technology, various communication technologies are increasingly used in our daily lives. In order to better adapt to the development of the information age and further meet people's communication needs in life and work, it is necessary to continuously develop communication technologies with more reliable transmission performance, more stable quality, better confidentiality and higher bandwidth.
[0003] Most of the communication and electronic information majors in colleges and universities have courses with professional characteristics such as communication principles and optical fiber communication. These courses generally have the characteristics of abstract content, strong theoretical nature, broad knowledge, high practical requirements, and strong applicability. In order to achieve good teaching results, it is necessary to combine theoretical teaching content with corresponding experimental teaching. Through experiments, students can not only transform the basic theoretical knowledge of communication learned into specific practical skills, but also cultivate the ability to analyze and solve problems, comprehensive design ability and independent innovation ability, thereby forming a good comprehensive professional quality and laying a solid foundation for future work in communication technology. For this reason, all colleges and universities attach great importance to communication experimental teaching, and have long invested a lot of money to purchase or make communication experimental teaching instruments and equipment.
[0004] At present, the instruments and equipment used by colleges and universities to carry out communication experimental teaching, especially the instruments and equipment used to carry out time-division wavelength-division multiplexing optical fiber digital communication experimental teaching, whether purchased from the market or developed by themselves, are almost all based on highly integrated programmable chips. These instruments and equipment based on programmable chips cannot display the various functional modules contained in them in the form of specific circuits for students to see intuitively, which makes it impossible for students to intuitively understand the basic principles, specific implementation methods and processes of data transmission and signal processing. When using instruments and equipment based on programmable chips to carry out comprehensive design experiments and secondary development experiments, students are usually required to have strong programming skills, which invisibly increases the learning difficulty and threshold of many communication experiments that do not require programming knowledge, making it unfavorable to deeply cultivate students' comprehensive design ability and independent innovation ability, especially for students with weak programming ability or even no programming skills. Because programmable chips have high integration and complex functions, instruments and equipment based on programmable chips are not only costly but also inconvenient for daily maintenance and repair. From the above, it can be seen that the instruments and equipment based on programmable chips used in communication experimental teaching in colleges and universities currently have many shortcomings. Summary of the invention
[0005] In view of this, the present invention provides a device and method for time-division wavelength-division multiplexing optical fiber digital communication experiment teaching, which adopts a circuit design structure based on a fully non-programmable chip, has clear circuit functions, is suitable for experimental teaching demonstration, is convenient for students to operate and debug, and to modify and replace various functional modules, and can enable students to more intuitively and deeply understand pulse code modulation and demodulation, Gray code encoding and decoding, generation and detection of group synchronization code groups, conversion from non-return-to-zero code to return-to-zero code, time-division multiplexing and demultiplexing of digital signals, construction of data frames, CMI encoding and decoding, electro-optical conversion and optoelectronic conversion, wavelength division multiplexing and demultiplexing, clock synchronization and other communication knowledge, and has strong application value for communication experiment teaching.
[0006] The present invention is achieved through the following technical solutions:
[0007] The device used for time-division wavelength-division multiplexing optical fiber digital communication experimental teaching includes:
[0008] The signal transmitting end generates a clock signal for modulation and a chip select signal for chip enable, performs pulse code modulation on the input 2N original analog electrical signals, performs Gray code encoding on each branch signal after pulse code modulation, and inserts a group synchronization code element before each group of information code groups after Gray code encoding, and then performs time division multiplexing on the 2N signals in pairs of two to obtain N time division multiplexing group signals, performs CMI encoding on each time division multiplexing group signal, and then converts the CMI-encoded digital electrical signal into a digital optical signal, and finally performs wavelength division multiplexing on the N digital optical signals of different wavelengths and couples them into one optical fiber for transmission;
[0009] At the signal receiving end, the digital optical signal containing N different wavelengths from the same optical fiber is demultiplexed and separated into N digital optical signals of different wavelengths transmitted in N different optical fibers respectively. The separated N digital optical signals are respectively subjected to photoelectric conversion and pulse shaping to be restored into N time-division multiplexing group signals. The respective clock signals are extracted from each time-division multiplexing group signal, and each time-division multiplexing group signal is subjected to CMI decoding. The N digital electrical signals after CMI decoding are respectively detime-division multiplexed in half to obtain 2N signals. Then, the separated branch signals are subjected to Gray code decoding, pulse code demodulation, low-pass filtering and power amplification in turn to be restored into 2N original analog electrical signals.
[0010] The present invention adopts a hybrid multiplexing technology based on time division and wavelength division multiplexing technologies. First, 2N branch signals are time-division multiplexed in pairs into N time-division multiplexing group signals, and then the N time-division multiplexing group signals are wavelength-division multiplexed and coupled into the same optical fiber for transmission. This hybrid multiplexing technology allows students to learn time division multiplexing and wavelength division multiplexing by comparison, so as to more comprehensively understand the advantages and disadvantages of time division multiplexing and wavelength division multiplexing and the comprehensive advantages of time division and wavelength division hybrid multiplexing technology. In addition, the device simultaneously adopts source coding based on Gray code and channel coding based on CMI code, which allows students to learn the coding types and functions contained in the digital communication system by comparison, so as to more completely understand the structure and composition of the digital communication system.
[0011] Preferably, the signal sending end includes a first input branch, a second input branch, a time division multiplexing module, a CMI encoding module, an electro-optical conversion module, a clock signal and chip select signal generating module, and a WDM combiner, wherein, in the first input branch, the original analog electrical signal is input into the first pulse code modulation module through the first analog signal input port for pulse code modulation, the first Gray code encoding module performs Gray code encoding on each branch signal after pulse code modulation, the odd bit group synchronization code element generating module generates a group of odd bit group synchronization code elements, and the first information merging module inserts a group of the odd bit group synchronization code elements before each group of information code groups after Gray code encoding to obtain the first input information; in the second input branch, the original analog electrical signal is input into the second pulse code modulation module through the second analog signal input port for pulse code modulation, and the second Gray code encoding module performs Gray code encoding on each branch signal after pulse code modulation, and the odd bit group synchronization code element generating module generates a group of odd bit group synchronization code elements, and the first information merging module inserts a group of the odd bit group synchronization code elements before each group of information code groups after Gray code encoding to obtain the first input information. The Gray code encoding module performs Gray code encoding on each branch signal after pulse code modulation, the even bit group synchronization code element generation module generates a group of even bit group synchronization code elements, and the second information merging module inserts a group of the even bit group synchronization code elements before each information code group after Gray code encoding to obtain the second input information; the time division multiplexing module performs time division multiplexing on the first input information and the second input information in pairs to obtain N time division multiplexing group signals, the CMI encoding module performs CMI encoding on each time division multiplexing group signal, the electro-optical conversion module converts the CMI-encoded digital electrical signal into a digital optical signal, and the WDM combiner performs wavelength division multiplexing on N digital optical signals of different wavelengths and couples them into one optical fiber for transmission; the clock signal and chip select signal generation module generates a clock signal for modulation and a chip select signal for chip enable.
[0012] Preferably, the odd bit group synchronization codeword generation module generates a group of odd bit group synchronization codewords including 10-bit codewords; the even bit group synchronization codeword generation module generates a group of even bit group synchronization codewords including 10-bit codewords; the time division multiplexing module includes time division multiplexing of odd bit group synchronization codewords and even bit group synchronization codewords and time division multiplexing of the first branch information code group and the second branch information code group to generate a 20-bit group synchronization code group.
[0013] Preferably, the signal receiving end includes a WDM splitter, an optoelectronic conversion and pulse shaping module, a clock extraction module, a CMI decoding module, a time division multiplexing module, a first output branch, and a second output branch, wherein the WDM splitter performs wavelength division multiplexing on a digital optical signal containing N different wavelengths from the same optical fiber, and separates the digital optical signals into N different wavelengths transmitted in N different optical fibers, respectively; the optoelectronic conversion and pulse shaping module performs optoelectronic conversion and pulse shaping on the separated N digital optical signals to restore them into N time division multiplexing group signals, the clock extraction module extracts the respective clock signals from each time division multiplexing group signal, the CMI decoding module performs CMI decoding on each time division multiplexing group signal, and the time division multiplexing module demultiplexes the N digital electrical signals after CMI decoding into N digital electrical signals; The first output branch is a first Gray code decoding module that performs Gray code decoding on one of the branch signals, the first pulse code demodulation module performs pulse code demodulation on the signal after Gray code decoding, the first low-pass filtering and power amplification module performs low-pass filtering and power amplification on the pulse code demodulated signal, and restores it to the original analog electrical signal, which is output through the first analog signal output port; in the second output branch, the second Gray code decoding module performs Gray code decoding on one of the branch signals, the second pulse code demodulation module performs pulse code demodulation on the signal after Gray code decoding, the second low-pass filtering and power amplification module performs low-pass filtering and power amplification on the pulse code demodulated signal, and restores it to the original analog electrical signal, which is output through the second analog signal output port.
[0014] Preferably, the de-time division multiplexing module searches and detects the group synchronization code group from the nth time division multiplexing group signal, and then de-time division multiplexes the odd-numbered information code elements and the even-numbered information code elements in the information code group after the group synchronization code group, and restores them into the information code group of the 2n-1th branch and the information code group of the 2nth branch, respectively, where n=1,...,N.
[0015] A method based on the above-mentioned time-division wavelength-division multiplexing optical fiber digital communication experimental teaching device, at the signal transmitting end, signal processing includes the steps of:
[0016] S1-1, generate the clock signal and chip selection signal required by the signal transmitting end, set the pulse width of each code element of the information code group and the entire code group period, set the pulse width of each code element of the group synchronization code group and the entire code group period;
[0017] S1-2, after each pulse code modulation module of each branch generates an information code group, it stops for half a group synchronization code group period before continuing to generate the next information code group. After each odd bit group synchronization code element generation module generates a group of odd bit group synchronization code elements, it stops for one information code group period before continuing to generate the next group of odd bit group synchronization code elements. After each even bit group synchronization code element generation module generates a group of even bit group synchronization code elements, it stops for one information code group period before continuing to generate the next group of even bit group synchronization code elements.
[0018] S1-3, performing Gray code encoding on each branch signal;
[0019] S1-4, delaying and shifting the information code group in the 2n-1th (n=1, 2, 3, ..., N)th branch until the time period occupied by the information code group is aligned with the time gap between two adjacent groups of odd-numbered bit group synchronization code symbols, then superimposing the information code group and the odd-numbered bit group synchronization code symbols to interleave and merge them into one line, delaying and shifting the information code group in the 2nth branch until the time period occupied by the information code group is aligned with the time gap between two adjacent groups of even-numbered bit group synchronization code symbols, then superimposing the information code group and the even-numbered bit group synchronization code symbols to interleave and merge them into one line;
[0020] S1-5, converting the 2n-1th branch signal, which was originally a non-return-to-zero code, into a return-to-zero code with a second half period of each symbol being zero, and converting the 2nth branch signal, which was originally a non-return-to-zero code, into a return-to-zero code with a first half period of each symbol being zero;
[0021] S1-6, superimposing the 2n-1th branch signal whose second half period of each symbol is zero and the 2nth branch signal whose first half period of each symbol is zero in time to form the nth time division multiplexing group signal, and this step simultaneously superimposes the odd bit group synchronization code elements in the 2n-1th branch and the even bit group synchronization code elements in the 2nth branch in time to interleave and merge them to form the group synchronization code group in the nth time division multiplexing group signal;
[0022] S1-7, perform CMI encoding on each time division multiplexing group signal;
[0023] S1-8. First, N time-division multiplexing group signals are electro-optically converted into N optical signals of different wavelengths, and then the N optical signals of different wavelengths are wavelength-division multiplexed and coupled into the same optical fiber for transmission from the signal transmitting end to the signal receiving end.
[0024] A method based on the above-mentioned time-division wavelength-division multiplexing optical fiber digital communication experimental teaching device, at the signal receiving end, signal processing includes the steps of:
[0025] S2-1, at the signal receiving end, de-wavelength-division-multiplexing N optical signals of different wavelengths from the same optical fiber and separating them into N different optical fibers, and finally performing photoelectric conversion and pulse shaping on the N optical signals of different wavelengths to restore them into N time-division-multiplexed group signals;
[0026] S2-2, extracting the clock signal required by the digital communication system signal receiving end from the time division multiplexing group signal;
[0027] S2-3, performing CMI decoding on each time division multiplexing group signal;
[0028] S2-4, first searching and detecting a group synchronization code group from the nth time division multiplexing group signal, and then de-time division multiplexing the odd-numbered information code elements and the even-numbered information code elements in the information code group after the group synchronization code group to restore them into the information code group of the 2n-1th branch and the information code group of the 2nth branch respectively;
[0029] S2-5, performing Gray code decoding on each branch signal;
[0030] S2-6. Firstly, the information code group of each branch is pulse-code demodulated, and then the signal obtained by pulse-code demodulation is low-pass filtered and power amplified to restore it into 2N original analog electrical signals.
[0031] Compared with the prior art, the present invention has the following beneficial effects:
[0032] 1) The circuit design structure based on a fully non-programmable chip has clear circuit functions, which can enable students to understand the communication knowledge involved in the experimental content more intuitively and deeply. Students do not need to have programming knowledge, the learning threshold is low and it is easy to get started. Each functional module can be easily modified and replaced, which is conducive to cultivating students' comprehensive design ability, independent innovation ability and practical application ability.
[0033] 2) The method of time-division multiplexing the 2n-1th branch signal and the 2nth branch signal into the nth time-division multiplexing group signal is as follows: first, convert the 2n-1th branch (2nth branch) signal, which was originally a non-return-to-zero code, into a return-to-zero code with the second half (first half) period of each code element being zero, and then superimpose the 2n-1th branch signal with the second half period of each code element being zero and the 2nth branch signal with the first half period of each code element being zero in time to form the nth time-division multiplexing group signal. This method allows students to learn the principle of time division multiplexing and the principle of transformation from non-return-to-zero code to return-to-zero code at the same time, so as to more intuitively understand the basic usage of time division multiplexing.
[0034] 3) The method for generating the group synchronization code group is as follows: first insert the odd-numbered (even-numbered) group synchronization code element into the 2n-1th branch (2nth branch) signal, and then when the 2n-1th branch signal and the 2nth branch signal are time-division multiplexed, the odd-numbered group synchronization code element and the even-numbered group synchronization code element are interleaved and merged to form a group synchronization code group. This method is very suitable for generating long-period group synchronization code groups, which allows students to learn the principle of time division multiplexing and the principle of generating group synchronization code groups at the same time, so as to have a deeper understanding of the extended usage of time division multiplexing.
[0035] 4) A hybrid multiplexing technology based on time division and wavelength division multiplexing technologies is adopted. First, 2N branch signals are time-division multiplexed in pairs of two to become N time-division multiplexed group signals, and then the N time-division multiplexed group signals are wavelength-division multiplexed and coupled into the same optical fiber for transmission. This hybrid multiplexing technology allows students to learn time division multiplexing and wavelength division multiplexing through comparison, so as to have a more comprehensive understanding of the respective advantages and disadvantages of time division multiplexing and wavelength division multiplexing, as well as the comprehensive advantages of time division and wavelength division hybrid multiplexing technology.
[0036] 5) The digital communication system uses source coding based on Gray code and channel coding based on CMI code. This digital communication system construction method that has both source coding and channel coding allows students to learn the types of coding and their functions contained in the digital communication system through comparison, thereby more completely understanding the structure and composition of the digital communication system. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings used in the process of describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0038] Figure 1 It is a structural schematic diagram of a device for time-division wavelength-division multiplexing optical fiber digital communication experimental teaching of the present invention;
[0039] Figure 2 1 is a circuit diagram of a clock signal and chip select signal generating module 1-1 of the present invention;
[0040] Figure 3 is a circuit diagram of the first pulse code modulation module 1-2 of the present invention;
[0041] Figure 4 is a circuit diagram of the first Gray code encoding module 1-3 of the present invention;
[0042] Figure 5 Schematic diagram of the circuit of the odd bit group synchronization symbol generating module 1-4 of the present invention;
[0043] Figure 6 is a circuit diagram of the first information merging module 1-5 of the present invention;
[0044] Figure 7 is a circuit diagram of the second pulse code modulation module 1-6 of the present invention;
[0045] Figure 8 is a circuit diagram of the second Gray code encoding module 1-7 of the present invention;
[0046] Fig. 9 Schematic diagram of the circuit of even bit group synchronization symbol generating module 1-8 of the present invention;
[0047] Fig.10 is a circuit diagram of the second information merging module 1-9 of the present invention;
[0048] Fig.11 It is a circuit diagram of the time division multiplexing module 1-10 of the present invention;
[0049] Fig.12 is a circuit diagram of the CMI encoding module 1-11 of the present invention;
[0050] Fig.13 The emission wavelength of the present invention is λ 1 A circuit diagram of an electro-optical conversion module 1-12;
[0051] Fig.14 The receiving wavelength of the present invention is λ 1 A circuit diagram of the photoelectric conversion and pulse shaping module 2-1;
[0052] Fig.15 is a circuit diagram of the clock extraction module 2-2 of the present invention;
[0053] Fig.16 is a circuit diagram of the CMI decoding module 2-3 of the present invention;
[0054] Fig.17 It is a circuit diagram of the time division demultiplexing module 2-4 of the present invention;
[0055] Fig.18 is a circuit diagram of the first Gray code decoding module 2-5 of the present invention;
[0056] Fig.19 It is a circuit diagram of the first pulse code demodulation module 2-6 of the present invention;
[0057] Fig. 20 It is a circuit diagram of the first low-pass filtering and power amplification module 2-7 of the present invention;
[0058] Fig.21 is a circuit diagram of the second Gray code decoding module 2-8 of the present invention;
[0059] Fig. 22 2 is a circuit diagram of the second pulse code demodulation module 2-9 of the present invention;
[0060] Fig.23 It is a circuit diagram of the second low-pass filtering and power amplification module 2-10 of the present invention. DETAILED DESCRIPTION
[0061] The following is a detailed description of an embodiment of the present invention. This embodiment is implemented on the premise of the technical solution of the present invention, and a detailed implementation method and a specific operation process are given, but the protection scope of the present invention is not limited to the following embodiment.
[0062] Example 1
[0063] like Figure 1 As shown, the present invention provides a device for time-division wavelength-division multiplexing optical fiber digital communication experimental teaching, which is suitable for experimental teaching of communication professional courses in colleges and universities, including:
[0064] The signal transmitting end generates a clock signal for modulation and a chip select signal for chip enable, performs pulse code modulation on the input 2N original analog electrical signals, performs Gray code encoding on each branch signal after pulse code modulation, and inserts a group of group synchronization code elements before each group of information code groups after Gray code encoding. The 2N signals are then time-division multiplexed in pairs of two to obtain N time-division multiplexed group signals, each time-division multiplexed group signal is CMI encoded, and the CMI-encoded digital electrical signal is converted into a digital optical signal. Finally, the N digital optical signals of different wavelengths are wavelength-division multiplexed and coupled into an optical fiber for transmission.
[0065] At the signal receiving end, the digital optical signal containing N different wavelengths from the same optical fiber is de-wavelength-division-multiplexed and separated into N digital optical signals of different wavelengths transmitted in N different optical fibers respectively. The separated N digital optical signals are respectively subjected to photoelectric conversion and pulse shaping to be restored into N time-division multiplexed group signals. The respective clock signals are extracted from each time-division multiplexed group signal, and each time-division multiplexed group signal is subjected to CMI decoding. The N digital electrical signals after CMI decoding are respectively de-time-division-multiplexed in half to obtain 2N signals. Then, the separated branch signals are subjected to Gray code decoding, pulse code demodulation, low-pass filtering and power amplification in turn to be restored into 2N original analog electrical signals.
[0066] For the convenience of explanation, for all 2N signals involved in the device provided by the present invention, the 2n-1 (n = 1, 2, 3, ..., N) branch signal and the 2n branch signal are time-division multiplexed and demultiplexed in pairs, so that the odd branch signal and the even branch signal can form a total of N pairs; therefore, in the following embodiments, only the branch 1 signal and the branch 2 signal are modulated and time-division multiplexed at the transmitting end and then converted into a wavelength of λ 1 The digital optical signal and the demultiplexing and restoration to the original signal at the receiving end are described as an example, but the device provided by the present invention is not limited to being composed of 2 branches.
[0067] In this embodiment, the signal transmitting end includes a first input branch, a second input branch, a time division multiplexing module, a CMI encoding module, an electro-optical conversion module, a clock signal and chip select signal generating module, and a WDM combiner. The first input branch includes a first analog signal input port, a first pulse code modulation module, a first Gray code encoding module, an odd bit group synchronization code element generating module, and a first information merging module. The second input branch includes a second analog signal input port, a second pulse code modulation module, a second Gray code encoding module, an even bit group synchronization code element generating module, and a second information merging module.
[0068] Furthermore, in the signal transmitting end, the clock signal and chip select signal generating module generates a clock signal for modulation and a chip select signal for chip enable, the original analog electrical signal input from the first analog signal input port is pulse-code modulated by the first pulse code modulation module, the modulated branch 1 digital signal is encoded and converted by the first Gray code encoding module, and a group of odd-bit group synchronization symbols are inserted before each group of encoded information code groups, the analog signal input from the second analog signal input port is pulse-code modulated by the second pulse code modulation module, the modulated branch 2 digital signal is encoded and converted by the second Gray code encoding module, and a group of even-bit group synchronization symbols are inserted before each group of encoded information code groups, the time division multiplexing module performs time division multiplexing on the branch 1 and branch 2 signals to obtain a time division multiplexing group signal, each frame of the time division multiplexing group signal is encoded and converted by the CMI encoding module, and then the encoded digital electrical signal is converted into a signal with a wavelength of λ by the electro-optical conversion module. 1 The digital optical signal with wavelength λ 1 The digital optical signal of 2 ,λ 3 ,…,λ N )'s digital optical signal is wavelength-division multiplexed and coupled into an optical fiber for transmission through a WDM combiner.
[0069] In this embodiment, the signal receiving end includes a WDM splitter, an optoelectronic conversion and pulse shaping module, a clock extraction module, a CMI decoding module, a time division demultiplexing module, a first Gray code decoding module, a first pulse code demodulation module, a first low-pass filter and power amplification module, a second Gray code decoding module, a second pulse code demodulation module, a second low-pass filter and power amplification module, a first analog signal output port, and a second analog signal output port.
[0070] Furthermore, at the signal receiving end, the signals from the same optical fiber with N different wavelengths (λ 1 ,λ 2 ,λ 3 ,…,λ N ) is demultiplexed by a WDM splitter into N digital optical signals of different wavelengths transmitted in N different optical fibers, where the separated wavelength is λ 1 The digital optical signal is subjected to photoelectric conversion and pulse shaping by the photoelectric conversion and pulse shaping module in this embodiment to be restored into a time-division multiplexing group signal with the electrical signal as the carrier. The clock extraction module extracts the clock signal required for the signal processing at the signal receiving end from the time-division multiplexing group signal. The CMI decoding module performs CMI decoding on the time-division multiplexing group signal, and then the decoded digital electrical signal is de-time-division multiplexed by the de-time-division multiplexing module to separate the branch 1 information code group and the branch 2 information code group; the branch 1 information code group passes through the first Gray code decoding module, the first pulse code demodulation module, the first low-pass filter and the power amplification module in sequence to restore the original analog electrical signal of the branch 1; the branch 2 information code group passes through the second Gray code decoding module, the second pulse code demodulation module, the second low-pass filter and the power amplification module in sequence to restore the original analog electrical signal of the branch 2; the original analog electrical signal of the branch 1 is output from the first analog signal output port, and the original analog electrical signal of the branch 2 is output from the second analog signal output port.
[0071] Specifically, the structure of each module at the signal sending end is as follows: Figure 2 , 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13; the clock signal and chip select signal generating module 1-1 is provided with two capacitors C1 and C2, a crystal oscillator X1, a resistor R1, a frequency divider U1, two counters U2 and U3, two AND gates U4:A and U7:A, two NOT gates U5:A and U8:A, and a shift register U6; the first pulse code modulation module 1-2 is provided with an 8-bit analog-to-digital converter U9, an AND gate U10:A; the first Gray code encoding module 1-3 is provided with a NOT gate U11:A, a D flip-flop U12:A, and a two-input XOR gate U13:A; the odd bit group synchronization code element generating module 1-4 is provided with a parallel-input and serial-output shift register U14; the first information merging module 1-5 is provided with a shift register U15 and an OR gate U16:A; the second pulse code modulation module 1-6 is provided with an 8-bit Analog-to-digital converter U17, an AND gate U18:A; the second Gray code encoding module 1-7 is provided with a NOT gate U19:A, a D flip-flop U20:A, and a two-input XOR gate U21:A; the even-bit group synchronization code element generation module 1-8 is provided with a parallel-input and serial-output shift register U22; the second information merging module 1-9 is provided with a shift register U23, an OR gate U24:A; the time division multiplexing module 1-10 is provided with two AND gates U25:A and U27:A, a NOT gate U26:A, and an OR gate U28:A; the CMI encoding module 1-11 is provided with two D flip-flops U29:A and U34:A, a NOT gate U30:A, an AND gate U31:A, a counter U32, and a data selector U33; the electro-optical conversion module 1-12 is provided with two resistors R2 and R3, a laser diode D1, and a transistor Q1.
[0072] Based on the above Figure 2-13 The circuit of the present embodiment, the connection mode of each module of the signal transmitting end is:
[0073] The first analog signal input port is connected to the T-AS1 port of the first pulse code modulation module 1-2, and the second analog signal input port is connected to the T-AS2 port of the second pulse code modulation module 1-6.
[0074] The BS port of the clock signal and chip select signal generating module 1-1 is connected to the BS port of the first pulse code modulation module 1-2, the first Gray code encoding module 1-3, the odd bit group synchronization symbol generating module 1-4, the first information merging module 1-5, the second pulse code modulation module 1-6, the second Gray code encoding module 1-7, the even bit group synchronization symbol generating module 1-8, the second information merging module 1-9, and the time division multiplexing module 1-10, the 2BS port of the clock signal and chip select signal generating module 1-1 is connected to the 2BS port of the CMI encoding module 1-11, and the 4BS port of the clock signal and chip select signal generating module 1-1 is connected to the CMI encoding module The 4BS port of 1-11, the T-CS1 port of the clock signal and chip select signal generating module 1-1 is connected to the T-CS1 port of the first pulse code modulation module 1-2 and the second pulse code modulation module 1-6, the T-CS2 port of the clock signal and chip select signal generating module 1-1 is connected to the T-CS2 port of the first pulse code modulation module 1-2, the first Gray code encoding module 1-3, the second pulse code modulation module 1-6, and the second Gray code encoding module 1-7, the T-CS3 port of the clock signal and chip select signal generating module 1-1 is connected to the T-CS3 port of the odd bit group synchronization code element generating module 1-4 and the even bit group synchronization code element generating module 1-8.
[0075] The T-BC1 port of the first pulse code modulation module 1-2 is connected to the T-BC1 port of the first Gray code encoding module 1-3, the T-GC1 port of the first Gray code encoding module 1-3 is connected to the T-GC1 port of the first information merging module 1-5, and the T-GSC1 port of the odd bit group synchronization codeword generation module 1-4 is connected to the T-GSC1 port of the first information merging module 1-5.
[0076] The T-BC2 port of the second pulse code modulation module 1-6 is connected to the T-BC2 port of the second Gray code encoding module 1-7, the T-GC2 port of the second Gray code encoding module 1-7 is connected to the T-GC2 port of the second information merging module 1-9, and the T-GSC2 port of the even bit group synchronization codeword generation module 1-8 is connected to the T-GSC2 port of the second information merging module 1-9.
[0077] The T-MS1 port of the first information merging module 1-5 is connected to the T-MS1 port of the time division multiplexing module 1-10, and the T-MS2 port of the second information merging module 1-9 is connected to the T-MS2 port of the time division multiplexing module 1-10.
[0078] The T-TDMS port of the time division multiplexing module 1-10 is connected to the T-TDMS port of the CMI encoding module 1-11. The T-DS port of the CMI encoding module 1-11 is connected to the T-DS port of the electro-optical conversion module 1-12. The optical signal output port of the electro-optical conversion module 1-12 is connected to the input port of the WDM combiner. The output port of the WDM combiner is connected to the input port of the optical fiber transmission link.
[0079] The working principle of the signal sending end in this embodiment is:
[0080] In the clock signal and chip select signal generating module 1-1, two capacitors C1 and C2, a crystal oscillator X1, a resistor R1, and a frequency divider U1 constitute a crystal oscillator circuit. The counter U2 counts the clock pulses generated from the Q5 port of the crystal oscillator circuit frequency divider U1. A carry pulse BS is generated at the Q3 port of the counter U2 every 8 counts, which acts on the first pulse code modulation module 1-2, the first Gray code encoding module 1-3, the odd bit group synchronization code element generating module 1-4, the first information merging module 1-5, the second pulse code modulation module 1-6, and the second Gray code encoding module 1-7. , even-bit group synchronization symbol generation module 1-8, second information merging module 1-9, time division multiplexing module 1-10; a carry pulse 4BS is generated every 2 counts at the Q0 port of the counter U2, which acts on the CMI encoding module 1-11; a carry pulse 2BS is generated every 4 counts at the Q1 port of the counter U2, which acts on the CMI encoding module 1-11; a carry pulse 1 / 2BS is generated every 16 counts at the Q4 port of the counter U2; the above four signals (4BS, 2BS, BS, 1 / 2BS) are the clock signals of the signal sending end of this embodiment. The counter U3 with the input terminals D3 to D0 preset to "0010" counts the clock signal 1 / 2BS. When the output ports Q3 and Q1 of the counter U3 are at a high level, the two output signals are fed back to the reset terminal of the counter U3 through an AND gate U4:A and a NOT gate U5:A. At this time, the counter U3 constitutes a nine-bit counter with a cycle state of "0010" to "1010". The Q3 port generates a chip select signal T-CS1 with a duty cycle of 1:3, which is used to drive the analog-to-digital converters U9 and U17 to work; the Q2 port generates a chip select signal T-CS1 with a duty cycle of 4:9. The select signal T-CS2 creates conditions for generating information code groups and Gray code encoding; the signal output by U4:A port is input to input port 1 and input port 2 of shift register U6, delayed and shifted by 2 clock pulses under the action of clock signal BS, and ANDed with the original signal output by U4:A port, and then generated by NOT gate U8:A chip select signal T-CS3 to drive the parallel input and output shift registers U14 and U22 to place preset data; the above three signals (T-CS1, T-CS2, T-CS3) are the chip select signals of the signal sending end. So far, the clock signal and chip select signal generation module completes the generation of the clock signal and chip select signal of the signal sending end, and completes the setting of each code element pulse width and the entire code group period of the information code group and group synchronization code group.
[0081] The 8-bit analog-to-digital converter U9 in the first pulse code modulation module 1-2 performs analog-to-digital conversion (pulse code modulation) on the original analog electrical signal T-AS1 input from the first analog signal input port under the action of the clock signal BS and the chip select signal T-CS1, and performs an AND operation on the digital signal output from the DO port and T-CS2, so as to eliminate the 4-bit start pulse generated by the analog-to-digital converter U9 each time the original analog electrical signal T-AS1 is pulse-code modulated, thereby generating a branch 1 digital signal T-BC1 of a natural binary code.
[0082] The method of encoding an n-bit binary code to obtain an n-bit Gray code is as follows: 1. Number the n-bit binary code from right to left using 0 to n-1; 2. Encode from right to left, if the i-th (i=0, 1, 2, ..., n-1)-th binary code is different from the i+1-th binary code, then the corresponding i-th Gray code is "1", otherwise it is "0" (when i=n-1, the n-th binary code is "0"); specifically, with respect to the implementation in the first Gray code encoding module 1-3, the branch 1 digital signal T-BC1 of the natural binary code is delayed and shifted by 1 clock pulse through the D flip-flop U12:A under the reverse action of the clock signal BS, and then an XOR operation is performed with the original signal T-BC1 to generate the branch 1 digital signal T-GC1 of the Gray code.
[0083] In particular, in the odd bit group synchronization codeword generation module 1-4, the chip selection signal T-CS3 is input to the shift / set control terminal of the parallel-input serial-output shift register U14 to drive the generation of the odd bit group synchronization codeword and set the entire code group period. Under the action of the clock signal BS, by presetting the input terminals D7 to D0 of the parallel-input serial-output shift register U14 to "11101101", the odd bit group synchronization codeword signal T-GSC1 with a codeword sequence of "1110110100" is output from the output port SO.
[0084] In the first information merging module 1-5, under the action of the clock signal BS, the shift register U15 delays and shifts the branch 1 digital signal T-GC1 of the Gray code by 6 clock pulses through the pin 11 of the chip, and then performs an OR operation with the odd-bit group synchronization code element signal T-GSC1 to insert a group of odd-bit group synchronization code elements before each group of information code groups, and obtain the branch 1 merging signal T-MS1, creating conditions for generating a 20-bit group synchronization code group.
[0085] The 8-bit analog-to-digital converter U17 in the second pulse code modulation module 1-6 performs analog-to-digital conversion (pulse code modulation) on the original analog electrical signal T-AS2 input from the second analog signal input port under the action of the clock signal BS and the chip select signal T-CS1, and performs an AND operation on the digital signal output from the DO port and T-CS2, so as to eliminate the 4-bit start pulse generated by the analog-to-digital converter U17 each time the original analog electrical signal T-AS2 is pulse-code modulated, thereby generating a branch 2 digital signal T-BC2 of a natural binary code.
[0086] In the second Gray code encoding module 1-7, the branch 2 digital signal T-BC2 of the natural binary code is delayed and shifted by 1 clock pulse through the D flip-flop U20:A under the reverse action of the clock signal BS, and then an XOR operation is performed with the original signal T-BC2 to generate the branch 2 digital signal T-GC2 of the Gray code.
[0087] In particular, in the even-bit group synchronization symbol generation module 1-8, the chip selection signal T-CS3 is input to the shift / set control terminal of the parallel-input serial-output shift register U22 to drive the generation of the even-bit group synchronization symbol and set the entire code group period. Under the action of the clock signal BS, by presetting the input terminals D7 to D0 of the parallel-input serial-output shift register U22 to "10111000", the even-bit group synchronization symbol signal T-GSC2 with a symbol sequence of "1011100000" is output from the output port SO.
[0088] In the second information merging module 1-9, under the action of the clock signal BS, the shift register U23 delays and shifts the branch 2 digital signal T-GC2 of the Gray code by 6 clock pulses through the pin 11 of the chip, and then performs an OR operation with the even-bit group synchronization code element signal T-GSC2 to insert a group of even-bit group synchronization code elements before each group of information code groups, thereby obtaining the branch 2 merging signal T-MS2, creating conditions for generating a 20-bit group synchronization code group.
[0089] In particular, in the time division multiplexing module 1-10, a data frame is constructed under the action of the clock signal BS. The branch 1 merged signal T-MS1 is ANDed with the clock signal BS to realize the conversion of the branch 1 merged signal T-MS1, which was originally a non-return-to-zero code, into a return-to-zero code with a zero second half period of each code element; the branch 2 merged signal T-MS2 is ANDed with the clock signal BS through an inverter to realize the conversion of the branch 2 merged signal T-MS2, which was originally a non-return-to-zero code, into a return-to-zero code with a zero first half period of each code element. Then the two signals are ORed, that is, the two signals are superimposed in time to form a time division multiplexing group signal T-TDMS, and at the same time, the group synchronization code group formed is "11101101111000100000". At this time, the merged signal T-MS1 occupies the first time slot in each TDM frame, and the merged signal T-MS2 occupies the second time slot in each TDM frame, that is, the time division multiplexing of the digital signal is realized.
[0090] In the CMI encoding module 1-11, the D flip-flop U29:A, under the action of the clock signal 2BS, delays and shifts the time division multiplexing group signal T-TDMS by half a pulse period, and then serves as the data selection end of the data selector U33. Under the action of the data selector U33, when the source code is "0", the data selector selects the data input from the 1A input end and directly outputs "01"; when the source code is "1", the data selector selects the processed data input from the 1B input end and outputs "00" and "11" alternately. Furthermore, the clock signal 2BS is directly input to the 1A port of U33 through an inverter, and directly outputs "01", thereby completing the encoding of the code element "0"; the clock signal 2BS is ANDed with the time division multiplexing signal T-TDMS and input to the counter U32 as a clock. For the convenience of explanation, it is assumed that the first code element of the signal stream is "1". At this time, the AND gate outputs "10". This signal is input to the counter U32, and it is temporarily set to output "11" at Q0. When the second code element is also "1", the AND gate still outputs "10", but because the rising edge of the counter U32 triggers the flip, "00" is output at the Q0 port. At the same time, when the signal stream code element is also "0", the AND gate outputs "00", and the counter does not trigger the flip, and so on, to achieve the conversion of data "1" into "00" and "11", and then input it to the 1B port of U33, and alternately output "00" and "11", thereby completing the encoding of the code element "1". Since the operation process of the chip may produce different delays, the digital electrical signal of the CMI code output by the data selector 1Y port passes through the D flip-flop under the action of the clock signal 4BS, which can eliminate the competition hazard, and the signal T-DS output by the D flip-flop U34:A is a smooth digital electrical signal of the CMI code. So far, the CMI encoding module completes the CMI encoding of the time-division multiplexed digital electrical signal T-TDMS.
[0091] In the electro-optical conversion module 1-12, the digital electrical signal T-DS at the signal transmitting end is coupled to the transistor through a resistor for current amplification to drive the laser diode for electro-optical conversion, and the digital electrical signal is converted into a wavelength of λ 1 digital optical signal.
[0092] The wavelength obtained by electro-optical conversion is λ 1 The digital optical signal of 2 ,λ 3 ,…,λ N )’s digital optical signal is wavelength-division multiplexed and coupled into an optical fiber through a WDM combiner for transmission to the signal receiving end.
[0093] In this embodiment, the structure of each module at the signal receiving end is as follows: Fig.14 , 15, 16, 17, 18, 19, 20, 21, 22, 23, specifically, the photoelectric conversion and pulse shaping module 2-1 is provided with two capacitors C3 and C4, a photodetector D2, two transistors Q2 and Q3, five resistors R4, R5, R6, R7, R8, and an operational amplifier U35:A; the clock extraction module 2-2 is provided with two capacitors C5 and C6, a crystal oscillator X2, a resistor R9, a frequency divider U36, two NOT gates U37:A and U38:A, a D flip-flop U39:A, four counters U40, U41, U42, U43, and a data selector U44; the CMI decoding module 2 -3 is provided with three D flip-flops U45:A, U45:B, U47:A, two NOT gates U46:A and U49:A, and one two-input XOR gate U48:A; the de-time division multiplexing module 2-4 is provided with five shift registers U50, U51, U52, U53, U54, eleven NOT gates U55:A, U55:B, U56:A, U56:B, U56:C, U56:D, U57:A, U57:B, U57:C, U57:D, U64:A, six four-input AND gates U58:A, U58:B, U59:A, U59:B, U60:A, U61:A, and two two-input AND gates U62 :A and U63:A; the first Gray code decoding module 2-5 is provided with 7 two-input XOR gates U65:A, U65:B, U65:C, U66:A, U66:B, U66:C, U66:D; the first pulse code demodulation module 2-6 is provided with a digital-to-analog converter U67, two diodes D3 and D4, two adjustable resistors RV1 and RV2, and an operational amplifier U68:A; the first low-pass filtering and power amplification module 2-7 is provided with seven resistors R10, R11, R12, R13, R14, R15, R16, six capacitors C7, C8, C9, C10, C11, C12, and an operational amplifier U69 :A; the second Gray code decoding module 2-8 is provided with 7 two-input XOR gates U70:A, U70:B, U70:C, U71:A, U71:B, U71:C, U71:D; the second pulse code demodulation module 2-9 is provided with a digital-to-analog converter U72, two diodes D5 and D6, two adjustable resistors RV3 and RV4, and an operational amplifier U73:A; the second low-pass filtering and power amplification module 2-10 is provided with seven resistors R17, R18, R19, R20, R21, R22, R23, six capacitors C13, C14, C15, C16, C17, C18, and an operational amplifier U74:A.
[0094] Specifically, the connection method of each module at the signal receiving end is:
[0095] The output port of the optical fiber transmission link is connected to the input port of the WDM splitter; the output port of the WDM splitter is connected to the optical signal input port of the photoelectric conversion and pulse shaping module 2-1; the R-DS port of the photoelectric conversion and pulse shaping module 2-1 is connected to the R-DS ports of the clock extraction module 2-2 and the CMI decoding module 2-3; the R-CLK port of the clock extraction module 2-2 is connected to the R-CLK port of the CMI decoding module 2-3 and the demultiplexing module 2-4; the R-DS2 port of the CMI decoding module 2-3 is connected to the R-DS2 port of the demultiplexing module 2-4; the R-CS port of the demultiplexing module 2-4 is connected to the R-CS ports of the first pulse code demodulation module 2-6 and the second pulse code demodulation module 2-9, the R-GC1.0 to 1.7 ports of the demultiplexing module 2-4 are connected to the R-GC1.0 to 1.7 ports of the first Gray code decoding module 2-5, and the R-CS port of the demultiplexing module 2-4 is connected to the R-CS port of the first pulse code demodulation module 2-6 and the second pulse code demodulation module 2-9, the R-GC1.0 to 1.7 ports of the demultiplexing module 2-4 are connected to the R-GC1.0 to 1.7 ports of the first Gray code decoding module 2-5, and the R-CS port of the demultiplexing module 2-4 is connected to the R-GC1.0 to 1.7 ports of the demultiplexing module 2-4. Ports R-GC2.0 to 2.7 are connected to ports R-GC2.0 to 2.7 of the second Gray code decoding module 2-8; ports R-BC1.0 to 1.7 of the first Gray code decoding module 2-5 are connected to ports R-BC1.0 to 1.7 of the first pulse code demodulation module 2-6; port R-AS1 of the first pulse code demodulation module 2-6 is connected to port R-AS1 of the first low-pass filter and power amplifier module 2-7; ports R-BC2.0 to 2.7 of the second Gray code decoding module 2-8 are connected to ports R-BC2.0 to 2.7 of the second pulse code demodulation module 2-9; port R-AS2 of the second pulse code demodulation module 2-9 is connected to port R-AS2 of the second low-pass filter and power amplifier module 2-10; port R-FS1 of the first low-pass filter and power amplifier module is connected to the first analog signal output port, and port R-FS2 of the second low-pass filter and power amplifier module is connected to the second analog signal output port.
[0096] Specifically, the working principle of the signal receiving end is:
[0097] From the same optical fiber, there are N different wavelengths (λ 1 ,λ 2 ,λ 3 ,…,λ N ) is demultiplexed by a WDM splitter into N digital optical signals of different wavelengths transmitted in N different optical fibers; in this embodiment, the separated wavelength is λ 1 The digital optical signal enters the photoelectric conversion and pulse shaping module.
[0098] In the photoelectric conversion and pulse shaping module 2-1, the wavelength carrying information is λ 1The digital optical signal is received by the photodetector D2 and converted into an electrical signal to realize photoelectric conversion; the generated tiny electrical signal is amplified by the two transistors Q2 and Q3, and enters the operational amplifier from pin 3 of the operational amplifier U35:A for comparison, and is restored from pin 1 to obtain the regular time-division multiplexing group signal R-DS, thus completing pulse shaping.
[0099] In the clock extraction module 2-2, a crystal oscillator circuit is composed of two capacitors C5 and C6, a crystal oscillator X2, a resistor R9, a divider U36, and a NOT gate U37:A. The generated clock pulse is input to the counters U40 and U42 for counting and extracting timing information; in the CMI encoding process, the code element "0" is changed to "01", and the code element "1" is alternately changed to "00" and "11"; the digital electrical signal R-DS is input to the clock end of the D flip-flop U39:A after passing through an inverter, and the reverse output end of the D flip-flop U39:A is fed back to the data input end D. After the signal passes through the D flip-flop, the waveform is flipped, and the rising edge triggers the operation of the D flip-flop to realize binary frequency division. At the same time, the positive output end of the D flip-flop U39:A is input to the reset end of the counters U40 and U41, and the reverse output end is input to the reset end of the counters U42 and U43 and the data selection end of the data selector U44. The high level output from the D flip-flop U39:A drives the counter U40 to count, and a carry pulse is generated at the Q2 port of the counter U40 every 8 counts to achieve frequency division by eight, and then it is input to the clock end of the counter U41 for frequency division by two; similarly, the low level output drives the counter U42 to count, and a carry pulse is generated at the Q2 port of the counter U40 every 8 counts to achieve frequency division by eight, and then it is input to the clock end of the counter U43 for frequency division by two. The two pulse signals are respectively input to the input ports 1A and 1B of the data selector U44, and the output signal is selected according to the positive output end of the D flip-flop U39:A. When the signal is at a high level, the signal of the input port 1A is selected for output, and when it is at a low level, the signal of the input port 1B is selected for output; the receiving end clock signal R-CLK output from the data selector U44 is of the same frequency and phase as the signal sending end clock signal. At this point, the clock signal required by the signal receiving end is extracted from the time division multiplexing group signal.
[0100] The CMI decoding module 2-3 performs CMI decoding on the time division multiplexing group signal R-DS. When the code element in a clock cycle is "01", the data of the first half cycle is XORed with the data of the second half cycle to obtain "1", and then outputs "0" after passing through an inverter; when the code element in a clock cycle is "00" or "11", the data of the first half cycle is XORed with the data of the second half cycle to obtain "0", and then outputs "1" after passing through an inverter to complete the CMI decoding conversion. Furthermore, the digital electrical signal R-DS is code-separated and divided into two paths; one path enters the data input end of the D flip-flop U45:A, outputs a two-frequency division under the action of the clock signal R-CLK, obtains the data of the first half cycle, and then inputs it into the D flip-flop U45:B under the action of the reverse clock signal R-CLK to delay half a clock cycle; the other path enters the data input end of the D flip-flop U47:A, outputs a two-frequency division under the action of the reverse clock signal R-CLK, and obtains the data of the second half cycle; the two data paths are XOR-operated, if the data of the front and back half cycles are the same, the decoding outputs a "0" code, if the data of the front and back half cycles are different, the decoding outputs a "1" code; the signal output from the XOR gate U48:A passes through an inverter to obtain the time division multiplexing group signal R-DS2 after CMI decoding.
[0101] In the demultiplexing module 2-4, the time-division multiplexing group signal R-DS2 after CMI decoding enters the shift register U50 under the action of the reverse clock signal R-CLK, and the five shift registers U50, U51, U52, U53, and U54 are connected end to end to achieve the data delay right shift of 36 clock cycles; when the group synchronization code group sequence "11101101111000100000" is detected, pin 13 of U54 outputs a "1" signal, pin 12 outputs a "1" signal, pin 11 outputs a "1" signal, and pin 10 outputs a "0" signal (generating a "1" signal through the NOT gate U55:A), and the four-input AND gate U58:A generates a "1" signal Similarly, U58:B, U59:A, U59:B, and U60:A all generate "1" signals, and the AND gate U62:A will output a "1" signal. At this time, ports R-GC1.0 to 1.7 will obtain eight bits of data, which are the information code group of branch 1 at the signal transmitting end, and ports R-GC2.0 to 2.7 will obtain the information code group, which are the information code group of branch 2 at the signal transmitting end. At this point, the time division multiplexing of the information code group of branch 1 and the information code group of branch 2 is completed. At the same time, when the group synchronization code group sequence is detected, the clock signal R-CLK is ANDed with the output signal of U62:A, and after passing through an inverter, the enable signal R-CS for pulse code demodulation is output.
[0102] The method of decoding an n-bit Gray code to obtain an n-bit binary code is as follows: 1. Number the n-bit Gray code from right to left with 0 to n-1; 2. Decode from left to right. If the i-th (i=0, 1, 2, ..., n-1)-th Gray code and the i+1-th binary code are different, the corresponding i-th binary code is "1", otherwise it is "0" (when i=n-1, the n-th binary code is "0"); specifically, in the implementation of the first Gray code decoding module 2-5, R-GC1.0 to 1.7 are digital signals of Gray code, the highest bit is R-GC1.7, the 7th binary code is the same as the 7th Gray code, and the result is directly retained to the 7th binary code R-BC1.7; XOR R-GC1.6 and the result after the XOR operation (R-BC1.7), and the result is retained to the 6th binary code R-BC1.6; XOR operations are performed in sequence according to this rule until the lowest bit is completed. At this point, the conversion of the Gray code digital signal R-GC1.0 to 1.7 into the natural binary code digital signal R-BC1.0 to 1.7 is completed.
[0103] In the first pulse code demodulation module 2-6, the digital signals R-BC1.0 to 1.7 of the eight-bit natural binary code after Gray code decoding are respectively input into the DI0 to DI7 ports of the digital-to-analog converter U67, and the enable signal R-CS is input into the enable end to drive the pulse code demodulation, and the IOUT1 and IOUT2 output currents, which are converted into voltages under the action of the operational amplifier U68:A, diodes D3, D4 and two sliding rheostats, and the branch 1 analog signal R-AS1 is output. At this point, the first pulse code demodulation module completes the digital-to-analog conversion (pulse code demodulation).
[0104] The first low-pass filtering and power amplification module 2-7 uses a third-order low-pass filter formed by cascading three identical RC passive low-pass filters to filter the converted branch 1 analog signal R-AS1, and then generates the original analog electrical signal T-FS1 of branch 1 after power amplification processing, and outputs it from the first analog signal output port.
[0105] In the second Gray code decoding module 2-8, R-GC2.0 to 2.7 are digital signals of Gray code, the highest bit is R-GC2.7, the 7th binary code is the same as the 7th Gray code, and the result is directly retained to the 7th binary code R-BC2.7; R-GC2.6 and the result after the XOR operation (R-BC2.7) are XORed, and the result is retained to the 6th binary code R-BC2.6; XOR operations are performed in sequence according to this rule until the lowest bit is completed. At this point, the conversion of the Gray code digital signals R-GC2.0 to 2.7 into the natural binary code digital signals R-BC2.0 to 2.7 is completed.
[0106] In the second pulse code demodulation module 2-9, the digital signals R-BC2.0 to 2.7 of the eight-bit natural binary code after Gray code decoding are respectively input to the DI0 to DI7 ports of the digital-to-analog converter U72, and the enable signal R-CS is input to the enable end to drive the pulse code demodulation, and IOUT1 and IOUT2 output currents, which are converted into voltages under the action of the operational amplifier U73:A, diodes D5, D6 and two sliding rheostats, and the branch 2 analog signal R-AS2 is output. At this point, the second pulse code demodulation module completes the digital-to-analog conversion (pulse code demodulation).
[0107] The second low-pass filtering and power amplification module 2-10 uses a third-order low-pass filter formed by cascading three identical RC passive low-pass filters to filter the converted branch 2 analog signal R-AS2, and then generates the original analog electrical signal T-FS2 of branch 2 after power amplification processing, and outputs it from the second analog signal output port.
[0108] Embodiment 2:
[0109] This embodiment provides a method for time-division wavelength-division multiplexing optical fiber digital communication experiment teaching based on the device described in the above embodiment 1, which is suitable for experimental teaching of communication professional courses in colleges and universities. The method includes the steps of:
[0110] S1, generate the clock signal and chip selection signal required by the transmitting end of the digital communication system, set the pulse width of each code element of the information code group and the entire code group period, set the pulse width of each code element of the group synchronization code group and the entire code group period;
[0111] S2, after each pulse code modulation module of each branch generates an information code group, it stops at half a group synchronization code group period before continuing to generate the next information code group, after each odd bit group synchronization code element generation module generates a group of odd bit group synchronization code elements, it stops at one information code group period before continuing to generate the next group of odd bit group synchronization code elements, and after each even bit group synchronization code element generation module generates a group of even bit group synchronization code elements, it stops at one information code group period before continuing to generate the next group of even bit group synchronization code elements;
[0112] S3, performing Gray code encoding on each branch signal;
[0113] S4, delaying and shifting the information code group in the 2n-1th branch until the time period occupied by the information code group is aligned with the time gap between two adjacent groups of odd-numbered bit group synchronization code symbols, and then superimposing the information code group and the odd-numbered bit group synchronization code symbols to interleave and merge them into one line, delaying and shifting the information code group in the 2nth branch until the time period occupied by the information code group is aligned with the time gap between two adjacent groups of even-numbered bit group synchronization code symbols, and then superimposing the information code group and the even-numbered bit group synchronization code symbols to interleave and merge them into one line;
[0114] S5, transforming the 2n-1th branch signal, which was originally a non-return-to-zero code, into a return-to-zero code with a second half period of each symbol being zero, and transforming the 2nth branch signal, which was originally a non-return-to-zero code, into a return-to-zero code with a first half period of each symbol being zero;
[0115] S6, superimposing the 2n-1th branch signal whose second half period of each symbol is zero and the 2nth branch signal whose first half period of each symbol is zero in time to form the nth time division multiplexing group signal, and this step simultaneously superimposes the odd bit group synchronization code elements in the 2n-1th branch and the even bit group synchronization code elements in the 2nth branch in time to interleave and merge them to form the group synchronization code group in the nth time division multiplexing group signal;
[0116] S7, performing CMI encoding on each time division multiplexing group signal;
[0117] S8. First, N time-division multiplexing group signals are electro-optically converted into N optical signals of different wavelengths, and then the N optical signals of different wavelengths are wavelength-division multiplexed and coupled into the same optical fiber for transmission from the transmitting end to the receiving end.
[0118] The above steps S1-S8 are all processed at the signal transmitting end, and are used to modulate the 2N original analog electrical signals, and then convert and wavelength-division multiplex them into digital electrical signals in pairs. The following steps S9-S14 are all processed at the signal receiving end, and are used to de-wavelength-division multiplex the digital optical signals containing N light waves and convert them into digital electrical signals, and then de-time-division multiplex and demodulate them to restore them to the 2N original analog electrical signals.
[0119] S9, at the receiving end, de-wavelength-division-multiplexing N optical signals of different wavelengths from the same optical fiber and separating them into N different optical fibers, and finally performing photoelectric conversion and pulse shaping on the N optical signals of different wavelengths to restore them into N time-division-multiplexed group signals;
[0120] S10, extracting the clock signal required by the receiving end of the digital communication system from the time division multiplexing group signal;
[0121] S11, performing CMI decoding on each time division multiplexing group signal;
[0122] S12, first searching and detecting a group synchronization code group from the nth time division multiplexing group signal, and then de-time division multiplexing the odd-numbered information code elements and the even-numbered information code elements in the information code group after the group synchronization code group to respectively restore them into the information code group of the 2n-1th branch and the information code group of the 2nth branch;
[0123] S13, performing Gray code decoding on each branch signal;
[0124] S14, firstly perform pulse code demodulation on the information code group of each branch, and then perform low-pass filtering and power amplification on the signal obtained by pulse code demodulation to restore it into 2N original analog electrical signals.
[0125] The present invention adopts a circuit design structure based on a fully non-programmable chip, and each module is an independent module that can be easily modified and replaced. Through the connection and coordination of each module, students can better learn and understand the knowledge points such as time division multiplexing, group synchronization code group, wavelength division multiplexing, coding, etc., and better assist experimental teaching.
[0126] The protection scope of the present invention is not limited to the details of the embodiments in the above specific implementation modes. Those skilled in the art can implement the present invention in other specific ways based on the contents disclosed in the present invention. Therefore, the above embodiments are only exemplary and are not intended to limit the present invention. In the case of the spirit or basic features of the present invention, the design structure and ideas of the present invention are adopted, and equivalent replacement, simple change or modified design, etc. are made, which should fall within the scope of protection of the present invention.
Claims
1. A device for teaching time-division wavelength-division multiplexing optical fiber digital communication experiments, characterized in that: include: The signal transmitting end generates a clock signal for modulation and a chip select signal for chip enable, performs pulse code modulation on the input 2N original analog electrical signals, performs Gray code encoding on each branch signal after pulse code modulation, and inserts a group synchronization code element before each group of information code groups after Gray code encoding, and then performs time division multiplexing on the 2N signals in pairs of two to obtain N time division multiplexing group signals, performs CMI encoding on each time division multiplexing group signal, and then converts the CMI-encoded digital electrical signal into a digital optical signal, and finally performs wavelength division multiplexing on the N digital optical signals of different wavelengths and couples them into one optical fiber for transmission; The signal transmitting end includes a first input branch, a second input branch, a time division multiplexing module, a CMI encoding module, an electro-optical conversion module, a clock signal and chip selection signal generating module, and a WDM combiner, wherein, in the first input branch, the original analog electrical signal is input into the first pulse code modulation module through the first analog signal input port for pulse code modulation, the first Gray code encoding module performs Gray code encoding on each branch signal after pulse code modulation, the odd bit group synchronization code element generating module generates a group of odd bit group synchronization code elements, and the first information merging module inserts a group of the odd bit group synchronization code elements before each group of information code groups after Gray code encoding to obtain the first input information; in the second input branch, the original analog electrical signal is input into the second pulse code modulation module through the second analog signal input port for pulse code modulation, and the second Gray code The encoding module performs Gray code encoding on each branch signal after pulse code modulation, the even bit group synchronization code element generation module generates a group of even bit group synchronization code elements, and the second information merging module inserts a group of the even bit group synchronization code elements before each group of information code groups after Gray code encoding to obtain the second input information; the time division multiplexing module performs time division multiplexing on the first input information and the second input information in pairs to obtain N time division multiplexing group signals, the CMI encoding module performs CMI encoding on each time division multiplexing group signal, the electro-optical conversion module converts the CMI-encoded digital electrical signal into a digital optical signal, and the WDM combiner performs wavelength division multiplexing on N digital optical signals of different wavelengths and couples them into one optical fiber for transmission; the clock signal and chip select signal generation module generates a clock signal for modulation and a chip select signal for chip enable; At the signal receiving end, the digital optical signal with N different wavelengths from the same optical fiber is demultiplexed and separated into N digital optical signals with different wavelengths transmitted in N different optical fibers respectively. The separated N digital optical signals are respectively subjected to photoelectric conversion and pulse shaping to be restored into N time-division multiplexing group signals. The respective clock signals are extracted from each time-division multiplexing group signal, and each time-division multiplexing group signal is subjected to CMI decoding. The N digital electrical signals after CMI decoding are respectively demultiplexed and divided into two to obtain 2N signals. Then, Gray code decoding, pulse code demodulation, low-pass filtering and power amplification are sequentially performed on each separated branch signal to be restored into 2N original analog electrical signals. The signal receiving end includes a WDM splitter, an optoelectronic conversion and pulse shaping module, a clock extraction module, a CMI decoding module, a time division multiplexing module, a first output branch, and a second output branch, wherein the WDM splitter performs wavelength division multiplexing on a digital optical signal with N different wavelengths from the same optical fiber, and separates the digital optical signals with N different wavelengths transmitted in N different optical fibers respectively; the optoelectronic conversion and pulse shaping module performs optoelectronic conversion and pulse shaping on the separated N digital optical signals respectively to restore them into N time division multiplexing group signals; the clock extraction module extracts respective clock signals from each time division multiplexing group signal; the CMI decoding module performs CMI decoding on each time division multiplexing group signal; and the time division multiplexing module performs CMI decoding on the N digital electrical signals after CMI decoding respectively. The time division multiplexing of dividing one into two is performed to obtain 2N signals; in the first output branch, the first Gray code decoding module performs Gray code decoding on one of the branch signals, the first pulse code demodulation module performs pulse code demodulation on the signal after Gray code decoding, the first low-pass filtering and power amplification module performs low-pass filtering and power amplification on the pulse code demodulated signal, and restores it to the original analog electrical signal, which is output through the first analog signal output port; in the second output branch, the second Gray code decoding module performs Gray code decoding on one of the branch signals, the second pulse code demodulation module performs pulse code demodulation on the signal after Gray code decoding, the second low-pass filtering and power amplification module performs low-pass filtering and power amplification on the pulse code demodulated signal, and restores it to the original analog electrical signal, which is output through the second analog signal output port.
2. The device for teaching time-division wavelength-division multiplexing optical fiber digital communication experiments as claimed in claim 1, characterized in that: The odd bit group synchronization codeword generation module generates a group of odd bit group synchronization codewords including 10-bit codewords; the even bit group synchronization codeword generation module generates a group of even bit group synchronization codewords including 10-bit codewords; the time division multiplexing module includes time division multiplexing of odd bit group synchronization codewords and even bit group synchronization codewords and time division multiplexing of first branch information code group and second branch information code group to generate a 20-bit group synchronization code group.
3. The device for teaching time-division wavelength-division multiplexing optical fiber digital communication experiments as claimed in claim 1, characterized in that: The de-time division multiplexing module searches and detects a group synchronization code group from the nth time division multiplexing group signal, and then de-time division multiplexes the odd-numbered information code elements and the even-numbered information code elements in the information code group after the group synchronization code group, and restores them into the information code group of the 2n-1th branch and the information code group of the 2nth branch, respectively, n=1,...,N; the information code group of the 2n-1th branch is input to the first output branch, and the information code group of the 2nth branch is input to the second output branch.
4. A method for a time-division wavelength-division multiplexing optical fiber digital communication experimental teaching device according to any one of claims 1 to 3, characterized in that: At the signal sending end, signal processing includes the steps: S1-1, generate the clock signal and chip selection signal required by the signal transmitting end, set the pulse width of each code element of the information code group and the entire code group period, set the pulse width of each code element of the group synchronization code group and the entire code group period; S1-2, after each pulse code modulation module of each branch generates an information code group, it stops for half a group synchronization code group period before continuing to generate the next information code group. After each odd bit group synchronization code element generation module generates a group of odd bit group synchronization code elements, it stops for one information code group period before continuing to generate the next group of odd bit group synchronization code elements. After each even bit group synchronization code element generation module generates a group of even bit group synchronization code elements, it stops for one information code group period before continuing to generate the next group of even bit group synchronization code elements. S1-3, performing Gray code encoding on each branch signal; S1-4, delaying and shifting the information code group in the 2n-1th branch until the time period occupied by the information code group is aligned with the time gap between two adjacent groups of odd-numbered bit group synchronization code elements, and then superimposing the information code group and the odd-numbered bit group synchronization code elements, so as to be interleaved and merged into one line, delaying and shifting the information code group in the 2nth branch until the time period occupied by the information code group is aligned with the time gap between two adjacent groups of even-numbered bit group synchronization code elements, and then superimposing the information code group and the even-numbered bit group synchronization code elements, so as to be interleaved and merged into one line, n = 1, 2, 3, ..., N; S1-5, converting the 2n-1th branch signal, which was originally a non-return-to-zero code, into a return-to-zero code with a second half period of each symbol being zero, and converting the 2nth branch signal, which was originally a non-return-to-zero code, into a return-to-zero code with a first half period of each symbol being zero; S1-6, superimposing the 2n-1th branch signal whose second half period of each symbol is zero and the 2nth branch signal whose first half period of each symbol is zero in time to form the nth time division multiplexing group signal, and this step simultaneously superimposes the odd bit group synchronization code elements in the 2n-1th branch and the even bit group synchronization code elements in the 2nth branch in time to interleave and merge them to form the group synchronization code group in the nth time division multiplexing group signal; S1-7, perform CMI encoding on each time division multiplexing group signal; S1-8. First, N time-division multiplexing group signals are electro-optically converted into N optical signals of different wavelengths, and then the N optical signals of different wavelengths are wavelength-division multiplexed and coupled into the same optical fiber for transmission from the signal transmitting end to the signal receiving end.
5. A method for the time-division wavelength-division multiplexing optical fiber digital communication experimental teaching device according to any one of claims 1 to 3, characterized in that: At the signal receiving end, signal processing includes the steps: S2-1, at the signal receiving end, de-wavelength-division-multiplexing N optical signals of different wavelengths from the same optical fiber and separating them into N different optical fibers, and finally performing photoelectric conversion and pulse shaping on the N optical signals of different wavelengths to restore them into N time-division-multiplexed group signals; S2-2, extracting the clock signal required by the digital communication system signal receiving end from the time division multiplexing group signal; S2-3, performing CMI decoding on each time division multiplexing group signal; S2-4, first searching and detecting a group synchronization code group from the nth time division multiplexing group signal, and then de-time division multiplexing the odd-numbered information code elements and the even-numbered information code elements in the information code group after the group synchronization code group to restore them into the information code group of the 2n-1th branch and the information code group of the 2nth branch respectively; S2-5, performing Gray code decoding on each branch signal; S2-6. Firstly, the information code group of each branch is pulse-code demodulated, and then the signal obtained by pulse-code demodulation is low-pass filtered and power amplified to restore it into 2N original analog electrical signals.
