UDS Agent

Purpose

UDS Agent is used to perform Unified Diagnostic Services (UDS) communication with an ECU, enabling diagnostic operations such as sending diagnostic requests, reading ECU responses, and managing diagnostic trouble codes during test execution.

UDS Agent Blocks

1. Diagnostic Session Control

Switches the ECU into a specific diagnostic session (Default, Extended, Programming) to allow restricted diagnostic and configuration operations.

Properties

Inputs

Input Name

Description

Session Type

Diagnostic session type (Default / Extended / Programming)

Diagnostic Session Control - input parameter.

Outputs

Output Code

Description

0

Session changed

1

Session change failed

2

Invalid session type

Diagnostic Session Control - output parameter.

Output Possibilities Configuration

2. Communication Control

Enables or disables ECU communication behavior to control message transmission during diagnostic or testing activities.

Properties

Inputs

Input Name

Description

Control Type

Enable or disable ECU communication

Communication Type

Normal / Silent / Restricted

Node ID

Target ECU node identifier

Communication Control - input parameter.

Outputs

Output Code

Description

0

Communication control applied

1

Communication control failed

2

Invalid communication parameters

Communication Control - output parameter.

Output Possibilities Configuration

3. Write Data by Identifier

Writes application or calibration data to the ECU using a specified Data Identifier (DID).

Properties

Inputs

Input Name

Description

Data DID

Data Identifier to write

Data Record

Data to be written

Write Data by Identifier - input parameter.

Outputs

Output Code

Description

0

Data written successfully

1

Write operation failed

2

Invalid DID or data

Write Data by Identifier - output parameter.

Output Possibilities Configuration

4. ECU Reset

Resets the ECU using a defined reset method to reinitialize system behavior or apply configuration changes.

Properties

Inputs

Input Name

Description

Reset Type

Hard / Soft / Key Off-On reset

Power Down Time

Delay before ECU reset (MS)

ECU Reset - input parameter.

Outputs

Output Code

Description

0

ECU reset successful

1

ECU reset failed

2

Invalid reset request

ECU Reset - output parameter.

Output Possibilities Configuration

5. Clear Diagnostic Information

Clears stored Diagnostic Trouble Codes (DTCs) and related diagnostic information from the ECU memory.

Properties

Inputs

Input Name

Description

Group DTC Value

Group of DTCs to be cleared

Clear Diagnostic Information - input parameter.

Outputs

Output Code

Description

0

DTCs cleared successfully

1

Failed to clear DTCs

2

Invalid DTC group

Clear Diagnostic Information - output parameter.

Output Possibilities Configuration

6. Read Data by ID

Reads ECU data values associated with a specific Data Identifier (DID).

Properties

Inputs

Input Name

Description

Data ID

Data Identifier to read

Read Data by ID - input parameter.

Outputs

Output Code

Description

0

Data read successfully

1

Read operation failed

2

Invalid Data ID

Read Data by ID - output parameter.

Output Possibilities Configuration

7. Request Download

Requests permission from the ECU to download data, typically used during firmware or calibration updates.

Properties

Inputs

Input Name

Description

Data Format ID

Specifies the format and compression type of the data

Memory Address

Specifies the starting memory address in the ECU

Address Length

Specifies the size (in bytes) of the memory address

File Path

Specifies the file path used for the download or upload operation

Request Download - input parameter.

Outputs

Output Code

Description

0

Download request accepted

1

Download request failed

2

Invalid download parameters

Request Download - output parameter.

Output Possibilities Configuration

8. Read Memory by Address

Reads data directly from a specified ECU memory address and length.

Properties

Inputs

Input Name

Description

Address Length

Specifies the size (in bytes) of the memory address

Start Address

Specifies the starting ECU memory address for the operation

Memory Size

Specifies the total size of the memory area

Read Size

Specifies the amount of data to be read from memory

Read Memory by Address - input parameter.

Outputs

Output Code

Description

0

Memory read successful

1

Memory read failed

2

Invalid memory address

Read Memory by Address - output parameter.

Output Possibilities Configuration

9. Read Scaling Data by ID

Reads scaling and conversion information for a given Data Identifier (DID) to interpret raw ECU values correctly.

Properties

Inputs

Input Name

Description

Data ID

Scaling Data Identifier

Read Scaling Data by ID - input parameter.

Outputs

Output Code

Description

0

Scaling data read successfully

1

Failed to read scaling data

2

Invalid Data ID

Read Scaling Data by ID - output parameter.

Output Possibilities Configuration

10. Control I/O by ID

Controls ECU input/output signals such as actuators or indicators using a specific identifier.

Properties

Inputs

Input Name

Description

Control DID

Specifies the Data Identifier used for I/O control

Control Option Data

Specifies additional control information for the I/O operation

Control Enable Mask

Specifies the mask used to enable or disable I/O controls

Control I/O by ID - input parameter.

Outputs

Output Code

Description

0

I/O control successful

1

I/O control failed

2

Invalid control parameters

Control I/O by ID - output parameter.

Output Possibilities Configuration

11. Security Access

Performs security authentication to unlock protected ECU functions using seed and key exchange.

Properties

Inputs

Input Name

Description

Sub Function

Security access level

Data

Key or seed value

Security Access - input parameter.

Outputs

Output Code

Description

0

Security access granted

1

Security access denied

2

Invalid security request

Security Access - output parameter.

Output Possibilities Configuration

12. Tester Present

Keeps the diagnostic session active by periodically informing the ECU that the tester is still connected.

Properties

Inputs

Input Name

Description

Sub Function

Specifies the sub-function type of the UDS service

Tester Present Mode

Specifies how the tester present message is transmitted

Tester Present - input parameter.

Outputs

Output Code

Description

0

Tester present acknowledged

1

Tester present failed

Tester Present - output parameter.

Output Possibilities Configuration

13. Access Timing Parameter

Accesses (read/write) diagnostic timing parameters.

Properties

Inputs

Input Name

Description

Access Type

Specifies the access operation type (read or write)

Data Record

Specifies the data associated with the access operation

Access Timing Parameter - input parameter.

Outputs

Output Code

Description

0

Timing parameter accessed successfully

1

Timing parameter access failed

2

Invalid timing parameter

Access Timing Parameter - output parameter.

Output Possibilities Configuration

Properties

Inputs

Input Name

Description

Control Type

Specifies the type of control operation to be performed

Link Record

Specifies the link configuration data

Link Control - input parameter.

Outputs

Output Code

Description

0

Link control successful

1

Link control failed

2

Invalid link control request

Link Control - output parameter.

Output Possibilities Configuration

15. Control DTC Setting

Enables or disables the storage of Diagnostic Trouble Codes (DTCs) in the ECU.

Properties

Inputs

Input Name

Description

Session Type

Specifies the diagnostic session type

Data Record

Specifies the data associated with the access operation

Control DTC Setting - input parameter.

Outputs

Output Code

Description

0

DTC setting updated

1

Failed to update DTC setting

2

Invalid DTC control data

Control DTC Setting - output parameter.

Output Possibilities Configuration

16. Write Memory by Address

Writes data directly to a specified ECU memory address.

Properties

Inputs

Input Name

Description

Address Length

Specifies the size (in bytes) of the memory address

Start Address

Specifies the starting ECU memory address for the operation

Memory Size

Specifies the total size of the memory area

Write Data

Specifies the data to be written into ECU memory

Write Memory by Address - input parameter.

Outputs

Output Code

Description

0

Memory written successfully

1

Memory writes failed

2

Invalid memory parameters

Write Memory by Address - output parameter.

Output Possibilities Configuration

17. Routine Control by ID

Starts, stops, or requests results of a diagnostic routine executed by the ECU.

Properties

Inputs

Input Name

Description

Routine ID

Specifies the identifier of the routine to be executed

Control Type

Specifies the type of control operation to be performed

Record Data

Specifies the data associated with the routine control operation

Routine Control by ID - input parameter.

Outputs

Output Code

Description

0

Routine executed successfully

1

Routine execution failed

2

Invalid routine request

Routine Control by ID - output parameter.

Output Possibilities Configuration

18. Read DTC Information

Retrieves Diagnostic Trouble Code (DTC) information and status details from the ECU.

Properties

Inputs

Input Name

Description

Record Type

Specifies the type of DTC record to be read

Record Number

Specifies the record number of the DTC information

Read DTC Information - input parameter.

Outputs

Output Code

Description

0

DTC information read successfully

1

Failed to read DTC information

2

Invalid DTC request

Read DTC Information - output parameter.

Output Possibilities Configuration

19. Request Upload

Requests permission from the ECU to upload data from ECU memory to the tester.

Properties

Inputs

Input Name

Description

Data Format ID

Specifies the format and compression type of the data

Memory Address

Specifies the starting memory address in the ECU

Address Length

Specifies the size (in bytes) of the memory address

Memory Size

Specifies the total size of the memory area

Memory Length

Specifies the size (in bytes) of the memory address

File Path

Specifies the file path used for the download or upload operation

Request Upload - input parameter.

Outputs

Output Code

Description

0

Upload request accepted

1

Upload request failed

2

Invalid upload parameters

Request Upload - output parameter.

Output Possibilities Configuration

20. Read Data by Periodic ID

Configures the ECU to periodically transmit data associated with a specified Data Identifier.

Properties

Inputs

Input Name

Description

Transmission Mode

Specifies the mode of periodic data transmission

Periodic ID

Specifies the identifier of the periodic data

Read Data by Periodic ID - input parameter.

Outputs

Output Code

Description

0

Periodic data read successfully

1

Failed to read periodic data

2

Invalid periodic ID

Read Data by Periodic ID - output parameter.

Output Possibilities Configuration

21. Response on Event

Configures the ECU to send diagnostic responses automatically when a defined event occurs.

Properties

Inputs

Input Name

Description

DID

Specifies the Data Identifier associated with the operation

Threshold Value

Specifies the value that triggers the event condition

Comparator

Specifies the comparison condition used to evaluate the event

Response on Event - input parameter.

Outputs

Output Code

Description

0

Event triggered successfully

1

Event condition not met

2

Invalid event configuration

Response on Event - output parameter.

Output Possibilities Configuration

22. Dynamically Define DID

Dynamically defines a new Data Identifier (DID) by combining existing ECU data elements.

Properties

Inputs

Input Name

Description

Sub Function

Specifies the sub-function type of the UDS service

DID

Specifies the Data Identifier associated with the operation

Dynamically Define DID - input parameter.

Outputs

Output Code

Description

0

DID defined successfully

1

Failed to define DID

2

Invalid DID or subfunction

Dynamically Define DID - output parameter.

Output Possibilities Configuration