Innovate Motorsports OT-2 SDK User Manual

Page 29

Advertising
background image

29

Command ‘M’ – Set ‘My’ (temporary) Device Configuration

Sent:

37 bytes
{

U8 Cmd;

// ‘M’

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

}


Responds:

1 byte
{

U8 Result;

// Should always be 0xD

}


Notes:

This has alters the device configuration (see ‘c’ above),
just like the ‘C’ command (see above). The difference is
that it does not alter the settings permanently, but only
for the duration of the current USB or Wi-Fi connection to
the device. This lets applications do whatever they want,
but then settings return automatically to the user’s
programmed preferences when you exit/disconnect. WE
STRONGLY RECOMMEND USING THIS COMMAND INSTEAD OF ‘C’ UNLESS
ABSOLUTELY NECESSARY!!!

Command ‘m’ – Clear ‘My’ (temporary) Device Configuration

Sent:

1 byte
{

U8 Cmd;

// ‘m’

}


Responds:

1 byte
{

U8 Result;

// should always be 0xD

}


Notes:

This restores the current device settings (see ‘c’ above)
to those stored in flash memory (see ‘C’ above). This
happens automatically when a connection is terminated.

Advertising