Commit Graph
29 Commits
Author SHA1 Message Date
zhiweijian b83327f3ca fix(ble/bluedroid): add GATT resource-cleanup helpers 2026-07-10 10:52:43 +08:00
zhiweijian 83f0831c53 feat(ble/bluedroid): Support bluedroid LE COC and EATT features 2026-07-09 14:03:01 +08:00
Island 83c7c6ed82 Merge branch 'bugfix/fix_ble_write_fail' into 'master'
fix(ble/bluedroid): Fixed potential double Execute Write Response

Closes BLERP-2292

See merge request espressif/esp-idf!49413
2026-06-26 20:08:29 +08:00
zhanghaipeng 0a93ccd3b3 fix(ble/bluedroid): Fixed potential double Execute Write Response 2026-06-26 15:36:43 +08:00
zhanghaipeng 97905afccc fix(ble/bluedroid): cap Read By Type response length at ATT maximum
Read By Type Response Length is one octet (max 255). When MTU was
large enough to return a long characteristic value in one pair, the
server wrote (UINT8)(value_len + 2) and overflowed (e.g. 513 -> 1),
so the client rejected the PDU as GATT_INVALID_PDU (0x04).

Cap server value to 253 bytes per pair, clamp the length byte, and
continue long reads via Read Blob when the capped size is returned.
2026-06-25 10:49:39 +08:00
zhiweijian ba0537c118 fix(ble/bluedroid): Fixed read or write failed if SMP is disabled 2026-03-02 18:32:20 +08:00
zhiweijian 6242e0244c fix(ble/bluedroid): fix GATT protocol and database operation issues
- Fix GATTC read by type length error and rsp pdu format check
- Fix p_cur_handle update in gatts_db_read_attr_value_by_type
- Fix len calculation error in calculate_database_info_size
- Replace gatt_find_the_connected_bda with p_tcb_list iteration
- Send cmd reject if cid is invalid
- Fix param_len check in smp_rand_back
- Remove duplicate uuid compare functions
2026-02-27 17:59:35 +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 ac7812ef8d fix(ble/bluedroid): change tGATT_BG_CONN_DEV to GATT_BG_CONN_DEV 2026-01-05 14:23:10 +08:00
zhiweijian db17c7cea3 fix(bluedroid): delete bluedroid gatt_listen 2026-01-05 14:23:10 +08:00
zhiweijian 7ff9484c46 fix(ble/bluedroid): disable rsp timer and ind_ack timer 2026-01-05 14:10:04 +08:00
zhiweijian d9a88c7414 fix(ble/bluedroid): delete unused pending_queue 2026-01-05 14:10:04 +08:00
zhiweijian 438590a1f5 feat(ble/bluedroid): reduce bluedroid host heap used for BLE 2026-01-05 14:10:03 +08:00
zhiweijian cb8b4df798 feat(ble/bluedroid): Supported BLE bluedroid host pawr connection 2025-11-11 20:00:34 +08:00
chenjianhua b936d0075c fix(ble/bluedroid): Fixed GATT response timeout setting 2025-10-27 17:34:52 +08:00
zhiweijian 69acda1785 feat(ble/bluedroid): reduce bluedrois host bin size and disable BLE_HOST_BG_CONNECT_EN 2025-02-17 14:55:55 +08:00
zhanghaipeng 41facc2e08 fix(bt/bluedroid): Fix BLE robost cashing config 2023-12-05 15:44:15 +08:00
zhanghaipeng c73d7c0b60 fix(bt/bluedroid): Fix bugs in ble service change characteristic 2023-10-13 10:54:25 +08:00
chenjianhua 0f7446f93f bluedroid: support gatts show local database 2023-04-23 17:22:04 +08:00
zhiweijian 588626d64e Fixed ATT Ignore wrong response error 2023-03-14 08:49:19 +00:00
chenjianhua 70bb6c7388 bluedroid: fixed GATT multi notify and robust caching 2023-01-06 20:13:58 +08:00
chenjianhua 702e06e09e bluedroid: add internal GATT API for PTS 2022-12-09 13:28:31 +08:00
chenjianhua 238d1375a8 bluedroid: support GATT robust caching feature 2022-12-09 13:28:31 +08:00
zhiweijian@espressif.com 4bd267ac9a Fixed bluedroid host memory overflow 2022-07-14 19:35:22 +08:00
zwj 7c1c669799 component/bt: add BLE v5.0 feature for bluedroid host 2021-01-15 17:55:12 +08:00
XieWenxiang 366b036ba5 component/bt: support BLE Authorization 2020-12-02 09:07:24 +08:00
sushant.chougule 0583a04969 Bluedroid stack dynamic allocation changes to optimise DRAM usage
Structures allocated dynamically:
tACL_CONN, tBTM_PM_MCB, tBTM_SEC_DEV_REC, tGATT_TCB, tGATT_CLCB, tL2C_LCB, tL2C_CCB, tSDP_RECORD
Total dynamic allocation size ~19KB.
Peak dram usage reduced by ~12KB when in BT classic + BLE scenario(1 a2dp sink + 1 BLE gatt server)
2020-07-15 14:44:10 +05:30
baohongde 93f86b8a6d components/bt: Disable BR/EDR GATT 2019-10-25 02:49:51 +00:00
Hrishikesh Dhayagude 21165edf41 Bluetooth component refactoring 2019-06-30 16:39:00 +08:00