Commit Graph

5581 Commits

Author SHA1 Message Date
Alexey Gerenkov
5e03bd0d7e Merge branch 'feature/update-openocd-to-v0.12.0-esp32-20260703_v5.2' into 'release/v5.2'
feat(tools): update openocd version to v0.12.0-esp32-20260703 (v5.2)

See merge request espressif/esp-idf!50507
2026-07-20 17:22:01 +08:00
Island
3379954a98 Merge branch 'feat/share_ble_uart_component_and_refresh_docs_v5.2' into 'release/v5.2'
docs(ble): add ESP-BLE-UART companion guide

See merge request espressif/esp-idf!50630
2026-07-15 14:02:47 +08:00
morris
ca2635245b Merge branch 'contrib/github_pr_18677_v5.2' into 'release/v5.2'
fix(uart): fix threshold configuration loss when interrupts are disabled (v5.2)

See merge request espressif/esp-idf!50528
2026-07-15 11:57:25 +08:00
Zhou Xiao
4bc65ebd82 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-07-10 16:44:44 +08:00
zhiweijian
eb40c51701 feat(bt): add shared ble_uart component and update ble_uart_service/docs 2026-07-10 16:43:27 +08:00
guozifan
1b0c42c86e remove(ble): migrate BLE Log Console out of ESP-IDF 2026-07-10 15:21:35 +08:00
Song Ruo Jing
9573cefab7 fix(stdio): add console input ability when selects ESP_CONSOLE_UART_CUSTOM_NUM_1 2026-07-08 22:17:30 +08:00
Samuel Obuch
ef42e0683e feat(tools): update openocd version to v0.12.0-esp32-20260703 2026-07-08 13:29:52 +02:00
yiwenxiu
8ce55d89b3 ci: seperate openthread test cases 2026-06-26 15:14:01 +08:00
Zhang Hai Peng
6d3c288a6e refactor(bt): migrate bt_hci_to_btsnoop to esp-pylib
Replace argparse with rich-click and use esp_pylib.logger for
standardized console output and fatal error handling.


(cherry picked from commit 3a7896f2c5)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2026-06-16 15:34:00 +08:00
Zhou Xiao
889ec5f187 docs(ble): update bridge docs and troubleshooting 2026-05-25 16:56:26 +08:00
Zhou Xiao
328fefdf9f fix(ble): handle notification setup failures 2026-05-25 16:56:22 +08:00
Zhou Xiao
ff7add6846 fix(ble): remove BLE service UUID scan filter 2026-05-25 16:56:17 +08:00
Zhou Xiao
5846b61ddf fix(ble): handle permission reply fallbacks 2026-05-25 16:54:20 +08:00
Zhou Xiao
6255a80157 fix(ble): fixed edge case issues from ai reviewer 2026-05-25 16:54:16 +08:00
Zhou Xiao
e1406b30da feat(tools): improve ble uart reconnect ux 2026-05-25 16:54:11 +08:00
Zhou Xiao
63bc85d398 feat(tools): add opencode ble uart bridge demo 2026-05-25 16:54:07 +08:00
Jiang Jiang Jian
26b14e44b1 Merge branch 'feat/support_ble_uart_service_v5.2' into 'release/v5.2'
Feat/support ble uart service (5.2)

See merge request espressif/esp-idf!47996
2026-05-22 17:43:05 +08:00
Fu Hanxi
d611f4a7a4 Merge branch 'ci/stable-build-jobs-v5.2' into 'release/v5.2'
Ci/stable build jobs v5.2

See merge request espressif/esp-idf!48719
2026-05-21 10:16:24 +02:00
Jiang Jiang Jian
8c3a1c0f87 Merge branch 'fix/clang-binutils-override_v5.2' into 'release/v5.2'
fix(tools): reorder clang and GNU toolchains to prefer GNU binutils (v5.2)

See merge request espressif/esp-idf!48245
2026-05-20 17:55:13 +08:00
Jiang Jiang Jian
78849dee69 Merge branch 'feature/update-openocd-to-v0.12.0-esp32-20260424_v5.2' into 'release/v5.2'
feat(tools): update openocd version to v0.12.0-esp32-20260424 (v5.2)

See merge request espressif/esp-idf!48237
2026-05-20 17:55:08 +08:00
Jiang Jiang Jian
1138d7584d Merge branch 'ci/update_integration_pipeline_v5.2' into 'release/v5.2'
ci: backport integration test and build docker (v5.2)

See merge request espressif/esp-idf!48390
2026-05-20 10:36:56 +08:00
Fu Hanxi
0a51adb539 ci: log per-job ccache stats 2026-05-20 09:51:39 +08:00
Fu Hanxi
4a652be65d feat(build): support env var IDF_PY_BUILD_JOBS for ninja jobs 2026-05-20 09:50:51 +08:00
Radim Karniš
808b73fe9a change(version): Update version to 5.2.7 2026-05-18 10:15:21 +02:00
Chen Yudong
bc25aad126 ci: optimize layer cache for docker build test
use different image tag for different concurrent job
2026-05-11 18:31:51 +08:00
Chen Yudong
ed7e69d9e9 ci: move integration-test to ci/actions 2026-05-11 17:33:18 +08:00
Alexey Lapshin
1189b2e76b fix(tools): reorder clang and GNU toolchains to prefer GNU binutils 2026-05-07 19:02:36 +07:00
Erhan Kurubas
b932b41795 feat(tools): update openocd version to v0.12.0-esp32-20260424 2026-05-07 09:41:29 +02:00
Mahavir Jain
2dcb180d85 Merge branch 'fix/fix_esp_local_ctrl_potential_double_free_v5.2' into 'release/v5.2'
fix(esp_local_ctrl): fixes a potential double free (v5.2)

See merge request espressif/esp-idf!48025
2026-05-05 15:44:55 +05:30
Ashish Sharma
2d582c3f80 fix(esp_local_ctrl): fixes a potential double free 2026-04-28 15:11:30 +08:00
Ashish Sharma
450ccdcb9a fix(wifi_provisioning): fixes memory leak on OOM 2026-04-28 15:06:12 +08:00
Zhou Xiao
8faeca070d feat(ble): add BLE UART daemon notify API 2026-04-28 13:31:23 +08:00
Zhou Xiao
7f714384f3 docs(ble): document BLE UART bridge usage 2026-04-28 13:31:23 +08:00
Zhou Xiao
7e8bbf2e00 feat(ble): wire BLE UART bridge CLI 2026-04-28 13:31:23 +08:00
Zhou Xiao
3103b1c442 feat(ble): add BLE UART daemon RPC API 2026-04-28 13:31:22 +08:00
Zhou Xiao
75f5de65b2 feat(ble): add BLE UART bridge console 2026-04-28 13:31:22 +08:00
Zhou Xiao
4556970ebb feat(ble): add BLE UART bridge core 2026-04-28 13:31:22 +08:00
Island
d4ce96fa47 Merge branch 'dev/ble-log-202603_v5.2' into 'release/v5.2'
dev: BLE Log 202603 (5.2)

See merge request espressif/esp-idf!47273
2026-04-08 10:32:35 +08:00
Zhou Xiao
da207b1706 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 11:52:43 +08:00
Zhou Xiao
243d5b82f1 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 11:50:56 +08:00
Zhou Xiao
3236123cb4 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 11:50:15 +08:00
Zhou Xiao
a11bde6fd0 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 11:50:09 +08:00
Zhou Xiao
adcf6cb75f 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 11:49:31 +08:00
Zhou Xiao
e40fd6753d 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 11:44:55 +08:00
Zhou Xiao
cbbc495825 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 11:44:49 +08:00
luoxu
99c115e259 remove(ble_mesh): deprecate the tinycrypt library within the Bluetooth Mesh component 2026-04-01 00:21:39 +08:00
Erhan Kurubas
b0143fe36d feat(tools): update openocd version to v0.12.0-esp32-20260304 2026-03-12 08:56:09 +01:00
Alexey Gerenkov
3e64bdb5eb Merge branch 'fix/coredump_test_tcb_corrupted_v5.2' into 'release/v5.2'
test(espcoredump): fix test for corrupted TCB handling in coredump (v5.2)

See merge request espressif/esp-idf!45330
2026-02-05 18:39:25 +08:00
Erhan Kurubas
8e0bf353bf ci(panic): add retry logic to espcoredump subprocess call 2026-01-21 08:35:12 +03:00