# Diag Reset Service

- API reference

The Reset(0x11) service APIs are part of the diag service. This service requests that the application perform a server reset based on the content of the resetType parameter in the ECUReset request message.

## IPC interfaces binding

The functions of this API are provided by the **tafDiagSvc** platform service.

The following example illustrates how to bind to the diag reset service.

bindings:
    {
         clientExe.clientComponent.taf_diagReset -> tafDiagSvc.taf_diagReset
    }
    Copy to clipboard

## Server-service APIs

A diag reset service reference can be got using taf\_diagReset\_GetService() with the resetType passed as a parameter. If resetType is equal to 0xFF then application shall do all type of reset requested by client. Use the returned reference for subsequent operations.

The following example illustrates how to set up a diag reset server-service-instance.

uint8_t resetType = 0x01;             // Reset type.
    taf_diagReset_ServiceRef_t svcRef;    // Service reference
    
    // Get the service reference.
    svcRef = taf_diagReset_GetService(resetType);
    LE_ASSERT(svcRef != NULL);
    Copy to clipboard

## Set/get VLAN ID

After getting a service reference, an application can set the VLAN ID to the service to filter ECU reset requests using taf\_diagReset\_SetVlanId(). It shall be called before registering the handler for the ECUReset(0x11) request message. An application can get the VLAN ID of the request message using taf\_diagReset\_GetVlanIdFromMsg().

- taf\_diagReset\_SetVlanId() — Sets the VLAN ID.
- taf\_diagReset\_GetVlanIdFromMsg() — Gets the VLAN ID of the request message.

Last Published: May 11, 2026

Previous Topic
 
Diag IO control Service Next Topic

Diag Routine Control Service