Green laser power trend evaluation method, system, device and electronic equipment

CN122527463BActive Publication Date: 2026-10-27深圳公大激光有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202610985485.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-07-03
Publication Date
2026-10-27
Estimated Expiration
2046-07-03

AI Technical Summary

Technical Problem

[0003]本发明提供了一种绿激光功率趋势评估方法、系统、装置及电子设备,以解决现有技术中激光器缓慢功率变化缺乏有效趋势评估手段的问题

Benefits of technology

[0005]本发明提供的一种绿激光功率趋势评估方法,通过维护长度不同的两个数据队列,将实时功率数据同时插入两个队列并采用先移除最旧数据再插入新数据的滑动窗口更新方式,分别计算长窗口与短窗口的平均功率值,再基于两个平均值的比较结果判断功率变化趋势,从而在无需引入额外硬件或复杂计算的情况下,有效识别出激光器的缓慢功率变化方向,弥补了现有技术中缺乏缓慢功率变化趋势评估手段的不足。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122527463B_ABST
    Figure CN122527463B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of laser, and discloses a green laser power trend evaluation method, system, device and electronic equipment, the method comprises the following steps: acquiring the power data of green laser; the power data is inserted into the first preset data queue and the second preset data queue simultaneously, when any preset data queue is full, the oldest power data in the corresponding queue is removed first, and then the new power data is inserted into the corresponding queue; the length of the first preset data queue is greater than the length of the second preset data queue; the first average power value of the first preset data queue at the current time and the second average power value of the second preset data queue are calculated respectively; based on the comparison result of the first average power value and the second average power value, the power change trend of green laser is determined, the present application effectively identifies the slow power change direction of the laser without introducing additional hardware, and makes up for the lack of slow power change trend evaluation means in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of laser technology, and more specifically to a method, system, device, and electronic equipment for assessing green laser power trends. Background Technology

[0002] An externally frequency-doubled green laser uses a frequency-doubled crystal to double the infrared fundamental frequency light to the green wavelength range. The operating temperature of the frequency-doubled crystal is controlled by a precision temperature control system. In actual operation, the green laser power will slowly decrease with the emission time due to factors such as cumulative deviation of the temperature control system, mechanical deformation, and drift of the crystal's optimal temperature point. This initial decrease is not easily noticeable, but if not addressed promptly, it will gradually worsen and affect laser performance. Currently, there is a lack of effective methods for assessing this slow power change. Summary of the Invention

[0003] This invention provides a method, system, device, and electronic device for assessing the power trend of green lasers, in order to solve the problem that there is a lack of effective means for assessing the slow power changes of lasers in the prior art.

[0004] In a first aspect, the present invention provides a method for evaluating the power trend of green lasers, the method comprising: Obtain power data for the green laser; Power data is simultaneously inserted into the first preset data queue and the second preset data queue. When either preset data queue is full, the oldest power data in the corresponding preset data queue is removed first, and then the new power data is inserted into the corresponding preset data queue. The length of the first preset data queue is greater than the length of the second preset data queue. Calculate the first average power value of the first preset data queue and the second average power value of the second preset data queue at the current time, respectively. Based on the comparison between the first average power value and the second average power value, the power variation trend of the green laser is determined.

[0005] This invention provides a green laser power trend assessment method. By maintaining two data queues of different lengths, real-time power data is simultaneously inserted into both queues and a sliding window update method is adopted, which first removes the oldest data and then inserts the new data. The average power values ​​of the long window and the short window are calculated respectively, and the power change trend is determined based on the comparison of the two average values. Thus, without introducing additional hardware or complex calculations, the slow power change direction of the laser can be effectively identified, making up for the lack of slow power change trend assessment methods in the prior art.

[0006] In one optional implementation, acquiring power data of the green laser includes: The power data of the green laser is acquired at a preset acquisition frequency.

[0007] In the above technical solution, by acquiring power data at a preset sampling frequency, it is possible to ensure uniform sampling of power data on the time axis, providing a stable and comparable data basis for subsequent trend analysis and avoiding trend misjudgment caused by inconsistent sampling intervals.

[0008] In one optional implementation, the power variation trend of the green laser is determined based on a comparison between a first average power value and a second average power value, including: The trend strength value is calculated based on the first average power value and the second average power value; The power change trend of the green laser is determined based on the relationship between the trend intensity value and the corresponding preset trend judgment threshold.

[0009] In the above technical solution, by calculating the trend intensity value and comparing it with a preset threshold, the difference in average power value can be quantified into a measurable indicator. At the same time, the threshold is used to filter out weak power fluctuations, avoiding misjudging normal fluctuations as trend changes, thus improving the accuracy and reliability of trend judgment.

[0010] In one alternative implementation, the trend strength value is calculated using the following formula: ; in, Indicates the trend strength value. This represents the first average power value. This represents the second average power value.

[0011] In one optional implementation, the power change trend of the green laser is determined based on the relationship between the trend intensity value and the corresponding preset trend judgment threshold, including: When the trend strength value is greater than the preset upward trend threshold, the power change trend is determined to be an upward trend; When the trend strength value is less than the preset downward trend threshold, the power change trend is determined to be a downward trend; When the trend strength value is between the preset downward trend threshold and the preset upward trend threshold, the power change trend is determined to be a stable trend.

[0012] In the above technical solution, by setting a preset upward trend threshold and a preset downward trend threshold, and comparing the trend intensity value with the two thresholds respectively, the power change can be clearly distinguished into three states: upward trend, downward trend, and stable trend. When the trend intensity value is between the two thresholds, it is determined to be stable, thereby effectively eliminating the interference of normal power fluctuations on the directionality judgment, making the trend judgment result clearer and more reliable.

[0013] In one alternative implementation, the method further includes: Based on the power change trend determination results and the preset data credibility value before the update, the data credibility value is updated according to the preset rules.

[0014] In the above technical solution, by introducing data credibility and updating according to each trend judgment result, the continuity information of multiple judgments can be accumulated, avoiding the direct impact of a single misjudgment on the trend evaluation result, thereby improving the stability and credibility of trend judgment.

[0015] In one optional implementation, based on the power change trend determination result and the preset data confidence value before the update, the data confidence value is updated according to a preset rule, including: When the power change trend is upward and the value before the preset data confidence is updated is positive, the preset data confidence will be increased by the preset step size value. When the power change trend is upward and the value before the preset data confidence is updated is not positive, the preset data confidence is set to the preset step size value. When the power change trend is downward and the value before the preset data confidence is updated is positive, the preset data confidence will be reduced by the preset step size value. When the power change trend is downward and the value before the preset data confidence is updated is not positive, the preset data confidence is set to the opposite of the preset step size value. When the power change trend is stable, the preset data confidence level is set to zero.

[0016] In the above technical solution, the update rule performs increment, decrement, assignment or zeroing operations according to whether the current trend direction is consistent with the sign of the data credibility. This allows the data credibility to accumulate the confidence level of continuous unidirectional trends and adjust quickly when the trend is interrupted or turns stable, thereby enhancing the continuity of trend judgment and the ability to resist disturbances, and avoiding frequent jumps in conclusions caused by single or short-term trend fluctuations.

[0017] Secondly, the present invention provides a green laser power trend assessment system, the system comprising: A photoelectric sensor is used to acquire power data of the green laser. A controller, connected to a photoelectric sensor, is used to perform the green laser power trend assessment method of the first aspect described above or any corresponding embodiment thereof.

[0018] Thirdly, the present invention provides a green laser power trend assessment device, the device comprising: The power data acquisition module is used to acquire the power data of the green laser. The data queue maintenance module is used to simultaneously insert power data into the first preset data queue and the second preset data queue. When either preset data queue is full, the oldest power data in the corresponding preset data queue is removed first, and then the new power data is inserted into the corresponding preset data queue. The length of the first preset data queue is greater than the length of the second preset data queue. The average value calculation module is used to calculate the first average power value of the first preset data queue and the second average power value of the second preset data queue at the current time, respectively. The trend determination module is used to determine the power change trend of the green laser based on the comparison results of the first average power value and the second average power value.

[0019] Fourthly, the present invention provides an electronic device, comprising: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the green laser power trend evaluation method of the first aspect or any corresponding embodiment described above.

[0020] Fifthly, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to perform the green laser power trend assessment method of the first aspect or any corresponding embodiment described above.

[0021] In a sixth aspect, the present invention provides a computer program product, including computer instructions for causing a computer to execute the green laser power trend assessment method of the first aspect or any corresponding embodiment thereof. Attached Figure Description

[0022] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0023] Figure 1 This is a schematic diagram of an application scenario according to an embodiment of the present invention; Figure 2 This is a schematic diagram of the first process of the green laser power trend evaluation method according to an embodiment of the present invention; Figure 3 This is a schematic diagram of the second process of the green laser power trend evaluation method according to an embodiment of the present invention; Figure 4(a) is a flowchart of the data processing process of the first preset data queue according to an embodiment of the present invention; Figure 4(b) is a flowchart of the data processing process of the second preset data queue according to an embodiment of the present invention; Figure 5 This is a schematic diagram of the third process of the green laser power trend evaluation method according to an embodiment of the present invention; Figure 6 This is a structural block diagram of a green laser power trend evaluation device according to an embodiment of the present invention; Figure 7 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention. Detailed Implementation

[0024] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0025] It is understood that before using the technical solutions disclosed in the various embodiments of the present invention, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in the present invention and their authorization should be obtained in accordance with relevant laws and regulations through appropriate means.

[0026] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.

[0027] As an optional application scenario of this invention, such as Figure 1 As shown, this invention provides a green laser power trend assessment system, which includes a photoelectric sensor and a controller. The photoelectric sensor is used to acquire green laser power data; the controller is connected to the photoelectric sensor and is used to execute the green laser power trend assessment method.

[0028] Specifically, such as Figure 1As shown, the system also includes a frequency doubling crystal, a temperature-controlled furnace, a temperature control board, a control board, and a photoelectric sensor. The frequency doubling crystal is positioned in the optical path of the infrared fundamental frequency light (1064nm) to frequency double the infrared fundamental frequency light into green light (532nm). The temperature-controlled furnace surrounds the frequency doubling crystal to provide a stable operating temperature environment for it. The temperature control board is electrically connected to the temperature control furnace to drive and control its temperature. The control board is electrically connected to the temperature control board to send temperature control commands to the temperature control board, thereby regulating the temperature of the frequency doubling crystal. The photoelectric sensor is positioned in the green laser output optical path to collect real-time power data of the green laser.

[0029] The controller is electrically connected to the photoelectric sensor to receive power data collected by the sensor and to perform a green laser power trend assessment method. The controller is mounted on the control board or integrated into the control board as a single unit.

[0030] like Figure 1 As shown, the working principle of the green laser power trend assessment system provided by this invention is as follows: Infrared fundamental frequency light (1064nm) enters the frequency doubling crystal. The control board sends a temperature control command to the temperature control board, which drives the temperature control furnace to heat or cool the frequency doubling crystal, ensuring that the frequency doubling crystal operates under the preset temperature conditions. The frequency doubling crystal then doubles the infrared fundamental frequency light into green light (532nm) for output.

[0031] A photoelectric sensor collects power data of the green laser in real time and transmits the data to the controller. The controller acquires power data at a preset acquisition frequency and maintains a first preset data queue and a second preset data queue of different lengths. Each acquired power data is inserted into both queues simultaneously. When either queue is full, the controller first removes the oldest power data from that queue and then inserts the new data. The controller calculates the first average power value of the first preset data queue and the second average power value of the second preset data queue. Based on the comparison between the first and second average power values, the controller determines whether the green laser power is increasing, decreasing, or stable.

[0032] According to an embodiment of the present invention, a method for evaluating the power trend of a green laser is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0033] This embodiment provides a method for evaluating the green laser power trend, which can be used in the aforementioned green laser power trend evaluation system. Figure 2 This is a flowchart of a green laser power trend assessment method according to an embodiment of the present invention, such as... Figure 2As shown, the process includes the following steps: Step S201: Obtain the power data of the green laser.

[0034] The power data of the green laser can be obtained by collecting the green laser output from the laser. The power data of the green laser is a value that characterizes the output power of the green laser, collected in real time by a photoelectric sensor.

[0035] Specifically, this step involves acquiring power data of the green laser using a photoelectric sensor at a preset sampling frequency. For example, the photoelectric sensor acquires power data of the green laser at a sampling frequency of 1 Hz.

[0036] Step S202: Power data is simultaneously inserted into the first preset data queue and the second preset data queue. When either preset data queue is full, the oldest power data in the corresponding preset data queue is removed first, and then the new power data is inserted into the corresponding preset data queue. The length of the first preset data queue is greater than the length of the second preset data queue.

[0037] The first preset data queue is a data queue used to store long-term historical power data in order to calculate long-term average power.

[0038] The second preset data queue is used to store shorter historical power data to calculate short-term average power.

[0039] For example, as shown in Figures 4(a) and 4(b), assume that the length N of the first preset data queue is 30 (i.e., it can store a maximum of 30 power data points), and the length M of the second preset data queue is 10. Initially, both queues are empty.

[0040] When the first power data is collected, both queues are not full, so the power data is inserted directly.

[0041] Repeat the above process until the first preset data queue is full of 30 data items and the second preset data queue is full of 10 data items.

[0042] At this point, if a new power data point (the 31st power data point) is collected, the first preset data queue is already full. According to the operating rules, the earliest data point stored in the first preset data queue (i.e., the first data point) is removed first, and then the 31st new power data point is inserted at the end of the first preset data queue. The second preset data queue works similarly; when it is full with 10 power data points, and then the 11th new power data point is received, the oldest data point in the second preset data queue (the first data point) is removed first, and then the new power data point is inserted.

[0043] In this way, the two preset data queues always store the power data within the most recent period, and the power data in the queues is continuously updated as new power data arrives.

[0044] Step S203: Calculate the first average power value of the first preset data queue and the second average power value of the second preset data queue at the current time.

[0045] Specifically, all the power data currently stored in the first preset data queue are added together to obtain a sum. Then, the sum is divided by the length of the first preset data queue (i.e., the number of data in the queue; when the queue is full, it equals the preset length; when it is not full, it equals the actual number of data). The result is the first average power value.

[0046] Similarly, add up all the power data currently stored in the second preset data queue, and then divide by the length of the second preset data queue to obtain the second average power value.

[0047] Step S204: Based on the comparison results of the first average power value and the second average power value, determine the power change trend of the green laser.

[0048] Specifically, the first average power value is compared with the second average power value: if the second average power value is greater than the first average power value, it indicates that the recent power is higher than the long-term average level, and it is determined to be an upward trend; if the second average power value is less than the first average power value, it indicates that the recent power is lower than the long-term average level, and it is determined to be a downward trend; if the two are equal or the difference is very small, it is determined to be a stable trend.

[0049] The green laser power trend assessment method provided in this embodiment maintains two data queues of different lengths, inserts real-time power data into both queues simultaneously, and adopts a sliding window update method that first removes the oldest data and then inserts the new data. The average power values ​​of the long window and the short window are calculated respectively, and the power change trend is determined based on the comparison of the two average values. Thus, without introducing additional hardware or complex calculations, the slow power change direction of the laser can be effectively identified, making up for the lack of slow power change trend assessment methods in the prior art.

[0050] This embodiment provides a method for evaluating the green laser power trend, which can be used in the aforementioned green laser power trend evaluation system. Figure 3 This is a flowchart of a green laser power trend assessment method according to an embodiment of the present invention, such as... Figure 3 As shown, the process includes the following steps: Step S301: Obtain the power data of the green laser. For details, please refer to [link to relevant documentation]. Figure 2 Step S201 of the illustrated embodiment will not be described again here.

[0051] Step S302: Power data is simultaneously inserted into the first preset data queue and the second preset data queue. When either preset data queue is full, the oldest power data in the corresponding preset data queue is first removed, and then the new power data is inserted into the corresponding preset data queue. The length of the first preset data queue is greater than the length of the second preset data queue. For details, please refer to [link to relevant documentation]. Figure 2 Step S202 of the illustrated embodiment will not be described again here.

[0052] Step S303: Calculate the first average power value of the first preset data queue and the second average power value of the second preset data queue at the current time. For details, please refer to [link to relevant documentation]. Figure 2 Step S203 of the illustrated embodiment will not be described again here.

[0053] Step S304: Based on the comparison results of the first average power value and the second average power value, determine the power change trend of the green laser.

[0054] Specifically, step S304 includes: Step S3041: Calculate the trend intensity value based on the first average power value and the second average power value.

[0055] Specifically, after each power data insertion, the average value of the queue needs to be updated. The average value is the sum of all power values ​​in the current queue divided by the queue length. The average value of the short queue (second preset data queue) represents the average value over a recent short period, while the average value of the long queue (first preset data queue) represents the average power value over a longer period. When the average value of the short queue is greater than that of the long queue, it indicates that the short-term trend is upward; if they are equal, it indicates that the trend is stable. When the average value of the short queue is less than that of the long queue, it indicates that the short-term trend is downward.

[0056] In one alternative implementation, the trend strength value is calculated using the following formula: ; in, Indicates the trend strength value. This represents the first average power value. This represents the second average power value.

[0057] Step S3042: Based on the relationship between the trend intensity value and the corresponding preset trend judgment threshold, determine the power change trend of the green laser.

[0058] In an optional implementation, step S3042 includes: Step a: When the trend intensity value is greater than the preset upward trend threshold, the power change trend is determined to be an upward trend; when the trend intensity value is less than the preset downward trend threshold, the power change trend is determined to be a downward trend; when the trend intensity value is between the preset downward trend threshold and the preset upward trend threshold, the power change trend is determined to be a stable trend.

[0059] Specifically, when Strength = 0, it indicates that the power change trend is stable; when Strength is negative, that is, when Strength < 0, it indicates that the power change trend is downward, and the larger the absolute value, the more drastic the downward trend; when Strength is positive, that is, when Strength > 0, it indicates that the power change trend is upward, and the larger the absolute value, the more drastic the upward power change trend.

[0060] Additionally, it's necessary to consider the inherent fluctuations in laser power. These fluctuations might be misinterpreted as increases or decreases, thus requiring the addition of two threshold values. Upward trend judgment threshold (THRESr): Only when Strength is greater than the upward trend judgment threshold is it considered an upward trend; Downtrend judgment threshold (THRESf): A downtrend is considered to occur only when Strength is less than the downtrend threshold.

[0061] Power fluctuations that fall between the threshold for judging a downward trend and the threshold for judging an upward trend are considered normal and are regarded as a stable trend; that is, relatively weak changes will be classified as stable.

[0062] Step S305: Based on the power change trend determination result and the value before the preset data credibility update, update the data credibility value according to the preset rules.

[0063] Specifically, step S305 includes: When the power change trend is upward and the value before the preset data confidence is updated is positive, the preset data confidence will be increased by the preset step size value. When the power change trend is upward and the value before the preset data confidence is updated is not positive, the preset data confidence is set to the preset step size value. When the power change trend is downward and the value before the preset data confidence is updated is positive, the preset data confidence will be reduced by the preset step size value. When the power change trend is downward and the value before the preset data confidence is updated is not positive, the preset data confidence is set to the opposite of the preset step size value. When the power change trend is stable, the preset data confidence level is set to zero.

[0064] Specifically, Credibility is used to represent data credibility. The value before the Credibility update is set to the value before this update operation, i.e., the previous value. The default step size is 1.

[0065] When Credibility > 0 in the previous instance and the current power change trend is judged to be upward, Credibility is incremented by 1; when Credibility ≤ 0 in the previous instance and the current power change trend is judged to be upward, Credibility is assigned a value of 1.

[0066] When Credibility > 0 in the previous instance and the current power change trend is judged to be decreasing, Credibility is decremented by 1; when Credibility ≥ 0 in the previous instance and the current power change trend is judged to be decreasing, Credibility is assigned a value of -1.

[0067] When the power change trend is judged to be stable, Credibility is assigned a value of 0.

[0068] Thus, when Credibility is positive, the power change trend is upward, and the larger the value, the higher the reliability. When Credibility is negative, the power change trend is downward, and the larger the value, the higher the reliability.

[0069] The green laser power trend assessment method provided in this embodiment updates the rule by performing increment, decrement, assignment, or zeroing operations according to whether the current trend direction is consistent with the sign of the data confidence. This allows the data confidence to accumulate the confidence level of a continuous trend in the same direction and to be quickly adjusted when the trend is interrupted or becomes stable. This enhances the continuity of trend judgment and the ability to resist disturbances, and avoids frequent jumps in conclusions caused by a single or short-term trend fluctuation.

[0070] As one or more specific application embodiments of the present invention, let the length of the short queue (i.e., the second preset data queue) be M, the length of the long queue (i.e., the first preset data queue) be N, the average value of the short queue be AvgS, the average value of the long queue be AvgL, the trend strength be Strength, the confidence level be Credibility, the upward trend threshold be THRESr, the downward region be the threshold THRESf, and the current acquisition power be P. Figure 5 As shown, the specific processing flow is as follows: Step 1: Collect the power data of the current green laser, denoted as P.

[0071] Step 2: Insert the power data P into the short queue (second preset data queue).

[0072] Determine whether the short queue is full: if the short queue is full, first pop the oldest power data in the short queue, and then insert P into the short queue; if the short queue is not full, directly insert P into the short queue. Calculate the average power value of the short queue, which is denoted as AvgS.

[0073] Insert the power data P into the long queue (the first preset data queue).

[0074] Determine whether the long queue is full: if the long queue is full, first pop the oldest power data in the long queue, and then insert P into the long queue; if the long queue is not full, directly insert P into the long queue. Calculate the average power value of the long queue, which is denoted as AvgL.

[0075] Step 3: Calculate the trend strength value Strength, with the formula being (AvgS - AvgL) / AvgL.

[0076] Step 4: Determine whether Strength is greater than the preset upward trend threshold THRESr: If Strength>THRESr, it is determined that the power change trend is an upward trend, and then the current value (i.e., the value before update) of the credibility parameter Credibility is further determined: If Credibility>0, Credibility is increased by 1; if Credibility≤0, Credibility is set to 1.

[0077] If Strength≤THRESr, continue to determine whether Strength is less than the preset downward trend threshold THRESf: If Strength<THRESf, it is determined as a downward trend, and then Credibility is determined: If Credibility>0, Credibility is decreased by 1; if Credibility≤0, Credibility is set to -1.

[0078] If Strength is between THRESf and THRESr (that is, neither greater than THRESr nor less than THRESf), it is determined as a stable trend, and Credibility is set to 0.

[0079] Step 5: Complete one processing of power data, and the process ends (or return to step 1 to continue collecting the next power data).

[0080] The green laser power trend assessment method provided in this embodiment can accurately assess the long-term trend of green light power by eliminating the interference of short-term normal power fluctuations on trend judgment. This allows for early identification and intervention prompts in the early stages of power decline, preventing continuous power degradation from affecting laser performance.

[0081] This embodiment also provides a green laser power trend assessment device, which is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0082] This embodiment provides a green laser power trend assessment device, such as... Figure 6 As shown, it includes a power data acquisition module 601, a data queue maintenance module 602, an average value calculation module 603, and a trend determination module 604.

[0083] The power data acquisition module 601 is used to acquire the power data of the green laser; the data queue maintenance module 602 is used to simultaneously insert the power data into the first preset data queue and the second preset data queue. When either preset data queue is full, the oldest power data in the corresponding preset data queue is removed first, and then the new power data is inserted into the corresponding preset data queue; the length of the first preset data queue is greater than the length of the second preset data queue; the average value calculation module 603 is used to calculate the first average power value of the first preset data queue and the second average power value of the second preset data queue at the current moment; the trend determination module 604 is used to determine the power change trend of the green laser based on the comparison result of the first average power value and the second average power value.

[0084] In some optional implementations, the power data acquisition module 601 includes a power acquisition unit. The power acquisition unit is used to acquire power data of the green laser at a preset acquisition frequency.

[0085] In some optional implementations, the trend determination module 604 includes a trend intensity calculation unit and a trend determination unit. The trend intensity calculation unit is used to calculate a trend intensity value based on a first average power value and a second average power value; the trend determination unit is used to determine the power change trend of the green laser based on the relationship between the trend intensity value and the corresponding preset trend determination threshold.

[0086] In some optional implementations, the trend strength value is calculated using the following formula: ; in, Indicates the trend strength value. This represents the first average power value. This represents the second average power value.

[0087] In some optional implementations, the trend determination unit includes an upward trend determination subunit, a downward trend determination subunit, and a stable trend determination subunit. The upward trend determination subunit is used to determine that the power change trend is upward when the trend intensity value is greater than a preset upward trend threshold; the downward trend determination subunit is used to determine that the power change trend is downward when the trend intensity value is less than a preset downward trend threshold; and the stable trend determination subunit is used to determine that the power change trend is stable when the trend intensity value is between a preset downward trend threshold and a preset upward trend threshold.

[0088] In some optional implementations, the green laser power trend assessment device further includes a reliability update module. The reliability update module is used to update the data reliability value according to preset rules based on the power change trend determination result and the preset data reliability value before the update.

[0089] In some optional implementations, the credibility parameter update module includes a first update subunit, a second update subunit, a third update subunit, a fourth update subunit, and a fifth update subunit.

[0090] The first update subunit increases the preset data reliability by a preset step size when the power change trend is upward and the value before the preset data reliability update is positive. The second update subunit sets the preset data reliability to the preset step size when the power change trend is upward and the value before the preset data reliability update is non-positive. The third update subunit decreases the preset data reliability by a preset step size when the power change trend is downward and the value before the preset data reliability update is positive. The fourth update subunit sets the preset data reliability to the opposite of the preset step size when the power change trend is downward and the value before the preset data reliability update is non-positive. The fifth update subunit sets the preset data reliability to zero when the power change trend is stable.

[0091] The green laser power trend assessment device provided in this embodiment of the invention can execute the green laser power trend assessment method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects for executing the method. Further functional descriptions of the above modules and units are the same as in the corresponding embodiments described above, and will not be repeated here.

[0092] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention.

[0093] The following is a detailed reference. Figure 7This diagram illustrates a suitable structural schematic for implementing an electronic device according to embodiments of the present invention. The electronic device may include a processor (e.g., a central processing unit, graphics processor, etc.) 701, which can perform various appropriate actions and processes based on a program stored in read-only memory (ROM) 702 or a program loaded from memory 708 into random access memory (RAM) 703. The RAM 703 also stores various programs and data required for the operation of the electronic device. The processor 701, ROM 702, and RAM 703 are interconnected via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0094] Typically, the following devices can be connected to I / O interface 705: input devices 706 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 707 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; memory devices 708 including, for example, magnetic tapes, hard disks, etc.; and communication devices 709. Communication device 709 allows electronic devices to exchange data via wireless or wired communication with other devices. Although Figure 7 Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown, and more or fewer devices may be implemented or have instead.

[0095] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 709, or installed from a memory 708, or installed from a ROM 702. When the computer program is executed by the processor 701, it performs the functions defined in the green laser power trend assessment method of the embodiments of the present invention.

[0096] Figure 7 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments of the present invention.

[0097] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code. When the software or computer code is accessed and executed by the computer, processor, or hardware, the green laser power trend assessment method shown in the above embodiments is implemented.

[0098] A portion of this invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to the invention through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.

[0099] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. A method for evaluating the power trend of green lasers, characterized in that, The method includes: Obtain power data for the green laser; The power data is simultaneously inserted into a first preset data queue and a second preset data queue. When either preset data queue is full, the oldest power data in the corresponding preset data queue is removed first, and then the new power data is inserted into the corresponding preset data queue. The length of the first preset data queue is greater than the length of the second preset data queue. The first preset data queue is used to store a number of historical power data points limited by the length of the first preset data queue to calculate the long-term average power. The second preset data queue is used to store a number of historical power data points limited by the length of the second preset data queue to calculate the short-term average power. Calculate the first average power value of the first preset data queue and the second average power value of the second preset data queue at the current time. Based on the comparison between the first average power value and the second average power value, the power change trend of the green laser is determined; The method further includes: Based on the power change trend determination result and the value before the preset data credibility update, the data credibility value is updated according to preset rules; the updating of the data credibility value based on the power change trend determination result and the value before the preset data credibility update according to preset rules includes: When the power change trend is upward and the value before the preset data confidence is updated is positive, the preset data confidence is increased by a preset step value. When the power change trend is upward and the value before the preset data confidence update is not positive, the preset data confidence is set to the preset step size value. When the power change trend is downward and the value before the preset data confidence is updated is positive, the preset data confidence is reduced by a preset step size value. When the power change trend is downward and the value before the preset data confidence is updated is not positive, the preset data confidence is set to the opposite of the preset step size value. When the power change trend is stable, the preset data confidence level is set to zero.

2. The method according to claim 1, characterized in that, The acquisition of green laser power data includes: The power data of the green laser is acquired at a preset acquisition frequency.

3. The method according to claim 1, characterized in that, Determining the power variation trend of the green laser based on the comparison result of the first average power value and the second average power value includes: Calculate the trend strength value based on the first average power value and the second average power value; The power change trend of the green laser is determined based on the relationship between the trend intensity value and the corresponding preset trend judgment threshold.

4. The method according to claim 3, characterized in that, The formula for calculating the trend strength value is as follows: ; in, Indicates the trend strength value. This represents the first average power value. This represents the second average power value.

5. The method according to claim 3, characterized in that, The step of determining the power change trend of the green laser based on the relationship between the trend intensity value and the corresponding preset trend judgment threshold includes: When the trend intensity value is greater than the preset upward trend threshold, the power change trend is determined to be an upward trend; When the trend intensity value is less than the preset downward trend threshold, the power change trend is determined to be a downward trend; When the trend intensity value is between the preset downward trend threshold and the preset upward trend threshold, the power change trend is determined to be a stable trend.

6. A green laser power trend assessment system, characterized in that, The system includes: A photoelectric sensor is used to acquire power data of the green laser. A controller, connected to the photoelectric sensor, is used to perform the green laser power trend assessment method according to any one of claims 1 to 5.

7. A green laser power trend assessment device, characterized in that, The apparatus, used for performing the green laser power trend assessment method according to any one of claims 1 to 5, comprises: The power data acquisition module is used to acquire the power data of the green laser. The data queue maintenance module is used to simultaneously insert the power data into a first preset data queue and a second preset data queue. When either preset data queue is full, the oldest power data in the corresponding preset data queue is removed first, and then the new power data is inserted into the corresponding preset data queue. The length of the first preset data queue is greater than the length of the second preset data queue. The first preset data queue is used to store a number of historical power data points limited by the length of the first preset data queue to calculate the long-term average power. The second preset data queue is used to store a number of historical power data points limited by the length of the second preset data queue to calculate the short-term average power. The average value calculation module is used to calculate the first average power value of the first preset data queue and the second average power value of the second preset data queue at the current time, respectively. The trend determination module is used to determine the power change trend of the green laser based on the comparison result between the first average power value and the second average power value.

8. An electronic device, characterized in that, include: A memory and a processor are communicatively connected, the memory storing computer instructions, and the processor executing the computer instructions to perform the green laser power trend assessment method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Laser high-temperature test method and circuit, electronic equipment and storage medium

    CN116183184A

  • Transmission optimization method and device

    CN122068945A