Command ‘r’ – get the protocol rate, Command ‘f’ – add a pass filter – Innovate Motorsports OT-2 SDK User Manual

Page 40

Advertising
background image

40

Command ‘r’ – Get the Protocol Rate

Sent:

1 byte
{

U8 Cmd;

// ‘r’

}


Responds:

1 byte
{

U8 Result;

// Current rate
// 1 = 250 Kbit
// 2 = 500 Kbit

}


Notes:

The default rate when you enter this Expert Mode is 250K
bit. The two rates provided are the two that are covered in
the ISO specification. However, if non standard rates would
be useful, let us know.

Command ‘F’ – Add a Pass Filter

Sent:

9 bytes
{

U8 Cmd;

// ‘F’

U32 Identifier;

// Identifier to pass on

U32 Mask;

// AND mask, 0xFFFFFFFF=exact match

// 0x00000000=all pass

}


Responds:

1 byte
{

U8 Result;

// Number of filters in use

}


Notes:

Reminder, the U32 values above are in little endian!

These filters are just that, filters. Messages that match
them are passed on, as received, and applied to the
‘replies’ count in O and I commands (see below). For
automatic flow control, see the ‘E’ command below. It
should be noted that if a packet passes one of these
filters, it is not tested against the handshake filters.
So, typically, you would use one type of filter or the
other, not both for the same expected message.

Advertising