Datasheet
Page 137 of 161
nRF8001 Product Specification
Revision 1.2
25.4 RequestData (0x17)
RequestData requests data from a peer device through a service receive 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. The command will use Credits based on Table 28, “
ACI commands
and events affecting command buffer memory credits,” on page 77.
25.4.1 Message format
Table 80. ACI message structure for RequestData (0xA4)
25.4.2 Accepted values
Table 81. Accepted values for parameters, RequestData
25.4.3 Returned events
This command returns DataReceivedEvent upon reception of the requested data. Alternatively a
PipeErrorEvent is returned in case of transmission failure.
25.4.4 Bluetooth low energy procedures used
The following GATT procedures are used to receive data from a remote device
32
:
• Read Characteristic Value
Message field/parameter
Value size
(bytes)
Data value Description
Header
Length 1 2 Packet length
Command 1 0x17
RequestData
Content
ServicePipeNumber 1 Service Pipe Number of the
service receive pipe to request
data from
Parameter Data value Description
ServicePipeNumber
1..62 Must be a pipe listed in the OpenPipes bitmap returned in
the
PipeStatusEvent
32. Bluetooth Core specification v4.0, Vol. 3, Part G, Chapter 4.2