Innovate-motorsports OT-2 SDK User Manual Page 55

  • Download
  • Add to my manuals
  • Print
  • Page
    / 76
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 54
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.
Page view 54
1 2 ... 50 51 52 53 54 55 56 57 58 59 60 ... 75 76

Comments to this Manuals

No comments