Datasheet
Existing Commands
At present, there are only four SDEP commands implemented in the Bluefruit SPIFRIEND32
firmware:
SDEP_CMDTYPE_INITIALIZE = 0xBEEF
SDEP_CMDTYPE_AT_WRAPPER = 0x0A00
SDEP_CMDTYPE_BLE_UARTTX = 0x0A01
SDEP_CMDTYPE_BLE_UARTRX = 0x0A02
SDEP_CMDTYPE_INITIALIZE can be used to reset the SDEP system when a HW RST line
isn't available.
The two SDEP_CMDTYPE_UART* commands send data over the BLE UART service.
SDEP_CMDTYPE_AT_WRAPPER is the command you will use most of the time, which is a
wrapper that sends AT commands over the binary SDEP transport. This isn't terribly efficient,
and a binary mechanism would have taken less bytes per command, but it allows the reuse
of all of the earlier AT parser commands without having to implement one wrapper for every
command which would significantly increase the overall code size.
SDEP AT Wrapper Usage
To use the SDEP AT Wrapp you simply send the correct header, along with the AT command
you which to send to the parser. For example:
Message Type: 0x10 (Command)
Command ID: 0x0A00
Command Payload Length: 3 bytes
Command Payload: 'a' + 't' + 'i'
ID
0x0000
0x0001
0x0003
Error
Reserved
Invalid CMD ID
Invalid Payload
Description
Reserved for future use
CMD ID wasn't found in the lookup table
The message payload was invalid
10-00-0A-03-‘a’-‘t’-‘I’
© Adafruit Industries https://learn.adafruit.com/adafruit-feather-m0-bluefruit-le Page 205 of 238










