Sampling and send behavior

Asset Tracker Template

tags
Asset Tracker Template

The following Kconfig options set in the prj.conf file control sampling and transmission frequency:

CONFIG_APP_SAMPLING_INTERVAL_SECONDS=600      # Default: 10 minutes
CONFIG_APP_STORAGE_INITIAL_THRESHOLD=1        # Default: 1 item

Sensors and location are sampled and stored at the interval set by the CONFIG_APP_SAMPLING_INTERVAL_SECONDS Kconfig option. Buffered data is sent to the cloud when the number of stored items reaches CONFIG_APP_STORAGE_INITIAL_THRESHOLD.

You can adjust these values at runtime using the nRF Cloud device shadow. See the Configuration guide for details.

Impact: Using longer intervals between operations and increasing the storage threshold results in fewer network connections and leads to lower power consumption.

Ensure that the PSM Periodic TAU interval is set reasonably longer than the expected cloud upload cadence (sampling interval * storage threshold) to avoid waking the modem up too often for network maintenance.