Command ‘e’ – clear all handshake filters – Innovate Motorsports OT-2 SDK User Manual
Page 42
42
Command ‘e’ – Clear all Handshake Filters
Sent:
1 byte
{
U8 Cmd;
// ‘e’
}
Responds:
1 byte
{
U8 Result;
// Should be 0
}
Notes:
Clear all handshake filters. New filters are added with ‘E’
(above).
Command ‘O’ – Output Data and (optionally) look for input
Sent:
Variable
{
U8 Cmd;
// ‘O’
U8 Timeout;
// Timeout (in mS) for responses
U8 Replies;
// Expected number of replies
// Can exceed 8
U8 ExtFlag;
// 0=std ID, 1=ext. ID
U32 ID;
// Can Message ID
U8 Len;
// Data length 1-8 (sets DLC)
U8 Data[Len];
// Data Bytes to Send
}
Responds:
Variable (1 byte minimum)
{
// 0 to ‘Replies’ of
{
U8 ExtFlag; // 0=std ID, 1=ext. ID
U32 ID;
// Can Message ID
U8 Len;
// Data length (from rcv’ed DLC)
U8 Data[Len];
// Received Data
}
U8 End;
// Always 0xFF
}
Notes:
Replies is CAN messages.
If replies is set to 0, the message will be sent, but the
0xFF will immediately be returned, regardless of ‘Timeout’.
Timeout is for all messages, not per message. If replies is
set, the 0xFF will be returned after either a) the desired
number of replies is received or b) this time is reached.
Timeout cannot be set to 0, doing do will default to a
timeout of 50 mS.