Skip to content

UdsFunctionalResponse Class

One ECU's answer to a functionally addressed request (see UdsFunctionalClient): where it came from, and the response bytes read as UDS.

public sealed class UdsFunctionalResponse

Inheritance Object → UdsFunctionalResponse

Constructors

UdsFunctionalResponse(uint, byte[]) Constructor

Creates a response; the client is the intended caller.

public UdsFunctionalResponse(uint sourceCanId, byte[] response);

Parameters

sourceCanId UInt32

response Byte[]

Properties

UdsFunctionalResponse.IsNegative Property

Whether this is a negative response (SID 0x7F). Also set for NRC 0x78, which says the ECU's final answer is still coming rather than refusing the request.

public bool IsNegative { get; }

Property Value

Boolean

UdsFunctionalResponse.NegativeResponseCode Property

The negative response code, or null for a positive response.

public System.Nullable<byte> NegativeResponseCode { get; }

Property Value

Nullable<Byte>

UdsFunctionalResponse.Response Property

The response bytes, starting with the response SID (or 0x7F).

public byte[] Response { get; }

Property Value

Byte[]

UdsFunctionalResponse.SourceCanId Property

The CAN identifier the ECU answered on.

public uint SourceCanId { get; }

Property Value

UInt32