Datasheet

Page 131 of 161
nRF8001 Product Specification
Revision 1.2
24.26 CloseRemotePipe (0x1F)
CloseRemotePipe closes a remote receive pipe (with or without acknowledgement) from a peer device.
24.26.1 Functional description
This command is used to close service pipes which have been opened by the OpenRemotePipe
command.
This command can be used only after the OpenRemotePipe command has been successfully completed.
Once the pipe has been closed, it will be listed in the PipeClosed bitmap.
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.26.2 Message format
Table 72. ACI message structure for CloseRemotePipe
24.26.3 Accepted values
Table 73. Accepted values for parameters, CloseRemotePipe
24.26.4 Returned events
This command returns a CommandResponseEvent. It is then followed by a PipeStatusEvent
reporting the result of the procedure and an updated pipe bitmap identifying the service pipes available for
data transfer.
In case of a failed procedure execution, a
PipeErrorEvent is returned instead of the
PipeStatusEvent.
Data returned in the
CommandResponseEvent is:
Command code:
CloseRemotePipe
Status: Success / Status code
Response data:
Message field/parameter
Value size
(bytes)
Data value Description
Header
Length 1 2 Packet length
Command 1 0x1F
CloseRemotePipe
Content
ServicePipeNumber 1 ID of the service pipe to close.
Parameter Data value Description
ServicePipeNumber
1..62 Must be one of the service pipes listed in the OpenPipes
bitmap returned in the
PipeStatusEvent