A method and system for layered control of automotive exterior lighting

By adopting a hierarchical control method, the external lighting control of automobiles is divided into three independent layers: input preprocessing, scene mode decision-making, and output processing. This solves the problems of high coupling and maintenance difficulties in the existing external lighting control software, realizes the stability and safety of external lighting, and improves the maintainability and cross-vehicle applicability of the control logic.

CN123169787APending Publication Date: 2026-11-27ATECH AUTOMOTIVE WUHU
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202611511961.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-28
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

The high degree of coupling between various functional scenarios in existing automotive exterior lighting control software makes it easy for exterior lights to accidentally turn on or off when triggered simultaneously in multiple scenarios, affecting driving safety. Furthermore, the control logic is complex, maintenance costs are high, and cross-vehicle portability is difficult.

Method used

A hierarchical control method is adopted, dividing the external lighting control into three independent layers: input preprocessing, scene mode decision-making, and output processing. Each scene module operates independently, decoupled through scene arbitration logic, independently judging the lighting or turning-off request, and setting sleep judgment logic in the output processing.

Benefits of technology

The coupling of the external lighting control software is reduced, preventing the external lights from turning on or off unexpectedly. This improves the maintainability of the control logic and its reusability across different vehicle models, ensuring driving safety and controller stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123169787A_ABST
    Figure CN123169787A_ABST
Patent Text Reader

Abstract

The application discloses a kind of automobile exterior light layering control method and system, the method is applied to vehicle body controller, and light switch gear position signal and vehicle body environment signal are processed into standardized signal by input preprocessing;Exterior light control is divided into a plurality of scene modules independent of each other according to function, and each scene module independently judges the request of corresponding exterior light and is not nested with each other;Each request is arbitrated according to the three levels of priority of emergency, compensation and routine to obtain the target lighting state;Then the target lighting state is converted into drive level or PWM duty ratio to drive the exterior light load through drive circuit, and the controller is prohibited to sleep when there is an unfinished lighting request.The application reduces the coupling between each light scene, can avoid the unexpected lighting or extinguishing of exterior light, and is convenient for maintenance and cross-model reuse.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of automotive electronic control technology, and in particular to a method and system for layered control of automotive exterior lights applied to a body controller. Background Technology

[0002] The automotive exterior lighting system is a crucial system for ensuring a vehicle's visibility at night and its visibility to other road users. It typically includes low beam headlights, high beam headlights, position lights (side marker lights), daytime running lights, and automatic headlights. The exterior lights are controlled by the Body Control Module (BCM) based on the light switch position, power status, and environmental conditions. The BCM outputs drive levels or pulse width modulation (PWM) signals to each exterior light load via drive circuitry to control the lighting, switching off, and brightness of each light.

[0003] For example, the published document with application publication number CN111746381B, entitled "Vehicle Lighting Control System and Vehicle Lighting Control Method", discloses a vehicle lighting control system that switches the high beams on and off by outputting vehicle information through the body controller and responding to the light switching signal by the lamp group controller. This solution concentrates the lighting control logic in the interaction process between the body controller and the lamp group controller, and the control conditions of each lamp are judged uniformly in the same processing flow.

[0004] Existing external lighting control software mostly adopts the centralized programming approach described above, coupling the control logic of various external lights such as low beam, high beam, and position lights into a single processing flow for unified processing. In actual development, with the continuous addition of functions such as automatic headlights, adaptive headlights, remote vehicle location, and welcome lighting, the number of combinations of conditions that need to be judged in the centralized logic has increased dramatically. This centralized architecture has the following shortcomings in engineering practice:

[0005] 1. The various lighting functions are coupled with each other. The condition judgment of one function contains a large number of state variables of other functions. When multiple scenes are triggered at the same time, they are prone to mutual interference, resulting in the external lights being turned on or off unexpectedly, which affects driving safety.

[0006] 2. If a single control flow is too long and the branches are deeply nested, the program is prone to getting stuck under certain combined conditions, causing external lights to fail to turn off or on as expected.

[0007] 3. Due to logical coupling, adding a new lighting function often requires modifying multiple existing logics. Different developers have different coding habits, which can easily introduce hidden errors and result in high costs for later maintenance and cross-vehicle porting.

[0008] 4. The centralized process does not independently determine the conditions for exiting hibernation, which poses a risk that the controller may malfunction and enter hibernation when the vehicle is working normally, causing the external lights to turn off unexpectedly. Summary of the Invention

[0009] The technical problem to be solved by this invention is: how to reduce the coupling between various functional scenarios in automotive external lighting control software, avoid the external lights being accidentally turned on or off when multiple scenarios are triggered simultaneously, and improve the maintainability and cross-vehicle reusability of the control logic.

[0010] To achieve the above objectives, the technical solution adopted by the present invention is as follows: a layered control method for automotive external lights, applied to a body controller, wherein the body controller is connected to an external light load via a drive circuit, and the control steps include:

[0011] Input preprocessing steps: Process the collected light switch gear position signals and vehicle environment signals to obtain gear position status signals and scene control signals;

[0012] Scene mode decision steps: Based on the received gear status signal and scene control signal, independently determine the scene module activated in the current scene, as well as the lighting or extinguishing request of the external light corresponding to each activated scene and output it. Different scene modules output their own lighting requests for the same external light, and each lighting request is independent of the others.

[0013] Scene arbitration steps: Perform comprehensive arbitration on the lighting and extinguishing requests output by each scene module to determine the target lighting state of each external light;

[0014] Output processing steps: The target lighting state is converted into the corresponding driving level or pulse width modulation duty cycle, and the corresponding external lamp load is driven by the driving circuit.

[0015] The external lighting load includes at least one of low beam headlights, high beam headlights, and position lights.

[0016] In the input preprocessing step, the light switch position signal is processed to obtain a standardized position status signal, and the vehicle environment signal is validated and converted to obtain a scene control signal.

[0017] In the scene mode decision-making step, the external lighting control is pre-divided into multiple independent scene modules according to their functions. Each scene module is determined to be activated by the gear status signal and the scene control signal.

[0018] In the output processing step, a sleep state determination is made based on whether there are any incomplete lighting requests. When there are no incomplete lighting requests, the body controller is allowed to enter the sleep state; when there are incomplete lighting requests, the body controller is prohibited from entering the sleep state.

[0019] The scene module includes a position light control module, a low beam headlight control module, and a high beam headlight control module;

[0020] Each scene module includes manual triggering branches, automatic triggering branches, and remote triggering branches. Each triggering branch outputs a light-up request or a light-down request independently.

[0021] The remote triggering branch receives remote lighting control requests from the vehicle network terminal, and after input preprocessing, outputs the corresponding external light lighting request or extinguishing request.

[0022] The vehicle's environmental signals include ambient light intensity signals collected by an ambient light intensity sensor and rainfall signals collected by a rain sensor.

[0023] The automatically triggered branches include:

[0024] When the ambient light intensity is lower than the first set light intensity threshold, a request to turn on the low beam headlights is automatically output.

[0025] When the ambient light intensity is higher than the second set light intensity threshold, a request to turn off the low beam headlights is automatically output.

[0026] When the rain sensor is triggered and the low beam headlights are on, the low beam headlights remain on, and the request to turn on the high beam headlights is suppressed.

[0027] When the automatic triggering branch of the high beam control module detects that the light intensity of the light source of an oncoming vehicle exceeds the set oncoming light intensity threshold, it outputs an extinguishing request to the high beam and an on lighting request to the low beam.

[0028] The vehicle environment signals also include vehicle speed signals collected by the vehicle speed sensor, steering angle signals collected by the steering angle sensor, and power mode signals.

[0029] Each scene module outputs a request to turn on the corresponding external lights based on the condition recognition result obtained by fusing the ambient light intensity signal, rainfall signal, vehicle speed signal, steering angle signal and gear status signal.

[0030] Specifically, when the vehicle speed is lower than the set follow-up vehicle speed threshold and the steering angle exceeds the set follow-up steering angle threshold, the follow-up steering scene module outputs a request to adjust the illumination angle to the corresponding side external light.

[0031] The validity verification includes: performing timeout and value range verification on the vehicle environment signal; when any vehicle environment signal is lost or exceeds the reasonable value range for more than a set time, the vehicle environment signal is set to invalid and the automatic triggering branch dependent on the vehicle environment signal is suppressed, so that the corresponding external light maintains the previous valid lighting state.

[0032] When a branch output lighting request is manually triggered, the lighting request of the manually triggered branch takes precedence over the lighting request of the automatically triggered branch, and the output of the automatically triggered branch is suppressed during the period when the manual mode is active.

[0033] Each external light corresponds to an independent state machine, which has an on state and an off state;

[0034] Each trigger branch outputs a lighting request, which triggers a transition from the off state to the lighting state. Any trigger branch outputs an off request, which triggers a transition from the lighting state to the off state. Each trigger branch converges through the off state, and only one lighting request is allowed for the same external light at any given time.

[0035] The scenario arbitration includes: dividing the scenarios corresponding to each scenario module into three priority levels: emergency scenarios, compensation scenarios, and normal scenarios;

[0036] When multiple requests are applied to the same external light at the same time, the target lighting state of the external light is determined according to the request with the highest priority.

[0037] When requests of the same level occur simultaneously, the later-triggered request takes precedence.

[0038] The method also includes a fault diagnosis step:

[0039] The loop feedback current of each external lamp load is periodically collected. When the deviation between the feedback current and the expected current under the corresponding driving state exceeds the set deviation threshold, the corresponding external lamp is determined to be faulty, and the lighting request for that external lamp is downgraded to an alarm indication.

[0040] A vehicle exterior lighting layering control system includes a body controller, a light switch connected to the body controller, an ambient light intensity sensor, a rain sensor, and an external light load. The external light load includes at least one of low beam headlights, high beam headlights, and position lights. The body controller includes a processor and a memory. The memory stores a computer program. When the processor executes the computer program, it implements the vehicle exterior lighting layering control method according to any one of claims 1 to 8.

[0041] It also includes a vehicle networking terminal, a vehicle speed sensor, a steering angle sensor, and a vehicle attitude sensor; the body controller is connected to the external lighting load through a drive circuit, which includes a metal-oxide-semiconductor field-effect transistor or an LED driver integrated circuit; the external lighting load also includes daytime running lights, and when the low beam headlights switch from off to on, the body controller reduces the pulse width modulation duty cycle of the daytime running lights from a first brightness duty cycle to a second brightness duty cycle; when the low beam headlights switch from on to off, the pulse width modulation duty cycle of the daytime running lights is restored to the first brightness duty cycle.

[0042] Compared with the prior art, the beneficial effects of the present invention are as follows.

[0043] 1. By decoupling the input preprocessing, scene mode decision, scene arbitration and output processing into four layers, signal acquisition, function decision, conflict resolution and hardware driver are separated from each other. Each scene module runs independently and is not nested. An abnormality in a single scene module will not affect other scene modules. This can avoid the accidental lighting or extinguishing of external lights caused by multi-scene coupling, which is conducive to improving driving safety.

[0044] 2. The lighting and extinguishing of each external light are initiated by independent trigger branches and converged through a unified extinguishing state. The lighting modes are distinguishable from each other and the states can be quickly switched, which can avoid the problem of centralized logic getting stuck under a certain combination of conditions and failing to turn the lights on and off normally.

[0045] 3. The functions are divided horizontally according to the scene mode. When adding a new lighting function, only the corresponding scene module needs to be added. There is no need to modify the existing scene module. The logic of a single scene module is simple and involves few signals, which facilitates later maintenance and cross-vehicle porting and reuse.

[0046] 4. An independent sleep detection logic is set in the output processing stage. Sleep mode is prohibited when there is an incomplete lighting request or when the external lights are still on. This can avoid the risk of the controller going into sleep mode due to misjudgment during normal vehicle operation, which could lead to the external lights going out unexpectedly. Attached Figure Description

[0047] The following is a brief explanation of the content represented by each figure in this specification:

[0048] Figure 1 A schematic diagram of the model architecture for layered control of automotive exterior lights;

[0049] Figure 2 A three-layer architecture diagram for a layered control system for automotive exterior lighting, comprising input preprocessing, scene mode decision-making, and output processing;

[0050] Figure 3A schematic diagram of a single-lamp state machine for a layered control system for automotive exterior lighting (taking a position lamp as an example);

[0051] Figure 4 A flowchart for scene arbitration and hierarchical processing in a layered control method for automotive exterior lighting. Detailed Implementation

[0052] The following description, with reference to the accompanying drawings, details the specific implementation of the present invention, including the shape and structure of each component, the relative positions and connections between the parts, the function and working principle of each part, the manufacturing process, and the operation and use methods, to help those skilled in the art to have a more complete, accurate, and in-depth understanding of the inventive concept and technical solution of the present invention.

[0053] The vehicle exterior lighting layered control method and system described in this embodiment can be executed by the body controller. This layered control strategy is built in a model-based manner: layered modeling is performed in a modeling environment using components (subsystems) as the framework and state machines as the logical units. Then, an automatic code generation tool compiles the layered model into embedded C code, which is then burned into the processor of the body controller for execution. The specific software tools used for modeling and code generation do not constitute a limitation on the scope of protection of this invention; those skilled in the art can also implement the same layered logic by manually writing embedded code.

[0054] like Figure 1 As shown, the system hardware architecture and three-layer control architecture are vertically divided into three sections: input processing, scene decision-making, and output processing. Various input signals enter their respective input processing modules via the input bus, including the EE Handler (electrical load signal processing), PowerMode Handler (power mode processing), and Vehicle Speed ​​(vehicle speed processing). Each input processing module de-jitters, verifies, and transforms the original signals before merging them into the input processing bus. The input processing bus distributes the standardized signals to multiple parallel scene modules (Scene 001, Scene 002, Scene 003, Scene 004, etc.). Each scene module independently determines and outputs a light-on or light-off request. The requests from each scene module are fed into the scene arbitration module, which, after adjudicating according to priority rules, distributes the final instruction to the Output Handler and History Handler, ultimately driving the external light loads corresponding to each output channel (Output-1, Output-2, ..., Output-n).

[0055] like Figure 2As shown, the hierarchical control software running in the body controller processor is logically divided into three decoupled systems: an input preprocessing system, a scene mode decision system, and an output processing system. The three systems are connected by standardized internal signals, and the data flow passes through each system from left to right.

[0056] The three systems are analyzed in detail below:

[0057] 1. Input preprocessing system, including a lighting input signal processing module and a switch position processing module. The switch position processing module directly processes the raw position level or message sent by the lighting switch into a standardized position status signal (e.g., OFF, AUTO, position light, low beam, represented by enumeration quantities); the lighting input signal processing module verifies the validity and performs dimension conversion on vehicle environmental signals such as ambient light intensity, rainfall, vehicle speed, and power mode, converting them into scene control signals that can be directly used by subsequent scene modules.

[0058] The input preprocessing system centralizes the processing of jitter, de-jitter, type matching, and range calibration of the original signal in one place, thereby reducing the signal processing burden on each subsequent scene module. In one sampling implementation, the input preprocessing system refreshes the hardwired level and bus messages at a fixed control cycle. Taking a 10-millisecond control cycle as an example, the light switch's gear level is sampled several times consecutively. Only when multiple consecutive sampling results are consistent is a gear change confirmed, thus filtering out instantaneous jumps caused by switch mechanical jitter and wiring harness electromagnetic interference. Based on this de-jitter window estimate, the delay for a single actual gear switch to be identified is the number of de-jitter counts multiplied by the control cycle, on the order of tens of milliseconds. This is far less than the driver's subjective perception threshold for light response, does not affect normal use, and avoids repeated gear jumps caused by switch jitter at critical points.

[0059] For ambient light intensity, rainfall, vehicle speed, and other signals received via the CAN / LIN bus, the input preprocessing system simultaneously maintains a survival counter for each signal: the corresponding counter is reset to zero upon receiving each valid message frame, and the counter for unrefreshed signals is incremented by one in each control cycle; when the counter exceeds a set timeout threshold (corresponding to a communication loss duration of several hundred milliseconds to several seconds), the signal is determined to be lost and invalidated. This distinguishes between occasional bus frame drops and complete bus outages—occasional frame drops will not trigger degradation; only continuous timeouts trigger the fail-safe strategy, avoiding frequent actions due to single-frame packet loss.

[0060] Regarding dimension conversion, the ambient light intensity sensor typically outputs a raw count value that is approximately logarithmically related to luminance. The light input signal processing module converts this value into an estimated illuminance in engineering units according to a calibrated piecewise curve and compares it with the first and second set light intensity thresholds. Given the logarithmic perception of luminance by the human eye, when illuminance changes proportionally, subjective luminance changes approximately arithmetically. Therefore, the light intensity thresholds should be evenly spaced on a logarithmic coordinate system to ensure consistent trigger sensitivity between low-light and high-light areas, rather than being evenly spaced on the raw count value coordinate system.

[0061] 2. The scene mode decision system divides external lighting control into multiple independent scene modules based on function. In this embodiment, it includes eight scene modules: manual control of position lights, automatic control of position lights, remote control of position lights, manual control of low beam headlights, automatic control of low beam headlights, remote control of low beam headlights, manual control of high beam headlights, and automatic control of high beam headlights. Each scene module only receives the gear status signal and scene control signal related to its function, independently determines the lighting or extinguishing request of the corresponding external light, and outputs the request to the subsequent stage. The scene modules do not call each other or nest their state variables. Even if an anomaly occurs within one scene module, it will not affect the judgment results of other scene modules.

[0062] The high beam control module includes two branches: manual high beam control and automatic high beam control.

[0063] 3. Output processing system, including output processing module and sleep processing module. The output processing module converts the target lighting state obtained after scene arbitration into drive level or PWM duty cycle, and drives the corresponding external lamp load through the drive circuit. The sleep processing module independently determines whether the body controller is allowed to exit operation and enter sleep mode.

[0064] The driving circuit includes a metal-oxide-semiconductor field-effect transistor (MOSFET) or an LED driver integrated circuit. At least some of the luminaires use LED light sources, driven by MOSFETs on the low side or high side, and their brightness is adjusted by a PWM signal output by the processor. For position lights, daytime running lights, and parking lights using LED light sources, the output processing module adjusts the average current of the LED by outputting PWM signals with different duty cycles, thereby adjusting the brightness. The average current of the LED is approximately the rated current multiplied by the duty cycle, which is the ratio of the conduction time to the PWM period. The subjective perception of light intensity by the human eye approximately follows the Weber-Fechner logarithmic law, that is, the subjective brightness difference is proportional to the relative change in light intensity; therefore, to make the brightness levels appear to progress uniformly to the human eye, the duty cycle should not be taken at linear equal intervals, but rather arranged according to a logarithmic or gamma curve—for example, denser levels in the low duty cycle range and sparser levels in the high duty cycle range—so that the subjective brightness step size between each level is roughly consistent.

[0065] The selection of PWM dimming frequency must simultaneously consider both human eye flicker fusion and power consumption. When the modulation frequency is higher than the critical flicker fusion frequency of the human eye, the human eye no longer perceives flicker but only average brightness. Automotive LED drivers typically use modulation frequencies of hundreds to thousands of hertz. Based on this frequency, the period is estimated to be in the sub-millisecond to several millisecond range, far below the human eye's distinguishable limit for high-frequency flicker, thus avoiding visual fatigue caused by visible flicker. If the modulation frequency is too low, on the one hand, the human eye can perceive the brightness fluctuations, and on the other hand, the vehicle will show scrolling stripes in the camera's viewfinder, affecting driving recording and external visibility. This solution sets this frequency in the calibration parameter table through a unified PWM clock configuration, allowing different light positions to share the same clock reference to reduce beat frequency.

[0066] like Figure 3 As shown, taking a position light as an example, the independent triggering and convergence logic within the scene module is explained. The position light control module includes three independent triggering branches: manual position light activation, automatic position light activation, and remote position light activation. All three branches output a lighting request to the same position light state machine. This state machine has two basic states: "position light on" and "position light off". Initially and by default, it is in the "position light off" state. When any one of the three branches (manual, automatic, or remote) outputs a lighting request, the state transitions from "position light off" to "position light on". When any branch outputs an off request, or when all lighting conditions are not met simultaneously, the state transitions back from "position light on" to "position light off".

[0067] The three trigger branches converge through a unified "position light off" state, ensuring that only one position light is active at any given time, thus avoiding state competition caused by multiple branches being set simultaneously. The low beam and high beam control modules adopt the same "multiple independent trigger branches - unified off state convergence" structure as the position lights, with each light operating independently of the others.

[0068] The transition conditions of the single-lamp state machine adopt an "event plus condition" form instead of simple level triggering: the lighting request output by any triggering branch acts as an event-driven transition from the off state to the on state, while the entry into the off state is triggered by the simultaneous failure of all lighting conditions. The mechanism of this design is that if the OR logic of each branch request is directly used as the lighting level, once a branch outputs a lighting request for a cycle due to a software glitch, the light will be mistakenly lit; with event transition, once the on state is established, it is latched by the state machine, and it will only exit when a clear off event or all lighting conditions are canceled, thus keeping transient glitches out of the state machine.

[0069] like Figure 4As shown, when different scene modules output multiple requests for the same external light, the scene arbitration process makes a decision. During arbitration, the scene type is first determined, and the scenes corresponding to each scene module are divided into three priority levels:

[0070] Emergency scenarios (such as fault alarms, hazard warning lights, etc., which trigger Output+3 accordingly);

[0071] Compensation scenarios (e.g., a compensation lighting request triggered by automatic headlight failure and degradation, which corresponds to triggering Output+2);

[0072] For routine scenarios (such as manual knob, automatic headlights, remote vehicle location, etc., routine lighting requests will trigger Output+1).

[0073] The three priority levels decrease sequentially. Requests from each level are fed into the instruction arbitrator. When multiple requests act on the same external light simultaneously, the target lighting state of the external light is determined according to the request with the highest priority level. When requests of the same level occur simultaneously, the principle of "last triggered takes precedence" applies. The arbitration result is finally output to the actuator driver.

[0074] The arbitration process is executed once per control cycle. When multiple requests simultaneously affect the same external light, their priority levels are compared first: emergency scenarios take precedence over compensation scenarios, and compensation scenarios take precedence over regular scenarios. When concurrency occurs within the same priority level, requests are recorded in a stack-like manner, with later requests taking precedence and earlier requests being suspended. Suspended regular requests are resumed only after higher-priority or later-arriving requests are withdrawn. Compared to unconditionally refreshing the target state each time, this suspension-resumption method ensures that a brief fault alarm will not completely clear the driver's manual low beam headlight activation request, and the light state can be smoothly restored after the alarm ends.

[0075] Take a typical conflict between automatic headlights and a manual headlight knob as an example: The driver turns the knob to low beam while inside a tunnel. After exiting the tunnel, the automatic branch determines that the ambient light intensity has exceeded a second preset light intensity threshold and requests the headlights to turn off. However, because the manual branch has higher priority than the automatic branch while the manual mode is active, the low beam headlights remain on until the driver turns the knob out of manual mode. Therefore, the automatic branch's on / off decision only takes effect in automatic mode; the manual and automatic paths do not overlap, avoiding the potential pitfall of a centralized logic approach where "an assignment statement in the automatic branch overrides the result of the manual headlights."

[0076] Based on the aforementioned hardware system, the specific control method for layered control of automotive external lights is as follows:

[0077] S1. Input Preprocessing: Acquire the light switch position signal and vehicle environment signal; the switch position processing module processes the original position signal into a standardized position status signal; the light input signal processing module performs validity verification and dimension conversion on signals such as ambient light intensity, rainfall, vehicle speed, and power mode to obtain scene control signals.

[0078] The validity check includes: determining whether each signal is within a reasonable value range and whether it is continuously refreshed within the set timeout period; when any vehicle environment signal is lost or exceeds the reasonable value range for more than the set time, the signal is set to invalid and the automatic triggering branch that depends on the signal is suppressed, so that the corresponding external light maintains the previous valid lighting state, and avoids the light malfunction due to the abnormality of a single sensor.

[0079] S2. Scene Mode Decision: Each independent scene module determines the lighting or extinguishing request for its scene based on the gear position status signal and scene control signal. Taking low beam headlights as an example: the manual branch outputs a lighting request when the gear position status signal is low beam; the automatic branch automatically outputs a lighting request when the ambient light intensity is lower than the first set light intensity threshold (e.g., in tunnels, at night, or in low-light environments at the entrance of an underground parking garage), and automatically outputs an extinguishing request when the ambient light intensity is higher than the second set light intensity threshold; the remote branch outputs a lighting request when it receives a vehicle location or welcome request from the vehicle network terminal.

[0080] When the high beams are detected to have light intensity exceeding a set threshold, the automatic high beam switch sends a request to turn off the high beams and a request to turn on the low beams to avoid dazzling the driver. When the rain sensor is triggered and the low beams are on, the low beams are kept on and the request to turn on the high beams is suppressed, which complies with the lighting regulations for driving in rainy weather.

[0081] S3, Scenario Arbitration: According to Figure 4 The priority rules shown arbitrate the requests output by each scene module to determine the target lighting status of each external light.

[0082] S4. Output Processing: The output processing module converts the target lighting state into a drive level or PWM duty cycle.

[0083] For example, position lights and daytime running lights require different brightness levels under different operating conditions. The processor outputs PWM signals with different duty cycles to the LED driver integrated circuit accordingly, adjusting the LED current to regulate the brightness. High beams and low beams are driven in a constant-level manner. The MOSFET in the driver circuit is responsible for power switching, and the processor monitors the drive status by detecting the feedback current through the detection loop.

[0084] The sleep mode module operates independently: it keeps the vehicle body controller awake when there are unfinished lighting requests or when any external light is still on; it only allows the vehicle body controller to enter sleep mode when there are no lighting requests for a preset period of time and all external lights are off. This prevents the controller from malfunctioning and going into sleep mode during normal vehicle operation, which could lead to unexpected extinguishing of external lights.

[0085] The boundary of the sleep judgment lies in the OR relationship between the two conditions "there is an incomplete request" and "the light is still on".

[0086] Taking a welcoming event as an example: A user remotely requests to turn on the position lights and low beam headlights for welcoming illumination. Even without other requests during this period, the sleep processing module remains awake because the external lights are still on. After the welcoming delay ends and all lights turn off sequentially, a further preset time must be waited for any new requests before power is allowed to be cut off. If this preset time is too short, power may be cut off before the welcoming delay is complete; if it is too long, static current consumption will increase. Therefore, it is calibrated according to the vehicle's static current budget to minimize static power consumption while ensuring the complete completion of the welcoming event.

[0087] In terms of fault diagnosis, the body controller periodically collects the loop feedback current of each external light load and compares it with the expected current under the corresponding driving state. When the deviation exceeds the set deviation threshold, it determines that the corresponding external light has an open circuit or short circuit fault, and downgrades the lighting request for that external light to an alarm indication (such as an alarm prompt from the other side of the symmetrical lights or the instrument panel), so that it can still provide a recognizable signal to the driver when the lighting hardware fails.

[0088] During duty cycle adjustment, the processor samples the feedback current of the circuit within the conduction window of each PWM cycle. Since the forward voltage drop across the LED is established and the circuit current enters a steady state only within the conduction window, sampling within this window avoids the current spike at the moment of switching, making the sampled value closer to the actual load current. Thus, continuous monitoring of the integrity of the load path is completed while dimming, and dimming and fault diagnosis reuse the same drive cycle in time, without the need for additional hardware sampling circuits.

[0089] A hysteresis loop is set between the first and second light intensity thresholds of the automatic headlights. The first threshold is the headlight-on threshold, and the second threshold is the headlight-off threshold, with the headlight-off threshold being greater than the headlight-on threshold. The area between these two thresholds is the hysteresis range. When the vehicle enters a tunnel from a bright area, and the ambient light intensity decreases, the low beam only illuminates when the light intensity drops below the headlight-on threshold. When exiting the tunnel, and the light intensity increases, the headlight only turns off when the light intensity rises above the headlight-off threshold. Based on the fundamental principle of hysteresis comparison, as long as the ambient light intensity fluctuates within the range between the headlight-on and headlight-off thresholds, the output state remains unchanged. This avoids frequent on / off switching of the low beam in scenarios where the illuminance repeatedly crosses a single threshold, such as at tunnel entrances or under trees. The selection of the hysteresis bandwidth requires a trade-off between "anti-shake" and "sensitivity": too large a bandwidth results in delayed headlight activation in low light, while too small a bandwidth may still cause shaking. Therefore, it is calibrated for different vehicle models using calibration parameters.

[0090] The first and second light intensity thresholds can be stored in the memory using the calibration parameter table and calibrated separately under different vehicle models and different windshield transmittance conditions.

[0091] High beams directly glare on oncoming vehicles and drivers of vehicles ahead, so the switching in and out of high beams should not be abrupt. This solution smoothly increases the PWM duty cycle of the high beams from the initial duty cycle to the target duty cycle within a set switching time when switching from low beam to high beam. Estimated using a linear ramp-up, the duty cycle change rate over time is the ratio of the target duty cycle to the switching time. With the switching time on the order of several hundred milliseconds, the high beam brightness gradually increases, giving oncoming drivers an adaptation period and avoiding the visual shock of abrupt lighting. Conversely, when the automatic high beam branch detects that the light intensity of an oncoming vehicle exceeds the set oncoming light intensity threshold and requests to switch back to low beam, the high beams can be switched off in a shorter time to quickly eliminate the glare source—the switching out time can be shorter than the switching in time, creating an asymmetrical timing sequence of "slow in, fast out." When the external lights switch from low beam to high beam, the feedback current is continuously sampled within the set switching time to verify that there is no open circuit during the switching process.

[0092] In addition to ambient light intensity and rainfall, the scene mode decision system also integrates vehicle speed, steering angle, and power mode signals for operating condition identification. For example, in the follow-up steering scene, the illumination angle adjustment request is only output when the vehicle speed is lower than the set follow-up vehicle speed threshold and the steering angle exceeds the set follow-up steering angle threshold; it is not triggered when turning the steering wheel while stationary or when driving at high speed in a straight line, so as to avoid meaningless actions of the actuator.

[0093] The power mode signal is used to distinguish the ignition position. During the power-down process, each scene module finishes in turn according to the preset power-down sequence. Unfinished welcome / car-finding lighting requests are retained in the sleep judgment logic. The sleep processing module will only allow power-off after all requests have been processed, so as to avoid the welcome lights being suddenly powered off during the delayed extinguishing process.

[0094] In multi-sensor fusion operation, the fail-safe strategy is executed according to a three-level mapping table: "failure signal - dependent branch - degraded action". When the ambient light intensity signal is lost, the automatic headlight branch that depends on it is suppressed, and the low beam decision-making power is returned to the manual branch. When the rain signal is lost, the linkage of maintaining low beam and suppressing high beam in rainy weather no longer takes effect, but the driver can still manually turn on the high beam. When the vehicle speed or steering angle signal is lost, branches that depend on vehicle speed, such as the adaptive steering and emergency braking linkage, are suppressed, while the basic low beam, high beam, and position light control are unaffected. Thus, the failure of any single sensor only converges to its related local functions, and the remaining external lights can still be controlled normally by manual and branches that do not depend on that signal, which meets the design goal of fault localization. When the ambient light intensity signal or rain signal is invalidated, the automatic trigger branch is prohibited from outputting the lighting request, and the corresponding external light maintains the lighting state determined by the manually triggered branch or the previous valid state.

[0095] The front and rear axle pitch signals collected by the vehicle body attitude sensor can be used for automatic headlight height adjustment: when the rear axle pitches down due to increased load, it outputs a request to lower the illumination angle to the headlight height adjustment actuator, so that the illumination distance of the low beams dynamically decreases with the vehicle body pitch attitude, avoiding glare from the low beams as the pitch angle increases.

[0096] The external lighting load also includes daytime running lights (DRLs). When the low beam headlights switch from off to on, the PWM duty cycle of the DRLs is reduced from the first brightness duty cycle to the second brightness duty cycle; when the low beam headlights switch from on to off, the PWM duty cycle of the DRLs is restored to the first brightness duty cycle. This further solves the problems of oncoming glare caused by the DRLs being fully on at night along with the low beams, and the DRLs not illuminating during the day after the low beams are turned off.

[0097] The remote trigger branch receives remote lighting control requests from the vehicle-to-everything (T-Box) terminal. After input preprocessing, it outputs the corresponding external light illumination or extinguishing request to illuminate the external lights, enabling them to illuminate during vehicle location or welcoming actions. The T-Box terminal can also receive remote lighting control requests from user mobile terminals, such as flashing lights during vehicle location or illuminating external lights during welcoming actions. All of the above signals are connected to the body controller via hardwired connections or CAN / LIN bus.

[0098] In addition to position lights, low beam headlights, and high beam headlights, the scene mode decision system can also add independent scene modules such as front fog lights, rear fog lights, license plate lights, door control lights, adaptive headlights (AFL), and automatic headlight height adjustment. Each new module is connected according to the same "independent input - independent judgment - request output" structure, without the need to modify existing modules.

[0099] The priority, arbitration rules, sleep timeout duration, fault judgment threshold, etc. of each triggering branch are all stored in the form of calibrable parameters, which makes it easy for vehicle calibration personnel to make adjustments without modifying the control logic code when adapting to vehicle models.

[0100] The hierarchical control method can be implemented entirely in software and run on a single body controller, or the scene mode decision system can be deployed on the domain controller and the drive circuit and output processing module can be moved down to the area controller under the body domain controller architecture, with the two interacting and requesting signals through the in-vehicle bus; the functional modules described in the above hardware can be implemented in the form of software modules, hardware logic units or a combination of software and hardware.

[0101] The following two typical work scenario walkthroughs illustrate the collaboration between layers in a layered architecture:

[0102] Automatic tunnel entry at night: When the vehicle is traveling at a moderate speed on a suburban road, the illuminance output by the ambient light sensor gradually decreases as darkness falls. When the illuminance, after dimensional conversion, falls below the first preset light intensity threshold and is continuously confirmed, the low beam headlights automatically switch to the low beam state and request to turn on. After arbitration (in a normal scenario), the low beam headlight state machine is set, and the low beam headlights transition from the off state to the on state. The output processing module drives the low beam headlights to turn on and reduces the daytime running light duty cycle from the first brightness duty cycle to the second brightness duty cycle. When exiting the tunnel, the light intensity recovers, but due to the hysteresis between the two thresholds, the automatic switch only requests to turn off after the illuminance rises above the second preset light intensity threshold and remains there for a set duration. During this period, if the driver's manual knob is already in the low beam position, the manual switch remains active, and the automatic switch is not overridden.

[0103] When encountering oncoming traffic at night in rainy weather: The rain sensor triggers, the low beam headlights are already on, and the low beam branch remains on while suppressing the high beam request; when an oncoming vehicle approaches and its light intensity exceeds the set oncoming light intensity threshold, the automatic high beam branch has already pre-turned off the high beams; if the rear axle tilts down due to increased load at this time, the vehicle attitude sensor outputs a pitch signal, and the headlight height adjustment actuator lowers the illumination angle to avoid the low beams dazzling the eyes as the tilt angle increases. Throughout the process, the ambient light, rain, pitch, and oncoming light intensity signals are processed by their respective independent branches. The decision of any branch does not directly rewrite the state of other branches, and finally, the arbitration and state machine converge to a definite headlight position output.

[0104] The present invention has been described above by way of example with reference to the accompanying drawings. Obviously, the specific implementation of the present invention is not limited to the above-described manner. Any non-substantial improvements made using the inventive concept and technical solution of the present invention, or the direct application of the inventive concept and technical solution of the present invention to other occasions without modification, are all within the protection scope of the present invention.

Claims

1. A method for layered control of automotive exterior lights, applied to a body controller, wherein the body controller is connected to an external light load via a drive circuit, characterized in that... The control steps include: Input preprocessing steps: Process the collected light switch gear position signals and vehicle environment signals to obtain gear position status signals and scene control signals; Scene mode decision steps: Based on the received gear status signal and scene control signal, independently determine the scene module activated in the current scene, as well as the lighting or extinguishing request of the external light corresponding to each activated scene and output it. Different scene modules output their own lighting requests for the same external light, and each lighting request is independent of the others. Scene arbitration steps: Perform comprehensive arbitration on the lighting and extinguishing requests output by each scene module to determine the target lighting state of each external light; Output processing steps: The target lighting state is converted into the corresponding driving level or pulse width modulation duty cycle, and the corresponding external lamp load is driven by the driving circuit.

2. The method for layered control of automotive exterior lighting according to claim 1, characterized in that, The external lighting load includes at least one of low beam headlights, high beam headlights, and position lights. In the input preprocessing step, the light switch position signal is processed to obtain a standardized position status signal, and the vehicle environment signal is validated and converted to obtain a scene control signal. In the scene mode decision-making step, the external lighting control is pre-divided into multiple independent scene modules according to their functions. Each scene module is determined to be activated by the gear status signal and the scene control signal. In the output processing step, a sleep state determination is made based on whether there are any incomplete lighting requests. When there are no incomplete lighting requests, the body controller is allowed to enter the sleep state; when there are incomplete lighting requests, the body controller is prohibited from entering the sleep state.

3. The method for layered control of automotive exterior lighting according to claim 2, characterized in that, The scene module includes a position light control module, a low beam headlight control module, and a high beam headlight control module; Each scene module includes manual triggering branches, automatic triggering branches, and remote triggering branches. Each triggering branch outputs a light-up request or a light-down request independently. The remote triggering branch receives remote lighting control requests from the vehicle network terminal, and after input preprocessing, outputs the corresponding external light lighting request or extinguishing request.

4. The method for layered control of automotive exterior lighting according to claim 3, characterized in that, The vehicle's environmental signals include ambient light intensity signals collected by an ambient light intensity sensor and rainfall signals collected by a rain sensor. The automatically triggered branches include: When the ambient light intensity is lower than the first set light intensity threshold, a request to turn on the low beam headlights is automatically output. When the ambient light intensity is higher than the second set light intensity threshold, a request to turn off the low beam headlights is automatically output. When the rain sensor is triggered and the low beam headlights are on, the low beam headlights remain on, and the request to turn on the high beam headlights is suppressed. When the automatic triggering branch of the high beam control module detects that the light intensity of the light source of an oncoming vehicle exceeds the set oncoming light intensity threshold, it outputs an extinguishing request to the high beam and an on lighting request to the low beam.

5. The method for layered control of automotive exterior lighting according to claim 4, characterized in that, The vehicle environment signals also include vehicle speed signals collected by the vehicle speed sensor, steering angle signals collected by the steering angle sensor, and power mode signals. Each scene module outputs a request to turn on the corresponding external lights based on the condition recognition result obtained by fusing the ambient light intensity signal, rainfall signal, vehicle speed signal, steering angle signal and gear status signal. Specifically, when the vehicle speed is lower than the set follow-up vehicle speed threshold and the steering angle exceeds the set follow-up steering angle threshold, the follow-up steering scene module outputs a request to adjust the illumination angle to the corresponding side external light.

6. The method for layered control of automotive exterior lighting according to claim 5, characterized in that, The validity verification includes: performing timeout and value range verification on the vehicle environment signal; when any vehicle environment signal is lost or exceeds the reasonable value range for more than a set time, the vehicle environment signal is set to invalid and the automatic triggering branch dependent on the vehicle environment signal is suppressed, so that the corresponding external light maintains the previous valid lighting state. When a branch output lighting request is manually triggered, the lighting request of the manually triggered branch takes precedence over the lighting request of the automatically triggered branch, and the output of the automatically triggered branch is suppressed during the period when the manual mode is active.

7. The method for layered control of automotive exterior lighting according to any one of claims 1-6, characterized in that, Each external light corresponds to an independent state machine, which has an on state and an off state; Each trigger branch outputs a lighting request, which triggers a transition from the off state to the lighting state. Any trigger branch outputs an off request, which triggers a transition from the lighting state to the off state. Each trigger branch converges through the off state, and only one lighting request is allowed for the same external light at any given time. The scenario arbitration includes: dividing the scenarios corresponding to each scenario module into three priority levels: emergency scenarios, compensation scenarios, and normal scenarios; When multiple requests are applied to the same external light at the same time, the target lighting state of the external light is determined according to the request with the highest priority. When requests of the same level occur simultaneously, the later-triggered request takes precedence.

8. The method for layered control of automotive exterior lighting according to claim 7, characterized in that, It also includes fault diagnosis steps: The loop feedback current of each external lamp load is periodically collected. When the deviation between the feedback current and the expected current under the corresponding driving state exceeds the set deviation threshold, the corresponding external lamp is determined to be faulty, and the lighting request for that external lamp is downgraded to an alarm indication.

9. A layered control system for automotive exterior lighting, characterized in that, The method includes a vehicle body controller, a light switch connected to the vehicle body controller, an ambient light intensity sensor, a rain sensor, and an external light load, wherein the external light load includes at least one of low beam headlights, high beam headlights, and position lights. The vehicle body controller includes a processor and a memory, wherein the memory stores a computer program, and the processor executes the computer program to implement the vehicle external light layered control method according to any one of claims 1 to 8.

10. The automotive exterior lighting layering control system according to claim 9, characterized in that, It also includes a vehicle networking terminal, a vehicle speed sensor, a steering angle sensor, and a vehicle attitude sensor; the body controller is connected to the external lighting load through a drive circuit, which includes a metal-oxide-semiconductor field-effect transistor or an LED driver integrated circuit; the external lighting load also includes daytime running lights, and when the low beam headlights switch from off to on, the body controller reduces the pulse width modulation duty cycle of the daytime running lights from a first brightness duty cycle to a second brightness duty cycle; When the low beam headlights switch from being on to being off, the pulse width modulation duty cycle of the daytime running lights is restored to the first brightness duty cycle.

Citation Information

Patent Citations

  • Vehicle lighting control system and vehicle lighting control method

    CN111746381B