nRF51 SDK - S130 SoftDevice
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Serialization Codecs

Packet Encoding Format

frame_general.png
Figure 1: Frame format.

For an architectural overview of Serialized Bluetooth Application, please see the Architecture module.

Commands and responses

command_and_response_diagram.png
Figure 2: Command and Response packet course.


Packet Type Description
0x00 Command The packet is sent from the application chip to the BLE Connectivity Chip, where it will be decoded and the corresponding function in the SoftDevice is executed.
0x01 Command Response After a function in the SoftDevice is received, the response is encoded in the BLE Connectivity Chip and a response packet is sent to the application chip.
0x03 DTM Command The packet is sent from the application chip to the BLE Connectivity Chip, where it will be decoded and the chip will enter in the DTM mode.
0x04 DTM Command Response Before BLE Connectivity Chip enter in the DTM mode it sends response packet to the application chip.

Note: If the length field is invalid for the specific command, the call will return error code NRF_ERROR_INVALID_LENGTH from the codec in the Application Chip.

Events

event_send_diagram.png
Figure 3: Event packet course.


Packet Type Description
0x02 Event If an event is triggered in the SoftDevice, an event packet is is sent from the BLE Connectivity Chip to the application chip.


BLE S130 Events

BLE S130 GAP Events

BLE S130 GATTC Events

BLE S130 GATTS Events

BLE S130 L2CAP Events

BLE S130 Functions

BLE S130 GAP Functions

BLE S130 GATTC Functions

BLE S130 GATTS Functions

BLE S130 L2CAP Functions

BLE DTM