Wavelength detection method and device, computer equipment and storage medium

By filtering and scanning the optical signals in the EPON system to obtain the short wavelength and long wavelength of the band and perform wavelength detection, the problem of wavelength line width and temperature drift of the FP laser is solved, and the actual wavelength of the optical signal is accurately detected.

CN119727907APending Publication Date: 2025-03-28CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411905661.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-23
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

The FP laser used in the EPON system has a wide wavelength line and a large temperature drift, making it difficult to accurately understand the actual wavelength of the optical signal.

Method used

By filtering and scanning the optical signal to be detected, the corresponding short wavelength and long wavelength of the wavelength of the wavelength are obtained, and then wavelength detection is performed based on these wavelengths to determine the actual wavelength of the optical signal.

Benefits of technology

Accurate detection of the actual wavelength of the optical signal is achieved, and the problem of inaccurate wavelength detection caused by factors such as temperature drift is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119727907A_ABST
    Figure CN119727907A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of wireless communication, in particular to a wavelength detection method and device, computer equipment and a storage medium. The method comprises the following steps: performing filtering scanning on a to-be-detected optical signal to obtain a waveband short wavelength and a waveband long wavelength corresponding to the to-be-detected optical signal; and performing wavelength detection on the to-be-detected optical signal according to the waveband short wavelength and the waveband long wavelength to obtain an actual wavelength corresponding to the to-be-detected optical signal. According to the invention, effective detection of the actual wavelength of the to-be-detected optical signal is realized, and inaccurate wavelength detection of the to-be-detected optical signal caused by other influence factors in the detection process is prevented.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless communication technology, and in particular to a wavelength detection method, device, computer equipment and storage medium. Background Art

[0002] With the rapid growth of edge computing, cloud and Internet applications, the demand for high data traffic in optical fiber communications has surged. As communication systems continue to evolve, they need to be compatible with multiple generations of access network communication systems. The EPON uplink wavelength range is 1260nm-1360nm, occupying a large section of short, low-dispersion, water-peak-free, high-quality communication bands.

[0003] However, EPON (Ethernet Passive Optical Network) uses FP (Fabry-Perot) lasers, which have a wavelength linewidth greater than 1nm (nanometer) and large temperature drift, making it difficult to accurately know the actual wavelength corresponding to the optical signal. Summary of the invention

[0004] Based on this, it is necessary to provide a wavelength detection method, device, computer equipment and storage medium that can accurately obtain the actual wavelength corresponding to the optical signal in order to solve the above technical problems.

[0005] In a first aspect, the present application provides a wavelength detection method. The method comprises:

[0006] Performing filtering and scanning on the optical signal to be detected to obtain the short wavelength and long wavelength of the wavelength band corresponding to the optical signal to be detected;

[0007] The wavelength of the optical signal to be detected is detected according to the short wavelength of the wavelength band and the long wavelength of the wavelength band to obtain the actual wavelength corresponding to the optical signal to be detected.

[0008] In one embodiment, filtering and scanning the optical signal to be detected to obtain the short wavelength and long wavelength of the wavelength band corresponding to the optical signal to be detected includes:

[0009] When the initial optical power of the optical signal to be detected is greater than the first optical power threshold, the optical signal to be detected is filtered and scanned to obtain the short wavelength and long wavelength of the wavelength band corresponding to the optical signal to be detected.

[0010] In one embodiment, the wavelength detection of the optical signal to be detected is performed according to the short wavelength of the wavelength band and the long wavelength of the wavelength band to obtain the actual wavelength corresponding to the optical signal to be detected, including:

[0011] Obtaining the output optical power of the optical signal to be detected after filtering and scanning;

[0012] The wavelength of the optical signal to be detected is detected according to the output optical power, a preset second optical power threshold, the short wavelength of the wavelength band, and the long wavelength of the wavelength band to obtain an actual wavelength corresponding to the optical signal to be detected.

[0013] In one of the embodiments, the wavelength detection of the optical signal to be detected is performed according to the output optical power, the preset second optical power threshold, the short wavelength of the wavelength band, and the long wavelength of the wavelength band to obtain the actual wavelength corresponding to the optical signal to be detected, including:

[0014] determining a wavelength difference between a long wavelength of the waveband and a short wavelength of the waveband;

[0015] Taking the product of the wavelength difference and the ratio between the output optical power and the second optical power threshold as the wavelength adjustment amount for the long wavelength of the band;

[0016] The actual wavelength corresponding to the optical signal to be detected is determined according to the difference between the wavelength of the wavelength band and the wavelength adjustment amount.

[0017] In one embodiment, the method further comprises:

[0018] According to a preset optical signal power interval, the power of the original optical signal is adjusted to obtain the optical signal to be detected; wherein the accumulated value of the pulse optical power of the optical signal to be detected is within the optical signal power interval.

[0019] In one of the embodiments, the power adjustment of the original optical signal according to the preset optical signal power range includes:

[0020] If the accumulated value of the pulse optical power of the original optical signal is greater than the maximum power of the optical signal power interval, the power of the original optical signal is attenuated;

[0021] If the accumulated value of the pulse optical power of the original optical signal is less than the minimum power value of the optical signal power interval, the power of the original optical signal is increased.

[0022] In a second aspect, the present application also provides a wavelength detection device. The device comprises:

[0023] A scanning module, used for filtering and scanning the optical signal to be detected, to obtain the short wavelength and long wavelength of the wavelength band corresponding to the optical signal to be detected;

[0024] The detection module is used to perform wavelength detection on the optical signal to be detected according to the short wavelength of the wavelength band and the long wavelength of the wavelength band to obtain the actual wavelength corresponding to the optical signal to be detected.

[0025] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0026] Performing filtering and scanning on the optical signal to be detected to obtain the short wavelength and long wavelength of the wavelength band corresponding to the optical signal to be detected;

[0027] The wavelength of the optical signal to be detected is detected according to the short wavelength of the wavelength band and the long wavelength of the wavelength band to obtain the actual wavelength corresponding to the optical signal to be detected.

[0028] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0029] Performing filtering and scanning on the optical signal to be detected to obtain the short wavelength and long wavelength of the wavelength band corresponding to the optical signal to be detected;

[0030] The wavelength of the optical signal to be detected is detected according to the short wavelength of the wavelength band and the long wavelength of the wavelength band to obtain the actual wavelength corresponding to the optical signal to be detected.

[0031] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0032] Performing filtering and scanning on the optical signal to be detected to obtain the short wavelength and long wavelength of the wavelength band corresponding to the optical signal to be detected;

[0033] The wavelength of the optical signal to be detected is detected according to the short wavelength of the wavelength band and the long wavelength of the wavelength band to obtain the actual wavelength corresponding to the optical signal to be detected.

[0034] The above-mentioned wavelength detection method, device, computer equipment and storage medium obtain the short wavelength and long wavelength of the band corresponding to the optical signal to be detected by filtering and scanning the optical signal to be detected, and then, according to the short wavelength and long wavelength of the band, perform wavelength detection on the optical signal to be detected to obtain the actual wavelength corresponding to the optical signal to be detected; according to the above content, it can be seen that the present application obtains the short wavelength and long wavelength of the band corresponding to the optical signal to be detected, so as to reflect the wavelength of the optical signal to be detected under different optical powers according to the short wavelength and long wavelength of the band, and then, in the subsequent process of wavelength detection of the optical signal to be detected according to the short wavelength and long wavelength of the band, the effective detection of the actual wavelength of the optical signal to be detected is realized, thereby preventing inaccurate wavelength detection of the optical signal to be detected due to other influencing factors during the detection process. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 An application environment diagram of a wavelength detection method provided in an embodiment of the present application;

[0036] Figure 2 A schematic diagram of a first wavelength detection method provided in an embodiment of the present application;

[0037] Figure 3 A schematic diagram of the wavelength of the optical signal to be detected provided in an embodiment of the present application;

[0038] Figure 4 A schematic diagram of wavelength variation of an optical signal to be detected before and after filtering provided in an embodiment of the present application;

[0039] Figure 5 A schematic diagram of a second wavelength detection method provided in an embodiment of the present application;

[0040] Figure 6 A schematic diagram of a third wavelength detection method provided in an embodiment of the present application;

[0041] Figure 7 A schematic diagram of the structure of a wavelength detection system provided in an embodiment of the present application;

[0042] Figure 8 A structural block diagram of a wavelength detection device provided in an embodiment of the present application;

[0043] Fig. 9 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0045] It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. In the description of the present application, the description of the reference terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms is not necessarily for the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples without contradicting each other.

[0046] The wavelength detection method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. By filtering and scanning the optical signal to be detected, the short wavelength and long wavelength of the band corresponding to the optical signal to be detected are obtained, and then, according to the short wavelength and long wavelength of the band, the wavelength of the optical signal to be detected is detected to obtain the actual wavelength corresponding to the optical signal to be detected. Among them, the terminal 102 can be but is not limited to various personal computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented with an independent server or a server cluster consisting of multiple servers.

[0047] In one embodiment, Figure 2 As shown, a wavelength detection method is provided, which is applied to Figure 1 The server 104 in the example is used as an example to illustrate, and the following steps are included:

[0048] S201 , filtering and scanning the optical signal to be detected to obtain a short wavelength and a long wavelength of the wavelength band corresponding to the optical signal to be detected.

[0049] It should be noted that when filtering and scanning of the optical signal to be detected is required, a triangular filter can be pre-configured to filter and scan the optical signal to be detected through the triangular filter to obtain the short wavelength and long wavelength of the optical signal to be detected.

[0050] Among them, the triangular filter can also be called a triangular filter or a filter triangle, which is a filter with a triangular shape in frequency response. It can effectively filter out noise and interference within a specific frequency range while retaining useful signal components.

[0051] It is further explained that before filtering and scanning the optical signal to be detected, the first optical power threshold can be determined in advance, and the relationship between the initial optical power of the optical signal to be detected and the first optical power threshold can be judged. Then, when the initial optical power of the optical signal to be detected is greater than the first optical power threshold, the optical signal to be detected is filtered and scanned to obtain the short wavelength band and the long wavelength band corresponding to the optical signal to be detected.

[0052] When the initial optical power of the optical signal to be detected is not greater than the first optical power threshold, it is determined that the actual wavelength of the optical signal to be detected is outside the measurement band. At this time, the optical signal to be detected is not filtered and scanned, and a wavelength detection result that the wavelength of the optical signal to be detected is outside the measurement band is fed back.

[0053] In one embodiment of the present application, when filtering and scanning the optical signal to be detected is performed through a triangular filter, the optical signal to be detected can be input into the triangular filter to obtain the signal wavelength of the optical signal to be detected at different optical powers fed back by the triangular filter, such as Figure 3 As shown, wavelength 1 is the short wavelength of the band corresponding to the optical signal to be detected, wavelength 2 is the long wavelength of the band corresponding to the optical signal to be detected, and wavelength 3 is the out-of-band wavelength.

[0054] Furthermore, the power changes of wavelength 1, wavelength 2 and wavelength 3 corresponding to the optical signal to be detected before and after filtering and scanning by the triangular filter are as follows: Figure 4 shown.

[0055] S202, performing wavelength detection on the optical signal to be detected according to the short wavelength of the wavelength band and the long wavelength of the wavelength band to obtain an actual wavelength corresponding to the optical signal to be detected.

[0056] It should be noted that, when performing wavelength detection on the optical signal to be detected based on the short wavelength and the long wavelength of the band, it is also necessary to obtain the output optical power of the optical signal to be detected after filtering and scanning; then, based on the output optical power, a pre-set second optical power threshold, the short wavelength and the long wavelength of the band, the wavelength of the optical signal to be detected is detected to obtain the actual wavelength corresponding to the optical signal to be detected.

[0057] The above-mentioned wavelength detection method obtains the short wavelength and long wavelength of the band corresponding to the optical signal to be detected by filtering and scanning the optical signal to be detected, and then, based on the short wavelength and long wavelength of the band, performs wavelength detection on the optical signal to be detected to obtain the actual wavelength corresponding to the optical signal to be detected; according to the above content, it can be seen that the present application obtains the short wavelength and long wavelength of the band corresponding to the optical signal to be detected, so as to reflect the wavelength of the optical signal to be detected under different optical powers according to the short wavelength and long wavelength of the band, and then, in the subsequent process of wavelength detection of the optical signal to be detected according to the short wavelength and long wavelength of the band, the effective detection of the actual wavelength of the optical signal to be detected is realized, thereby preventing inaccurate wavelength detection of the optical signal to be detected due to other influencing factors during the detection process.

[0058] In one embodiment, if Figure 5 As shown, when it is necessary to perform wavelength detection on the optical signal to be detected according to the short wavelength of the wavelength band and the long wavelength of the wavelength band to obtain the actual wavelength corresponding to the optical signal to be detected, the following contents may be included:

[0059] S501, obtaining the output optical power of the optical signal to be detected after filtering and scanning.

[0060] In an embodiment of the present application, optical power detection may be performed on the optical signal to be detected after filtering and scanning, so as to obtain the output optical power of the optical signal to be detected after filtering and scanning.

[0061] S502 , performing wavelength detection on the optical signal to be detected according to the output optical power, a preset second optical power threshold, the short wavelength of the wavelength band, and the long wavelength of the wavelength band to obtain an actual wavelength corresponding to the optical signal to be detected.

[0062] It should be noted that after determining the output optical power of the optical signal to be detected after filtering and scanning, the wavelength detection of the optical signal to be detected may include the following: determining the wavelength difference between the long wavelength of the band and the short wavelength of the band; taking the product of the wavelength difference and the ratio between the output optical power and the second optical power threshold as the wavelength adjustment amount for the long wavelength of the band; and determining the actual wavelength corresponding to the optical signal to be detected according to the difference between the long wavelength of the band and the wavelength adjustment amount.

[0063] Specifically, according to the above content, a calculation formula for the actual wavelength corresponding to the optical signal to be detected can be determined, and the calculation formula is as follows:

[0064]

[0065] Among them, λ refers to the actual wavelength corresponding to the optical signal to be detected; λ1 refers to the short wavelength of the band; λ2 refers to the short wavelength of the band; P threfers to the second optical power threshold; P refers to the output optical power of the optical signal to be detected after filtering and scanning.

[0066] The above wavelength detection method obtains the output optical power of the optical signal to be detected after filtering and scanning, so as to substitute the output optical power, the preset second optical power threshold, the short wavelength of the band and the long wavelength of the band into the calculation formula for the actual wavelength to obtain the actual wavelength corresponding to the optical signal to be detected, thereby realizing effective detection of the actual wavelength of the optical signal to be detected and preventing inaccurate wavelength detection of the optical signal to be detected due to other influencing factors during the detection process.

[0067] In one embodiment, before filtering and scanning the optical signal to be detected, the following contents may also be included:

[0068] According to the preset optical signal power range, the power of the original optical signal is adjusted to obtain the optical signal to be detected; wherein the accumulated value of the pulse optical power of the optical signal to be detected is within the optical signal power range.

[0069] Specifically, if the accumulated value of the pulse optical power of the original optical signal is greater than the maximum power value of the optical signal power interval, the power of the original optical signal is attenuated; if the accumulated value of the pulse optical power of the original optical signal is less than the minimum power value of the optical signal power interval, the power of the original optical signal is increased.

[0070] In one embodiment of the present application, a power adjustment module can be pre-configured to output the original optical signal into the power adjustment module before filtering and scanning the optical signal to be detected, so that the power adjustment module and the optical signal power range are associated with each other, and then, the optical signal to be detected is obtained by attenuating the power of the original optical signal, or increasing the power of the original optical signal; wherein the accumulated value of the pulse optical power of the optical signal to be detected is within the optical signal power range.

[0071] The above wavelength detection method adjusts the power of the original optical signal so that the accumulated value of the pulse optical power of the optical signal to be detected can be within the optical signal power range, thereby ensuring the smooth implementation of the subsequent filtering scanning of the optical signal to be detected and improving the accuracy of determining the actual wavelength corresponding to the optical signal to be detected.

[0072] In one embodiment, if Figure 6 As shown, when it is necessary to determine the actual wavelength corresponding to the optical signal to be detected, the following contents may be included:

[0073] S601, adjusting the power of an original optical signal according to a preset optical signal power range to obtain an optical signal to be detected.

[0074] S602 : When the initial optical power of the optical signal to be detected is greater than the first optical power threshold, filter scan the optical signal to be detected to obtain a short wavelength and a long wavelength of the wavelength band corresponding to the optical signal to be detected.

[0075] S603, obtaining the output optical power of the optical signal to be detected after filtering and scanning.

[0076] S604, determining the wavelength difference between the long wavelength of the waveband and the short wavelength of the waveband.

[0077] S605: The product of the wavelength difference and the ratio between the output optical power and the second optical power threshold is used as the wavelength adjustment amount for the long wavelength of the wavelength band.

[0078] S606, determining the actual wavelength corresponding to the optical signal to be detected according to the difference between the wavelength of the wavelength band and the wavelength adjustment amount.

[0079] In one embodiment of the present application, Figure 7 As shown, the wavelength detection system for executing the wavelength detection method may include a power adjustment module, a triangular filter and a wavelength calculation module; the detection signal is sent by the transmitting end ONU, and is received by the OLT receiving end after passing through the ODN network. A part of the light passing through the optical splitting module is used for reception by the communication module to perform normal communication functions, and the other part is sent to the wavelength detection system, and part of the original optical signal enters the power adjustment module to be adjusted to a fixed value to obtain the optical signal to be detected; then the optical signal to be detected is input into the triangular filter, and the triangular filter outputs the output optical power of the optical signal to be detected after filtering and scanning, and the output optical power of the triangular filter is input into the wavelength calculation module, and the wavelength calculation module performs wavelength detection on the optical signal to be detected according to the output optical power, a preset second optical power threshold, the short wavelength of the band and the long wavelength of the band, and determines the actual wavelength corresponding to the optical signal to be detected.

[0080] The above-mentioned wavelength detection method obtains the short wavelength and long wavelength of the band corresponding to the optical signal to be detected by filtering and scanning the optical signal to be detected, and then, based on the short wavelength and long wavelength of the band, performs wavelength detection on the optical signal to be detected to obtain the actual wavelength corresponding to the optical signal to be detected; according to the above content, it can be seen that the present application obtains the short wavelength and long wavelength of the band corresponding to the optical signal to be detected, so as to reflect the wavelength of the optical signal to be detected under different optical powers according to the short wavelength and long wavelength of the band, and then, in the subsequent process of wavelength detection of the optical signal to be detected according to the short wavelength and long wavelength of the band, the effective detection of the actual wavelength of the optical signal to be detected is realized, thereby preventing inaccurate wavelength detection of the optical signal to be detected due to other influencing factors during the detection process.

[0081] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0082] Based on the same inventive concept, the embodiment of the present application also provides a wavelength detection device for implementing the wavelength detection method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more wavelength detection device embodiments provided below can refer to the limitations on the wavelength detection method above, and will not be repeated here.

[0083] In one embodiment, Figure 8 As shown, a wavelength detection device is provided, comprising: a scanning module 10 and a detection module 20, wherein:

[0084] The scanning module 10 is used to filter and scan the optical signal to be detected to obtain the short wavelength and long wavelength of the wavelength band corresponding to the optical signal to be detected.

[0085] The detection module 20 is used to perform wavelength detection on the optical signal to be detected according to the short wavelength of the wavelength band and the long wavelength of the wavelength band to obtain the actual wavelength corresponding to the optical signal to be detected.

[0086] In one embodiment, when the initial optical power of the optical signal to be detected is greater than the first optical power threshold, the optical signal to be detected is filtered and scanned to obtain the short wavelength and long wavelength of the wavelength band corresponding to the optical signal to be detected.

[0087] In one embodiment, the output optical power of the optical signal to be detected after filtering and scanning is obtained;

[0088] The wavelength of the optical signal to be detected is detected according to the output optical power, the preset second optical power threshold, the short wavelength of the wavelength band and the long wavelength of the wavelength band to obtain the actual wavelength corresponding to the optical signal to be detected.

[0089] In one embodiment, determining a wavelength difference between a long wavelength of a wavelength band and a short wavelength of a wavelength band;

[0090] The wavelength difference is multiplied by the ratio between the output optical power and the second optical power threshold as the wavelength adjustment amount for the long wavelength of the band;

[0091] The actual wavelength corresponding to the optical signal to be detected is determined according to the difference between the wavelength of the band and the wavelength adjustment amount.

[0092] In one embodiment, the power of the original optical signal is adjusted according to a preset optical signal power interval to obtain an optical signal to be detected; wherein the accumulated value of the pulse optical power of the optical signal to be detected is within the optical signal power interval.

[0093] In one embodiment, if the accumulated value of the pulse optical power of the original optical signal is greater than the maximum power of the optical signal power interval, the power of the original optical signal is attenuated;

[0094] If the accumulated value of the pulse optical power of the original optical signal is less than the minimum power value of the optical signal power interval, the power of the original optical signal is increased.

[0095] The above-mentioned wavelength detection device obtains the short wavelength and long wavelength of the band corresponding to the optical signal to be detected by filtering and scanning the optical signal to be detected, and then, based on the short wavelength and long wavelength of the band, performs wavelength detection on the optical signal to be detected to obtain the actual wavelength corresponding to the optical signal to be detected; according to the above content, it can be seen that the present application obtains the short wavelength and long wavelength of the band corresponding to the optical signal to be detected, so as to reflect the wavelength of the optical signal to be detected under different optical powers according to the short wavelength and long wavelength of the band, and then, in the subsequent process of wavelength detection of the optical signal to be detected according to the short wavelength and long wavelength of the band, the effective detection of the actual wavelength of the optical signal to be detected is realized, thereby preventing inaccurate wavelength detection of the optical signal to be detected due to other influencing factors during the detection process.

[0096] Each module in the above wavelength detection device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0097] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig. 9As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a wavelength detection method is realized. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0098] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0099] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0100] Perform filtering and scanning on the optical signal to be detected to obtain the short wavelength and long wavelength of the wavelength band corresponding to the optical signal to be detected;

[0101] The wavelength of the optical signal to be detected is detected according to the short wavelength of the wavelength band and the long wavelength of the wavelength band to obtain the actual wavelength corresponding to the optical signal to be detected.

[0102] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0103] When the initial optical power of the optical signal to be detected is greater than the first optical power threshold, the optical signal to be detected is filtered and scanned to obtain the short wavelength and long wavelength of the wavelength band corresponding to the optical signal to be detected.

[0104] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0105] Obtaining the output optical power of the optical signal to be detected after filtering and scanning;

[0106] The wavelength of the optical signal to be detected is detected according to the output optical power, the preset second optical power threshold, the short wavelength of the wavelength band and the long wavelength of the wavelength band to obtain the actual wavelength corresponding to the optical signal to be detected.

[0107] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0108] Determine the wavelength difference between the long wavelength of the band and the short wavelength of the band;

[0109] The wavelength difference is multiplied by the ratio between the output optical power and the second optical power threshold as the wavelength adjustment amount for the long wavelength of the band;

[0110] The actual wavelength corresponding to the optical signal to be detected is determined according to the difference between the wavelength of the band and the wavelength adjustment amount.

[0111] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0112] According to the preset optical signal power range, the power of the original optical signal is adjusted to obtain the optical signal to be detected; wherein the accumulated value of the pulse optical power of the optical signal to be detected is within the optical signal power range.

[0113] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0114] If the accumulated value of the pulse optical power of the original optical signal is greater than the maximum power of the optical signal power interval, the power of the original optical signal is attenuated;

[0115] If the accumulated value of the pulse optical power of the original optical signal is less than the minimum power value of the optical signal power interval, the power of the original optical signal is increased.

[0116] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0117] Perform filtering and scanning on the optical signal to be detected to obtain the short wavelength and long wavelength of the wavelength band corresponding to the optical signal to be detected;

[0118] The wavelength of the optical signal to be detected is detected according to the short wavelength of the wavelength band and the long wavelength of the wavelength band to obtain the actual wavelength corresponding to the optical signal to be detected.

[0119] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0120] When the initial optical power of the optical signal to be detected is greater than the first optical power threshold, the optical signal to be detected is filtered and scanned to obtain the short wavelength and long wavelength of the wavelength band corresponding to the optical signal to be detected.

[0121] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0122] Obtaining the output optical power of the optical signal to be detected after filtering and scanning;

[0123] The wavelength of the optical signal to be detected is detected according to the output optical power, the preset second optical power threshold, the short wavelength of the wavelength band and the long wavelength of the wavelength band to obtain the actual wavelength corresponding to the optical signal to be detected.

[0124] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0125] Determine the wavelength difference between the long wavelength of the band and the short wavelength of the band;

[0126] The wavelength difference is multiplied by the ratio between the output optical power and the second optical power threshold as the wavelength adjustment amount for the long wavelength of the band;

[0127] The actual wavelength corresponding to the optical signal to be detected is determined according to the difference between the wavelength of the band and the wavelength adjustment amount.

[0128] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0129] According to the preset optical signal power range, the power of the original optical signal is adjusted to obtain the optical signal to be detected; wherein the accumulated value of the pulse optical power of the optical signal to be detected is within the optical signal power range.

[0130] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0131] If the accumulated value of the pulse optical power of the original optical signal is greater than the maximum power of the optical signal power interval, the power of the original optical signal is attenuated;

[0132] If the accumulated value of the pulse optical power of the original optical signal is less than the minimum power value of the optical signal power interval, the power of the original optical signal is increased.

[0133] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0134] Perform filtering and scanning on the optical signal to be detected to obtain the short wavelength and long wavelength of the wavelength band corresponding to the optical signal to be detected;

[0135] The wavelength of the optical signal to be detected is detected according to the short wavelength of the wavelength band and the long wavelength of the wavelength band to obtain the actual wavelength corresponding to the optical signal to be detected.

[0136] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0137] When the initial optical power of the optical signal to be detected is greater than the first optical power threshold, the optical signal to be detected is filtered and scanned to obtain the short wavelength and long wavelength of the wavelength band corresponding to the optical signal to be detected.

[0138] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0139] Obtaining the output optical power of the optical signal to be detected after filtering and scanning;

[0140] The wavelength of the optical signal to be detected is detected according to the output optical power, the preset second optical power threshold, the short wavelength of the wavelength band and the long wavelength of the wavelength band to obtain the actual wavelength corresponding to the optical signal to be detected.

[0141] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0142] Determine the wavelength difference between the long wavelength of the band and the short wavelength of the band;

[0143] The wavelength difference is multiplied by the ratio between the output optical power and the second optical power threshold as the wavelength adjustment amount for the long wavelength of the band;

[0144] The actual wavelength corresponding to the optical signal to be detected is determined according to the difference between the wavelength of the band and the wavelength adjustment amount.

[0145] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0146] According to the preset optical signal power range, the power of the original optical signal is adjusted to obtain the optical signal to be detected; wherein the accumulated value of the pulse optical power of the optical signal to be detected is within the optical signal power range.

[0147] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0148] If the accumulated value of the pulse optical power of the original optical signal is greater than the maximum power of the optical signal power interval, the power of the original optical signal is attenuated;

[0149] If the accumulated value of the pulse optical power of the original optical signal is less than the minimum power value of the optical signal power interval, the power of the original optical signal is increased.

[0150] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0151] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0152] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0153] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A wavelength detection method, characterized in that: The method comprises: Performing filtering and scanning on the optical signal to be detected to obtain the short wavelength and long wavelength of the wavelength band corresponding to the optical signal to be detected; The wavelength of the optical signal to be detected is detected according to the short wavelength of the wavelength band and the long wavelength of the wavelength band to obtain the actual wavelength corresponding to the optical signal to be detected.

2. The method according to claim 1, characterized in that The filtering and scanning of the optical signal to be detected to obtain the short wavelength and long wavelength of the wavelength band corresponding to the optical signal to be detected includes: When the initial optical power of the optical signal to be detected is greater than the first optical power threshold, the optical signal to be detected is filtered and scanned to obtain the short wavelength and long wavelength of the wavelength band corresponding to the optical signal to be detected.

3. The method according to claim 1 or 2, characterized in that: The step of performing wavelength detection on the optical signal to be detected according to the short wavelength of the wavelength band and the long wavelength of the wavelength band to obtain an actual wavelength corresponding to the optical signal to be detected includes: Obtaining the output optical power of the optical signal to be detected after filtering and scanning; The wavelength of the optical signal to be detected is detected according to the output optical power, a preset second optical power threshold, the short wavelength of the wavelength band, and the long wavelength of the wavelength band to obtain an actual wavelength corresponding to the optical signal to be detected.

4. The method according to claim 3, characterized in that The step of performing wavelength detection on the optical signal to be detected according to the output optical power, a preset second optical power threshold, the short wavelength of the wavelength band, and the long wavelength of the wavelength band to obtain an actual wavelength corresponding to the optical signal to be detected includes: determining a wavelength difference between a long wavelength of the waveband and a short wavelength of the waveband; Taking the product of the wavelength difference and the ratio between the output optical power and the second optical power threshold as the wavelength adjustment amount for the long wavelength of the band; The actual wavelength corresponding to the optical signal to be detected is determined according to the difference between the wavelength of the wavelength band and the wavelength adjustment amount.

5. The method according to claim 1 or 2, characterized in that: The method further comprises: According to a preset optical signal power interval, the power of the original optical signal is adjusted to obtain the optical signal to be detected; wherein the accumulated value of the pulse optical power of the optical signal to be detected is within the optical signal power interval.

6. The method according to claim 5, characterized in that The power adjustment of the original optical signal according to the preset optical signal power range includes: If the accumulated value of the pulse optical power of the original optical signal is greater than the maximum power of the optical signal power interval, the power of the original optical signal is attenuated; If the accumulated value of the pulse optical power of the original optical signal is less than the minimum power value of the optical signal power interval, the power of the original optical signal is increased.

7. A wavelength detection device, characterized in that: The device comprises: A scanning module, used for filtering and scanning the optical signal to be detected, to obtain the short wavelength and long wavelength of the wavelength band corresponding to the optical signal to be detected; The detection module is used to perform wavelength detection on the optical signal to be detected according to the short wavelength of the wavelength band and the long wavelength of the wavelength band to obtain the actual wavelength corresponding to the optical signal to be detected.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.