Enum auto_uds::UdsError

source ·
pub enum UdsError {
Show 43 variants GeneralReject, ServiceNotSupported, SubFunctionNotSupported, IncorrectMessageLengthOrInvalidFormat, ResponseTooLong, BusyRepeatRequest, ConditionsNotCorrect, RequestSequenceError, NoResponseFromSubnetComponent, FailurePreventsExecutionOfRequestedAction, RequestOutOfRange, SecurityAccessDenied, InvalidKey, ExceedNumberOfAttempts, RequiredTimeDelayNotExpired, UploadDownloadNotAccepted, TransferDataSuspended, GeneralProgrammingFailure, WrongBlockSequenceCounter, RequestCorrectlyReceivedResponsePending, SubFunctionNotSupportedInActiveSession, ServiceNotSupportedInActiveSession, RpmTooHigh, RpmTooLow, EngineIsRunning, EngineIsNotRunning, EngineRunTimeTooLow, TemperatureTooHigh, TemperatureTooLow, VehicleSpeedTooHigh, VehicleSpeedTooLow, ThrottleTooHigh, ThrottleTooLow, TransmissionRangeNotInNeutral, TransmissionRangeNotInGear, BrakeSwitchNotClosed, ShifterLeverNotInPark, TorqueConverterClutchLocked, VoltageTooHigh, VoltageTooLow, ReservedForSpecificConditionsNotCorrect(u8), ReservedByExtendedDataLinkSecurityDocumentation(u8), IsoSAEReserved(u8),
}
Expand description

UDS Error definitions

Variants§

§

GeneralReject

ECU rejected the request (No specific error)

§

ServiceNotSupported

Service is not supported by the ECU

§

SubFunctionNotSupported

Sub function is not supported by the ECU

§

IncorrectMessageLengthOrInvalidFormat

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

§

ResponseTooLong

The response message is too long for the transport protocol

§

BusyRepeatRequest

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

§

ConditionsNotCorrect

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

§

RequestSequenceError

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

§

NoResponseFromSubnetComponent

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

§

FailurePreventsExecutionOfRequestedAction

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

The request message contains data outside of a valid range

§

SecurityAccessDenied

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

§

InvalidKey

The key sent from [UdsDiagnosticServer::send_key] was invalid

§

ExceedNumberOfAttempts

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

§

RequiredTimeDelayNotExpired

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

§

UploadDownloadNotAccepted

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

§

TransferDataSuspended

The ECU has halted data transfer due to a fault condition

§

GeneralProgrammingFailure

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

§

WrongBlockSequenceCounter

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

§

RequestCorrectlyReceivedResponsePending

The ECU has accepted the request, but cannot reply right now. If this error occurs, the [UdsDiagnosticServer] 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

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

§

ServiceNotSupportedInActiveSession

The service is not supported in the current diagnostic session mode

§

RpmTooHigh

Engine RPM is too high

§

RpmTooLow

Engine RPM is too low

§

EngineIsRunning

Engine is running

§

EngineIsNotRunning

Engine is not running

§

EngineRunTimeTooLow

Engine has not been running for long enough

§

TemperatureTooHigh

Engine temperature (coolant) is too high

§

TemperatureTooLow

Engine temperature (coolant) is too low

§

VehicleSpeedTooHigh

Vehicle speed is too high

§

VehicleSpeedTooLow

Vehicle speed is too low

§

ThrottleTooHigh

Throttle or pedal value is too high

§

ThrottleTooLow

Throttle or pedal value is too low

§

TransmissionRangeNotInNeutral

Transmission is not in neutral

§

TransmissionRangeNotInGear

Transmission is not in gear

§

BrakeSwitchNotClosed

Brake is not applied

§

ShifterLeverNotInPark

Shifter lever is not in park

§

TorqueConverterClutchLocked

Automatic/CVT transmission torque convert is locked

§

VoltageTooHigh

Voltage is too high

§

VoltageTooLow

Voltage is too low

§

ReservedForSpecificConditionsNotCorrect(u8)

(0x94-0xFE) This range is reserved for future definition.

§

ReservedByExtendedDataLinkSecurityDocumentation(u8)

(0x38-0x4F) This range of values is reserved for ISO-15765 data link security

§

IsoSAEReserved(u8)

Other reserved error code

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

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

impl From<u8> for UdsError

source§

fn from(v: u8) -> Self

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) -> Selfwhere Self: Sized,

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

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

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

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

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

impl PartialEq<UdsError> 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<UdsError> 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 Copy for UdsError

source§

impl Eq for UdsError

source§

impl StructuralEq for UdsError

source§

impl StructuralPartialEq for UdsError

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.