Commit Graph
206 Commits
Author SHA1 Message Date
chenjianhuaandCursor 9bd7168fa1 feat(bt): Add host-agnostic BT OSAL and shared BLE profile task
- Add bt_osal: event queues, mutexes, semaphores, callouts, etc.
- Add the shared BLE profile task and event queue
- Bring both up and tear them down in the host init/deinit paths
- Add unit tests for the OSAL and the profile task

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-03 21:27:15 +05:30
ShenWeilong d8c912eb4d change(bt): Separated bt/cmakelist to bt/controller/cmakelist and bt/porting/cmakelist 2026-05-25 21:01:21 +08:00
ShenWeilong f02a0dcb9d change(bt): separated host mem apis from bt_osi_mem.c 2026-05-07 10:38:08 +08:00
Rahul Tank a47ea03266 feat(nimble): Support NimBLE log compression and decompression over SPI 2026-05-01 16:34:46 +05:30
Rahul Tank da38bac675 Revert "Xchange(bt): separated host mem apis from bt_osi_mem.c"
This reverts commit 531596468c.
2026-05-01 14:17:40 +05:30
ShenWeilong 531596468c Xchange(bt): separated host mem apis from bt_osi_mem.c 2026-04-30 21:31:53 +08:00
Zhou Xiao e4f952d8cd feat(bt/ble_log): implement UART redirection stream write
Introduce stream write API with deferred frame encapsulation for UART
redirection on port 0. Redirected data is now properly framed (header +
payload + checksum) instead of being sent as raw ASCII, preventing frame
parser sync oscillation on the receiver.

- Add stream_seal/stream_write/stream_flush in ble_log_lbm.c
- Add BLE_LOG_SRC_REDIR source and BLE_LOG_UART_REDIR_ENABLED gate
- Simplify redir_uart_tx_chars and timer callback to use stream API
- Flush pending stream data in ble_log_prph_deinit
- Make get_trans static (no external callers after refactor)
- Move UART wrap linker flags outside CONFIG_BT_ENABLED guard
- Default UART DMA peripheral when SOC_UHCI_SUPPORTED
- Default baud rate 921600 -> 3000000


(cherry picked from commit a181fc156d)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-04-03 21:14:40 +08:00
Zhou Xiao 88482e2852 change(bt/ble_log): deprecate legacy SPI log output module
Move ble_log_spi_out.c and ble_log_spi_out.h into a deprecated/
subdirectory under components/bt/common/ble_log/. Extract all
BT_BLE_LOG_SPI_OUT_* Kconfig options into deprecated/Kconfig.in
with an if-block to reduce depends-on repetition, sourced from
ble_log/Kconfig.in inside a "Legacy SPI Log Output (Deprecated)"
menu. Add mutual exclusion with BLE_LOG_ENABLED so that the legacy
SPI Out and the new BLE Log Module cannot be enabled simultaneously.
Update CMakeLists.txt source path and add deprecated/include to
include dirs so existing callers are unaffected. The BLE Log
Module's SPI Master DMA peripheral transport is the replacement.


(cherry picked from commit e2d38955de)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-04-03 21:14:38 +08:00
Zhou Xiao 94761261f2 change(bt/ble_log): remove BLE Log UHCI Out module
Delete ble_log_uhci_out.c and its header. Remove the UHCI Out source
from CMakeLists.txt and all BT_BLE_LOG_UHCI_OUT_* Kconfig options.
Remove per-chip BT_LE_CONTROLLER_LOG_UHCI_OUT_ENABLED Kconfig and
all UHCI Out caller references in esp32c5/c6/h2 controller bt.c.
Update ble_log_console README to reference the new BLE Log Module
UART DMA config. The functionality is superseded by the BLE Log
Module's UART DMA peripheral transport.


(cherry picked from commit d51892380b)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-04-03 21:14:38 +08:00
cjin 1a2597eb64 feat(ble): supported ble mempool run time allocation for esp ip chips 2026-03-23 15:10:54 +08:00
Jin Chen 86c6941ddb feat(ble): make env init function cuttable on ESP32-C2
(cherry picked from commit 5ec82368ba)

Co-authored-by: cjin <jinchen@espressif.com>
2026-03-23 14:56:43 +08:00
yangfeng 728f29289d 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-20 14:26:10 +08:00
Jiang Jiang Jian d6000ccecd Merge branch 'feat/use_common_config_to_sel_crypt_lib_v6.0' into 'release/v6.0'
Feat/use common config to sel crypt lib (v6.0)

See merge request espressif/esp-idf!46408
2026-03-20 10:39:59 +08:00
Shen Wei Longandluoxu 9601e3ac8e remove(ble_mesh): deprecate the tinycrypt library within the Bluetooth Mesh component
(cherry picked from commit 4e006884f8)

Co-authored-by: luoxu <luoxu@espressif.com>
2026-03-09 09:23:36 +00:00
Shen Wei Long b57d517ef9 change(bt): use BT_SMP_CRYPTO_STACK_MBEDTLS to select bt cryption lib
(cherry picked from commit aa40fdcc64)

Co-authored-by: ShenWeilong <shenweilong@espressif.com>
2026-03-09 09:23:35 +00:00
Luo Xu e1859383ee feat(ble): update log compression for bluedroid
(cherry picked from commit 05783fafd7)

Co-authored-by: luoxu <luoxu@espressif.com>
2026-03-02 09:43:22 +08:00
Jiang Jiang Jian 8a1cae8779 Merge branch 'feat/ble_compressed_log_update_v6.0' into 'release/v6.0'
feat(ble_mesh): update log compression for ble mesh lib (v6.0)

See merge request espressif/esp-idf!45155
2026-02-02 22:56:34 +08:00
Rahul Tank c7ce6ff0c7 fix(nimble): Memory optimization + dynamic memory support 2026-01-28 18:32:03 +05:30
Luo Xu afd63b70dd feat(ble_mesh): update log compression for ble mesh lib
(cherry picked from commit 7c4b104f61)

Co-authored-by: luoxu <luoxu@espressif.com>
2026-01-15 17:43:33 +08:00
Island 35ff0c786d Merge branch 'feat/ble_mesh_unify_crypto_v6.0' into 'release/v6.0'
Feat/ble mesh unify crypto v6.0

See merge request espressif/esp-idf!44818
2026-01-07 19:47:38 +08:00
Island 79a1d6dcaa Merge branch 'feat/ble_mesh_dfd_cli_support_v6.0' into 'release/v6.0'
feat(ble_mesh): dfd client/server supported v6.0

See merge request espressif/esp-idf!44135
2026-01-07 10:32:35 +08:00
luoxu a19a40066e feat(ble_mesh): unified ble mesh crypto 2026-01-06 15:01:03 +08:00
zhiweijian 9d88119a4e feat(ble/bluedroid): Supported Bludroid host encryption using TinyCrypt 2025-12-30 12:12:35 +08:00
luoxu 6e34934433 feat(ble_mesh): dfd client/server supported 2025-12-22 21:20:39 +08:00
Luo Xu 582b6c066e refactor(ble): modularize compressed log scripts for better maintainability
(cherry picked from commit 0cf6f50179)

Co-authored-by: luoxu <luoxu@espressif.com>
2025-11-25 10:40:42 +08:00
Linyan Liu fbf0e15694 feat(ble_mesh): Miscellaneous update for BLE Mesh 2025-11-13 17:12:04 +08:00
luoxu 1b1a646891 feat(ble_mesh): Adapt DFU/MBT to esp-idf 2025-10-21 17:22:22 +08:00
Rahul Tank 38364c0ef3 fix(nimble): Added CS service support 2025-10-14 16:21:17 +05:30
Rahul Tank 300bf85b45 feat(nimble): Base support for Channel sounding HCI command and events 2025-10-14 12:08:38 +05:30
luoxu eece778e55 feat(ble): Support ble log compression(draft) 2025-09-22 17:09:58 +08:00
Zhou Xiao b9dbc2ece7 feat(ble): refactored ble log module with layered design 2025-09-08 22:12:51 +08:00
Ivan Grokhotkov a939f410dd Merge branch 'bugfix/ldgen_prebuilt_library_placements' into 'master'
build: pass pre-built libraries to ldgen, clean up how blobs are added

Closes IDF-12049 and IDF-12736

See merge request espressif/esp-idf!40353
2025-08-19 10:50:31 +02:00
Liu Linyan 77c51051b9 feat(ble): ISO minor support for NimBLE Host 2025-08-18 12:02:19 +08:00
harshal.patil 55e0730a8d change(esp_hw_support): Move security-related modules to the esp_security component
- Also adds support to whitelist target specific expected dependency violations
in check_dependencies.py
2025-08-04 11:43:01 +05:30
Wang Meng Yang 61ccbbe7f0 Merge branch 'bugfix/fix_external_codec_build_issue' into 'master'
fix(bt/bluedroid): Fix build issue when using external sbc codec

Closes BT-4051

See merge request espressif/esp-idf!40554
2025-07-21 10:44:02 +08:00
Ivan Grokhotkov f45154b347 change(bt): use add_prebuilt_library to add blobs 2025-07-17 15:10:16 +08:00
Zhou Xiao 534b43e85a feat(ble): support ble log uart dma out 2025-07-17 10:48:17 +08:00
linruihao d5b14edec4 fix(bt/bluedroid): Fix build issue when using external sbc codec 2025-07-14 10:47:16 +08:00
Alexey Lapshin b65502f3f5 fix(bt): suppress -Wunterminated-string-initialization warning 2025-06-25 18:01:50 +07:00
luoxu 5f743900e7 feat(ble_mesh): unify tinycrypto component 2025-05-28 17:35:37 +08:00
linruihao 74fab3a7b1 refactor(bt/bluedroid): Refactor a2dp audio data path
- Refactor audio APIs, optimize audio data path, reduce memory copy operations
- Support using external codec in application layer
- The internal codec will not be compiled if not use
2025-03-28 14:13:20 +08:00
Island 16ba8f892d Merge branch 'feature/add_vendor_ble_cmd_definitions' into 'master'
Feature/add vendor ble cmd definitions

Closes BLERP-1684 and BLERP-1661

See merge request espressif/esp-idf!37598
2025-03-27 17:06:15 +08:00
Shen Weilong 990fea687d feat(ble/controller): Added memory boundary check for ESP32-C2 2025-03-25 15:09:00 +08:00
zhiweijian fcad8b7ebd feat(bt/bluedroid): Support BLE CTE in bluedroid host 2025-03-19 14:53:13 +08:00
zhiweijian 7128087646 feat(bt/bluedroid): Support BLE iso in bluedroid host 2025-03-19 14:53:13 +08:00
Geng Yuchao 8b6c55e17e fix(ble): Add link requires esp_phy for ble. 2025-03-17 10:44:21 +08:00
Shen Weilong ca6211bb46 feat(bt): support hardware ecc acceleration for bt tinycrypt 2025-03-06 16:20:13 +08:00
Shen Weilong 424d4b8938 change(bt): moved porting/ext/tinycrypt into common 2025-03-06 16:20:12 +08:00
zwl bc299e784c feat(ble): add a debug way to retain scene on ESP32-C6 2025-02-26 11:00:12 +08:00
Shen Weilong c2449607dc change(ble): Supported cuttable architecture for ble 2025-02-19 12:07:16 +08:00