uds.messages.service_identifiers

Service Identifiers (SID) implementation.

Module Contents

Classes

RequestSID

Request Service Identifier values for all services that are defined in ISO 14229-1:2020.

ResponseSID

Response Service Identifier values for all services that are defined in ISO 14229-1:2020.

Attributes

POSSIBLE_REQUEST_SIDS

Set with all possible values of Request SID data parameter according to SAE J1979 and ISO 14229 standards.

POSSIBLE_RESPONSE_SIDS

Set with all possible values of Response SID data parameter according to SAE J1979 and ISO 14229 standards.

uds.messages.service_identifiers.POSSIBLE_REQUEST_SIDS :uds.utilities.RawBytesSet

Set with all possible values of Request SID data parameter according to SAE J1979 and ISO 14229 standards.

uds.messages.service_identifiers.POSSIBLE_RESPONSE_SIDS :uds.utilities.RawBytesSet

Set with all possible values of Response SID data parameter according to SAE J1979 and ISO 14229 standards.

exception uds.messages.service_identifiers.UnrecognizedSIDWarning[source]

Bases: Warning

Inheritance diagram of uds.messages.service_identifiers.UnrecognizedSIDWarning

Warning about SID value that is legit but not recognized by the package.

If you want to register a SID value, you need to define members (for this SID) manually using add_member() method (on RequestSID and ResponseSID classes). You can also create feature request in the UDS project issues management system to register the SID value (for which this warning was raised).

Initialize self. See help(type(self)) for accurate signature.

class uds.messages.service_identifiers.RequestSID[source]

Bases: uds.utilities.ByteEnum, uds.utilities.ValidatedEnum, uds.utilities.ExtendableEnum

Inheritance diagram of uds.messages.service_identifiers.RequestSID

Request Service Identifier values for all services that are defined in ISO 14229-1:2020.

Note: Request SID is always the first payload byte of all request messages.

Initialize self. See help(type(self)) for accurate signature.

DiagnosticSessionControl = 16
ECUReset = 17
SecurityAccess = 39
CommunicationControl = 40
Authentication = 41
TesterPresent = 62
ControlDTCSetting = 133
ResponseOnEvent = 134
LinkControl = 135
ReadDataByIdentifier = 34
ReadMemoryByAddress = 35
ReadScalingDataByIdentifier = 36
ReadDataByPeriodicIdentifier = 42
DynamicallyDefineDataIdentifier = 44
WriteDataByIdentifier = 46
WriteMemoryByAddress = 61
ClearDiagnosticInformation = 20
ReadDTCInformation = 25
InputOutputControlByIdentifier = 47
RoutineControl = 49
RequestDownload = 52
RequestUpload = 53
TransferData = 54
RequestTransferExit = 55
RequestFileTransfer = 56
SecuredDataTransmission = 132
classmethod is_request_sid(cls, value)[source]

Check whether given value is Service Identifier (SID).

Parameters

value (uds.utilities.RawByte) – Value to check.

Returns

True if value is valid SID, else False.

Return type

bool

class uds.messages.service_identifiers.ResponseSID[source]

Bases: uds.utilities.ByteEnum, uds.utilities.ValidatedEnum, uds.utilities.ExtendableEnum

Inheritance diagram of uds.messages.service_identifiers.ResponseSID

Response Service Identifier values for all services that are defined in ISO 14229-1:2020.

Note: Response SID is always the first payload byte of all request messages.

Note: This Enum contains multiple members (for all the services as RequestSID), but most of them are dynamically (implicitly) added and invisible in the documentation.

Initialize self. See help(type(self)) for accurate signature.

NegativeResponse = 127
classmethod is_response_sid(cls, value)[source]

Check whether given value is Response Service Identifier (RSID).

Parameters

value (uds.utilities.RawByte) – Value to check.

Returns

True if value is valid RSID, else False.

Return type

bool