Datasheet

Page 96 of 161
nRF8001 Product Specification
Revision 1.2
24 System commands
System commands are commands used for nRF8001 configuration, operation mode control and runtime
operations.
24.1 Test (0x01)
Test enables (or disables) the nRF8001 test mode.
24.1.1 Functional description
When in test mode, Direct Test Mode is enabled and ready to receive test commands as specified in the
Bluetooth Core Specification v4.0, Vol. 6, Part F, ‘Direct Test Mode’. The physical test interface can be
UART or ACI. Refer to section 22.5 on page 88
and section 25 on page 133 for details. The ACI physical
interface may be tested using the command
Echo (see section 24.10 on page 107). Upon entering and
exiting Test mode, nRF8001 is reset. 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.1.2 Message format
Table 35. ACI message structure for Test
24.1.3 Accepted values
Table 36. Accepted values for parameters, Test
24.1.4 Returned events
A DeviceStartedEvent is returned indicating that nRF8001 has entered or exited test mode. A
CommandResponseEvent will result in case of failing to enter or exit Test mode.
24.1.5 Bluetooth low energy procedures used
This command invokes the Bluetooth low energy direct test mode functionality for further details, see
Bluetooth Core Specification v4.0, Volume 6, Part F, ‘Direct Test Mode’.
Message field/parameter
Value size
(bytes)
Data value Description
Header
Length 1 2 Packet length
Command 1 0x01
Test
Content
TestFeature
1 Test feature to activate
Parameter Data value Description
TestFeature
0x01 Enable DTM over UART interface
0x02 Enable DTM over ACI
0xFF Exit test mode