A method and related device for concurrently processing multiple signals based on optical module
Through the processing of the optical controller and virtual driver module in the optical module, the appropriate optical transceiver interface is selected and instructions are generated, which solves the problem of low concurrent signal efficiency and errors in optical fiber communication and achieves efficient optical signal transmission.
Patent Information
- Application Number
- CN202410591832.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-14
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-05-14
AI Technical Summary
In the existing optical fiber communication technology, the concurrent processing efficiency of multi-channel signals is low and there are concurrency errors, which cannot meet the high data transmission demand.
Using a multi-channel signal concurrent processing method based on optical modules, the optical controller receives configuration parameters, selects the appropriate optical transceiver interface, generates optical control instructions, and performs loopback processing in the virtual driver module to ensure that the optical driver executes instructions according to the natural frequency , to achieve concurrent signal processing.
It improves the working efficiency of the optical module, avoids errors in concurrent processing, and meets the needs of high data transmission.
Smart Images

Figure CN118199734B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a method for concurrently processing multiple signals based on an optical module and a related device. Background Art
[0002] In recent years, with the rapid development of science and technology, the data generated has increased exponentially, so the requirements for data transmission are getting higher and higher, not only requiring the transmission of large amounts of data, but also requiring fast transmission rates and high transmission accuracy. In order to meet this demand, optical fiber communication technology has emerged. However, in existing optical fiber communication technology, when performing data transmission through optical modules with concurrent signals, the efficiency of executing multi-channel signal concurrency is low, and there may be concurrent errors, which cannot meet the transmission requirements. Summary of the invention
[0003] The purpose of the present invention is to overcome the deficiencies of the prior art. The present invention provides a method and a related device for concurrently processing multiple signals based on an optical module, so as to realize concurrent processing of multiple signals and improve the working efficiency of the optical module.
[0004] In order to solve the above technical problems, an embodiment of the present invention provides a method for concurrently processing multiple signals based on an optical module, which is applied to an optical module, wherein the optical module includes an optical controller, a plurality of optical transceiver interfaces and a data input / output interface, and the optical controller is respectively connected to the plurality of optical transceiver interfaces and the data input / output interface signals; the method includes:
[0005] The optical controller receives, based on the data input and output interface, configuration parameters for controlling the concurrency of multiple optical signals input by a user, wherein the configuration parameters include a target address and information data carried by each optical signal in the multiple optical signals;
[0006] The optical controller selects and processes the optical transceiver interface corresponding to each optical signal among the plurality of optical transceiver interfaces according to the multiple optical signals in the configuration parameters, and obtains the interface code corresponding to the optical transceiver interface selected by each optical signal;
[0007] The optical controller generates an optical control instruction corresponding to the interface based on the configuration parameters and the interface code corresponding to the optical transceiver interface selected by each optical signal in the configuration parameters;
[0008] The light controller sends the light control instruction to the built-in virtual drive module for loopback;
[0009] The optical drivers in the plurality of optical transceiver interfaces are matched in the virtual driver module and obtain corresponding optical control instructions;
[0010] The optical driver executes the corresponding optical control instruction according to the inherent driving frequency to complete the concurrent processing of the optical signal.
[0011] Optionally, the optical controller receives, based on the data input / output interface, configuration parameters for controlling the concurrency of multiple optical signals input by a user, including:
[0012] After the data input and output interface is connected to the host computer, the control user generates configuration parameters of the concurrent multi-channel optical signals on the host computer, and sends the configuration parameters of the concurrent multi-channel optical signals to the optical controller based on the data input and output interface;
[0013] The optical controller receives concurrent configuration parameters of multiple optical signals sent by the host computer based on the data input and output interface.
[0014] Optionally, the optical controller performs selection processing of an optical transceiver interface corresponding to each optical signal among a plurality of optical transceiver interfaces according to the multiple optical signals in the configuration parameters, including:
[0015] The optical controller obtains each optical signal of the multiple optical signals in the configuration parameters, and at the same time, the optical controller performs sorting processing from low to high according to the optical signal receiving and transmitting frequency of each optical transceiver interface of the plurality of optical transceiver interfaces to obtain a sorting result of the optical signal receiving and transmitting frequency;
[0016] According to each optical signal in the multiple optical signals, a corresponding optical transceiver interface selection process is performed from the optical signal transceiver frequency sorting result.
[0017] Optionally, the performing corresponding optical transceiver interface selection processing from the optical signal transceiver frequency sorting result according to each optical signal in the multiple optical signals includes:
[0018] Obtaining the data size of the information carried by each optical signal in the multiple optical signals, and performing a sorting process from large to small according to the data size of the information carried, to obtain a sorting result of the data size of the information carried;
[0019] According to the order of the bearer information data size in the bearer information data size sorting result from large to small and the order of the optical signal transceiving frequency in the optical signal transceiving frequency sorting result from low to high, corresponding optical transceiving interface selection processing is performed.
[0020] Optionally, the optical controller generates an optical control instruction for a corresponding interface based on the configuration parameters and an interface code corresponding to the optical transceiver interface selected by each optical signal in the configuration parameters, including:
[0021] The optical controller generates a corresponding linear frequency modulation signal for each optical signal according to the multiple optical signals in the configuration parameters;
[0022] Embedding the information data carried by each optical signal into the corresponding linear frequency modulation signal, and performing signal conversion processing on the linear frequency modulation signal embedded with the information data to form the information-carrying electrical signal data of each optical signal;
[0023] The optical control instruction of the corresponding interface is generated according to the target address of each optical signal in the configuration parameters, the information-carrying electrical signal data and the interface code corresponding to the selected optical transceiver interface.
[0024] Optionally, the light controller sends the light control instruction to a built-in virtual driver module for loopback, including:
[0025] The light controller generates a virtual drive module based on the virtual driver program, and sends the light control instruction corresponding to the interface to the virtual drive module;
[0026] After receiving the light control instruction of the corresponding interface, the virtual driving module loops back the light control instruction within the virtual driving module.
[0027] Optionally, the optical drivers in the plurality of optical transceiver interfaces are matched in the virtual driver module and obtain corresponding optical control instructions, including:
[0028] The optical drivers in the plurality of optical transceiver interfaces perform optical control instruction matching processing in the loop in the virtual driver module using the corresponding interface code according to the preset frequency, and obtain the optical control instruction consistent with the interface code according to the matching result;
[0029] After obtaining the optical control instruction consistent with the interface code, the optical driver loads the optical control instruction consistent with the interface code, and after the loading is completed, feeds back a loading completion signal to the optical controller;
[0030] The light controller deletes the light control instruction corresponding to the loading completion signal in the virtual driving module according to the loading completion signal.
[0031] In addition, an embodiment of the present invention further provides a multi-channel signal concurrent processing device based on an optical module, which is applied to an optical module, wherein the optical module includes an optical controller, a plurality of optical transceiver interfaces and a data input and output interface, and the optical controller is respectively connected to the plurality of optical transceiver interfaces and the data input and output interface signals; the device includes:
[0032] Receiving module: used for the optical controller to receive the configuration parameters for controlling the concurrency of multiple optical signals input by the user based on the data input and output interface, wherein the configuration parameters include the target address and the information data carried by each optical signal in the multiple optical signals;
[0033] Selection module: used for the optical controller to select the optical transceiver interface corresponding to each optical signal among the multiple optical transceiver interfaces according to the configuration parameters, and obtain the interface code corresponding to the optical transceiver interface selected by each optical signal;
[0034] A generating module: used for the optical controller to generate an optical control instruction corresponding to an interface based on the configuration parameters and the interface code corresponding to the optical transceiver interface selected by each optical signal in the configuration parameters;
[0035] Loopback module: used for the light controller to send the light control instruction to the built-in virtual drive module for loopback;
[0036] Matching module: the optical drivers in the plurality of optical transceiver interfaces are used to perform matching processing in the virtual driver module and obtain corresponding optical control instructions;
[0037] Driving module: used for the optical driver to execute corresponding optical control instructions according to the inherent driving frequency to complete the concurrent processing of optical signals.
[0038] In addition, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method for concurrently processing multiple signals as described in any one of the above is implemented.
[0039] In addition, an embodiment of the present invention further provides an optical module, the optical module comprising:
[0040] An optical controller, several optical transceiver interfaces and data input and output interfaces, wherein the optical controller is respectively connected to the several optical transceiver interfaces and the data input and output interface signals; the optical module is configured to: execute the multi-channel signal concurrent processing method according to any one of the above items.
[0041] In an embodiment of the present invention, an optical transceiver interface corresponding to each optical signal is selected from a plurality of optical transceiver interfaces through multiple optical signals, and then an optical control instruction of the corresponding interface is generated according to the configuration parameters and the interface code corresponding to the optical transceiver interface selected by each optical signal in the configuration parameters; the optical control instruction is then sent to the built-in virtual drive module for loopback; finally, the corresponding optical control instruction is matched in the virtual drive module through the optical drivers in the plurality of optical transceiver interfaces, and the corresponding optical control instruction is executed according to the inherent drive frequency to perform concurrent processing of the optical signal; thereby, concurrent processing of multiple signals is realized, the working efficiency of the optical module is improved, and errors in concurrent processing can be effectively avoided to meet the needs of users. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0043] Figure 1 It is a flowchart of a method for concurrently processing multiple signals based on an optical module in an embodiment of the present invention;
[0044] Figure 2 Schematic diagram of the structure of a device for concurrently processing multiple signals based on an optical module in an embodiment of the present invention;
[0045] Figure 3 Schematic diagram of the structure of the optical module in the embodiment of the present invention. DETAILED DESCRIPTION
[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. 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.
[0047] For example, see Figure 1 , Figure 1 It is a flowchart of a method for concurrently processing multiple signals based on an optical module in an embodiment of the present invention.
[0048] like Figure 1 As shown, a method for concurrently processing multiple signals based on an optical module is applied to an optical module, wherein the optical module includes an optical controller, a plurality of optical transceiver interfaces and a data input / output interface, and the optical controller is respectively connected to the plurality of optical transceiver interfaces and the data input / output interface signals; the method includes:
[0049] S11: The optical controller receives, based on the data input and output interface, configuration parameters for controlling the concurrency of multiple optical signals input by a user, wherein the configuration parameters include a target address and information data carried by each optical signal in the multiple optical signals;
[0050] In the specific implementation process of the present invention, the optical controller receives the configuration parameters of the concurrency of multiple optical signals input by the control user based on the data input and output interface, including: after the data input and output interface is connected to the host computer, the control user operates on the host computer to generate the configuration parameters of the concurrency of multiple optical signals, and sends the configuration parameters of the concurrency of multiple optical signals to the optical controller based on the data input and output interface; the optical controller receives the configuration parameters of the concurrency of multiple optical signals sent by the host computer based on the data input and output interface.
[0051] Specifically, the data input and output interface is used to connect to a preset host computer, and the user operation user can control the optical module on the host computer and receive information fed back by the optical module; after the host computer establishes a connection with the optical module through the data input and output interface, the control user can perform input operations on the host computer, generate configuration parameters for the concurrency of multiple signals through the input operations, and then send the configuration parameters for the concurrency of multiple optical signals to the optical controller of the optical module through the data input and output interface; the optical controller can receive the configuration parameters for the concurrency of multiple optical signals sent by the host computer through the data input and output interface, and the configuration parameters include the target address and carrying information data of each optical signal in the multiple optical signals.
[0052] S12: the optical controller performs selection processing of an optical transceiver interface corresponding to each optical signal among a plurality of optical transceiver interfaces according to the multiple optical signals in the configuration parameters, and obtains an interface code corresponding to the optical transceiver interface selected by each optical signal;
[0053] In the specific implementation process of the present invention, the optical controller performs selection processing of the optical transceiver interface corresponding to each optical signal among a plurality of optical transceiver interfaces according to the multiple optical signals in the configuration parameters, including: the optical controller obtains each optical signal of the multiple optical signals in the configuration parameters, and at the same time, the optical controller performs sorting processing from low to high according to the optical signal transceiver frequency of each optical transceiver interface among the plurality of optical transceiver interfaces to obtain the sorting result of the optical signal transceiver frequency; and performs corresponding optical transceiver interface selection processing from the optical signal transceiver frequency sorting result according to each optical signal in the multiple optical signals.
[0054] Furthermore, the performing corresponding optical transceiver interface selection processing from the optical signal transceiver frequency sorting result according to each optical signal in the multiple optical signals includes: obtaining the bearer information data size of each optical signal in the multiple optical signals, and performing a sorting processing from large to small according to the bearer information data size to obtain the bearer information data size sorting result; performing corresponding optical transceiver interface selection processing from low to high according to the bearer information data in the bearer information data size sorting result.
[0055] Specifically, after the optical controller obtains the configuration parameters, it can obtain each optical signal of the multiple optical signals in the configuration parameters by analyzing the configuration parameters. At the same time, the optical controller sorts the optical signal transceiver frequency of each optical transceiver interface in the multiple optical transceiver interfaces from low to high to obtain the sorting result of the optical signal transceiver frequency. At this time, the optical controller needs to obtain the optical signal transceiver frequency of each optical transceiver interface in the multiple optical transceiver interfaces from the transceiver data fed back by the multiple optical transceiver interfaces, and then sorts them from high to low to obtain the sorting result of the optical signal transceiver frequency of the multiple optical transceiver interfaces. Finally, the corresponding optical transceiver interface selection processing can be performed from the optical signal transceiver frequency sorting result through each optical signal in the multiple optical signals.
[0056] The specific selection process of the optical transceiver interface is as follows: the information data size of each optical signal in the multiple optical signals in the configuration parameters needs to be obtained, and the information data size is sorted from large to small to obtain the information data size sorting result; then the corresponding optical transceiver interface selection process is performed from large to small according to the information data in the information data size sorting result and the optical signal transceiver frequency in the optical signal transceiver frequency sorting result; that is, the optical signal with the largest information data is selected with the smallest optical signal frequency in the optical signal transceiver frequency sorting result, and so on, until the corresponding optical transceiver interface is selected for each optical signal in the multiple optical signals; at the same time, in the present technical solution, the total number of multiple signals cannot be greater than the number of interfaces of the optical transceiver interfaces of the optical module, and can only be equal to or less than the number of interfaces of the optical transceiver interfaces of the optical module; by selecting the corresponding optical transceiver interface in this way, the signal processing efficiency of the optical transceiver interface can be effectively improved.
[0057] S13: The optical controller generates an optical control instruction corresponding to the interface based on the configuration parameters and the interface code corresponding to the optical transceiver interface selected by each optical signal in the configuration parameters;
[0058] In the specific implementation process of the present invention, the optical controller generates an optical control instruction of the corresponding interface based on the configuration parameters and the interface code corresponding to the optical transceiver interface selected by each optical signal in the configuration parameters, including: the optical controller generates a corresponding linear frequency modulation signal for each optical signal according to the multiple optical signals in the configuration parameters; embeds the information-bearing data of each optical signal into the corresponding linear frequency modulation signal, and performs signal conversion processing on the linear frequency modulation signal embedded with the information-bearing data to form the information-bearing electrical signal data of each optical signal; generates an optical control instruction of the corresponding interface according to the target address of each optical signal in the configuration parameters, the information-bearing electrical signal data and the interface code corresponding to the selected optical transceiver interface.
[0059] Specifically, the optical controller generates a corresponding linear frequency modulation signal for each optical signal according to the multiple optical signals in the configuration parameters; here, the linear frequency modulation signal is a blank signal. The linear frequency modulation (LFM) signal is a signal whose instantaneous frequency changes linearly with time, and its time domain expression is:
[0060] ;
[0061] in, is the time variable, the unit is s, is the pulse duration period, is the frequency modulation slope, the unit is ; j represents the imaginary unit.
[0062] The angle expression obtained from the time domain expression is:
[0063] ;
[0064] right The instantaneous frequency after differentiation is:
[0065] ;
[0066] Then the signal bandwidth is:
[0067] ;
[0068] In an optional implementation of this embodiment, the linear frequency modulation signal used has a bandwidth of 5 MHz, a time width of 12 us, a starting frequency of 0 Hz, and a sampling frequency of 40 MHz.
[0069] After the corresponding linear frequency modulation signal is generated for each optical signal from the multiple optical signals in the generated configuration parameters, the information data carried by each optical signal needs to be embedded in the corresponding linear frequency modulation signal, and the linear frequency modulation signal embedded with the information data needs to be converted and processed, and the DC and low-frequency components in the input electrical signal are eliminated by adopting 64B / 66B line coding to form the information-carrying electrical signal data of each optical signal; at the same time, the optical control instruction of the corresponding interface is generated according to the target address of each optical signal in the configuration parameters, the information-carrying electrical signal data and the interface code corresponding to the selected optical transceiver interface.
[0070] S14: the light controller sends the light control instruction to the built-in virtual drive module for loopback;
[0071] In the specific implementation process of the present invention, the light controller sends the light control instruction to the built-in virtual driver module for loopback, including: the light controller generates a virtual driver module based on the virtual driver program, and sends the light control instruction of the corresponding interface to the virtual driver module; after receiving the light control instruction of the corresponding interface, the virtual driver module loops the light control instruction in the virtual driver module.
[0072] Specifically, in the present application, a loopback method is used to ensure that optical drivers in several optical transceiver interfaces will not be congested or that there are too many queued instructions in the optical drivers in several optical transceiver interfaces, resulting in loss; that is, the optical controller generates a virtual driver module through a virtual driver program running on it, and then sends the optical control instructions of the corresponding interface to the virtual driver module; after receiving the optical control instructions of the corresponding interface, the virtual driver module performs a loopback processing on the corresponding optical control instructions in the virtual driver module; that is, when the corresponding optical transceiver interface of several optical transceiver interfaces does not process the corresponding optical control instruction, the corresponding optical control instruction is left in the virtual driver module for loopback, and there is no need to extract it into the optical driver of the corresponding optical transceiver interface, thereby ensuring the working efficiency of the optical driver of the corresponding optical transceiver interface.
[0073] S15: the optical drivers in the plurality of optical transceiver interfaces perform matching processing in the virtual driver module and obtain corresponding optical control instructions;
[0074] In the specific implementation process of the present invention, the optical drivers in the several optical transceiver interfaces are matched in the virtual drive module and obtain corresponding optical control instructions, including: the optical drivers in the several optical transceiver interfaces perform optical control instruction matching processing in the loop in the virtual drive module using the corresponding interface coding according to the preset frequency, and obtain the optical control instruction consistent with the interface coding according to the matching result; after obtaining the optical control instruction consistent with the interface coding, the optical driver loads the optical control instruction consistent with the interface coding, and after loading is completed, feeds back the loading completion signal to the optical controller; the optical controller deletes the optical control instruction corresponding to the loading completion signal in the virtual drive module according to the loading completion signal.
[0075] Specifically, the optical drivers in the plurality of optical transceiver interfaces use the corresponding interface code to perform optical control instruction matching processing in the loop in the virtual drive module according to the preset frequency, that is, after each of the plurality of optical transceiver interfaces completes the driving of the previous optical control instruction, the optical driver therein will use the interface code corresponding to its optical transceiver interface to perform optical control instruction matching processing in the loop in the virtual drive module according to the set frequency, thereby obtaining a matching result, and then obtain an optical control instruction consistent with the corresponding interface code according to the matching result; after obtaining the optical control instruction consistent with the interface code, the optical driver loads the optical control instruction consistent with the interface code, and after the loading is completed, the loading completion signal is returned The optical controller deletes the optical control instruction corresponding to the loading completion signal in the virtual drive module according to the loading completion signal; at the same time, if there is an optical control instruction in the virtual drive module after the loop time exceeds the preset time, and the optical driver of one of the optical transceiver interfaces cannot match the optical control instruction consistent with the interface code in the virtual drive module using its corresponding interface code, the optical controller will control the optical driver in the optical transceiver interface to actively load the optical control instruction whose loop time in the virtual drive module exceeds the preset time, which will effectively solve the problem that the corresponding optical control instruction cannot be extracted due to a failure of a certain optical transceiver interface or other reasons.
[0076] S16: The optical driver executes the corresponding optical control instruction according to the inherent driving frequency to complete the concurrent processing of the optical signal.
[0077] In the specific implementation process of the present invention, the optical driver will execute the loaded teammate's optical control instructions according to the set inherent driving comment to perform concurrent processing of optical signals.
[0078] In an embodiment of the present invention, an optical transceiver interface corresponding to each optical signal is selected from a plurality of optical transceiver interfaces through multiple optical signals, and then an optical control instruction of the corresponding interface is generated according to the configuration parameters and the interface code corresponding to the optical transceiver interface selected by each optical signal in the configuration parameters; the optical control instruction is then sent to the built-in virtual drive module for loopback; finally, the corresponding optical control instruction is matched in the virtual drive module through the optical drivers in the plurality of optical transceiver interfaces, and the corresponding optical control instruction is executed according to the inherent drive frequency to perform concurrent processing of the optical signal; thereby, concurrent processing of multiple signals is realized, the working efficiency of the optical module is improved, and errors in concurrent processing can be effectively avoided to meet the needs of users.
[0079] For example 2, please refer to Figure 2 , Figure 2 It is a schematic diagram of the structure of a device for concurrently processing multiple signals based on an optical module in an embodiment of the present invention.
[0080] like Figure 2 As shown, a multi-channel signal concurrent processing device based on an optical module is applied to an optical module, wherein the optical module includes an optical controller, a plurality of optical transceiver interfaces and a data input / output interface, and the optical controller is respectively connected to the plurality of optical transceiver interfaces and the data input / output interface signals; the device includes:
[0081] Receiving module 21: used for the optical controller to receive configuration parameters for controlling the concurrency of multiple optical signals input by a user based on the data input and output interface, wherein the configuration parameters include a target address and information data carried by each optical signal in the multiple optical signals;
[0082] In the specific implementation process of the present invention, the optical controller receives the configuration parameters of the concurrency of multiple optical signals input by the control user based on the data input and output interface, including: after the data input and output interface is connected to the host computer, the control user operates on the host computer to generate the configuration parameters of the concurrency of multiple optical signals, and sends the configuration parameters of the concurrency of multiple optical signals to the optical controller based on the data input and output interface; the optical controller receives the configuration parameters of the concurrency of multiple optical signals sent by the host computer based on the data input and output interface.
[0083] Specifically, the data input and output interface is used to connect to a preset host computer, and the user operation user can control the optical module on the host computer and receive information fed back by the optical module; after the host computer establishes a connection with the optical module through the data input and output interface, the control user can perform input operations on the host computer, generate configuration parameters for the concurrency of multiple signals through the input operations, and then send the configuration parameters for the concurrency of multiple optical signals to the optical controller of the optical module through the data input and output interface; the optical controller can receive the configuration parameters for the concurrency of multiple optical signals sent by the host computer through the data input and output interface, and the configuration parameters include the target address and carrying information data of each optical signal in the multiple optical signals.
[0084] Selection module 22: used for the optical controller to select the optical transceiver interface corresponding to each optical signal among the plurality of optical transceiver interfaces according to the multiple optical signals in the configuration parameters, and obtain the interface code corresponding to the optical transceiver interface selected by each optical signal;
[0085] In the specific implementation process of the present invention, the optical controller performs selection processing of the optical transceiver interface corresponding to each optical signal among a plurality of optical transceiver interfaces according to the multiple optical signals in the configuration parameters, including: the optical controller obtains each optical signal of the multiple optical signals in the configuration parameters, and at the same time, the optical controller performs sorting processing from low to high according to the optical signal transceiver frequency of each optical transceiver interface among the plurality of optical transceiver interfaces to obtain the sorting result of the optical signal transceiver frequency; and performs corresponding optical transceiver interface selection processing from the optical signal transceiver frequency sorting result according to each optical signal in the multiple optical signals.
[0086] Furthermore, the performing corresponding optical transceiver interface selection processing from the optical signal transceiver frequency sorting result according to each optical signal in the multiple optical signals includes: obtaining the bearer information data size of each optical signal in the multiple optical signals, and performing a sorting processing from large to small according to the bearer information data size to obtain the bearer information data size sorting result; performing corresponding optical transceiver interface selection processing from low to high according to the bearer information data in the bearer information data size sorting result.
[0087] Specifically, after the optical controller obtains the configuration parameters, it can obtain each optical signal of the multiple optical signals in the configuration parameters by analyzing the configuration parameters. At the same time, the optical controller sorts the optical signal transceiver frequency of each optical transceiver interface in the multiple optical transceiver interfaces from low to high to obtain the sorting result of the optical signal transceiver frequency. At this time, the optical controller needs to obtain the optical signal transceiver frequency of each optical transceiver interface in the multiple optical transceiver interfaces from the transceiver data fed back by the multiple optical transceiver interfaces, and then sorts them from high to low to obtain the sorting result of the optical signal transceiver frequency of the multiple optical transceiver interfaces. Finally, the corresponding optical transceiver interface selection processing can be performed from the optical signal transceiver frequency sorting result through each optical signal in the multiple optical signals.
[0088] The specific selection process of the optical transceiver interface is as follows: the information data size of each optical signal in the multiple optical signals in the configuration parameters needs to be obtained, and the information data size is sorted from large to small to obtain the information data size sorting result; then the corresponding optical transceiver interface selection process is performed from large to small according to the information data in the information data size sorting result and the optical signal transceiver frequency in the optical signal transceiver frequency sorting result; that is, the optical signal with the largest information data is selected with the smallest optical signal frequency in the optical signal transceiver frequency sorting result, and so on, until the corresponding optical transceiver interface is selected for each optical signal in the multiple optical signals; at the same time, in the present technical solution, the total number of multiple signals cannot be greater than the number of interfaces of the optical transceiver interfaces of the optical module, and can only be equal to or less than the number of interfaces of the optical transceiver interfaces of the optical module; by selecting the corresponding optical transceiver interface in this way, the signal processing efficiency of the optical transceiver interface can be effectively improved.
[0089] Generating module 23: used for the optical controller to generate an optical control instruction corresponding to an interface based on the configuration parameters and the interface code corresponding to the optical transceiver interface selected by each optical signal in the configuration parameters;
[0090] In the specific implementation process of the present invention, the optical controller generates an optical control instruction of the corresponding interface based on the configuration parameters and the interface code corresponding to the optical transceiver interface selected by each optical signal in the configuration parameters, including: the optical controller generates a corresponding linear frequency modulation signal for each optical signal according to the multiple optical signals in the configuration parameters; embeds the information-bearing data of each optical signal into the corresponding linear frequency modulation signal, and performs signal conversion processing on the linear frequency modulation signal embedded with the information-bearing data to form the information-bearing electrical signal data of each optical signal; generates an optical control instruction of the corresponding interface according to the target address of each optical signal in the configuration parameters, the information-bearing electrical signal data and the interface code corresponding to the selected optical transceiver interface.
[0091] Specifically, the optical controller generates a corresponding linear frequency modulation signal for each optical signal according to the multiple optical signals in the configuration parameters; here, the linear frequency modulation signal is a blank signal. The linear frequency modulation (LFM) signal is a signal whose instantaneous frequency changes linearly with time, and its time domain expression is:
[0092] ;
[0093] in, is the time variable, the unit is s, is the pulse duration period, is the frequency modulation slope, the unit is ; j represents the imaginary unit.
[0094] The angle expression obtained from the time domain expression is:
[0095] ;
[0096] right The instantaneous frequency after differentiation is:
[0097] ;
[0098] Then the signal bandwidth is:
[0099] ;
[0100] In an optional implementation of this embodiment, the linear frequency modulation signal used has a bandwidth of 5 MHz, a time width of 12 us, a starting frequency of 0 Hz, and a sampling frequency of 40 MHz.
[0101] After the corresponding linear frequency modulation signal is generated for each optical signal from the multiple optical signals in the generated configuration parameters, the information data carried by each optical signal needs to be embedded in the corresponding linear frequency modulation signal, and the linear frequency modulation signal embedded with the information data needs to be converted and processed, and the DC and low-frequency components in the input electrical signal are eliminated by adopting 64B / 66B line coding to form the information-carrying electrical signal data of each optical signal; at the same time, the optical control instruction of the corresponding interface is generated according to the target address of each optical signal in the configuration parameters, the information-carrying electrical signal data and the interface code corresponding to the selected optical transceiver interface.
[0102] Loopback module 24: used for the light controller to send the light control instruction to the built-in virtual drive module for loopback;
[0103] In the specific implementation process of the present invention, the light controller sends the light control instruction to the built-in virtual driver module for loopback, including: the light controller generates a virtual driver module based on the virtual driver program, and sends the light control instruction of the corresponding interface to the virtual driver module; after receiving the light control instruction of the corresponding interface, the virtual driver module loops the light control instruction in the virtual driver module.
[0104] Specifically, in the present application, a loopback method is used to ensure that optical drivers in several optical transceiver interfaces will not be congested or that there are too many queued instructions in the optical drivers in several optical transceiver interfaces, resulting in loss; that is, the optical controller generates a virtual driver module through a virtual driver program running on it, and then sends the optical control instructions of the corresponding interface to the virtual driver module; after receiving the optical control instructions of the corresponding interface, the virtual driver module performs a loopback processing on the corresponding optical control instructions in the virtual driver module; that is, when the corresponding optical transceiver interface of several optical transceiver interfaces does not process the corresponding optical control instruction, the corresponding optical control instruction is left in the virtual driver module for loopback, and there is no need to extract it into the optical driver of the corresponding optical transceiver interface, thereby ensuring the working efficiency of the optical driver of the corresponding optical transceiver interface.
[0105] Matching module 25: optical drivers in the plurality of optical transceiver interfaces are used to perform matching processing in the virtual driver module and obtain corresponding optical control instructions;
[0106] In the specific implementation process of the present invention, the optical drivers in the several optical transceiver interfaces are matched in the virtual drive module and obtain corresponding optical control instructions, including: the optical drivers in the several optical transceiver interfaces perform optical control instruction matching processing in the loop in the virtual drive module using the corresponding interface coding according to the preset frequency, and obtain the optical control instruction consistent with the interface coding according to the matching result; after obtaining the optical control instruction consistent with the interface coding, the optical driver loads the optical control instruction consistent with the interface coding, and after loading is completed, feeds back the loading completion signal to the optical controller; the optical controller deletes the optical control instruction corresponding to the loading completion signal in the virtual drive module according to the loading completion signal.
[0107] Specifically, the optical drivers in the plurality of optical transceiver interfaces use the corresponding interface code to perform optical control instruction matching processing in the loop in the virtual drive module according to the preset frequency, that is, after each of the plurality of optical transceiver interfaces completes the driving of the previous optical control instruction, the optical driver therein will use the interface code corresponding to its optical transceiver interface to perform optical control instruction matching processing in the loop in the virtual drive module according to the set frequency, thereby obtaining a matching result, and then obtain an optical control instruction consistent with the corresponding interface code according to the matching result; after obtaining the optical control instruction consistent with the interface code, the optical driver loads the optical control instruction consistent with the interface code, and after the loading is completed, the loading completion signal is returned The optical controller deletes the optical control instruction corresponding to the loading completion signal in the virtual drive module according to the loading completion signal; at the same time, if there is an optical control instruction in the virtual drive module after the loop time exceeds the preset time, and the optical driver of one of the optical transceiver interfaces cannot match the optical control instruction consistent with the interface code in the virtual drive module using its corresponding interface code, the optical controller will control the optical driver in the optical transceiver interface to actively load the optical control instruction whose loop time in the virtual drive module exceeds the preset time, which will effectively solve the problem that the corresponding optical control instruction cannot be extracted due to a failure of a certain optical transceiver interface or other reasons.
[0108] Driving module 26: used for the optical driver to execute corresponding optical control instructions according to the inherent driving frequency to complete the concurrent processing of optical signals.
[0109] In the specific implementation process of the present invention, the optical driver will execute the loaded teammate's optical control instructions according to the set inherent driving comment to perform concurrent processing of optical signals.
[0110] In an embodiment of the present invention, an optical transceiver interface corresponding to each optical signal is selected from a plurality of optical transceiver interfaces through multiple optical signals, and then an optical control instruction of the corresponding interface is generated according to the configuration parameters and the interface code corresponding to the optical transceiver interface selected by each optical signal in the configuration parameters; the optical control instruction is then sent to the built-in virtual drive module for loopback; finally, the corresponding optical control instruction is matched in the virtual drive module through the optical drivers in the plurality of optical transceiver interfaces, and the corresponding optical control instruction is executed according to the inherent drive frequency to perform concurrent processing of the optical signal; thereby, concurrent processing of multiple signals is realized, the working efficiency of the optical module is improved, and errors in concurrent processing can be effectively avoided to meet the needs of users.
[0111] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, a method for concurrently processing multiple signals in any one of the above embodiments is implemented. The computer-readable storage medium includes, but is not limited to, any type of disk (including floppy disk, hard disk, optical disk, CD-ROM, and magneto-optical disk), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (EraSable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or optical card. That is, the storage device includes any medium that can store or transmit information in a readable form by a device (for example, a computer, a mobile phone), which can be a read-only memory, a disk or an optical disk, etc.
[0112] An embodiment of the present invention further provides a computer application program, which runs on a computer and is used to execute the method for concurrently processing multiple signals of any one of the above embodiments.
[0113] also, Figure 3 Schematic diagram of the structure of the optical module in the embodiment of the present invention.
[0114] The embodiment of the present invention further provides an optical module, such as Figure 3 As shown; the optical module includes: an optical controller 31, a plurality of optical transceiver interfaces 32 and a data input and output interface 33 and other devices; those skilled in the art can understand that, Figure 3 The electronic device structures shown do not constitute limitations on all devices and may include more or fewer components than shown in the figures, or combine certain components.
[0115] As an embodiment, the optical module includes: an optical controller 31, a plurality of optical transceiver interfaces 32 and a data input and output interface 33, and the optical controller 31 is signal-connected to the plurality of optical transceiver interfaces 32 and the data input and output interface 33 respectively; the optical module is configured for: executing a multi-channel signal concurrent processing method according to any one of the above items.
[0116] In an embodiment of the present invention, an optical transceiver interface corresponding to each optical signal is selected from a plurality of optical transceiver interfaces through multiple optical signals, and then an optical control instruction of the corresponding interface is generated according to the configuration parameters and the interface code corresponding to the optical transceiver interface selected by each optical signal in the configuration parameters; the optical control instruction is then sent to the built-in virtual drive module for loopback; finally, the corresponding optical control instruction is matched in the virtual drive module through the optical drivers in the plurality of optical transceiver interfaces, and the corresponding optical control instruction is executed according to the inherent drive frequency to perform concurrent processing of the optical signal; thereby, concurrent processing of multiple signals is realized, the working efficiency of the optical module is improved, and errors in concurrent processing can be effectively avoided to meet the needs of users.
[0117] In addition, the above is a detailed introduction to a multi-channel signal concurrent processing method based on an optical module and a related device provided in an embodiment of the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for concurrently processing multiple signals based on an optical module, characterized in that: Applied to an optical module, the optical module includes an optical controller, a plurality of optical transceiver interfaces and a data input / output interface, the optical controller is respectively connected to the plurality of optical transceiver interfaces and the data input / output interface signals; the method includes: The optical controller receives, based on the data input and output interface, configuration parameters for controlling the concurrency of multiple optical signals input by a user, wherein the configuration parameters include a target address and information data carried by each optical signal in the multiple optical signals; The optical controller selects and processes the optical transceiver interface corresponding to each optical signal among the plurality of optical transceiver interfaces according to the multiple optical signals in the configuration parameters, and obtains the interface code corresponding to the optical transceiver interface selected by each optical signal; The optical controller generates an optical control instruction corresponding to the interface based on the configuration parameters and the interface code corresponding to the optical transceiver interface selected by each optical signal in the configuration parameters; The light controller sends the light control instruction to the built-in virtual drive module for loopback; The optical drivers in the plurality of optical transceiver interfaces are matched in the virtual driver module and obtain corresponding optical control instructions; The optical driver executes the corresponding optical control instruction according to the inherent driving frequency to complete the concurrent processing of the optical signal.
2. The method for concurrently processing multiple signals according to claim 1, characterized in that: The optical controller receives, based on the data input and output interface, configuration parameters for controlling the concurrency of multiple optical signals input by a user, including: After the data input and output interface is connected to the host computer, the control user generates configuration parameters of the concurrent multi-channel optical signals on the host computer, and sends the configuration parameters of the concurrent multi-channel optical signals to the optical controller based on the data input and output interface; The optical controller receives concurrent configuration parameters of multiple optical signals sent by the host computer based on the data input and output interface.
3. The method for concurrently processing multiple signals according to claim 1, characterized in that: The optical controller performs selection processing of an optical transceiver interface corresponding to each optical signal among a plurality of optical transceiver interfaces according to the multiple optical signals in the configuration parameters, including: The optical controller obtains each optical signal of the multiple optical signals in the configuration parameters, and at the same time, the optical controller performs sorting processing from low to high according to the optical signal receiving and transmitting frequency of each optical transceiver interface of the plurality of optical transceiver interfaces to obtain a sorting result of the optical signal receiving and transmitting frequency; According to each optical signal in the multiple optical signals, a corresponding optical transceiver interface selection process is performed from the optical signal transceiver frequency sorting result.
4. The method for concurrently processing multiple signals according to claim 3, characterized in that: The step of performing corresponding optical transceiver interface selection processing from the optical signal transceiver frequency sorting result according to each optical signal in the multiple optical signals includes: Obtaining the data size of the information carried by each optical signal in the multiple optical signals, and performing a sorting process from large to small according to the data size of the information carried, to obtain a sorting result of the data size of the information carried; According to the order of the bearer information data size in the bearer information data size sorting result from large to small and the order of the optical signal transceiving frequency in the optical signal transceiving frequency sorting result from low to high, corresponding optical transceiving interface selection processing is performed.
5. The method for concurrently processing multiple signals according to claim 1, characterized in that: The optical controller generates an optical control instruction corresponding to the interface based on the configuration parameters and the interface code corresponding to the optical transceiver interface selected by each optical signal in the configuration parameters, including: The optical controller generates a corresponding linear frequency modulation signal for each optical signal according to the multiple optical signals in the configuration parameters; Embedding the information data carried by each optical signal into the corresponding linear frequency modulation signal, and performing signal conversion processing on the linear frequency modulation signal embedded with the information data to form the information-carrying electrical signal data of each optical signal; The optical control instruction of the corresponding interface is generated according to the target address of each optical signal in the configuration parameters, the information-carrying electrical signal data and the interface code corresponding to the selected optical transceiver interface.
6. The method for concurrently processing multiple signals according to claim 1, characterized in that: The light controller sends the light control instruction to the built-in virtual drive module for loopback, including: The light controller generates a virtual drive module based on the virtual driver program, and sends the light control instruction corresponding to the interface to the virtual drive module; After receiving the light control instruction of the corresponding interface, the virtual driving module loops back the light control instruction within the virtual driving module.
7. The method for concurrently processing multiple signals according to claim 1, characterized in that: The optical drivers in the plurality of optical transceiver interfaces are matched in the virtual driver module and obtain corresponding optical control instructions, including: The optical drivers in the plurality of optical transceiver interfaces perform optical control instruction matching processing in the loop in the virtual driver module using the corresponding interface code according to the preset frequency, and obtain the optical control instruction consistent with the interface code according to the matching result; After obtaining the optical control instruction consistent with the interface code, the optical driver loads the optical control instruction consistent with the interface code, and after the loading is completed, feeds back a loading completion signal to the optical controller; The light controller deletes the light control instruction corresponding to the loading completion signal in the virtual driving module according to the loading completion signal.
8. A device for concurrently processing multiple signals based on an optical module, characterized in that: Applied to an optical module, the optical module includes an optical controller, a plurality of optical transceiver interfaces and a data input / output interface, the optical controller is respectively connected to the plurality of optical transceiver interfaces and the data input / output interface signals; the device includes: Receiving module: used for the optical controller to receive the configuration parameters for controlling the concurrency of multiple optical signals input by the user based on the data input and output interface, wherein the configuration parameters include the target address and the information data carried by each optical signal in the multiple optical signals; Selection module: used for the optical controller to select the optical transceiver interface corresponding to each optical signal among the multiple optical transceiver interfaces according to the configuration parameters, and obtain the interface code corresponding to the optical transceiver interface selected by each optical signal; A generating module: used for the optical controller to generate an optical control instruction corresponding to an interface based on the configuration parameters and the interface code corresponding to the optical transceiver interface selected by each optical signal in the configuration parameters; Loopback module: used for the light controller to send the light control instruction to the built-in virtual drive module for loopback; Matching module: the optical drivers in the plurality of optical transceiver interfaces are used to perform matching processing in the virtual driver module and obtain corresponding optical control instructions; Driving module: used for the optical driver to execute corresponding optical control instructions according to the inherent driving frequency to complete the concurrent processing of optical signals.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for concurrently processing multiple signals as described in any one of claims 1 to 7 is implemented.
10. An optical module, characterized in that: The optical module comprises: An optical controller, several optical transceiver interfaces and data input and output interfaces, wherein the optical controller is respectively connected to the several optical transceiver interfaces and the data input and output interface signals; the optical module is configured to: execute the multi-channel signal concurrent processing method according to any one of claims 1-7.
