Commit Graph
100 Commits
Author SHA1 Message Date
Zhou Xiao 2d91fe9b77 fix(bt): keep BLE log ISR state in internal RAM
(cherry picked from commit 2fa434eb50)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-07-21 19:44:16 +08:00
Zhou Xiao 98ca927cff fix(ble_log): use BIT64 over BIT to support 64-bit IO setup
(cherry picked from commit a2876d304e)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-07-03 12:04:57 +08:00
Zhou Xiao 55364e0dd7 change(ble): [AUTO_MR] Update lib_esp32c6 to a6519790
(cherry picked from commit 226a0483b1)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-07-01 10:35:31 +08:00
Zhou Xiao 474af5b309 change(ble): [AUTO_MR] Update lib_esp32c5 to a6519790
(cherry picked from commit a43358587c)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-07-01 10:35:31 +08:00
Zhou Xiao 3af6a43d3d change(ble): [AUTO_MR] Update lib_esp32h2 to a6519790
(cherry picked from commit 8a744e8e93)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-07-01 10:35:31 +08:00
Zhou Xiao 81754d9692 change(ble): [AUTO_MR] updated rom linker script for ESP32-C2
(cherry picked from commit de95581c6811463b22b2f9a1fd15f521b5032f2c)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-06-17 19:51:33 +08:00
Zhou Xiao a2e0eb62bc change(ble): [AUTO_MR] Update lib_esp32c2 to 750d4902
(cherry picked from commit 897f3b2af1)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-06-17 19:51:33 +08:00
Zhou Xiao b214034f6e docs(ble): add ESP-BLE-UART companion guide
Move the OpenCode companion guide into the ble_uart_service example.

Add English and Chinese Markdown guides with image assets.

Keep ESP-BLE-UART naming consistent across the example and bridge tooling.


(cherry picked from commit 926111e721)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-06-08 14:14:45 +08:00
Zhou Xiao d390fc1f5f change(ble_log): reverted default ble log buffer size to 2048 bytes
(cherry picked from commit cce5bd6e51)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-06-05 15:07:42 +08:00
Zhou Xiao ed959163a2 change(ble_log): move spi tx callback to flash when spi isr in iram disabled
(cherry picked from commit 725e9ee162)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-05-26 19:34:41 +08:00
Zhou Xiao 2f35704c8d fix(ble): added missed dataclass decorator for backport 2026-05-15 18:37:44 +08:00
Zhou Xiao 211fda9763 docs(ble): update bridge docs and troubleshooting 2026-05-09 19:43:52 +08:00
Zhou Xiao a0dd9064a0 fix(ble): handle notification setup failures 2026-05-09 19:43:46 +08:00
Zhou Xiao ec2fe6a73a fix(ble): remove BLE service UUID scan filter 2026-05-09 19:43:42 +08:00
Zhou Xiao 4e7ad7a3ef fix(ble): handle permission reply fallbacks
(cherry picked from commit ad7189e7dd)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-05-09 10:52:07 +08:00
Zhou Xiao 1bfe8a806d fix(ble): fixed edge case issues from ai reviewer
(cherry picked from commit fa8ca07e58)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-05-09 10:52:07 +08:00
Zhou Xiao e10999a791 feat(tools): improve ble uart reconnect ux
(cherry picked from commit 956299d988)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-05-09 10:52:07 +08:00
Zhou Xiao d2de518955 feat(tools): add opencode ble uart bridge demo
(cherry picked from commit 0b07f41e5a)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-05-09 10:52:06 +08:00
Zhou Xiao b976ab9586 feat(ble): add BLE UART bridge core 2026-04-28 13:46:04 +08:00
Zhou Xiao 4ceb950dc1 fix(ble): support Python 3.9 type annotations 2026-04-28 12:15:27 +08:00
Zhou Xiao 11447dd9ad feat(ble): add BLE UART daemon notify API 2026-04-28 11:18:21 +08:00
Zhou Xiao 044339c29c docs(ble): document BLE UART bridge usage 2026-04-28 11:18:21 +08:00
Zhou Xiao 3961ad0e29 feat(ble): wire BLE UART bridge CLI 2026-04-28 11:18:21 +08:00
Zhou Xiao f1733f544d feat(ble): add BLE UART daemon RPC API 2026-04-28 11:18:21 +08:00
Zhou Xiao 539ee0503c feat(ble): add BLE UART bridge console 2026-04-28 11:18:21 +08:00
Zhou Xiao 31e0ef14a8 fix(ble_log): ensure BLE Log IRAM functions are placed in IRAM on ESP32C2
On ESP32C2 with BT_CTRL_RUN_IN_FLASH_ONLY, the bt_default linker scheme
routes .iram1 sections to flash_text, causing BLE_LOG_IRAM_ATTR functions
to end up in flash instead of IRAM. Define a dedicated .ble_log_iram1
section for ESP32C2 and route it to iram0_bt_text unconditionally.


(cherry picked from commit a9b93ca0e5)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-04-14 13:14:15 +08:00
Zhou Xiao eef3374d46 fix(ble_log): improve robustness with atomics, macro hygiene, and IRAM
- Use __atomic_fetch_add for stat_mgr counters to prevent lost updates
  under concurrent ISR/task access (H1)
- Use __atomic_load_n with ACQUIRE ordering for ref_count spin-loops (L1)
- Remove unnecessary BLE_LOG_IRAM_ATTR from ble_log_rt_task since it
  calls flash-resident functions and cannot run during flash ops (L3)
- Add parentheses to BLE_LOG_TRANS_FREE_SPACE and BLE_LOG_MAKE_FRAME_META
  macro parameters to prevent operator precedence bugs (M6)


(cherry picked from commit 59536316c9)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-04-14 13:14:14 +08:00
Zhou Xiao 79e119b6b4 fix(ble_log): fix deinit race and concurrent flush deadlock
- Reorder deinit: stop RT task before destroying peripheral driver to
  prevent sending transports to a NULL dev_handle on dual-core (H2)
- Drain remaining queue items in rt_deinit to clean up transport state
- Add atomic flush_in_progress guard to prevent two concurrent
  ble_log_flush() callers from deadlocking on ref_count spin-wait (H5)


(cherry picked from commit 1275b78ad6)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-04-14 13:14:14 +08:00
Zhou Xiao dbc2bb134d fix(ble_log): fix crash and resource issues in peripheral drivers
- Handle scheduler-suspended and ISR context in UART redirect path
  to prevent xSemaphoreTake crash during light sleep (C1)
- Check uart_driver_install return value before setting inited flag (M1)
- Always clean up SPI device handle in deinit even if acquire_bus fails (M4)


(cherry picked from commit 3f8cfc5b1d)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-04-14 13:14:13 +08:00
Zhou Xiao 17b9df24c0 fix(ble_log): handle scheduler-suspended state in ble_log_rt_queue_trans
During light sleep transitions, the FreeRTOS scheduler is suspended but
xPortInIsrContext() returns false, causing xQueueSend with portMAX_DELAY
to hit a configASSERT. Add a check for taskSCHEDULER_SUSPENDED and use
a non-blocking send with rollback on queue-full to avoid resource leaks.


(cherry picked from commit 92979706d7)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-04-14 13:14:13 +08:00
Zhou Xiao e31a9b5d9b fix(ble_log_console): use typing.Optional/Union for Python 3.9 mypy compat
Replace Python 3.10+ X|Y union syntax with Optional/Union and remove
@dataclass(slots=True) to fix mypy pre-commit failures on Python 3.9.
2026-04-07 16:34:57 +08:00
Zhou Xiao da680aa29a fix(ble_log_console): exclude from idf-ci pytest collection to fix CI
idf-ci discovers pyproject.toml pytest config and runs a separate
collection pass with --target all, which finds 0 target tests and
raises RuntimeError. Add to .idf_ci.toml exclude_dirs instead of
deleting tests. Restore all 227 unit tests with lint/mypy fixes.
2026-04-07 12:28:59 +08:00
Zhou Xiao 5288d2a246 docs(ble_log): update README for multi-buffer transport and removed modules
Reflect changes from dev/ble-log-202603: ping-pong to multi-buffer
transport (4 buffers/LBM), renamed Kconfig options (LBM_TRANS_SIZE →
LBM_TRANS_BUF_SIZE with new defaults), always-enabled checksum and
enhanced statistics, UART redirection support, UHCI Out removal,
SPI Out deprecation, and updated memory estimation.
2026-04-07 12:28:59 +08:00
Zhou Xiao 3b2852b9ee feat(bt): add BT_LOG_CRITICAL_ONLY bandwidth-optimized log mode
Add Kconfig options for bandwidth-optimized logging via the BLE Log
Async Output system. When enabled, controller log levels default to 2
and host/mesh log encoding is auto-selected.

- BT_LOG_CRITICAL_ONLY parent: selects BLE_LOG_ENABLED + compression
- BT_LOG_CRITICAL_ONLY_CTRL: supports both NimBLE and non-NimBLE (C3)
  controllers with default level override
- BT_LOG_CRITICAL_ONLY_HOST: host-agnostic, selects compressed log
  for Bluedroid conditionally
- BT_LOG_CRITICAL_ONLY_MESH: placeholder for mesh log encoding
- Guards against BT_STACK_NO_LOG conflict
2026-04-07 12:28:59 +08:00
Zhou Xiao eb9f36be48 docs(ble_log_console): update user guides for new features and run/build scripts
- Recommend run.sh/run.bat as primary launch method with Launch Screen description
- Add build.sh/build.bat section for standalone executable packaging
- Document buffer utilization screen (m key) and two-table stats layout (d key)
- Update menuconfig path, status panel format, and Kconfig option names
- Remove obsolete textual ModuleNotFoundError troubleshooting
- Simplify manual configuration to single toggle (defaults cover most cases)
- Fix ESP32 -> ESP chip in introduction
2026-04-07 12:28:59 +08:00
Zhou Xiao 51c280d361 change(bt): consolidate BLE log Kconfig into common/Kconfig.in
Move per-chip BLE log Kconfig options (esp32c2/c5/c6/h2) into
components/bt/common/Kconfig.in for single-source-of-truth configuration.

Restructure menu as "BT Logs" with "Log Sources" sub-menu containing
controller log config options. Controller log output mode choice defaults
to BLE Log v2 when BLE_LOG_ENABLED, with legacy mode as deprecated
fallback. Migrate wrap_panic_handler and task_wdt_user_handler configs
as well since they depend on BT_LE_CONTROLLER_LOG_ENABLED.
2026-04-07 12:28:59 +08:00
Zhou Xiao 5484704db5 change(ble_log): update ble log module description 2026-04-07 12:28:59 +08:00
Zhou Xiao fd40b4c0b9 feat(bt/ble_log): add cross-pool buffer fallback in LBM acquire
Replace the two-step acquire() + get_trans() flow with a unified
acquire_trans() that iterates all candidate pools. When a pool's
buffers are exhausted, the lock is released and the next pool is
tried, enabling load balancing across pools instead of only
resolving lock contention.
2026-04-07 12:28:59 +08:00
Zhou Xiao 031e04cc65 feat(ble_log_console): add buffer utilization tracker and display
Add BufUtilTracker to record per-LBM inflight peak data, wire it
through StatsAccumulator and StatsUpdated message for thread-safe
delivery to the UI. Buffer utilization is displayed in a dedicated
BufUtilScreen accessible via the 'm' keybinding, separate from
the frame stats screen ('d').

Also reject false INIT_DONE frames with version==0 caused by
misaligned data during parser sync, preventing spurious stats resets.
2026-04-07 12:28:59 +08:00
Zhou Xiao 602fd8a317 feat(ble_log_console): add BUF_UTIL internal frame decoding
Add BUF_UTIL=5 to InternalSource, BufUtilPool enum, BufUtilResult
TypedDict, BufUtilEntry dataclass, and name resolution helpers.
Add decode branch in internal_decoder with pool/index extraction
from the packed lbm_id field. Tests cover valid decode, pool/index
extraction, and truncated payload handling.
2026-04-07 12:28:59 +08:00
Zhou Xiao 705b8a02b5 fix(bt/ble_log): use atomic_load for inflight_peak in buf_util report
Replace __atomic_exchange_n with __atomic_load_n in
ble_log_emit_buf_util() so inflight_peak reports the all-time peak
since init rather than resetting to zero after each report.
2026-04-07 12:28:59 +08:00
Zhou Xiao 8b4458342e feat(ble_log): migrate from ping-pong to multi-buffer transport
Migrate all LBM, RT, and peripheral backend code from 2-buffer
ping-pong to 4-buffer transport with bitmask index arithmetic.

LBM changes:
- Init sets owner on each transport buffer
- get_trans/flush/dump use (idx+1) & (cnt-1) instead of !idx
- get_trans/flush use __atomic_load_n(ACQUIRE) for prph_owned
- New ble_log_write_buf_util() emits BUF_UTIL telemetry frames,
  exchange peak with 0 to avoid stale baseline after bursts

RT changes:
- Queue depth uses unified BLE_LOG_TRANS_TOTAL_CNT
- rt_queue_trans uses __atomic_store_n for prph_owned, tracks
  per-LBM inflight count and peak via lock-free CAS
- ISR path captures pxHigherPriorityTaskWoken and yields

Peripheral changes:
- All tx_done callbacks: decrement inflight before releasing
  prph_owned with __atomic_store_n(RELEASE)
- SPI/UART send_trans error paths: decrement inflight and
  release prph_owned to allow retry on next get_trans pass
- Dummy send_trans: recycle buffer immediately (pos=0, decrement
  inflight, release prph_owned) since no DMA hardware to wait for
- Redir LBM upgraded to 4-buffer with owner and reset support
- All peripherals implement ble_log_prph_reset_util_counters()
2026-04-07 12:28:59 +08:00
Zhou Xiao ec30e32dd1 feat(ble_log): define multi-buffer transport types and Kconfig
Replace ping-pong (2-buffer) transport constants with configurable
multi-buffer (4-buffer) types. Add buffer utilization reporting types,
unified queue depth derivation macros, and compile-time guards.

Rename Kconfig options to total-per-LBM semantics:
- BLE_LOG_LBM_TRANS_SIZE (512) -> BLE_LOG_LBM_TRANS_BUF_SIZE (2048)
- BLE_LOG_LBM_LL_TRANS_SIZE (1024) -> BLE_LOG_LBM_LL_TRANS_BUF_SIZE (2048)

Key type changes:
- ble_log_prph_trans_t: volatile bool -> plain bool (atomic ops used),
  add void *owner back-reference
- ble_log_lbm_t: trans array sized to BLE_LOG_TRANS_BUF_CNT (4),
  add trans_inflight and trans_inflight_peak counters
- BLE_LOG_TRANS_BUF_CNT replaces BLE_LOG_TRANS_PING_PONG_BUF_CNT
- New ble_log_buf_util_t for buffer utilization telemetry
- _Static_assert guards for divisibility, power-of-2, index limits
2026-04-07 12:28:59 +08:00
Zhou Xiao b3f7500f71 feat(ble_log_console): add CLI entry point, build scripts, and docs
- Click-based CLI entry point (console.py) with --port, --baudrate,
  --log-dir options and interactive Launch Screen when --port omitted
- Deprecation warning for --output CLI flag
- 'ls' subcommand to list saved capture files
- PyInstaller build scripts (build.sh, build.bat, build_exe.py)
- Convenience run scripts (run.sh, run.bat)
- README rewrite with installation, usage, architecture docs, and
  troubleshooting guide
- User guides in English and Chinese
- Remove old single-file ble_log_console.py
- Register new scripts in executable-list.txt
2026-04-07 12:28:59 +08:00
Zhou Xiao ee1d8a277e feat(ble_log_console): add Textual frontend and app wiring
TUI frontend built on Textual with thread-safe backend integration:

- Launch screen with port/baud/log-dir selection and auto-refresh
- Log view with scrollable RichLog and color-coded write methods;
  Rich markup escaped to prevent crash on bracket characters
- Stats screen split into two tables by time base:
  - Firmware Counters (since chip init): Written and Buffer Loss
  - Console Measurements (since console start): Average Throughput
    and Peak Write — each with separate frames and bytes sub-columns
  - Column widths constrained with min_width/max_width for stable layout
  - Division-by-zero guard when peak window is zero
- Shortcut screen overlay
- Status panel with sync state, checksum mode, and transport metrics;
  speed display uses named UART_BITS_PER_BYTE constant
- Main app wiring: UART reader thread with threading.Lock for serial
  access, frame parser pipeline, stats emission via StatsUpdated
  messages (including funnel snapshots via public accessor for
  thread-safe delivery), BackendStopped message for disconnect
- BackendStopped posted on open_serial failure (prevents stuck status)
- Select.BLANK guard for baud rate in launch screen
- Explicit None guards replace asserts in backend worker
- Wall-clock burst tracking for REDIR frames (no chip-side timestamp)
- SN gap alerts (FrameLossDetected) and traffic spike notifications
2026-04-07 12:28:59 +08:00
Zhou Xiao 956f4b1b69 feat(ble_log_console): add backend with frame parser, stats, and data models
Modular backend for the BLE log console rewrite:

- Frame parser with sync state machine and checksum auto-detection
  (4 modes: XOR/Sum x Full/Header-only); handles incomplete frames
  during re-sync search when previously synced
- Internal frame decoder (INIT_DONE, ENH_STAT, FLUSH, INFO)
- Data models: SourceCode, FrameByteCount, FunnelSnapshot, LossType
- Stats package with composition-root StatsAccumulator orchestrating:
  - TransportMetrics (RX bytes, lifetime-average throughput)
  - FirmwareLossTracker / FirmwareWrittenTracker (ENH_STAT deltas
    with first-report absolute value initialization)
  - SNGapTracker (sliding window reorder-tolerant SN gap detection)
  - PeakBurstTracker (per-source sliding window burst density)
  - TrafficSpikeDetector (wire utilization spike detection)
  - Wall-clock burst tracker for non-timestamped sources (REDIR)
- Torn-read guard on ENH_STAT reports (baudrate-based plausibility)
  with prev-state update on discard to prevent cascading drops
- Console-local metrics (TransportMetrics, PeakBurstTracker) preserved
  across INIT_DONE resets; only ENH_STAT-coupled components reset
- UART transport with port validation and exclusive serial access
- Comprehensive test suite (17 test files, 223 tests)
2026-04-07 12:28:59 +08:00
Zhou Xiao 2099d27a76 feat(ble_log): consume frame_sn on loss path and bump BLE_LOG_VERSION
Add BLE_LOG_GET_FRAME_SN() on the buffer-full loss path so the SN
counter advances even when frames are dropped. This allows the console
to detect firmware-side buffer loss via SN gaps. Bump BLE_LOG_VERSION
to reflect the semantic change.
2026-04-07 12:28:59 +08:00
Zhou Xiao e6cb5ee3cb 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
2026-04-07 12:28:59 +08:00
Zhou Xiao cf297c7718 fix(bt/ble_log): fix flush timer callback in UART redirect module
Fix incorrect esp_timer callback signature, replace blocking mutex
with non-blocking trylock, add prph_inited guard, correct timer
period from 100us to 1s, and remove fragile idle-based flush logic.
2026-04-07 12:28:59 +08:00
Zhou Xiao 7ebb8343d5 fix(bt/ble_log): use aligned counters in ble_log_stat_mgr_t
Replace embedded ble_log_enh_stat_t (packed wire struct) inside
ble_log_stat_mgr_t with flat uint32_t counters. Natural 4-byte
alignment ensures each load/store compiles to a single l32i/s32i
on Xtensa/RISC-V, making individual field access atomic without
locks.

Build the packed wire format on the stack inside a critical section
in ble_log_write_enh_stat() so the full snapshot is consistent.
2026-04-07 12:28:59 +08:00
Zhou Xiao d9f109b66b change(bt/ble_log): make checksum and enhanced statistics always enabled
Remove CONFIG_BLE_LOG_PAYLOAD_CHECKSUM_ENABLED conditional compilation
-- payload checksum is always computed over the full frame.

Remove CONFIG_BLE_LOG_XOR_CHECKSUM_ENABLED conditional -- XOR checksum
is always used; delete the sum checksum dead code path.

Remove CONFIG_BLE_LOG_ENH_STAT_ENABLED conditional -- enhanced
statistics (frame/byte counters per source) are always active.

Remove incorrect select on choice symbol
BT_LE_CONTROLLER_LOG_MODE_BLE_LOG_V2 from BLE_LOG_IS_ESP_CONTROLLER.
2026-04-07 12:28:59 +08:00
Zhou Xiao dbff06632f 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.
2026-04-07 12:28:59 +08:00
Zhou Xiao f56b739d33 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.
2026-04-07 12:28:41 +08:00
Zhou Xiao 18f234923a 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").


(cherry picked from commit 8fd5dbb730)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-03-05 13:13:27 +08:00
Zhou Xiaoandcjin 6e59e1bf4f feat(ble): support sid filter feature on ESP32H2
(cherry picked from commit e4e42f0166)

Co-authored-by: cjin <jinchen@espressif.com>
2026-01-21 16:14:26 +05:30
Zhou Xiaoandcjin fac081442c feat(ble): support sid filter feature on ESP32C5
(cherry picked from commit debd743a0b)

Co-authored-by: cjin <jinchen@espressif.com>
2026-01-21 16:14:26 +05:30
Zhou Xiao 63025accd3 change(ble): [AUTO_MR] Update lib_esp32c6 to 17fdc66e
(cherry picked from commit 54e5f358bf)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-01-21 16:14:26 +05:30
Zhou Xiao 666086a33d change(ble): [AUTO_MR] Update lib_esp32c5 to 17fdc66e
(cherry picked from commit 7631a6f158)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-01-21 16:14:26 +05:30
Zhou Xiao 90ad25a0c9 change(ble): [AUTO_MR] Update lib_esp32h2 to 17fdc66e
(cherry picked from commit 57b4819474)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-01-21 16:14:26 +05:30
Zhou Xiao 6b442e969e feat(ble): added sdkconfig to control ble host side hci log
(cherry picked from commit 52c2bd2dd6)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-01-15 19:33:38 +08:00
Zhou Xiao ec6abe1537 feat(ble): supported ble log v2 hci log for Bluedroid host 2026-01-15 19:33:38 +08:00
Zhou Xiao f72669602e feat(ble): supported ble log v2 hci log for NimBLE host 2026-01-15 19:33:38 +08:00
Zhou Xiao ed00cb4e00 feat(ble): support ll log payload length limit for ble log v2
(cherry picked from commit 82ee820cf8)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-01-15 19:33:38 +08:00
Zhou Xiao f6929c26d3 change(ble): optimized os_mbuf_copydata thread safety protection
(cherry picked from commit 52754b1aa4)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-01-15 19:33:37 +08:00
Zhou Xiao 861b816965 fix(ble): fixed use-after-free in bluedroid attp
(cherry picked from commit 78594e0f6e)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-01-15 19:13:24 +08:00
Zhou Xiao c37e949021 change(ble): [AUTO_MR] Update lib_esp32c6 to acf48208
(cherry picked from commit 69522eaedb)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-01-08 21:13:43 +08:00
Zhou Xiao eb3d2510eb change(ble): [AUTO_MR] Update lib_esp32c5 to acf48208
(cherry picked from commit d61e0bf975)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-01-08 21:13:43 +08:00
Zhou Xiao 7e832133d5 change(ble): [AUTO_MR] Update lib_esp32h2 to acf48208
(cherry picked from commit 32b41c88e0)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-01-08 21:13:42 +08:00
Zhou Xiao 0394fe266c fix(ble): fixed cache error risk in ble log module 2026-01-05 19:25:29 +08:00
Zhou Xiao df013bae45 feat(ble): provide isr dispatch method option for ble log ts 2026-01-05 19:25:29 +08:00
Zhou Xiao a82ca85558 fix(ble): add esp timer trigger back for timestamp synchronization
(cherry picked from commit d1a5804de9)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-01-05 19:25:29 +08:00
Zhou Xiao e763455cd9 change(ble): [AUTO_MR] Update lib_esp32c2 to 9f051857
(cherry picked from commit 7ebf1c8d15)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-12-30 13:13:23 +08:00
Zhou Xiao a961d7da47 fix(ble): added null pointer check in ble log ts submodule
(cherry picked from commit 2b9c7471d0)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-12-24 17:05:04 +08:00
Zhou Xiao 4c21f792fa fix(ble): added missed ts sync reset
(cherry picked from commit d1d07eb60a)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-12-24 17:05:04 +08:00
Zhou Xiao 05ff6f2d95 feat(ble): added xor checksum for integrity check performance optimization
(cherry picked from commit c604afa272)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-12-24 17:05:03 +08:00
Zhou Xiao 7e93257ed1 fix(ble): added missed spin lock initialization
(cherry picked from commit 069262e513)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-12-18 17:13:38 +08:00
Zhou Xiao 63ceae8dd9 feat(ble): enabled lc get time for ceva controller
(cherry picked from commit 6924b8b372)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-12-01 11:10:35 +08:00
Zhou Xiao b940b46af1 fix(ble): put ble_log_write_hex in iram to avoid cache error
(cherry picked from commit dc4e41fab8)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-12-01 11:10:35 +08:00
Zhou Xiao a18213cc8a change(ble): [AUTO_MR] Update lib_esp32c5 to b6027aeb 2025-11-18 00:07:10 +08:00
Zhou Xiao 5811c72e6a change(ble): [AUTO_MR] Update lib_esp32c6 to b6027aeb 2025-11-18 00:07:10 +08:00
Zhou Xiao bef5b134a7 change(ble): [AUTO_MR] Update lib_esp32h2 to b6027aeb 2025-11-18 00:07:10 +08:00
Zhou Xiao e83efa9767 change(ble): [AUTO_MR] updated rom linker script for ESP32-C2 2025-11-18 00:07:10 +08:00
Zhou Xiao d6d882b82f change(ble): [AUTO_MR] Update lib_esp32c2 to 27b6e1dc 2025-11-18 00:07:10 +08:00
Zhou Xiao 7bbe3c9d06 feat(phy): ESP32-C5 ECO2/ECO3 coex and ESP32-C6 track reset
* C5 phy_version: 1 107, 8c534c84, Nov 17 2025
* C6 phy_version: 343, b513b46, Nov 14 2025


(cherry picked from commit 5286451f2e)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-11-17 14:31:32 +08:00
Zhou Xiao db3d0646b8 fix(ble): increase default ble log stack size for xtensa chips
(cherry picked from commit 3e0d005987)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-11-12 17:13:57 +08:00
Zhou Xiao c087ced66f fix(ble): fixed hci event log when link layer logging is disabled
(cherry picked from commit 777f21783b)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-10-30 21:13:16 +08:00
Zhou Xiaoandzhaoweiliang 6ca39fa25d feat(ble): add priority level config on ESP32-C5
(cherry picked from commit 96bdca38a1)

Co-authored-by: zhaoweiliang <zhaoweiliang@espressif.com>
2025-10-23 15:12:43 +08:00
Zhou Xiaoandzhaoweiliang aa670c11d2 feat(ble): add priority level config on ESP32-H2
(cherry picked from commit 75f2b8d4a1)

Co-authored-by: zhaoweiliang <zhaoweiliang@espressif.com>
2025-10-23 15:12:42 +08:00
Zhou Xiaoandzhaoweiliang 3607361b62 feat(ble): add priority level config on ESP32-C6
(cherry picked from commit 09337109b7)

Co-authored-by: zhaoweiliang <zhaoweiliang@espressif.com>
2025-10-23 15:12:42 +08:00
Zhou Xiao 031f6255d6 change(ble): [AUTO_MR] updated rom linker script for ESP32-C2
(cherry picked from commit 557b7bae2e)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-10-23 15:12:41 +08:00
Zhou Xiao 57436ebe50 change(ble): [AUTO_MR] Update lib_esp32c2 to 283861b8
(cherry picked from commit ee2c7247fb)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-10-23 15:12:41 +08:00
Zhou Xiao 0fb894de51 change(ble): [AUTO_MR] Update lib_esp32c6 to a76948d4
(cherry picked from commit f4d881ff59)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-10-23 15:12:41 +08:00
Zhou Xiao c0a9bfad60 change(ble): [AUTO_MR] Update lib_esp32c5 to a76948d4
(cherry picked from commit f4ebf33964)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-10-23 15:12:40 +08:00
Zhou Xiao 8db0057731 change(ble): [AUTO_MR] Update lib_esp32h2 to a76948d4
(cherry picked from commit ab5c1b0e3b)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-10-23 15:12:40 +08:00
Zhou Xiao dec62e60f4 fix(ble): copy acl data by omdata buffer copy
(cherry picked from commit 322eb33f0d)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-10-13 09:13:53 +08:00
Zhou Xiao 3d7a2d32e3 change(ble): [AUTO_MR] updated rom linker script for ESP32-C2 2025-10-11 11:12:45 +08:00
Zhou Xiao f83d1937a1 change(ble): [AUTO_MR] Update lib_esp32c2 to 58398575 2025-10-11 11:12:45 +08:00
Zhou Xiao 4d9b3c87a0 change(ble): [AUTO_MR] Update lib_esp32c6 to 390a8efd 2025-10-11 11:12:45 +08:00
Zhou Xiao 8c92cb3281 change(ble): [AUTO_MR] Update lib_esp32c5 to 390a8efd 2025-10-11 11:12:45 +08:00
Zhou Xiao 76823b60cf change(ble): [AUTO_MR] Update lib_esp32h2 to 390a8efd 2025-10-11 11:12:45 +08:00