4.10. Gear Selection Controller - GearSelr
Id |
GearSelr |
Version |
0.4.1.0 |
Title |
Gear Selection Controller |
System |
Drivetrain |
Document Type |
Application Software Component Specification Preview |
4.10.1. Overview
The Gear Selector Controller selects the appropriate gear based on driver, vehicle requests and system status feedback. It monitors various inputs e.g. gear selector position, brake pedal status, vehicle speed, and charging system status to determine the correct gear. The component includes a state machine to manage gear transitions and ensure smooth and safe gear changes. Lastly, it provides a fault switch monitor and system health monitor to detect and identify faults.
4.10.2. Functions
Title |
Description |
|---|---|
Gear Selection Control |
Determines the desired gear based on driver and vehicle requests, and controls the gear selection actuator to engage the selected gear. |
Gear Selector Position Monitoring |
Monitors the position of the gear selector (PRND) and provides the selected gear as an input to the gear selection control logic. |
4.10.3. Ports
Id |
Direction |
Data Type |
Dimensions |
Unit |
Description |
Keywords |
|
|---|---|---|---|---|---|---|---|
1 |
Ts |
Incoming |
single |
[1] |
s |
Ts |
|
2 |
SwPkGearSel |
Incoming |
Enum: CmnenaGearSt |
[1] |
inherit |
Expected signal: Signal from Switch pack Gear Selector Driver |
Software Pack Gear Select |
3 |
SwPkGearSelVld |
Incoming |
boolean |
[1] |
inherit |
Expected signal: Signal from Switch Pak Gear Selector Driver validity |
Software Pack Gear Select Valid |
4 |
BrkgGearReq |
Incoming |
Enum: CmnenaGearSt |
[1] |
inherit |
Expected signal: Signal from Gear Selector Driver |
Braking Gear Request |
5 |
BrkgGearReqVld |
Incoming |
boolean |
[1] |
inherit |
Expected signal: Signal from Gear Selector Driver |
Braking Gear Request Valid |
6 |
HmiGearReq |
Incoming |
Enum: CmnenaGearSt |
[1] |
inherit |
Expected signal: Signal from Gear Selector (alternative source, e.g. HMI) |
Hmi Gear Request |
7 |
HmiGearReqVld |
Incoming |
boolean |
[1] |
inherit |
Expected signal: Validity signal from Gear Selector (alternative source, e.g. HMI) |
Hmi Gear Request Valid |
8 |
ExtGearReq |
Incoming |
Enum: CmnenaGearSt |
[1] |
inherit |
Expected signal: Signal from Gear Selector (alternative source) |
External Gear Request |
9 |
ExtGearReqVld |
Incoming |
boolean |
[1] |
inherit |
Expected signal: Signal from Gear Selector (alternative source) |
External Gear Request Valid |
10 |
VehSpd |
Incoming |
single |
[1] |
km/h |
Expected signal: Vehicle Longitudinal speed |
Vehicle Speed |
11 |
VehSpdVld |
Incoming |
boolean |
[1] |
inherit |
Expected signal: Vehicle longitudinal speed valdity |
Vehicle Speed Valid |
12 |
BrkPedlIsPsd |
Incoming |
boolean |
[1] |
inherit |
Expected signal: Flag to be obtained based on brake pedal command and desired deceleration level. e.g. if veh deceleration >=2m/s^2, then 1; 0 otherwise |
Brake Pedal Is Pressed |
13 |
ChrgSysVld |
Incoming |
boolean |
[1] |
inherit |
Expected signal: Charging system validty |
Charging System Valid |
14 |
VsmSysSt |
Incoming |
Enum: CmnenaVehSt |
[1] |
inherit |
Expected signal: Vehicle system status. See CmnenaVehSt for complete list |
Vsm System State |
15 |
VsmSysVld |
Incoming |
boolean |
[1] |
inherit |
Expected signal: Vehicle system status validity |
Vsm System Valid |
16 |
ChrgPlugCond |
Incoming |
boolean |
[1] |
inherit |
Expected signal: Charge gun detection |
Charging Plug Connected |
17 |
BrkPedVld |
Incoming |
boolean |
[1] |
inherit |
Expected signal: Brake pedal validity. |
Brake Pedestrian Valid |
18 |
DrvrPresVld |
Incoming |
boolean |
[1] |
inherit |
Expected signal: Driver sat signal is valid |
Driver Presence Valid |
19 |
DrvrPresAcv |
Incoming |
boolean |
[1] |
inherit |
Expected signal: Driver is sat onto driver seat |
Driver Presence Active |
20 |
InvSysGearSt |
Incoming |
Enum: CmnenaGearSt |
[1] |
inherit |
Expected signal: Actual drivetrain (inverter) status |
Inverter System Gear State |
21 |
BrkSysSt |
Incoming |
Enum: CmnenaGearSt |
[1] |
inherit |
Expected signal: Actual braking system status |
Brake System State |
22 |
IgEngd |
Incoming |
boolean |
[1] |
inherit |
Expected signal: Vehicle system ingition status (0 or 1) |
Ignition Engaged |
23 |
CanGearSelrOut |
Outgoing |
Bus: CAN_GearSelrOut_t |
[-1] |
inherit |
Can Gear Selector Output |
|
24 |
SndGearSelrOut |
Outgoing |
boolean |
[1] |
inherit |
Send Gear Selector Output |
|
25 |
GselrGearCmd |
Outgoing |
Enum: CmnenaGearSt |
[1] |
inherit |
Gselr Gear Command |
|
26 |
GselrGearSt |
Outgoing |
Enum: CmnenaGearSt |
[1] |
inherit |
Gselr Gear State |
|
27 |
GselrStsOut |
Outgoing |
Enum: CmnenaSysNotifSt |
[-1] |
inherit |
Gselr Status Output |
|
28 |
GselrGearPosnAct |
Outgoing |
Enum: CmnenaGearSt |
[1] |
inherit |
Gselr Gear Position Actual |
|
29 |
GselrGearSelrVld |
Outgoing |
boolean |
[1] |
inherit |
Gselr Gear Selector Valid |
4.10.4. Parameters
Id |
Data Type |
Dimensions |
Range |
Unit |
Description |
Keywords |
|
|---|---|---|---|---|---|---|---|
1 |
GselrDrvRvsGearCfmTiout |
single |
[1,1] |
Min: 0, Max: 10 |
sec |
Gear Command Confirmation Timeout before reverting to Forward or Reverse |
Gselr Drive Reverse Gear Confirmation Timeout |
2 |
GselrNeutParkGearCfmTiout |
single |
[1,1] |
Min: 0, Max: 10 |
sec |
Gear Command Confirmation Timeout before reverting to Neutral or Park |
Gselr Neutral Park Gear Confirmation Timeout |
3 |
GselrVehGearReqCfg |
boolean |
[4,4] |
Min: , Max: |
Automatic Vehicle Gear Request Configuration Table ROWS “ParkReq; NeutReq; DrvReq; RvsReq” COLUMNS “VehNotRdyReq; VehSleepReq; ChrgPlugReq; DrvrPresReq” |
Gselr Vehicle Gear Request Configuration |
|
4 |
GselrGearIninWaitCfg |
boolean |
[4,6] |
Min: , Max: |
Gear Selector Initialization Wait Conditions Configuration Table ROWS “ParkInin; NeutInin; DrvInin; RvsInin” COLUMNS “GearFbInin; VehDirFwrd; VehDirRvs; EpbUknwnLoSpd; EpbUknwnHiSpd; EpbParkHiSpd” |
Gselr Gear Initialization Wait Configuration |
|
5 |
GselrGearFbIniTiout |
single |
[1,1] |
Min: 0, Max: 5 |
sec |
Gear Feedback Initialization Timeout |
Gselr Gear Feedback Initial Timeout |
6 |
GselrGearActSwtCt |
uint8 |
[1,1] |
Min: 3, Max: 200 |
Maximum number of switching of Gear Selector state signal during the check period |
Gselr Gear Actual Switch Count |
|
7 |
GselrGearActSwtTi |
single |
[1,1] |
Min: 0.03, Max: 100 |
sec |
Time period for Gear Selector state signal switching check |
Gselr Gear Actual Switch Time |
8 |
GselrVehSpdLockThd |
single |
[1,1] |
Min: , Max: |
km/h |
Vehicle Speed Gear Interlock Threshold (Vehicle Speed Lock) |
Gselr Vehicle Speed Lock Threshold |
9 |
GselrGearIntlockCfg |
boolean |
[4,10] |
Min: , Max: |
Gear Interlock Configuration Table for Normal Operation ROWS “ParkIntlock; NeutIntlock; DrvIntlock; RvsIntlock” COLUMNS “VehSpdLock; VehSpdFwrdDirLock; VehSpdRvsDirLock; BrkPedlLock; BrkPedlLoSpdLock; BrkPedlParkLock; VehNotRdyLock; VehSleepLock; ChrgPlugLock; DrvrPresLock” |
Gselr Gear Interlock Configuration |