5.9. Analog Lamp Driver - LampDrvr
Id |
LampDrvr |
Version |
main |
Title |
Analog Lamp Driver |
System |
Exterior Lighting |
Document Type |
Application Software Component Specification Preview |
5.9.1. Overview
The Lamp Driver component is responsible for controlling the state of attached lighting sources based on commands received from lighting managers. It monitors the current of the lamps to detect faults.
5.9.2. Functions
Title |
Description |
|
|---|---|---|
1 |
Lamp Command Processing |
Processes lamp activation/deactivation commands received from lighting managers. Commands are filtered based on DRL and position lamp states with configurable delays. |
2 |
Lamp Current Monitoring |
Monitors the current of the connected lamps to detect if they are in expected working range. Implements debounce logic to avoid false triggering. |
3 |
Fault Detection |
Detects faults in the lamps based on command state, actual current and I/O pin diagnostics. Implements configurable timeouts for entering and exiting fault state. |
4 |
Lamp State Reporting |
Reports back the detected lamp state (activated, deactivated, fault) to the lighting managers. |
5.9.3. Ports
Id |
Direction |
Data Type |
Dimensions |
Unit |
Description |
Keywords |
|
|---|---|---|---|---|---|---|---|
1 |
LampCmd |
Incoming |
Enum: CmnenaAcvnSt |
[1] |
Lamp command |
Lamp Command |
|
2 |
LampCmdVld |
Incoming |
boolean |
[1] |
Lamp command validity |
Lamp Command Valid |
|
3 |
LampActCur |
Incoming |
single |
[1] |
A |
Current on pin |
Lamp Actual Current |
4 |
LampActSt |
Incoming |
Enum: InpoutPinSt |
[1] |
Pin state |
Lamp Actual State |
|
5 |
BasU |
Incoming |
single |
[1] |
V |
Base voltage |
Base Voltage |
6 |
LampSt |
Outgoing |
Enum: CmnenaOprtgSt |
[1] |
Lamp aggregated state |
Lamp State |
|
7 |
LampActMod |
Outgoing |
Enum: InpoutPinMod |
[1] |
Pin mode |
Lamp Actual Mode |
|
8 |
LampActDuty |
Outgoing |
uint8 |
[1] |
% |
Commanded duty on pin |
Lamp Actual Duty |
5.9.4. Parameters
Id |
Data Type |
Dimensions |
Range |
Unit |
Description |
Keywords |
|
|---|---|---|---|---|---|---|---|
1 |
LmdiveUseTblCalBasdOnInpU |
boolean |
[1,1] |
Min: 0, Max: 1 |
If True - table calibration based on input voltage is used, of False - LampCurrThr is used |
Lmdive Use Table Calibration Based On Input Voltage |
|
2 |
LmdiveChgCmdForChgOfDuty |
boolean |
[1,1] |
Min: 0, Max: 1 |
If True in fault duty==0 and try duty==ON then cmd changed |
Lmdive Change Command For Change Of Duty |
|
3 |
LmdiveFltRstTiout |
single |
[1,1] |
Min: 0, Max: 20 |
s |
Fault reset timeout for lamps |
Lmdive Fault Reset Timeout |
4 |
LmdiveSwtOffDly |
single |
[1,1] |
Min: 0, Max: 5 |
s |
Delay for lamps switching off - DRL and POS are inactive (or the lamp is not an indicator) |
Lmdive Switch Off Delay |
5 |
LmdiveSwtOnDly |
single |
[1,1] |
Min: 0, Max: 5 |
s |
Delay for lamps switching on - DRL and POS are inactive (or the lamp is not an indicator) |
Lmdive Switch On Delay |
6 |
LmdiveTurnOffDur |
single |
[1,1] |
Min: 0, Max: 120 |
s |
Duration to gradually turn off the pin (ramp-down time). 0 sec - switch will be instant |
Lmdive Turn Off Duration |
7 |
LmdiveTurnOnDur |
single |
[1,1] |
Min: 0, Max: 120 |
s |
Duration to gradually turn on the pin (ramp-up time). 0 sec - switch will be instant |
Lmdive Turn On Duration |
8 |
LmdiveCurDeb |
single |
[1,1] |
Min: 0, Max: 20 |
s |
Debounce time for lamp current measurement |
Lmdive Current Debounce |
9 |
LmdiveDutyOffDly |
single |
[1,1] |
Min: 0, Max: 20 |
s |
Time try duty==ON after fault |
Lmdive Duty Off Delay |
10 |
LmdiveCurThdTblCurAxis |
single |
[1,2] |
Min: 0, Max: 30 |
A |
Working current on pin if lamp is active based on input voltage |
Lmdive Current Threshold Table Current Axis |
11 |
LmdiveCurThdTblUAxis |
single |
[1,2] |
Min: 0, Max: 32 |
V |
Input voltage for working current |
Lmdive Current Threshold Table Voltage Axis |
12 |
LmdiveCurMeasmHysVal |
single |
[1,1] |
Min: 0, Max: 30 |
A |
Hysteresis value for lamp current measurement |
Lmdive Current Measurement Hysteresis Value |
13 |
LmdiveCurThd |
single |
[1,1] |
Min: 0, Max: 30 |
A |
Working current on pin if lamp is active |
Lmdive Current Threshold |
14 |
LmdiveCurTiout |
single |
[1,1] |
Min: 0, Max: 5 |
s |
Undercurrent timeout for lamps |
Lmdive Current Timeout |
15 |
LmdiveShoCircCurThd |
single |
[1,1] |
Min: 0, Max: 3 |
A |
Overcurrent current on pin if lamp is active |
Lmdive Short Circuit Current Threshold |
16 |
LmdiveDutyMax |
uint8 |
[1,1] |
Min: 0, Max: 100 |
% |
Duty command on pin if lamp is requested to be activated |
Lmdive Duty Maximum |
17 |
LmdiveUsePinFb |
boolean |
[1,1] |
Min: 0, Max: 1 |
If True use pin state and current to get lamp feedback state, if false - ignore pin inputs |
Lmdive Use Pin Feedback |