National Instruments 372139B-01 Automobile User Manual


 
Chapter 6 Automotive Diagnostic Command Set API for C
© National Instruments Corporation 6-41 Automotive Diagnostic Command Set User Manual
ndECUReset
Purpose
Executes the ECUReset service. Resets the ECU.
Format
long ndECUReset(
TD1 *diagRef,
unsigned char mode,
LVBoolean *success);
Input
diagRef
Specifies the diagnostic session handle, obtained from ndOpenDiagnostic and passed
to subsequent diagnostic functions. Normally, it is not necessary to manually manipulate
the elements of this struct.
mode
Indicates the reset mode:
Hex Description
01 PowerOn
This value identifies the PowerOn ResetMode, a simulated PowerOn reset that
most ECUs perform after the ignition OFF/ON cycle. When the ECU performs
the reset, the client (tester) re-establishes communication.
02 PowerOnWhileMaintainingCommunication
This value identifies the PowerOn ResetMode, a simulated PowerOn reset that
most ECUs perform after the ignition OFF/ON cycle. When the ECU performs
the reset, the server (ECU) maintains communication with the client (tester).
03–7F Reserved
80–FF ManufacturerSpecific
This range of values is reserved for vehicle manufacturer-specific use.