Graph brushing method and device based on WSS wavelength selective switch
By adopting a flash-based method in the WSS wavelength selection switch, adjusting the LCoS chip pixel bitmap imaging according to the user configuration command, the problem of low configuration command adjustment efficiency in the prior art is solved, and efficient wavenumber switching of the specified port channel is realized.
Patent Information
- Application Number
- CN202510003645.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-02
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2045-01-02
AI Technical Summary
The prior art lacks an effective method for adjusting pixel bitmap imaging on the LCoS chip according to user configuration commands, thereby achieving wavelet switching of a specified port channel.
A brushing method based on WSS wavelength selection switch is provided. By receiving wavelength configuration commands, protocol conversion and verification are performed, initial and target attenuation values are obtained, brushing configuration is calculated, and brushing locations on pixel bitmap are adjusted according to the configuration, so as to adjust pixel imaging and optical signal reflection angles.
It realizes adjusting the LCoS chip pixel bitmap imaging according to user configuration commands, completing wavelet switching of the specified port channel, and improving the configuration efficiency and flexibility of the WSS wavelength selection switch.
Smart Images

Figure CN119853846A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of optical communication technology, and in particular to a method and device for refreshing a map based on a WSS wavelength selective switch. Background Art
[0002] With the construction and development of Reconfigurable Optical add-drop Multiplexing (ROADM) optical networks, Wavelength Selective Switch (WSS) as the core optical module of ROADM optical transmission equipment has been highly valued in the optical communication field.
[0003] In the process of the existing wavelength selective switch processing the wavelength signal from the designated input port of the array optical fiber as needed and switching it to the designated output port of the array optical fiber, it is necessary to adjust the imaging of the pixel bitmap on the liquid crystal on silicon (LCoS) chip to change the brightness of each pixel point of the pixel bitmap on the LCoS chip. When the light signal is output from the designated input port of the array optical fiber to the pixel bitmap, the pixel points of different brightness will reflect the received light signal to the designated output port at different angles, thereby realizing the sub-wave switching of the designated port channel. However, there is currently no relatively good method process for adjusting the imaging of the pixel bitmap on the LCoS chip according to the user's configuration command.
[0004] In view of this, overcoming the defects of the prior art is an urgent problem to be solved in the field of this technology. Summary of the invention
[0005] The technical problem to be solved by the present invention is how to adjust the imaging of the pixel bitmap on the LCoS chip according to the configuration command of the user, so as to realize the sub-wave switching of the designated port channel.
[0006] The present invention adopts the following technical solution:
[0007] In a first aspect, a method for refreshing a map based on a WSS wavelength selective switch is provided, comprising:
[0008] receiving a wavelength configuration command, and performing protocol conversion and verification on the wavelength configuration command;
[0009] Obtaining an initial attenuation value of the channel to be adjusted, and obtaining a target attenuation value according to the wavelength configuration command;
[0010] Obtaining a refresh map configuration according to the initial attenuation value and the target attenuation value;
[0011] Acquire a starting frequency, an ending frequency, an input port identifier, and an output port identifier according to the wavelength configuration command, and acquire a refresh position on a pixel bitmap according to the starting frequency, the ending frequency, the input port identifier, the output port identifier, and the target attenuation value;
[0012] Pixel imaging is performed according to the image brushing configuration and the image brushing position to achieve brightness adjustment of corresponding pixel points on the pixel bitmap, change the angle of reflection of the light signal from the corresponding pixel point, thereby reflecting the light signal to the designated port on the optical fiber array, and completing the sub-wave switching of the channel to be adjusted.
[0013] Preferably, obtaining the map refresh configuration according to the initial attenuation value and the target attenuation value specifically includes:
[0014] The attenuation range of the wavelength selective switch is evenly divided into N gears;
[0015] Obtaining a corresponding gear position a of the initial attenuation value, and obtaining a corresponding gear position b of the target attenuation value;
[0016] Determine whether the wavelength configuration command needs to change the input port identifier and / or output port identifier of the channel to be adjusted;
[0017] When the wavelength configuration command does not need to change the input port identifier and / or output port identifier of the channel to be adjusted, the refresh path in the refresh configuration is from gear a to gear b, and the number of refreshes in the refresh configuration is ba. | Second-rate;
[0018] When the wavelength configuration command needs to change the input port identifier and / or output port identifier of the channel to be adjusted, the map refresh path in the map refresh configuration is from gear a to gear 0 and then to gear b, and the number of map refreshes in the map refresh configuration is a+b times.
[0019] Preferably, the step of obtaining the refresh position on the pixel bitmap according to the start frequency, the end frequency, the input port identifier, the output port identifier and the target attenuation value specifically includes:
[0020] Acquire the column start position in the pixel bitmap according to the start frequency, acquire the column end position in the pixel bitmap according to the end frequency, acquire the center frequency point according to the start frequency and the end frequency, and acquire the calibration channel corresponding to the center frequency point;
[0021] Acquire the boundary position corresponding to each user-defined module according to the input port identifier, the output port identifier and the calibration channel;
[0022] Acquire a row interval in a pixel bitmap according to the boundary position, input port identifier, output port identifier and calibration channel corresponding to each user-defined module;
[0023] The interval range obtained by integrating the column start position, column end position and row interval in the pixel bitmap is used as the image refresh position.
[0024] Preferably, the acquiring the boundary position corresponding to each user-defined module according to the input port identifier, the output port identifier and the calibration channel specifically includes:
[0025] The input port identifier, the output port identifier and the calibration channel are integrated as a first combination keyword to be searched in a calibration attenuation table to obtain the boundary positions between the user-defined modules.
[0026] Preferably, the acquiring of the row interval in the pixel bitmap according to the boundary position, input port identifier, output port identifier and calibration channel corresponding to each user-defined module specifically includes:
[0027] The boundary position, input port identifier, output port identifier and row interval in the pixel bitmap corresponding to each user-defined module are integrated as a second combination keyword, and the second combination keyword is searched in the calibration switch table to obtain the row interval in the pixel bitmap.
[0028] Preferably, the performing pixel imaging according to the image brushing configuration and the image brushing position specifically includes:
[0029] Set the fixed refresh number to 2N times;
[0030] When the wavelength configuration command does not need to change the input port ID and / or output port ID of the channel to be adjusted, the previous | ba | Follow the path from gear a to gear b to refresh the map, then 2N- | ba | The images are copied | ba | Second image;
[0031] When the wavelength configuration command needs to change the input port identifier and / or output port identifier of the channel to be adjusted, in the 2N times of image refresh, the first a+b times are refreshed according to the refresh path from gear a to gear 0 and then to gear b, and the images of the next 2N-(a+b) times are copied to the first | ba | The image of the second.
[0032] Preferably, the performing pixel imaging according to the image brushing configuration and the image brushing position further includes:
[0033] According to the image refresh configuration, a refresh path and a refresh number corresponding to each pixel point of the pixel bitmap at the image refresh position are obtained;
[0034] Each pixel point of the pixel bitmap at the image refresh position is displayed with corresponding imaging brightness according to the image refresh path and the number of image refreshes, so as to realize pixel imaging of the pixel bitmap at the image refresh position.
[0035] Preferably, the receiving of the wavelength configuration command and performing protocol conversion and verification on the wavelength configuration command specifically includes:
[0036] Obtaining an input port identifier, an output port identifier, and a command type in the wavelength configuration command;
[0037] Determine whether the inbound port identifier and the outbound port identifier are within a legal identifier interval; if the inbound port identifier and the outbound port identifier are both within the legal identifier interval, then the inbound port identifier and the outbound port identifier are both legal; if the inbound port identifier and / or the outbound port identifier are outside the legal identifier interval, then the inbound port identifier and / or the outbound port identifier are illegal;
[0038] When the command type is to set a first preset channel, determine whether the first preset channel exists, if so, the command type is legal, if not, the first command type is illegal;
[0039] When the command type is to add a second preset channel, determine whether the second preset channel exists, if so, the command type is illegal, if not, the command type is legal;
[0040] When the input port identifier, the output port identifier and the command type are all legal, the wavelength configuration command is legal; when one or more of the input port identifier, the output port identifier and the command type are illegal, the wavelength configuration command is illegal, an alarm is issued to the user, and the system waits to receive the wavelength configuration command again.
[0041] In a second aspect, a map refreshing device based on a WSS wavelength selective switch is provided, comprising at least one processor and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the processor to execute the map refreshing method based on the WSS wavelength selective switch.
[0042] In a third aspect, the present invention further provides a non-volatile computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are executed by one or more processors to complete the method described in the first aspect.
[0043] In a fourth aspect, a chip is provided, comprising: a processor and an interface, for calling and running a computer program stored in the memory from a memory to execute the method of the first aspect.
[0044] According to a fifth aspect, a computer program product comprising instructions is provided. When the instructions are executed on a computer or a processor, the computer or the processor executes the method according to the first aspect.
[0045] In a sixth aspect, a map refreshing system based on a WSS wavelength selective switch is provided, comprising a map refreshing device based on a WSS wavelength selective switch as in the second aspect, and using a map refreshing method based on a WSS wavelength selective switch as in the first aspect.
[0046] The present invention provides a method and device for refreshing a map based on a WSS wavelength selection switch. After receiving a wavelength configuration command, the wavelength configuration command is converted into a protocol and verified to obtain an initial attenuation value of a channel to be adjusted, and a target attenuation value is obtained according to the wavelength configuration command. A refresh configuration is obtained according to the initial attenuation value and the target attenuation value, and then a refresh position on a pixel bitmap is obtained according to relevant parameters in the wavelength configuration command. Pixel imaging is performed according to the refresh configuration and the refresh position to achieve brightness adjustment of corresponding pixel points on the pixel bitmap, change the angle of reflection of an optical signal from the corresponding pixel point, thereby reflecting the optical signal to a designated port on an optical fiber array, and completing the sub-wave switching of the channel to be adjusted. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0048] Figure 1 It is a method flow chart of a method for refreshing a map based on a WSS wavelength selective switch provided by an embodiment of the present invention;
[0049] Figure 2 It is a flow chart of a method for adjusting attenuation value in a method for refreshing a map based on a WSS wavelength selective switch provided by an embodiment of the present invention;
[0050] Figure 3 It is a schematic diagram of attenuation gear adjustment in a method for refreshing a graph based on a WSS wavelength selective switch provided in an embodiment of the present invention;
[0051] Figure 4 It is a method flow chart of a method for obtaining a refresh position in a refresh method based on a WSS wavelength selective switch provided by an embodiment of the present invention;
[0052] Figure 5 It is a method flow chart of a method for refreshing a map in a method for refreshing a map based on a WSS wavelength selective switch provided by an embodiment of the present invention;
[0053] Figure 6 It is a flow chart of a method for adjusting an attenuation value in a method for refreshing a map based on a WSS wavelength selective switch provided by an embodiment of the present invention;
[0054] Figure 7 It is a flow chart of another method for adjusting attenuation value in a method for refreshing a map based on a WSS wavelength selective switch provided by an embodiment of the present invention;
[0055] Figure 8 It is a schematic diagram of a device for refreshing a map based on a WSS wavelength selective switch provided by an embodiment of the present invention;
[0056] Fig. 9 It is a schematic diagram of another image-brushing device based on a WSS wavelength selective switch provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0057] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0058] In the description of the present invention, the terms "inside", "outside", "longitudinal", "lateral", "upper", "lower", "top", "bottom" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings. They are only for the convenience of describing the present invention and do not require that the present invention must be constructed and operated in a specific orientation. Therefore, they should not be understood as limitations on the present invention.
[0059] In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0060] Embodiment 1:
[0061] Embodiment 1 of the present invention provides a method for refreshing a map based on a WSS wavelength selective switch, such as Figure 1 As shown, the method flow includes:
[0062] In step 101, a wavelength configuration command is received, and a protocol conversion and verification are performed on the wavelength configuration command.
[0063] In this embodiment, the wavelength configuration command is sent by the user to a wavelength selective switch (Wavelength Selective Switch, abbreviated as: WSS) through the SPI protocol or the UART serial port side protocol. The wavelength configuration command contains processing information for the corresponding channel in the WSS. The configuration processing of the channel by the wavelength configuration command can be: adding, deleting, modifying or querying the channel.
[0064] When WSS receives the wavelength configuration command, since the wavelength configuration command can be a spi or uart serial port protocol, it is necessary to first perform protocol conversion on the wavelength configuration command. The protocol conversion is to convert the format of the wavelength configuration command into a unified format that can be recognized by WSS, thereby isolating the differences caused by different external configuration protocols, and performing unified protocol parsing within WSS.
[0065] On the other hand, since each wavelength configuration command comes with a corresponding processing command, but the command is not necessarily achievable or reasonable, for example, if a wavelength configuration command needs to add a new channel, the identification number of the newly added channel cannot overlap with the identification number of the channel already established in the WSS. If they overlap, the wavelength configuration command cannot be implemented. Therefore, in this embodiment, after receiving the wavelength configuration command, the wavelength configuration command needs to be verified. The verification is: according to the processing parameters for the channel in the wavelength configuration command, the legality of the wavelength configuration command is judged. When the wavelength configuration command is legal, the wavelength configuration command is processed according to the subsequent steps. When the wavelength configuration command is illegal, the processing of the wavelength configuration command is stopped. The specific judgment process is as follows:
[0066] Obtain an input port identifier, an output port identifier and a command type in the wavelength configuration command; determine whether the input port identifier and the output port identifier are within a legal identifier interval; if the input port identifier and the output port identifier are both within the legal identifier interval, the input port identifier and the output port identifier are both legal; if the input port identifier and / or the output port identifier are outside the legal identifier interval, the input port identifier and / or the output port identifier are illegal; when the command type is to set a first preset channel, determine whether the first preset channel exists; if so, the command type is legal; if not, the first command type is illegal; when the command type is to add a second preset channel, determine whether the second preset channel exists; if so, the command type is illegal; if not, the command type is legal; when the input port identifier, the output port identifier and the command type are all legal, the wavelength configuration command is legal; when one or more of the input port identifier, the output port identifier and the command type are illegal, the wavelength configuration command is illegal, and an alarm reminder is issued to the user at this time, and the wavelength configuration command is waited for to be received again.
[0067] In this embodiment, the wavelength configuration command may include the following parameters: module number, channel number identifier, input port identifier, output port identifier, target attenuation value, start frequency and end frequency.
[0068] In step 102, an initial attenuation value of the channel to be adjusted is obtained, and a target attenuation value is obtained according to the wavelength configuration command.
[0069] The application scenarios of this embodiment are mostly used in WSS, where the optical signal is output to the reflector through the input port of the array optical fiber, the reflector reflects the optical signal once to the diffraction grating, the diffraction grating diffracts the optical signal and focuses it back to the reflector through the lens assembly, the reflector reflects the optical signal twice to the LCoS chip, and by adjusting the brightness of the pixel point at the corresponding position of the pixel bitmap on the LCoS chip, the reflection angle of the pixel point for the optical signal is adjusted, the LCoS chip reflects the optical signal back to the reflector in a specified reflection direction, and the reflector reflects the optical signal three times to the specified output port of the array optical fiber. In this embodiment, the "channel" is the optical signal transmission path from the specified input port to the specified output port on the array optical fiber, the channel to be adjusted is the optical signal transmission path that the user needs to adjust and configure, the initial attenuation value corresponding to the channel to be adjusted is the attenuation value of the pixel point at the corresponding position on the pixel bitmap corresponding to the channel to be adjusted before being adjusted, and the target attenuation value is the attenuation value of the pixel point at the corresponding position on the pixel bitmap corresponding to the channel to be adjusted after being adjusted. In summary, according to the user's requirements for the optical signal transmission channel from the specified input port to the specified output port, the imaging of the pixel bitmap on the LCoS chip can be adjusted, thereby adjusting the brightness of the pixel points at the corresponding positions of the pixel bitmap to achieve the parameters of the optical signal on the specified transmission channel.
[0070] Among them, the wavelength configuration command for adding, deleting and modifying the channel to be adjusted requires changing the attenuation value of the channel corresponding to the wavelength configuration command, and the imaging of the LCoS chip is changed by modulating the attenuation value.
[0071] The following explains the different command types:
[0072] For the add command, the channel to be adjusted refers to the channel that needs to be added. The channel has not been activated before being processed, so the initial attenuation value of the channel to be adjusted is 0, and the target attenuation value is the attenuation value of the channel after being activated set in the wavelength configuration command.
[0073] For the delete command, the channel to be adjusted refers to the channel that needs to be deleted. The channel has been activated before being processed, so the initial attenuation value of the channel to be adjusted is the attenuation value before the channel is processed. After being deleted, the channel is in an unactivated state, so the target attenuation value is 0.
[0074] There are two cases for modification commands; one case does not require adjustment of the input port and / or output port of the channel, in which case only the attenuation value of the channel needs to be adjusted, so the channel to be adjusted refers to the channel that needs to be modified, the initial attenuation value is the attenuation value of the channel before it is modified, and the target attenuation value is the attenuation value of the channel after it is modified. The other case requires adjustment of the input port and / or output port of the channel, in which case the channel to be adjusted is the channel that needs to be modified, the input port and output port of the channel to be adjusted are before modification, the initial attenuation value is the attenuation value of the channel to be adjusted before modification, and the target attenuation value is the attenuation value after modification.
[0075] In step 103, a refresh configuration is obtained according to the initial attenuation value and the target attenuation value.
[0076] In this embodiment, the image refresh configuration refers to the adjustment parameters required to adjust the initial attenuation value of the channel to the target attenuation value, and the imaging changes on the LCoS chip represented by the corresponding adjustment parameters.
[0077] In step 104, the starting frequency, ending frequency, input port identifier and output port identifier are obtained according to the wavelength configuration command, and the refresh position on the pixel bitmap is obtained according to the starting frequency, ending frequency, input port identifier, output port identifier and target attenuation value.
[0078] In this embodiment, in order to set and adjust the optical signal on the channel to be adjusted, it is necessary to obtain the position of the channel to be adjusted on the pixel bitmap, which is the refresh position. In this embodiment, the position is based on the start frequency, end frequency, input port identifier and output port identifier in the wavelength configuration command. The position interval corresponding to the refresh position on the pixel bitmap is obtained, which is usually expressed in the form of row intervals and column intervals on the pixel bitmap. According to the refresh configuration, the refresh path and refresh times corresponding to each pixel point of the pixel bitmap at the refresh position are obtained; each pixel point of the pixel bitmap at the refresh position is displayed with corresponding imaging brightness according to the refresh path and refresh times, so as to realize pixel imaging of the pixel bitmap at the refresh position.
[0079] In step 105, pixel imaging is performed according to the image brushing configuration and the image brushing position to achieve brightness adjustment of corresponding pixel points on the pixel bitmap, change the angle of reflection of the light signal from the corresponding pixel point, thereby reflecting the light signal to the designated port on the optical fiber array, and completing the sub-wave switching of the channel to be adjusted.
[0080] After obtaining the image brushing configuration and the image brushing position, the image is generated according to the image brushing configuration at the position interval corresponding to the image brushing position to obtain the corresponding grayscale image. In this embodiment, the image brushing is the process of generating the final grayscale image and transmitting the generated grayscale image to the LCoS chip.
[0081] In this embodiment, since different attenuation value intervals can be regarded as different gears on the pixel bitmap of the LCoS chip, the adjustment between the attenuation values of different gears requires corresponding pixel refresh, so the refresh configuration includes the gear switching between the initial attenuation value and the target attenuation value and the number of refreshes. Therefore, this embodiment also includes the following designs, such as Figure 2 As shown, the method flow includes:
[0082] In step 201, the attenuation range of the wavelength selective switch is evenly divided into N gears.
[0083] In this embodiment, all attenuation value intervals of the wavelength selective switch are first obtained, and then all attenuation value intervals are equally divided. For example, the attenuation value interval of the wavelength selective switch is 0 to 90, where each 30 is a gear, and it can be divided into 4 gears in total, that is, N is 4. It should be noted that in the optical display, only images of standard gears are displayed, that is, 0, 30, 60, and 90 gears, and values between these gears are classified as adjacent standard gears.
[0084] In step 202, a gear position a corresponding to the initial attenuation value is obtained, and a gear position b corresponding to the target attenuation value is obtained.
[0085] In step 203, it is determined whether the wavelength configuration command needs to change the inlet port identifier and / or the outlet port identifier of the channel to be adjusted.
[0086] In step 204, when the wavelength configuration command does not need to change the input port identifier and / or output port identifier of the channel to be adjusted, the map refresh path in the map refresh configuration is from gear a to gear b, and the number of map refreshes in the map refresh configuration is |ba| times.
[0087] In step 205, when the wavelength configuration command needs to change the input port identifier and / or output port identifier of the channel to be adjusted, the map refresh path in the map refresh configuration is from gear a to gear 0 and then to gear b, and the number of map refreshes in the map refresh configuration is a+b times.
[0088] In this embodiment, when switching the attenuation value, it is necessary to determine whether the current wavelength configuration command needs to change the input port identifier and / or output port identifier of the original channel. There are two situations in total, and the attenuation value switching methods are different in the two situations. When the wavelength configuration command does not need to change the input port identifier and / or output port identifier of the original channel, the attenuation value gear a is directly switched to gear b. At this time, the map refresh path is from gear a to gear b, and the number of map refreshes in the map refresh configuration is |ba| times; when the wavelength configuration command needs to change the input port identifier and / or output port identifier of the original channel, it is necessary to reset the attenuation value of the channel corresponding to the original input port identifier and output port identifier to zero first, that is, first switch the corresponding gear a of the initial attenuation value to gear 0, thereby closing the original channel, and then switch from gear 0 to the corresponding gear b of the target attenuation value, thereby opening the new channel. At this time, the map refresh path is from gear a to gear 0 and then to gear b, and the number of map refreshes in the map refresh configuration is a+b times. Figure 3 As shown in FIG. 1 , it is a schematic diagram of the gear positions of the attenuation value, wherein A0-A5 are gear positions.
[0089] After obtaining the corresponding refresh configuration, it is necessary to find the position that needs to be refreshed in the pixel bitmap according to the wavelength configuration command, and adjust the pixel points that need to be refreshed on the pixel bitmap, so as to complete the conversion of the configuration information to the optical display, and realize the setting or switching of the channel to be adjusted. Therefore, this embodiment involves the following design:
[0090] The image brushing position on the pixel bitmap is obtained according to the starting frequency, the ending frequency, the input port identifier, the output port identifier and the target attenuation value, such as Figure 4 As shown, specifically including:
[0091] In step 301, the column start position in the pixel bitmap is obtained according to the start frequency, the column end position in the pixel bitmap is obtained according to the end frequency, the center frequency is obtained according to the start frequency and the end frequency, and the calibration channel corresponding to the center frequency is obtained.
[0092] In this embodiment, the calculation formula of the center frequency is as follows:
[0093] FC=(Freq_start+Freq_end) / 2;
[0094] Among them, FC is the center frequency, Freq_start is the starting frequency, and Freq_end is the ending frequency.
[0095] After the center frequency is obtained, the calibration channel corresponding to the center frequency is found in the calibration header file, wherein the calibration header file is used to record the channel relationship corresponding to different frequencies.
[0096] In step 302, the boundary position corresponding to each user-defined module is obtained according to the input port identifier, the output port identifier and the calibration channel.
[0097] In this embodiment, the input port identifier, the output port identifier and the calibration channel are integrated as the first combination keyword to be searched in the calibration attenuation table to obtain the ib value in the pixel bitmap (i.e., the boundary position corresponding to each user-defined module); in order to ensure the flexibility and customization of the image, a separate module is usually not used to image the complete image, which makes it difficult to adjust and customize the position of a partial area of the image, and the flexibility is poor. Therefore, when actually performing pixel imaging, the user usually uses multiple modules to image different partial areas in the complete image. When a partial area in the image needs to be customized, it is only necessary to adjust the module corresponding to the area, which has better flexibility; the user-defined module is a module for molding different areas in the same complete image; in this embodiment, there are at least two user-defined modules.
[0098] In this embodiment, when the number of input ports is 2, the subsequently generated image will be divided into two parts, one part of the image corresponds to the single module, and the other part of the image corresponds to the twin module. The ib value is the dividing line between the two partial images. The image range corresponding to the single module is in the positive interval of the ib value, and the image range corresponding to the twin module is in the negative interval of the ib value.
[0099] The calibration attenuation table is used to look up the table according to the input attenuation value to obtain the position of the boundary line between the two modules.
[0100] In step 303, the row interval in the pixel bitmap is obtained according to the boundary position, input port identifier, output port identifier and calibration channel corresponding to each user-defined module.
[0101] In this embodiment, the boundary position, input port identifier, output port identifier and row interval in the pixel bitmap corresponding to each user-defined module are integrated as a second combination keyword, and the second combination keyword is searched in the calibration switch table to obtain the row interval in the pixel bitmap. The calibration switch table is used to record the pixel values corresponding to different channels.
[0102] In step 304, the interval range obtained by integrating the column start position, column end position and row interval in the pixel bitmap is used as the image refresh position.
[0103] In this embodiment, when the attenuation value of the channel is actually switched by refreshing the map, in order to be compatible with the gear switching of the attenuation value in all cases, a fixed number of refreshes is set, and the fixed number of refreshes can be compatible with the number of refreshes in all cases; for example, the attenuation interval of the wavelength selection switch is evenly divided into N gears, then the maximum number of refreshes in the refresh configuration is 2N, this is because when the required initial attenuation value and the target attenuation value in the wavelength configuration command are both N gears, and the input port identifier and / or the output port identifier need to be changed, at this time, the initial attenuation value gear N needs to be switched to the attenuation value 0, and then switched from the attenuation value 0 to the target attenuation value gear N, the total number of refreshes is 2N, this number of refreshes is also the maximum number of refreshes in all cases, the number of refreshes in other cases will only be less than or equal to 2N, so the fixed number of refreshes is set to 2N, when the actual number of refreshes required is less than 2N, the remaining number of refreshes repeats the search process, for example, the actual number of refreshes required is M, then the actual effective M refreshes are performed first, and the remaining 2N-M repeats the search process. However, the problem is that the image presented by the remaining repeated search process is unchanged, so the relevant calculations of the repeated search process are unnecessary, which wastes performance and slows down the speed. Therefore, this embodiment also involves the following designs:
[0104] The pixel imaging is performed according to the image brushing configuration and the image brushing position, such as Figure 5 As shown, the method flow includes:
[0105] In step 401, the fixed number of image refreshes is set to 2N times.
[0106] In step 402, when the wavelength configuration command does not need to change the input port identifier and / or output port identifier of the channel to be adjusted, in the 2N times of refreshing the map, the previous | ba | Follow the path from gear a to gear b to refresh the map, then 2N- | ba | The images are copied | ba | The image of the second.
[0107] In this embodiment, when the wavelength configuration command does not need to change the input port identifier and / or output port identifier of the channel to be adjusted, the first | ba | The image of the refresh is copied to the next 2N- | ba | In the image of the next 2N- | ba | There is no need to perform invalid searches and calculations each time the map is refreshed.
[0108] In step 403, when the wavelength configuration command needs to change the input port identifier and / or output port identifier of the channel to be adjusted, in the 2N times of image refreshing, the first a+b times are refreshed according to the refresh path from gear a to gear 0 and then to gear b, and the images of the next 2N-(a+b) times are copied to the first | ba | The image of the second.
[0109] In this embodiment, when the wavelength configuration command does not need to change the input port identifier and / or output port identifier of the channel to be adjusted, the image of the a+bth refresh is directly copied to the image of the next 2N-(a+b) times, so that the next 2N-(a+b) times of refreshing the image do not need to perform invalid searches and calculations.
[0110] This embodiment also provides a specific example. In a scenario with 500 wavelength channels, the fixed number of refreshes is set to 12, and the actual number of refreshes required is 3. If the next 9 times use conventional search calculations, the total time required is 1.2 seconds. If the next 9 times of refreshing the image all copy the image of the third refresh, the total time required is 0.8 seconds.
[0111] Furthermore, this embodiment provides two actual image refresh method flows. One is when the wavelength configuration command does not need to change the input port identifier and / or output port identifier of the channel to be adjusted: Figure 6 As shown, each time the attenuation value is switched, it is determined whether the currently switched gear is the gear where the target attenuation value is located. If so, the image of this refresh is copied to all subsequent refresh times. If not, the attenuation value continues to be switched to the next gear until it is switched to the gear where the target attenuation value is located. Another case is when the wavelength configuration command needs to change the input port identifier and / or output port identifier of the channel to be adjusted, such as Figure 7 As shown, the initial attenuation value is directly set to attenuation value gear 0, and then switched from gear 0 to gear n one by one. Each time the attenuation value is switched, it is determined whether the currently switched gear is the gear where the target attenuation value is located. If so, the image of this refresh is copied to all subsequent refresh times. If not, the attenuation value continues to be switched to the next gear until it is switched to the gear where the target attenuation value is located.
[0112] Embodiment 2:
[0113] This embodiment provides a map brushing device based on WSS wavelength selective switch on the basis of embodiment 1. Figure 8 As shown, it includes: an adaptation module, a message distribution module, a verification module and a refresh algorithm module, and the adaptation module, the message distribution module, the verification module and the refresh algorithm module are connected in sequence, wherein:
[0114] The adapter module is used to receive wavelength configuration commands sent by the user, and the adapter module can support two peripheral communication modes, SPI protocol and serial port protocol, respectively, for different communication modes of the host computer, and convert the received wavelength configuration commands into a unified format that can be recognized internally.
[0115] The message distribution module is used to receive the wavelength configuration command after the protocol conversion from the adaptation module. The wavelength configuration command carries a CmdType field, which is used to indicate the processing operation type corresponding to the wavelength configuration command. According to the processing operation type of the wavelength configuration command, the wavelength configuration command is distributed to the corresponding module in the inspection module for inspection processing.
[0116] The inspection module includes: an adding unit, a setting unit, a deleting unit and a querying unit, and the above modules are used to inspect the legality of the wavelength configuration command when executing the corresponding operation process.
[0117] The following table is used to introduce the various fields in the wavelength configuration command in this embodiment and the corresponding meanings of the various fields:
[0118]
[0119]
[0120] The rules for judging the legitimacy of adding units are as follows:
[0121] 1. The input port identifier and output port identifier in the wavelength configuration command must be within the maximum range specified in the calibration header file. If the range is exceeded, an error is returned.
[0122] 2. The channel number identifier of the channel added by the add operation cannot overlap with the channel number identifier of the previously established channel. If it overlaps, an error is returned.
[0123] 3. The starting frequency or ending frequency of the channel added by the operation cannot conflict with the starting frequency or ending frequency of the established channel. If there is a conflict, an error is returned.
[0124] The validity judgment rules of the setting unit are:
[0125] 1. The input port identifier and output port identifier required to be set in the wavelength configuration command must be within the maximum range specified in the calibration header file. If the range is exceeded, an error is returned.
[0126] 2. The channel number identifier of the channel adjusted by the setting operation cannot overlap with the channel number identifier of the previously established channel. If they overlap, an error is returned.
[0127] 3. The start frequency or end frequency of the channel adjusted by the setting operation cannot conflict with the start frequency or end frequency of the established channel. If there is a conflict, an error is returned.
[0128] After the inspection module inspects and determines that the corresponding wavelength configuration command is legal, the wavelength configuration command is sent to the image refresh algorithm module, and the image refresh algorithm module performs corresponding processing according to the method described in Example 1, which will not be elaborated here.
[0129] After the refresh algorithm module calculates the refresh configuration and refresh position corresponding to the wavelength configuration command, it sends them to the storage module for storage. The host reads the refresh configuration and refresh position in the storage module and transmits them to the LCoS chip for processing to complete the refresh process of the wavelength selection switch.
[0130] Embodiment 3:
[0131] like Fig. 9 , which is a schematic diagram of a device for refreshing a map based on a WSS wavelength selective switch according to an embodiment of the present invention. The device for refreshing a map based on a WSS wavelength selective switch according to this embodiment includes one or more processors 41 and a memory 42 .
[0132] The processor 41 and the memory 42 may be connected via a bus or other means. Fig. 9 The example of connecting through bus is taken in the following.
[0133] The memory 42 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs and non-volatile computer executable programs, such as the WSS wavelength selective switch-based image refreshing method in the above-mentioned embodiment. The processor 41 executes the WSS wavelength selective switch-based image refreshing method by running the non-volatile software programs and instructions stored in the memory 42.
[0134] The memory 42 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some embodiments, the memory 42 may optionally include a memory remotely arranged relative to the processor 41, and these remote memories may be connected to the processor 41 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0135] The program instructions / modules are stored in the memory 42, and when executed by the one or more processors 41, the method for refreshing the image based on the WSS wavelength selective switch in the above embodiment is executed, for example, the method described above is executed. Figure 1-Figure 8 The steps shown.
[0136] An embodiment of the present invention further provides a computer storage medium on which computer program instructions are stored; when the computer program instructions are executed by a processor, the image refreshing method based on the WSS wavelength selective switch provided in the embodiment of the present invention is implemented.
[0137] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for refreshing a map based on a WSS wavelength selective switch, characterized in that: include: receiving a wavelength configuration command, and performing protocol conversion and verification on the wavelength configuration command; Obtaining an initial attenuation value of the channel to be adjusted, and obtaining a target attenuation value according to the wavelength configuration command; Obtaining a refresh map configuration according to the initial attenuation value and the target attenuation value; Acquire a starting frequency, an ending frequency, an input port identifier, and an output port identifier according to the wavelength configuration command, and acquire a refresh position on a pixel bitmap according to the starting frequency, the ending frequency, the input port identifier, the output port identifier, and the target attenuation value; Pixel imaging is performed according to the image brushing configuration and the image brushing position to achieve brightness adjustment of corresponding pixel points on the pixel bitmap, change the angle of reflection of the light signal from the corresponding pixel point, thereby reflecting the light signal to the designated port on the optical fiber array, and completing the sub-wave switching of the channel to be adjusted.
2. The method for refreshing a map based on a WSS wavelength selective switch according to claim 1, characterized in that: The obtaining of the map refresh configuration according to the initial attenuation value and the target attenuation value specifically includes: The attenuation range of the wavelength selective switch is evenly divided into N gears; Obtaining a corresponding gear position a of the initial attenuation value, and obtaining a corresponding gear position b of the target attenuation value; Determine whether the wavelength configuration command needs to change the input port identifier and / or output port identifier of the channel to be adjusted; When the wavelength configuration command does not need to change the input port identifier and / or output port identifier of the channel to be adjusted, the refresh path in the refresh configuration is from gear a to gear b, and the number of refreshes in the refresh configuration is ba. | Second-rate; When the wavelength configuration command needs to change the input port identifier and / or output port identifier of the channel to be adjusted, the map refresh path in the map refresh configuration is from gear a to gear 0 and then to gear b, and the number of map refreshes in the map refresh configuration is a+b times.
3. The method for refreshing a map based on a WSS wavelength selective switch according to claim 1, characterized in that: The step of obtaining a refresh position on a pixel bitmap according to the start frequency, the end frequency, the input port identifier, the output port identifier and the target attenuation value specifically includes: Acquire the column start position in the pixel bitmap according to the start frequency, acquire the column end position in the pixel bitmap according to the end frequency, acquire the center frequency point according to the start frequency and the end frequency, and acquire the calibration channel corresponding to the center frequency point; Acquire the boundary position corresponding to each user-defined module according to the input port identifier, the output port identifier and the calibration channel; Acquire a row interval in a pixel bitmap according to the boundary position, input port identifier, output port identifier and calibration channel corresponding to each user-defined module; The interval range obtained by integrating the column start position, column end position and row interval in the pixel bitmap is used as the image refresh position.
4. The method for refreshing a map based on a WSS wavelength selective switch according to claim 3, characterized in that: The obtaining the boundary position corresponding to each user-defined module according to the input port identifier, the output port identifier and the calibration channel specifically includes: The input port identifier, the output port identifier and the calibration channel are integrated as a first combination keyword to be searched in a calibration attenuation table to obtain the boundary positions between the user-defined modules.
5. The method for refreshing a map based on a WSS wavelength selective switch according to claim 3, characterized in that: The acquiring of the row interval in the pixel bitmap according to the boundary position, input port identifier, output port identifier and calibration channel corresponding to each user-defined module specifically includes: The boundary position, input port identifier, output port identifier and row interval in the pixel bitmap corresponding to each user-defined module are integrated as a second combination keyword, and the second combination keyword is searched in the calibration switch table to obtain the row interval in the pixel bitmap.
6. The method for refreshing a map based on a WSS wavelength selective switch according to claim 2, characterized in that: The performing pixel imaging according to the image brushing configuration and the image brushing position specifically includes: Set the fixed refresh number to 2N times; When the wavelength configuration command does not need to change the input port ID and / or output port ID of the channel to be adjusted, the previous | ba | Follow the path from gear a to gear b to refresh the map, then 2N- | ba | The images are copied | ba | Second image; When the wavelength configuration command needs to change the input port identifier and / or output port identifier of the channel to be adjusted, in the 2N times of image refresh, the first a+b times are refreshed according to the refresh path from gear a to gear 0 and then to gear b, and the images of the next 2N-(a+b) times are copied to the first | ba | The image of the second.
7. The method for refreshing a map based on a WSS wavelength selective switch according to claim 6, characterized in that: The performing pixel imaging according to the image brushing configuration and the image brushing position also includes: According to the image refresh configuration, a refresh path and a refresh number corresponding to each pixel point of the pixel bitmap at the image refresh position are obtained; Each pixel point of the pixel bitmap at the image refresh position is displayed with corresponding imaging brightness according to the image refresh path and the number of image refreshes, so as to realize pixel imaging of the pixel bitmap at the image refresh position.
8. The method for refreshing a map based on a WSS wavelength selective switch according to claim 1, characterized in that: The receiving of the wavelength configuration command and performing protocol conversion and verification on the wavelength configuration command specifically includes: Obtaining an input port identifier, an output port identifier, and a command type in the wavelength configuration command; Determine whether the inbound port identifier and the outbound port identifier are within a legal identifier interval; if the inbound port identifier and the outbound port identifier are both within the legal identifier interval, then the inbound port identifier and the outbound port identifier are both legal; if the inbound port identifier and / or the outbound port identifier are outside the legal identifier interval, then the inbound port identifier and / or the outbound port identifier are illegal; When the command type is to set a first preset channel, determine whether the first preset channel exists, if so, the command type is legal, if not, the first command type is illegal; When the command type is to add a second preset channel, determine whether the second preset channel exists, if so, the command type is illegal, if not, the command type is legal; When the input port identifier, the output port identifier and the command type are all legal, the wavelength configuration command is legal; when one or more of the input port identifier, the output port identifier and the command type are illegal, the wavelength configuration command is illegal, an alarm is issued to the user, and the system waits to receive the wavelength configuration command again.
9. A map refresh device based on WSS wavelength selective switch, characterized in that: It includes at least one processor and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the processor to execute the map brushing method based on the WSS wavelength selection switch according to any one of claims 1-8.
10. A non-volatile computer storage medium, characterized in that: The computer storage medium stores computer program instructions, which, when executed by one or more processors, implement the WSS wavelength selective switch-based image refresh method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Wavelength selection method and device
CN114153033A
Optical switching method and device, liquid crystal on silicon and wavelength selective switch
CN114355514A
Optical switching method and device
CN114615569A
Crosstalk suppression method of wavelength selective switch and wavelength selective switch
CN116360177A
Optical communication system and wavelength selective switch
JP2014228646A