I am currently looking for solutions to use Bluetooth long range on ESP32.
I started working with Bluedroid ble50_security_server from esp-idf Github repository https://github.com/espressif/esp-idf/tr ... ity_server, and changed primary_phy and secondary_phy of esp_ble_gap_ext_adv_params_t struct:
Code: Select all
esp_ble_gap_ext_adv_params_t ext_adv_params_2M = {
.type = ESP_BLE_GAP_SET_EXT_ADV_PROP_CONNECTABLE,
.interval_min = 0x20,
.interval_max = 0x20,
.channel_map = ADV_CHNL_ALL,
.filter_policy = ADV_FILTER_ALLOW_SCAN_ANY_CON_ANY,
.primary_phy = ESP_BLE_GAP_PHY_CODED,
.max_skip = 0,
.secondary_phy = ESP_BLE_GAP_PHY_1M,
.sid = 0,
.scan_req_notif = false,
.own_addr_type = BLE_ADDR_TYPE_PUBLIC,
};
If possible, I would also like to use BLE Coded Phy with NimBLE. Is it possible? How can I adapt Espressif examples to work at long ranges?