A brush drawing method and device based on a WSS wavelength selective switch

By receiving and verifying wavelength configuration commands, obtaining initial and target attenuation values, and adjusting pixel bitmap brightness, the problem in the prior art that wavelength selection switches cannot switch designated port channels according to user commands is solved, and efficient pixel bitmap imaging and optical signal switching are achieved.

CN119853846BActive Publication Date: 2025-10-17ACCELINK TECHNOLOGIES CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510003645.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-02
Publication Date
2025-10-17
Estimated Expiration
2045-01-02

AI Technical Summary

Technical Problem

Existing wavelength selective switches lack effective methods for adjusting the pixel bitmap imaging process on the LCoS chip and are unable to implement sub-wavelength switching of designated port channels according to user configuration commands.

Method used

A refresh method based on a WSS wavelength selective switch is provided. By receiving wavelength configuration commands, performing protocol conversion and verification, obtaining initial and target attenuation values, determining the refresh configuration and position, and adjusting the brightness on the pixel bitmap to change the optical signal reflection angle, the optical signal is switched at the specified port of the fiber array.

Benefits of technology

The pixel bitmap imaging on the LCoS chip is efficiently adjusted according to user configuration commands, completing the sub-wavelength switching of the specified port channel, and improving the flexibility and configurability of the wavelength selective switch.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119853846B_ABST
    Figure CN119853846B_ABST
Patent Text Reader

Abstract

The application provides a brush drawing method and device based on a WSS wavelength selection switch. After receiving a wavelength configuration command, the wavelength configuration command is protocol-converted and checked, an initial attenuation value of a to-be-adjusted channel is obtained, a target attenuation value is obtained according to the wavelength configuration command, a brush drawing configuration is obtained according to the initial attenuation value and the target attenuation value, a brush drawing position on a pixel bitmap is obtained according to related parameters in the wavelength configuration command, pixel imaging is performed according to the brush drawing configuration and the brush drawing position, the brightness of corresponding pixel points on the pixel bitmap is adjusted, the angle of reflection of an optical signal from the corresponding pixel points is changed, the optical signal is reflected to a specified port on a fiber array, and sub-wave switching of the to-be-adjusted channel is completed.
Need to check novelty before this filing date? Find Prior Art

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 switches (WSS), as the core optical modules of ROADM optical transmission equipment, have received great attention in the optical communications field.

[0003] In the process of 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, existing wavelength selective switches need 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 pixels of different brightness will reflect the received light signal at different angles to the designated output port, realizing sub-wavelength switching of the designated port channel. However, there is currently no relatively good method or process to adjust the imaging of the pixel bitmap on the LCoS chip according to user configuration commands.

[0004] In view of this, overcoming the defects of the prior art is an urgent problem to be solved in this technical field. 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 user's configuration command, thereby realizing the wavelet switching of the designated port channel.

[0006] The present invention adopts the following technical solutions:

[0007] In a first aspect, a method for refreshing a graph based on a WSS wavelength selective switch is provided, comprising:

[0008] receiving a wavelength configuration command, 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 configuration according to the initial attenuation value and the target attenuation value;

[0011] According to the wavelength configuration command, a starting frequency, an ending frequency, an in-port identifier and an out-port identifier are acquired, and according to the starting frequency, the ending frequency, the in-port identifier, the out-port identifier and a target attenuation value, a brush drawing position on a pixel bitmap is acquired;

[0012] According to the brush drawing configuration and the brush drawing position, pixel imaging is performed, the brightness of corresponding pixel points on the pixel bitmap is adjusted, the angle of reflection of the optical signal from the corresponding pixel points is changed, the optical signal is reflected to a specified port on the fiber array, and the sub-wave switching of the to-be-adjusted channel is completed.

[0013] Preferably, the brush drawing configuration is obtained according to the initial attenuation value and the target attenuation value, and specifically includes:

[0014] The attenuation range of the wavelength selection switch is evenly divided into N positions;

[0015] The corresponding position a of the initial attenuation value is acquired, and the corresponding position b of the target attenuation value is acquired;

[0016] It is judged whether the wavelength configuration command needs to change the in-port identifier and / or the out-port identifier of the to-be-adjusted channel;

[0017] When the wavelength configuration command does not need to change the in-port identifier and / or the out-port identifier of the to-be-adjusted channel, the brush drawing path in the brush drawing configuration is from position a to position b, and the brush drawing times in the brush drawing configuration is a+b times.

[0018] When the wavelength configuration command needs to change the in-port identifier and / or the out-port identifier of the to-be-adjusted channel, the brush drawing path in the brush drawing configuration is from position a to position 0 and then to position b, and the brush drawing times in the brush drawing configuration is a+b times.

[0019] Preferably, the brush drawing position on the pixel bitmap is acquired according to the starting frequency, the ending frequency, the in-port identifier, the out-port identifier and the target attenuation value, and specifically includes:

[0020] According to the starting frequency, a column starting position in the pixel bitmap is acquired, according to the ending frequency, a column ending position in the pixel bitmap is acquired, according to the starting frequency and the ending frequency, a center frequency point is acquired, and a demarcation channel corresponding to the center frequency point is acquired.

[0021] According to the in-port identifier, the out-port identifier and the demarcation channel, a demarcation position corresponding to each user-defined module is acquired.

[0022] According to the demarcation position corresponding to each user-defined module, the in-port identifier, the out-port identifier and the demarcation channel, a row interval in the pixel bitmap is acquired.

[0023] ​The interval range obtained by integrating the column start position, the column end position and the row interval in the pixel bitmap is taken as the brush drawing position.

[0024] Preferably, the demarcation position corresponding to each user-defined module is obtained according to the input port identifier, the output port identifier and the calibration channel, and specifically includes:

[0025] The input port identifier, the output port identifier and the calibration channel are integrated as a first combined keyword to search in a calibration attenuation table to obtain the demarcation position between each user-defined module.

[0026] Preferably, the row interval in the pixel bitmap is obtained according to the demarcation position corresponding to each user-defined module, the input port identifier, the output port identifier and the calibration channel, and specifically includes:

[0027] The demarcation position corresponding to each user-defined module, the input port identifier, the output port identifier and the row interval in the pixel bitmap are integrated as a second combined keyword, and the second combined keyword is searched in a calibration switch table to obtain the row interval in the pixel bitmap.

[0028] Preferably, the pixel imaging is performed according to the brush drawing configuration and the brush drawing position, and specifically includes:

[0029] The fixed brush drawing number is set to 2N times;

[0030] When the wavelength configuration command does not need to change the input port identifier and / or the output port identifier for the channel to be adjusted, in the 2N times of brush drawing, the first a times of brush drawing are performed according to the brush drawing path from gear a to gear b, and the images of the last 2N-(a+b) times are all copied from the image of the first a+b times.

[0031] When the wavelength configuration command needs to change the input port identifier and / or the output port identifier for the channel to be adjusted, in the 2N times of brush drawing, the first a+b times of brush drawing are performed according to the brush drawing path from gear a to gear 0 and then to gear b, and the images of the last 2N-(a+b) times are all copied from the image of the first a+b times.

[0032] Preferably, the pixel imaging is performed according to the brush drawing configuration and the brush drawing position, and specifically includes:

[0033] The brush drawing path and the brush drawing number corresponding to each pixel point of the pixel bitmap at the brush drawing position are obtained according to the brush drawing configuration;

[0034] Each pixel point of the pixel bitmap at the brush drawing position is displayed with corresponding imaging brightness according to the brush drawing path and the brush drawing number, to realize the pixel imaging of the pixel bitmap at the brush drawing position.​​​​

[0035] Preferably, the receiving wavelength configuration command, protocol conversion and verification of the wavelength configuration command, specifically comprising:

[0036] Obtaining the ingress port identifier, egress port identifier and command type in the wavelength configuration command;

[0037] Judging whether the ingress port identifier and egress port identifier are located in a legal identifier interval, if the ingress port identifier and egress port identifier are located in the legal identifier interval, the ingress port identifier and egress port identifier are both legal, if the ingress port identifier and / or egress port identifier are located outside the legal identifier interval, the ingress port identifier and / or egress port identifier are not legal;

[0038] When the command type is to set the first preset channel, judging whether the first preset channel exists, if yes, the command type is legal, if no, the command type is not legal;

[0039] When the command type is to add the second preset channel, judging whether the second preset channel exists, if yes, the command type is not legal, if no, the command type is legal;

[0040] When the ingress port identifier, egress port identifier and command type are all legal, the wavelength configuration command is legal, when one or more of the ingress port identifier, egress port identifier and command type are not legal, the wavelength configuration command is not legal, issuing an alarm reminder to the user, and waiting to receive the wavelength configuration command again.

[0041] The second aspect provides a picture brushing device based on a WSS wavelength selective switch, comprising at least one processor, and a memory in communication connection with the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions are executed by the processor, and are used for executing the picture brushing method based on the WSS wavelength selective switch.

[0042] The third aspect provides a non-volatile computer storage medium, the computer storage medium stores computer executable instructions, the computer executable instructions are executed by one or more processors, and are used for completing the method in the first aspect.

[0043] The fourth aspect provides a chip, comprising: a processor and an interface, used for calling and running a computer program stored in a memory, and executing the method in the first aspect.

[0044] In a fifth aspect, a computer program product comprising instructions which, when executed on a computer or processor, cause the computer or processor to carry out the method of the first aspect is provided.

[0045] In a sixth aspect, a picture brushing system based on a WSS wavelength selective switch is provided, comprising a picture brushing device based on a WSS wavelength selective switch as in the second aspect, and using a picture brushing method based on a WSS wavelength selective switch as in the first aspect.

[0046] The present application provides a picture brushing method and device based on a WSS wavelength selective switch. After receiving a wavelength configuration command, the wavelength configuration command is protocol-converted and checked, the initial attenuation value of the channel to be adjusted is obtained, the target attenuation value is obtained according to the wavelength configuration command, the picture brushing configuration is obtained according to the initial attenuation value and the target attenuation value, the picture brushing position on the pixel bitmap is obtained according to the related parameters in the wavelength configuration command, the pixel imaging is performed according to the picture brushing configuration and the picture brushing position, the brightness of the corresponding pixel point on the pixel bitmap is adjusted, the angle of the light signal reflected from the corresponding pixel point is changed, and thus the light signal is reflected to the specified port of the fiber array, and the sub-wave switching of the channel to be adjusted is completed. BRIEF DESCRIPTION OF DRAWINGS

[0047] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments of the present application. Obviously, the drawings described below are only some embodiments of the present application, and other drawings can also be obtained according to these drawings without creative labor for those skilled in the art.

[0048] Figure 1 is a method flow chart of a picture brushing method based on a WSS wavelength selective switch provided by the embodiments of the present application;

[0049] Figure 2 is a method flow chart of attenuation value adjustment in a picture brushing method based on a WSS wavelength selective switch provided by the embodiments of the present application;

[0050] Figure 3 is a schematic diagram of attenuation gear adjustment in a picture brushing method based on a WSS wavelength selective switch provided by the embodiments of the present application;

[0051] Figure 4 is a method flow chart of a picture brushing position obtaining method in a picture brushing method based on a WSS wavelength selective switch provided by the embodiments of the present application;

[0052] Figure 5 is a method flow chart of a picture brushing method in a picture brushing method based on a WSS wavelength selective switch provided by the embodiments of the present application;

[0053] Figure 6 is one of the attenuation value adjustment methods in the brush drawing method based on the WSS wavelength selective switch provided by the embodiment of the application, and a flow chart of the method is shown in the figure;

[0054] Figure 7 is another attenuation value adjustment method in the brush drawing method based on the WSS wavelength selective switch provided by the embodiment of the application, and a flow chart of the method is shown in the figure;

[0055] Figure 8 is a device schematic diagram of the brush drawing device based on the WSS wavelength selective switch provided by the embodiment of the application, and a flow chart of the method is shown in the figure;

[0056] Figure 9 is another device schematic diagram of the brush drawing device based on the WSS wavelength selective switch provided by the embodiment of the application, and a flow chart of the method is shown in the figure. DETAILED DESCRIPTION

[0057] In order to make the objects, technical solutions and advantages of the present application clearer, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and do not limit the present application.

[0058] In the description of the present application, the terms "in", "out", "longitudinal", "transverse", "up", "down", "top", "bottom" and the like indicate the orientation or positional relationship shown in the drawings, and are only used to facilitate the description of the present application and do not require the present application to be constructed and operated in a particular orientation, therefore should not be understood as a limitation on the present application.

[0059] In addition, the technical features involved in each embodiment of the present application described below can be combined with each other as long as there is no conflict.

[0060] Embodiment 1:

[0061] Embodiment 1 of the present application provides a brush drawing method based on a WSS wavelength selective switch, as shown in the figure, the method flow includes: Figure 1

[0062] In step 101, a wavelength configuration command is received, and the wavelength configuration command is protocol converted and verified.

[0063] In this embodiment, the wavelength configuration command is sent to the wavelength selective switch (Wavelength Selective Switch, abbreviated as: WSS) by the user 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, and the wavelength configuration command for channel configuration processing can be: adding, deleting, modifying or querying the channel.​

[0064] When the WSS receives the wavelength configuration command, since the wavelength configuration command can be a spi or uart serial port protocol, first, the wavelength configuration command needs to be protocol converted, that is, the format of the wavelength configuration command is converted into a uniform format that can be recognized by the WSS internally, so as to isolate the differences brought by different configuration protocols externally, and thus unified protocol analysis is performed internally in the WSS.

[0065] On the other hand, since each wavelength configuration command has a corresponding processing command, but the command can not be implemented or reasonable, for example, a certain wavelength configuration command needs to add a new channel, and the identification number of the new added channel cannot coincide with the identification number of the channel already established in the WSS, if it coincides, the wavelength configuration command cannot be implemented, therefore, in this embodiment, after receiving the wavelength configuration command, the wavelength configuration command needs to be checked, that is, according to the processing parameters of 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 not legal, the processing of the wavelength configuration command is stopped, and the specific judgment process is as follows:

[0066] The ingress port identifier, the egress port identifier and the command type in the wavelength configuration command are obtained; it is judged whether the ingress port identifier and the egress port identifier are located in a legal identifier interval, if the ingress port identifier and the egress port identifier are both located in the legal identifier interval, the ingress port identifier and the egress port identifier are both legal, if the ingress port identifier and / or the egress port identifier is located outside the legal identifier interval, the ingress port identifier and / or the egress port identifier is not legal; when the command type is to set a first preset channel, it is judged whether the first preset channel exists, if it exists, the command type is legal, if it does not exist, the command type is not legal; when the command type is to add a second preset channel, it is judged whether the second preset channel exists, if it exists, the command type is not legal, if it does not exist, the command type is legal; when the ingress port identifier, the egress port identifier and the command type are all legal, the wavelength configuration command is legal, when one or more of the ingress port identifier, the egress port identifier and the command type is not legal, the wavelength configuration command is not legal, at this time, an alarm reminder is issued to the user, and the wavelength configuration command is re-received.

[0067] In this embodiment, the wavelength configuration command can include the following parameters: module number, channel number identifier, ingress port identifier, egress port identifier, target attenuation value, start frequency and end frequency.

[0068] In step 102, the initial attenuation value of the channel to be adjusted is obtained, and the target attenuation value is obtained according to the wavelength configuration command.

[0069] The application scenario of the embodiment is mainly used in WSS. The input port of the arrayed fiber outputs the optical signal to the mirror. The mirror reflects the optical signal to the diffraction grating once. The diffraction grating diffracts the optical signal and focuses it back to the mirror through the lens assembly. The mirror reflects the optical signal to the LCoS chip twice. By adjusting the brightness of the pixel points at the corresponding positions of the pixel bitmap on the LCoS chip, the reflection angle of the pixel points to the optical signal is adjusted. The LCoS chip reflects the optical signal back to the mirror in the specified reflection direction. The mirror reflects the optical signal to the specified output port of the arrayed fiber three times. In the embodiment, the "channel" is the optical signal transmission path from the specified input port to the specified output port on the arrayed fiber. The channel to be adjusted is the optical signal transmission path that needs to be adjusted and configured by the user. The initial attenuation value corresponding to the channel to be adjusted is the attenuation value of the pixel points at the corresponding positions of the pixel bitmap before the channel to be adjusted is adjusted. The target attenuation value is the attenuation value of the pixel points at the corresponding positions of the pixel bitmap after the channel to be adjusted is adjusted. As can be seen from the above, according to the demand of the user 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, so as to adjust the brightness of the pixel points at the corresponding positions of the pixel bitmap, so as to realize the parameter of the optical signal in the specified transmission channel.

[0070] The increase, deletion and modification of the wavelength configuration command to the channel to be adjusted need to change the attenuation value of the channel corresponding to the wavelength configuration command. The imaging of the LCoS chip is changed by modulating the attenuation value.

[0071] The following explains different command types:

[0072] For the increase command, the channel to be adjusted refers to the channel that needs to be added. This 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, which is 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. This channel has been activated before being processed, so the initial attenuation value of the channel to be adjusted is the attenuation value of the channel before being processed. After being deleted, the channel is in an unactivated state, so the target attenuation value is 0.

[0074] There are two situations for modification commands. In one situation, there is no need to adjust the input port and / or output port of the channel. In this case, only the attenuation value of the channel needs to be adjusted. Therefore, 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 modification, and the target attenuation value is the attenuation value of the channel after modification. In the other situation, the input port and / or output port of the channel needs to be adjusted. In this case, the channel to be adjusted refers to 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 caused 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, 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. This position is the refresh position. In this embodiment, this position is based on the start frequency, end frequency, input port identifier, and output port identifier in the wavelength configuration command. A table lookup operation is performed to obtain the position interval corresponding to the refresh position on the pixel bitmap, which is usually expressed as a row interval and a column interval on the pixel bitmap. According to the refresh configuration, the refresh path and refresh count 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 the corresponding imaging brightness according to the refresh path and refresh count, thereby realizing 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 adjust the brightness of the corresponding pixel points on the pixel bitmap, change the angle of reflection of the light signal from the corresponding pixel point, and thus reflect the light signal to the specified port on the optical fiber array, completing the sub-wave switching of the channel to be adjusted.

[0080] After the brush image configuration and the brush image position are acquired, an image is generated on the position interval corresponding to the brush image position according to the brush image configuration, and a corresponding gray-scale image is obtained. In this embodiment, the brush image is the process of generating the final gray-scale image and transmitting the generated gray-scale image to the LCoS chip.

[0081] In this embodiment, different attenuation value intervals on the pixel bitmap of the LCoS chip can be regarded as different gears, and the adjustment between attenuation values of different gears needs to be performed by corresponding pixel refreshing. Therefore, the brush image configuration includes gear switching between the initial attenuation value and the target attenuation value and the refreshing times, and this embodiment further includes the following design, as shown in the following table. Figure 2 The method flow includes the following steps.

[0082] In step 201, the attenuation interval of the wavelength selection switch is evenly divided into N gears.

[0083] In this embodiment, the entire attenuation value interval of the wavelength selection switch is acquired first, and then the entire attenuation value interval is equally divided. For example, the attenuation value interval of the wavelength selection switch is 0 to 90, and each 30 is a gear. Therefore, there are 4 gears in total, and N is 4. It should be noted that in optical display, only the images of the standard gears are displayed, that is, the gears of 0, 30, 60, and 90. The values between these gears are all attributed to the adjacent standard gears.

[0084] In step 202, the corresponding gear a of the initial attenuation value is acquired, and the corresponding gear b of the target attenuation value is acquired.

[0085] In step 203, it is determined whether the wavelength configuration command needs to change the in-port identifier and / or the out-port identifier of the channel to be adjusted.

[0086] In step 204, when the wavelength configuration command does not need to change the in-port identifier and / or the out-port identifier of the channel to be adjusted, the brush image path in the brush image configuration is from gear a to gear b, and the brush image times in the brush image configuration are a+b times.

[0087] In step 205, when the wavelength configuration command needs to change the in-port identifier and / or the out-port identifier of the channel to be adjusted, the brush image path in the brush image configuration is from gear a to gear 0 and then to gear b, and the brush image times in the brush image configuration are a+b times.

[0088] ​In this embodiment, when the attenuation value is switched, it is needed to judge whether the current wavelength configuration command needs to change the original channel's in-port identifier and / or out-port identifier. There are two cases, and the switching mode of the attenuation value is different in the two cases. When the wavelength configuration command does not need to change the original channel's in-port identifier and / or out-port identifier, the attenuation value gear a is directly switched to gear b, at this time, the brush drawing path is from gear a to gear b, and the brush drawing times in the brush drawing configuration is When the wavelength configuration command needs to change the original channel's in-port identifier and / or out-port identifier, the attenuation value of the channel corresponding to the original in-port identifier and out-port identifier needs to be zeroed first, that is, the corresponding gear a of the initial attenuation value is switched to gear 0 first, so as to close the original channel, and then gear 0 is switched to the corresponding gear b of the target attenuation value, so as to open the new channel, at this time, the brush drawing path is from gear a to gear 0 and then to gear b, and the brush drawing times in the brush drawing configuration is a+b times. As shown in Figure 3 , it is a gear diagram of the attenuation value, in which A0-A5 are gears.

[0089] After obtaining the corresponding brush drawing configuration, the position in the pixel bitmap that needs to be refreshed is found according to the wavelength configuration command, the pixel points in the pixel bitmap that need to be refreshed are adjusted, so as to complete the conversion of the configuration information to the optical display, and the setting or switching of the to-be-adjusted channel is realized, therefore, the present embodiment relates to the following design:

[0090] The brush drawing position on the pixel bitmap is obtained according to the start frequency, the end frequency, the in-port identifier, the out-port identifier and the target attenuation value, as shown in Figure 4 , which specifically includes:

[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 point is obtained according to the start frequency and the end frequency, and the scaling channel corresponding to the center frequency point is obtained.

[0092] In this embodiment, the calculation formula of the center frequency point is as follows:

[0093] FC=(Freq_start+Freq_end) / 2;

[0094] Wherein, FC is the center frequency point, Freq_start is the start frequency, and Freq_end is the end frequency.

[0095] After obtaining the center frequency point, the scaling channel corresponding to the center frequency point is found in the scaling header file. The scaling header file is used to record the channel relationship corresponding to different frequencies.

[0096] In step 302, the demarcation 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 a first combined keyword to search in the calibration attenuation table to obtain the ib value (i.e., the demarcation position corresponding to each user-defined module) in the pixel bitmap; in order to ensure the flexible self-defining nature of the image, a single module is usually not used to image the complete image, so it is difficult to adjust and define the position of the partial region of the image, and the flexibility is poor; therefore, when imaging the pixels, the user usually uses multiple modules to image different partial regions of the complete image; when it is necessary to self-define and adjust the partial region of the image, only the module corresponding to the region needs to be adjusted, and the flexibility is more excellent; the user-defined module is a module for forming different regions in the same complete image; in this embodiment, the user-defined module is at least two.

[0098] In this embodiment, when the number of input ports is 2, the subsequently generated image is 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 demarcation line between the two parts of the image; the image range corresponding to the single module is located in the positive interval of the ib value, and the image range corresponding to the twin module is located in the negative interval of the ib value.

[0099] The calibration attenuation table is used to search the demarcation line position between two modules according to the input attenuation value.

[0100] In step 303, the row interval in the pixel bitmap is obtained according to the demarcation position corresponding to each user-defined module, the input port identifier, the output port identifier, and the calibration channel.

[0101] In this embodiment, the demarcation position corresponding to each user-defined module, the input port identifier, the output port identifier, and the row interval in the pixel bitmap are integrated as a second combined keyword; the second combined 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 value corresponding to different channels.

[0102] In step 304, the interval range obtained by integrating the column start position, the column end position, and the row interval in the pixel bitmap is taken as the brush image position.

[0103] In the actual attenuation value switching of the channel by the brush image, in order to compatible with the attenuation value gear switching in all cases, a fixed brush image number is set, which can compatible with the brush image number in all cases; for example, the attenuation interval of the wavelength selection switch is evenly divided into N gears, and the maximum brush image number in the brush image configuration is 2N, because when the initial attenuation value and the target attenuation value in the wavelength configuration command are both N, and the change of the in-port identifier and / or the out-port identifier is required, the gear N of the initial attenuation value needs to be switched to the attenuation value 0, and then the gear N of the target attenuation value is switched from the attenuation value 0, and the total brush image number is 2N, which is the maximum brush image number in all cases, and the brush image number in other cases is only less than or equal to 2N, so the fixed brush image number is set to 2N, and when the actual required brush image number is less than 2N, the remaining brush image number is repeated to find the flow, for example, the actual required brush image number is M, and then the actual effective M times of brush image are performed, and the remaining 2N-M times of brush image are repeated to find the flow. However, the image presented by the repeated finding flow is unchanged, so the related calculation of the repeated finding flow is unnecessary, which wastes performance and slows down the speed, so the present embodiment also relates to the following design:

[0104] The pixel imaging is performed according to the brush image configuration and the brush image position, as shown in Figure 5 The method flow includes:

[0105] In step 401, the fixed brush image number is set to 2N times.

[0106] In step 402, when the wavelength configuration command does not need to change the in-port identifier and / or the out-port identifier of the channel to be adjusted, in the 2N times of brush image, the first times of brush image are performed according to the brush image path from the gear a to the gear b, and the images of the last times are all copied from the image of the first time.

[0107] In the present embodiment, when the wavelength configuration command does not need to change the in-port identifier and / or the out-port identifier of the channel to be adjusted, the image of the first time of brush image is directly copied to the image of the last time, so that the last time of brush image does not need to perform invalid finding and calculation.

[0108] In step 403, when the wavelength configuration command needs to change the in-port identifier and / or the out-port identifier of the channel to be adjusted, in the 2N times of brush image, the first a+b times of brush image are performed according to the brush image path from the gear a to the gear 0 and then to the gear b, and the images of the last 2N-(a+b) times are all copied from the image of the first a+b time.

[0109] In the embodiment, when the wavelength configuration command needs to change the in-port identifier and / or the out-port identifier of the channel to be adjusted, the image of the a+b-th drawing is directly copied to the images of the subsequent 2N-(a+b)th drawings, so that the subsequent 2N-(a+b)th drawings do not need to perform invalid search and calculation.

[0110] And the embodiment provides a specific example. In the scenario of 500 wavelength channels, the fixed drawing number is set to 12, the actual required drawing number is 3, if the subsequent 9th drawing uses the conventional search and calculation, the total time required is 1.2 seconds, if the images of the subsequent 9th drawing are all copied from the image of the third drawing, the total time required is 0.8 seconds.

[0111] Further, the embodiment provides the actual drawing method flow in two cases. One is the case when the wavelength configuration command does not need to change the in-port identifier and / or the out-port identifier of the channel to be adjusted, as shown in FIG. 2, wherein when the attenuation value is switched to each gear, it is judged whether the current switched gear is the gear where the target attenuation value is located, if yes, the image of the current drawing is copied to all subsequent drawing times, if not, the attenuation value is continuously switched to the next gear until the gear where the target attenuation value is located. The other is the case when the wavelength configuration command needs to change the in-port identifier and / or the out-port identifier of the channel to be adjusted, as shown in FIG. 3, wherein the initial attenuation value is directly switched to the gear 0, and then the attenuation value is switched to the gear n from the gear 0, when the attenuation value is switched to each gear, it is judged whether the current switched gear is the gear where the target attenuation value is located, if yes, the image of the current drawing is copied to all subsequent drawing times, if not, the attenuation value is continuously switched to the next gear until the gear where the target attenuation value is located. Figure 6 Figure 7 Further, the embodiment provides the actual drawing method flow in two cases. One is the case when the wavelength configuration command does not need to change the in-port identifier and / or the out-port identifier of the channel to be adjusted, as shown in FIG. 2, wherein when the attenuation value is switched to each gear, it is judged whether the current switched gear is the gear where the target attenuation value is located, if yes, the image of the current drawing is copied to all subsequent drawing times, if not, the attenuation value is continuously switched to the next gear until the gear where the target attenuation value is located. The other is the case when the wavelength configuration command needs to change the in-port identifier and / or the out-port identifier of the channel to be adjusted, as shown in FIG. 3, wherein the initial attenuation value is directly switched to the gear 0, and then the attenuation value is switched to the gear n from the gear 0, when the attenuation value is switched to each gear, it is judged whether the current switched gear is the gear where the target attenuation value is located, if yes, the image of the current drawing is copied to all subsequent drawing times, if not, the attenuation value is continuously switched to the next gear until the gear where the target attenuation value is located.

[0112] Embodiment 2:

[0113] The embodiment based on the WSS wavelength selective switch provides a drawing device, as shown in FIG. 4, comprising an adaptation module, a message distribution module, a verification module and a drawing algorithm module, wherein the adaptation module, the message distribution module, the verification module and the drawing algorithm module are sequentially connected, and the adaptation module is used for receiving the wavelength configuration command sent by the user, and the adaptation module can support two peripheral communication modes of spi protocol and serial port protocol for different communication modes of the host computer, and simultaneously converts the received wavelength configuration command into a unified format which can be recognized internally. Figure 8

[0114] The adaptation module is used for receiving the wavelength configuration command sent by the user, and the adaptation module can support two peripheral communication modes of spi protocol and serial port protocol for different communication modes of the host computer, and simultaneously converts the received wavelength configuration command into a unified format which can be recognized internally.

[0115] ​​The message distribution module is configured to receive the wavelength configuration command converted by the adaptation module, the wavelength configuration command having a CmdType field, which is used to indicate the processing operation type corresponding to the wavelength configuration command, and distribute the wavelength configuration command to the corresponding module in the verification module for verification processing according to the processing operation type carried by the wavelength configuration command.

[0116] The verification module includes an adding unit, a setting unit, a deleting unit and a querying unit, which are all configured to verify the legality of the wavelength configuration command when performing the corresponding operation processing.

[0117] The following table is used to introduce the fields in the wavelength configuration command in the embodiment and the corresponding meanings of the fields.

[0118]

[0119] The legality judgment rule of the adding unit is as follows:

[0120] 1. The ingress port identifier and the egress port identifier in the wavelength configuration command need to be within the maximum range interval defined in the header file, and if the interval is exceeded, an error is returned.

[0121] 2. The channel number identifier of the channel added by the adding operation cannot overlap the channel number identifier of the previously established channel, and if the overlap occurs, an error is returned.

[0122] 3. The start frequency or the end frequency of the channel added by the adding operation cannot correspond to the conflict of the start frequency or the end frequency of the established channel, and if the conflict occurs, an error is returned.

[0123] The legality judgment rule of the setting unit is as follows:

[0124] 1. The ingress port identifier and the egress port identifier required to be set in the wavelength configuration command need to be within the maximum range interval defined in the header file, and if the interval is exceeded, an error is returned.

[0125] 2. The channel number identifier of the channel adjusted by the setting operation cannot overlap the channel number identifier of the previously established channel, and if the overlap occurs, an error is returned.

[0126] 3. The start frequency or the end frequency of the channel adjusted by the setting operation cannot correspond to the conflict of the start frequency or the end frequency of the established channel, and if the conflict occurs, an error is returned.

[0127] When the verification module verifies and judges the legality of the corresponding wavelength configuration command, the wavelength configuration command is sent to the map brushing algorithm module, which performs the corresponding processing according to the method described in Embodiment 1, which will not be described in detail here.

[0128] The brush map algorithm module calculates the brush map configuration and the brush map position corresponding to the wavelength configuration command, and sends the brush map configuration and the brush map position to the storage module for storage. The host reads the brush map configuration and the brush map position in the storage module, and transmits the brush map configuration and the brush map position to the LCoS chip for processing, thereby completing the brush map process of the wavelength selection switch.

[0129] Embodiment 3:

[0130] As Figure 9 shown in FIG. 1, which is a device schematic diagram of the brush map device based on the WSS wavelength selection switch according to an embodiment of the present application. The brush map device based on the WSS wavelength selection switch according to the embodiment includes one or more processors 41 and a memory 42.

[0131] The processor 41 and the memory 42 can be connected through a bus or other means, Figure 9 for example, through a bus.

[0132] The memory 42, as a non-volatile computer readable storage medium, can be used to store non-volatile software programs and non-volatile computer executable programs, such as the brush map method based on the WSS wavelength selection switch in the above embodiment. The processor 41 executes the brush map method based on the WSS wavelength selection switch by running the non-volatile software programs and instructions stored in the memory 42.

[0133] The memory 42 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 42 can optionally include a memory remotely arranged with respect to the processor 41, and these remote memories can be connected to the processor 41 through a network. Examples of the above network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0134] The program instructions / modules are stored in the memory 42, and when executed by the one or more processors 41, the brush map method based on the WSS wavelength selection switch in the above embodiment is executed, for example, the various steps described above are executed. Figures 1-8

[0135] The embodiment of the present application also provides a computer storage medium, and the computer storage medium stores computer program instructions; the computer program instructions are executed by a processor to implement the brush map method based on the WSS wavelength selection switch provided by the embodiment of the present application.

[0136] The above only describes the preferred embodiments of the present application and does not limit the present application. Any modification, equivalent replacement and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.​

Claims

1. A method for refreshing a graph based on a WSS wavelength selective switch, characterized in that: include: receiving a wavelength configuration command, 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 configuration according to the initial attenuation value and the target attenuation value; Acquire a start frequency, an end frequency, an input port identifier, and an output port identifier according to the wavelength configuration command; Obtaining a column start position in a pixel bitmap according to the start frequency, obtaining a column end position in the pixel bitmap according to the end frequency, obtaining a center frequency point and a calibration channel corresponding to the center frequency point according to the start frequency and the end frequency; obtaining a boundary position corresponding to each user-defined module according to the input port identifier, the output port identifier and the calibration channel; obtaining a row interval in a pixel bitmap according to the boundary position, the input port identifier, the output port identifier and the 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 refresh position; 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 specified port on the optical fiber array, and completing the sub-wave switching of the channel to be adjusted.

2. The image refresh method based on WSS wavelength selective switch according to claim 1, characterized in that: Obtaining the 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 gear position a corresponding to the initial attenuation value, and obtaining a gear position b corresponding to the target attenuation value; Determine whether the wavelength configuration command requires changing the input port identifier and / or output port identifier of the channel to be adjusted; When the wavelength configuration command does not require the input port identifier and / or output port identifier of the channel to be adjusted to be changed, the refresh path in the refresh configuration is from gear a to gear b, and the number of refreshes in the refresh configuration is 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 refresh path in the refresh configuration is from gear a to gear 0 and then to gear b, and the number of refreshes in the refresh configuration is a+b times.

3. The image refresh method based on WSS wavelength selective switch according to claim 2, characterized in that: The obtaining of 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 the calibration attenuation table to obtain the boundary positions between the user-defined modules.

4. The image refresh method based on WSS wavelength selective switch according to claim 1, 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.

5. The image refresh method based on 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 require the input port identifier and / or output port identifier of the channel to be adjusted to be changed, the previous Follow the path from gear a to gear b to refresh the map, then The images are copied Secondary images; 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. The images of the next 2N-(a+b) times are copied from the image of the a+b times.

6. The image refresh method based on WSS wavelength selective switch according to claim 5, characterized in that: The performing pixel imaging according to the image brushing configuration and the image brushing position further includes: Obtaining the refresh path and refresh times corresponding to each pixel point in the pixel bitmap at the refresh position according to the refresh configuration; Each pixel point of the pixel bitmap at the refresh position is displayed with corresponding imaging brightness according to the refresh path and the refresh times, so as to realize pixel imaging of the pixel bitmap at the refresh position.

7. The image refresh method based on 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 inlet port identifier and the outlet port identifier are within a legal identifier interval; if both the inlet port identifier and the outlet port identifier are within the legal identifier interval, the inlet port identifier and the outlet port identifier are both legal; if the inlet port identifier and / or the outlet port identifier are outside the legal identifier interval, the inlet port identifier and / or the outlet port identifier are illegal; When the command type is to set the first preset channel, determine whether the first preset channel exists. If so, the command type is legal; if not, the 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 invalid; if not, the command type is valid. 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 for receiving the wavelength configuration command again.

8. A refresh device based on WSS wavelength selective switch, characterized in that: The system comprises 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 WSS wavelength selective switch-based map refresh method according to any one of claims 1 to 7.

9. 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 7.

Citation Information

Patent Citations

  • Optical switching method and device, liquid crystal on silicon and wavelength selective switch

    CN114355514A

  • Optical switching method and device

    CN114615569A