Datasheet
Page 138 of 161
nRF8001 Product Specification
Revision 1.2
25.5 SendDataNack (0x18)
SendDataNack negatively acknowledges (nacks) reception of data from a peer device.
25.5.1 Functional Description
SendDataNack can be used after receiving a DataReceivedEvent. When data is received on a pipe that
requires an acknowledgement, the application controller may nack the data. When nRF8001 receives the
SendDataNack command it will send an attribute protocol error response to the peer device.
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. The command will use Credits based on Table 28, “
ACI commands
and events affecting command buffer memory credits,” on page 77.
25.5.2 Message Format
Table 82. ACI message for structure for SendDataNack
25.5.3 Accepted values
Table 83. Accepted values for parameters, SendDataNack
25.5.4 Returned events
This command returns a DataCreditEvent.
25.5.5 Bluetooth low energy procedures used
• Bluetooth Core specification v4.0, Vol 3, Part F, Sect. 3.4.1
Message field/
parameter
Value size
(bytes)
Data value Description
Header
Length
13
Command
10x18
SendDataNack
Content
PipeNumber
1 On which pipe the data is negatively
acknowledged.
ErrorCode
1 Attribute protocol error code to be sent to the
peer device.
Parameter Data value Description
PipeNumber
1..62 Valid pipe number in the range 1..62
ErrorCode 0x80..0xFF Error Code