Enum ecu_diagnostics::kwp2000::KwpSessionType
source · #[repr(u8)]pub enum KwpSessionType {
Normal = 129,
Reprogramming = 133,
Standby = 137,
Passive = 144,
ExtendedDiagnostics = 146,
}
Expand description
KWP2000 diagnostic session type
Session support matrix
KwpSessionType | Support by ECUs |
---|---|
KwpSessionType::Normal | Mandatory |
KwpSessionType::Reprogramming | Optional (Only ECUs which implement the ECU-Flash reprogramming specification) |
KwpSessionType::Standby | Optional |
KwpSessionType::Passive | Optional (Only intended for ECU development) |
KwpSessionType::ExtendedDiagnostics | Mandatory |
Variants§
Normal = 129
Normal session. The ECU will typically boot in this state. In this mode, only non-intrusive functions are supported.
Reprogramming = 133
Reprogramming session. Used for flashing an ECU. Only functions for reading/writing to memory are allowed in this mode
Standby = 137
In stand-by mode, the ECU will be in a low-power state, acting as a slave to other ECUs and only able to perform actuation tests at the request of a tester. If a request is made to the ECU which can disrupt its low power state, the ECU will reject the request.
Passive = 144
In this mode, the ECU will remain active, but will disable all normal CAN/LIN communication with the vehicle, effectively putting the ECU to sleep. IMPORTANT. If the ECU is power cycled, it will reboot in this mode.
ExtendedDiagnostics = 146
Extended diagnostics mode. Every service is available here
Trait Implementations§
source§impl Clone for KwpSessionType
impl Clone for KwpSessionType
source§fn clone(&self) -> KwpSessionType
fn clone(&self) -> KwpSessionType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for KwpSessionType
impl Debug for KwpSessionType
source§impl From<KwpSessionType> for ByteWrapper<KwpSessionType>
impl From<KwpSessionType> for ByteWrapper<KwpSessionType>
source§fn from(value: KwpSessionType) -> ByteWrapper<KwpSessionType>
fn from(value: KwpSessionType) -> ByteWrapper<KwpSessionType>
source§impl Ord for KwpSessionType
impl Ord for KwpSessionType
source§fn cmp(&self, other: &KwpSessionType) -> Ordering
fn cmp(&self, other: &KwpSessionType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for KwpSessionType
impl PartialEq for KwpSessionType
source§fn eq(&self, other: &KwpSessionType) -> bool
fn eq(&self, other: &KwpSessionType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for KwpSessionType
impl PartialOrd for KwpSessionType
source§fn partial_cmp(&self, other: &KwpSessionType) -> Option<Ordering>
fn partial_cmp(&self, other: &KwpSessionType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more