Commit Graph
416 Commits
Author SHA1 Message Date
yangfeng fe1f84d53d fix: Fix the HFP example fails to discovery target device 2026-07-02 15:07:37 +08:00
yangfeng 2184fae05b fix(bt): Fix the high issues related to AVRCP from AI review report
- SDP/registration: handle SDP record creation and discovery failures safely
- AVRC stack: fix packet checks, fragment leaks, response build, and compile guards
- BTC AVRCP: fix return codes, connection state, metadata parsing, and memory leaks
- AVCTP: fix event passing, L2CAP conflicts, TX queue leaks, and disconnect handling
- Example: remove TG RN capability setup before initialization
2026-06-25 14:58:17 +08:00
Island 2b89a2ec22 Merge branch 'bugfix/fix_bluedroid_ai_review_bugs_20260427_v5.4' into 'release/v5.4'
Bugfix/fix bluedroid ai review bugs 20260427 (5.4)

See merge request espressif/esp-idf!49539
2026-06-15 11:04:00 +08:00
zhiweijian 9c0f5d878d fix(examples): improve bluedroid BLE example error handling
Check GAP/GATT event status, fix prepare-write buffer lifecycle, and
align example code with updated Bluedroid API behavior.
2026-06-12 10:27:08 +08:00
zhiweijian 433d5d03d8 refactor(examples): disable unused BT options in bluedroid BLE examples
Add sdkconfig.defaults to turn off unused Bluedroid host features per
example role (GATT client/server, SMP, legacy adv, etc.).
2026-06-12 10:26:52 +08:00
ShenWeilong 11b5ef5b3d fix(bluedroid): Set CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE=y in bluedroid host examples 2026-06-12 10:25:26 +08:00
yangfeng 15550705fc fix: Fix the potential stack overflow issue in the Classic Bluetooth example 2026-06-09 09:43:53 +08:00
Zhang Hai Peng 4ce1ea8a15 feat(ble/blufi): Support setting BLE encryption for blufi
(cherry picked from commit 60a028fb17)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-05-12 12:14:36 +08:00
yangfeng 3bfe2fe5f8 fix(bt/example): fix critical issues of classic_bt examples reported by AI review 2026-05-11 11:43:34 +08:00
Wang Meng Yang bd15e92865 Merge branch 'bugfix/bt_idf_ci_v5.4' into 'release/v5.4'
fix(bt/example): Fixed the HFP printing issue in the CI test (v5.4)

See merge request espressif/esp-idf!47080
2026-04-20 09:35:53 +08:00
Island db8081e018 Merge branch 'fix/fix_bluedroid_gattc_gatts_coex_example_params_error_v5.4' into 'release/v5.4'
fix(ble/bluedroid): Fixed Incorrect use of event parameters in gattc_gatts_coex (5.4)

See merge request espressif/esp-idf!46905
2026-04-17 18:11:12 +08:00
yangfeng 10272874a1 fix(bt/example): Fixed the HFP printing issue in the CI test 2026-03-30 11:49:26 +08:00
Zhi Wei Jian 8ffd600d34 fix(ble/bluedroid): fix bugs in BLE 5.0 bluedroid examples
- Fix callback function usage and parameter errors
- Fix spelling: BROCASTER to BROADCASTER in examples
- Update examples to match API changes



(cherry picked from commit 8f4dd7824e)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-03-25 10:27:36 +08:00
Zhi Wei Jian e5d580f3e4 fix(bluedroid): printf EXAMPLE_CI_ID, PIPELINE_ID and CHIP_ID
(cherry picked from commit 7bb1018948)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-03-23 17:23:42 +08:00
Zhi Wei Jian ffc5c65fc5 fix(ble/bluedroid): Fixed Incorrect use of event parameters in gattc_gatts_coex
(cherry picked from commit b218e02b49)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2026-03-23 17:23:42 +08:00
Evgeny Torbin f7395255da test: format all test scripts 2026-03-11 07:34:34 +01:00
zhiweijian 467cc4ddb4 fix(ble/bluedroid): Change 5.0 event status 2026-01-30 20:15:51 +08:00
zhiweijian dd35a4eaef feat(ble/bluedroid): Add new bluedroid host examples 2026-01-30 20:14:59 +08:00
Jin Cheng cef2470455 fix(bt/bluedroid): add status management for audio sink service channel 2026-01-15 09:13:38 +08:00
Rahul Tank c195fd11de fix(nimble): Add AD type macros in example 2026-01-14 10:53:25 +05:30
Zhang Hai Peng c3d5c161ca feat(examples/bluedroid): add BLE ACL latency measurement example
(cherry picked from commit 934970a06f)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-01-09 14:11:17 +08:00
Zhang Hai Peng a599bc9a02 docs(ble): add flow diagrams to bluedroid BLE examples
(cherry picked from commit 051077835c)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-01-09 14:11:17 +08:00
Zhang Hai Peng c69a9f9d19 refactor(examples/bluedroid): Replace hardcoded ADV type values with macros
(cherry picked from commit fdeb5ad87a)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-01-09 14:10:59 +08:00
Zhang Hai Peng d1bf2668c1 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)

(cherry picked from commit 7cd2f7b34d)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-01-09 14:09:16 +08:00
zhiweijian 80b6fceac5 fix(ble/bluedroid): Replaced the psa_ api with the mbedtls_ api 2026-01-06 21:08:30 +08:00
zhiweijian 61162a7887 feat(ble/bluedroid): Support bluedroid encrypted advertising data 2026-01-06 20:43:20 +08:00
yangfeng ccb49f07e7 refactor(examples/classic_bt): Add example tests for A2DP and AVRCP examples 2025-12-25 10:54:32 +08:00
yangfeng b3aa863759 docs: Add explanations for the A2DP sink stream and AVRCP examples
- Modify the path of A2DP sink example
2025-12-25 10:54:32 +08:00
yangfeng fb7fc40fec refactor(examples/classic_bt): Add AVRCP cover art example with LCD display 2025-12-25 10:54:32 +08:00
yangfeng 38a2e9dbd0 refactor(examples/classic_bt): Add common code for AVRCP cover art example 2025-12-25 10:54:32 +08:00
yangfeng 291369475e refactor: Refactor the example of the coexistence of A2DP sink and GATT service 2025-12-25 10:54:32 +08:00
yangfeng ed563043c8 refactor(examples/classic_bt): Refactor A2DP sink and AVRCP examples
- Add avrcp_ct_metadata example
- Add avrcp_absolute_volume example
- Add the example components about common code for a2dp sink and avrcp
2025-12-25 10:54:21 +08:00
Island c678100216 Merge branch 'bugfix/fix_ble_security_issue_2025_v5.4' into 'release/v5.4'
Fix potential CVE-2024-0039 out-of-bounds write in attp_build_value_cmd (v5.4)

See merge request espressif/esp-idf!43806
2025-12-18 10:55:49 +08:00
Zhang Hai Peng 21330fa36e fix(ble/bluedroid): Fix VLA in a2dp_gatts_coex example
(cherry picked from commit e741f09e0f)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-03 11:54:11 +08:00
Zhang Hai Peng 236f6c5d3a fix(ble/bluedroid): Fix memory leak in ble_spp_server example
(cherry picked from commit b6b3b81bf6)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-03 11:54:08 +08:00
Zhang Hai Peng 58d214ba33 fix(ble/bluedroid): Use calloc in gatt_server example
(cherry picked from commit e26b60090d)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-03 11:54:08 +08:00
Zhang Hai Peng d9fd8835b8 fix(ble/bluedroid): Use snprintf in ble_eddystone example
(cherry picked from commit 24e023e307)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-03 11:54:07 +08:00
Zhang Hai Peng 35e452490e fix(ble/bluedroid): Add bounds check in ble_ancs example
(cherry picked from commit 7e876249df)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-03 11:54:07 +08:00
Chen Yudong 0b5e53216a ci: rename wifi_two_dut to two_duts 2025-12-03 09:54:23 +08:00
Island 149caedf60 Merge branch 'feat/support_bhost2025_44_v5.4' into 'release/v5.4'
feat(ble/bluedroid): Add more debug log for bluedroid (v5.4)

See merge request espressif/esp-idf!43365
2025-11-26 18:03:03 +08:00
yangfeng 4d09368528 fix(bt/examples): Fixed test_bt_l2cap not finding ESP_SDP_CREATE_RECORD_COMP_EVT 2025-11-21 19:31:20 +08:00
yangfeng 25424ba340 fix(bt/example): Fixed hf_ag build error 2025-11-21 13:30:02 +08:00
yangfeng 14983842ff fix(example/classic_bt): Fix potential stack overflow tasks 2025-10-14 16:33:12 +08:00
yangfeng 73ae66088c fix(example/classic_bt): Fix the stack overflow of the SPPAppT and mouse_move_task tasks 2025-10-10 16:14:04 +08:00
Island d66354c354 Merge branch 'bugfix/ble_enhanced_security_v2_v5.4' into 'release/v5.4'
fix(ble/bluedroid): Fixed potential out-of-bounds memory access when resolve adv data (v5.4)

See merge request espressif/esp-idf!41306
2025-08-20 11:18:22 +08:00
Zhang Hai PengandCody 5fbd219533 fix(ble/bluedroid): Update Gatt_Server_Service_Table_Example_Walkthrough.md
(cherry picked from commit 6b360dacf6)

Co-authored-by: Cody <codyhubman4@gmail.com>
2025-08-15 14:54:01 +08:00
Zhang Hai PengandBLKDASH e9f2d8cc2d fix(ble/bluedroid): Fixed the problem of macro definition error
(cherry picked from commit 6b212c7d47)

Co-authored-by: BLKDASH <128231495+BLKDASH@users.noreply.github.com>
2025-08-15 14:53:58 +08:00
Chen Jian Hua 3dee8b54a5 feat(ble/bluedroid): Added BLE multiple connections examples
(cherry picked from commit b8996f3953)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2025-08-15 14:35:04 +08:00
JinCheng 35061a7a36 fix(bt/bluedroid): safe string returns and cleanups for bt_discovery example 2025-07-31 21:08:57 +08:00
Nikheel Savant ade3529edf fix(bt/bluedroid): safe string returns and cleanups 2025-07-31 21:08:57 +08:00