CONFIG_BT_MESH_IVU_DIVIDER

Divider for IV Update state refresh timer

Type: int

Help

When the IV Update state enters Normal operation or IV Update in Progress, we need to keep track of how many hours has passed in the state, since the specification requires us to remain in the state at least for 96 hours (Update in Progress has an additional upper limit of 144 hours).

In order to fulfill the above requirement, even if the node might be powered off once in a while, we need to store persistently how many hours the node has been in the state. This doesn’t necessarily need to happen every hour (thanks to the flexible duration range). The exact cadence will depend a lot on the ways that the node will be used and what kind of power source it has.

Since there is no single optimal answer, this configuration option allows specifying a divider, i.e. how many intervals the 96 hour minimum gets split into. After each interval the duration that the node has been in the current state gets stored to flash. E.g. the default value of 4 means that the state is saved every 24 hours (96 / 4).

Direct dependencies

BT_MESH && BT_HCI_HOST && BT_HCI && BT

(Includes any dependencies from if’s and menus.)

Defaults

Kconfig definition

At subsys/bluetooth/host/mesh/Kconfig:166

Included via Kconfig:10Kconfig.zephyr:39subsys/Kconfig:8subsys/bluetooth/Kconfig:144subsys/bluetooth/host/Kconfig:121

Menu path: (top menu) → Bluetooth → Bluetooth support → Bluetooth Mesh support

config BT_MESH_IVU_DIVIDER
    int
    prompt "Divider for IV Update state refresh timer" if BT_MESH && BT_HCI_HOST && BT_HCI && BT
    range 2 96 if BT_MESH && BT_HCI_HOST && BT_HCI && BT
    default 4 if BT_MESH && BT_HCI_HOST && BT_HCI && BT
    depends on BT_MESH && BT_HCI_HOST && BT_HCI && BT
    help
      When the IV Update state enters Normal operation or IV Update
      in Progress, we need to keep track of how many hours has passed
      in the state, since the specification requires us to remain in
      the state at least for 96 hours (Update in Progress has an
      additional upper limit of 144 hours).

      In order to fulfill the above requirement, even if the node might
      be powered off once in a while, we need to store persistently
      how many hours the node has been in the state. This doesn't
      necessarily need to happen every hour (thanks to the flexible
      duration range). The exact cadence will depend a lot on the
      ways that the node will be used and what kind of power source it
      has.

      Since there is no single optimal answer, this configuration
      option allows specifying a divider, i.e. how many intervals
      the 96 hour minimum gets split into. After each interval the
      duration that the node has been in the current state gets
      stored to flash. E.g. the default value of 4 means that the
      state is saved every 24 hours (96 / 4).

(Definitions include propagated dependencies, including from if’s and menus.)