Datasheet

Page 135 of 161
nRF8001 Product Specification
Revision 1.2
25.2 SendData (0x15)
SendData sends data to a peer device through a transmit service pipe.
See the operating mode during which this command can be used in Table 32. on page 92
. The command
will return a Command Response Event with status ACI_STATUS_ERROR_DEVICE_STATE_INVALID
when it is used in the incorrect mode.
25.2.1 Message format
Table 76. ACI message structure for SendData
25.2.2 Accepted values
Table 77. Accepted values for parameters, SendData
25.2.3 Returned events
This command returns the DataCreditEvent. When using a transmit pipe with acknowledgment, this
command returns a
DataAckEvent and a DataCreditEvent. A PipeErrorEvent will occur if the
transmission fails. The command will use Credits based on Table 28, “
ACI commands and events affecting
command buffer memory credits,” on page 77.
25.2.4 Bluetooth low energy procedures used
This command uses the following GATT procedures
30
:
Notifications (TX pipe, Local)
Indications (TX pipe, Local, Ack)
Read Characteristic Value / Read Using Characteristic UUID (TX pipe, Local, Ack)
Write Without Response (Tx pipe, Remote)
Write Characteristic Value (Tx pipe, Remote, Ack)
Read Characteristic Value (RX pipe, Remote, Req)
Message field/parameter
Value size
(bytes)
Data value Description
Header
Length 1 2..22 Packet length
Command 1 0x15
SendData
Content
ServicePipeNumber 1 ID of the service transmit pipe
through which data is sent
Data 1..20 Application data
Parameter Data value Description
ServicePipeNumber
1..62 Must be a pipe listed in the OpenPipes bitmap returned in the
PipeStatusEvent
Data
- The data payload size must not exceed the maximum length defined
in nRFgo Studio in the local service configuration (1..20 bytes)
30. Bluetooth Core specification v4.0, Vol. 3, Part G, Chapter 4.2