NRF52832 with zephyr hci_uart example as ble controller cannot detect extended advertisements.

Hi,

I am developing an embedded solution where I need to use a nrf52832 as bluetooth controller to detect advertisement packets from beacons. I flashed the zephyr hci_uart sample to nrf52832 board and btattached it to the processor board through uart with btattach command:

btattach -B /dev/ttyACM0 -S 1000000 -P h4

I use a python script using bluepy library to scan for advertisements and collect data. So far I can detect all beacons made with separate nrf52832 boards having custom beacon advertising code(bluetooth 4.1) which transmits some data in the manufacturer data field. However when I change the beacon code so that it transmits extended advertisement packets larger than 31 bytes(186 bytes), I can detect the beacon with oneplus 8 and nrfconnect app but I cannot detect the device with my bluetooth controller. I added the following flag to prj.conf in hci_uart example:

CONFIG_BT_EXT_ADV=y 

I reflashed the board then tried again but still cannot detect the extended advertisement.

btmon does not show any entries with the mac address of the extended advertisement beacon.

bluez has experimental features flag set as on.

bluez version is 5.53 and zephyr sdk version is 0.12.4

build info:

Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal

kernal version: 5.11.0-40-generic

My questions are:

1) Is it even possible to use hci_uart sample in nrf52832 to detect extended advertisements with nrf52832 with above mentioned modifications or have I missed any?

2) Should I consider switching to nrf soft device and whether it supports extended advertisements and long range?

3) Should I try the bluetooth-next kernal patch? I read some other threads and people pointed out that the bleeding tooth error is due to the fact that ubuntu kernal truncates the larger packets and does not allow the detection of extended advertisement packets.

Please tell me if any other information is required.

Thank you in advance

Related