A tunnel adaptive dimming method and system based on measured illuminance mapping

By combining measured illuminance mapping and cubic spline interpolation algorithms with longitudinal slope sensing and dynamic reference illuminance, the problems of illuminance output error and energy waste in tunnel lighting control are solved, achieving high-precision, dynamic response and high-efficiency energy-saving tunnel lighting control.

CN123124179APending Publication Date: 2026-11-17GUILIN HIVISION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611262156.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-19
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

In existing tunnel lighting control technologies, the illuminance-dimming mapping relationship is statically fixed, without considering the differences in the actual tunnel environment. The longitudinal slope parameters are not included in the calculation of the stopping sight distance, the illuminance outside the tunnel is not dynamically adjusted, and the offline compensation algorithm is highly complex, resulting in large illuminance output errors, energy waste, and safety hazards.

Method used

By employing the measured illuminance mapping method, and combining the cubic spline interpolation algorithm and the dual-pointer algorithm with the longitudinal slope sensing and dynamic benchmark illuminance mechanism, tunnel lighting sections are divided and luminaires are compensated, thereby achieving dynamic adjustment and efficient matching of illuminance.

Benefits of technology

It significantly improves illuminance mapping accuracy, meets actual engineering needs, enhances dynamic response capabilities and energy-saving effects, reduces equipment wear, extends equipment life, and improves compensation efficiency and system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123124179A_ABST
    Figure CN123124179A_ABST
Patent Text Reader

Abstract

This invention discloses a tunnel adaptive dimming method and system based on measured illuminance mapping, belonging to the field of tunnel lighting control technology. The method includes: collecting external illuminance and rectifying it to a multiple of 10; querying tunnel design parameters; querying three-dimensional lookup table data for parking sight distance based on design speed and longitudinal slope; calculating the total length of the entrance section and dividing it into lighting sections; calculating dynamic reference illuminance and calculating target illuminance based on section type; mapping the target illuminance to a dimming value using a cubic spline interpolation algorithm driven by measured calibration points; matching opposing lights using a dual-pointer algorithm and performing offline compensation based on five associated luminaires; and issuing dimming commands after difference comparison. This invention achieves precise, efficient, and adaptive control of tunnel lighting through nonlinear mapping driven by measured calibration data, dynamic calculation of section illuminance based on longitudinal slope perception, efficient dual-pointer compensation, and an illuminance up-rounding rectification mechanism. The illuminance mapping error is reduced to within 5%, and the overall energy saving rate reaches 20%~40%.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of tunnel lighting control technology, specifically a tunnel adaptive dimming method and system based on measured illuminance mapping. Background Technology

[0002] Tunnel lighting is a critical infrastructure for ensuring safe driving in tunnels. According to the "Detailed Specifications for Lighting Design of Highway Tunnels" (JTG / T D702-01), tunnel lighting must be designed in sections: entrance, transition, main, and exit. The illuminance standard for each section is determined based on parameters such as design speed, traffic volume, and external luminance. The entrance lighting is the core of tunnel lighting design, as its illuminance requirements are closely related to the natural illuminance outside the tunnel. During the day, the external illuminance can reach thousands of lux, while at night it drops to below tens of lux, a difference of over a hundred times.

[0003] Traditional tunnel lighting control relies primarily on manual experience or fixed schedules for dimming, failing to provide precise adjustments based on real-time changes in external illuminance. With the development of LED lighting and intelligent control technologies, adaptive dimming systems are gradually becoming the mainstream trend. The closest existing implementation to this invention is a "tunnel LED adaptive dimming system based on manufacturer's theoretical curves," whose basic implementation process is as follows:

[0004] (1) Illumination collection: Illumination sensors are deployed outside the tunnel entrance to collect the natural light illuminance value outside the tunnel in real time.

[0005] (2) Segment division: Calculate the lengths of the entrance segment and transition segment according to the standard formula. The length of the entrance segment adopts the recommended formula in the standard. Calculation, where The stopping sight distance is obtained by referring to a table based on the design speed. The length of the transition section is determined according to a fixed ratio.

[0006] (3) Target illuminance calculation: The illuminance of the entrance section is fixed according to the design illuminance inside the tunnel and does not change with the illuminance outside the tunnel; the illuminance of the transition section is taken according to the step decay curve recommended by CIE; the illuminance of the basic section is a fixed value.

[0007] (4) Dimming value mapping: The theoretical illuminance-dimming curve (usually linear or piecewise linear relationship) provided by the lighting manufacturer is used to directly map the target illuminance to the dimming percentage.

[0008] (5) Offline device processing: When an offline light fixture is detected, a nested loop is used to traverse all light fixtures, calculate the distance to each one, and find the nearest opposite light fixture to compensate for the offline light fixture. The algorithm complexity is O(n log n). .

[0009] (6) Instruction issuance: The calculated dimming value is directly issued to each lamp controller for execution.

[0010] The existing technical solutions have the following problems in practical engineering applications:

[0011] Disadvantage 1: The illuminance-dimming mapping relationship is static and fixed, resulting in low mapping accuracy. Existing technology uses theoretical illuminance-dimming curves provided by manufacturers for mapping, without considering factors such as luminaire aging, dust accumulation, installation angle deviations, and differences in reflective surface reflectivity in actual tunnel environments. Actual measurements show that the same dimming value can result in a 30% to 50% difference in actual ground illuminance output in different tunnels. For example, a dimming value of 60% might output 83.3 lx in tunnel A, but only 55 lx or as high as 110 lx in tunnel B; this causes the dimming value calculated according to the theoretical curve to fail to accurately achieve the target illuminance. Furthermore, simple linear or piecewise linear mapping cannot accurately describe the non-linear relationship between the LED luminaire's dimming value and output illuminance.

[0012] The root cause of this shortcoming is that the theoretical curve is a static fixed value and has not been calibrated and corrected in conjunction with the actual tunnel calibration data. At the same time, simple linear or piecewise linear mapping cannot accurately describe the nonlinear relationship between the dimming value and the output illuminance of LED lamps, especially the nonlinear characteristics are more significant in the low dimming value range (10%~30%) and the high dimming value range (80%~100%).

[0013] Disadvantage 2: Existing technology follows the recommended formula in the specifications. The length of the entrance section is calculated, but the stopping sight distance D_s is obtained solely from a table based on the design speed, without considering the impact of the tunnel's longitudinal slope on the stopping sight distance. In reality, when the downhill slope is steep, the vehicle braking distance increases, and the required stopping sight distance also increases; the opposite is true when going uphill. The length of the lighting section calculated using a fixed formula does not match the actual needs, which may lead to insufficient lighting at the entrance section (downhill conditions) or excessive lighting (uphill conditions).

[0014] The root cause of this shortcoming is that the existing technology does not include the longitudinal slope parameter in the lookup dimension of the parking sight distance, but only uses the single speed dimension to look up the table, ignoring the physical influence of the longitudinal slope on the driving sight distance, resulting in a systematic deviation between the calculated result of the lighting section length and the actual safety requirements.

[0015] Disadvantage 3: In existing technologies, the illuminance at the entrance section is based on the designed illuminance inside the tunnel. The value is fixed and does not change with real-time variations in external illuminance. However, external illuminance varies drastically throughout the day: it can reach over 4000 lx at noon on sunny days, but may drop below 500 lx on cloudy or rainy days or at dusk, a change of more than 8 times. If the illuminance at the entrance section remains constant, it will result in energy waste when external illuminance is low, and exacerbate the "black hole effect" when external illuminance is high, affecting driving safety.

[0016] The root cause of this shortcoming is that existing technology has not established a dynamic linkage mechanism between the external illuminance and the target illuminance at the entrance section, and lacks the concept of "dynamic reference illuminance," that is, it has not incorporated the designed external illuminance. As a benchmark, according to The ratio is used to dynamically correct the illuminance inside the designed tunnel.

[0017] Disadvantage 4: Existing offline compensation schemes employ a nested loop matching algorithm with O(N²) complexity. This algorithm iterates through all opposite lamps for each offline lamp, calculating the distance and selecting the closest one as the compensation target. This approach is significantly time-consuming in large tunnels (where the number of lamps can reach hundreds or thousands), making it difficult to meet the needs of real-time dimming. Furthermore, brute-force matching cannot guarantee global optimality in a one-to-one match, potentially resulting in multiple left-side lamps matching the same right-side lamp, leading to uneven compensation distribution.

[0018] The root cause of this shortcoming is that the existing technology does not utilize the ordered nature of the lamps sorted by distance for algorithm optimization, but still adopts an unordered full traversal strategy; at the same time, the scope of "associated lamps" (same-side neighbor lamps + opposite lamps + opposite lamp neighbor lamps) is not clearly defined, resulting in incomplete compensation logic, only compensating opposite lamps while ignoring the collaborative compensation of same-side neighbor lamps.

[0019] To address the problems existing in the above-mentioned technologies, there is an urgent need to design a tunnel adaptive dimming method and system based on measured illuminance mapping. Summary of the Invention

[0020] To achieve the above objectives, the present invention provides the following technical solution: a tunnel adaptive dimming method based on measured illuminance mapping, comprising the following steps:

[0021] S1. Illuminance Data Acquisition and Rectification: Real-time acquisition of illuminance sensor data outside the tunnel. After validity verification, the illuminance value is rectified to a multiple of 10 using a rounding-up algorithm to obtain the rectified illuminance value. ;

[0022] S2. Design Parameter Query: Query tunnel design parameters based on the tunnel entrance ID, including design speed v, longitudinal slope i, and design external illuminance. Design the illumination level inside the cave. Basic Illuminance ;

[0023] S3, Illuminated parking sight distance: Based on the design speed v and longitudinal slope i, query the three-dimensional lookup table data for parking sight distance to obtain the illuminated parking sight distance D_s;

[0024] S4. Lighting Zone Division: Calculate the total length of the entrance section. ,according to Divide the area into sections and calculate the relative position parameter t of the lamps in each section based on their actual installation locations;

[0025] S5. Dynamic Calculation of Target Illuminance: Calculate the target illuminance based on the section where each luminaire is located. Calculate dynamic reference illuminance Different attenuation formulas are used to calculate the target illuminance according to the section type;

[0026] S6. Cubic spline interpolation mapping of dimming value: The target illuminance is mapped using a cubic spline interpolation algorithm. Mapped to dimming percentage, limited to the [10, 100] range.

[0027] S7. Offline device compensation: Detect the online status of the device, set the dimming value of the offline device to 0, use the dual pointer algorithm to match the opposite light and determine the associated light fixture for the online device, and perform brightness compensation according to the number of offline associated devices.

[0028] S8. Difference Comparison and Command Issuance: Compare the calculated results with the previously issued values ​​and only issue the dimming values ​​of the devices that have changed.

[0029] Preferably, the formula for the rounding-up algorithm in step S1 is: ,in The raw sensor readings. For the floor function, X is the independent variable.

[0030] Preferably, in step S3, the three-dimensional lookup table for parking sight distance ("speed-longitudinal slope-parking sight distance" three-dimensional lookup table) data covers the working condition combination of design speed 60~120km / h and longitudinal slope -6%~+6%, and the parking sight distance D_s is determined according to the JTG / T D702-01 specification.

[0031] Preferably, the formula for calculating the total length of the entrance segment in step S4 is: , where H is the tunnel clearance height, with a default value of 5m; The sections are divided into four parts according to the direction of travel: entrance section 1, entrance section 2, transition section 1, transition section 2, and basic section.

[0032] Preferably, the target illuminance in step S5 The calculation rules are as follows:

[0033] Entry section 1: ;

[0034] Entry section 2: , where k = 0.9163;

[0035] Transition section: t is the normalized position parameter;

[0036] Basic paragraph: .

[0037] Preferably, the cubic spline interpolation algorithm in step S6 uses natural boundary conditions. If the interpolation result exceeds the range of adjacent calibration points, it automatically reverts to the linear interpolation algorithm.

[0038] Preferably, the determination of associated lighting fixtures in step S7 adopts a two-pointer matching algorithm, including: sorting the left and right lighting fixtures of the tunnel according to their distance from the tunnel entrance; using two pointers to match the closest right lighting fixture for each left lighting fixture as the opposite lighting fixture; the associated lighting fixtures of each lighting fixture include: the left neighbor lighting fixture on the same side, the right neighbor lighting fixture on the same side, the opposite lighting fixture, the left neighbor lighting fixture of the opposite lighting fixture, and the right neighbor lighting fixture of the opposite lighting fixture.

[0039] Preferably, the judgment condition of the two-pointer matching algorithm is: when When, match and Otherwise, increment j by 1 and continue the comparison. i (the light fixture is located on the left side of the tunnel) and j (the light fixture is located on the right side of the tunnel).

[0040] Preferably, the brightness compensation rule in step S7 is as follows: compensation reference = min(original dimming value, 60); compensation amount = compensation reference × 20% × number of offline associated devices; new dimming value = min(original dimming value + compensation amount, 100), rounded up.

[0041] Compared with the prior art, the beneficial effects of the present invention are:

[0042] I. Significantly improved illuminance mapping accuracy

[0043] This invention employs a cubic spline interpolation algorithm driven by measured calibration data. Compared to the existing theoretical curve + linear interpolation scheme, the illuminance mapping error is reduced from 30%~50% to less than 5%. This advantage stems from two key technical means employed in this invention: replacing manufacturer's theoretical curves with on-site measured calibration data, and replacing linear interpolation with cubic spline interpolation. These methods accurately describe the nonlinear relationship between the dimming value and output illuminance of LED lamps, particularly the nonlinear characteristics in both low and high dimming value ranges.

[0044] II. Lighting zone calculations are more in line with actual engineering needs.

[0045] This invention employs a lookup table and correction formula for parking sight distance based on longitudinal slope sensing. Compared to the fixed formula calculations used in existing technologies, the length of the lighting section is more in line with actual safety requirements. This advantage stems from two technical means in this invention: incorporating longitudinal slope parameters into a lookup table and introducing geometric corrections for tunnel clearance. These techniques accurately reflect the physical impact of longitudinal slope on parking sight distance and the geometric impact of tunnel clearance on the lighting section.

[0046] III. Significantly Enhanced Dynamic Response Capability and Energy-Saving Effect

[0047] This invention introduces a dynamic reference illuminance mechanism. Compared to the fixed illuminance scheme of existing technologies, the illuminance of the entrance section can change in real time with the illuminance outside the tunnel. This advantage stems from the fact that the present invention establishes a dynamic linkage mechanism between the illuminance outside the tunnel and the target illuminance of the entrance section. When the illuminance outside the tunnel is low, the illuminance of the entrance section is automatically reduced to save energy consumption, and when the illuminance outside the tunnel is high, the illuminance of the entrance section is automatically increased to ensure safety. The overall energy saving rate can reach 20% to 40%.

[0048] IV. Significantly Improved Compensation Efficiency and Fault Tolerance

[0049] This invention employs a dual-pointer algorithm and a five-linkage lamp compensation mechanism, compared to existing technologies. The brute-force matching + single-opposite-light compensation scheme improves compensation calculation efficiency by N times (hundreds of times in large tunnels), and the compensation is more complete and effective. This advantage stems from two technical means in this invention: optimizing the algorithm by sorting the lights by distance, and clearly defining the range of five related lights to achieve all-round collaborative compensation. While ensuring one-to-one optimal matching, it significantly reduces computational overhead, and effectively eliminates lighting blind spots through multi-light collaborative compensation.

[0050] V. Equipment lifespan and system stability are significantly extended.

[0051] This invention introduces an upward rectified illuminance rectified energizer mechanism, which reduces the frequency of dimming commands by approximately 80% to 90% compared to existing methods that directly calculate the original readings. This advantage stems from the fact that this invention maps continuously fluctuating original readings to discrete rectified values, avoiding frequent dimming caused by small fluctuations in illuminance. This significantly reduces the number of dimming cycles for LED lights and the number of transmissions and receptions by the communication module, thereby extending the lifespan of the equipment and improving the overall stability of the system. Attached Figure Description

[0052] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used together with the embodiments of the invention to explain the invention and do not constitute a limitation thereof.

[0053] In the attached diagram:

[0054] Figure 1 This is a schematic diagram illustrating the principle of cubic spline interpolation in this invention.

[0055] Figure 2 This is a schematic diagram of the tunnel lighting section division and illuminance attenuation curve in this invention;

[0056] Figure 3 This is a schematic diagram of the dual-pointer opposing light matching algorithm in this invention;

[0057] Figure 4 This is a schematic diagram of the upward rounding flow mechanism of illuminance in this invention;

[0058] Figure 5 This is the illumination attenuation curve of each section of the tunnel in this invention (CIE standard dynamic calculation model).

[0059] Figure 6 This invention provides three-dimensional lookup data for parking sight distance, speed, and longitudinal slope.

[0060] Figure 7 The tunnel adaptive dimming system architecture based on measured illuminance mapping in this invention is shown in the diagram.

[0061] Figure 8 The flowchart of the tunnel adaptive dimming method based on measured illuminance mapping of this invention;

[0062] Figure 9 The flowchart of offline device compensation according to the present invention. Detailed Implementation

[0063] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.

[0064] Depend on Figures 1-9 As shown, this invention relates to a tunnel adaptive dimming method based on measured illuminance mapping, comprising the following steps:

[0065] S1. Real-time acquisition of illumination sensor data outside the cave. After validity verification, the illuminance value is rectified to a multiple of 10 using a rounding-up algorithm. Rectification can prevent frequent dimming commands from being issued due to minor fluctuations in illuminance.

[0066] S2. Design Parameter Query: Query tunnel design parameters from the database based on the tunnel entrance ID, including design speed v, longitudinal slope i, and design external illuminance. Design the illumination level inside the cave. Basic Illuminance wait.

[0067] S3. Illuminated Parking Sight Distance: Based on the design speed v and longitudinal slope i, the three-dimensional lookup table data for parking sight distance is consulted to obtain the illuminated parking sight distance D_s. This lookup table data is determined according to the JTG / T D702-01 standard and covers different speed (60~120km / h) and longitudinal slope (-6%~+6%) combinations.

[0068] S4. Lighting Zone Division: Calculate the total length of the entrance section. Where H is the tunnel clearance height (default 5m). According to Divide the area into entrance section 1, entrance section 2, transition section 1, and transition section 2, and calculate the relative position parameter t of the lamps in each section based on their actual installation locations.

[0069] S5. Dynamic Calculation of Target Illuminance: For each luminaire location x, calculate the target illuminance based on its location within the zone. ; Calculate dynamic reference illuminance Different attenuation formulas are used to calculate the target illuminance according to the section type;

[0070] S6. Cubic spline interpolation mapping adjustment value: Query the measured calibration point data according to the section name, and use... of Cubic spline interpolation algorithm to determine target illuminance The mapping is a dimming percentage. If the interpolation result exceeds the range of adjacent calibration points, it automatically falls back to linear interpolation to ensure calculation stability, and finally limits the amplitude to the [10, 100] interval;

[0071] S7. Offline Device Compensation: Detect the online status of the device, set the dimming value of the offline device to 0; for the online device, use a dual-pointer algorithm to match the opposite light, count the number of offline lights N among the 5 associated lights, and calculate the compensation dimming value according to the compensation rules.

[0072] S8. Store the calculation results in the Redis cache, compare them with the previous value, and only send the dimming values ​​of the devices that have changed, thereby reducing communication volume and equipment wear.

[0073] This invention constructs a dynamic calculation model for illuminance in a given area based on the CIE standard (CIE standard dynamic calculation model), which includes three core innovations:

[0074] (1) Look up the parking sight distance based on longitudinal slope perception: find the longitudinal slope parameters By incorporating the parking sight distance lookup dimension, a three-dimensional lookup data structure of "speed-longitudinal slope-parking sight distance" is constructed. For example... Figure 6 As shown, this data covers a complete combination of working conditions with a design speed of 60~120km / h and a longitudinal slope of -6%~+6%, which can accurately reflect the physical impact of the longitudinal slope on the parking sight distance.

[0075] (2) Calculation of the length of the entrance section for longitudinal slope correction: Total length of the entrance section Using the modified formula H represents the tunnel clearance height (default 5m). This term is used to correct for the geometric impact of tunnel clearance on the length of the lighting section. This formula is more in line with actual engineering needs compared to traditional fixed formulas.

[0076] (3) Dynamic reference illuminance mechanism: Introducing "dynamic reference illuminance" The design will increase the external illumination of the cave. As a benchmark, based on real-time external illuminance The design illuminance inside the tunnel is dynamically corrected based on the benchmark ratio. This mechanism enables the illuminance at the entrance section to change in real time with the illuminance outside the tunnel, achieving true adaptive dimming.

[0077] Based on the above innovations, this invention employs different target illuminance calculation rules for different sections, and the tunnel lighting section division is as follows: Figure 2 As shown, the tunnel lighting sections are divided sequentially according to the direction of traffic into entrance section 1, entrance section 2, transition section 1, transition section 2, and basic section. The target illuminance calculation rules for each section are as follows:

[0078] Attenuation formula:

[0079] Entry section 1: This is equal to the dynamic reference illuminance, which is the maximum value of the target illuminance.

[0080] Entry section 2: ,in The attenuation factor is the one recommended by the CIE, and t is the normalized position parameter (0~1).

[0081] Transition section: It uses power function decay, resulting in a smoother transition.

[0082] Basic paragraph: It takes a fixed value, usually 2.5~5 lx.

[0083] The illuminance attenuation curves for each section are as follows: Figure 5 As shown, the illuminance attenuation trend from the entrance segment to the base segment is clearly visible. Entrance segment 1 has a constant maximum value, entrance segment 2 decays exponentially, the transition segment decays according to a power function, and the base segment has a constant minimum value. This segmented attenuation design conforms to the adaptive laws of human vision and can effectively alleviate the "black hole effect" and "white hole effect."

[0084] This invention employs a two-pointer algorithm to achieve efficient opposite light matching with O(N+M) complexity. The core idea of ​​the algorithm is: after sorting the left and right side lights in the tunnel according to their distance from the tunnel entrance, the algorithm utilizes the ordered nature of the distances to synchronously traverse the lights on both sides using two pointers, matching each left-side light with the closest right-side light. The principle of the two-pointer matching algorithm is as follows: Figure 3 As shown:

[0085] After sorting the left-side lights L1~L5 and the right-side lights R1~R5 according to their distance from the opening, two pointers i (pointing to the left) and j (pointing to the right) are used to traverse them simultaneously. The condition is: when... When, match and If the left light fixture matches the nearest right light fixture, increment i by 1; otherwise, increment j by 1 and continue comparing. This algorithm guarantees that each left-hand light fixture will match the nearest right-hand light fixture, and the matching process has a linear time complexity. .

[0086] After identifying the opposing light, each light fixture has five associated lights: the left neighbor light on the same side, the right neighbor light on the same side, the opposing light, the left neighbor light of the opposing light, and the right neighbor light of the opposing light. When a light fixture goes offline, its five associated lights will increase their dimming values ​​according to compensation rules to make up for the lack of lighting. The complete process for offline device compensation is as follows: Figure 9 As shown;

[0087] The compensation rules are as follows: Compensation baseline = min(original dimming value, 60); Compensation amount = Compensation baseline × 20% × number of offline associated devices N; New dimming value = min(original dimming value + compensation amount, 100), rounded up. This rule ensures that the compensation amount is proportional to the original dimming value (but does not exceed 60% of the baseline), and the total compensation amount does not exceed the 100% upper limit.

[0088] This invention introduces an upward-rounding rectification mechanism to standardize the real-time collected external illuminance values ​​to a multiple of 10. The principle of the rectification mechanism is as follows: Figure 4 As shown:

[0089] The blue stepped lines represent the rectified illuminance values ​​(multiples of 10), and the orange sawtooth lines represent the original sensor readings. The rectification mechanism maps continuously fluctuating original readings to discrete rectified values, triggering a dimming update only when the original reading crosses a rectification threshold. For example, if the original reading fluctuates from 3421 lx to 3425 lx, the rectified value remains at 3430 lx, and dimming is not triggered; however, when the reading changes to 3431 lx, the rectified value becomes 3440 lx, triggering a dimming update.

[0090] The core code implementation of this mechanism is as follows: ,in This is a floor function. The formula is equivalent to... Round up to the nearest multiple of 10. This mechanism reduces the frequency of dimming commands by approximately 80% to 90%, significantly reducing equipment wear and communication overhead.

[0091] The present invention also discloses a tunnel adaptive dimming system based on measured illuminance mapping, comprising a data acquisition layer, a data preprocessing layer, a core algorithm calculation layer and an instruction output layer;

[0092] The data acquisition layer is used to acquire real-time data from the external illuminance sensor, the online / offline status of the equipment, and the location information of the lamps, providing raw data input for subsequent calculations;

[0093] The data preprocessing layer is used to round up the raw illuminance data, verify its validity, and query tunnel design parameters (design speed, longitudinal slope, design illuminance, etc.) to provide a parameter basis for section illuminance calculation.

[0094] The core algorithm computation layer is used to run CIE segment dynamic illuminance calculation, cubic spline interpolation mapping, and dual-pointer compensation algorithm;

[0095] The instruction output layer is used to send out only the dimming values ​​that have changed by comparing differences, thereby reducing communication volume and equipment wear, while using Redis caching to achieve millisecond-level status reading.

[0096] Preferably, the data acquisition layer includes an external illuminance sensor, an equipment status monitoring module, and a lamp location database; the external illuminance sensor is used to collect the natural illuminance outside the cave in real time; the equipment status monitoring module is used to monitor the online / offline status and fault information of the lamps; and the lamp location database is used to store the lamp UID, distance from the cave entrance, and side identification.

[0097] The data preprocessing layer includes an illuminance rectification module, a data validity verification module, and a design parameter query module. The illuminance rectification module is used to round up the raw illuminance data. The data validity verification module is used to filter outliers and check their range. The design parameter query module is used to query tunnel design parameters.

[0098] The core algorithm calculation layer includes a CIE section illuminance calculation module, a cubic spline interpolation mapping module, and a dual-pointer compensation algorithm module. The CIE section illuminance calculation module is used to perform dynamic calculation of CIE section illuminance. The cubic spline interpolation mapping module is used to calculate the target illuminance using different attenuation formulas according to the section type. The dual-pointer compensation algorithm module is used to match opposing lights and determine associated lights using a dual-pointer algorithm, and perform brightness compensation based on the number of offline associated devices.

[0099] The instruction output layer includes a difference comparison module, a Redis caching module, and a dimming instruction distribution module;

[0100] The difference comparison module is used to compare the calculation results of the core algorithm calculation layer with the previously issued value, and only outputs the changed value; the Redis caching module is used to store the latest dimming value; the dimming command issuing module is used to issue dimming commands to each lamp controller for execution.

[0101] Example 1

[0102] To fully disclose the technical solution of this invention, the following uses the dimming calculation of lighting fixtures at the entrance section of a tunnel as an example to illustrate the complete implementation process of the method of this invention.

[0103] Scenario parameters: A tunnel with a design speed of 100 km / h, a longitudinal slope of 2%, a tunnel clearance height of 5 m, a design external illuminance of 4000 lx, a design internal illuminance of 150 lx, and a basic section illuminance of 2.5 lx. The external illuminance sensor collected a real-time illuminance value of 3421 lx.

[0104] [Calculation process of the tunnel adaptive dimming method based on measured illuminance mapping]

[0105] ① Illuminance preprocessing: 3421 lx → rounded up to 3430 lx (rectification mechanism)

[0106] ② Check parking sight distance: (Refer to the table to assess the longitudinal slope)

[0107] ③ Calculate the length of the inlet segment: (Longitudinal slope correction)

[0108] ④ Dynamic inlet reference illuminance: (Dynamic benchmark)

[0109] ⑤ For the lighting fixtures located 50m from the tunnel entrance (in entrance section 1):

[0110] ⑥ Query calibration point data: [(10, 13.9), (60, 83.3), (100, 138.8)] (actual calibration)

[0111] ⑦ Cubic spline interpolation: 128.6lx → approximately 55% (nonlinear mapping)

[0112] ⑧ Output the dimming value of this lamp at 55%.

[0113] As can be seen from the above embodiments, the method of the present invention achieves a complete adaptive dimming process from raw illuminance acquisition to final dimming value output through the synergistic effect of rectification mechanisms, longitudinal slope sensing, dynamic benchmarks, and nonlinear mapping. Compared with existing technologies, the method of the present invention has significant advantages in terms of illuminance mapping accuracy, segment calculation accuracy, dynamic response capability, and compensation efficiency.

[0114] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.

Claims

1. A tunnel adaptive dimming method based on measured illuminance mapping, characterized in that, Includes the following steps: S1. Illuminance Data Acquisition and Rectification: Real-time acquisition of illuminance sensor data outside the tunnel. After validity verification, the illuminance value is rectified to a multiple of 10 using a rounding-up algorithm to obtain the rectified illuminance value. ; S2. Design Parameter Query: Query tunnel design parameters based on the tunnel entrance ID, including design speed v, longitudinal slope i, and design external illuminance. Design the illumination level inside the cave. Basic Illuminance ; S3, Illuminated parking sight distance: Based on the design speed v and longitudinal slope i, query the three-dimensional lookup table data for parking sight distance to obtain the illuminated parking sight distance D_s; S4. Lighting Zone Division: Calculate the total length of the entrance section. ,according to Divide the area into sections and calculate the relative position parameter t of the lamps in each section based on their actual installation locations; S5. Dynamic Calculation of Target Illuminance: Calculate the target illuminance based on the section where each luminaire is located. Calculate dynamic reference illuminance Different attenuation formulas are used to calculate the target illuminance according to the section type; S6. Cubic spline interpolation mapping of light adjustment value: The target illuminance is mapped using a cubic spline interpolation algorithm. Mapped to dimming percentage, limited to the [10, 100] range. S7. Offline device compensation: Detect the online status of the device, set the dimming value of the offline device to 0, use the dual pointer algorithm to match the opposite light and determine the associated light fixture for the online device, and perform brightness compensation according to the number of offline associated devices. S8. Difference Comparison and Command Issuance: Compare the calculated results with the previously issued values ​​and only issue the dimming values ​​of the devices that have changed.

2. The tunnel adaptive dimming method based on measured illuminance mapping according to claim 1, characterized in that: The formula for the floor function in step S1 is: ,in The raw sensor readings. For the floor function, X is the independent variable.

3. The tunnel adaptive dimming method based on measured illuminance mapping according to claim 1, characterized in that: In step S3, the three-dimensional lookup data for parking sight distance covers the working condition combination of design speed 60~120km / h and longitudinal slope -6%~+6%, and the parking sight distance D_s is determined according to the JTG / T D702-01 standard.

4. The tunnel adaptive dimming method based on measured illuminance mapping according to claim 1, characterized in that: The formula for calculating the total length of the entrance segment in step S4 is as follows: , where H is the tunnel clearance height, with a default value of 5m; The sections are divided into four parts according to the direction of travel: entrance section 1, entrance section 2, transition section 1, transition section 2, and basic section.

5. The tunnel adaptive dimming method based on measured illuminance mapping according to claim 4, characterized in that: Target illuminance in step S5 The calculation rules are as follows: Entrance Step 1: ; Entry section 2: , where k = 0.9163; Transition section: t is the normalized position parameter; Basic paragraph: .

6. The tunnel adaptive dimming method based on measured illuminance mapping according to claim 1, characterized in that: The cubic spline interpolation algorithm described in step S6 uses natural boundary conditions. If the interpolation result exceeds the range of adjacent calibration points, it automatically reverts to the linear interpolation algorithm.

7. The tunnel adaptive dimming method based on measured illuminance mapping according to claim 1, characterized in that: The determination of associated lighting fixtures in step S7 adopts a two-pointer matching algorithm, including: sorting the lighting fixtures on the left and right sides of the tunnel according to their distance from the tunnel entrance; using two pointers to match the closest right lighting fixture for each left lighting fixture as the opposite lighting fixture; the associated lighting fixtures for each lighting fixture include: the left neighbor lighting fixture on the same side, the right neighbor lighting fixture on the same side, the opposite lighting fixture, the left neighbor lighting fixture of the opposite lighting fixture, and the right neighbor lighting fixture of the opposite lighting fixture.

8. The tunnel adaptive dimming method based on measured illuminance mapping according to claim 1, characterized in that: The condition for the two-pointer matching algorithm is: when When, match and Otherwise, increment j by 1 and continue the comparison.

9. The tunnel adaptive dimming method based on measured illuminance mapping according to claim 1, characterized in that: The brightness compensation rules in step S7 are as follows: Compensation reference = min(original dimming value, 60); Compensation amount = Compensation reference × 20% × number of offline associated devices; New dimming value = min(original dimming value + compensation amount, 100), rounded up.

10. A smart compensation system for offline tunnel lighting based on dual-pointer matching, characterized in that, It includes a data acquisition layer, a data preprocessing layer, a core algorithm calculation layer, and an instruction output layer; The data acquisition layer is used to acquire real-time data from the external illuminance sensor, the online / offline status of the equipment, and the location information of the lamps, providing raw data input for subsequent calculations; The data preprocessing layer is used to round up the raw illuminance data, verify its validity, and query tunnel design parameters to provide a parameter basis for section illuminance calculation; The core algorithm computation layer is used to run CIE segment dynamic illuminance calculation, cubic spline interpolation mapping, and dual-pointer compensation algorithm; The instruction output layer is used to send out only the dimming values ​​that have changed through difference comparison, reducing communication volume and equipment wear, while using Redis caching to achieve millisecond-level status reading; The data acquisition layer includes an external illuminance sensor, an equipment status monitoring module, and a lamp location database. The external illuminance sensor is used to collect real-time natural light illuminance outside the cave. The equipment status monitoring module is used to monitor the online / offline status and fault information of the lamps. The lamp location database is used to store the lamp UID, distance from the cave entrance, and side identification. The data preprocessing layer includes an illuminance rectification module, a data validity verification module, and a design parameter query module; The illuminance rectification module is used to round up the raw illuminance data; the data validity verification module is used to filter outliers and check their range; the design parameter query module is used to query tunnel design parameters. The core algorithm calculation layer includes a CIE section illuminance calculation module, a cubic spline interpolation mapping module, and a dual-pointer compensation algorithm module. The CIE section illuminance calculation module is used to dynamically calculate the CIE section illuminance. The cubic spline interpolation mapping module is used to calculate the target illuminance using different attenuation formulas according to the section type. The dual-pointer compensation algorithm module is used to match opposing lights and determine associated lights using a dual-pointer algorithm, and perform brightness compensation based on the number of offline associated devices. The instruction output layer includes a difference comparison module, a Redis caching module, and a dimming instruction distribution module; The difference comparison module is used to compare the calculation results of the core algorithm calculation layer with the previously issued value, and only outputs the changed value; the Redis caching module is used to store the latest dimming value; The dimming command sending module is used to send dimming commands to each lighting controller for execution.