Datasheet

Page 111 of 161
nRF8001 Product Specification
Revision 1.2
24.14 Connect (0x0F)
Connect starts advertising and establishes a connection with a peer device
24.14.1 Functional description
nRF8001 configuration must be completed before issuing 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.14.2 Message format
Table 50. ACI message structure for Connect
24.14.3 Accepted values
Table 51. Accepted values for parameters, Connect
24.14.4 Returned events
This command returns a series of events in a specific order. The order depends on the outcome of the
connection establishment procedure.
In the case of a successful connection establishment, the event order is:
1. CommandResponseEvent
2. ConnectedEvent
3.
PipeStatusEvent(s)
19
In the case of a failed connection establishment, the event order is:
Message field/parameter
Value size
(bytes)
Data value Description
Header
Length 1 5 Packet length
Command 1 0x0F
Connect
Content
Timeout 2 Advertisment time duration in seconds.
Upon timeout, nRF8001 stops advertising
and exits to Standby mode.
AdvInterval 2 Advertisment interval setting
Parameter Data value Description
Timeout 0x0000 Infinite advertisement, no timeout
If required, the
RadioReset command will abort the continous
advertisement and return nRF8001 to Standby mode
1-16383 (0x3FFF) Valid timeout range in seconds
AdvInterval 32 - 16384
(0x0020 to 0x4000)
Advertising interval set in periods of 0.625 msec
19. Multiple PipeStatusEvents may result depending on the pipe characteristics and the service discovery activity initiated
by the peer device.