CANbus_Diag.GetBusState (METH)ΒΆ
METHOD GetBusState : DED.BUS_STATE
Returns the bus state of the associated CANBus.
Following table defines the mapping between CAA Device Diagnosis DED.BUS_STATE and CL2.BUSSTATE.
CAA Device Diagnosis |
CANbus state |
|
CL2.BUSSTATE.ERR_FREE,CL2.BUSSTATE.ACTIVE,CL2.BUSSTATE.WARNING (with xDiagnosisInfoAvailable``=``TRUE)CL2.BUSSTATE.PASSIVE (with xDiagnosisInfoAvailable``=``TRUE) |
|
Specified CAN interface not found,
CL2.BUSSTATE.BUSOFF |
|
CAN driver is not ready (e.g. in case of gateway devices) |
|
|
- InOut:
Scope
Name
Type
Comment
Return
GetBusStateDED.BUS_STATEcurrent bus state.
Output
xDiagnosisInfoAvailableBOOLTRUE, if red exclamation mark in device treeeErrorDED.ERRORDED.ERROR.NO_ERRORif bus state was retrieved wihout error.