# Diag Reset Service

- [API reference](https://docs.qualcomm.com/doc/80-41102-2/topic/_doxygen_rst_file__doxygen_sources_taf_diagReset_interface_h.html#file-taf-diagreset-interface-h)

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()](https://docs.qualcomm.com/doc/80-41102-2/topic/function_a00419_1a2be335e2c49d7926fd0c0ff2d2775194.html#Documentationa00419_1a2be335e2c49d7926fd0c0ff2d2775194) 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()](https://docs.qualcomm.com/doc/80-41102-2/topic/function_a00419_1ace888e6c37e0cf164c5347499c0d23bf.html#Documentationa00419_1ace888e6c37e0cf164c5347499c0d23bf). 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()](https://docs.qualcomm.com/doc/80-41102-2/topic/function_a00419_1a70fd9aee955ef5c650bca21ed1388c50.html#Documentationa00419_1a70fd9aee955ef5c650bca21ed1388c50).

- [taf\_diagReset\_SetVlanId()](https://docs.qualcomm.com/doc/80-41102-2/topic/function_a00419_1ace888e6c37e0cf164c5347499c0d23bf.html#Documentationa00419_1ace888e6c37e0cf164c5347499c0d23bf) — Sets the VLAN ID.
- [taf\_diagReset\_GetVlanIdFromMsg()](https://docs.qualcomm.com/doc/80-41102-2/topic/function_a00419_1a70fd9aee955ef5c650bca21ed1388c50.html#Documentationa00419_1a70fd9aee955ef5c650bca21ed1388c50) — Gets the VLAN ID of the request message.

Last Published: Jun 09, 2026

[Previous Topic
Diag IO control Service](https://docs.qualcomm.com/bundle/publicresource/80-41102-2/topics/page_c_tafDiagIOCtrl.md) [Next Topic
Diag Routine Control Service](https://docs.qualcomm.com/bundle/publicresource/80-41102-2/topics/page_c_tafDiagRoutineCtrl.md)