Optical switch maximum optical power point search method and device, host computer and computer readable storage medium
Patent Information
- Application Number
- CN202611131225.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-28
- Publication Date
- 2026-10-16
AI Technical Summary
现有串行式逐通道扫描方案不仅导致测试硬件资源利用率低下,亦显著延长整体校准周期
[0016]相比于现有技术,本发明实施例提供的光交换机的最大光功率点搜索方法、装置、上位机和计算机可读存储介质,该方法同步对全部光开关通道执行搜索,首先获取各光开关通道的粗扫初始电压值对,并以粗扫初始电压值对为中心选取多个粗扫电压值对,测量后确定细扫初始电压值对。再将第二可调反射镜的电压固定于细扫初始电压值,仅调整第一可调反射镜的电压,在其电压平面上探测并确定使光功率最大的第一最佳电压值。接着将第一可调反射镜的电压固定于第一最佳电压值,仅调整第二可调反射镜的电压,在其电压平面上探测并确定使光功率最大的第二最佳电压值,确保每次光功率变化均唯一归因于单一反射镜的驱动调整,从而解决双镜耦合引发的方向模糊问题。如此,既可以高效完成数百通道的批量校准,又可稳定收敛至全局最大光功率点。
Smart Images

Figure CN122932814A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of optical switch technology, and more specifically, to a method, apparatus, host computer, and computer-readable storage medium for searching the maximum optical power point of an optical switch. Background Technology
[0002] In optical circuit switches (OCS) based on micro-electro-mechanical systems (MEMS), the MEMS optical switch is the core device for realizing dynamic switching of optical paths. A typical optical switch channel contains two independently controllable mirrors. By coordinating the adjustment of the deflection angle of the two mirrors, the input optical signal can be efficiently coupled to the target output optical fiber.
[0003] For each optical switch channel, its transmission efficiency (i.e., the optical power detected at the receiver) is highly dependent on the voltage control combination of the two mirrors. Due to factors such as assembly errors, fiber alignment deviations, and individual differences in MEMS devices, the voltage combination corresponding to the maximum optical power point of each channel is different and cannot be accurately obtained through theoretical calculations. Therefore, in actual production and calibration, it is necessary to find the maximum optical power point of each channel through scanning measurement.
[0004] As optical communication systems evolve towards high-density, large-scale integration, efficiently searching for the optimal voltage combination across all channels while ensuring calibration accuracy has become a key technical bottleneck restricting the calibration efficiency and test repeatability of production lines. Existing serial, channel-by-channel scanning schemes not only result in low utilization of test hardware resources but also significantly extend the overall calibration cycle. Furthermore, during the dual-micromirror coupling and control process, directional ambiguity caused by nonlinear response and multi-peak characteristics can easily lead the search process into local extrema, thus affecting the convergence reliability of the global optimal solution. Summary of the Invention
[0005] In view of this, the purpose of the present invention is to provide a method, apparatus, host computer and computer-readable storage medium for searching the maximum optical power point of an optical switch, which can improve the search efficiency and accuracy of the maximum optical power point.
[0006] To achieve the above objectives, the technical solutions adopted in the embodiments of the present invention are as follows: In a first aspect, the present invention provides a method for searching the maximum optical power point of an optical switch, applied to a host computer communicatively connected to the optical switch, wherein the optical switch includes multiple optical switch channels, and each optical switch channel is configured with a first adjustable reflector and a second adjustable reflector; the method includes: Obtain the initial coarse scan voltage value pair for each optical switch channel; the initial coarse scan voltage value pair is used to perform parallel search on each optical switch channel; Multiple coarse scan voltage value pairs are selected for each optical switch channel, centered on each of the aforementioned coarse scan initial voltage value pairs. Each optical switch channel is measured according to multiple coarse scan voltage value pairs, and the coarse scan voltage value pair with the largest optical power value in the optical switch channel is determined as the fine scan initial voltage value pair of the optical switch channel; the fine scan initial voltage value pair includes the first fine scan initial voltage value for driving the first adjustable reflector and the second fine scan initial voltage value for driving the second adjustable reflector. The initial voltage value of the second fine scan of each optical switch channel is fixed. Starting from the initial voltage value of the first fine scan, the voltage value of the first adjustable mirror corresponding to the maximum optical power value detected in the optical switch channel is determined as the first optimal voltage value. A first optimal voltage value is fixed for each of the optical switch channels. Starting from the initial voltage value of the second fine scan, the voltage value of the second adjustable mirror corresponding to the maximum optical power value detected in the optical switch channel is determined as the second optimal voltage value. The first optimal voltage value and the corresponding second optimal voltage value constitute the driving voltage combination corresponding to the maximum optical power point of the optical switch channel.
[0007] In an optional implementation, selecting multiple coarse scan voltage value pairs for each optical switch channel centered on each of the coarse scan initial voltage value pairs includes: On the voltage plane of each of the first adjustable mirrors, multiple first coarse scan voltage values are selected with the first coarse scan initial voltage value of the first adjustable mirror as the center. In the voltage plane of the corresponding second adjustable reflector, with the second coarse scan initial voltage value of the second adjustable reflector in the coarse scan initial voltage value pair as the center, multiple second coarse scan voltage values are selected; the first coarse scan voltage value and the corresponding second coarse scan voltage value form a coarse scan voltage value pair.
[0008] In an optional implementation, the step of measuring each optical switch channel based on multiple coarse scan voltage value pairs of each optical switch channel, and determining the coarse scan voltage value pair with the highest optical power value in the optical switch channel as the fine scan initial voltage value pair of the optical switch channel, includes: A corresponding coarse scan voltage value pair is applied to each of the optical switch channels to drive the first adjustable reflector to rotate according to the first coarse scan voltage value, drive the second adjustable reflector to rotate according to the second coarse scan voltage value, and measure the optical power value corresponding to each of the coarse scan voltage value pairs. Obtain the optical power value corresponding to multiple coarse scan voltage value pairs for each optical switch channel, and determine the coarse scan voltage value pair with the largest optical power value in the same optical switch channel as the fine scan initial voltage value pair for the optical switch channel.
[0009] In an optional implementation, selecting multiple first coarse scan voltage values centered on the first coarse scan initial voltage value of the first adjustable reflector includes: Centered on the initial voltage value of the first coarse scan, the process extends in eight preset directions, selecting multiple initial coarse scan voltage values.
[0010] In an optional implementation, the second fine-scan initial voltage value of each of the optical switch channels is fixed, and the detection starts from the first fine-scan initial voltage value. The voltage value of the first adjustable mirror corresponding to the maximum detected optical power value in the optical switch channel is determined as the first optimal voltage value, including: For each optical switch channel, on the voltage plane of the first adjustable reflector, a first fine scan region and multiple first fine scan voltage values are generated centered on the first fine scan initial voltage value; the first fine scan region is a rectangular region within the voltage plane of the first adjustable reflector with a side length of a preset coarse scan step value centered on the first fine scan initial voltage value. The first fine-scan voltage value is applied sequentially to the first adjustable reflector, the second fine-scan initial voltage value is applied to the second adjustable reflector, and the optical power value corresponding to each first fine-scan voltage value is measured. If the optical power value corresponding to the first fine scan initial voltage value is greater than the optical power value corresponding to the first fine scan voltage value, the first fine scan initial voltage value is determined as the first optimal voltage value. If the optical power value corresponding to the initial voltage value of the first fine scan is not greater than the optical power value corresponding to the first fine scan voltage value, the first fine scan voltage value with the largest optical power value is determined as the new initial voltage value of the first fine scan, and the exploration of new first fine scan voltage values continues until the edge of the first fine scan region is reached and the iteration stops. The first fine scan voltage value with the largest optical power value is determined as the first optimal voltage value.
[0011] In an optional implementation, fixing the first optimal voltage value of each of the optical switch channels, starting from the initial voltage value of the second fine scan, and determining the voltage value of the second adjustable mirror corresponding to the maximum detected optical power value in the optical switch channel as the second optimal voltage value, includes: For each optical switch channel, on the voltage plane of the second adjustable mirror, a second fine scan region and multiple second fine scan voltage values are generated centered on the second fine scan initial voltage value; the second fine scan region is a rectangular region within the voltage plane of the second adjustable mirror with a side length of a preset coarse scan step size centered on the second fine scan initial voltage value. The first optimal voltage value is applied sequentially to the first adjustable reflector, and the second fine-scan voltage value is applied to the second adjustable reflector. The optical power value corresponding to each second fine-scan voltage value is measured. If the optical power value corresponding to the second fine scan initial voltage value is greater than the optical power value corresponding to the second fine scan voltage value, the second fine scan initial voltage value is determined as the second optimal voltage value; If the optical power value corresponding to the initial voltage value of the second fine scan is not greater than the optical power value corresponding to the second fine scan voltage value, the second fine scan voltage value with the largest optical power value is determined as the new initial voltage value of the second fine scan, and the exploration of new second fine scan voltage values continues until the edge of the second fine scan region is reached and the iteration stops. The second fine scan voltage value with the largest optical power value is determined as the second optimal voltage value.
[0012] In an optional implementation, the method further includes: Assign a management index to each of the optical switch channels; The management index stores the corresponding initial voltage value pairs for coarse scan, multiple pairs of coarse scan voltage values, initial voltage value pairs for fine scan, first optimal voltage value, and second optimal voltage value for the optical switch channel.
[0013] Secondly, the present invention provides a maximum optical power point search device for an optical switch, applied to a host computer communicating with the optical switch. The optical switch includes multiple optical switch channels, each optical switch channel being configured with a first adjustable reflector and a second adjustable reflector. The device includes: A coarse scan module is used to obtain the initial coarse scan voltage value pairs of each optical switch channel; the initial coarse scan voltage value pairs are used to perform parallel searches on each optical switch channel; multiple coarse scan voltage value pairs are selected for each optical switch channel with each initial coarse scan voltage value pair as the center; The determination module is used to measure each optical switch channel according to multiple coarse scan voltage value pairs of each optical switch channel, and determine the coarse scan voltage value pair with the largest optical power value in the optical switch channel as the fine scan initial voltage value pair of the optical switch channel; the fine scan initial voltage value pair includes a first fine scan initial voltage value for driving the first adjustable reflector and a second fine scan initial voltage value for driving the second adjustable reflector; The fine-scan module is used to fix the second fine-scan initial voltage value of each optical switch channel, start detection from the first fine-scan initial voltage value, and determine the voltage value of the first adjustable reflector corresponding to the maximum optical power value detected in the optical switch channel as the first optimal voltage value. The fine-scan module is also used to fix the first optimal voltage value of each optical switch channel, start detection from the second fine-scan initial voltage value, and determine the voltage value of the second adjustable reflector corresponding to the maximum optical power value in the optical switch channel as the second optimal voltage value; the first optimal voltage value and the corresponding second optimal voltage value constitute the driving voltage combination corresponding to the maximum optical power point of the optical switch channel.
[0014] Thirdly, the present invention provides a host computer, including a processor and a memory, wherein the memory stores a computer program that can be executed by the processor, and the processor can execute the computer program to implement the maximum optical power point search method of the optical switch described in any of the foregoing embodiments.
[0015] Fourthly, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the maximum optical power point search method for an optical switch as described in any of the foregoing embodiments.
[0016] Compared to existing technologies, the maximum optical power point search method, apparatus, host computer, and computer-readable storage medium provided in this invention for optical switches simultaneously perform a search on all optical switch channels. First, it acquires the initial coarse-scan voltage value pairs for each optical switch channel, and then selects multiple coarse-scan voltage value pairs centered on these pairs, measuring and determining the initial fine-scan voltage value pairs. Next, it fixes the voltage of the second adjustable mirror to the initial fine-scan voltage value, adjusting only the voltage of the first adjustable mirror, and detecting and determining the first optimal voltage value that maximizes the optical power on its voltage plane. Then, it fixes the voltage of the first adjustable mirror to the first optimal voltage value, adjusting only the voltage of the second adjustable mirror, and detecting and determining the second optimal voltage value that maximizes the optical power on its voltage plane. This ensures that each change in optical power is uniquely attributed to the driving adjustment of a single mirror, thereby solving the directional ambiguity problem caused by dual-mirror coupling. In this way, it can efficiently complete batch calibration of hundreds of channels and stably converge to the global maximum optical power point.
[0017] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0018] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 A flowchart illustrating a maximum optical power point search method for an optical switch provided in an embodiment of the present invention is shown.
[0020] Figure 2 This diagram illustrates a method for selecting a coarse scan voltage value according to an embodiment of the present invention.
[0021] Figure 3 This diagram illustrates another schematic of selecting the coarse scan voltage value according to an embodiment of the present invention.
[0022] Figure 4 A block diagram of a maximum optical power point search device for an optical switch provided in an embodiment of the present invention is shown.
[0023] Figure 5 A block diagram of a host computer provided in an embodiment of the present invention is shown. Detailed Implementation
[0024] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.
[0025] Therefore, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the invention without inventive effort are within the scope of protection of the invention.
[0026] It should be noted that relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0027] Optical switches operate in the entire optical domain, eliminating the need for photoelectric conversion of optical signals. MEMS-based optical switches include, but are not limited to, fiber optic collimator arrays, MEMS micromirror arrays (i.e., MEMS optical switches), and control units. The fiber optic collimator array is used for both optical signal input and output. The MEMS micromirror array comprises multiple independently controllable micromirrors (i.e., reflectors), each with a deflection angle controlled by a driving voltage. The control unit applies driving voltages to the micromirrors corresponding to the source and destination ports according to predetermined optical path connections, causing the incident light to exit from the designated output port after two reflections, thus achieving direct spatial switching of optical paths.
[0028] The inventors discovered that the search method currently widely used for batch calibration of multi-channel MEMS optical switches employs a search strategy of "global grid exhaustive scanning + local area secondary fine scanning". At the single-channel level, in the first stage, M points (usually M=16 or larger) are selected on the voltage planes of the first adjustable mirror (i.e., side A) and the second adjustable mirror (i.e., side B) at a fixed step size ΔV, and M×M combinations are traversed to complete the global coarse scan.
[0029] The second stage uses the coarse scan result (Abest, Bbest) as the center and performs a secondary fine scan in a 3×3 or 5×5 local area with a smaller step size ΔV′ (ΔV′<ΔV). At the multi-channel level, a strict "serial execution" architecture is adopted for N channels (e.g., N=300), that is, all two-stage scans of channel 1 to channel N are completed sequentially. Each channel uses its corresponding power meter independently, without synchronous or parallel control logic.
[0030] This technology has the following four insurmountable flaws: 1. Excessive number of single-channel searches: The first stage alone requires 256 measurements, and the second stage, with its 5×5 fine scan, adds another 25 measurements, totaling approximately 280–330 measurements. Each measurement includes voltage establishment, MEMS stabilization, power meter integration, and data reading (which takes tens of milliseconds), resulting in a single-channel calibration time of tens of seconds, which seriously affects production efficiency.
[0031] 2. The problem of "directional ambiguity" exists in the dual-axis coupling environment: the voltages of mirrors A and B are adjusted synchronously in both coarse and fine scans, so the change in optical power cannot be attributed to the displacement of a single mirror. There is a lack of direction discrimination mechanism, and it is essentially still a fixed grid exhaustive search, which is not a direction-guided search. If the true global optimum is located outside the fine scan area, it will be permanently missed and it is easy to get trapped in local optima.
[0032] 3. The “channel serial” execution architecture is adopted: the total calibration time Ttotal = N × Tsingle. When N = 300 and Tsingle = 15 seconds, Ttotal is as high as 75 minutes (1.25 hours). However, the OCS switch actually needs to calibrate 300 × 300 sets of mirror pairs. This linear growth characteristic is unacceptable in large-scale channel scenarios and has become the core bottleneck of mass calibration in production lines.
[0033] 4. Failure to fully utilize hardware parallel measurement capabilities, resulting in "software and hardware capability mismatch": Although each channel is equipped with an independent power meter (with parallel acquisition capabilities), the control logic is still a serial mode of "setting a voltage once → reading a power → processing a channel", which causes most power meters to be idle and waiting for a long time, and the hardware parallel potential is completely wasted.
[0034] Based on this, embodiments of the present invention provide a method, apparatus, host computer, and computer-readable storage medium for searching the maximum optical power point of an optical switch. This method simultaneously searches all optical switch channels. First, it acquires the initial coarse-scan voltage value pairs for each optical switch channel, and then selects multiple coarse-scan voltage value pairs centered on these pairs, measuring and determining the initial fine-scan voltage value pairs. Next, it fixes the voltage of the second adjustable mirror to the initial fine-scan voltage value, adjusting only the voltage of the first adjustable mirror, and detecting and determining the first optimal voltage value that maximizes the optical power on its voltage plane. Then, it fixes the voltage of the first adjustable mirror to the first optimal voltage value, adjusting only the voltage of the second adjustable mirror, and detecting and determining the second optimal voltage value that maximizes the optical power on its voltage plane. This ensures that each change in optical power is uniquely attributed to the driving adjustment of a single mirror, thereby solving the directional ambiguity problem caused by dual-mirror coupling. In this way, it can efficiently complete batch calibration of hundreds of channels and stably converge to the global maximum optical power point.
[0035] The embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
[0036] Please refer to Figure 1 , Figure 1 A schematic flowchart of a maximum optical power point search method for an optical switch provided in an embodiment of the present invention is shown. The method includes the following steps: Step S10: Obtain the initial coarse scan voltage value pair for each optical switch channel; the initial coarse scan voltage value pair is used to perform parallel search on each optical switch channel.
[0037] In this embodiment of the invention, the host computer divides the first light spot reflecting surface (i.e., the plane where the light spot of the first adjustable mirror is located) into multiple grids according to the number of optical switch channels in the optical switch, so that each first adjustable mirror corresponds to one grid. The host computer adjusts the first voltage value of each first adjustable mirror to drive the first adjustable mirror to rotate, so that the light spot reflected by each first adjustable mirror falls at the center position of the corresponding grid, and the voltage value corresponding to the light spot at the center position of the grid is determined as the first coarse scan initial voltage value of the first adjustable mirror.
[0038] The host computer processes the second adjustable mirror in the same way. Based on the number of optical switch channels in the optical switch, it divides the second light spot reflecting surface (i.e., the plane where the light spot of the second adjustable mirror is located) into multiple grids, so that each second adjustable mirror corresponds to one grid. Then, it adjusts the second voltage value of each second adjustable mirror to drive its rotation, ensuring that the light spot reflected by each mirror falls at the center of its corresponding grid. The voltage value corresponding to the light spot at the grid center is then determined as the initial second coarse scan voltage value for the second adjustable mirror.
[0039] After obtaining the initial coarse scan voltage values for each of the first adjustable reflectors, the host computer acquires the voltage values mapped to the four boundaries of the grid on the voltage plane of the first adjustable reflector, and determines the preset coarse scan step size based on the voltage values mapped to the four boundaries. Then, according to the preset coarse scan step size, starting from the initial coarse scan voltage values, multiple first voltage values are uniformly set on the voltage plane of the first adjustable reflector. For example, if the voltage difference is 1, and 5×5 first voltage values are set on the voltage plane of the first adjustable reflector, then the preset coarse scan step size is 0.25.
[0040] Similarly, since the grid corresponding to the second adjustable reflector is the same size as the grid corresponding to the first adjustable reflector, the voltage difference between the two parallel boundaries of the grid corresponding to the second adjustable reflector is the same as that of the first adjustable reflector, and the preset coarse scan step size is also the same. According to the preset coarse scan step size, starting from the initial voltage value of the second coarse scan, a plurality of uniform second voltage values are evenly set on the voltage plane of the second adjustable reflector.
[0041] The host computer pairs the first and second voltage values in the same optical switch channel, matching first and second voltage values with the same spatial relationship one by one to obtain multiple sets of coarse scan preset voltage value pairs. The first and second initial coarse scan voltage values of each optical switch channel are combined to form the initial coarse scan voltage value pairs for each optical switch channel.
[0042] It should be noted that the first voltage value includes a first lateral voltage value and a first longitudinal voltage value. The first lateral voltage value drives the first adjustable reflector to rotate left and right, and the first longitudinal voltage value drives the first adjustable reflector to rotate up and down. Similarly, the second voltage value includes a second lateral voltage value and a second longitudinal voltage value. The second lateral voltage value drives the second adjustable reflector to rotate left and right, and the second longitudinal voltage value drives the second adjustable reflector to rotate up and down.
[0043] It is worth mentioning that the initial coarse scan voltage values of all optical switch channels are generated synchronously, stored uniformly, and distributed synchronously within the same processing cycle, so that all optical switch channels can be searched in parallel instead of waiting one by one.
[0044] Wherein, when the first adjustable reflector is a reflector in the optical switch used to deflect the incident beam, the second adjustable reflector is a reflector in the optical switch used to couple the beam deflected by the first adjustable reflector into the target output fiber.
[0045] The first light spot reflecting surface refers to the projection area on the imaging plane of the light spot formed by the reflection of the first adjustable mirror, as observed by the imaging system during the optical path adjustment process. The second light spot reflecting surface refers to the projection area on the imaging plane of the light spot formed by the reflection of the second adjustable mirror, as observed by the imaging system during the optical path adjustment process.
[0046] Step S20: Select multiple coarse scan voltage value pairs for each optical switch channel, centered on each initial coarse scan voltage value pair.
[0047] In this embodiment of the invention, the host computer uses each pair of initial coarse scan voltage values as a reference point for the corresponding optical switch channel. Around these initial voltage values, it selects multiple coarse scan voltage value pairs from among the corresponding multiple preset coarse scan voltage value pairs. The coarse scan voltage value pairs are discretely distributed within the voltage plane according to a preset rule, such as 3×3, 4×4, etc. The coarse scan voltage values for all optical switch channels are generated according to the same logic, ensuring that the search ranges of each optical switch channel are comparable and consistent.
[0048] It should be noted that the selection method for the coarse scan voltage value pair can be uniform mesh expansion or non-uniform expansion according to a preset direction. This invention does not limit this method and can be set according to the actual application scenario.
[0049] Step S30: Measure each optical switch channel according to multiple coarse scan voltage value pairs of each optical switch channel, and determine the coarse scan voltage value pair with the largest optical power value in the optical switch channel as the fine scan initial voltage value pair of the optical switch channel; the fine scan initial voltage value pair includes the first fine scan initial voltage value for driving the first adjustable reflector and the second fine scan initial voltage value for driving the second adjustable reflector.
[0050] In this embodiment of the invention, the host computer sends control commands to the optical switch, causing each optical switch channel to sequentially drive the first and second adjustable reflectors to rotate according to the corresponding multiple coarse scan voltage value pairs. After the optical system stabilizes, the optical power value of the optical switch channel is read through a power meter. After receiving the optical power values corresponding to the multiple coarse scan voltage value pairs in each optical switch channel, the host computer selects the coarse scan voltage value pair with the largest optical power value in the optical switch channel as the initial fine scan voltage value pair for the optical switch channel.
[0051] Step S40: Fix the initial voltage value of the second fine scan of each optical switch channel, start detection from the initial voltage value of the first fine scan, and determine the voltage value of the first adjustable mirror corresponding to the maximum optical power value in the detected optical switch channel as the first optimal voltage value.
[0052] In this embodiment of the invention, during the detection process, the host computer keeps the driving voltage of the second adjustable reflector constant, that is, drives the second adjustable reflector through the initial voltage value of the second fine scan. Then, using the initial voltage value of the first fine scan as a reference point, different voltage values are tried within the control voltage range to drive the first adjustable reflector to rotate, observe the change in optical power, and finally select the voltage value of the first adjustable reflector with the largest optical power value as the first optimal voltage value.
[0053] Step S50: Fix the first optimal voltage value of each optical switch channel, start detection from the initial voltage value of the second fine scan, and determine the voltage value of the second adjustable reflector corresponding to the maximum optical power value in the detected optical switch channel as the second optimal voltage value; the first optimal voltage value and the corresponding second optimal voltage value constitute the driving voltage combination corresponding to the maximum optical power point of the optical switch channel.
[0054] In this embodiment of the invention, after obtaining the first optimal voltage value of each optical switch channel, the driving voltage of the first adjustable reflector is kept at the first optimal voltage value, and different voltage values are tried within the control voltage range with the initial voltage value of the second fine scan as the reference point. The second adjustable reflector is driven to rotate, and the change in optical power is observed. Finally, the voltage value of the second adjustable reflector with the largest optical power value is selected as the second optimal voltage value.
[0055] During the fine-scan detection process, the first and second optimal voltage values can be searched through iterative local optimal detection. Specifically, the initial voltage value of the second fine scan for each optical switch channel is first fixed. Within the voltage plane of the first adjustable mirror, a first fine-scan region is determined centered on the initial voltage value of the first fine scan. Local region detection is then performed within this first fine-scan region, and the voltage value of the first adjustable mirror corresponding to the maximum optical power value within that local region is determined as the first local optimal voltage value.
[0056] Next, the first local optimal voltage value of each optical switch channel is fixed, and the second fine scan region is determined in the voltage plane of the second adjustable mirror with the initial voltage value of the second fine scan as the center. Local area detection is performed in the second fine scan region, and the voltage value of the second adjustable mirror corresponding to the maximum optical power value in the local region is determined as the second local optimal voltage value.
[0057] The first locally optimal voltage value is used as the initial voltage value for the first fine scan in the next iteration, and the second locally optimal voltage value is used as the initial voltage value for the second fine scan in the next iteration. This process continues until the edges of both the first and second fine scan regions are reached. The voltage value of the first fine scan with the highest optical power is determined as the first optimal voltage value, and the voltage value of the second fine scan with the highest optical power is determined as the second optimal voltage value. However, iterative local optimum detection is a local optimization strategy and carries the risk of getting trapped in local maxima.
[0058] In comparison, the embodiments of the present invention adopt a detection strategy of first globally detecting the first optimal voltage value of the first adjustable reflector and then globally detecting the second optimal voltage value of the second adjustable reflector. This strategy allows for pausing at any time during the fine scan detection process to check whether the optical power value is improving, which is more conducive to searching for the maximum optical power point of the optical switch in the global range.
[0059] It should be noted that the maximum optical power point search process of the optical switch is not executed sequentially for each optical switch channel. Instead, it is based on the batch processing capability of the host computer and the parallel strategy capability of the hardware, so that all optical switch channels are searched synchronously in the same round.
[0060] In summary, the maximum optical power point search method for optical switches provided in this embodiment of the invention simultaneously performs a search on all optical switch channels. First, it acquires the initial coarse-scan voltage value pairs for each optical switch channel, and then selects multiple coarse-scan voltage value pairs centered on these pairs. After measurement, it determines the initial fine-scan voltage value pairs. Next, it fixes the voltage of the second adjustable mirror to the initial fine-scan voltage value, and adjusts only the voltage of the first adjustable mirror, probing and determining the first optimal voltage value that maximizes the optical power on its voltage plane. Then, it fixes the voltage of the first adjustable mirror to the first optimal voltage value, and adjusts only the voltage of the second adjustable mirror, probing and determining the second optimal voltage value that maximizes the optical power on its voltage plane. This ensures that each change in optical power is uniquely attributed to the driving adjustment of a single mirror, thereby solving the directional ambiguity problem caused by dual-mirror coupling. In this way, it can efficiently complete batch calibration of hundreds of channels and stably converge to the global maximum optical power point.
[0061] Alternatively, one possible implementation is provided below for how to filter multiple coarse scan voltage value pairs for each optical switch channel. Figure 1 The sub-steps of step S20 may include: Step S200: On the voltage plane of each first adjustable reflector, multiple first coarse scan voltage values are selected, centered on the first coarse scan initial voltage value of the first adjustable reflector.
[0062] In this embodiment of the invention, within the control voltage range of the first adjustable reflector, the host computer expands outwards from the first coarse scan initial voltage value as the center according to a preset strategy, selects multiple first voltage values from the preset coarse scan voltage value pairs as the first coarse scan voltage values, and forms a set of trial values distributed around the first coarse scan initial voltage value, which can cover the local voltage region near the center, so as to observe the trend of optical power change in the local voltage region near the center.
[0063] Step S210: On the voltage plane of the corresponding second adjustable reflector, with the second coarse scan initial voltage value of the second adjustable reflector in the coarse scan initial voltage value pair as the center, select multiple second coarse scan voltage values; the first coarse scan voltage value and the corresponding second coarse scan voltage value form a coarse scan voltage value pair.
[0064] In this embodiment of the invention, the host computer expands outward from the first coarse scan initial voltage value as the center according to a preset strategy, and selects the second voltage value corresponding to the first coarse scan voltage value from the preset coarse scan voltage value pair as the second coarse scan voltage value.
[0065] Alternatively, one possible implementation for selecting the fine-scan initial voltage value pair for each optical switch channel is provided below. Figure 1 The sub-steps of step S30 may include: In step S300, a corresponding coarse scan voltage value pair is applied to each optical switch channel to drive the first adjustable reflector to rotate according to the first coarse scan voltage value, drive the second adjustable reflector to rotate according to the second coarse scan voltage value, and measure the optical power value corresponding to each coarse scan voltage value pair.
[0066] In this embodiment of the invention, the host computer sequentially applies coarse scan voltage value pairs to each optical switch channel to drive the first adjustable reflector to adjust its working state according to the first coarse scan voltage value, and drives the second adjustable reflector to adjust its working state according to the second coarse scan voltage value corresponding to the first coarse scan voltage value. After the optical system stabilizes, the optical power value corresponding to each coarse scan voltage value pair in the optical switch channel is read by the power meter.
[0067] Step S310: Obtain the optical power value corresponding to multiple coarse scan voltage value pairs for each optical switch channel, and determine the coarse scan voltage value pair with the largest optical power value in the same optical switch channel as the fine scan initial voltage value pair for the optical switch channel.
[0068] In this embodiment of the invention, the host computer compares the optical power test results of the same optical switch channel under all coarse scan voltage value pairs, identifies and records the coarse scan voltage value pair with the largest optical power value as the fine scan initial voltage value pair for the optical switch channel. The fine scan initial voltage value pair is the optimal combination for the optical switch to achieve a local peak optical power. Based on the fine scan initial voltage value pair, a fine search is performed to quickly find the maximum optical power point of each optical switch channel in the optical switch.
[0069] Optionally, regarding how to filter multiple first coarse scan voltage values for each optical switch channel, the following is a possible implementation. Sub-steps of step S200 may include: Centered on the initial voltage value of the first coarse scan, the process expands in eight preset directions, selecting multiple initial coarse scan voltage values.
[0070] In this embodiment of the invention, on the voltage plane of each first adjustable reflector, among all the first voltage values of the preset coarse scan voltage value pairs, four first voltage values that are directly above, directly below, directly to the left, and directly to the right of the initial coarse scan voltage value are selected as first coarse scan voltage values. The first voltage values in the two directions directly to the left and right of the first coarse scan voltage value directly above are also selected as first coarse scan voltage values. Similarly, the first voltage values in the two directions directly to the left and right of the first coarse scan voltage value directly below are also selected as first coarse scan voltage values. Together with the initial coarse scan voltage value, nine first coarse scan voltage values are obtained. Figure 2 As shown.
[0071] Similarly, nine second coarse scan voltage values are selected, and the first coarse scan voltage value and the corresponding second coarse scan voltage value are combined to form a coarse scan voltage value pair, resulting in nine coarse scan voltage value pairs.
[0072] It should be noted that the host computer can also select coarse scan voltage value pairs in four directions, such as directly above, directly below, directly left, and directly right; or in the directions of upper left 45 degrees, lower left 45 degrees, upper right 45 degrees, and lower right 45 degrees. Figure 3 As shown. Configuration can be tailored to specific application scenarios; this invention does not limit the specific configuration.
[0073] Alternatively, one possible implementation for determining the first optimal voltage value for the optical switch channel is provided below. Figure 1 The sub-steps of step S40 may include: Step S400: For each optical switch channel, on the voltage plane of the first adjustable mirror, a first fine scan region and multiple first fine scan voltage values are generated with the first fine scan initial voltage value as the center; the first fine scan region is a rectangular region within the voltage plane of the first adjustable mirror with the first fine scan initial voltage value as the center and the side length as the preset coarse scan step length.
[0074] In this embodiment of the invention, the host computer uses a hill-climbing method to perform a fine-scan search on each optical switch channel. First, the host computer obtains a preset fine-scan step size, determines a rectangular region within the voltage plane of the first adjustable reflector centered on the initial fine-scan voltage value and with a side length equal to the preset coarse-scan step size as the first fine-scan region, and generates multiple first fine-scan voltage values centered on the initial fine-scan voltage value within the first fine-scan region according to the preset fine-scan step size.
[0075] It should be understood that the multiple first fine-scan voltage values are all voltage values located on the voltage plane of the first adjustable mirror. If the initial first fine-scan voltage value is located at the edge of the voltage plane of the first adjustable mirror, then the multiple first fine-scan voltage values are generated only within the voltage plane of the first adjustable mirror based on the initial first fine-scan voltage value.
[0076] Taking a 3×3 nine-point grid as an example, first fine-scan voltage values are generated in four directions: directly above, directly below, directly to the left, and directly to the right of the initial first fine-scan voltage value, based on a preset fine-scan step size. First fine-scan voltage values are generated directly above and directly below the first fine-scan voltage value to the left, and directly above and directly below the first fine-scan voltage value to the right, based on the preset fine-scan step size. Together with the initial first fine-scan voltage value, nine first fine-scan voltage values are obtained.
[0077] In step S410, a first fine-scan voltage value is sequentially applied to the first adjustable reflector, a second fine-scan initial voltage value is applied to the second adjustable reflector, and the optical power value corresponding to each first fine-scan voltage value is measured.
[0078] In this embodiment of the invention, the host computer sequentially transmits each first fine-scan voltage value to the corresponding optical switch channel to drive the first adjustable reflector to rotate according to the first fine-scan voltage value, and the second adjustable reflector to rotate according to the second fine-scan initial voltage value, and measures the corresponding optical power value.
[0079] Step S420: If the optical power value corresponding to the initial voltage value of the first fine scan is greater than the optical power value corresponding to the initial voltage value of the first fine scan, the initial voltage value of the first fine scan is determined as the first optimal voltage value.
[0080] In this embodiment of the invention, after receiving the optical power value corresponding to the optical switch channel, the host computer compares it with the optical power value corresponding to each first fine scan initial voltage value. If the optical power value corresponding to the first fine scan initial voltage value is greater than the optical power value corresponding to all the first fine scan initial voltage values determined in this round of search, the first fine scan initial voltage value is determined as the first optimal voltage value, the continued exploration in the first fine scan area is terminated, and the search for the second optimal voltage value continues.
[0081] Step S430: If the optical power value corresponding to the initial voltage value of the first fine scan is not greater than the optical power value corresponding to the first fine scan voltage value, the first fine scan voltage value with the largest optical power value is determined as the new initial voltage value of the first fine scan and the exploration of new first fine scan voltage values continues until the edge of the first fine scan region is explored and the iteration stops. The first fine scan voltage value with the largest optical power value is determined as the first optimal voltage value.
[0082] In this embodiment of the invention, if the host computer determines that there exists a first fine scan voltage value with an optical power value greater than the initial voltage value of the first fine scan, then the first fine scan voltage value with the largest optical power value is determined as the new initial voltage value of the first fine scan. Centered on the new initial voltage value of the first fine scan, multiple new first fine scan voltage values are generated within the first fine scan region, and the exploration continues based on the new first fine scan voltage value and the second initial voltage value of the fine scan.
[0083] If the maximum optical power obtained in each round of exploration is not generated by the initial voltage value of the first fine scan in that round, then the edge of the first fine scan region will be explored, and the first fine scan voltage value with the highest optical power value in the last round of exploration will be selected as the first optimal voltage value. Assuming a 3×3 nine-point grid as an example, with a preset coarse scan step size of 0.25 and a preset fine scan step size of 1 / 16, then a maximum of four fine scan explorations will be performed to find the first optimal voltage value.
[0084] As can be seen, the embodiments of the present invention optimize the driving voltage of the first adjustable mirror without changing the driving voltage of the second adjustable mirror (i.e., the initial voltage value of the second fine scan), so that the change in optical power depends only on the adjustment of the voltage of the first adjustable mirror, completely avoiding the coupling interference and attribution ambiguity caused by the simultaneous change of the two mirrors, thereby accurately identifying the optimal driving voltage of the first adjustable mirror corresponding to the peak optical power in each optical switch channel.
[0085] Alternatively, one possible implementation for determining the second optimal voltage value for the optical switch channel is provided below. Figure 1 The sub-steps of step S50 may include: Step S500: For each optical switch channel, on the voltage plane of the second adjustable mirror, a second fine scan region and multiple second fine scan voltage values are generated with the initial voltage value of the second fine scan as the center; the second fine scan region is a rectangular region within the voltage plane of the second adjustable mirror with the initial voltage value of the second fine scan as the center and the side length of the preset coarse scan step.
[0086] In step S510, a first optimal voltage value is sequentially applied to the first adjustable reflector, a second fine-scan voltage value is applied to the second adjustable reflector, and the optical power value corresponding to each second fine-scan voltage value is measured.
[0087] Step S520: If the optical power value corresponding to the initial voltage value of the second fine scan is greater than the optical power value corresponding to the initial voltage value of the second fine scan, the initial voltage value of the second fine scan is determined as the second optimal voltage value.
[0088] Step S530: If the optical power value corresponding to the initial voltage value of the second fine scan is not greater than the optical power value corresponding to the second fine scan voltage value, the second fine scan voltage value with the largest optical power value is determined as the new initial voltage value of the second fine scan and the exploration of new second fine scan voltage values continues until the edge of the second fine scan region is explored and the iteration stops. The second fine scan voltage value with the largest optical power value is determined as the second optimal voltage value.
[0089] In this embodiment of the invention, after obtaining the first optimal voltage value of each optical switch channel, the host computer fixes the driving voltage of the first adjustable reflector in each optical switch channel to the corresponding first optimal voltage value, explores the second optimal voltage value according to the fine exploration process of the first optimal voltage value, and determines the driving voltage of the second adjustable reflector corresponding to the maximum optical power measured throughout the process as the second optimal voltage value.
[0090] As can be seen, this embodiment of the invention explores and adjusts the driving voltage of the first adjustable mirror without changing the driving voltage (i.e., the first optimal voltage value), ensuring that the change in optical power is entirely attributable to the independent adjustment of the second adjustable mirror. This eliminates coupling interference between the two mirrors, making the optimization process causally clear, the path definite, and the results reliable, thereby accurately achieving stepwise optimal calibration of the two-variable optical system. Verification has shown that in actual testing with 300 optical switch channels, it converges to the global peak 100% without falling into local optima.
[0091] This invention optimizes the localization process of the maximum optical power point in a single channel by constructing a two-stage search strategy of "nine-point coarse scanning and eight-directional hill-climbing fine scanning". During the coarse scanning, nine discrete points are selected on the voltage planes of the first and second adjustable mirrors, forming 81 voltage combinations for measurement, quickly locking down the high-probability region of the optical power distribution. In the fine scanning stage, starting with the optimal combination obtained from the coarse scanning, the voltage of one mirror is fixed, and the other mirror is probed sequentially along eight preset directions (±X, ±Y, and four diagonal directions) on the voltage plane. The search path is dynamically adjusted based on optical power feedback, requiring only an average of 20-30 measurements to stably converge to the global peak value.
[0092] Compared to existing technologies that require more than 300 exhaustive full-grid scans, the embodiments of this invention control the total number of measurements per channel to 100-110, a reduction of 65%-70%. Based on a single measurement time of 50ms, the single-channel calibration time is reduced from approximately 16.5 seconds to approximately 5.5 seconds, improving efficiency by 3 times and significantly shortening the single-channel calibration time.
[0093] Optionally, the maximum optical power point search method for an optical switch further includes the following steps: Assign a management index to each optical switch channel; store the coarse scan initial voltage value pair, multiple coarse scan voltage value pairs, fine scan initial voltage value pair, first optimal voltage value and second optimal voltage value of the corresponding optical switch channel according to the management index.
[0094] In this embodiment of the invention, the host computer assigns a unique management index (e.g., an integer number from 0 to N-1) to each optical switch channel, and uses the management index as a unified identifier to store all the key parameters generated by the corresponding optical switch channel during the search process in memory, including but not limited to coarse scan initial voltage value pairs, multiple coarse scan voltage value pairs, fine scan initial voltage value pairs, first optimal voltage value and second optimal voltage value.
[0095] As one possible implementation, assume that multiple parallel arrays are used to store the key parameters generated during the search process, as shown in Table 1, including but not limited to the following arrays. All arrays have a length of N, and the i-th element of the array stores the key parameters generated by the optical switch channel i during the search process.
[0096] Table 1
[0097] Before the search, the host computer allocates an independent storage unit for each optical switch channel and initializes all arrays through the controller. The search process for all optical switch channels first performs a coarse scan and then a fine scan. Before the start of each round, the voltage value to be detected in this round is determined based on the initial voltage value of each optical switch channel and stored in the corresponding nine-dot array.
[0098] The controller sends all voltage values in the nine-point array to the hardware execution unit, triggering batch measurements. The hardware sets the dual-mirror voltages of all optical switch channels in parallel. After the hardware stabilizes, the controller reads the optical power values from the power meters of all channels at once, traverses the management indices i=0 to N-1 of the optical switch channels, and independently updates the state array best_power_data_arr of each optical switch channel based on the current optical power value and the current power value of the i-th optical switch channel.
[0099] If the optical power value in this round is better than best_power_data_arr[i], then update best_power_data_arr[i] and update the corresponding voltage value to mems_A_preset_arr[i] and mems_B_preset_arr[i]. Through iterative exploration, determine the first and second best voltage values corresponding to the maximum optical power of each optical switch channel.
[0100] As can be seen, in this embodiment of the invention, a unique management index is assigned to each optical switch channel. The management index corresponds strictly one-to-one with the physical channel location on the hardware. All state data related to the search are stored in independent arrays in the same index order, so that the i-th array element always represents the corresponding state of the i-th optical switch channel, without the need to build an additional mapping table or pass the channel ID pointer.
[0101] Based on the array aligned with the management index, all voltage setting instructions for N channels are packaged into a single batch instruction and sent to the hardware execution unit at once via the high-speed bus. The hardware then completes the mirror voltage establishment and optical power acquisition for all channels in parallel. The host computer then reads all power meter results at once and automatically distributes the measurement data to the status array of the corresponding channel according to the same management index.
[0102] The search for all channels proceeds synchronously, and the status updates of each channel are independent yet logically related. This avoids the large amount of hardware idle time caused by waiting one by one in the traditional serial method, and also compresses the total calibration time to the time required for a single channel. It completely gets rid of the bottleneck that the total time increases linearly with the number of channels, making the total calibration time for 300 channels basically equivalent to that for a single channel. The overall utilization rate of the hardware power meter has increased from less than 0.4% to nearly 100%.
[0103] Based on the same inventive concept, the basic principle and technical effects of the maximum optical power point search device for optical switches provided in this embodiment are the same as those in the above embodiments. For the sake of brevity, any parts not mentioned in this embodiment can be referred to the corresponding content in the above embodiments.
[0104] Please refer to Figure 4 , Figure 4 This is a block diagram of a maximum optical power point search device 400 for an optical switch provided in an embodiment of the present invention. The maximum optical power point search device 400 is applied to a host computer 20 that is communicatively connected to an optical switch 10. The optical switch 10 includes multiple optical switch channels, each configured with a first adjustable reflector and a second adjustable reflector. The maximum optical power point search device 400 includes a coarse scan module 410, a determination module 420, and a fine scan module 430.
[0105] The coarse scan module 410 is used to acquire the initial coarse scan voltage value pairs of each optical switch channel; the initial coarse scan voltage value pairs are used to perform parallel search on each optical switch channel; multiple coarse scan voltage value pairs are selected for each optical switch channel with each initial coarse scan voltage value pair as the center. The determination module 420 is used to measure each optical switch channel according to multiple coarse scan voltage value pairs of each optical switch channel, and determine the coarse scan voltage value pair with the largest optical power value in the optical switch channel as the fine scan initial voltage value pair of the optical switch channel; the fine scan initial voltage value pair includes the first fine scan initial voltage value for driving the first adjustable reflector and the second fine scan initial voltage value for driving the second adjustable reflector. The fine scanning module 430 is used to fix the second fine scanning initial voltage value of each optical switch channel, start detection from the first fine scanning initial voltage value, and determine the voltage value of the first adjustable reflector corresponding to the maximum optical power value in the detected optical switch channel as the first optimal voltage value. The fine scanning module 430 is also used to fix the first optimal voltage value of each optical switch channel, start detection from the initial voltage value of the second fine scanning, and determine the voltage value of the second adjustable reflector corresponding to the maximum optical power value in the detected optical switch channel as the second optimal voltage value; the first optimal voltage value and the corresponding second optimal voltage value constitute the driving voltage combination corresponding to the maximum optical power point of the optical switch channel.
[0106] In summary, the maximum optical power point search device for an optical switch provided in this embodiment of the invention simultaneously performs a search on all optical switch channels. First, it acquires the initial coarse scan voltage value pairs for each optical switch channel, and then selects multiple coarse scan voltage value pairs centered on these pairs. After measurement, it determines the initial fine scan voltage value pairs. Next, it fixes the voltage of the second adjustable mirror to the initial fine scan voltage value, and adjusts only the voltage of the first adjustable mirror, detecting and determining the first optimal voltage value that maximizes the optical power on its voltage plane. Then, it fixes the voltage of the first adjustable mirror to the first optimal voltage value, and adjusts only the voltage of the second adjustable mirror, detecting and determining the second optimal voltage value that maximizes the optical power on its voltage plane. This ensures that each change in optical power is uniquely attributed to the driving adjustment of a single mirror, thereby solving the directional ambiguity problem caused by dual-mirror coupling. In this way, it can efficiently complete batch calibration of hundreds of channels and stably converge to the global maximum optical power point.
[0107] Optionally, the coarse scan module 410 is used to select multiple first coarse scan voltage values on the voltage plane of each first adjustable reflector, centered on the first coarse scan initial voltage value of the first adjustable reflector; and to select multiple second coarse scan voltage values on the voltage plane of the corresponding second adjustable reflector, centered on the second coarse scan initial voltage value of the second adjustable reflector; and to form a coarse scan voltage value pair by the first coarse scan voltage value and the corresponding second coarse scan voltage value.
[0108] Optionally, the determining module 420 is used to apply corresponding coarse scan voltage value pairs to each optical switch channel to drive the first adjustable reflector to rotate according to the first coarse scan voltage value, drive the second adjustable reflector to rotate according to the second coarse scan voltage value, and measure the optical power value corresponding to each coarse scan voltage value pair; obtain the optical power value corresponding to multiple coarse scan voltage value pairs for each optical switch channel, and determine the coarse scan voltage value pair with the largest optical power value in the same optical switch channel as the fine scan initial voltage value pair of the optical switch channel.
[0109] Optionally, the coarse scan module 410 is used to expand in eight preset directions centered on the initial coarse scan voltage value, and select multiple initial coarse scan voltage values.
[0110] Optionally, the fine-scan module 430 is used to generate a first fine-scan region and multiple first fine-scan voltage values on the voltage plane of the first adjustable mirror for each optical switch channel, centered on the first fine-scan initial voltage value; the first fine-scan region is a rectangular region within the voltage plane of the first adjustable mirror with a side length of a preset coarse-scan step size centered on the first fine-scan initial voltage value; the first fine-scan voltage value is applied to the first adjustable mirror sequentially, the second fine-scan initial voltage value is applied to the second adjustable mirror, and the optical power value corresponding to each first fine-scan voltage value is measured.
[0111] If the optical power value corresponding to the initial voltage value of the first fine scan is greater than the optical power value corresponding to the first fine scan voltage value, the initial voltage value of the first fine scan is determined as the first optimal voltage value; if the optical power value corresponding to the initial voltage value of the first fine scan is not greater than the optical power value corresponding to the first fine scan voltage value, the first fine scan voltage value with the largest optical power value is determined as the new initial voltage value of the first fine scan, and the exploration of new first fine scan voltage values continues until the edge of the first fine scan region is explored and the iteration stops, and the first fine scan voltage value with the largest optical power value is determined as the first optimal voltage value.
[0112] Optionally, the fine-scan module 430 is used to generate a second fine-scan region and multiple second fine-scan voltage values on the voltage plane of the second adjustable mirror for each optical switch channel, centered on the initial second fine-scan voltage value; the second fine-scan region is a rectangular region within the voltage plane of the second adjustable mirror with a side length of a preset coarse-scan step size centered on the initial second fine-scan voltage value; a first optimal voltage value is sequentially applied to the first adjustable mirror, a second fine-scan voltage value is applied to the second adjustable mirror, and the optical power value corresponding to each second fine-scan voltage value is measured.
[0113] If the optical power value corresponding to the initial voltage value of the second fine scan is greater than the optical power value corresponding to the second fine scan voltage value, the initial voltage value of the second fine scan is determined as the second optimal voltage value; if the optical power value corresponding to the initial voltage value of the second fine scan is not greater than the optical power value corresponding to the second fine scan voltage value, the second fine scan voltage value with the largest optical power value is determined as the new initial voltage value of the second fine scan, and the exploration of new second fine scan voltage values continues until the edge of the second fine scan region is reached and the iteration stops, and the second fine scan voltage value with the largest optical power value is determined as the second optimal voltage value.
[0114] Optionally, the determining module 420 is also used to assign a management index to each optical switch channel; and to store, according to the management index, the coarse scan initial voltage value pair, multiple coarse scan voltage value pairs, fine scan initial voltage value pair, first optimal voltage value and second optimal voltage value of the corresponding optical switch channel.
[0115] Please refer to Figure 5 This is a block diagram of a host computer 500 provided in an embodiment of the present invention. The host computer 500 includes a memory 510, a processor 520, and a communication module 530. The memory 510, processor 520, and communication module 530 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines.
[0116] The memory 510 is used to store programs or data. The memory 510 may be, but is not limited to, random access memory, read-only memory, programmable read-only memory, erasable read-only memory, electrically erasable read-only memory, etc.
[0117] The processor 520 is used to read / write data or programs stored in the memory 510 and perform corresponding functions. For example, when a computer program stored in the memory 510 is executed by the processor 520, the maximum optical power point search method for the optical switch disclosed in the above embodiments can be implemented.
[0118] The communication module 530 is used to establish a communication connection between the host computer 500 and other communication terminals via the network, and to send and receive data via the network.
[0119] It should be understood that, Figure 5 The structure shown is only a schematic diagram of the host computer 500. The host computer 500 may also include components such as... Figure 5 The more or fewer components shown, or having the same Figure 5 The different configurations shown. Figure 5 The components shown can be implemented using hardware, software, or a combination thereof.
[0120] This invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor 520, implements the maximum optical power point search method for optical switches disclosed in the above embodiments.
[0121] This invention also provides a program product that, when executed by processor 520, implements the maximum optical power point search method for optical switches disclosed in the above embodiments.
[0122] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus embodiments described above are merely illustrative; for example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of the invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0123] In addition, the functional modules in the various embodiments of the present invention can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0124] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0125] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for searching the maximum optical power point of an optical switch, characterized in that, A host computer is applied to communicate with an optical switch, the optical switch including multiple optical switch channels, each optical switch channel being configured with a first adjustable reflector and a second adjustable reflector; the method includes: Obtain the initial coarse scan voltage value pair for each optical switch channel; the initial coarse scan voltage value pair is used to perform parallel search on each optical switch channel; Multiple coarse scan voltage value pairs are selected for each optical switch channel, centered on each of the aforementioned coarse scan initial voltage value pairs. Each optical switch channel is measured according to multiple coarse scan voltage value pairs, and the coarse scan voltage value pair with the largest optical power value in the optical switch channel is determined as the fine scan initial voltage value pair of the optical switch channel; the fine scan initial voltage value pair includes the first fine scan initial voltage value for driving the first adjustable reflector and the second fine scan initial voltage value for driving the second adjustable reflector. The initial voltage value of the second fine scan of each optical switch channel is fixed. Starting from the initial voltage value of the first fine scan, the voltage value of the first adjustable mirror corresponding to the maximum optical power value detected in the optical switch channel is determined as the first optimal voltage value. A first optimal voltage value is fixed for each of the optical switch channels. Starting from the initial voltage value of the second fine scan, the voltage value of the second adjustable mirror corresponding to the maximum optical power value detected in the optical switch channel is determined as the second optimal voltage value. The first optimal voltage value and the corresponding second optimal voltage value constitute the driving voltage combination corresponding to the maximum optical power point of the optical switch channel.
2. The maximum optical power point search method for an optical switch according to claim 1, characterized in that, The selection of multiple coarse scan voltage value pairs for each optical switch channel, centered on each of the aforementioned coarse scan initial voltage value pairs, includes: On the voltage plane of each of the first adjustable mirrors, multiple first coarse scan voltage values are selected with the first coarse scan initial voltage value of the first adjustable mirror as the center. In the voltage plane of the corresponding second adjustable reflector, with the second coarse scan initial voltage value of the second adjustable reflector in the coarse scan initial voltage value pair as the center, multiple second coarse scan voltage values are selected; the first coarse scan voltage value and the corresponding second coarse scan voltage value form a coarse scan voltage value pair.
3. The maximum optical power point search method for an optical switch according to claim 2, characterized in that, The step of measuring each optical switch channel based on multiple coarse scan voltage value pairs for each optical switch channel, and determining the coarse scan voltage value pair with the highest optical power value in each optical switch channel as the initial fine scan voltage value pair for the optical switch channel, includes: A corresponding coarse scan voltage value pair is applied to each of the optical switch channels to drive the first adjustable reflector to rotate according to the first coarse scan voltage value, drive the second adjustable reflector to rotate according to the second coarse scan voltage value, and measure the optical power value corresponding to each of the coarse scan voltage value pairs. Obtain the optical power value corresponding to multiple coarse scan voltage value pairs for each optical switch channel, and determine the coarse scan voltage value pair with the largest optical power value in the same optical switch channel as the fine scan initial voltage value pair for the optical switch channel.
4. The maximum optical power point search method for an optical switch according to claim 2, characterized in that, The step of selecting multiple first coarse scan voltage values centered on the first coarse scan initial voltage value of the first adjustable reflector includes: Centered on the initial voltage value of the first coarse scan, the process extends in eight preset directions, selecting multiple initial coarse scan voltage values.
5. The maximum optical power point search method for an optical switch according to claim 1, characterized in that, The second fine-scan initial voltage value of each fixed optical switch channel, starting from the first fine-scan initial voltage value, determines the voltage value of the first adjustable reflector corresponding to the maximum detected optical power value in the optical switch channel as the first optimal voltage value, including: For each optical switch channel, on the voltage plane of the first adjustable reflector, a first fine scan region and multiple first fine scan voltage values are generated centered on the first fine scan initial voltage value; the first fine scan region is a rectangular region within the voltage plane of the first adjustable reflector with a side length of a preset coarse scan step value centered on the first fine scan initial voltage value. The first fine-scan voltage value is applied sequentially to the first adjustable reflector, the second fine-scan initial voltage value is applied to the second adjustable reflector, and the optical power value corresponding to each first fine-scan voltage value is measured. If the optical power value corresponding to the first fine scan initial voltage value is greater than the optical power value corresponding to the first fine scan voltage value, the first fine scan initial voltage value is determined as the first optimal voltage value. If the optical power value corresponding to the initial voltage value of the first fine scan is not greater than the optical power value corresponding to the first fine scan voltage value, the first fine scan voltage value with the largest optical power value is determined as the new initial voltage value of the first fine scan, and the exploration of new first fine scan voltage values continues until the edge of the first fine scan region is reached and the iteration stops. The first fine scan voltage value with the largest optical power value is determined as the first optimal voltage value.
6. The maximum optical power point search method for an optical switch according to claim 1, characterized in that, The first optimal voltage value for each fixed optical switch channel is determined by starting the second fine-scan initial voltage value and identifying the voltage value of the second adjustable mirror corresponding to the maximum optical power value detected within the optical switch channel as the second optimal voltage value. This includes: For each optical switch channel, on the voltage plane of the second adjustable mirror, a second fine scan region and multiple second fine scan voltage values are generated centered on the second fine scan initial voltage value; the second fine scan region is a rectangular region within the voltage plane of the second adjustable mirror with a side length of a preset coarse scan step size centered on the second fine scan initial voltage value. The first optimal voltage value is applied sequentially to the first adjustable reflector, and the second fine-scan voltage value is applied to the second adjustable reflector. The optical power value corresponding to each second fine-scan voltage value is measured. If the optical power value corresponding to the second fine scan initial voltage value is greater than the optical power value corresponding to the second fine scan voltage value, the second fine scan initial voltage value is determined as the second optimal voltage value; If the optical power value corresponding to the initial voltage value of the second fine scan is not greater than the optical power value corresponding to the second fine scan voltage value, the second fine scan voltage value with the largest optical power value is determined as the new initial voltage value of the second fine scan, and the exploration of new second fine scan voltage values continues until the edge of the second fine scan region is reached and the iteration stops. The second fine scan voltage value with the largest optical power value is determined as the second optimal voltage value.
7. The maximum optical power point search method for an optical switch according to any one of claims 1-6, characterized in that, The method further includes: Assign a management index to each of the optical switch channels; The management index stores the corresponding initial voltage value pairs for coarse scan, multiple pairs of coarse scan voltage values, initial voltage value pairs for fine scan, first optimal voltage value, and second optimal voltage value for the optical switch channel.
8. A maximum optical power point search device for an optical switch, characterized in that, A host computer used for communication with an optical switch, the optical switch including multiple optical switch channels, each optical switch channel being configured with a first adjustable reflector and a second adjustable reflector, the device comprising: A coarse scan module is used to obtain the initial coarse scan voltage value pairs of each optical switch channel; the initial coarse scan voltage value pairs are used to perform parallel searches on each optical switch channel; multiple coarse scan voltage value pairs are selected for each optical switch channel with each initial coarse scan voltage value pair as the center; The determination module is used to measure each optical switch channel according to multiple coarse scan voltage value pairs of each optical switch channel, and determine the coarse scan voltage value pair with the largest optical power value in the optical switch channel as the fine scan initial voltage value pair of the optical switch channel; the fine scan initial voltage value pair includes a first fine scan initial voltage value for driving the first adjustable reflector and a second fine scan initial voltage value for driving the second adjustable reflector; The fine-scan module is used to fix the second fine-scan initial voltage value of each optical switch channel, start detection from the first fine-scan initial voltage value, and determine the voltage value of the first adjustable reflector corresponding to the maximum optical power value detected in the optical switch channel as the first optimal voltage value. The fine-scan module is also used to fix the first optimal voltage value of each optical switch channel, start detection from the second fine-scan initial voltage value, and determine the voltage value of the second adjustable reflector corresponding to the maximum optical power value in the optical switch channel as the second optimal voltage value; the first optimal voltage value and the corresponding second optimal voltage value constitute the driving voltage combination corresponding to the maximum optical power point of the optical switch channel.
9. A host computer, characterized in that, It includes a processor and a memory, the memory storing a computer program that can be executed by the processor, the processor being able to execute the computer program to implement the maximum optical power point search method of the optical switch according to any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the maximum optical power point search method for the optical switch as described in any one of claims 1-7.