code to manipulate Bluetooth phy directly
Posted: Tue Sep 13, 2022 12:15 pm
I would like to control in low level the ble/wifi radio (I'm assuming its the same 2.4GHz tx/rx)
in the examples they assume Bluetooth protocol is required
but i would like to test the radio with out the protocol running adbove it and broadcasting/receiving
the parameters i would like to control:
1. turn radio on/off
2. control the transmition/advertisement channels
3. control transmission frequency
I found the ble_phy.c file which seems to have the tasks i require.
But i cant find an example which utilizes it to work off of.
as of now i started with the ble_compatibility_test and spp_server
and tried to only use esp_bt_controller_enable without esp_bluedroid_enable to turn on/off but this crashes the chip
also i seem to have an issue with nvs which existed since i started working with esp-idf
it's there even in a non modified environment and example(which does call nvs_flash_init)
if anyone has experience working with the bluetooth_phy directly any help would be appreciated.
in the examples they assume Bluetooth protocol is required
but i would like to test the radio with out the protocol running adbove it and broadcasting/receiving
the parameters i would like to control:
1. turn radio on/off
2. control the transmition/advertisement channels
3. control transmission frequency
I found the ble_phy.c file which seems to have the tasks i require.
But i cant find an example which utilizes it to work off of.
as of now i started with the ble_compatibility_test and spp_server
and tried to only use esp_bt_controller_enable without esp_bluedroid_enable to turn on/off but this crashes the chip
also i seem to have an issue with nvs which existed since i started working with esp-idf
Code: Select all
W (1108) BTDM_INIT: esp_bt_controller_mem_release not implemented, return OK
E (1118) phy_init: esp_phy_load_cal_data_from_nvs: NVS has not been initialized. Call nvs_flash_init before starting WiFi/BT.
if anyone has experience working with the bluetooth_phy directly any help would be appreciated.