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

Nordic nrf52832 is not able to scan and connect to other ble devices with HCI commands

Hi,

I'm using nrf52832 development board.
In which i have flashed hci_uart example code of zephyr (latest code taken from  https://github.com/zephyrproject-rtos/zephyr) which acts as an interface to send HCI commands over uart.
After flashing when i tried to send 
HCI_Reset
HCI_LE_rand
and got responses to them. After setting BD Address I tried to put the device in advertising mode by giving 
HCI_Advertising_Set_Parameters
HCI_Advertising_Enable
Advertisements are seen on nrfConnect app and is working fine.

Our use case needs nRF to be in Master mode. For getting the devices in range I gave 
HCI_Set_Scan_Parameters
HCI_Scan_Enable
to scan the near by BLE devices, I got command complete with Success, but i didn't get scan results of the ble devices.

When i check with nRF connect app, I could see a lot of devices. Even when advertising device is kept very close, nRF is not responding with Advertisement reports.

Is there any limitation that nRF52832 with Zephyr will not work as Master mode?
Please let me know how to enable scan and connect to ble device using HCI commands.

Related