beautypg.com

Command ‘r’ – set the protocol rate, Command ‘r’ – get the protocol rate – Innovate Motorsports OT-2 SDK User Manual

Page 50

background image

50

ISO

The general flow with ISO Expert Mode (‘e’<3>), is:

1. Select a protocol (ISO 9141 or KWP 2000)
2. Setup filters for the messages you are interested in
3. Output some bytes and (optionally) wait for a designated number of response

bytes


The export mode commands to accomplish these tasks are:

Command ‘R’ – Set the Protocol Rate

Sent:

2 bytes
{

U8 Cmd;

// ‘R’

U8 Rate;

// 1=ISO 9141
// 2=KWP 2000

}


Responds:

1 byte
{

U8 Result;

// Should match ‘Rate’ requested

}


Notes:

Default is ISO 9141.

Command ‘r’ – Get the Protocol Rate

Sent:

1 byte
{

U8 Cmd;

// ‘r’

}


Responds:

1 byte
{

U8 Result;

// Current rate

// 1=ISO 9141
// 2=KWP 2000

}


Notes:

The default rate when you enter this Expert Mode is ISO
9141.