Commit Graph
100 Commits
Author SHA1 Message Date
Zhang Hai Peng 3ebab4f681 fix(ble/bluedroid): Fixed clear BLE device recored
(cherry picked from commit 21391a45fd)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-05-27 15:13:54 +08:00
Zhang Hai Peng 3b6faa8514 fix(ble/bluedroid): Fixed issue with deleting link key when classic Bluetooth is not used
(cherry picked from commit 7c16bce827)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-05-27 15:13:51 +08:00
Zhang Hai Peng abb3b2d70c fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(4713205)
- Fix: Missing ADV reports after bonding and connection


(cherry picked from commit 244d4f8fa7)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-05-20 11:13:32 +08:00
Zhang Hai Peng 0743b4ad6e fix(ble/bluedroid): Reduce Bluedroid host log output over SPI
(cherry picked from commit 0586d10317)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-05-13 16:14:14 +08:00
Zhang Hai PengandNebojsa Cvetkovic 8a11127ddd fix(ble/bluedroid): Added value len check in esp_ble_gatts_send_indicate()
(cherry picked from commit bfa0fff2e5)

Co-authored-by: Nebojsa Cvetkovic <nebkat@gmail.com>
2025-05-13 16:14:12 +08:00
Zhang Hai Peng e2915a60c5 fix(ble/bluedroid): Change maximum length of attribute value to 517
(cherry picked from commit df8c1f7a96)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-05-13 16:14:09 +08:00
Zhang Hai Peng 901fc0c9ac docs(ble): clarify meaning of 0 value for esp_ble_gap_start_ext_scan() parameters
(cherry picked from commit ebb76933d0)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-05-13 16:14:07 +08:00
Zhang Hai Peng 4f050ed635 fix(ble/bluedroid): Fixed BLE GAP appearance configuration check
(cherry picked from commit 6552854cb5)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-05-13 16:14:04 +08:00
Zhang Hai Peng 20910df9d6 feat(ble/bluedroid): Implement BLE channel map reading API
(cherry picked from commit 55043e280a)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-04-07 21:14:23 +08:00
Zhang Hai Peng d47d3230cd fix(ble/bluedroid): Fix potential uint32_t overflow in BLE btu_start_timer
(cherry picked from commit a9286567f0)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-04-07 21:14:21 +08:00
Zhang Hai Peng e2c02966d2 fix(ble/bluedrooid): Fixed memory leak issue when deinit the host
(cherry picked from commit 6becf74cbb)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-04-07 21:14:19 +08:00
Zhang Hai Peng 44f3208a49 feat(bluedroid): Support get bt config path
(cherry picked from commit d6bb90b453)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-04-07 21:14:16 +08:00
Zhang Hai Peng 03e87e18f7 fix(ble/bluedroid): Fix missing event reporting in esp_ble_create_sc_oob_data
(cherry picked from commit f291725936)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-04-07 21:14:14 +08:00
Zhang Hai Peng d7e8cfadca fix(ble/bluedroid): Fixed BLE crash when disable bluedroid host
(cherry picked from commit 9dfa6ab0e9)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-04-07 21:14:12 +08:00
zhanghaipeng e323d22353 fix(ble/bluedroid): Added SPI output support for Bluedroid host log 2025-04-02 15:18:17 +08:00
zhanghaipeng 231bf742b0 fix(ble/bluedroid): Support SPI log output options for HCI 2025-04-02 15:18:17 +08:00
zhanghaipeng cdefff9cc5 feat(ble/bluedroid): Support read periodic advertiser list size command 2025-03-14 18:03:31 +08:00
Zhang Hai Peng 52390f9b3e feat(ble/bluedroid): Add Read Long Characteristic Values example
(cherry picked from commit 32e4fb79e8)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-03-04 22:13:41 +08:00
Zhang Hai Peng 0eb4b9aa15 fix(ble/controller): Fix BLE Kconfig on ESP32 to avoid unexpected behavior
(cherry picked from commit 9496949132)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-03-03 11:13:46 +08:00
Zhang Hai Peng c2f399b4b0 fix(ble/bluedroid): Fix adv data and scan rsp data not reported together in BLE active scan
(cherry picked from commit 7f2cedc048)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-02-21 16:13:53 +08:00
Zhang Hai PengandMitch Cairns ddff846e4e feat(ble/bluedroid): Support change HID task size by Kconfig in HID example
(cherry picked from commit d4b3a7e99d)

Co-authored-by: Mitch Cairns <mitch.cairns@handheldlegend.com>
2025-02-17 11:15:46 +08:00
Zhang Hai PengandErast  53fa7a7df0 docs(ble/bluedroid): Optimize doc for implementation of a characteristic with 128 bit UUID
(cherry picked from commit fa40d971a5)

Co-authored-by: Erast  <78802792+MatoiDev@users.noreply.github.com>
2025-02-17 11:15:43 +08:00
Zhang Hai PengandNebojša Cvetković 7790c95832 fix(ble/bluedroid): Don't log error on 16/128-bit UUID mixed descriptors
(cherry picked from commit fed1d41aa7)

Co-authored-by: Nebojša Cvetković <nebkat@gmail.com>
2025-02-17 11:15:40 +08:00
Zhang Hai PengandNebojsa Cvetkovic 41ccc00c15 refactor(ble/bluedroid): Fix typos in gatt_sr.c
(cherry picked from commit 63b2dcc3a7)

Co-authored-by: Nebojsa Cvetkovic <nebkat@gmail.com>
2025-02-17 11:15:37 +08:00
Zhang Hai PengandNebojsa Cvetkovic c0b060c1a8 fix(ble/bluedroid): Allow 0 length indications
(cherry picked from commit 9b5a52e2f7)

Co-authored-by: Nebojsa Cvetkovic <nebkat@gmail.com>
2025-02-17 11:15:32 +08:00
Zhang Hai PengandNebojsa Cvetkovic 635e1489b7 refactor(ble/bluedroid): Fix typos in bta_gatts_act.c
(cherry picked from commit a8041a9953)

Co-authored-by: Nebojsa Cvetkovic <nebkat@gmail.com>
2025-02-17 11:15:29 +08:00
Zhang Hai Peng a0f37ef893 fix(ble): Update bt lib for ESP32(2a2631f)
- Support ESP32 BLE GPIO DEBUG


(cherry picked from commit 0a7888f839)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-02-17 11:13:56 +08:00
Zhang Hai Peng 5f93ec3b11 fix(blufi): Enhance security in BLUFI example
(cherry picked from commit 3fc6c93936)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-02-11 15:13:50 +08:00
Zhang Hai Peng 28a78ba1fb fix(ble): Update bt lib for ESP32(194dd63)
- Fix the issue where disconnection events were not reported as a slave.
- Enhance Access Address validation in compatibility mode.


(cherry picked from commit b4e3c5c1e2)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-01-27 18:03:17 +08:00
Zhang Hai Pengandgongyantao 806012cc51 feat(bt): add vendor hci command and event to support test
- add afh related vendor hci command and event
- add vendor event mask command


(cherry picked from commit b225703712)

Co-authored-by: gongyantao <gongyantao@espressif.com>
2025-01-27 18:03:17 +08:00
Zhang Hai Peng f77da0d5b5 fix(blufi): Fixed some security issue in blufi example
(cherry picked from commit abc18e93eb)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-01-22 16:34:41 +08:00
Zhang Hai Peng 668a2ab2ef fix(ble/bluedroid): Fixed BLE feature selection configuration
(cherry picked from commit 117aa74705)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-01-06 11:14:24 +08:00
Zhang Hai Peng b592934f0a docs(ble/bluedroid): Added BLE log when bond info was deleted
(cherry picked from commit c9cdf51b05)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-01-06 11:14:06 +08:00
Zhang Hai Peng 41e7f893aa docs(ble/bluedroid): Optimize doc for registering BLE callback functions
(cherry picked from commit d84ccadf90)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-01-06 11:14:04 +08:00
Zhang Hai Peng 4d7cd8f23b fix(ble/blufi): Fixed blufi example security issue
(cherry picked from commit 3cb2d9c3c6)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-01-06 11:14:02 +08:00
Zhang Hai Peng e09ef803d6 fix(blufi): Fixed crash issue in Blufi example during prepare write operation
(cherry picked from commit 5acb9c9b5f)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2024-12-17 16:13:44 +08:00
zhanghaipeng 4b1d137342 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(555b0a2)
- Check Access Address when receive connection request PDU
- Fix issue with BLE5.0 duplicate scan for chained packets
2024-12-17 10:59:05 +08:00
Zhang Hai Peng 285e4ac4f3 feat(bt): Add support for converting BT HCI logs to btsnoop format
(cherry picked from commit decb24f940)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2024-12-09 17:45:49 +08:00
Zhang Hai Peng 304a655804 fix(blufi): Fixed blufi init fail after deinit
(cherry picked from commit 7addb57ccd)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2024-12-09 17:45:33 +08:00
Zhang Hai Peng efe62a875c fix(ble): Fixed crash in BLE HID host example during logging
(cherry picked from commit ab1e3c1ffd)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2024-12-09 17:15:14 +08:00
zhanghaipeng 4ed30165d8 fix(ble/bluedroid): Optimize BLE API "esp_ble_gattc_enh_open" 2024-11-27 17:07:24 +08:00
zhanghaipeng 719a2313be fix(ble/bluedroid): Fixed BLE create connection fail because of invalid own address type 2024-11-27 17:07:24 +08:00
zhanghaipeng 5c722289b6 fix(bt/ble): Update esp32 libbtdm_app.a (17db8bd)
- Added a verification step for the Access Address within the CONNECT_IND PDU
2024-11-22 11:01:30 +08:00
Zhang Hai Peng 0dea1a84d6 fix(bt/bluedroid): Fixed classic bt build fail when enable dynamic memory and disable BLE
(cherry picked from commit 59d20e80d3)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2024-11-14 22:13:50 +08:00
Zhang Hai Peng 9685b3b4ca fix(ble/bluedroid): Fixed BLE build fail when enable dynamic memory and BLE5.0
(cherry picked from commit 94d1a4f1c0)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2024-11-05 16:13:51 +08:00
zhanghaipeng dbc94c7056 fix(ble/bluedroid): Support enable BLE topology check by API 2024-10-21 15:41:44 +08:00
zhanghaipeng 76e1650161 fix(ble/bluedroid): Fixed crash issue in BLE SMP when a disconnection process is ongoing 2024-10-20 11:47:31 +08:00
zhanghaipeng 15c895fc6a feat(ble/bluedroid): Support enable BLE hci log by API 2024-10-16 20:25:40 +08:00
zhanghaipeng 514155de3b fix(ble/bluedroid): Fixed BLE handle check for GATT API 2024-10-09 12:03:41 +08:00
Zhang Hai Peng 2f2727828c Merge branch 'bugfix/fix_ext_conn_adv_data_check' into 'master'
fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(01cc408)

Closes BLERP-1083

See merge request espressif/esp-idf!33899
2024-10-08 14:20:28 +08:00
zhanghaipeng 5126742003 fix(ble/bluedroid): Fixed error when writing Client Supported Features characteristic 2024-10-08 11:33:02 +08:00
zhanghaipeng 8a80675b7c fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(01cc408)
- Fixed extended connectable advertising data length check
2024-09-28 12:14:31 +08:00
zhanghaipeng 5486241e44 feat(ble/bluedroid): Optimize address resolution status for interval use 2024-09-26 20:01:58 +08:00
zhanghaipeng b88b511362 feat(ble/bluedroid): Support resolve BLE address for interval usage 2024-09-24 20:00:48 +08:00
zhanghaipeng 3a9e05984a docs(ble/bluedroid): Optimize BLE example documentation 2024-09-21 15:22:09 +08:00
zhanghaipeng 124613fb63 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(63eb54d)
- Fixed issue where RPA is not updated after BLE RPA timeout
2024-09-21 10:43:16 +08:00
zhanghaipeng 32c7694f56 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(e9ae856)
- Fixed BLE scan assert in lld_scan.c 1728
2024-09-19 15:22:04 +08:00
zhanghaipeng dbca12721e fix(ble/bluedroid): Optimize BLE function 'esp_ble_resolve_adv_data_by_type' 2024-08-27 16:56:39 +08:00
zhanghaipeng 86713a6946 docs(ble/bluedroid): Optimize BLE example documentation for getting characteristic 2024-08-26 19:24:56 +08:00
zhanghaipeng 946f484861 feat(ble/controller): Support get BLE controller free heap size 2024-08-22 14:42:52 +08:00
zhanghaipeng c1fb888cc1 fix(ble/bluedroid): Fixed memory out-of-bounds issue when parsing adv data 2024-08-21 19:27:36 +08:00
zhanghaipeng 0d2929358f docs(blufi): Optimize documentation for Blufi example 2024-08-20 14:29:16 +08:00
zhanghaipeng f9e45f9807 docs(ble/bluedroid): Optimize BLE example for setting advertising data 2024-08-12 10:40:00 +08:00
Zhang Hai Peng 8971902e1c Merge branch 'feat/get_ble_addr_tpye_in_bond_list' into 'master'
feat(ble/bluedroid): Support getting BLE address type in bond list

Closes IDFGH-13287

See merge request espressif/esp-idf!32680
2024-08-12 10:26:11 +08:00
zhanghaipeng 9fcb712539 feat(ble/bluedroid): Support getting BLE address type in bond list 2024-08-09 19:53:16 +08:00
zhanghaipeng b261ee37e4 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(f583012)
- Fix BLE channel map update when latency is not zero
2024-08-08 21:33:52 +08:00
zhanghaipeng 3e98408b92 docs(ble/bluedroid): Optimize documentation for BLE connection parameter updates 2024-08-06 11:17:46 +08:00
zhanghaipeng d703799356 fix(ble/bluedroid): Fix incorrect state issue when unregistering BLE GATTC application 2024-07-30 11:47:26 +08:00
zhanghaipeng 667758cec7 fix(ble/bluedroid): Fixed BLE cannot create connection 2024-07-22 10:37:16 +08:00
zhanghaipeng 9ac080765c fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(abd7733)
- Fix the issue where RSSI is incorrect when latency is not zero
2024-07-11 13:02:43 +08:00
zhanghaipeng 1325c835fe feat(ble/bluedroid): Support BLE50 instance in related event 2024-07-08 11:05:15 +08:00
zhanghaipeng 21bfbaca61 fix(ble/controller): Update esp32 bt-lib (1e63e23)
- Optimized GATT write and notify throughput on ESP32
- Fixed BLE connect timeout after using DTM on ESP32
- Added ke memory debug tools on ESP32
- Fixed memory leak issue when BLE SCAN and other event coexist on ESP32
2024-06-12 19:34:41 +08:00
zhanghaipeng 42ca04b586 fix(ble/bluedroid): Fixed issue with resetting BLE security parameters during initialization 2024-06-05 11:40:58 +08:00
zhanghaipeng afca005778 fix(ble/bluedroid): Fixed BLE set adv param check 2024-05-11 11:13:40 +08:00
zhanghaipeng fc9290d8a2 fix(ble/bluedroid): Fixed BLE spelling error in word 2024-05-07 16:24:27 +08:00
zhanghaipeng b270f0abc3 feat(ble/bluedroid): Add BLE memory allocation failure message 2024-05-07 15:32:11 +08:00
zhanghaipeng 24e7d9b1cb feat(ble/controller): Display BLE controller init status for ESP32 and ESP32C3/S3 2024-05-07 11:00:03 +08:00
zhanghaipeng 840da7ab11 fix(ble/controller): Update esp32 bt-lib (b79d7e2)
- Fixed BLE scan backoff
2024-05-06 16:17:14 +08:00
zhanghaipeng bc1851d793 fix(ble/bluedroid): Optimize BLE stack connect callback name 2024-05-06 15:43:09 +08:00
zhanghaipeng f2cfe4a0f0 fix(ble/bluedroid): Fixed BLE no data length change event 2024-05-06 15:34:21 +08:00
zhanghaipeng 49cab1a22f fix(ble/bluedroid): Fixed BLE report event when connection fails 2024-04-28 15:44:13 +08:00
zhanghaipeng 4b083ca59c feat(ble/bluedroid): Support BLE command status debug log 2024-04-26 17:08:17 +08:00
zhanghaipeng 89b848d018 fix(ble/controller): Update esp32 bt-lib (4012cfb)
- Fixed BLE coex assert
- Fixed BLE DTM status and tx count
2024-04-26 16:43:31 +08:00
zhanghaipeng 0a4636a8be fix(ble/bluedroid): Fixed set BLE appearance value 2024-04-17 20:38:36 +08:00
zhanghaipeng 9ae6007b5b feat(ble/bluedroid): Support create BLE static random address and NRPA 2024-04-15 21:04:52 +08:00
zhanghaipeng 36c9953588 feat(ble/bluedroid): Support BLE add device to resolving list 2024-04-15 19:37:02 +08:00
zhanghaipeng 20a780da8c fix(ble/bluedroid): Fixed BLE GATT max length of an attribute value 2024-04-10 19:41:46 +08:00
zhanghaipeng 9c6869fbf8 fix(bt/controller): Update bt lib for ESP32(5838b68)
- Fixed BLE scan assert
 - Fixed assert(10,0) in lld_pdu
 - Add BLE scan backoff in menuconfig
2024-04-08 14:49:06 +08:00
zhanghaipeng 8c42f6a891 feat(ble/bluedroid): Support set resolvable provate address timeout by api 2024-04-07 20:40:29 +08:00
zhanghaipeng b0a84f76a2 fix(ble/bluedroid): Optimized BLE SPP example for improved compatibility 2024-04-01 16:31:26 +08:00
zhanghaipeng bce1715dfd fix(ble/bluedroid): Optimize BLE documentation comments to comply with Doxygen syntax 2024-03-18 16:10:02 +08:00
zhanghaipeng f812863827 fix(ble/bluedroid): Optimize the BLE documentation 2024-03-15 20:02:13 +08:00
Zhang Hai Peng e7d88505e5 Merge branch 'bugfix/fix_ble_host_crash_on_deinitialization' into 'master'
fix(ble/bluedroid): Fixed BLE crash when repeatedly iniitialize and deinitialize host

Closes BLERP-584 and BLERP-583

See merge request espressif/esp-idf!29319
2024-03-08 15:21:52 +08:00
zhanghaipeng 2c3d9ae5de fix(ble/bluedroid): Fixed BLE BLE periodic advertising parameter check 2024-03-06 18:10:30 +08:00
zhanghaipeng 82c2602afa fix(ble/bluedroid): Fixed BLE crash when repeatedly initialize and deinitialize host 2024-03-06 15:49:01 +08:00
zhanghaipeng 3eec662473 fix(ble/bluedroid): Update maximum BLE reconnection attempts configuration 2024-02-27 22:03:37 +08:00
zhanghaipeng eb92ea3461 fix(ble/controller): Fixed tx count in direct test mode on ESP32-C3 and ESP32-S3
- Fixed tx count in direct test mode on ESP32-C3 and ESP32-S3
- fixed modem sleep enter failed sometimes
2024-02-04 11:49:47 +08:00
zhanghaipeng 101bfcd7a1 fix(ble/bluedroid): Fix BLE background connection log level 2024-01-20 16:42:54 +08:00
zhanghaipeng b491c7bb6f fix(ble/bluedroid): Fix dangling pointer issue in deletion of bonded devices 2024-01-20 16:35:38 +08:00
zhanghaipeng aeeb64966b feat(bt/bluedroid): Support ext adv aux option 2024-01-19 16:48:18 +08:00