Hi all,
Background:
-NRF5340
-NRF SDK 1.9
-Zephyr 2.7.99
My objective is to send via Bluetooth data of 244 Bytes every 10 ms per notify.
For the tests, I use the dongle Nrf52840 and the application NRF BLE v3.0.0.
Starting from the Zephyr and NRF examples, I was able to send data of 244 bytes size by increasing the MTU. However, what I observe is that the sending time is 30ms, that is the time to execute the bt_gatt_notify function ( measured with an oscilloscope by turning on and off a led before and after the execution of the bt_gatt_notify).
I strongly doubt that this is due to the data length which remains blocked at 27 Bytes
When trying to change the data length from NRF BLE application from 27 -> 251 Bytes, the command executes correctly but the data length is locked at 27 Bytes.
Secondly, when I want to change the data length from the zephyr config, I add in the prj.conf :
CONFIG_BT_CTLR=y
When compiling the project, I get an error :
warning: ENTROPY_NRF5_RNG (defined at c:\Users\hiche\workspace\M01-NRF\build\drivers\entropy\Kconfig.nrf5:14) has direct dependencies !ENTROPY_NRF_FORCE_ALT && HAS_HW_NRF_RNG && ENTROPY_GENERATOR with value n, but is currently being y-selected by the following symbols:
- BT_LLL_VENDOR_NORDIC (defined at c:\Users\hiche\workspace\M01-NRF\build\subsys\bluetooth\controller\Kconfig. ll_sw_split:11), with value y, direct dependencies SOC_COMPATIBLE_NRF && BT_LL_SW_SPLIT && BT_CTLR && BT_HCI && BT (value: y), and select condition SOC_COMPATIBLE_NRF && BT_LL_SW_SPLIT && BT_CTLR && BT_HCI && BT (value: y)
error: Aborting due to Kconfig warnings
I don't understand this error knowing that the CPU NET configuration must be activated by enabling the BT.
However, to be able to change the data length I need to activate the BT_CTLR.
Thanks,
Hichem