Intelligent laser power calibration method and system, storage medium and electronic equipment

By intelligently dividing the drive current range and dynamic test density, the problem of low laser power calibration efficiency in laser therapy instruments is solved, and efficient and accurate power calibration is achieved.

CN119340779AActive Publication Date: 2025-01-21武汉翊晟科技有限公司
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411448279.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-17
Publication Date
2025-01-21
Estimated Expiration
2044-10-17

AI Technical Summary

Technical Problem

The prior art is difficult to meet the requirements of fast and accurate at the same time when laser power calibration is performed in laser therapy instruments, resulting in inefficient calibration.

Method used

By responding to the basic parameters and calibration accuracy requirements input by the user, determine the initial driving current values ​​at equal intervals, fit the first calibration curve between the initial laser power value and the driving current value, calculate the gradient change value, divide the driving current interval, and The target driving current value is determined according to the test density of the interval, and finally the second calibration curve between the target laser power value and the target driving current value is fitted to generate a power calibration result.

Benefits of technology

While ensuring the accuracy of laser power calibration, it significantly improves calibration efficiency and is suitable for laser therapy instruments that require high power control accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119340779A_ABST
    Figure CN119340779A_ABST
Patent Text Reader

Abstract

The invention provides an intelligent laser power calibration method and system, a storage medium and electronic equipment, and relates to the technical field of laser power calibration. According to the technical scheme provided by the invention, the first calibration curve is established based on the initial measurement data, then the driving current interval is intelligently divided by using the gradient change value, and differentiated test densities are adopted for the intervals with different characteristics. The self-adaptive test strategy ensures that high-precision measurement is maintained in a key area, unnecessary sampling points are reduced in a characteristic stable area at the same time, and compared with a laser power calibration method in the related technology, the self-adaptive test strategy has the advantages that the driving current interval is intelligently divided, and the density is dynamically tested; according to the technical scheme provided by the invention, the calibration efficiency can be remarkably improved while the power calibration precision of the laser is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of laser power calibration, and in particular to an intelligent laser power calibration method, system, storage medium and electronic device. Background Art

[0002] As the core component of laser therapy equipment, semiconductor lasers play an important role in the medical field. The working principle of this laser is based on the band structure of semiconductor materials, and the output optical power is controlled by adjusting the driving current. In theory, there is a certain correspondence between the output optical power and the driving current. However, in the actual working process, semiconductor lasers generate heat, and this thermal effect causes the output characteristics of the laser to change. Therefore, in order to ensure the accuracy and reliability of laser therapy equipment, power calibration of the laser becomes a necessary step.

[0003] The calibration method in the related art usually relies on determining a series of sampling points according to user needs or design specifications. At these preset sampling points, the system outputs the corresponding test current and measures the corresponding output power value. Subsequently, by curve fitting these test data, the corresponding relationship curve between power and current is obtained. The calibration accuracy of this method depends to a large extent on the density of the sampling points: the denser the sampling points, the more accurate the corresponding relationship curve obtained by fitting. However, in practical applications, especially for laser therapy devices that require extremely high power control accuracy, this method faces severe challenges. In order to achieve the required accuracy, a large number of sampling points are often required to be set, which inevitably leads to a long power calibration process and low efficiency. Therefore, the calibration method in the related art is difficult to meet the requirements of both speed and accuracy at the same time, which is an urgent problem to be solved for the power calibration of laser therapy devices that pursue high efficiency and high precision. Summary of the invention

[0004] The present application provides an intelligent laser power calibration method, system, storage medium and electronic device, which can improve the power calibration efficiency while meeting the laser power calibration accuracy.

[0005] In a first aspect, the present application provides an intelligent laser power calibration method, the method comprising:

[0006] In response to basic parameters of the laser to be tested and calibration accuracy requirements input by a user, determining initial drive current values ​​at equal intervals;

[0007] Controlling the laser to be tested to emit laser according to the initial driving current value to obtain an initial laser power value corresponding to the initial driving current value;

[0008] Fitting a first calibration curve between the initial laser power value and the initial driving current value, and calculating a gradient change value between adjacent initial driving current values;

[0009] Dividing a plurality of driving current intervals according to the gradient change value, and determining a target driving current value within the driving current interval according to a test density corresponding to the driving current interval;

[0010] Controlling the laser to be tested to emit laser according to the target driving current value to obtain a target laser power value corresponding to the target driving current value;

[0011] A second calibration curve between the target laser power value and the target driving current value is fitted to generate a power calibration result of the laser to be tested.

[0012] By adopting the above technical solution, a first calibration curve is established based on the initial measurement data, and then the driving current interval is intelligently divided using the gradient change value, and differentiated test densities are used for intervals with different characteristics. This adaptive test strategy ensures high-precision measurement in key areas, while reducing unnecessary sampling points in characteristic stable areas. By intelligently dividing the driving current interval and adopting dynamic test density, compared with the laser power calibration method in the related art, the technical solution provided by this application can significantly improve the calibration efficiency while ensuring the accuracy of laser power calibration.

[0013] Optionally, dividing a plurality of driving current intervals according to the gradient change value, and determining a target driving current value within the driving current interval according to a test density corresponding to the driving current interval, includes:

[0014] Determine the interval division level and the corresponding interval threshold according to the calibration accuracy requirement of the laser to be tested;

[0015] Comparing the gradient change value with the interval threshold corresponding to the interval division level to obtain a plurality of driving current intervals;

[0016] A target driving current value within the driving current interval is determined according to a test density corresponding to the driving current interval.

[0017] By adopting the above technical solution, the interval division level and the corresponding interval threshold are determined according to the calibration accuracy requirements of the laser to be tested, which enables the calibration process to adaptively adjust the granularity of the interval division according to different accuracy requirements. Then, by comparing the gradient change value with the interval threshold, the system can intelligently identify the change trend of the laser power-current characteristics and divide the entire drive current range into multiple intervals with different characteristics. This interval division method based on gradient change can accurately capture the key change points of laser performance and ensure more intensive measurements in areas where the power output characteristics change significantly. Finally, the corresponding test density is determined according to the characteristics of each drive current interval, and the target drive current value is determined accordingly. This differentiated test strategy not only ensures the measurement accuracy of the key area, but also avoids redundant measurements in the characteristic stable area. In this way, the scheme can significantly improve the calibration efficiency while ensuring the calibration accuracy, and is particularly suitable for lasers with high power control accuracy requirements and wide working range, such as medical laser therapy devices.

[0018] Optionally, when the interval division level is level 2, the method includes:

[0019] Determining whether the gradient change value between adjacent initial driving current values ​​is greater than the interval threshold;

[0020] If the gradient change value between adjacent initial driving current values ​​is greater than the interval threshold, the current between adjacent initial driving current values ​​is determined as a first driving current interval, and the first driving current interval corresponds to a first test density;

[0021] If the gradient change value between adjacent initial drive current values ​​is less than or equal to the interval threshold, the current between adjacent initial drive current values ​​is determined as a second drive current interval, the second drive current interval corresponds to a second test density, and the first test density is greater than the second test density.

[0022] By adopting the above technical solution, it is determined whether the gradient change value between adjacent initial drive current values ​​is greater than the interval threshold, and the system can quickly identify the change trend of the power-current characteristics of the laser. For the interval where the gradient change value is greater than the interval threshold, it is determined as the first drive current interval and a higher first test density is adopted, which ensures more intensive measurements in areas where the power output characteristics change significantly. On the contrary, for the interval where the gradient change value is less than or equal to the interval threshold, it is determined as the second drive current interval and a lower second test density is adopted, which avoids redundant measurements in areas where the characteristics are relatively stable. Through this differentiated test density allocation strategy, while ensuring the measurement accuracy of the key area, the number of measurement points in the non-key area is effectively reduced, thereby significantly improving the calibration efficiency while maintaining the overall calibration accuracy. For lasers with obvious segmented characteristics of power-current characteristics, such as semiconductor lasers that may have large gradient changes near the threshold current and near the saturation area. At the same time, due to the adoption of a simple two-level division strategy, the method is easy to implement and adjust, and has strong practicality and versatility.

[0023] Optionally, after comparing the gradient change value with the interval threshold corresponding to the interval division level to obtain a plurality of driving current intervals, the method includes:

[0024] Determining whether a gradient change value between adjacent initial driving current values ​​is greater than a preset error threshold;

[0025] If the gradient change value between the adjacent initial driving current values ​​is greater than the preset error threshold, the test density corresponding to the driving current interval is increased according to the difference between the gradient change value and the preset error threshold.

[0026] By adopting the above technical solution, when the gradient change value is greater than the preset error threshold, the system will dynamically increase the test density of the drive current interval according to the difference between the gradient change value and the preset error threshold. This mechanism can accurately identify areas where the laser power-current characteristics change particularly drastically and increase the sampling density of these areas in a targeted manner. In this way, the system can perform more detailed measurements of key areas while maintaining overall efficiency, thereby improving the overall accuracy of the calibration.

[0027] Optionally, after comparing the gradient change value with the interval threshold corresponding to the interval division level to obtain a plurality of driving current intervals, the method further includes:

[0028] If the gradient change values ​​of a plurality of adjacent driving current intervals are the same, the test density of the driving current intervals with the same gradient change value is reduced according to the number of the driving current intervals with the same gradient change value.

[0029] By adopting the above technical solution, the system will reduce the test density of these intervals accordingly according to the number of driving current intervals with the same gradient change value. This mechanism can effectively identify a large range of stable change trends in the laser power-current characteristics, and reduce the number of sampling points in these areas in a targeted manner. In this way, the system can significantly improve the calibration efficiency while maintaining the calibration accuracy. This adaptive test density adjustment strategy is particularly suitable for lasers with a long linear working range, such as some solid-state lasers or fiber lasers with stable working characteristics. This method can not only avoid redundant measurements in the characteristic stable area, but also flexibly allocate test resources according to the actual characteristics, which not only reduces the overall test time, but also ensures the measurement accuracy of key areas.

[0030] Optionally, the basic parameters of the laser to be tested include a maximum power value and a maximum driving current value, and the step of controlling the laser to be tested to emit laser light according to the initial driving current value to obtain an initial laser power value corresponding to the initial driving current value includes:

[0031] Sending the initial driving current value to the laser to be tested, so that the laser to be tested emits laser light in the order of the initial driving current values ​​from small to large, wherein the initial driving current value is generated according to the maximum driving current value and the calibration accuracy requirement;

[0032] Acquire in real time an initial laser power value corresponding to the initial driving current value collected by a power meter;

[0033] When the initial laser power value reaches the maximum power value, the laser to be tested is controlled to stop emitting laser.

[0034] By adopting the above technical solution, during the test process, the system obtains the initial laser power value collected by the power meter in real time. This real-time monitoring mechanism can timely capture the changes in the laser output characteristics and provide accurate initial data for subsequent fine calibration. Finally, when the initial laser power value reaches the preset maximum power value, the system will immediately control the laser to be tested to stop emitting lasers. This safety mechanism effectively prevents the laser from continuing to work when it exceeds the rated power range, thereby improving the safety of the laser power calibration process.

[0035] Optionally, fitting a second calibration curve between the target laser power value and the target driving current value to generate a power calibration result of the laser to be tested includes:

[0036] Determining the current scale value of the laser to be tested according to the calibration accuracy requirement;

[0037] Reading a power verification value corresponding to the current scale value in the second calibration curve, and recording the power verification value and the current scale value into a power verification table;

[0038] A power calibration result of the laser to be tested is generated according to the second calibration curve and the power calibration table.

[0039] By adopting the above technical solution, the power calibration result of the laser to be tested is generated by combining the second calibration curve and the power verification table. This dual characterization method not only retains the continuity and integrity of the calibration curve, but also provides intuitive and easy-to-read discrete data points in a table form. This method not only improves the accuracy and reliability of the calibration results, but also enhances the practicality and adaptability of the calibration results because the second calibration curve is obtained by fitting based on the optimized target drive current value and target laser power value. The power verification table facilitates the rapid search for the power output corresponding to a specific current value in actual applications, and the combination of the curve and the table makes the calibration results suitable for both scenarios that require continuous power adjustment and applications that require discrete power points.

[0040] In a second aspect, the present application provides an intelligent laser power calibration system, the system comprising:

[0041] An initial current setting module, used to determine the initial driving current values ​​of equal spacing in response to the basic parameters of the laser to be tested and the calibration accuracy requirements input by the user;

[0042] A first driving module, used for controlling the laser to be tested to emit laser according to the initial driving current value, and obtaining an initial laser power value corresponding to the initial driving current value;

[0043] A first processing module, used for fitting a first calibration curve between the initial laser power value and the initial driving current value, and calculating a gradient change value between adjacent initial driving current values;

[0044] a target current setting module, used to divide a plurality of driving current intervals according to the gradient change value, and determine a target driving current value within the driving current interval according to a test density corresponding to the driving current interval;

[0045] A second driving module is used to control the laser to be tested to emit laser according to the target driving current value, and obtain a target laser power value corresponding to the target driving current value;

[0046] The second processing module is used to fit a second calibration curve between the target laser power value and the target driving current value to generate a power calibration result of the laser to be tested.

[0047] In a third aspect, the present application provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing any one of the above methods.

[0048] In a fourth aspect, the present application provides an electronic device, comprising a processor, a memory and a transceiver, wherein the memory is used to store instructions, the transceiver is used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device performs any one of the methods described above.

[0049] In summary, the beneficial effects brought about by the technical solution of this application include:

[0050] By adopting the above technical solution, a first calibration curve is established based on the initial measurement data, and then the driving current interval is intelligently divided using the gradient change value, and differentiated test densities are used for intervals with different characteristics. This adaptive test strategy ensures high-precision measurement in key areas, while reducing unnecessary sampling points in characteristic stable areas. By intelligently dividing the driving current interval and adopting dynamic test density, compared with the laser power calibration method in the related art, the technical solution provided by this application can significantly improve the calibration efficiency while ensuring the accuracy of laser power calibration. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 It is a flowchart of an intelligent laser power calibration method provided in an embodiment of the present application;

[0052] Figure 2 is a schematic diagram of a scenario of intelligent laser power calibration provided in an embodiment of the present application;

[0053] Figure 3 It is a schematic diagram of the main interface of an intelligent laser power calibration system provided in an embodiment of the present application;

[0054] Figure 4 It is a structural schematic diagram of an intelligent laser power calibration system provided in an embodiment of the present application;

[0055] Figure 5 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application.

[0056] Description of reference numerals: 500, electronic device; 501, processor; 502, communication bus; 503, user interface; 504, network interface; 505, memory. DETAILED DESCRIPTION

[0057] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.

[0058] In the description of the embodiments of the present application, words such as "illustrative", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "illustrative", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "illustrative", "for example" or "for example" is intended to present related concepts in a specific way.

[0059] In the description of the embodiments of the present application, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

[0060] See also Figure 1 , is a flow chart of an intelligent laser power calibration method provided in an embodiment of the present application. The method can be implemented by a computer program, can be implemented by a single-chip microcomputer, or can be run on an intelligent laser power calibration system based on a von Neumann system. The computer program can be integrated into an application or run as an independent tool application. The specific steps of the intelligent laser power calibration method are described in detail below.

[0061] S101: In response to basic parameters of the laser to be tested and calibration accuracy requirements input by a user, determining initial driving current values ​​with equal spacing.

[0062] Among them, basic parameters refer to key parameters that describe the basic characteristics and working range of the laser. In the embodiment of the present application, it can be understood as a set of values ​​used to determine the initial conditions and constraints for laser power calibration. Specifically, basic parameters include but are not limited to maximum power value, maximum drive current value, threshold current, operating temperature range, wavelength, and beam quality factor. These parameters are used to determine the range and step size of the initial drive current value, set the upper limit of power measurement to ensure measurement safety, optimize the distribution of test points during the calibration process, provide necessary reference information for the calibration results, and ensure that the calibration process is carried out within the safe operating range of the laser.

[0063] Among them, the calibration accuracy requirement refers to the user or system's requirements and expectations for the accuracy of the laser power calibration results. In the embodiments of the present application, it can be understood that the accuracy parameters used to guide and control the entire calibration process directly affect the number of calibrated measurement points, measurement intervals, and the reliability of the final calibration results. The calibration accuracy requirement is usually expressed as a percentage value or an absolute error value, reflecting the maximum allowable deviation between the actual measurement value and the ideal value.

[0064] Among them, the initial drive current value refers to a series of current values ​​used to drive the laser to emit laser light for the first time during the laser power calibration process. In the embodiment of the present application, it can be understood as a set of drive current reference values ​​for obtaining initial laser power data points. These initial drive current values ​​are usually distributed at equal intervals, ranging from the threshold current of the laser to the maximum drive current value. They are selected based on the basic parameters of the laser to be tested and the calibration accuracy requirements specified by the user, with the aim of quickly obtaining a set of representative power-current data points over the entire working range.

[0065] In specific implementation, the system first receives basic parameters input by the user, including the maximum power value, maximum drive current value, threshold current, etc. of the laser, as well as the required calibration accuracy requirements. Based on these inputs, the system calculates the range and interval of the initial drive current value. Typically, the range of the initial drive current value starts from the threshold current and ends at the maximum drive current value. The selection of intervals needs to consider the balance between calibration accuracy requirements and efficiency. For example, for high-precision requirements, a smaller interval can be selected to obtain more initial data points; for lower precision requirements, a larger interval can be selected to speed up calibration. Based on these factors, the system uses an interpolation algorithm to generate a series of equally spaced initial drive current values. The advantage of this method is that it can provide evenly distributed initial measurement points while ensuring that the entire working range is covered, laying the foundation for subsequent curve fitting and interval division.

[0066] S102: Control the laser to be tested to emit laser according to the initial driving current value, and obtain an initial laser power value corresponding to the initial driving current value.

[0067] Wherein, the initial laser power value refers to the laser output power measured corresponding to the initial drive current value during the laser power calibration process. In the embodiment of the present application, it can be understood as a set of power data points used to establish an initial power-current relationship model. These initial laser power values ​​correspond to the initial drive current value one by one, and together constitute a preliminary description of the laser power characteristics. They reflect the output power response of the laser under different drive currents, covering the entire operating range from threshold current to maximum drive current. The acquisition of the initial laser power value is obtained by controlling the laser to be tested to emit a laser according to a preset initial drive current value sequence, and using a precision power meter to measure in real time.

[0068] In specific implementation, the system first sends a predetermined sequence of initial drive current values ​​to the control unit of the laser to be tested. The laser to be tested then emits lasers in order from small to large according to these current values. At the same time, the system collects the laser output power corresponding to each initial drive current value in real time through a high-precision power meter optically coupled to the laser to be tested, that is, the initial laser power value. During the acquisition process, the system will continuously monitor the initial laser power value. Once it detects that the power reaches the maximum power value of the laser, it will immediately stop increasing the drive current to ensure measurement safety.

[0069] For details, please see Figure 2 , is a schematic diagram of a scenario of intelligent laser power calibration provided by an embodiment of the present application, in which a computer is installed with intelligent laser power automatic calibration system software, and is connected to a power meter via a USB data cable, and at the same time, the computer is connected to a semiconductor laser therapeutic device (i.e., the laser to be tested) via an RS232 data cable. The laser of the semiconductor laser therapeutic device is output through optical fiber coupling, and the output laser is irradiated on the test probe of the power meter. Its working principle is that the computer sends the driving current to the laser therapeutic device through software, and after the laser to be tested outputs the laser, the power value collected is sent to the computer through the power meter for subsequent power verification.

[0070] Based on the above embodiment, as an optional implementation manner, the basic parameters of the laser to be tested include a maximum power value and a maximum driving current value, and step S102 specifically includes S201-S203.

[0071] S201: sending an initial driving current value to the laser to be tested, so that the laser to be tested emits laser light in an ascending order of the initial driving current values, wherein the initial driving current value is generated according to the maximum driving current value and the calibration accuracy requirement.

[0072] In specific implementation, the system applies each initial drive current value to the laser to be tested in turn through a precision control circuit. For each drive current value, the system waits for the laser to reach a thermally stable state (usually takes a few milliseconds to tens of milliseconds), and then uses a calibrated photodetector to accurately measure and record the corresponding laser power output. This process continues until all initial drive current values ​​have been tested.

[0073] S202: Acquire in real time an initial laser power value corresponding to an initial driving current value collected by a power meter.

[0074] During the implementation process, when the system sends the initial drive current values ​​to the laser to be tested in order from small to large, a precisely calibrated power meter is placed on the laser output optical path. This power meter is usually a high-precision photodetector that can accurately measure the output power of the laser. For each initial drive current value, the system waits for the laser to reach a stable state (usually takes a few milliseconds to tens of milliseconds), and then immediately triggers the power meter to measure. The data collected by the power meter is transmitted to the control system in real time through a high-speed data acquisition interface.

[0075] The control system pairs and stores each initial drive current value with its corresponding initial laser power value. This process is done in real time, meaning that each time a new drive current value is applied, the system immediately records the corresponding power output. This real-time performance is important for capturing instantaneous changes in laser performance, especially when laser characteristics may change rapidly over time.

[0076] S203: When the initial laser power value reaches the maximum power value, the laser to be tested is controlled to stop emitting laser.

[0077] An important safety and control mechanism is introduced in this embodiment, that is, when the initial laser power value reaches the preset maximum power value, the system will automatically control the laser to be tested to stop emitting laser. That is, when the system detects that the initial laser power value reaches or exceeds the set maximum power value, it will immediately trigger a series of operations. First, the system will immediately stop sending higher drive current values ​​to the laser to be tested. At the same time, it will quickly reduce the current drive current until the laser output is completely turned off. This process is usually completed within milliseconds to ensure that the laser does not continue to work at a high power state.

[0078] For detailed implementation process, please refer to Figure 3 , is a schematic diagram of the main interface of an intelligent laser power calibration system provided in an embodiment of the present application, Figure 3The indicators in the figure respectively represent the code or serial number, wavelength, maximum power and maximum current of the laser to be tested. The indicator lights of the power meter and the laser therapy device indicate whether their corresponding connection status and working status are ready. After the user enters the corresponding basic parameters and clicks the FIRE button, the laser to be tested in the laser therapy device can be controlled to run and emit laser light. The power display window displays the laser power value read from the power meter, the current window displays the driving current of the laser to be tested, and the curve window displays the power-current calibration curve.

[0079] S103: Fitting a first calibration curve between initial laser power values ​​and initial driving current values, and calculating gradient change values ​​between adjacent initial driving current values.

[0080] Among them, the first calibration curve refers to a preliminary power-current relationship curve obtained by fitting based on the initial drive current value and the corresponding initial laser power value. In the embodiment of the present application, it can be understood as a preliminary mathematical description for characterizing the power output characteristics of the laser to be tested within the entire working range. This curve is obtained by curve fitting the initial measurement data, usually using polynomial fitting or other suitable mathematical methods. The first calibration curve provides a general trend of the laser output power changing with the drive current.

[0081] Wherein, the gradient change value refers to the rate of change of the initial laser power value between adjacent initial drive current values. In the embodiment of the present application, it can be understood as a numerical indicator for quantitatively describing the local change characteristics of the laser power-current relationship. Specifically, the gradient change value reflects the speed of change of the laser output power as the drive current increases within a specific drive current interval. This value can be obtained by calculating the power difference between two adjacent initial drive current points divided by the current difference. The gradient change value is used to identify the key change points and different characteristic areas in the laser power-current characteristic curve. By analyzing the distribution and change trend of the gradient change value, the system can intelligently divide the drive current interval and determine the area where more intensive measurements are required, thereby optimizing the distribution of measurement points in the subsequent fine calibration process.

[0082] In specific implementation, the system first uses the obtained initial drive current value and the corresponding initial laser power value data pair to fit the first calibration curve using appropriate mathematical methods (such as polynomial fitting or piecewise linear fitting). This curve provides an overview of the power output characteristics of the laser in the entire working range, which helps to identify possible abnormal data points and overall trends. Subsequently, the system calculates the gradient change value between adjacent initial drive current values. The specific calculation method is to calculate the ratio of the difference between their corresponding initial laser power values ​​and the difference between the current values ​​for each pair of adjacent initial drive current values. This information is crucial for the subsequent division of the drive current interval and adjustment of the measurement density. For example, in areas with large gradient change values, more dense measurement points may be required to accurately describe the power change; while in areas with small and stable gradient change values, the measurement points can be appropriately reduced to improve efficiency. This data-driven analysis method enables the technical solution provided in this application to adaptively adopt corresponding adjustment and calibration strategies for different characteristic areas.

[0083] S104: Divide a plurality of driving current intervals according to the gradient change value, and determine a target driving current value within the driving current interval according to a test density corresponding to the driving current interval.

[0084] Wherein, the driving current interval refers to a series of continuous current ranges divided according to the initial measurement data and the gradient change value analysis results. In the embodiment of the present application, it can be understood as a regional division for classifying and describing the power output characteristics of the laser in different driving current ranges. The division of the driving current interval is determined based on the distribution and change trend of the gradient change value and the characteristics of the first calibration curve. The power-current relationship within each interval is relatively consistent, but there may be significant differences between different intervals. The system adopts different measurement strategies for intervals with different characteristics, such as increasing the density of measurement points in intervals with drastic power changes, and appropriately reducing the measurement points in intervals with gentle changes.

[0085] Among them, the test density refers to the frequency of power measurement or the density of measurement points in a specific drive current interval. In the embodiment of the present application, it can be understood as a quantitative description of the distribution density of measurement points when fine calibration is performed in each drive current interval. The test density directly reflects the level of detail of power measurement in a given interval, usually expressed as the number of measurement points within a unit current range.

[0086] Among them, the target drive current value refers to a series of specific drive current values ​​determined according to the test density and drive current interval division during the fine calibration process. In the embodiment of the present application, it can be understood as a drive current set point for guiding the laser to perform accurate power measurement during the fine calibration stage. These target drive current values ​​are intelligently generated based on the initial measurement results, gradient change value analysis, and drive current interval division, and they are distributed in each interval according to the corresponding test density. The selection of the target drive current value is intended to optimize the allocation of measurement resources, ensuring that there are sufficiently dense measurement points in areas with obvious power change characteristics, while appropriately reducing the measurement points in areas with relatively stable characteristics.

[0087] On the basis of the above embodiment, as an optional implementation manner, with respect to the division of the driving current intervals and the determination of the target driving current value, step S104 further includes S301 - S303 .

[0088] S301: Determine the interval division level and the corresponding interval threshold according to the calibration accuracy requirement of the laser to be tested.

[0089] The interval division level refers to the hierarchical standard for classifying and dividing the driving current interval according to the size of the gradient change value. In the embodiment of the present application, it can be understood as a grading standard for guiding the fineness of the driving current interval division. The interval division level is directly related to the calibration accuracy requirement, reflecting the degree of fineness of the characterization of the laser power characteristics. Higher calibration accuracy requirements usually correspond to more interval division levels, while lower accuracy requirements may only require fewer levels. The interval division level usually includes multiple levels, for example, it can be divided into three levels of high, medium and low, or more detailed multi-level divisions. These levels reflect the degree of change in the power output characteristics within each interval. For example, a high level may correspond to an interval with the most significant power change, such as near the turning point where the laser enters the linear working area from the threshold state; a medium level may correspond to an interval where the power change is relatively stable but still has certain fluctuations; a low level may correspond to an interval with the most gentle power change. By introducing the interval division level, the system can adjust the calibration strategy more finely and flexibly.

[0090] Among them, the interval threshold refers to the critical gradient change value used to divide different drive current intervals. In the embodiment of the present application, it can be understood as a quantitative standard for determining the boundary of the drive current interval. The interval threshold is a series of values ​​determined based on the distribution characteristics of the gradient change value and the interval division level. They are used as judgment criteria to divide the entire drive current range into multiple intervals with different characteristics.

[0091] In specific implementation, first determine the interval division level according to the calibration accuracy requirement. For example, for a high-precision requirement of ±5%, four or more interval division levels may be set; while for a lower precision requirement of ±20%, only two divisions may be needed. After determining the interval division level, the next step is to set the corresponding interval thresholds. These thresholds are determined based on the distribution of the gradient change values obtained from the preliminary measurement, and they are used as judgment criteria to divide the entire drive current range into multiple intervals with different characteristics.

[0092] When setting the interval thresholds, the statistical distribution characteristics of the gradient change values need to be considered. For example, for a four-level division, three threshold points may be set to divide the gradient change values into four levels: extremely high, high, medium, and low. The specific values of these thresholds can be determined by analyzing the distribution curve of the gradient change values and selecting appropriate percentile points. The higher threshold is used to identify the interval with the most drastic power change, while the lower threshold is used to distinguish the relatively gentle change intervals.

[0093] S302: Compare the gradient change value with the interval thresholds corresponding to the interval division level to obtain multiple drive current intervals.

[0094] In specific implementation, first use the gradient change value calculated in the previous step to compare with the determined interval thresholds. This comparison process is carried out point by point, that is, for the gradient change value of each drive current point, determine which interval threshold range it falls into. For example, assume there are three interval thresholds T1, T2, and T3 (T1 < T2 < T3), corresponding to four interval division levels. Then the comparison process may be as follows: If the gradient change value is less than T1, then this point belongs to the lowest-level interval; if the gradient change value is greater than or equal to T1 but less than T2, it belongs to the second-level interval; if it is greater than or equal to T2 but less than T3, it belongs to the third-level interval; if it is greater than or equal to T3, it belongs to the highest-level interval.

[0095] S303: Determine the target drive current value within the drive current interval according to the test density corresponding to the drive current interval.

[0096] In the specific implementation, it is first necessary to allocate the corresponding test density for each drive current interval. The principle of test density allocation is: a higher test density is used for intervals with drastic power changes, while a lower test density is used for intervals with relatively gentle changes. For example, for intervals with large gradient change values, a high density of one test point per 1mA may be used; while for intervals with small gradient change values, a low density of every 5mA or greater interval may be used. After determining the test density of each interval, the next step is to determine the specific target drive current value in each interval. This process can be achieved in the following way: starting from the starting current value of each interval, according to the test density interval specified in the interval, the target drive current value is gradually calculated and recorded until the end current value of the interval is reached. For example, if the range of a certain interval is 100mA to 200mA, and the test density is one point per 2mA, then the sequence of target drive current values ​​in the interval will be 100mA, 120mA, 140mA,..., 180mA, 200mA.

[0097] In the embodiments of the present application, in order to explain in detail the working principle of the technical solution provided by the present application, an embodiment in which the interval division level is two levels is specifically shown. It should be noted that this embodiment does not mean that there is only one implementation method. In practice, there may be multiple levels of interval division, which is not limited here. The specific steps include S401-S403.

[0098] S401: Determine whether the gradient change value between adjacent initial driving current values ​​is greater than an interval threshold.

[0099] In the specific implementation, it is first necessary to calculate the gradient change value between adjacent initial drive current values. For any two adjacent initial drive current points i and i+1, the gradient change value can be calculated by the following formula: Gradient change value = (power i+1-power i) / (current i+1-current i)|. The power and current values ​​here are data obtained from preliminary measurements. Then, the calculated gradient change value is compared with the pre-set interval threshold.

[0100] The judgment process is performed on pairs of adjacent points. If the gradient change value between a pair of adjacent points is greater than the interval threshold, it indicates that there may be important characteristic changes between the two points, and they need to be divided into different drive current intervals. On the contrary, if the gradient change value is less than or equal to the interval threshold, it can be considered that the power-current characteristics between the two points are relatively stable and can be divided into the same drive current interval.

[0101] Based on the above embodiment, as an optional implementation, after step S401, it also includes determining whether the gradient change value between adjacent initial driving current values ​​is greater than a preset error threshold;

[0102] If the gradient change value between adjacent initial driving current values ​​is greater than the preset error threshold, the test density corresponding to the driving current interval is increased according to the difference between the gradient change value and the preset error threshold.

[0103] In this embodiment, an additional judgment and adjustment mechanism is introduced to perform more refined optimization based on the preset test density. First, the system presets the corresponding test density for the first drive current interval and the second drive current interval, namely the first test density and the second test density. However, in order to cope with possible special circumstances, the system will further determine whether the gradient change value between adjacent initial drive current values ​​is greater than the preset error threshold. The purpose of this step is to identify those intervals where the gradient change is particularly significant, even if they have been classified as the first drive current interval, they may require a higher sampling frequency than the preset first test density.

[0104] When the system detects that the gradient change value is greater than the preset error threshold, it will dynamically increase the test density of that specific interval based on the difference between the gradient change value and the preset error threshold. The reason for this is that in these intervals where the gradient changes are particularly large, the power output of the laser is extremely sensitive to changes in the drive current, and there may be more complex nonlinear characteristics or more abrupt change points than expected. In order to capture these changes more accurately, it is necessary to further increase the sampling frequency based on the original preset test density.

[0105] In specific implementation, the system first applies the preset first test density or the second test density, then calculates the gradient change value between adjacent initial drive current values ​​and compares it with the preset error threshold. If the gradient change value is greater than the preset error threshold, the system calculates the difference between the two and increases the test density based on the difference.

[0106] S402: If the gradient change value between adjacent initial driving current values ​​is greater than the interval threshold, the current between adjacent initial driving current values ​​is determined as a first driving current interval, and the first driving current interval corresponds to a first test density.

[0107] Among them, the first drive current interval refers to the current range between adjacent initial drive current values, whose gradient change value is greater than the preset interval threshold. In the embodiment of the present application, it can be understood as being used to identify the area where the laser power output is more sensitive to the drive current change. This interval is characterized in that it is located between adjacent initial drive current values, and the gradient change value within this interval is greater than the preset interval threshold. The main purpose of the first drive current interval is to identify areas where the laser response characteristics change greatly, and these areas require a higher test density.

[0108] The first test density refers to the density of the drive current sampling points used for laser power testing in the first drive current interval. In the embodiment of the present application, it can be understood that it is used to perform more sophisticated and frequent power tests in the area where the laser power output is more sensitive to the drive current change. The first test density is usually higher than the test density of other intervals to capture the subtle changes that may exist in the laser in this interval. This higher test density can provide more data points, which helps to more accurately describe the power-current characteristic curve of the laser in this interval.

[0109] In this embodiment, when the gradient change value between adjacent initial drive current values ​​is greater than a preset interval threshold, the current range between the two adjacent initial drive current values ​​is determined as the first drive current interval, and the first test density is used accordingly. The reason for this is that the gradient change value is greater than the interval threshold, indicating that within this current range, the power output of the laser is more sensitive to the change of the drive current, and there may be nonlinear or rapidly changing characteristics. In order to accurately capture these changes, more intensive tests are required within this interval. During specific implementation, first, by comparing the calculated gradient change value with the preset interval threshold, determine which intervals between adjacent initial drive current values ​​meet the condition greater than the threshold. Then, mark these satisfying intervals as the first drive current interval. For the range marked as the first drive current interval, the system will apply the first test density, that is, set more drive current test points within the interval. For example, if the interval of the initial drive current value is 10mA, then the test interval may be reduced to 2mA or less within the first drive current interval, depending on the required accuracy and the test capability of the system. The effect of this method is that more test data points can be obtained in areas where the laser characteristics change greatly, thereby more accurately describing the power-current relationship of the laser in these key intervals.

[0110] S403: If the gradient change value between adjacent initial driving current values ​​is less than or equal to the interval threshold, the current between adjacent initial driving current values ​​is determined as a second driving current interval, the second driving current interval corresponds to a second test density, and the first test density is greater than the second test density.

[0111] Among them, the second drive current interval refers to the current range between adjacent initial drive current values, whose gradient change value is less than or equal to the preset interval threshold. In the embodiment of the present application, it can be understood as being used to identify the area where the laser power output is relatively insensitive to the drive current change or changes more slowly. These areas are usually characterized by a relatively linear or low rate of change of the laser power output with the drive current. The second drive current interval is characterized in that its power-current characteristic is relatively stable and does not require high-frequency sampling like the first drive current interval.

[0112] Among them, the second test density refers to the density of the drive current sampling points used for laser power testing in the second drive current interval. In the embodiment of the present application, it can be understood that it is used to perform a more relaxed and larger interval power test in an area where the laser power output is relatively insensitive to the drive current change or changes more slowly. The second test density is usually lower than the first test density and is suitable for those intervals where the power-current characteristics are relatively stable. This lower test density can reduce the number of test points while ensuring sufficient accuracy, thereby improving calibration efficiency.

[0113] In this embodiment, when the gradient change value between adjacent initial drive current values ​​is less than or equal to the preset interval threshold, the current range between the two adjacent initial drive current values ​​is determined as the second drive current interval, and the second test density is used accordingly, wherein the first test density is greater than the second test density. The reason for this is that the gradient change value is less than or equal to the interval threshold, indicating that within this current range, the power output of the laser is relatively insensitive to the change of the drive current or changes more slowly, and may present a more linear or slowly changing characteristic. In this case, high-frequency sampling like the first drive current interval is not required, and the test density can be appropriately reduced to improve efficiency. In specific implementation, first, by comparing the calculated gradient change value with the preset interval threshold, it is determined which intervals between adjacent initial drive current values ​​meet the condition of being less than or equal to the threshold. Then, these satisfying intervals are marked as the second drive current interval. For the range marked as the second drive current interval, the system will apply the second test density, that is, relatively few drive current test points are set within the interval.

[0114] Based on the above embodiment, as an optional implementation, if the gradient change values ​​of multiple adjacent driving current intervals are the same, the test density of the driving current intervals with the same gradient change value is reduced according to the number of driving current intervals with the same gradient change value.

[0115] In this embodiment, a new optimization mechanism is introduced to deal with the situation where the gradient change values ​​of multiple adjacent drive current intervals are the same. The purpose of this mechanism is to further improve the calibration efficiency while ensuring the calibration accuracy. When the system detects that multiple adjacent drive current intervals have the same gradient change value, it will reduce their test density according to the number of these intervals. The reason for this is that continuous intervals with the same gradient change value usually indicate that the characteristic changes of the laser within this larger range are consistent, and may show a linear or stable change trend. In this case, using too high a test density may lead to the generation of redundant data without significantly improving the calibration accuracy.

[0116] In specific implementation, the system first identifies adjacent drive current intervals with the same gradient change value. Then, it counts the number of these intervals. Based on this number, the system will formulate a strategy to reduce the test density. For example, if three adjacent drive current intervals are found to have the same gradient change value, the system may reduce the test density of these three intervals to 2 / 3 or 1 / 2 of the original. The specific reduction ratio can be dynamically adjusted according to the size of the gradient change value and the number of identical intervals. For example, for the case where the gradient change value is small and the number of continuous intervals is large, a larger reduction ratio can be used; and for the case where the gradient change value is large but the number of continuous intervals is small, a smaller reduction ratio is used.

[0117] S105: Control the laser to be tested to emit laser according to the target driving current value, and obtain a target laser power value corresponding to the target driving current value.

[0118] Among them, the target laser power value refers to the laser power value measured according to the target drive current value in the intelligently divided drive current interval. In the embodiment of the present application, it can be understood as a set of power data points used to generate a more accurate second calibration curve. These power values ​​are obtained by controlling the laser to be tested to emit lasers according to the target drive current value, corresponding to the target drive current values ​​in each drive current interval after intelligent division. Compared with the initial laser power value, the target laser power value is obtained after the initial measurement and interval division, and usually has a higher measurement density.

[0119] In this embodiment, the laser to be tested is controlled to emit laser according to the target driving current value, and the target laser power value corresponding to the target driving current value is obtained, in order to obtain a more accurate power-current correspondence. The execution of this step is based on the driving current interval intelligently divided in front and the determined target driving current value. In the specific implementation, the target driving current value is first sent to the control unit of the laser to be tested in order from small to large. The laser to be tested then emits a laser according to each received target driving current value, and uses a high-precision power meter to collect and record the corresponding laser power output in real time. In this process, the system will use different test densities according to the previously divided driving current intervals, perform more intensive sampling in intervals with large gradient changes, and use relatively sparse sampling in intervals with small gradient changes, thereby ensuring the measurement accuracy of key areas and improving the overall calibration efficiency.

[0120] S106: Fitting a second calibration curve between the target laser power value and the target driving current value to generate a power calibration result of the laser to be tested.

[0121] In the specific implementation, firstly, an appropriate curve fitting algorithm, such as polynomial fitting or piecewise linear fitting, is used to fit the target laser power value and the target drive current value to obtain a second calibration curve. This curve is more accurate than the previous first calibration curve because it is based on data obtained after intelligent interval division and optimized sampling. In this way, the second calibration curve can more accurately reflect the power-current characteristics of the laser to be tested in the entire working range. After the fitting is completed, the system outputs this second calibration curve as the final power calibration result of the laser to be tested.

[0122] Based on the above embodiment, as an optional implementation, step S106 specifically further includes steps S501-S503.

[0123] S501: Determine the current scale value of the laser to be tested according to the calibration accuracy requirement.

[0124] The current scale value refers to a series of discrete current values ​​selected at preset intervals within the operating current range of the laser to be tested. In the embodiment of the present application, it can be understood as the reference current points used to generate the power calibration table. These current points together with the corresponding power values ​​on the second calibration curve constitute a detailed power-current comparison table.

[0125] In specific implementation, first determine the interval of the current scale value according to the user input or preset calibration accuracy requirements. This interval directly affects the accuracy and practicality of the final calibration result. For applications requiring high-precision control, a smaller interval can be selected, such as 0.1mA or less; for general applications, a larger interval can be selected, such as 1mA or more. Subsequently, the system will generate a series of evenly distributed current scale values ​​at the determined intervals over the entire operating current range of the laser to be tested, from the minimum operating current to the maximum operating current. These current scale values ​​cover the entire operating range of the laser, ensuring the integrity of the calibration results.

[0126] S502: Read the power verification value corresponding to the current scale value in the second calibration curve, and record the power verification value and the current scale value in a power verification table.

[0127] In the specific implementation, first use the previously determined current scale values ​​to find the power values ​​corresponding to these current values ​​one by one on the second calibration curve. This process can be obtained through an interpolation algorithm or directly calculated from the fitting equation to ensure that the obtained power verification value is highly consistent with the second calibration curve. Subsequently, each pair of current scale values ​​and corresponding power verification values ​​are recorded in sequence in a power verification table. This table usually contains two columns of data: one is the current scale value and the other is the corresponding power verification value.

[0128] S503: Generate a power calibration result of the laser to be tested according to the second calibration curve and the power calibration table.

[0129] In specific implementation, the mathematical expression of the second calibration curve (such as polynomial coefficients or piecewise function parameters) is first integrated with the power verification table into a unified data structure. This data structure may be a comprehensive file or database record containing curve parameters, table data, and other necessary information (such as laser model, calibration date, etc.). During the integration process, the system will perform a consistency check to ensure that there is no significant deviation between the curve and table data. If a deviation is found, it may be necessary to re-evaluate the calibration process or fine-tune the data. The system will then generate a calibration report that includes a graphical representation of the second calibration curve, the complete content of the power verification table, the mathematical expression of the calibration curve, and key parameters and statistical information of the calibration process.

[0130] The following is an embodiment of the system of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the system of the present application, please refer to the embodiment of the method of the application.

[0131] See also Figure 4 , which shows a schematic diagram of the structure of an intelligent laser power calibration system provided by an exemplary embodiment of the present application. The system can be implemented as all or part of the system through software, hardware or a combination of both. The intelligent laser power calibration system includes:

[0132] An initial current setting module, used to determine the initial driving current values ​​of equal spacing in response to the basic parameters of the laser to be tested and the calibration accuracy requirements input by the user;

[0133] The first driving module is used to control the laser to be tested to emit laser according to the initial driving current value, and obtain an initial laser power value corresponding to the initial driving current value;

[0134] A first processing module, used for fitting a first calibration curve between an initial laser power value and an initial driving current value, and calculating a gradient change value between adjacent initial driving current values;

[0135] A target current setting module, used to divide a plurality of driving current intervals according to the gradient change value, and determine a target driving current value within the driving current interval according to the test density corresponding to the driving current interval;

[0136] The second driving module is used to control the laser to be tested to emit laser according to the target driving current value, and obtain the target laser power value corresponding to the target driving current value;

[0137] The second processing module is used to fit a second calibration curve between a target laser power value and a target driving current value to generate a power calibration result of the laser to be tested.

[0138] Based on the above embodiment, as an optional embodiment, the first driving module is also used to send the initial driving current value to the laser to be tested, so that the laser to be tested emits laser in the order of the initial driving current value from small to large, and the initial driving current value is generated according to the maximum driving current value and the calibration accuracy requirement; the initial laser power value corresponding to the initial driving current value collected by the power meter is obtained in real time; when the initial laser power value reaches the maximum power value, the laser to be tested is controlled to stop emitting laser.

[0139] Based on the above embodiment, as an optional embodiment, the target current setting module is also used to determine the interval division level and the corresponding interval threshold according to the calibration accuracy requirement of the laser to be tested; compare the gradient change value with the interval threshold corresponding to the interval division level to obtain multiple driving current intervals; determine the target driving current value within the driving current interval according to the test density corresponding to the driving current interval.

[0140] On the basis of the above embodiment, as an optional embodiment, the target current setting module is also used to determine whether the gradient change value between adjacent initial driving current values ​​is greater than the interval threshold; if the gradient change value between adjacent initial driving current values ​​is greater than the interval threshold, the current between adjacent initial driving current values ​​is determined as the first driving current interval, and the first driving current interval corresponds to the first test density; if the gradient change value between adjacent initial driving current values ​​is less than or equal to the interval threshold, the current between adjacent initial driving current values ​​is determined as the second driving current interval, and the second driving current interval corresponds to the second test density, and the first test density is greater than the second test density.

[0141] Based on the above embodiment, as an optional embodiment, the target current setting module is also used to determine whether the gradient change value between adjacent initial driving current values ​​is greater than a preset error threshold; if the gradient change value between adjacent initial driving current values ​​is greater than the preset error threshold, then according to the difference between the gradient change value and the preset error threshold, the test density corresponding to the driving current interval is increased.

[0142] Based on the above embodiment, as an optional embodiment, the target current setting module is also used to reduce the test density of the driving current intervals with the same gradient change value according to the number of driving current intervals with the same gradient change value if the gradient change values ​​of multiple adjacent driving current intervals are the same.

[0143] Based on the above embodiment, as an optional embodiment, the second processing module is also used to determine the current scale value of the laser to be tested according to the calibration accuracy requirement; read the power verification value corresponding to the current scale value in the second calibration curve, and record the power verification value and the current scale value in a power verification table; generate the power calibration result of the laser to be tested according to the second calibration curve and the power verification table.

[0144] The embodiment of the present application also provides a computer storage medium, which can store multiple instructions. The instructions are suitable for being loaded by a processor and executing the intelligent laser power calibration method of the above embodiment. The specific execution process can be found in the specific description of the embodiment, which will not be repeated here.

[0145] See also Figure 5 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 5 As shown, the electronic device 500 may include: at least one processor 501 , at least one network interface 504 , a user interface 503 , a memory 505 , and at least one communication bus 502 .

[0146] The communication bus 502 is used to realize the connection and communication between these components.

[0147] The user interface 503 may include a standard wired interface or a wireless interface.

[0148] The network interface 504 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0149] Among them, the processor 501 may include one or more processing cores. The processor 501 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 505, and calling data stored in the memory 505. Optionally, the processor 501 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 501 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 501, and it can be implemented separately through a chip.

[0150] Among them, the memory 505 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 505 includes a non-transitory computer-readable storage medium. The memory 505 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 505 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 505 may also be optionally at least one storage device located away from the aforementioned processor 501. As Figure 5 As shown, the memory 505 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program of an intelligent laser power calibration method.

[0151] exist Figure 5In the electronic device 500 shown, the user interface 503 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 501 can be used to call an application program storing an intelligent laser power calibration method in the memory 505. When executed by one or more processors, the electronic device executes one or more methods in the above-mentioned embodiments.

[0152] An electronic device readable storage medium stores instructions, which, when executed by one or more processors, enable the electronic device to execute one or more methods in the above embodiments.

[0153] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.

[0154] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0155] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0156] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0157] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0158] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.

[0159] The above are only exemplary embodiments of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and practice, those skilled in the art will easily think of other embodiments of the present disclosure. This application is intended to cover any variation, use or adaptive change of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field not recorded in the present disclosure.

Claims

1. An intelligent laser power calibration method, characterized in that: The method comprises: In response to basic parameters of the laser to be tested and calibration accuracy requirements input by a user, determining initial drive current values ​​at equal intervals; Controlling the laser to be tested to emit laser according to the initial driving current value to obtain an initial laser power value corresponding to the initial driving current value; Fitting a first calibration curve between the initial laser power value and the initial driving current value, and calculating a gradient change value between adjacent initial driving current values; Dividing a plurality of driving current intervals according to the gradient change value, and determining a target driving current value within the driving current interval according to a test density corresponding to the driving current interval; Controlling the laser to be tested to emit laser according to the target driving current value to obtain a target laser power value corresponding to the target driving current value; A second calibration curve between the target laser power value and the target driving current value is fitted to generate a power calibration result of the laser to be tested.

2. The method according to claim 1, characterized in that: The step of dividing a plurality of driving current intervals according to the gradient change value, and determining a target driving current value within the driving current interval according to a test density corresponding to the driving current interval, includes: Determine the interval division level and the corresponding interval threshold according to the calibration accuracy requirement of the laser to be tested; Comparing the gradient change value with the interval threshold corresponding to the interval division level to obtain a plurality of driving current intervals; A target driving current value within the driving current interval is determined according to a test density corresponding to the driving current interval.

3. The method according to claim 2, characterized in that When the interval division level is level 2, the method includes: Determining whether the gradient change value between adjacent initial driving current values ​​is greater than the interval threshold; If the gradient change value between adjacent initial driving current values ​​is greater than the interval threshold, the current between adjacent initial driving current values ​​is determined as a first driving current interval, and the first driving current interval corresponds to a first test density; If the gradient change value between adjacent initial drive current values ​​is less than or equal to the interval threshold, the current between adjacent initial drive current values ​​is determined as a second drive current interval, the second drive current interval corresponds to a second test density, and the first test density is greater than the second test density.

4. The method according to claim 2, characterized in that: After comparing the gradient change value with the interval threshold corresponding to the interval division level to obtain a plurality of driving current intervals, the method includes: Determining whether a gradient change value between adjacent initial driving current values ​​is greater than a preset error threshold; If the gradient change value between the adjacent initial driving current values ​​is greater than the preset error threshold, the test density corresponding to the driving current interval is increased according to the difference between the gradient change value and the preset error threshold.

5. The method according to claim 2, characterized in that: After the gradient change value is compared with the interval threshold corresponding to the interval division level to obtain a plurality of driving current intervals, the method further includes: If the gradient change values ​​of a plurality of adjacent driving current intervals are the same, the test density of the driving current intervals with the same gradient change value is reduced according to the number of the driving current intervals with the same gradient change value.

6. The method according to claim 1, characterized in that The basic parameters of the laser to be tested include a maximum power value and a maximum driving current value. The controlling the laser to be tested to emit laser light according to the initial driving current value to obtain an initial laser power value corresponding to the initial driving current value includes: Sending the initial driving current value to the laser to be tested, so that the laser to be tested emits laser light in the order of the initial driving current values ​​from small to large, wherein the initial driving current value is generated according to the maximum driving current value and the calibration accuracy requirement; Acquire in real time an initial laser power value corresponding to the initial driving current value collected by a power meter; When the initial laser power value reaches the maximum power value, the laser to be tested is controlled to stop emitting laser.

7. The method according to claim 1, characterized in that The step of fitting a second calibration curve between the target laser power value and the target driving current value to generate a power calibration result of the laser to be tested includes: Determining the current scale value of the laser to be tested according to the calibration accuracy requirement; Reading a power verification value corresponding to the current scale value in the second calibration curve, and recording the power verification value and the current scale value into a power verification table; A power calibration result of the laser to be tested is generated according to the second calibration curve and the power calibration table.

8. An intelligent laser power calibration system, characterized in that: The system comprises: An initial current setting module, used to determine the initial driving current values ​​of equal intervals in response to the basic parameters of the laser to be tested and the calibration accuracy requirements input by the user; A first driving module, used for controlling the laser to be tested to emit laser according to the initial driving current value, and obtaining an initial laser power value corresponding to the initial driving current value; A first processing module, used for fitting a first calibration curve between the initial laser power value and the initial driving current value, and calculating a gradient change value between adjacent initial driving current values; a target current setting module, used to divide a plurality of driving current intervals according to the gradient change value, and determine a target driving current value within the driving current interval according to a test density corresponding to the driving current interval; A second driving module is used to control the laser to be tested to emit laser according to the target driving current value, and obtain a target laser power value corresponding to the target driving current value; The second processing module is used to fit a second calibration curve between the target laser power value and the target driving current value to generate a power calibration result of the laser to be tested.

9. A computer storage medium, characterized in that: The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method according to any one of claims 1 to 7.

10. An electronic device, characterized in that: The electronic device comprises a processor, a memory and a transceiver, wherein the memory is used to store instructions, the transceiver is used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Spectrum analyzer error correction method and system

    CN112985604A

  • IV curve sampling point intelligent density regulation and control method and related equipment

    CN118041232A

  • Automatic power control circuit and laser diode control method

    JP2006332345A

  • Open-loop laser power-regulation

    US9985414B1