Command ‘l’ – set the vehicle led state, Command ‘b’ – get last mts packet passed, Command ‘s’ – exit expert mode – Innovate Motorsports OT-2 SDK User Manual
Page 55
55
Command ‘L’ – Set the Vehicle LED State
Sent:
2 bytes
{
U8 Cmd;
// ‘L’
U8 State;
// 0 = off
// 1 = on
}
Responds:
1 byte
{
U8 Result;
// Should match ‘State’ requested
}
Notes:
Because we have conditioned the user to expect the vehicle
light to light or blink, you might want to follow the same
model. You may also find this useful for debugging.
Command ‘b’ – Get Last MTS Packet passed
Sent:
1 bytes
{
U8 Cmd;
// ‘b’
}
Responds:
Variable (2 bytes minimum)
{
U8 Len;
// Length of data to follow
U8 Sequence;
// Sequence Counter, incremented
// each time an MTS packet is
// passed
// Optional
{
U8 Packet[Len-1]; // MTS Packet (if any)
}
}
Notes:
If there is no MTS hardware attacked, you will
get ‘0x01 0x00’ (1 byte, sequence 0). Otherwise, you will
get a changing sequence, followed by a raw MTS packet.
Command ‘s’ – Exit Expert Mode
Sent:
1 byte
{
U8 Cmd;
// ‘s’
}
Responds:
None
Notes:
This command returns you to Setup Mode.