Command ‘t’ – get basic emissions status, Command ‘c’ – get device configuration – Innovate Motorsports OT-2 SDK User Manual

Page 27

Advertising
background image

27

Command ‘t’ – Get Basic Emissions Status

Sent:

1 byte
{

U8 Cmd;

// ‘t’

}


Responds:

5 bytes
{

U8 Count;

// char count (norm. 4)
// or 0xFF for failure

U32 Status;

// This is simply the 4 bytes

// from Mode 1, PID 1


}


Notes:

This PID (mode 1 pid 1) just gives a simple overview of the
emissions tests and their current status. Of interest if
you live in California.

Command ‘c’ – Get Device Configuration

Sent:

1 byte
{

U8 Cmd;

// ‘c’

}


Responds:

36 bytes
{

U8 Channels;

// Number of channels (16 max)

U8 Protocol;

// OBD-II protocol

// 0 = automatic

// 1 = can

// 2 = pwm

// 3 = vpw

// 4 = kwp

// 5 = iso

U16 NormPid[16]; // Table of ‘normalized’ PIDs

// to scan

U16 Flags;

// Priority flags

}


Notes:

This controls how the ECU is connected to, what channels
are scanned and put in MTS data packets, and how the values
are scanned. It should be noted that these are not ECU
pids, but abstracted, or ‘normalized’ PIDs. This is to
accommodate the limits of 10 bit channels, etc. in MTS. See
the separate section on understanding this configuration
for more information.

Advertising