Datasheet
Page 126 of 161
nRF8001 Product Specification
Revision 1.2
24.22 OpenAdvPipe (0x1B)
OpenAdvPipe sets the pipes that are used for advertising data.
24.22.1 Functional Description
OpenAdvPipe command configures the advertisements pipes that broadcast data. The pipes start
advertising data when enabled either through the Bond command (see section 24.15 on page 113
),
Connect command (see section 24.18 on page 117
) or, the Broadcast command (see section 24.23 on
page 128). The data that is sent in the advertisement packets is set by using the SetLocalData command,
(see section 25.1 on page 133
). Multiple pipes may be enabled simultaneously. Device configuration must
be completed before sending this command.
See Section 26.8 on page 148
for an example of a pipe 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.22.2 Message Format
Table 66. ACI message structure for OpenAdvPipe
24.22.3 Accepted values
Table 67. Accepted values for parameters, AdvServiceDataPipes
24.22.4 Returned events
This command returns a CommandResponseEvent. Data returned in the event is:
• Command code: OpenAdvPipe
• Status: Success / Error code
• Response data: None
Message field/
parameter
Value size
(bytes)
Data value Description
Header
Length 1 9 Packet Length
Command 1 0x1B
OpenAdvPipe
Content
AdvServiceDataPipes 8 Bitmap of pipes to be placed in
advertisement Service Data fields
Parameter Data value Description
AdvServiceDataPipes
0000000000000000 -
FEFFFFFFFFFFFF7F
Pipe bitmap where '1' indicates that the
corresponding Broadcast pipe data is to be
placed in AD Service Data fields. See Section
26.8.1 on page 148 for the pipe bitmap.