Ranging Responder (RRSP)
Overview
This library implements the Ranging Responder for Channel Sounding with the corresponding set of characteristics defined in the Ranging Service Specification and the Ranging Profile Specification.
This library supports On Demand Ranging Data and Real-time Ranging Data.
Configuration
To enable this library, use the CONFIG_BT_RAS Kconfig option.
Check and adjust the following Kconfig options:
CONFIG_BT_RAS_MAX_ANTENNA_PATHS- Sets the maximum number of antenna paths supported by the device. This sets the antenna paths for each step that can be stored inside the Ranging Service. This value must match the supported Channel Sounding capabilities of the device. This affects the per-instance memory usage of the Ranging Service.CONFIG_BT_RAS_MODE_3_SUPPORTED- Sets support for storing Mode 3 Channel Sounding steps. This will allocate memory for the Ranging Service to store Mode 3 Channel Sounding steps. This value must match the supported Channel Sounding capabilities of the device. This affects the per-instance memory usage of the Ranging Service.CONFIG_BT_RAS_RRSP- Enables RRSP Kconfig options.CONFIG_BT_RAS_RRSP_AUTO_ALLOC_INSTANCE- Sets new connections to be allocated a RRSP instance automatically.CONFIG_BT_RAS_RRSP_MAX_ACTIVE_CONN- Sets the number of simultaneously supported RRSP instances.CONFIG_BT_RAS_RRSP_RD_BUFFERS_PER_CONN- Set the number of ranging data buffers per connection.CONFIG_BT_RAS_RRSP_LOG_LEVEL- Sets the logging level of the RRSP library.
Usage
You can set up the RRSP either as a Channel Sounding Initiator or Reflector.
samples/bluetooth/channel_sounding/ras_reflectorAPI documentation
include/bluetooth/services/ras.hsubsys/bluetooth/services/ras