Datasheet
Page 120 of 161
nRF8001 Product Specification
Revision 1.2
24.19 OpenRemotePipe (0x14)
OpenRemotePipe opens a remote receive pipe from a peer device for data transfer.
24.19.1 Functional description
This command is used to open service pipes.
The Receive (Remote) pipe and the Receive with acknowledgment (Remote) pipe types are closed by
default. Data cannot be received from the peer device on these service pipes unless the pipes are opened
using the
OpenRemotePipe command.
This command can be used only after the service discovery procedure has successfully completed and
resulted in a
ConnectedEvent and PipeStatusEvent(s). The PipeStatusEvent will return a
bitmap identifying the service pipes that needs opening before data transfer can take place. Only service
pipes identified in the PipesClosed can be opened using this command.
See the operating mode during which this command can be used in Table 31. 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.
24.19.2 Message format
Table 60. ACI message structure for OpenRemotePipe
24.19.3 Accepted values
Table 61. Accepted values for parameters, OpenRemotePipe
Message field/parameter
Value size
(bytes)
Data value Description
Header
Length 1 2 Packet length
Command 1 0x14
OpenRemotePipe
Content
ServicePipeNumber 1 ID of the service pipe to open.
Parameter Data value Description
ServicePipeNumber
1..62 Must be one of the service pipes listed in the ClosedPipes
bitmap returned in the
PipeStatusEvent