zephyr/subsys
Johan Hedberg 2b73c97d68 Bluetooth: Mesh: Fix IV Update duration tracking
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 fulfil 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 patch adds a new
configuration option, which 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).

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2018-05-17 17:30:03 +03:00
..
bluetooth Bluetooth: Mesh: Fix IV Update duration tracking 2018-05-17 17:30:03 +03:00
console kconfig: fix help syntax and add spaces 2017-12-13 17:43:28 -06:00
cpp kconfig: Move CPLUSPLUS from root to "Compiler Options" 2018-04-30 13:12:01 -04:00
debug subsys: debug: Fix stack sentinel dependencies 2018-05-10 14:16:46 -07:00
dfu subsys: dfu: boot: Remove unused ver query code. 2018-02-21 18:53:42 -05:00
disk subsys: disk: Add support for multiple disk interfaces 2018-05-08 08:53:01 -04:00
fs subsys: fs: Add Non Volatile Storage (NVS) for zephyr 2018-05-15 10:29:16 +02:00
logging syslog: net: Fix multiple network interface selection for IPv4 2018-04-13 08:29:44 -04:00
mgmt mgmt: Fix smp_bt.c build 2018-05-16 15:42:38 +03:00
net ieee802154: Add support for filtering source short/ieee addresses 2018-05-17 16:18:53 +03:00
random subsys: random: Fix semaphore initial count of xoroshiro128 2017-11-15 15:47:10 -06:00
settings settings: Make it safe to call settings_subsys_init() multiple times 2018-05-17 12:17:30 +02:00
shell subsys: shell: Remove deprcated k_call_stacks_analyze API 2018-05-15 13:43:00 +03:00
storage subsys: fs: fix generic storage partition selection 2018-05-04 10:14:01 -04:00
usb subsys: usb: check for invalid descriptor type request 2018-05-14 17:24:52 -04:00
CMakeLists.txt subsys: Add a new settings subsystem 2018-03-28 10:44:20 -04:00
Kconfig kconfig: Move CPLUSPLUS from root to "Compiler Options" 2018-04-30 13:12:01 -04:00