UART-controlled ESP32 peripheral for automated E2E Bluetooth testing. Dual-mode (Classic BT + BLE) via Bluedroid on original ESP32. Firmware (ESP-IDF v5.x, 2511 lines C): - NDJSON protocol over UART1 (115200 baud) - System commands: ping, reset, get_info, get_status - Classic BT: GAP, SPP, all 4 SSP pairing modes - BLE: GATTS, advertising, GATT service/characteristic management - 6 device personas: headset, speaker, keyboard, sensor, phone, bare - Event reporter: thread-safe async event queue to host Python MCP server (FastMCP, 1626 lines): - Async serial client with command/response correlation - Event queue with wait_for pattern matching - Tools: connection, configure, classic, ble, persona, events - MCP resources: esp32://status, esp32://events, esp32://personas Tests: 74 unit tests passing, 5 integration test stubs (skip without hardware)
17 lines
458 B
Python
17 lines
458 B
Python
"""E2E test: SSP Numeric Comparison pairing between Linux and ESP32."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import pytest
|
|
|
|
from .conftest import requires_esp32
|
|
|
|
|
|
@requires_esp32
|
|
class TestSSPNumericComparison:
|
|
"""Both sides display a 6-digit passkey; both must confirm to pair."""
|
|
|
|
async def test_numeric_comparison_pairing(self, esp32_client):
|
|
"""Both sides display passkey, both must confirm."""
|
|
pytest.skip("Not yet implemented")
|