This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

S140 - Non connectable advertising interval

Hi everyone!

My question is for engineers of Nordic. I need to apply NRF52840 as a "beacon". As there is no ready templates of beacons in nRF5_SDK_13.0.0-1alpha_055eef3, I took as a basis the template "ble_app_beacon_pca10040_S132" (NRF52832) and ported it for the NRF52840 and stack Soft Device S140. My variant of "beacon" on NRF52840 works successfully and sends advertising data ( I track the packages by using "NRF_Sniffer").

But, unfortunately, Soft Device S140 doesn't provide a possibility to set an interval between advertising packages (NON_CONNECTABLE_ADV_INTERVAL) less than 100 ms. Despite the fact that the specification Bluetooth 5.0 lets set the interval between packages from 20 ms (Bluetooth 5.0 Vol 6, Part B, 4.4.2.2.1 Advertising Interval), the function "sd_ble_gap_adv_start (&m_adv_params)" gives an error code "7" by an attempt to set the interval less than 100 ms. This limitation, perhaps, has left in the stack by inheritance from the specification Bluetooth 4.2, where this limitation really was.

My request for engineers is to fix this limitation in the stack Soft Device S140.

Related