Datasheet

Page 104 of 161
nRF8001 Product Specification
Revision 1.2
24.8 WriteDynamicData (0x08)
WriteDynamicData restores dynamic data to nRF8001 volatile memory.
24.8.1 Functional description
This command writes previously saved dynamic data back to the nRF8001 volatile memory. The dynamic
data is written in a consecutive series of
WriteDynamicData commands. The write cycle must be
repeated until all dynamic data has been written to the nRF8001 volatile memory.
Once the dynamic data has been reinstated, the device status is restored to the same status valid at the
time of performing the
ReadDynamicData commands. For the device to be functional after restoring
dynamic data, device setup
15
must have been performed before restoring unless static data is stored in
non-volatile memory
16
.
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.8.2 Message format
Table 44.ACI message structure for WriteDynamicData
24.8.3 Accepted values
None
24.8.4 Returned events
This command returns a CommandResponseEvent.
Data returned in the
CommandResponseEvent is:
Command code:
WriteDynamicData
•Status:
Transaction continue
Transaction complete
(Error; see section 28.1 on page 158
for details)
Response data: None
15. Refer to section 22.3 on page 81
16. Refer to nRFGo Studio; Setup-lock enabled
Message field/parameter Value size
(bytes)
Data value Description
Header
Length 1 2..30 Packet length
Command 1 0x08
WriteDynamicData
Content
SequenceNumber 1 Data packet sequence number. Data
must be written in the same sequence as
they were read using the
ReadDynamicData command
SetupData 1..27 1..27 bytes of dynamic data extracted
using the
ReadDynamicData command