Page 1 of 1

ESP32 NimBLE Controller

Posted: Fri Aug 23, 2019 8:16 pm
by Elivander Pereira
Hello!

My name is Elivander, and I'm student of Master Degree course on telecommunications. I'm trying to evaluate some theories in congnitive radio using the ESP32 board.

I'm trying to use the bluetooth protocol, which have the AFH algorithm (Adaptative Frequency Hopping). My main issue is how to get the information of the channel map from the Controller layer, more detailed, from the Link Layer, and provide the channel map data to my application. The channel map will simulate my spectrum sensing information.

I found inside the NimBLE stack the code that can be used to call the channel map, but I can't found this inside the ESP-IDF Bluetooth Controller code, can I use the NimBLE controller with the ESP32?

I found what I want in the "ble_ll_ctrl.c" file in lines 1515 - 1534. Available at https://github.com/apache/mynewt-nimble ... roller/src

Or can somebody help me to know where or how can i found the channel map data with the ESP-IDF?

Thanks!

Re: ESP32 NimBLE Controller

Posted: Sat Aug 24, 2019 8:08 pm
by captain_morgan
I can only answer part of your question...
can I use the NimBLE controller with the ESP32?
Yes, I'm using it presently and find it easier to work with then the Bluedroid stack.

I do not believe it has made it into a release yet, so you will likely have to use the master branch.

The documentation to get started with it are here and the latest master branch has example in $IDF_PATH/examples/bluetooth/nimble

Re: ESP32 NimBLE Controller

Posted: Mon Aug 26, 2019 6:25 am
by ESP_sushant
Hi Elivander,
ESP32-IDF supports Nimble Host stack only.
You can use ble_hs_hci_read_chan_map(...) API from the NIBLE host (please check components/bt/host/nimble/nimble/nimble/host/include/host/ble_hs_hci.h for more info) and it should work with ESP32-IDF BLE controller code. Let us know if you face any problem using this.

Note: ESP32 BLE controller code is not open-source and it is not included in ESP32-IDF.

Thanks,
Sushant

Re: ESP32 NimBLE Controller

Posted: Tue Aug 27, 2019 1:35 am
by Elivander Pereira
ESP_sushant wrote:
Mon Aug 26, 2019 6:25 am
Hi Elivander,
ESP32-IDF supports Nimble Host stack only.
You can use ble_hs_hci_read_chan_map(...) API from the NIBLE host (please check components/bt/host/nimble/nimble/nimble/host/include/host/ble_hs_hci.h for more info) and it should work with ESP32-IDF BLE controller code. Let us know if you face any problem using this.

Note: ESP32 BLE controller code is not open-source and it is not included in ESP32-IDF.

Thanks,
Sushant
Thank you very much! This helped me so much. I'll try to implement it.

Re: ESP32 NimBLE Controller

Posted: Wed May 29, 2024 10:22 am
by st184298
Hello, I want to know if there is a way to use the nimble controller stack with esp32 IDF.
As it is open source, I am currently doing my research to find out various options to find the efficient throughput. One of the ways is to remove CRC and verify its throughput.
Please also suggest if there is any way to alter the packet in the esp controller itself.

Thanks in advance.

Regards,
Meghana