Innovate Motorsports OT-2 SDK User Manual

Page 25

Advertising
background image

25

Command ‘k’ – Get OBD-II Diagnostic Trouble Codes (DTCs)

Sent:

1 byte
{

U8 Cmd;

// ‘k’

}


Responds:

33 bytes
{

U8 Count;

// Number of DTCs returned, or

// 0xFF for none

U16 DTCs[16];

// DTCs

}


Notes:

This list should be open ended, but is fixed at 16 max for
legacy reasons (compatibility with the original OT-1). The
DTCs are in their original J1979 format.

Command ‘K’ – Clear All OBD-II Diagnostic Trouble Codes (DTCs)

Sent:

1 byte
{

U8 Cmd;

// ‘K’

}


Responds:

1 byte
{

U8 Result;

// 1=success, 0=failure

}


Notes:

It should be noted that ‘success’ only means that the
request has been submitted to the ECU. Rather or not the
codes were, in fact, all cleared is something you have to
ask the ECU (see ‘k’ above).

Advertising