ESP32c3 BLE5.0 PHY兼容配置

chase.chen
Posts: 2
Joined: Fri Sep 24, 2021 2:00 am

ESP32c3 BLE5.0 PHY兼容配置

Postby chase.chen » Fri Sep 24, 2021 2:59 am

问题详述:
开发环境 :windows , IDF4.3,powershell
软件版本 :commit 88c2b69c68d3258d846c6e43f8cba329ccaa5898 (origin/release/v4.3)
开发版: esp-c3-12f-kit-v1.1
例程:examples\bluetooth\bluedroid\ble_50\ble50_security_server
examples\bluetooth\bluedroid\ble_50\ble50_security_client

历史:原 ble50_security_server demo,使用 旧手机 honor9(PS:蓝牙4.2,后面以 ble42Client 表示)无法搜索到设备;
操作1:修改 ext_adv_params_2M.type = ESP_BLE_GAP_SET_EXT_ADV_PROP_LEGACY_IND
结果 :ble42Client 可以正常搜索到并连接设备;
ble50_security_client 也可以链接到 ble50_security_server_改;
但 是 使用的是 PHY_1M ;

期望:ble50_security_client 与 ble50_security_server_改 连接时可以 自动切换到 PHY_2M 模式

问题:如何实现?使用哪个API?在哪个流程中调用?最好详细说明一下流程。谢谢;

Who is online

Users browsing this forum: No registered users and 37 guests