Commit Graph

377 Commits

Author SHA1 Message Date
zhiweijian
7d68662c18 disable some parameters check in CTE APIs 2026-03-23 11:09:14 +08:00
Wang Meng Yang
c941926ee7 Merge branch 'feat/bt_distance_test' into 'master'
feat(bt): Add APIs to read ACL real RSSI and read/write tx power of inq/iscan/page/pscan/ACL

Closes BT-4155

See merge request espressif/esp-idf!45601
2026-03-16 15:09:19 +08:00
Island
bdf808b34f Merge branch 'feat/add_bluedroid_cancel_open_api' into 'master'
feat(ble/bluedroid): Added cancel open function for bluedroid

See merge request espressif/esp-idf!46305
2026-03-16 14:36:19 +08:00
yangfeng
7a0771d2c8 feat(bt): Add APIs to control transmit power level
- API to read ACL real RSSI
- APIs to read/write tx power of inq/iscan/page/pscan/ACL
2026-03-13 10:12:40 +08:00
zhiweijian
a3c09afd85 feat(ble/bluedroid): Added cancel open function for bluedroid 2026-03-10 10:25:10 +08:00
Zhou Xiao
8fd5dbb730 feat(ble_log): encode HCI direction in ble_log pipeline
Add ble_log_write_hci macro that encodes upstream/downstream direction
in MSB of HCI type byte. Update all 4 callsites (NimBLE + Bluedroid)
to use the new macro. Parser reads MSB to determine direction;
backward compatible (old firmware MSB=0 defaults to "sent").
2026-03-04 10:54:48 +08:00
zhiweijian
562cd2eae5 fix(ble/bluedroid): fix parameter validation and cleanup in ISO and CTE APIs
- Add parameter validation in esp_ble_iso_api and esp_ble_cte_api
- Delete unused ISO functions and incorrect parameter checks
- Add host status check in esp_ble_iso_get_callback()
- Fix CTE parameter handling when enable value is 0
2026-02-27 17:58:50 +08:00
zhiweijian
d439a3fcce fix(ble/bluedroid): fix parameter validation and initialization in BLE APIs
- Add parameter validation in esp_gap_ble_api, esp_gattc_api, esp_gatts_api
- Initialize API args to prevent undefined behavior
- Add host status checks in API functions
- Fix memory leak if bluedroid init failed
2026-02-27 17:58:36 +08:00
yangfeng
933b2856f5 feat(bt/bluedroid): Add API to set encoder parameters for A2DP source
- Add API to set encoder parameters for A2DP source
- Add the use of the API for setting encoding parameters in the a2dp_source example
2026-01-22 11:17:41 +08:00
yangfeng
7b891a8ffc feat(bt/bluedroid): Report A2DP sink codec capabilities for A2DP source 2026-01-22 11:17:41 +08:00
Zhou Xiao
52c2bd2dd6 feat(ble): added sdkconfig to control ble host side hci log 2026-01-13 17:52:05 +08:00
Island
a8cfb404e5 Merge branch 'fix/change_some_example_config' into 'master'
feat(ble/bluedroid): Add new bluedroid host examples (master)

Closes BLERP-2492

See merge request espressif/esp-idf!44896
2026-01-08 21:03:13 +08:00
Island
9bf6bf7252 Merge branch 'feat/reduce_bluedroid_host_bin' into 'master'
feat/reduce bluedroid host bin size

Closes BLERP-2426

See merge request espressif/esp-idf!43537
2026-01-08 14:20:40 +08:00
zhiweijian
ce72e90291 feat(ble/bluedroid): Add new bluedroid host examples 2026-01-08 12:17:26 +08:00
yangfeng
64a2955ec3 docs(bt): update Classic Bluetooth api reference of SDP 2026-01-07 20:18:02 +08:00
yangfeng
25a33c75f6 docs(bt): update Classic Bluetooth api reference of L2CAP 2026-01-07 20:18:02 +08:00
yangfeng
20f95af934 docs(bt): update Classic Bluetooth api reference of HID Host 2026-01-07 20:18:02 +08:00
yangfeng
7aff43b2b8 docs(bt): update Classic Bluetooth api reference of HID Device 2026-01-07 20:18:02 +08:00
yangfeng
c4fa07d9a6 docs(bt): update Classic Bluetooth api reference of HFP AG 2026-01-07 20:18:02 +08:00
yangfeng
cfac6b313f docs(bt): update Classic Bluetooth api reference of HFP Client 2026-01-07 20:18:02 +08:00
yangfeng
8d784d9f08 docs(bt): update Classic Bluetooth api reference of HFP Define 2026-01-07 20:18:02 +08:00
yangfeng
5dbfc9075f docs(bt): update Classic Bluetooth api reference of SPP 2026-01-07 20:18:02 +08:00
yangfeng
290d477880 docs(bt): update Classic Bluetooth api reference of AVRCP 2026-01-07 20:18:02 +08:00
yangfeng
322984c0cb docs(bt): update Classic Bluetooth api reference of A2DP 2026-01-07 20:18:02 +08:00
yangfeng
952a63ea93 docs(bt): update Classic Bluetooth api reference of GAP 2026-01-07 09:48:53 +08:00
zhiweijian
f4dfd42725 fix(ble/bluedroid): Fixed bluedroid host get white list size error 2026-01-06 16:01:22 +08:00
zhiweijian
6f27074c1e fix(ble/bluedroid): Fixed bt buuld error
fix(ble/bluedroid): disable power management if bt is disabled
2026-01-05 17:09:38 +08:00
zhiweijian
ec6809611a fix(ble/bluedroid): disable exception list if scan is not enabled 2026-01-05 14:23:10 +08:00
Island
c327f0804f Merge branch 'fix/fix_some_bludedroid_host_bug' into 'master'
fix(ble/bluedroid): optimize bluedroid some code

Closes BLERP-2505

See merge request espressif/esp-idf!44680
2026-01-04 17:49:14 +08:00
zhiweijian
6b09de6dbf fix(ble/bluedroid): optimize bluedroid some code 2025-12-31 20:04:54 +08:00
zhiweijian
ac80bbe285 feat(ble/bluedroid): Support bluedroid encrypted advertising data 2025-12-31 19:55:17 +08:00
Island
a3d7f7715f Merge branch 'feat/support_blecrt_515' into 'master'
feat(bt/bluedroid): Support get allocated heap size

Closes BLERP-2244

See merge request espressif/esp-idf!41945
2025-12-30 10:52:47 +08:00
Island
590be5f98d Merge branch 'bugfix/fix_ble_security_issue_2025_v3' into 'master'
fix(ble/bluedroid): Fix type mismatch and length validation in HCI packet parser

Closes BLERP-2496, BLERP-2494, BLERP-2495, BLERP-2497, and BLERP-2498

See merge request espressif/esp-idf!43903
2025-12-30 10:33:16 +08:00
zhanghaipeng
7cd2f7b34d feat(examples/bluedroid): Add BLE time interval conversion macros for better readability
Add macros to convert time values from milliseconds to BLE interval units:
- ESP_BLE_GAP_ADV_ITVL_MS: Convert advertising interval (0.625ms unit)
- ESP_BLE_GAP_SCAN_ITVL_MS: Convert scan interval (0.625ms unit)
- ESP_BLE_GAP_SCAN_WIN_MS: Convert scan window (0.625ms unit)
- ESP_BLE_GAP_CONN_ITVL_MS: Convert connection interval (1.25ms unit)
- ESP_BLE_GAP_PERIODIC_ADV_ITVL_MS: Convert periodic adv interval (1.25ms unit)
- ESP_BLE_GAP_SUPERVISION_TIMEOUT_MS: Convert supervision timeout (10ms unit)
2025-12-28 11:19:39 +08:00
Wang Meng Yang
a71649eab7 Merge branch 'change/remove_unused_marco_defines_for_rssi_limit' into 'master'
change(bt): Remove RSSI threshold-related macros

See merge request espressif/esp-idf!44434
2025-12-23 16:20:25 +08:00
Zhou Xiao
bb2b2d34ca feat(ble): supported ble log v2 hci log for Bluedroid host 2025-12-22 18:30:04 +08:00
gongyantao
32fa421cfc change(bt): Mark RSSI threshold-related macros as deprecated 2025-12-22 15:13:19 +08:00
chenjianhua
b85771d577 feat(bt/bluedroid): Support get allocated heap size 2025-12-19 12:15:34 +08:00
Zhang Hai Peng
9a21040626 Merge branch 'bugfix/fix_ble_security_issue_2025_v2' into 'master'
fix(ble/bluedroid): Enhanced security in ble_ancs example

Closes BHOST2025-59

See merge request espressif/esp-idf!43800
2025-12-01 16:16:06 +08:00
zhanghaipeng
a6730c7da6 fix(ble/bluedroid): Add NULL checks in GATT APIs 2025-11-27 19:36:35 +08:00
zhanghaipeng
b71c51564a fix(ble/bluedroid): Add NULL checks in esp_gap_ble_api 2025-11-27 19:28:21 +08:00
zhanghaipeng
4b44d8e814 fix(ble/bluedroid): Add NULL check in esp_ble_gap_add_device_to_resolving_list 2025-11-27 19:12:54 +08:00
yangfeng
8e9bdda713 fix(bt/bluedroid): Fix the status judgment of the A2DP source registration SEP 2025-11-27 14:22:04 +08:00
xiongweichao
67efd21f3d feat(bt): Adds an SPP API parameter to indicate whether to create SPP record 2025-11-19 06:06:01 +00:00
Wang Meng Yang
3c447d998d Merge branch 'bugfix/fix_hid_memory_leak' into 'master'
fix(bt/bluedroid): Fixed HID memory leak

Closes BTQABR2023-602

See merge request espressif/esp-idf!43118
2025-11-13 16:30:47 +08:00
zhiweijian
a742abdcf5 fix(ble/bluedroid): Optimize some bluedroid code 2025-11-11 20:00:44 +08:00
zhiweijian
d0f7140057 feat(ble/bluedroid): support bluedroid host channel sounding feature 2025-11-11 20:00:44 +08:00
zhiweijian
cb8b4df798 feat(ble/bluedroid): Supported BLE bluedroid host pawr connection 2025-11-11 20:00:34 +08:00
zhiweijian
9405c68bed feat(ble/bluedroid): Add bluedroid host Advertising Coding Selection feature 2025-11-11 19:58:26 +08:00
zhiweijian
056e83e3b8 feat(ble/bluedroid): Add bluedroid host PAwR feature 2025-11-11 19:58:14 +08:00