#[repr(u8)]
pub enum UdsError {
Show 40 variants GeneralReject = 16, ServiceNotSupported = 17, SubFunctionNotSupported = 18, IncorrectMessageLengthOrInvalidFormat = 19, ResponseTooLong = 20, BusyRepeatRequest = 33, ConditionsNotCorrect = 34, RequestSequenceError = 36, NoResponseFromSubnetComponent = 37, FailurePreventsExecutionOfRequestedAction = 38, RequestOutOfRange = 49, SecurityAccessDenied = 51, InvalidKey = 53, ExceedNumberOfAttempts = 54, RequiredTimeDelayNotExpired = 55, UploadDownloadNotAccepted = 112, TransferDataSuspended = 113, GeneralProgrammingFailure = 114, WrongBlockSequenceCounter = 115, RequestCorrectlyReceivedResponsePending = 120, SubFunctionNotSupportedInActiveSession = 126, ServiceNotSupportedInActiveSession = 127, RpmTooHigh = 129, RpmTooLow = 130, EngineIsRunning = 131, EngineIsNotRunning = 132, EngineRunTimeTooLow = 133, TemperatureTooHigh = 134, TemperatureTooLow = 135, VehicleSpeedTooHigh = 136, VehicleSpeedTooLow = 137, ThrottleTooHigh = 138, ThrottleTooLow = 139, TransmissionRangeNotInNeutral = 140, TransmissionRangeNotInGear = 141, BrakeSwitchNotClosed = 143, ShifterLeverNotInPark = 144, TorqueConverterClutchLocked = 145, VoltageTooHigh = 146, VoltageTooLow = 147,
}
Expand description

UDS Error definitions

Variants§

§

GeneralReject = 16

ECU rejected the request (No specific error)

§

ServiceNotSupported = 17

Service is not supported by the ECU

§

SubFunctionNotSupported = 18

Sub function is not supported by the ECU

§

IncorrectMessageLengthOrInvalidFormat = 19

Request message was an invalid length, or the format of the request was incorrect

§

ResponseTooLong = 20

The response message is too long for the transport protocol

§

BusyRepeatRequest = 33

The ECU is too busy to perform this request. Therefore, the request Should be sent again if this error occurs

§

ConditionsNotCorrect = 34

The requested action could not be preformed due to the prerequisite conditions not being correct

§

RequestSequenceError = 36

The ECU cannot perform the request as the request has been sent in the incorrect order. For example, if [SecurityOperation::SendKey] is used before [SecurityOperation::RequestSeed], then the ECU will respond with this error.

§

NoResponseFromSubnetComponent = 37

The ECU cannot perform the request as it has timed out trying to communicate with another component within the vehicle.

§

FailurePreventsExecutionOfRequestedAction = 38

The ECU cannot perform the requested action as there is currently a DTC or failure of a component that is preventing the execution of the request.

§

RequestOutOfRange = 49

The request message contains data outside of a valid range

§

SecurityAccessDenied = 51

The request could not be completed due to security access being denied.

§

InvalidKey = 53

The key sent from [SecurityOperation::SendKey] was invalid

§

ExceedNumberOfAttempts = 54

The client has tried to obtain security access to the ECU too many times with incorrect keys

§

RequiredTimeDelayNotExpired = 55

The client has tried to request seed_key’s too quickly, before the ECU timeout’s period has expired

§

UploadDownloadNotAccepted = 112

The ECU cannot accept the requested upload/download request due to a fault condition

§

TransferDataSuspended = 113

The ECU has halted data transfer due to a fault condition

§

GeneralProgrammingFailure = 114

The ECU has encountered an error during reprogramming (erasing / flashing)

§

WrongBlockSequenceCounter = 115

The ECU has detected the reprogramming error as the blockSequenceCounter is incorrect.

§

RequestCorrectlyReceivedResponsePending = 120

The ECU has accepted the request, but cannot reply right now. If this error occurs, the [SecurityOperation] will automatically stop sending tester present messages and will wait for the ECUs response. If after 2000ms, the ECU did not respond, then this error will get returned back to the function call.

§

SubFunctionNotSupportedInActiveSession = 126

The sub function is not supported in the current diagnostic session mode

§

ServiceNotSupportedInActiveSession = 127

The service is not supported in the current diagnostic session mode

§

RpmTooHigh = 129

Engine RPM is too high

§

RpmTooLow = 130

Engine RPM is too low

§

EngineIsRunning = 131

Engine is running

§

EngineIsNotRunning = 132

Engine is not running

§

EngineRunTimeTooLow = 133

Engine has not been running for long enough

§

TemperatureTooHigh = 134

Engine temperature (coolant) is too high

§

TemperatureTooLow = 135

Engine temperature (coolant) is too low

§

VehicleSpeedTooHigh = 136

Vehicle speed is too high

§

VehicleSpeedTooLow = 137

Vehicle speed is too low

§

ThrottleTooHigh = 138

Throttle or pedal value is too high

§

ThrottleTooLow = 139

Throttle or pedal value is too low

§

TransmissionRangeNotInNeutral = 140

Transmission is not in neutral

§

TransmissionRangeNotInGear = 141

Transmission is not in gear

§

BrakeSwitchNotClosed = 143

Brake is not applied

§

ShifterLeverNotInPark = 144

Shifter lever is not in park

§

TorqueConverterClutchLocked = 145

Automatic/CVT transmission torque convert is locked

§

VoltageTooHigh = 146

Voltage is too high

§

VoltageTooLow = 147

Voltage is too low

Trait Implementations§

source§

impl Clone for UdsError

source§

fn clone(&self) -> UdsError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for UdsError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<UdsError> for ByteWrapper<UdsError>

source§

fn from(value: UdsError) -> ByteWrapper<UdsError>

Converts to this type from the input type.
source§

impl Ord for UdsError

source§

fn cmp(&self, other: &UdsError) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for UdsError

source§

fn eq(&self, other: &UdsError) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for UdsError

source§

fn partial_cmp(&self, other: &UdsError) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl TryFrom<u8> for UdsError

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_from(value: u8) -> Result<UdsError, <UdsError as TryFrom<u8>>::Error>

Performs the conversion.
source§

impl Copy for UdsError

source§

impl Eq for UdsError

source§

impl StructuralPartialEq for UdsError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.