Skip to content

UdsUploadResponse Struct

Positive-response parameters returned by RequestUpload (0x35, ISO 14229-1 §14.1.2). Mirrors UdsDownloadResponse; the max block length constrains the size of the TransferData responses the ECU will send back to the tester.

public readonly struct UdsUploadResponse

Constructors

UdsUploadResponse(byte, ulong) Constructor

Creates the response wrapper.

public UdsUploadResponse(byte lengthFormatIdentifier, ulong maxNumberOfBlockLength);

Parameters

lengthFormatIdentifier Byte

maxNumberOfBlockLength UInt64

Properties

UdsUploadResponse.LengthFormatIdentifier Property

Raw lengthFormatIdentifier byte echoed by the ECU (byte 1 of the positive response). The high nibble is the width, in bytes, of the following maxNumberOfBlockLength field; the low nibble is reserved.

public byte LengthFormatIdentifier { get; }

Property Value

Byte

UdsUploadResponse.MaxNumberOfBlockLength Property

Maximum number of bytes (including SID) the ECU is willing to accept in a single TransferData (0x36) request. Callers MUST NOT exceed this value; the payload chunk in each TransferData is therefore at most MaxNumberOfBlockLength - 2 bytes (SID + blockSequenceCounter overhead).

public ulong MaxNumberOfBlockLength { get; }

Property Value

UInt64