nRF5 SDK for Mesh v4.1.0
Macros

Macros

#define NETWORK_SEQNUM_IV_UPDATE_START_THRESHOLD   (NETWORK_SEQNUM_MAX / 2)
 The sequence number value that triggers the start of an IV update procedure. More...
 
#define NETWORK_SEQNUM_IV_UPDATE_END_THRESHOLD   (NETWORK_SEQNUM_MAX - TRANSPORT_SAR_SEQNUM_DIFF_MAX)
 The sequence number value that triggers the end of an IV update procedure. More...
 
#define NETWORK_SEQNUM_FLASH_BLOCK_SIZE   8192ul
 Number of sequence numbers between every write to flash. More...
 
#define NETWORK_SEQNUM_FLASH_BLOCK_THRESHOLD   64
 Number of sequence numbers left before allocating the next block. More...
 

Detailed Description

Macro Definition Documentation

◆ NETWORK_SEQNUM_IV_UPDATE_START_THRESHOLD

#define NETWORK_SEQNUM_IV_UPDATE_START_THRESHOLD   (NETWORK_SEQNUM_MAX / 2)

The sequence number value that triggers the start of an IV update procedure.

This value should be set so that there are enough sequence numbers left for running the IV update procedure.

Definition at line 255 of file nrf_mesh_config_core.h.

◆ NETWORK_SEQNUM_IV_UPDATE_END_THRESHOLD

#define NETWORK_SEQNUM_IV_UPDATE_END_THRESHOLD   (NETWORK_SEQNUM_MAX - TRANSPORT_SAR_SEQNUM_DIFF_MAX)

The sequence number value that triggers the end of an IV update procedure.

This value should be set so that there are enough sequence numbers left for finishing any ongoing Transport SAR sessions.

Definition at line 263 of file nrf_mesh_config_core.h.

◆ NETWORK_SEQNUM_FLASH_BLOCK_SIZE

#define NETWORK_SEQNUM_FLASH_BLOCK_SIZE   8192ul

Number of sequence numbers between every write to flash.

In case of power failure, the device will resume transmissions with the first sequence number in the next block. A larger block size means that the device can do fewer resets between every IV Update, while a smaller will result in a reduced lifetime for the flash hardware.

Definition at line 281 of file nrf_mesh_config_core.h.

◆ NETWORK_SEQNUM_FLASH_BLOCK_THRESHOLD

#define NETWORK_SEQNUM_FLASH_BLOCK_THRESHOLD   64

Number of sequence numbers left before allocating the next block.

Allocating a new block can take at least 200ms, and the device would be blocked from sending new messages if it runs out.

Definition at line 289 of file nrf_mesh_config_core.h.


Documentation feedback | Developer Zone | Subscribe | Updated