Linear light beam span sensitivity homogenization calibration method and device based on optical attenuation model
By using a calibration method and device based on an optical attenuation model, intelligent uniform calibration of the span sensitivity of a linear beam detector was achieved. This solved the problems of low calibration accuracy and poor consistency in traditional methods, and improved the consistency of alarm sensitivity and signal stability of the detector at different installation distances.
Patent Information
- Application Number
- CN202511718785.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-21
- Publication Date
- 2026-02-17
AI Technical Summary
Existing linear beam detectors exhibit varying alarm sensitivities at different installation distances and suffer from poor calibration consistency. Reliance on manual experience leads to low calibration accuracy and inefficiency, making it difficult to quickly match the optimal calibration range in large-scale deployment scenarios. Furthermore, significant signal fluctuations result in inaccurate alarm threshold settings.
A calibration range correspondence table is constructed based on the optical attenuation model. By combining the maximum infrared signal intensity value Vmax and the automatic judgment device, intelligent identification of installation distance and automatic selection of target calibration range are realized. Through the coordinated mechanism of synchronously adjusting the current gain of the transmitting end and the signal gain of the receiving end, a consistency verification process is introduced to ensure signal stability and accurate setting of alarm threshold.
This method achieves consistent alarm sensitivity improvement for linear beam detectors at different installation distances, overcomes the reliance on manual experience in traditional methods, improves calibration efficiency and signal stability, and ensures stable and reliable monitoring performance of the detector in fire protection and security fields.
Smart Images

Figure CN121541297A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of linear light beam detector calibration, in particular to a linear light beam span sensitivity homogenization calibration method and device based on an optical attenuation model. BACKGROUND
[0002] In the practical application of linear light beam detectors, the installation distance often varies significantly due to differences in usage scenarios such as large factories, warehouses, high-rise building corridors, etc., and the alarm sensitivity of the detector needs to be accurately adapted to the installation distance to ensure stable and reliable monitoring results. This requirement is particularly critical in fields such as fire safety and security that require high monitoring accuracy. Currently, the span sensitivity calibration of linear light beam detectors mainly relies on traditional methods, and the overall technical status presents strong experience dependence and process limitations. In the modeling stage, traditional calibration often relies on the past experience of technical personnel to set calibration parameters and ranges, and the calibration consistency in different environments and distance scenarios is poor, which cannot form a unified and adaptive multi-distance category calibration standard, making it difficult to effectively quantify the signal attenuation and resulting in low overall calibration accuracy. At the same time, existing technologies often measure the installation distance manually or estimate the distance category based on rough signal strength, which not only causes distance judgment errors due to manual operation errors, but also consumes a large amount of time and costs, resulting in low efficiency. Especially in large-scale detector deployment scenarios, it is difficult to quickly match each detector with the corresponding optimal calibration range, thereby affecting the overall error and causing differences in the sensitivity of the detector in different installation distances. SUMMARY
[0003] The present application provides a linear light beam span sensitivity homogenization calibration method and device based on an optical attenuation model, which solves the technical problems of existing technology in different installation distances, alarm sensitivity differences, and poor calibration consistency.
[0004] To achieve the above purpose, the present application adopts the following technical solutions: In a first aspect, the method for uniformizing the sensitivity of a linear light beam span based on an optical attenuation model comprises: constructing an optical attenuation model based on historical data to obtain a calibration range correspondence table between installation distances and optimal calibration ranges; collecting a maximum infrared signal intensity value Vmax of a system gain maximum and located within a preset signal margin; querying the optimal calibration range corresponding to the maximum infrared signal intensity value Vmax through the calibration range correspondence table, and calculating a distance judgment reference value based on the optimal calibration range; comparing the maximum infrared signal intensity value Vmax and the distance judgment reference value, and obtaining an installation distance through an automatic determinator; determining an optimal calibration range as the target calibration range through the calibration range correspondence table; synchronously adjusting the current gain of the transmitting end and the signal gain of the receiving end with the target calibration range as the adjustment target, so as to make the infrared signal intensity value fall within the target calibration range; and performing consistency verification on the infrared signal intensity value, and automatically setting an alarm threshold value under the relative attenuation model if the verification is passed, or readjusting the current gain of the transmitting end and the signal gain of the receiving end if the verification is not passed.
[0005] Based on the above technical solution, in the method for uniformizing the sensitivity of a linear light beam span based on an optical attenuation model provided in the present application, the calibration range correspondence table generated through the optical attenuation model solves the problems of low model precision and poor consistency caused by the dependence of the traditional method on manual experience. The mutual combination of the maximum infrared signal intensity value Vmax verification and the automatic determinator judgment realizes intelligent identification of the installation distance and automatic selection of the target calibration range, and overcomes the defects of the existing technology, such as the error-prone and low-efficiency manual distance judgment. At the same time, through the cooperative mechanism of synchronous adjustment of the current gain of the transmitting end and the signal gain of the receiving end, the target calibration range is taken as the adjustment target, the infrared signal intensity value is quickly made to fall within the ideal interval, and the problems of insufficient optimization or excessive adjustment caused by single gain adjustment are avoided. Finally, the consistency verification process is introduced, the coefficient of variation of the steady-state intensity sequence is calculated and compared with a preset threshold value, the alarm threshold value under the relative attenuation model is automatically set after ensuring the signal stability, and the gain is readjusted if the verification is not passed, effectively solving the pain points of inaccurate alarm threshold value setting and low reliability caused by large signal fluctuation in the traditional method. Thus, a complete control process of self-adaptive modeling, automatic judgment and adjustment mechanism and closed-loop quality through data driving is constructed, the alarm sensitivity consistency of the detector under different installation distances is improved, and intelligent uniformization calibration of the span sensitivity of the linear light beam detector is realized.
[0006] In combination with the first aspect, in a possible implementation manner, the construction of the optical attenuation model specifically comprises: obtaining historical calibration data of a plurality of linear light beam detectors under different environments, and obtaining a center optical constant α center and a center distance attenuation coefficient β centerHistorical calibration data includes the installation distance d and the infrared signal intensity value Vd acquired at maximum gain; based on the central optical constant α. center and center distance attenuation coefficient β center A power function model was fitted using the least squares method, and a reference value Vd reflecting the relationship between the installation distance d and the signal strength was established. center Correspondence between benchmarks This is denoted as the center attenuation model, and the predicted signal strength reference value Vd is output. center ; the central optical constant α center Center distance attenuation coefficient β center The center attenuation model is distributed as an initial version to the local processing units of each linear beam detector to form a local attenuation model. The system receives the measured value of the infrared signal intensity and the predicted value of the signal intensity after each calibration operation in real time, and calculates the deviation between the measured value and the predicted value. The system attenuation deviation value is calculated by weighting the device aging factor, lens dust accumulation factor and ambient temperature change. The system attenuation deviation value is compared with a preset deviation threshold. If the system attenuation deviation value is lower than the preset deviation threshold, the update frequency of the center attenuation model is reduced. If the system attenuation deviation value is higher than the preset deviation threshold, the update frequency of the center attenuation model is increased, and an adjustment command containing the latest center attenuation model parameters is generated and sent to the corresponding detector.
[0007] In conjunction with the first aspect mentioned above, in one possible implementation, the process of constructing an optical attenuation model based on historical data to obtain a calibration range correspondence table between the installation distance and the optimal calibration range specifically includes: inputting a preset set of standard installation distances into the local attenuation model, and sequentially calculating the theoretical reference intensity value Vref corresponding to each installation distance in the standard installation distance set. i Using the theoretical signal strength reference value Vref i Centered on the target, extend upwards and downwards by a preset percentage range ±r%, forming a distance d from each standard installation point. i The corresponding optimal calibration range [Vref] i ×(1-r%),[Vref i [×(1+r%)];To include all standard installation distances d i Establish a mapping relationship between the installation distance and the corresponding optimal calibration range, and summarize and generate a calibration range correspondence table between the installation distance and the optimal calibration range.
[0008] In conjunction with the first aspect mentioned above, in one possible implementation, the process of acquiring the maximum infrared signal intensity value Vmax, which has the maximum system gain and is within a preset signal margin, specifically includes: setting the current gain of the transmitting end to the maximum allowable gain value of the system by adjusting the adjustable resistor or digital potentiometer in the driving circuit, and setting the signal gain of the receiving end to the maximum allowable gain value of the system by adjusting the feedback resistor of the operational amplifier or the gain register of the programmable gain amplifier; after verifying that there are no obstructions between the transmitting end and the receiving end, continuously acquiring the infrared signal intensity value through the analog-to-digital converter at the receiving end, wherein the acquisition duration of the infrared signal intensity value covers at least N complete signal modulation cycles, and The sampling frequency is not less than M times the signal modulation frequency, N≥3, M≥2; a moving average filtering algorithm is used to eliminate random noise for the infrared signal intensity value, and outliers are removed based on the 3σ criterion to obtain a signal intensity value sequence; the maximum value in the signal intensity value sequence is extracted as a candidate intensity value, and a preset signal margin range is obtained for verification. If the candidate intensity value falls within the preset signal margin range, the candidate intensity value is output as the maximum infrared signal intensity value Vmax. If the candidate intensity value is lower than the preset signal margin range, a low signal alarm is triggered and a prompt is made to check the installation distance or optical path. If the candidate intensity value is higher than the preset signal margin range, the system gain is reduced and the infrared signal intensity value is re-acquired.
[0009] In conjunction with the first aspect mentioned above, in one possible implementation, the process of running an automatic decision-maker to obtain the installation distance and determining the optimal calibration range by referring to a calibration range correspondence table specifically includes: extracting the standard installation distance d from the calibration range correspondence table. i The corresponding theoretical reference strength value V refi ; Obtain the preset tolerance offset δ for each theoretical reference strength value V refi Expand to generate each d i The corresponding distance judgment reference interval [V] refi -δ,V refi +δ], where the tolerance offset δ is dynamically adjusted based on the statistical variance of historical calibration data; the maximum infrared signal intensity value Vmax is matched with all distance judgment benchmark intervals by an automatic arbiter. If the maximum infrared signal intensity value Vmax falls within a certain distance judgment benchmark interval, the current installation distance is determined to belong to the standard installation distance d corresponding to that interval. i The distance category to which it belongs is determined, and based on the matched distance category, the corresponding optimal calibration range is retrieved from the calibration range correspondence table and denoted as the target calibration range [V]. lower V upper If the maximum infrared signal intensity value Vmax does not fall within any distance judgment reference range, a distance judgment abnormality signal is triggered, and an optical path check or data recalibration is performed.
[0010] In conjunction with the first aspect mentioned above, in one possible implementation, the process of synchronously adjusting the current gain at the transmitting end and the signal gain at the receiving end specifically includes: resolving the target calibration range [V]. lower V upper The target verification minimum value V lower And obtain the real-time infrared signal intensity value V current If the real-time infrared signal strength value V current Less than the target verification minimum value V lower If the signal intensity is high, the low-signal layer in gain adjustment mode will perform a gain boost operation; conversely, the high-signal layer in gain adjustment mode will perform a gain attenuation operation. In gain adjustment mode, the low-signal layer increases the signal gain at the receiver by increasing the feedback resistor value of the operational amplifier or increasing the gain register value of the programmable gain amplifier, thus obtaining the adjusted infrared signal intensity value V. improve Verify V improve With the target calibration range [V lower V upper If V improve Falling within the target calibration range [V lower V upper Within ], gain adjustment is completed and consistency verification is performed. If V improve Below the target verification minimum value V lower The infrared signal intensity value V after joint adjustment is obtained by increasing the current gain at the transmitting end by adjusting the adjustable resistor or digital potentiometer in the driving circuit. joint1 If V joint1 Falling within the target calibration range [V lower V upper Within ], gain adjustment is completed and consistency verification is performed. If V joint1 Below the target verification minimum value V lower If this occurs, a system fault alarm will be triggered, prompting an optical path check or device status diagnosis. In gain adjustment mode, the high-signal layer reduces the signal gain at the receiver by decreasing the feedback resistor value of the operational amplifier or lowering the gain register value of the programmable gain amplifier, thus obtaining the adjusted infrared signal intensity value V. updated Verify V updated With the target calibration range [V lower V upper If the infrared signal intensity value V updated Falling within the target calibration range [V lower V upper Within [a certain range], gain adjustment is completed to verify consistency. If the infrared signal intensity value V... updated Below the target verification minimum value V lower Then, by adjusting the adjustable resistor or digital potentiometer in the drive circuit, the current gain at the transmitting end is reduced, and the combined adjusted infrared signal intensity value V is obtained.joint2 If V joint2 Falling within the target calibration range [V lower V upper Within ], gain adjustment is completed and consistency verification is performed. If V joint2 Below the target verification minimum value V lower If this occurs, a system fault alarm will be triggered, prompting an optical path check or device status diagnosis.
[0011] In conjunction with the first aspect mentioned above, in one possible implementation, the gain adjustment mode further includes: integrating a narrowband pass optical filter in the optical path of the receiver, wherein the center wavelength of the narrowband pass optical filter is matched with the modulation frequency of the transmitter, and the passband half-width is preset according to the maximum ambient light interference intensity allowed by the system; controlling the modulation frequency and modulation depth of the transmitter to modulate the infrared beam to generate a modulated infrared signal; the receiver acquires a mixed signal containing the modulated infrared signal, ambient light interference, and circuit noise in real time, and uses a local oscillation signal synchronized with the modulation frequency of the infrared light source of the transmitter to demodulate the mixed signal through an orthogonal demodulator to obtain in-phase components; applying a digital filter to filter the demodulated in-phase components to obtain a purified infrared signal intensity sequence; extracting the peak value from the purified infrared signal intensity sequence as a candidate intensity value after anti-interference processing, and verifying it with a preset signal margin range to update the maximum infrared signal intensity value.
[0012] In conjunction with the first aspect mentioned above, in one possible implementation, the process of verifying the consistency of infrared signal intensity values specifically includes: continuously acquiring multiple infrared signal intensity values at the modulation frequency of the transmitting end to form a steady-state intensity sequence, and calculating the coefficient of variation of the steady-state intensity sequence; based on the requirements of the optical attenuation model for signal stability, a consistency threshold is preset and compared with the coefficient of variation. If the coefficient of variation is less than the consistency threshold, the consistency verification is deemed to have passed, the signal intensity is stable and the uniformity meets the requirements, and an alarm threshold setting process is triggered. If the coefficient of variation is greater than the consistency threshold, the consistency verification is deemed to have failed, and the current gain of the transmitting end and the signal gain of the receiving end are readjusted.
[0013] In conjunction with the first aspect mentioned above, in one possible implementation, the alarm threshold process specifically includes: calculating the average value of the steady-state intensity sequence as the reference signal intensity V. base And preset the relative attenuation coefficient k according to the minimum signal attenuation ratio required to trigger the alarm; set the reference signal strength V base And the relative attenuation coefficient k is input to the relative attenuation model. Calculate the alarm threshold V alarm It is configured to the detector's alarm judgment unit; the alarm judgment unit continuously monitors the real-time infrared signal strength, and when the monitored signal strength value is lower than V...alarm When the alarm signal is triggered, the reference signal strength V of this calibration is recorded. base Alarm threshold V alarm The calibration timestamp is also uploaded to the central cloud platform to update the historical calibration data of the optical attenuation model.
[0014] Secondly, a linear beam span sensitivity uniformity calibration device based on an optical attenuation model is provided, comprising: a communication unit and a processing unit; the communication unit is used for data interaction with a central cloud platform, including receiving optical attenuation model parameters and historical calibration data sent by the central cloud platform, and uploading calibration results and alarm information to the central cloud platform; the processing unit is used to construct an optical attenuation model, obtain a calibration range correspondence table between the installation distance and the optimal calibration range; acquire the maximum infrared signal intensity value Vmax with the maximum system gain and within a preset signal margin; and query the maximum infrared signal intensity value Vmax through the calibration range correspondence table. The corresponding optimal calibration range is determined, and the distance judgment benchmark value is calculated based on this optimal calibration range. The maximum infrared signal intensity value Vmax is compared with the distance judgment benchmark value, and the automatic judgment device is run to obtain the installation distance. The optimal calibration range is determined by combining the calibration range correspondence table and recorded as the target calibration range. The current gain of the transmitter and the signal gain of the receiver are adjusted synchronously with the target calibration range as the adjustment target to make the infrared signal intensity value fall within the target calibration range. The consistency of the infrared signal intensity value is verified. If the verification is successful, the alarm threshold is automatically set using the relative attenuation model. If it fails, the current gain of the transmitter and the signal gain of the receiver are readjusted.
[0015] This application provides a linear beam span sensitivity uniformity calibration method based on an optical attenuation model. It addresses the issues of low model accuracy and poor consistency caused by reliance on manual experience in traditional methods by using a calibration range correspondence table generated by the optical attenuation model. Combined with verification of the maximum infrared signal intensity value Vmax and automatic judgment by an automatic decision-maker, it achieves intelligent identification of the installation distance and automatic selection of the target calibration range, overcoming the shortcomings of manual distance judgment in existing technologies, which is prone to errors and inefficient. Simultaneously, through a coordinated mechanism of synchronously adjusting the transmitter current gain and receiver signal gain, with the target calibration range as the adjustment target, it quickly brings the infrared signal intensity value into the ideal range, avoiding the optimization deficiencies or over-adjustments caused by single gain adjustment. Finally, a consistency verification process is introduced. By calculating the coefficient of variation of the steady-state intensity sequence and comparing it with a preset threshold, it ensures signal stability and automatically sets the alarm threshold under the relative attenuation model. If the threshold is not met, the gain is readjusted, effectively solving the pain points of inaccurate alarm threshold setting and low reliability caused by large signal fluctuations in traditional methods. This establishes a complete control process through data-driven adaptive modeling, automated judgment and adjustment mechanisms, and closed-loop quality control, thereby improving the consistency of alarm sensitivity of the detector at different installation distances and achieving intelligent uniform calibration of the span sensitivity of the linear beam detector.
[0016] It should be understood that the descriptions of technical features, technical solutions, beneficial effects, or similar language in this application do not imply that all features and advantages can be achieved in any single embodiment. Rather, it is understood that the description of a feature or beneficial effect means that a specific technical feature, technical solution, or beneficial effect is included in at least one embodiment. Therefore, the descriptions of technical features, technical solutions, or beneficial effects in this specification do not necessarily refer to the same embodiment. Furthermore, the technical features, technical solutions, and beneficial effects described in this embodiment can be combined in any suitable manner. Those skilled in the art will understand that embodiments can be implemented without one or more specific technical features, technical solutions, or beneficial effects of a particular embodiment. In other embodiments, additional technical features and beneficial effects may be identified in specific embodiments that do not embody all embodiments. Attached Figure Description
[0017] Figure 1 The system architecture diagram of the linear beam span sensitivity uniformity calibration method based on the optical attenuation model provided in the embodiments of this application is shown. Figure 2 A schematic flowchart illustrating the linear beam span sensitivity uniformity calibration method based on an optical attenuation model provided in this application embodiment; Figure 3 A schematic flowchart illustrating the linear beam span sensitivity uniformity calibration method based on an optical attenuation model provided in this application embodiment; Figure 4 A schematic flowchart illustrating the linear beam span sensitivity uniformity calibration method based on an optical attenuation model provided in this application embodiment; Figure 5 A schematic flowchart illustrating the linear beam span sensitivity uniformity calibration method based on an optical attenuation model provided in this application embodiment; Figure 6 This is a schematic diagram of the process for a linear beam span sensitivity uniformity calibration device based on an optical attenuation model, provided in an embodiment of this application. Detailed Implementation
[0018] In the description of this application, unless otherwise stated, "" means "or," for example, A / B can mean A or B. "And / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. Furthermore, "at least one" means one or more, and "multiple" means two or more. The words "first," "second," etc., do not limit the quantity or order of execution, and "first," "second," etc., do not necessarily imply differences.
[0019] It should be noted that, in this application, the terms "exemplary" or "for example" are used to indicate that something is being described as an example, illustration, or illustration. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0020] To address the shortcomings of existing technologies, which rely on manual experience to determine calibration parameters, making it difficult to accurately quantify signal attenuation patterns at different installation distances, resulting in low calibration model accuracy and poor consistency across various environments and distances, it is challenging to establish a unified calibration standard adaptable to multiple distance categories. This fails to meet the precise calibration requirements of detectors in diverse installation scenarios. Secondly, in the installation distance identification and target calibration range selection stages, manually measuring the installation distance or estimating the distance category based on rough signal strength is prone to human error, leading to inaccurate distance judgments and consuming significant time, resulting in low efficiency. This is particularly problematic in large-scale detector deployments, where it is difficult to quickly match the optimal calibration range for each detector, further impacting calibration accuracy and overall efficiency. Furthermore, relying solely on adjusting the transmitter current gain or receiver signal gain lacks an effective strategy for coordinated adjustment, easily leading to insufficient signal optimization (e.g., adjusting only the receiver gain fails to bring the signal to the ideal range) or over-adjustment (e.g., adjusting only the transmitter gain causes the signal to exceed a reasonable range), making it difficult to stably control the infrared signal strength within the target calibration range suitable for the current installation distance. Furthermore, setting thresholds based on single or small signal measurements without fully considering signal fluctuations caused by ambient light interference, device aging, and lens dust accumulation can easily lead to inaccurate alarm threshold settings, resulting in false alarms or missed alarms and low reliability. Finally, the independent nature of each step in the overall calibration process, lacking real-time data feedback and dynamic optimization mechanisms, makes it impossible to adjust model parameters and adjustment strategies based on actual calibration results. This leads to poor consistency in alarm sensitivity of the detector at different installation distances, failing to meet the technical requirements of stable and reliable monitoring performance in fields such as fire protection and security. This application provides a linear beam span sensitivity uniformity calibration method based on an optical attenuation model. This method solves the problems of low model accuracy and poor consistency caused by reliance on manual experience in traditional methods by using a calibration range correspondence table generated by the optical attenuation model. Combined with verification of the maximum infrared signal intensity value Vmax and judgment by an automatic arbiter, it achieves intelligent installation distance measurement. It can automatically identify and select the target calibration range, overcoming the shortcomings of manual distance judgment in existing technologies, which is prone to errors and inefficient. At the same time, through the coordinated mechanism of synchronously adjusting the current gain of the transmitting end and the signal gain of the receiving end, the infrared signal intensity value is quickly brought into the ideal range with the target calibration range as the adjustment target, avoiding the problems of insufficient optimization or over-adjustment caused by single gain adjustment. Finally, a consistency verification process is introduced. By calculating the coefficient of variation of the steady-state intensity sequence and comparing it with a preset threshold, the alarm threshold under the relative attenuation model is automatically set after ensuring signal stability. If it fails, the gain is readjusted, which effectively solves the pain points of inaccurate alarm threshold setting and low reliability caused by large signal fluctuations in traditional methods.This establishes a complete control process through data-driven adaptive modeling, automated judgment and adjustment mechanisms, and closed-loop quality control, thereby improving the consistency of alarm sensitivity of the detector at different installation distances and achieving intelligent uniform calibration of the span sensitivity of the linear beam detector.
[0021] like Figure 1 As shown in the embodiments of this application, the linear beam span sensitivity uniformity calibration method based on the optical attenuation model includes: Step 101: Construct an optical attenuation model based on historical data to obtain a calibration range correspondence table between installation distance and optimal calibration range; Historical data refers to records collected during previous calibrations of multiple line-beam detectors under different environments, including the installation distance *d* and the infrared signal intensity value *Vd* acquired at maximum gain. The optical attenuation model is a mathematical relationship established through power function fitting, describing the relationship between the installation distance *d* and the signal intensity reference value *Vd*. center The correspondence between them.
[0022] In some implementations, historical calibration data from multiple linear beam detectors under different environments are obtained from a central cloud platform. The central optical constant and central distance attenuation coefficient are derived through central cloud computing. The power function model is then fitted using the least squares method to establish a central attenuation model reflecting the relationship between distance and signal strength reference values. This central attenuation model is then distributed as an initial version to the local processing units of each detector to form a local attenuation model. A preset set of standard installation distances is input into the local attenuation model, and the theoretical reference intensity value corresponding to each installation distance is calculated sequentially. Then, with each theoretical reference intensity value as the center, a preset percentage range ±r% is expanded upwards and downwards to generate a value corresponding to each standard installation distance d. i The corresponding optimal calibration range; thus all standard installation distances d i Establish a mapping relationship between each and its respective optimal calibration range, and summarize to generate a calibration range correspondence table between installation distance and optimal calibration range.
[0023] The process of constructing an optical attenuation model based on historical data and obtaining a calibration range correspondence table between installation distance and optimal calibration range specifically includes: Input the preset set of standard installation distances into the local attenuation model, and calculate the standard installation distance and the theoretical reference intensity value Vref corresponding to each installation distance in sequence. i ; The standard installation distance set refers to a pre-defined set of values representing different installation distances. Theoretical reference strength value V refi It is the theoretical infrared signal strength value calculated for each standard installation distance using a local attenuation model.
[0024] Using the theoretical signal strength reference value Vref i Centered on the target, extend upwards and downwards by a preset percentage range ±r%, forming a distance d from each standard installation point. i The corresponding optimal calibration range [Vref] i ×(1-r%),[Vref i [×(1+r%)]; All standard installation distances d i Establish a mapping relationship between the installation distance and the corresponding optimal calibration range, and summarize and generate a calibration range correspondence table between the installation distance and the optimal calibration range.
[0025] Step 102: Acquire the maximum infrared signal intensity value Vmax that is within the preset signal margin and has the maximum system gain; System gain refers to the combination of the current gain at the transmitting end and the signal gain at the receiving end. Maximum gain refers to setting the transmitting end current gain to the maximum allowed value by adjusting the adjustable resistor or digital potentiometer in the drive circuit, and setting the receiving end signal gain to the maximum allowed value by adjusting the feedback resistor of the operational amplifier or the gain register of the programmable gain amplifier. Preset signal margin refers to a pre-defined signal strength range used to verify whether the acquired signal strength value is reasonable. Maximum infrared signal strength value Vmax refers to the maximum value in the sequence of infrared signal strength values after signal processing, and it must fall within the preset signal margin.
[0026] In some implementations, the current gain of the transmitting end is set to the maximum allowable gain value of the system by adjusting the adjustable resistor or digital potentiometer in the driving circuit. At the same time, the signal gain of the receiving end is set to the maximum allowable gain value of the system by adjusting the feedback resistor of the operational amplifier or the gain register of the programmable gain amplifier. After verifying that there are no obstructions between the transmitting and receiving ends, the infrared signal intensity value is continuously acquired by the analog-to-digital converter of the receiving end. The acquisition time covers at least N complete signal modulation cycles and the sampling frequency is not less than M times the signal modulation frequency (N≥3, M≥2). The acquired infrared signal intensity values can then be preprocessed and verified, and the maximum value is selected as the maximum infrared signal intensity value Vmax.
[0027] Step 103: Look up the optimal calibration range corresponding to the maximum infrared signal intensity value Vmax through the calibration range correspondence table, and calculate the distance judgment benchmark value based on the optimal calibration range; Among them, the distance judgment benchmark value is the judgment interval [V] generated by expanding the optimal calibration range through the tolerance offset δ. refi -δ,V refi +δ].
[0028] In some implementations, the optimal calibration range corresponding to the maximum infrared signal intensity value Vmax is looked up in a calibration range mapping table, and then the standard installation distances d are extracted from the calibration range mapping table. i The corresponding theoretical reference strength value V refi And obtain the preset tolerance offset δ, and use the tolerance offset δ to calculate each theoretical reference strength value V. refi Expand to generate each d i The corresponding distance judgment reference interval [V] refi -δ,V refi +δ].
[0029] Step 104: Compare the maximum infrared signal intensity value Vmax with the distance judgment benchmark value, run the automatic judgment device to obtain the installation distance, and determine the optimal calibration range by combining the calibration range correspondence table, which is recorded as the target calibration range; The automatic decision-maker is a logic processing module used to match the maximum infrared signal intensity value Vmax with the distance judgment reference range to determine the installation distance category. Installation distance refers to the standard distance category to which the actual physical length of the detector's deployment belongs. The target calibration range is the optimal calibration range selected by the automatic decision-maker.
[0030] The process of obtaining the installation distance using an automatic judgment unit and determining the optimal calibration range by referring to a calibration range correspondence table specifically includes: Extract the standard installation distance d from the calibration range correspondence table. i The corresponding theoretical reference strength value V refi ; Obtain the preset tolerance offset δ for each theoretical reference strength value V refi Expand to generate each d i The corresponding distance judgment reference interval [V] refi -δ,V refi +δ], where the tolerance offset δ is dynamically adjusted based on the statistical variance of historical calibration data; The automatic detector matches the maximum infrared signal intensity value Vmax with all distance judgment reference intervals. If the maximum infrared signal intensity value Vmax falls within a certain distance judgment reference interval, the current installation distance is determined to belong to the standard installation distance d corresponding to that interval. i The distance category to which it belongs is determined, and based on the matched distance category, the corresponding optimal calibration range is retrieved from the calibration range correspondence table and denoted as the target calibration range [V]. lower V upper ]; If the maximum infrared signal intensity value Vmax does not fall within any distance judgment reference range, a distance judgment anomaly signal is triggered, and an optical path check or data recalibration is performed.
[0031] For example, if the distance judgment benchmark includes the intervals [48, 52] (corresponding to a standard distance of 20 meters) and [23, 27] (corresponding to a standard distance of 30 meters), and if Vmax = 50, the automatic judgment unit will find that 50 falls within the interval [48, 52], and the installation distance will be determined to be in the 20-meter category. The optimal calibration range corresponding to 20 meters will be found to be [47.5, 52.5], and this range will be recorded as the target calibration range.
[0032] Step 105: Using the target calibration range as the adjustment target, synchronously adjust the current gain of the transmitter and the signal gain of the receiver to make the infrared signal intensity value fall within the target calibration range. In this system, the current gain at the transmitting end is adjusted by changing the infrared emission intensity parameter through an adjustable resistor or digital potentiometer in the drive circuit. The signal gain at the receiving end is adjusted by changing the signal amplification factor parameter through adjusting the feedback resistor of the operational amplifier or the gain register of the programmable gain amplifier. Synchronous adjustment refers to the process of coordinating the adjustment of the transmitting end current gain and the receiving end signal gain in a specific sequence. The infrared signal strength value refers to the stable signal strength value of the detector during actual operation after gain adjustment.
[0033] In some implementations, the minimum target verification value V is first parsed. lower And obtain the real-time infrared signal intensity value V current If V current Less than V lower The low-signal layer then enters gain adjustment mode and performs a gain boost operation. This is achieved by increasing the feedback resistor value of the operational amplifier or increasing the gain register value of the programmable gain amplifier to increase the signal gain at the receiver, thus obtaining the adjusted infrared signal intensity value V. improve Afterwards, verify whether it falls within the target calibration range. If it still does not meet the requirements, adjust the adjustable resistor or digital potentiometer in the drive circuit to increase the current gain at the transmitting end for joint adjustment; if V current Greater than V upper Then, it enters the high signal layer to perform gain attenuation operation. First, it adjusts the signal gain by reducing the signal gain at the receiving end, and if necessary, it reduces the current gain at the transmitting end in combination, so that the infrared signal intensity value falls within the target calibration range.
[0034] Step 106: Verify the consistency of the infrared signal strength value. If the verification passes, use the relative attenuation model to automatically set the alarm threshold. If it fails, readjust the current gain of the transmitter and the signal gain of the receiver.
[0035] Consistency verification refers to the process of checking the stability of infrared signal strength values. The relative attenuation model is a mathematical model that calculates the alarm threshold based on stable infrared signal strength values and a preset attenuation coefficient. The alarm threshold is the critical signal strength value required to trigger the detector alarm.
[0036] The process of verifying the consistency of infrared signal intensity values specifically includes: Multiple infrared signal intensity values at the modulation frequency of the transmitting end are continuously collected to form a steady-state intensity sequence, and the coefficient of variation of the steady-state intensity sequence is calculated. Based on the optical attenuation model, a consistency threshold is preset to meet the signal stability requirements and compared with the coefficient of variation. If the coefficient of variation is less than the consistency threshold, the consistency verification is deemed to have passed, the signal strength is stable and the uniformity meets the requirements, and the alarm threshold setting process is triggered. If the coefficient of variation is greater than the consistency threshold, the consistency verification is deemed to have failed, and the current gain of the transmitting end and the signal gain of the receiving end are readjusted.
[0037] For example, if five consecutive infrared signal intensity values are collected to form a steady-state sequence [98, 99, 97, 99, 98], the coefficient of variation is calculated to be 0.008, and the preset consistency threshold is 0.01. Since 0.008 < 0.01, the verification is passed; the average value V is calculated. base =98.2, assuming the relative attenuation coefficient k=0.3, then the alarm threshold V alarm =98.2×(1-0.3)=68.74; If the sequence is [80,95,75,90,85] and the coefficient of variation is 0.09, which is greater than the threshold of 0.01, then the verification fails and the gain needs to be readjusted.
[0038] Based on the above technical solution, a standardized signal strength reference system covering various environmental conditions can be effectively established by collecting historical data, calculating central optical parameters, distributing local attenuation models, and generating calibration range correspondence tables through a central cloud platform. This achieves objectivity and unification of the calibration benchmark, avoiding the subjective experience of on-site technicians or calibration using single fixed parameters, which is difficult to cope with different environments (such as temperature and humidity changes) and device differences, leading to inconsistent calibration benchmarks and poor sensitivity consistency. Simultaneously, by acquiring Vmax, querying the correspondence table, calculating the dynamic benchmark interval, and automatically determining the matching of the detector, the complex distance judgment is transformed into a signal strength interval matching problem. This endows the system with adaptive fault tolerance. It achieves automatic identification of installation distance and accurate matching of the target calibration range, and then pre-adjusts the receiver, and if necessary, jointly adjusts the transmitting end's collaborative adjustment structure, using the target calibration range as a single target for bidirectional adjustment. This ensures adjustment efficiency while avoiding the limitations of single-dimensional adjustment, enabling rapid and accurate stabilization of signal strength within the optimal operating range. Finally, consistency verification is performed by acquiring steady-state sequences, calculating the coefficient of variation, and comparing it with thresholds. Only after successful verification can the process of setting alarm thresholds using the relative attenuation model proceed. This establishes a closed-loop quality control system of "adjustment-verification-setting." The relative attenuation model ensures that the alarm threshold maintains a preset proportional relationship with the current stable reference signal strength. Compared to existing methods that set fixed alarm thresholds, this effectively adapts to the slow signal attenuation caused by component aging, lens dust accumulation, etc., preventing false alarms or missed alarms during use. Simultaneously, the closed-loop verification mechanism ensures that the alarm threshold setting is based on a stable signal, improving alarm reliability and system robustness.
[0039] In one possible implementation of the embodiments of this application, combined with Figure 1 ,like Figure 2 As shown, the optical attenuation model can be constructed through the following steps 201 to 205, which are explained in detail below: Step 201: Obtain historical calibration data of multiple line beam detectors under different environments, and obtain the central optical constant α through central cloud computing. center and center distance attenuation coefficient β center Historical calibration data includes the installation distance d and the infrared signal intensity value Vd acquired at maximum gain; Different environments refer to various usage scenarios for the deployment of line beam detectors, such as situations with changing conditions like temperature and humidity. Multiple line beam detectors refer to multiple independent detector devices. Centralized cloud computing involves centralized data processing and computation through a cloud platform; the central optical constant α... center These are system optical parameters obtained through central cloud computing, used to reflect the signal strength reference; the center distance attenuation coefficient β centerIt is the influence coefficient of distance on signal attenuation obtained through central cloud computing.
[0040] Step 202, based on the central optical constant α center and center distance attenuation coefficient β center A power function model was fitted using the least squares method, and a reference value Vd reflecting the relationship between the installation distance d and the signal strength was established. center Correspondence between benchmarks This is denoted as the center attenuation model, and the predicted signal strength reference value Vd is output. center ; In some implementations, the central optical constant α is... center and center distance attenuation coefficient β center As initial parameters for the power function model, the sum of squared residuals between actual data points and model predictions is calculated, and the parameters are iteratively adjusted to minimize this sum, thus completing the fitting operation. This establishes the relationship between the installation distance d and the signal strength reference value Vd. center The baseline correspondence between them is defined as the center attenuation model, which can be used to automatically output the predicted signal strength baseline value V for the input distance d. dcenter .
[0041] Step 203: Set the central optical constant α center Center distance attenuation coefficient β center The center attenuation model is distributed as the initial version to the local processing units of each linear beam detector to form a local attenuation model; The local processing unit is a component inside the detector used for data processing and model storage; the local attenuation model is an attenuation model formed locally on each detector based on the parameters issued.
[0042] Step 204: Receive the measured value of infrared signal intensity and the signal intensity value predicted by the local attenuation model after each calibration operation in real time, calculate the deviation between the measured value and the predicted signal intensity value, and calculate the system attenuation deviation value by weighting the device aging factor, lens dust accumulation factor and ambient temperature change. In some implementations, after each calibration operation, the measured value of the infrared signal intensity is received in real time, and the signal intensity value predicted by the local attenuation model is obtained simultaneously. The deviation between the measured value and the predicted value can then be calculated (e.g., using the absolute deviation formula |measured value - predicted value| or the relative deviation formula |measured value - predicted value| / predicted value). Based on historical calibration data statistics or experience, the weights of each factor are preset (e.g., the weight of the device aging factor is set as w1, the weight of the lens dust accumulation factor is set as w2, and the weight of the ambient temperature change is set as w3, and w1+w2+w3=1 is satisfied, with the weight values allocated according to the degree of influence of each factor on signal attenuation). The weights can then be used to perform weighted calculations to obtain the system attenuation deviation value for system status assessment.
[0043] Step 205: Compare the system attenuation deviation value with the preset deviation threshold. If the system attenuation deviation value is lower than the preset deviation threshold, reduce the update frequency of the center attenuation model. If the system attenuation deviation value is higher than the preset deviation threshold, increase the update frequency of the center attenuation model and generate an adjustment command containing the latest center attenuation model parameters and send it to the corresponding detector.
[0044] In some implementations, the calculated system attenuation deviation value is compared with a preset deviation threshold to determine if the deviation is within an acceptable range. If the system attenuation deviation value is lower than the preset threshold, the update frequency of the central attenuation model is reduced (e.g., changing from daily to weekly updates to reduce unnecessary resource consumption). If the system attenuation deviation value is higher than the preset threshold, the update frequency of the central attenuation model is increased (e.g., changing from weekly to daily or even real-time updates to ensure the model can quickly adapt to changes). When an increased update frequency is required, the central cloud platform immediately generates a new central attenuation model containing the latest calculated parameters (e.g., the updated central optical constant α). center and center distance attenuation coefficient β center The system receives adjustment commands and transmits these commands precisely to the corresponding detectors via a communication network, thus completing the dynamic adjustment of the model.
[0045] Based on the above technical solution, a central cloud platform is first used as the core node to collect historical calibration data under different environments. Statistical analysis is then used to calculate the central optical constant and the central distance attenuation coefficient. This effectively avoids parameter deviations caused by manual operation or environmental differences in decentralized processing, ensuring the objectivity of the calibration benchmark. Simultaneously, the least squares method is used to optimize and fit the power function model, establishing a correspondence between the installation distance and the signal strength benchmark value. This effectively and accurately quantifies the signal attenuation law and outputs reliable predicted values, improving adaptability to complex environmental changes and reducing model prediction errors. Furthermore, the deviation between the measured and predicted values is calculated, and weighted calculations are performed using device aging factors, lens dust accumulation factors, and environmental temperature changes to obtain the system attenuation deviation value. This effectively allows for comprehensive evaluation of the system status through preset weights (such as weight ratios based on historical data), achieving timely reflection of environmental or equipment changes. This enables more flexible responses to interference from device aging, dust accumulation, or temperature fluctuations, leading to signal instability and low alarm reliability. Finally, the system attenuation deviation value is compared with a preset threshold. When the deviation value is low, the central model update frequency is reduced to save resources; when the deviation value is high, the frequency is increased and new parameters are issued. This achieves a balance between accuracy and efficiency through intelligent adjustment strategies.
[0046] In one possible implementation of this application embodiment, the process of acquiring the maximum infrared signal intensity value Vmax that has the maximum system gain and is within a preset signal margin can be achieved through the following steps 301 to 304, which are described in detail below: Step 301: By adjusting the adjustable resistor or digital potentiometer in the drive circuit, set the current gain of the transmitting end to the maximum gain value allowed by the system, and by adjusting the feedback resistor of the operational amplifier or the gain register of the programmable gain amplifier, set the signal gain of the receiving end to the maximum gain value allowed by the system. In the driving circuit, the adjustable resistor is a variable resistor used to control the current by manually adjusting its resistance value. The digital potentiometer is an electronic component that adjusts the resistance value via digital signals to achieve precise current control. The current gain at the transmitting end refers to the factor by which the intensity of the infrared light source's emission is amplified by adjusting the driving circuit parameters. The maximum allowable gain value of the system is an upper limit set during system design to prevent signal overload or distortion. The feedback resistor of the operational amplifier is used to set the amplification factor of the operational amplifier; the gain is adjusted by changing the resistance value. The gain register of the programmable gain amplifier is a storage unit used to store and set the amplifier's gain value, allowing for digital programming. The signal gain at the receiving end refers to the factor by which the intensity of the received infrared signal is amplified by adjusting the amplifier parameters.
[0047] In some implementations, the adjustable resistor knob is manually rotated or a control signal is sent to the digital potentiometer to increase the current output, so that the emission intensity of the infrared light source reaches the maximum possible level. Then, the signal amplification factor is increased by adjusting the resistance value of the feedback resistor or modifying the value of the gain register, ensuring that the receiver can capture the strongest infrared signal.
[0048] Step 302: After verifying that there are no obstructions between the transmitter and receiver, the infrared signal intensity value is continuously collected through the analog-to-digital converter of the receiver. The collection time of the infrared signal intensity value covers at least N complete signal modulation cycles, and the sampling frequency is not less than M times the signal modulation frequency, where N≥3 and M≥2. An analog-to-digital converter (ADC) is a device that converts analog signals into digital signals.
[0049] In some implementations, it is first verified that there are no obstructions between the transmitter and receiver to ensure that the signal transmission path is unobstructed. Then, the analog-to-digital converter of the receiver is adjusted so that its sampling frequency is not less than M times the signal modulation frequency to meet the sampling theorem requirements and avoid signal distortion. In this way, the infrared signal intensity value is continuously collected, and the collection time must cover at least N complete signal modulation cycles to ensure that multiple cycles of data are collected for subsequent analysis.
[0050] Step 303: Use the moving average filtering algorithm to eliminate random noise from the infrared signal intensity values and remove outliers based on the 3σ criterion to obtain the signal intensity value sequence; The moving average filtering algorithm is a digital signal processing technique that smooths data fluctuations by calculating the arithmetic mean of continuous data points. Random noise is an unpredictable random interference component in a signal, caused by environmental factors or circuit defects. The 3σ criterion is a method of anomaly detection that assumes the data follows a normal distribution and considers data points exceeding the mean plus or minus three standard deviations as outliers. Outliers are individual data points that deviate significantly from the overall trend of the dataset. A signal strength value sequence is an ordered set of data points obtained after processing.
[0051] In some implementations, a fixed-length window (e.g., containing 5 consecutive data points) is selected, the average value of the data within the window is calculated as the filtered value of the current point, and the window is slid to the next point to repeat the calculation, thereby gradually smoothing the data and effectively suppressing the influence of random noise. The mean and standard deviation of the sequence can be calculated, and the judgment interval is set as the mean plus or minus three times the standard deviation. Each data point in the sequence is traversed, and if its value exceeds the interval, it is marked as an outlier and removed. The remaining data points after processing are combined in sequence to obtain a clean and stable signal strength value sequence for subsequent analysis.
[0052] Step 304: Extract the maximum value from the signal strength value sequence as the candidate strength value, and verify it by obtaining a preset signal margin range. If the candidate strength value falls within the preset signal margin range, output the candidate strength value as the maximum infrared signal strength value Vmax. If the candidate strength value is lower than the preset signal margin range, trigger a low signal alarm and prompt to check the installation distance or optical path. If the candidate strength value is higher than the preset signal margin range, reduce the system gain and re-acquire the infrared signal strength value.
[0053] The preset signal margin range is a reasonable range of signal strength pre-set by the system, used to verify whether the candidate value is valid.
[0054] In some implementations, the maximum value is extracted from the processed signal strength value sequence and used as a candidate strength value. Then, the system's preset signal margin range is obtained. The candidate strength value is then compared with the preset range: if the candidate value falls within the preset range, it is confirmed as the maximum infrared signal strength value Vmax and output; if the candidate value is below the preset range, a low signal alarm is triggered, prompting the user to check for problems with the installation distance or optical path; if the candidate value is above the preset range, the signal level is adjusted by reducing the system gain, and the infrared signal strength value acquisition process is repeated to obtain new data.
[0055] Based on the above technical solution, by adjusting the adjustable resistor or digital potentiometer in the drive circuit to set the transmitter current gain to the maximum, and by adjusting the feedback resistor of the operational amplifier or the gain register of the programmable gain amplifier to set the receiver signal gain to the maximum, the system gain can be automatically optimized initially, ensuring that the signal strength reaches the theoretical maximum value in the initial stage, providing a high signal-to-noise ratio foundation for subsequent acquisition. Simultaneously, after verifying the absence of obstructions, the infrared signal strength value is continuously acquired via an analog-to-digital converter. By constraining the acquisition duration to cover at least N complete modulation cycles and the sampling frequency to be no less than M times the modulation frequency, the integrity of the signal data and anti-aliasing effect can be effectively guaranteed through synchronization constraints in the time and frequency domains, avoiding information loss due to insufficient sampling. Furthermore, applying a moving average filtering algorithm to the acquired values to eliminate random noise and removing outliers based on the 3σ criterion, through digital signal processing algorithms and statistical models, achieves signal sequence purification and stabilization, reducing the impact of environmental interference and random errors. Finally, the maximum value of the sequence is extracted as a candidate value and verified with the preset signal margin range. Based on the result, Vmax is output, an alarm is triggered, or the data is reacquired, effectively forming a closed-loop feedback mechanism. This enables dynamic adjustment of the calibration process and self-diagnosis of faults, ensuring the reliability and consistency of the output value.
[0056] In one possible implementation of this application embodiment, the process of synchronously adjusting the current gain of the transmitting end and the signal gain of the receiving end can be achieved through the following steps 401 to 407, which are described in detail below: Step 401: Analyze the target calibration range [V] lower V upper The target verification minimum value V lower And obtain the real-time infrared signal intensity value V current If the real-time infrared signal strength value V current Less than the target verification minimum value V lower If the signal is in gain adjustment mode, the low signal layer will perform a gain boost operation; otherwise, the high signal layer will perform a gain attenuation operation. Among them, the gain adjustment mode is the different operating state that the system enters based on the signal strength comparison results, including low signal layer and high signal layer.
[0057] Gain adjustment modes also include: A narrowband pass optical filter is integrated into the optical path at the receiving end. The center wavelength of the narrowband pass optical filter is matched with the modulation frequency at the transmitting end, and the passband half-width is preset according to the maximum ambient light interference intensity allowed by the system. A narrowband pass-through optical filter is an optical device that allows only a specific, narrow wavelength range of light to pass through, used to filter out interfering light. The center wavelength is the wavelength with the highest transmittance of the filter and must be matched with the modulation frequency of the transmitter to ensure signal alignment. The transmitter modulation frequency is the rate at which the intensity of the infrared light source changes periodically and is used for signal encoding. The passband half-width is half the width of the filter's transmission bandwidth, preset according to the maximum allowable ambient light interference intensity of the system to balance signal selectivity and anti-interference capability.
[0058] The intensity of the infrared beam is modulated by controlling the modulation frequency and modulation depth of the transmitter to generate a modulated infrared signal. The modulation depth is the amplitude of the intensity modulation of the infrared beam, controlling the degree of signal modulation. Intensity modulation embeds information by changing the intensity of the infrared beam, generating a modulated infrared signal.
[0059] The receiver acquires a mixed signal containing modulated infrared signal, ambient light interference and circuit noise in real time, and uses a local oscillation signal synchronized with the modulation frequency of the infrared light source at the transmitter to demodulate the mixed signal through a quadrature demodulator to obtain in-phase components. The mixed signal is a combined signal acquired in real time by the receiver, containing modulated infrared signals, ambient light interference, and circuit noise. The local oscillator signal is a reference signal generated synchronously with the modulation frequency of the transmitter, used for demodulation synchronization. A quadrature demodulator is a device that separates the in-phase and quadrature components of a signal, extracting components through processing the mixed signal and the reference signal. The in-phase component is the part of the signal that is in phase with the reference signal, reflecting the strength of the useful signal.
[0060] A digital filter is applied to filter the demodulated in-phase component to obtain a purified infrared signal intensity sequence. Among them, digital filters are filters that use algorithms to process signals, eliminating noise to obtain a purified sequence. The purified infrared signal intensity sequence is ordered signal data after filtering and noise reduction.
[0061] The peak value is extracted from the purified infrared signal intensity sequence and used as a candidate intensity value after anti-interference processing. It is then verified against the preset signal margin range to update the maximum infrared signal intensity value.
[0062] Peak extraction is the process of finding the maximum value in a sequence. Candidate intensity values are the initial signal intensity values determined after peak extraction. The preset signal margin range is a pre-defined reasonable range of signal intensity used to verify candidate values. The maximum infrared signal intensity value is the maximum signal value used in calibration and is updated through anti-interference processing.
[0063] For example, assuming the transmitter's modulation frequency is 10kHz, the center wavelength of the narrowband pass filter is set to match this frequency, and the passband half-width is preset to 20nm based on the maximum ambient light interference intensity; the modulation depth is adjusted to 50% to generate a modulated infrared signal; after the receiver acquires the mixed signal, it uses a synchronous 10kHz local oscillator signal to demodulate it through a quadrature demodulator to obtain the in-phase component; after processing by a digital filter, the purified sequence peak value is 80 units, which is used as a candidate intensity value; if the preset signal margin range is [70, 90], the verification is passed, and the maximum infrared signal intensity value is updated to 80; otherwise, it is readjusted.
[0064] Step 402: In the low-signal layer of the gain adjustment mode, the signal gain at the receiving end is increased by increasing the feedback resistor value of the operational amplifier or increasing the gain register value of the programmable gain amplifier, thus obtaining the adjusted infrared signal intensity value V. improve ; In some implementations, when the system enters the low signal layer of gain adjustment mode, a gain boost operation is automatically initiated. The signal gain at the receiver can be adjusted in two selectable ways: one is to increase the feedback resistor value of the operational amplifier, thereby increasing the amplification factor of the operational amplifier; the other is to increase the value of the gain register of the programmable gain amplifier, digitally increasing the gain setting. At this time, the gain adjustment directly enhances the receiver's amplification capability for infrared signals, thus improving signal strength. Therefore, the adjusted infrared signal can be directly acquired to obtain the improved infrared signal strength value V. improve .
[0065] For example, assume the real-time infrared signal strength value V current The minimum value of the target verification is 40. lower When the value is 50, the system enters the low signal layer. By increasing the feedback resistor value of the operational amplifier from 10kΩ to 15kΩ, or increasing the gain register value of the programmable gain amplifier from 100 to 150, the signal gain at the receiving end is increased, ultimately obtaining the adjusted V. improve The value is 55, which meets the target requirement.
[0066] Step 403, Verify V improve With the target calibration range [V lower V upper If V improve Falling within the target calibration range [V lower V upper Within ], gain adjustment is completed and consistency verification is performed. If V improve Below the target verification minimum value V lower The infrared signal intensity value V after joint adjustment is obtained by increasing the current gain at the transmitting end by adjusting the adjustable resistor or digital potentiometer in the driving circuit. joint1 ; Among them, the infrared signal intensity value V after joint adjustment joint1 It is the signal value obtained after simultaneously adjusting the gain of the receiving end and the transmitting end.
[0067] In some implementations, the adjusted infrared signal intensity value V is obtained. improve and with the target calibration range [V lower V upper Perform a numerical comparison: if V improve The value falls within V lower and V upper If the signal falls within the target calibration range, the system determines that the gain adjustment is complete and immediately enters the consistency verification phase to confirm whether the signal stability meets the requirements; if V improve Below the target verification minimum value V lowerIf the signal is adjusted, a joint adjustment mechanism will be automatically activated. This mechanism increases the current gain at the transmitting end by adjusting the adjustable resistor in the drive circuit (e.g., manually rotating the resistor value) or the digital potentiometer (e.g., sending a control signal to change the resistance value), thereby enhancing the transmission intensity of the infrared signal. Furthermore, the signal is acquired in real time after adjustment to obtain the infrared signal intensity value V after joint adjustment. joint1 .
[0068] For example, assuming the target calibration range is set to [50, 60], V improve The value is 45, since 45 is lower than V. lower (50) The system increases the resistance from 10kΩ to 15kΩ by adjusting the adjustable resistor in the drive circuit, thereby increasing the current gain at the transmitter and finally obtaining V. joint1 If V is 55, it falls within the target range; improve If the value is 55, the verification will pass directly without further adjustment.
[0069] Step 404, if V joint1 Falling within the target calibration range [V lower V upper Within ], gain adjustment is completed and consistency verification is performed. If V joint1 Below the target verification minimum value V lower If this occurs, a system fault alarm will be triggered, prompting an optical path check or device status diagnosis. In some implementations, the infrared signal intensity value V after joint adjustment is obtained. joint1 With the target calibration range [V lower V upper Perform a numerical comparison: if V joint1 The value is greater than or equal to V lower And less than or equal to V upper If the signal falls within the target calibration range, the gain adjustment is considered complete, and the system immediately enters the consistency verification phase. This involves continuously acquiring multiple infrared signal intensity values to form a steady-state sequence and calculating the coefficient of variation to confirm signal stability. If V... joint1 Below the target verification minimum value V lower If the system fails, it will automatically trigger a fault alarm, generate an audible and visual alarm signal, and prompt the user to check the optical path to confirm that there are no obstructions or dirt on the path. At the same time, it will perform device status diagnosis to assess whether the transmitter, receiver and other components are working properly.
[0070] Step 405: In the high-signal layer of the gain adjustment mode, the signal gain at the receiving end is reduced by decreasing the feedback resistor value of the operational amplifier or decreasing the gain register value of the programmable gain amplifier, thus obtaining the adjusted infrared signal intensity value V. updated ; In some implementations, when the system enters the high signal layer of gain adjustment mode, gain attenuation is automatically initiated. This can be achieved by reducing the signal gain at the receiver in two selectable ways: one is to reduce the feedback resistor value of the operational amplifier, thereby reducing the amplification factor of the operational amplifier; the other is to reduce the value of the gain register of the programmable gain amplifier, digitally reducing the gain setting. At this time, gain adjustment directly weakens the receiver's amplification capability for the infrared signal, reducing the signal strength. This allows the adjusted infrared signal to be acquired, obtaining an updated infrared signal strength value V. updated .
[0071] Step 406, Verify V updated With the target calibration range [V lower V upper If the infrared signal intensity value V updated Falling within the target calibration range [V lower V upper Within [a certain range], gain adjustment is completed to verify consistency. If the infrared signal intensity value V... updated Below the target verification minimum value V lower Then, by adjusting the adjustable resistor or digital potentiometer in the drive circuit, the current gain at the transmitting end is reduced, and the combined adjusted infrared signal intensity value V is obtained. joint2 ; Among them, the infrared signal intensity value V after high signal layer adjustment is obtained. updated and compare it with the target calibration range [V lower V upper Perform numerical comparison and verification: If V updated The value falls within V lower and V upper If the gain adjustment is complete within the specified range, the system immediately enters the consistency verification phase, where stability is confirmed by calculating the coefficient of variation through continuous acquisition of the signal sequence; if V updated Below the target verification minimum value V lower If the signal is not properly adjusted, a joint adjustment mechanism will be automatically activated. This mechanism reduces the current gain at the transmitting end by adjusting the adjustable resistor in the drive circuit (e.g., by rotating it counterclockwise to decrease the resistance) or the digital potentiometer (e.g., by sending a command to lower the set value), thereby reducing the infrared emission intensity. The adjusted signal is then acquired in real time to obtain the jointly adjusted infrared signal intensity value V. joint2 .
[0072] For example, assuming the target calibration range is [50, 60], V updated 45 (lower than V) lower =50), the system reduces the resistance from 15kΩ to 10kΩ by adjusting the adjustable resistor in the drive circuit, or reduces the value from 200 to 150 by using a digital potentiometer, thereby reducing the transmitter current gain and making V joint2Reaching 55 and falling within the target range; if V updated If the value is 55, the verification will pass directly.
[0073] Step 407, if V joint2 Falling within the target calibration range [V lower V upper Within ], gain adjustment is completed and consistency verification is performed. If V joint2 Below the target verification minimum value V lower If this occurs, a system fault alarm will be triggered, prompting an optical path check or device status diagnosis.
[0074] Among them, V joint2 It is the infrared signal intensity value obtained by jointly adjusting the current gain at the transmitting end and the signal gain at the receiving end.
[0075] In some implementations, the infrared signal intensity value V after joint adjustment is obtained. joint2 and the preset target calibration range [V lower V upper Perform a numerical comparison; if V joint2 The value falls within V lower and V upper Within the specified range, the gain adjustment phase is automatically determined to be complete, and the consistency verification process immediately begins. This involves continuously acquiring multiple infrared signal intensity values at the transmitter's modulation frequency to form a steady-state sequence, and calculating its coefficient of variation to verify signal stability. If V joint2 Below the target verification minimum value V lower If the system fails, a fault alarm will be triggered, generating a clear prompt message to guide the user to check the optical path to confirm whether the optical path is blocked or contaminated. At the same time, device status diagnosis will be initiated to assess the working status of key components such as the transmitter light source or the receiver sensor, thereby ensuring that the problem can be located and dealt with in a timely manner.
[0076] Based on the above technical solution, a three-level structure of signal acquisition, model query, and interval matching is adopted. First, Vmax, the value at which the system gain is at its maximum, is acquired. Then, the corresponding distance is looked up in a calibration range correspondence table to determine the benchmark interval. Finally, an automatic decision-maker matches Vmax with the benchmark interval to determine the installation distance category and lock the target calibration range [Vlower, Vupper]. This achieves automatic identification of the installation distance and precise matching of the target calibration range, avoiding errors from manual measurement and reliance on subjective experience. Simultaneously, optical filtering, signal modulation and demodulation, and bidirectional gain adjustment are deeply integrated to form an anti-interference closed-loop control system. This effectively suppresses ambient light interference and circuit noise, and through coordinated adjustment, quickly stabilizes the signal within the target calibration range, avoiding the shortcomings of single-dimensional adjustment. Finally, through a three-level judgment logic of single-layer adjustment verification, joint adjustment verification, and fault alarm, dynamic optimization and anomaly self-diagnosis of the calibration process are achieved, forming a closed-loop quality control of adjustment, verification, and fault location, ensuring calibration reliability while reducing the cost of manual intervention.
[0077] In one possible implementation of this application embodiment, the alarm threshold process can be implemented through the following steps 501 to 503, which are described in detail below: Step 501: Calculate the average value of the steady-state intensity sequence as the reference signal intensity V. base And preset the relative attenuation coefficient k according to the minimum attenuation ratio of the signal required to trigger the alarm; Among them, the steady-state intensity sequence refers to the stable data sequence formed by continuously acquiring multiple infrared signal intensity values during the calibration process of an online beam detector.
[0078] In some implementations, after the conformance verification is passed, multiple infrared signal intensity values at the modulation frequency of the transmitting end are continuously collected to form a steady-state intensity sequence. The average value of this sequence can then be calculated to obtain the reference signal intensity V. base And preset the relative attenuation coefficient k according to the minimum signal attenuation ratio required to trigger the alarm.
[0079] Step 502: Set the reference signal strength V base And the relative attenuation coefficient k is input to the relative attenuation model. Calculate the alarm threshold V alarm And configure it to the alarm judgment unit of the detector; Step 503: The alarm judgment unit continuously monitors the real-time infrared signal strength. When the monitored signal strength value is lower than V... alarm When the alarm signal is triggered, the reference signal strength V of this calibration is recorded. base Alarm threshold V alarm The calibration timestamp is also uploaded to the central cloud platform to update the historical calibration data of the optical attenuation model.
[0080] The alarm judgment unit is a component inside the detector used to continuously monitor the infrared signal strength and perform alarm judgments. The real-time infrared signal strength is the actual intensity value of the infrared signal currently received by the detector. alarm This is the critical signal strength value calculated using a relative attenuation model. The alarm signal is triggered when the signal strength drops below V. alarm The system automatically generates an alarm indication.
[0081] In some implementations, the alarm judgment unit continuously monitors the real-time infrared signal strength and collects signal data in real time through built-in sensors and circuits; when the monitored signal strength value is lower than a preset alarm threshold V... alarm Upon activation, an alarm signal is immediately triggered, generating an audible and visual alarm or other form of alert. At this time, the system will automatically record the key parameters of this calibration, including the reference signal strength V. base Alarm threshold V alarm The system records calibration timestamps and stores this data in local storage. Simultaneously, it packages and uploads the recorded data to the central cloud platform via a communication unit, ensuring the reliability and security of data transmission. Upon receiving the uploaded data, the central cloud platform automatically parses and updates the historical calibration database of the optical attenuation model, recalculating model parameters using the new data to improve the model's accuracy and adaptability.
[0082] Based on the above technical solution, by calculating the average value of the steady-state sequence as the reference signal strength, digital signal processing techniques (such as moving average filtering and coefficient of variation calculation) can be used to avoid random errors in single measurements and ensure the stability of the reference signal, thereby achieving high precision and anti-interference capability in alarm threshold setting. Furthermore, in conjunction with a relative attenuation model, mathematical modeling and automatic configuration mechanisms can replace manual threshold setting, achieving rapid and consistent adaptation of the alarm threshold. Finally, the alarm judgment unit continuously monitors the real-time signal, and when the signal is below V... alarm An alarm is triggered at any time, and V is automatically recorded. base V alarm The system records and timestamps data, which is then uploaded by the communication unit to the central cloud platform to update historical data, forming a closed-loop process of monitoring, alarming, recording, and feedback. Cloud computing power is used to dynamically optimize the optical attenuation model, thereby improving the system's long-term stability and adaptability. This ensures uniform alarm sensitivity at different installation distances.
[0083] The above primarily describes the solutions of the embodiments of this application from the perspective of device implementation. It is understood that each device, such as the linear beam span sensitivity homogenization calibration device based on the optical attenuation model, includes at least one of the hardware structures and software modules corresponding to each function in order to achieve the above-mentioned functions. Those skilled in the art should readily recognize that, in conjunction with the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is implemented in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0084] In this embodiment of the application, the linear beam span sensitivity uniformity calibration device based on the optical attenuation model can be divided into functional units according to the above method example. For example, each function can be divided into a functional unit, or two or more functions can be integrated into the same processing unit.
[0085] The integrated units described above can be implemented in hardware or as software functional units. It should be noted that the unit division in this embodiment is illustrative and represents only one logical functional division; in actual implementation, other division methods may be used.
[0086] When using integrated units, Figure 6 A possible structural schematic diagram of the linear beam span sensitivity homogenization calibration device based on the optical attenuation model (hereinafter referred to as the linear beam span sensitivity homogenization calibration device 60 based on the optical attenuation model) involved in the above embodiments is shown. The linear beam span sensitivity homogenization calibration device 60 based on the optical attenuation model includes a processing unit 601 and a communication unit 602, and may also include a storage unit 603. Figure 6 The schematic diagram shown can be used to illustrate the structure of the linear beam span sensitivity uniformity calibration device based on the optical attenuation model involved in the above embodiments.
[0087] when Figure 6 The schematic diagram shown illustrates the structure of the linear beam span sensitivity uniformity calibration device based on the optical attenuation model involved in the above embodiments. The processing unit 601 is used to control and manage the operation of the linear beam span sensitivity uniformity calibration device based on the optical attenuation model. The communication unit 602 is used for the linear beam span sensitivity uniformity calibration device based on the optical attenuation model to communicate with other devices. The storage unit 603 is used to store the program code and data of the linear beam span sensitivity uniformity calibration device based on the optical attenuation model.
[0088] For example, the communication unit 602 is used to interact with the central cloud platform, including receiving optical attenuation model parameters and historical calibration data sent by the central cloud platform, and uploading calibration results and alarm information to the central cloud platform. The processing unit 601 is used to construct an optical attenuation model and obtain a calibration range correspondence table between the installation distance and the optimal calibration range; acquire the maximum infrared signal intensity value Vmax with the maximum system gain and within the preset signal margin; look up the optimal calibration range corresponding to the maximum infrared signal intensity value Vmax through the calibration range correspondence table, and calculate the distance judgment benchmark value based on the optimal calibration range; compare the maximum infrared signal intensity value Vmax with the distance judgment benchmark value, run an automatic arbiter to obtain the installation distance, and determine the optimal calibration range in conjunction with the calibration range correspondence table, which is recorded as the target calibration range; use the target calibration range as the adjustment target, and synchronously adjust the current gain of the transmitter and the signal gain of the receiver to make the infrared signal intensity value fall within the target calibration range; perform consistency verification on the infrared signal intensity value, and if the verification passes, automatically set the alarm threshold using the relative attenuation model; if it fails, readjust the current gain of the transmitter and the signal gain of the receiver.
[0089] The processing unit 601 can be a processor or a controller, and the communication unit 602 can be a communication interface, transceiver, transceiver circuit, transceiver device, etc. The term "communication interface" is a general term and may include one or more interfaces. The storage unit 603 can be a memory. When the linear beam span sensitivity homogenization calibration device 60 based on the optical attenuation model is a chip, the processing unit 601 can be a processor or a controller, and the communication unit 602 can be an input interface and / or an output interface, pins, or circuits, etc. The storage unit 603 can be a storage unit within the chip (e.g., a register, cache, etc.) or a storage unit located outside the chip (e.g., read-only memory (ROM), random access memory (RAM, etc.)).
[0090] The communication unit can also be called a transceiver unit. The antenna and control circuit with transceiver functions in the linear beam span sensitivity uniformity calibration device 60 based on the optical attenuation model can be considered as the communication unit 602 of the linear beam span sensitivity uniformity calibration device 60 based on the optical attenuation model, and the processor with processing functions can be considered as the processing unit 601 of the linear beam span sensitivity uniformity calibration device 60 based on the optical attenuation model. Optionally, the device in the communication unit 602 that implements the receiving function can be considered as the communication unit, which is used to execute the receiving steps in the embodiments of this application. The communication unit can be a receiver, a receiver circuit, etc. The device in the communication unit 602 that implements the transmitting function can be considered as the transmitting unit, which is used to execute the transmitting steps in the embodiments of this application. The transmitting unit can be a transmitter, a transmitter, a transmitting circuit, etc.
[0091] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented using software programs, implementation can be, in whole or in part, in the form of a computer program product. This computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device containing one or more servers, data centers, etc., that can be integrated with the medium. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state drives (SSDs)).
[0092] Although this application has been described herein in conjunction with various embodiments, those skilled in the art, by reviewing the accompanying drawings, the disclosure, and the appended claims, will understand and implement other variations of the disclosed embodiments in carrying out the claimed application. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude multiple components. A single processor or other unit can implement several functions listed in the claims. While different dependent claims may recite certain measures, this does not mean that these measures cannot be combined to produce good results.
[0093] Although this application has been described in conjunction with specific features and embodiments, it is apparent that various modifications and combinations can be made thereto without departing from the spirit and scope of this application. Accordingly, this specification and drawings are merely illustrative descriptions of the application as defined by the appended claims, and are considered to cover any and all modifications, variations, combinations, or equivalents within the scope of this application. Clearly, those skilled in the art can make various alterations and modifications to this application without departing from the spirit and scope of this application. Thus, if such modifications and variations of this application fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A method for calibrating the uniformity of sensitivity of a linear beam span based on an optical attenuation model, characterized in that, The application relates to a method for automatically adjusting the installation distance of an infrared detector. The application comprises the following steps: constructing an optical attenuation model based on historical data to obtain a calibration range corresponding table between the installation distance and the optimal calibration range; collecting a maximum infrared signal intensity value Vmax of the system gain maximum and located in the preset signal margin; inquiring the optimal calibration range corresponding to the maximum infrared signal intensity value Vmax through the calibration range corresponding table, and calculating the distance judgment reference value based on the optimal calibration range; comparing the maximum infrared signal intensity value Vmax and the distance judgment reference value, running the automatic judge to obtain the installation distance, combining the calibration range corresponding table to determine the optimal calibration range, and recording the optimal calibration range as a target calibration range; adjusting the current gain of the transmitting end and the signal gain of the receiving end as the adjustment target of the target calibration range, so that the infrared signal intensity value falls into the target calibration range; 2. The method of claim 1, wherein the method is based on an optical attenuation model offline type beam span sensitivity homogenization calibration method. performing consistency verification on the infrared signal intensity value, and if the verification is passed, automatically setting an alarm threshold value by using a relative attenuation model, and if the verification is not passed, readjusting the current gain of the transmitting end and the signal gain of the receiving end. Obtain historical calibration data of a plurality of linear light beam detectors in different environments, and obtain central optical constant α through central cloud computing center and central distance attenuation coefficient β center , the historical calibration data includes installation distance d and infrared signal intensity value Vd collected at maximum gain; Based on the central optical constant α center and center distance attenuation coefficient β center A power function model was fitted using the least squares method, and a reference value Vd reflecting the relationship between the installation distance d and the signal strength was established. center Correspondence between benchmarks This is denoted as the center attenuation model, and the predicted signal strength reference value Vd is output. center ; the central optical constant a center , the central distance decay coefficient b center , and the central decay model are issued to the local processing units of the respective linear beam probes as an initial version, forming a local decay model; The construction of the optical attenuation model specifically comprises the following steps: receiving the infrared signal intensity measured value after each calibration operation and the signal intensity value predicted by the local attenuation model in real time, calculating the deviation degree between the measured value and the predicted signal intensity value, and combining the device aging factor, the lens dust factor and the environmental temperature change amount to weight and calculate the system attenuation deviation value; 3. The method of claim 2, wherein the method is based on an optical attenuation model offline type beam span sensitivity homogenization calibration method. comparing the system attenuation deviation value with a preset deviation threshold value, if the system attenuation deviation value is lower than the preset deviation threshold value, reducing the update frequency of the central attenuation model, if the system attenuation deviation value is higher than the preset deviation threshold value, increasing the update frequency of the central attenuation model, and generating an adjustment instruction containing the latest central attenuation model parameter and sending the adjustment instruction to the corresponding detector. inputting a preset standard installation distance set into the local attenuation model, and sequentially calculating theoretical reference intensity values Vref corresponding to each installation distance of the standard installation distance set i ; Using the theoretical signal strength reference value Vref i Centered on the target, extend upwards and downwards by a preset percentage range ±r%, forming a distance d from each standard installation point. i The corresponding optimal calibration range [Vref] i ×(1-r%),[Vref i [×(1+r%)]; All standard mounting distances d i The optimal calibration range corresponding to each of the mounting distances d is established, and a calibration range correspondence table between the mounting distances d and the optimal calibration ranges is generated.
4. The method of claim 3, wherein the method is based on an optical attenuation model offline type beam span sensitivity homogenization calibration method. The process of constructing the optical attenuation model based on historical data to obtain the calibration range corresponding table between the installation distance and the optimal calibration range specifically comprises the following steps: The process of collecting the maximum infrared signal intensity value Vmax of the system gain maximum and located in the preset signal margin specifically comprises the following steps: adjusting the adjustable resistor or the digital potentiometer in the driving circuit to set the current gain of the transmitting end as the maximum gain value allowed by the system, and adjusting the feedback resistor of the operational amplifier or the gain register of the programmable gain amplifier to set the signal gain of the receiving end as the maximum gain value allowed by the system; after verifying that there is no shelter between the transmitting end and the receiving end, continuously collecting the infrared signal intensity value through the analog-to-digital converter of the receiving end, the collection time length of the infrared signal intensity value covers at least N complete signal modulation periods, and the sampling frequency is not lower than M times of the signal modulation frequency, wherein N>=3 and M>=2; eliminating random noise by using a sliding average filtering algorithm on the infrared signal intensity value, and eliminating abnormal values based on the 3sigma criterion to obtain a signal intensity value sequence; The maximum value in the sequence of signal intensity values is extracted as a candidate intensity value, and a preset signal margin range is obtained for verification. If the candidate intensity value falls within the preset signal margin range, the candidate intensity value is output as the maximum infrared signal intensity value Vmax. If the candidate intensity value is lower than the preset signal margin range, a low signal warning is triggered and installation distance or optical path is prompted to be checked. If the candidate intensity value is higher than the preset signal margin range, the system gain is reduced and the infrared signal intensity value is re-acquired.
5. The method of claim 4, wherein the method is based on an optical attenuation model offline type beam span sensitivity homogenization calibration method. The process of obtaining the installation distance by the operation automatic determinator and determining the optimal calibration range in combination with the calibration range corresponding table specifically includes: extracting each standard installation distance d from the calibration range correspondence table i corresponding theoretical reference intensity value V refi ; acquiring a preset tolerance offset δ for each theoretical reference intensity value V refi Extending, generating a corresponding distance judgment reference interval [V i corresponding distance judgment reference interval [V refi -δ, V refi +δ], wherein the tolerance offset δ is dynamically adjusted according to the statistical variance of historical calibration data; The maximum infrared signal intensity value Vmax is matched with all distance judgment reference intervals through an automatic determinator, if the maximum infrared signal intensity value Vmax falls into a certain distance judgment reference interval, it is determined that the current installation distance belongs to the standard installation distance d corresponding to the interval i The distance category is determined, and the corresponding optimal calibration range, recorded as a target calibration range [V lower ,V upper ], is searched from the calibration range corresponding table according to the matched distance category. If the maximum infrared signal intensity value Vmax does not fall into any distance judgment reference interval, a distance determination abnormal signal is triggered, and optical path checking or recalibration data is performed.
6. The method of calibrating sensitivity uniformity of an optical beam across a range based on an optical attenuation model according to claim 5, wherein, The process of synchronously adjusting the current gain of the transmitting end and the signal gain of the receiving end specifically includes: Analysis of target calibration range [V] lower V upper The target verification minimum value V lower And obtain the real-time infrared signal intensity value V current If the real-time infrared signal strength value V current Less than the target verification minimum value V lower If the signal is in gain adjustment mode, the low signal layer will perform a gain boost operation; otherwise, the high signal layer will perform a gain attenuation operation. The low signal layer of the gain adjustment mode increases the signal gain of the receiving end by increasing the feedback resistance value of the operational amplifier or increasing the gain register value of the programmable gain amplifier, and obtains the adjusted infrared signal intensity value V improve ; Verification V improve With the target calibration range [V lower , V upper ], if V improve falls within the target calibration range [V lower , V upper ], the gain adjustment is completed for consistency verification, if V improve is lower than the target verification minimum value V lower , by adjusting the adjustable resistance or digital potentiometer in the drive circuit, the current gain of the emission end is increased to obtain the joint adjusted infrared signal strength value V joint1 ; If V joint1 falls into the target calibration range [V lower , V upper ], the gain adjustment is completed and the consistency is verified. If V joint1 is lower than the target verification minimum value V lower , a system fault alarm is triggered, prompting the optical path inspection or device state diagnosis. The high signal layer of the gain adjustment mode reduces the signal gain of the receiving end by reducing the feedback resistance value of the operational amplifier or reducing the gain register value of the programmable gain amplifier, and obtains the adjusted infrared signal intensity value V updated ; Verification V updated With the target calibration range [V lower , V upper ], if the infrared signal intensity value V updated falls into the target calibration range [V lower , V upper ], the gain adjustment is completed for consistency verification, if the infrared signal intensity value V updated is lower than the target verification minimum value V lower , the joint adjusted infrared signal intensity value V joint2 is obtained by adjusting the adjustable resistance or digital potentiometer in the driving circuit to reduce the current gain of the transmitting end. If V joint2 falls into the target calibration range [V lower , V upper ], the gain adjustment is completed and the consistency is verified. If V joint2 is lower than the target verification minimum value V lower , a system fault alarm is triggered, prompting the optical path inspection or device state diagnosis.
7. The method of calibrating sensitivity uniformity of an optical beam across a range based on an optical attenuation model according to claim 6, wherein, The gain adjustment mode further includes: A narrow band optical filter is integrated in the optical path of the receiving end, the center wavelength of the narrow band optical filter matches the modulation frequency of the transmitting end, and the passband half width is preset according to the maximum ambient light interference intensity allowed by the system; The transmitting end modulates the infrared light beam in intensity by controlling the modulation frequency and the modulation depth, and generates a modulated infrared signal; The receiving end acquires a mixed signal containing the modulated infrared signal, ambient light interference and circuit noise in real time, and uses a local oscillation signal synchronized with the modulation frequency of the transmitting end infrared light source to demodulate the mixed signal through an orthogonal demodulator to obtain in-phase components respectively; A digital filter is applied to filter the demodulated in-phase components to obtain a purified infrared signal intensity sequence; A peak value is extracted from the purified infrared signal intensity sequence as a candidate intensity value after anti-interference processing, and is verified with a preset signal margin range to update the maximum infrared signal intensity value.
8. The method of calibrating sensitivity uniformity of an optical beam across a range based on an optical attenuation model according to claim 7, wherein, The process of performing consistency verification on the infrared signal intensity value falls specifically includes: A plurality of infrared signal intensity values under the modulation frequency of the transmitting end are continuously acquired to form a steady-state intensity sequence, and the coefficient of variation of the steady-state intensity sequence is calculated; A consistency threshold is preset based on the requirement of the optical attenuation model for signal stability, and is compared with the coefficient of variation. If the coefficient of variation is less than the consistency threshold, it is determined that the consistency verification is passed, the signal intensity is stable and the uniformity meets the requirements, and the alarm threshold setting process is triggered. If the coefficient of variation is greater than the consistency threshold, it is determined that the consistency verification is not passed, and the current gain of the transmitting end and the signal gain of the receiving end are adjusted again.
9. The method of calibrating sensitivity uniformity of an optical beam across a range based on an optical attenuation model according to claim 8, wherein, The process of the alarm threshold specifically includes: calculating the average value of the steady-state intensity sequence as a reference signal intensity V base and presetting a relative attenuation coefficient k according to the minimum signal attenuation ratio required for triggering an alarm; The reference signal strength V base and the relative attenuation coefficient k are input into a relative attenuation model to calculate an alarm threshold V alarm and configured to an alarm judging unit of the detector. The alarm judging unit continuously monitors the real-time infrared signal intensity. When the monitored signal intensity value is lower than V alarm , an alarm signal is triggered, and the reference signal intensity V base of this calibration, the alarm threshold V alarm , and the calibration timestamp are recorded and uploaded to the central cloud platform to update the historical calibration data of the optical attenuation model.
10. The device for calibrating the uniformity of sensitivity of the cross-range of a linear optical beam based on an optical attenuation model, characterized in that, The device includes a communication unit and a processing unit. The communication unit is configured to interact with the central cloud platform, including receiving optical attenuation model parameters, historical calibration data from the central cloud platform, and uploading calibration results and alarm information to the central cloud platform. The processing unit is configured to construct an optical attenuation model to obtain a calibration range corresponding table between the installation distance and the optimal calibration range. The maximum infrared signal intensity value Vmax with the maximum system gain and located within the preset signal margin is acquired. query the best calibration range corresponding to the maximum infrared signal intensity value Vmax through the calibration range corresponding table, and calculate the distance judgment reference value based on the best calibration range; compare the maximum infrared signal intensity value Vmax with the distance judgment reference value, run the automatic determinator to obtain the installation distance, determine the best calibration range in combination with the calibration range corresponding table, and record the best calibration range as a target calibration range; synchronously adjust the current gain of the transmitting end and the signal gain of the receiving end with the target calibration range as the adjustment target, so as to make the infrared signal intensity value fall within the target calibration range; perform consistency verification on the infrared signal intensity value, and if the verification is passed, automatically set an alarm threshold value by using a relative attenuation model, and if the verification is not passed, re-adjust the current gain of the transmitting end and the signal gain of the receiving end.