Bluetooth Channel Sounding Distance Estimation
This library implements distance estimation algorithms to be used with Bluetooth Channel Sounding and Ranging Profile and Service defined in the Ranging Service Specification and the Ranging Profile Specification.
Currently, the following methods of computing the distance are available:
Inverse fourier transform of the mixed signal between initiator and reflector. Distance is derived from the time of highest amplitude. This amplitude corresponds to the received signal along the shortest path between the devices.
Derivative of phase with respect to frequency, as described in Distance estimation based on phase and amplitude information.
Round-trip timing, as described in Distance estimation based on RTT packets.
Configuration
To enable this library, use the CONFIG_BT_CS_DE Kconfig option.
Check and adjust the following Kconfig options:
CONFIG_BT_CS_DE_512_NFFT- Uses 512 samples to compute the inverse fourier transform.CONFIG_BT_CS_DE_1024_NFFT- Uses 1024 samples to compute the inverse fourier transform.CONFIG_BT_CS_DE_2048_NFFT- Uses 2048 samples to compute the inverse fourier transform.
Usage
See Bluetooth: Channel Sounding Initiator with Ranging Requestor.
API documentation
include/bluetooth/cs_de.hsubsys/bluetooth/cs_de