Datasheet

SDEP (Simple Data Exchange Protocol)
The Simple Data Exchange Protocol (SDEP) can be used to send and receive binary
messages between two connected devices using any binary serial bus (USB HID, USB Bulk,
SPI, I2C, Wireless, etc.), exchanging data using one of four distinct message types
(Command, Response, Alert and Error messages).
The protocol is designed to be flexible and extensible, with the only requirement being that
individual messages are 20 bytes or smaller, and that the first byte of every message is a
one byte (U8) identifier that indicates the message type, which defines the format for the
remainder of the payload.
Endianness
All values larger than 8-bits are encoded in little endian format. Any deviation from this rule
should be clearly documented.
Message Type Indicator
The first byte of every message is an 8-bit identifier called the Message Type Indicator. This
value indicates the type of message being sent, and allows us to determine the format for
the remainder of the message.
SDEP Data Transactions
Message Type
Command
Response
Alert
Error
ID (U8)
0x10
0x20
0x40
0x80
© Adafruit Industries https://learn.adafruit.com/adafruit-feather-m0-bluefruit-le Page 199 of 238